@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
- package/sdk/application/Cart/CartApplicationClient.js +157 -530
- 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 +65 -55
- package/sdk/application/Content/ContentApplicationClient.js +211 -341
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
- 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 +32 -87
- package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
- 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 +18 -62
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
- 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 +15 -406
- package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
- package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
- package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
- 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 +236 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
- 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 +314 -422
- package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
- 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 -68
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
- 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 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
- 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 +565 -1282
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
- 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 -246
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
- 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 +2374 -877
- package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
- 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 +421 -418
- package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
- package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
- 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 +934 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -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 +1327 -3529
- package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
- 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 -513
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
- 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 -4
- package/sdk/platform/Share/SharePlatformModel.js +45 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
- 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 -2
- package/sdk/public/PublicClient.js +2 -2
- 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 -1
- package/sdk/public/index.js +1 -1
- 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
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -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,7 +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",
|
|
44
|
+
getTranslateUILabels:
|
|
45
|
+
"/service/application/content/v1.0/translate-ui-labels",
|
|
42
46
|
};
|
|
43
47
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
44
48
|
(urls, [method, relativeUrl]) => {
|
|
@@ -59,24 +63,26 @@ class Content {
|
|
|
59
63
|
/**
|
|
60
64
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
61
65
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
62
|
-
* @returns {Promise<
|
|
63
|
-
* @name
|
|
64
|
-
* @summary:
|
|
65
|
-
* @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/).
|
|
66
70
|
*/
|
|
67
|
-
async
|
|
68
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
71
|
+
async fetchResourceTranslations(
|
|
72
|
+
{ type, locale, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
69
73
|
{ responseHeaders } = { responseHeaders: false }
|
|
70
74
|
) {
|
|
71
|
-
|
|
72
|
-
if (
|
|
73
|
-
const error = new
|
|
74
|
-
|
|
75
|
-
|
|
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
|
+
});
|
|
76
81
|
return Promise.reject(new FDKClientValidationError(error));
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
const query_params = {};
|
|
85
|
+
query_params["resource_id"] = resourceId;
|
|
80
86
|
|
|
81
87
|
const xHeaders = {};
|
|
82
88
|
|
|
@@ -84,8 +90,8 @@ class Content {
|
|
|
84
90
|
this._conf,
|
|
85
91
|
"get",
|
|
86
92
|
constructUrl({
|
|
87
|
-
url: this._urls["
|
|
88
|
-
params: {},
|
|
93
|
+
url: this._urls["fetchResourceTranslations"],
|
|
94
|
+
params: { type, locale },
|
|
89
95
|
}),
|
|
90
96
|
query_params,
|
|
91
97
|
undefined,
|
|
@@ -104,44 +110,38 @@ class Content {
|
|
|
104
110
|
/**
|
|
105
111
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
106
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
107
|
-
* @returns {Promise<
|
|
108
|
-
* @name
|
|
109
|
-
* @summary:
|
|
110
|
-
* @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/).
|
|
111
117
|
*/
|
|
112
|
-
async
|
|
113
|
-
{
|
|
118
|
+
async fetchResourceTranslationsWithPayload(
|
|
119
|
+
{ type, locale, resourceId, body, requestHeaders } = { requestHeaders: {} },
|
|
114
120
|
{ responseHeaders } = { responseHeaders: false }
|
|
115
121
|
) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
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,
|
|
122
127
|
});
|
|
123
|
-
}
|
|
124
|
-
if (invalidInput.length) {
|
|
125
|
-
const error = new Error();
|
|
126
|
-
error.message = "Missing required field";
|
|
127
|
-
error.details = invalidInput;
|
|
128
128
|
return Promise.reject(new FDKClientValidationError(error));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
const query_params = {};
|
|
132
|
-
query_params["
|
|
132
|
+
query_params["resource_id"] = resourceId;
|
|
133
133
|
|
|
134
134
|
const xHeaders = {};
|
|
135
135
|
|
|
136
136
|
const response = await ApplicationAPIClient.execute(
|
|
137
137
|
this._conf,
|
|
138
|
-
"
|
|
138
|
+
"post",
|
|
139
139
|
constructUrl({
|
|
140
|
-
url: this._urls["
|
|
141
|
-
params: {
|
|
140
|
+
url: this._urls["fetchResourceTranslationsWithPayload"],
|
|
141
|
+
params: { type, locale },
|
|
142
142
|
}),
|
|
143
143
|
query_params,
|
|
144
|
-
|
|
144
|
+
body,
|
|
145
145
|
{ ...xHeaders, ...requestHeaders },
|
|
146
146
|
{ responseHeaders }
|
|
147
147
|
);
|
|
@@ -157,28 +157,16 @@ class Content {
|
|
|
157
157
|
/**
|
|
158
158
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
159
159
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
160
|
-
* @returns {Promise<
|
|
161
|
-
* @name
|
|
162
|
-
* @summary: List
|
|
163
|
-
* @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/).
|
|
164
164
|
*/
|
|
165
|
-
async
|
|
166
|
-
{
|
|
165
|
+
async getAnnouncements(
|
|
166
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
167
167
|
{ responseHeaders } = { responseHeaders: false }
|
|
168
168
|
) {
|
|
169
|
-
let invalidInput = [];
|
|
170
|
-
if (invalidInput.length) {
|
|
171
|
-
const error = new Error();
|
|
172
|
-
error.message = "Missing required field";
|
|
173
|
-
error.details = invalidInput;
|
|
174
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
175
|
-
}
|
|
176
|
-
|
|
177
169
|
const query_params = {};
|
|
178
|
-
query_params["page_no"] = pageNo;
|
|
179
|
-
query_params["page_size"] = pageSize;
|
|
180
|
-
query_params["tags"] = tags;
|
|
181
|
-
query_params["search"] = search;
|
|
182
170
|
|
|
183
171
|
const xHeaders = {};
|
|
184
172
|
|
|
@@ -186,7 +174,7 @@ class Content {
|
|
|
186
174
|
this._conf,
|
|
187
175
|
"get",
|
|
188
176
|
constructUrl({
|
|
189
|
-
url: this._urls["
|
|
177
|
+
url: this._urls["getAnnouncements"],
|
|
190
178
|
params: {},
|
|
191
179
|
}),
|
|
192
180
|
query_params,
|
|
@@ -206,31 +194,27 @@ class Content {
|
|
|
206
194
|
/**
|
|
207
195
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
196
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
209
|
-
* @returns {Promise<
|
|
210
|
-
* @name
|
|
211
|
-
* @summary: Get
|
|
212
|
-
* @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/).
|
|
213
201
|
*/
|
|
214
|
-
async
|
|
215
|
-
{
|
|
202
|
+
async getBlog(
|
|
203
|
+
{ slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
|
|
216
204
|
{ responseHeaders } = { responseHeaders: false }
|
|
217
205
|
) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
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,
|
|
224
211
|
});
|
|
225
|
-
}
|
|
226
|
-
if (invalidInput.length) {
|
|
227
|
-
const error = new Error();
|
|
228
|
-
error.message = "Missing required field";
|
|
229
|
-
error.details = invalidInput;
|
|
230
212
|
return Promise.reject(new FDKClientValidationError(error));
|
|
231
213
|
}
|
|
232
214
|
|
|
233
215
|
const query_params = {};
|
|
216
|
+
query_params["root_id"] = rootId;
|
|
217
|
+
query_params["preview"] = preview;
|
|
234
218
|
|
|
235
219
|
const xHeaders = {};
|
|
236
220
|
|
|
@@ -238,8 +222,8 @@ class Content {
|
|
|
238
222
|
this._conf,
|
|
239
223
|
"get",
|
|
240
224
|
constructUrl({
|
|
241
|
-
url: this._urls["
|
|
242
|
-
params: {
|
|
225
|
+
url: this._urls["getBlog"],
|
|
226
|
+
params: { slug },
|
|
243
227
|
}),
|
|
244
228
|
query_params,
|
|
245
229
|
undefined,
|
|
@@ -258,24 +242,20 @@ class Content {
|
|
|
258
242
|
/**
|
|
259
243
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
260
244
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
261
|
-
* @returns {Promise<
|
|
262
|
-
* @name
|
|
263
|
-
* @summary:
|
|
264
|
-
* @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/).
|
|
265
249
|
*/
|
|
266
|
-
async
|
|
267
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
250
|
+
async getBlogs(
|
|
251
|
+
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
|
|
268
252
|
{ responseHeaders } = { responseHeaders: false }
|
|
269
253
|
) {
|
|
270
|
-
let invalidInput = [];
|
|
271
|
-
if (invalidInput.length) {
|
|
272
|
-
const error = new Error();
|
|
273
|
-
error.message = "Missing required field";
|
|
274
|
-
error.details = invalidInput;
|
|
275
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
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;
|
|
279
259
|
|
|
280
260
|
const xHeaders = {};
|
|
281
261
|
|
|
@@ -283,7 +263,7 @@ class Content {
|
|
|
283
263
|
this._conf,
|
|
284
264
|
"get",
|
|
285
265
|
constructUrl({
|
|
286
|
-
url: this._urls["
|
|
266
|
+
url: this._urls["getBlogs"],
|
|
287
267
|
params: {},
|
|
288
268
|
}),
|
|
289
269
|
query_params,
|
|
@@ -304,37 +284,27 @@ class Content {
|
|
|
304
284
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
305
285
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
306
286
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
307
|
-
* @name
|
|
308
|
-
* @summary: Get list of custom fields of given resource
|
|
309
|
-
* @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/).
|
|
310
290
|
*/
|
|
311
|
-
async
|
|
312
|
-
{ resource,
|
|
291
|
+
async getCustomFieldsByResourceId(
|
|
292
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
313
293
|
{ responseHeaders } = { responseHeaders: false }
|
|
314
294
|
) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
if (!resourceIds) {
|
|
324
|
-
invalidInput.push({
|
|
325
|
-
message: `The 'resourceIds' field is required.`,
|
|
326
|
-
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,
|
|
327
303
|
});
|
|
328
|
-
}
|
|
329
|
-
if (invalidInput.length) {
|
|
330
|
-
const error = new Error();
|
|
331
|
-
error.message = "Missing required field";
|
|
332
|
-
error.details = invalidInput;
|
|
333
304
|
return Promise.reject(new FDKClientValidationError(error));
|
|
334
305
|
}
|
|
335
306
|
|
|
336
307
|
const query_params = {};
|
|
337
|
-
query_params["resource_ids"] = resourceIds;
|
|
338
308
|
|
|
339
309
|
const xHeaders = {};
|
|
340
310
|
|
|
@@ -342,8 +312,8 @@ class Content {
|
|
|
342
312
|
this._conf,
|
|
343
313
|
"get",
|
|
344
314
|
constructUrl({
|
|
345
|
-
url: this._urls["
|
|
346
|
-
params: { resource },
|
|
315
|
+
url: this._urls["getCustomFieldsByResourceId"],
|
|
316
|
+
params: { resource, resourceSlug },
|
|
347
317
|
}),
|
|
348
318
|
query_params,
|
|
349
319
|
undefined,
|
|
@@ -363,26 +333,23 @@ class Content {
|
|
|
363
333
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
364
334
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
365
335
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
366
|
-
* @name
|
|
367
|
-
* @summary: Get custom object
|
|
368
|
-
* @description: Details of custom
|
|
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/).
|
|
369
339
|
*/
|
|
370
|
-
async
|
|
371
|
-
{
|
|
340
|
+
async getCustomObjectBySlug(
|
|
341
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
372
342
|
{ responseHeaders } = { responseHeaders: false }
|
|
373
343
|
) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
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,
|
|
380
352
|
});
|
|
381
|
-
}
|
|
382
|
-
if (invalidInput.length) {
|
|
383
|
-
const error = new Error();
|
|
384
|
-
error.message = "Missing required field";
|
|
385
|
-
error.details = invalidInput;
|
|
386
353
|
return Promise.reject(new FDKClientValidationError(error));
|
|
387
354
|
}
|
|
388
355
|
|
|
@@ -394,74 +361,8 @@ class Content {
|
|
|
394
361
|
this._conf,
|
|
395
362
|
"get",
|
|
396
363
|
constructUrl({
|
|
397
|
-
url: this._urls["
|
|
398
|
-
params: {
|
|
399
|
-
}),
|
|
400
|
-
query_params,
|
|
401
|
-
undefined,
|
|
402
|
-
{ ...xHeaders, ...requestHeaders },
|
|
403
|
-
{ responseHeaders }
|
|
404
|
-
);
|
|
405
|
-
|
|
406
|
-
let responseData = response;
|
|
407
|
-
if (responseHeaders) {
|
|
408
|
-
responseData = response[0];
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
return response;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
416
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
417
|
-
* @returns {Promise<CustomObjectsSchema>} - Success response
|
|
418
|
-
* @name getCustomObjects
|
|
419
|
-
* @summary: Get list of custom objects
|
|
420
|
-
* @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjects/).
|
|
421
|
-
*/
|
|
422
|
-
async getCustomObjects(
|
|
423
|
-
{ pageNo, pageSize, definitionId, type, ids, search, requestHeaders } = {
|
|
424
|
-
requestHeaders: {},
|
|
425
|
-
},
|
|
426
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
427
|
-
) {
|
|
428
|
-
let invalidInput = [];
|
|
429
|
-
|
|
430
|
-
if (!pageNo) {
|
|
431
|
-
invalidInput.push({
|
|
432
|
-
message: `The 'pageNo' field is required.`,
|
|
433
|
-
path: ["pageNo"],
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
if (!pageSize) {
|
|
437
|
-
invalidInput.push({
|
|
438
|
-
message: `The 'pageSize' field is required.`,
|
|
439
|
-
path: ["pageSize"],
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
if (invalidInput.length) {
|
|
443
|
-
const error = new Error();
|
|
444
|
-
error.message = "Missing required field";
|
|
445
|
-
error.details = invalidInput;
|
|
446
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
const query_params = {};
|
|
450
|
-
query_params["definition_id"] = definitionId;
|
|
451
|
-
query_params["page_no"] = pageNo;
|
|
452
|
-
query_params["page_size"] = pageSize;
|
|
453
|
-
query_params["type"] = type;
|
|
454
|
-
query_params["ids"] = ids;
|
|
455
|
-
query_params["search"] = search;
|
|
456
|
-
|
|
457
|
-
const xHeaders = {};
|
|
458
|
-
|
|
459
|
-
const response = await ApplicationAPIClient.execute(
|
|
460
|
-
this._conf,
|
|
461
|
-
"get",
|
|
462
|
-
constructUrl({
|
|
463
|
-
url: this._urls["getCustomObjects"],
|
|
464
|
-
params: {},
|
|
364
|
+
url: this._urls["getCustomObjectBySlug"],
|
|
365
|
+
params: { definitionSlug, slug },
|
|
465
366
|
}),
|
|
466
367
|
query_params,
|
|
467
368
|
undefined,
|
|
@@ -489,14 +390,6 @@ class Content {
|
|
|
489
390
|
{ requestHeaders } = { requestHeaders: {} },
|
|
490
391
|
{ responseHeaders } = { responseHeaders: false }
|
|
491
392
|
) {
|
|
492
|
-
let invalidInput = [];
|
|
493
|
-
if (invalidInput.length) {
|
|
494
|
-
const error = new Error();
|
|
495
|
-
error.message = "Missing required field";
|
|
496
|
-
error.details = invalidInput;
|
|
497
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
498
|
-
}
|
|
499
|
-
|
|
500
393
|
const query_params = {};
|
|
501
394
|
|
|
502
395
|
const xHeaders = {};
|
|
@@ -534,18 +427,12 @@ class Content {
|
|
|
534
427
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
535
428
|
{ responseHeaders } = { responseHeaders: false }
|
|
536
429
|
) {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
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,
|
|
543
435
|
});
|
|
544
|
-
}
|
|
545
|
-
if (invalidInput.length) {
|
|
546
|
-
const error = new Error();
|
|
547
|
-
error.message = "Missing required field";
|
|
548
|
-
error.details = invalidInput;
|
|
549
436
|
return Promise.reject(new FDKClientValidationError(error));
|
|
550
437
|
}
|
|
551
438
|
|
|
@@ -586,14 +473,6 @@ class Content {
|
|
|
586
473
|
{ requestHeaders } = { requestHeaders: {} },
|
|
587
474
|
{ responseHeaders } = { responseHeaders: false }
|
|
588
475
|
) {
|
|
589
|
-
let invalidInput = [];
|
|
590
|
-
if (invalidInput.length) {
|
|
591
|
-
const error = new Error();
|
|
592
|
-
error.message = "Missing required field";
|
|
593
|
-
error.details = invalidInput;
|
|
594
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
595
|
-
}
|
|
596
|
-
|
|
597
476
|
const query_params = {};
|
|
598
477
|
|
|
599
478
|
const xHeaders = {};
|
|
@@ -631,18 +510,12 @@ class Content {
|
|
|
631
510
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
632
511
|
{ responseHeaders } = { responseHeaders: false }
|
|
633
512
|
) {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
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,
|
|
640
518
|
});
|
|
641
|
-
}
|
|
642
|
-
if (invalidInput.length) {
|
|
643
|
-
const error = new Error();
|
|
644
|
-
error.message = "Missing required field";
|
|
645
|
-
error.details = invalidInput;
|
|
646
519
|
return Promise.reject(new FDKClientValidationError(error));
|
|
647
520
|
}
|
|
648
521
|
|
|
@@ -683,14 +556,6 @@ class Content {
|
|
|
683
556
|
{ requestHeaders } = { requestHeaders: {} },
|
|
684
557
|
{ responseHeaders } = { responseHeaders: false }
|
|
685
558
|
) {
|
|
686
|
-
let invalidInput = [];
|
|
687
|
-
if (invalidInput.length) {
|
|
688
|
-
const error = new Error();
|
|
689
|
-
error.message = "Missing required field";
|
|
690
|
-
error.details = invalidInput;
|
|
691
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
692
|
-
}
|
|
693
|
-
|
|
694
559
|
const query_params = {};
|
|
695
560
|
|
|
696
561
|
const xHeaders = {};
|
|
@@ -728,18 +593,12 @@ class Content {
|
|
|
728
593
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
729
594
|
{ responseHeaders } = { responseHeaders: false }
|
|
730
595
|
) {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
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,
|
|
737
601
|
});
|
|
738
|
-
}
|
|
739
|
-
if (invalidInput.length) {
|
|
740
|
-
const error = new Error();
|
|
741
|
-
error.message = "Missing required field";
|
|
742
|
-
error.details = invalidInput;
|
|
743
602
|
return Promise.reject(new FDKClientValidationError(error));
|
|
744
603
|
}
|
|
745
604
|
|
|
@@ -774,20 +633,12 @@ class Content {
|
|
|
774
633
|
* @returns {Promise<LandingPageSchema>} - Success response
|
|
775
634
|
* @name getLandingPage
|
|
776
635
|
* @summary: Get a landing page
|
|
777
|
-
* @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/).
|
|
778
637
|
*/
|
|
779
638
|
async getLandingPage(
|
|
780
639
|
{ requestHeaders } = { requestHeaders: {} },
|
|
781
640
|
{ responseHeaders } = { responseHeaders: false }
|
|
782
641
|
) {
|
|
783
|
-
let invalidInput = [];
|
|
784
|
-
if (invalidInput.length) {
|
|
785
|
-
const error = new Error();
|
|
786
|
-
error.message = "Missing required field";
|
|
787
|
-
error.details = invalidInput;
|
|
788
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
789
|
-
}
|
|
790
|
-
|
|
791
642
|
const query_params = {};
|
|
792
643
|
|
|
793
644
|
const xHeaders = {};
|
|
@@ -825,14 +676,6 @@ class Content {
|
|
|
825
676
|
{ requestHeaders } = { requestHeaders: {} },
|
|
826
677
|
{ responseHeaders } = { responseHeaders: false }
|
|
827
678
|
) {
|
|
828
|
-
let invalidInput = [];
|
|
829
|
-
if (invalidInput.length) {
|
|
830
|
-
const error = new Error();
|
|
831
|
-
error.message = "Missing required field";
|
|
832
|
-
error.details = invalidInput;
|
|
833
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
834
|
-
}
|
|
835
|
-
|
|
836
679
|
const query_params = {};
|
|
837
680
|
|
|
838
681
|
const xHeaders = {};
|
|
@@ -861,7 +704,7 @@ class Content {
|
|
|
861
704
|
/**
|
|
862
705
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
863
706
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
864
|
-
* @returns {Promise<
|
|
707
|
+
* @returns {Promise<NavigationGetDetails>} - Success response
|
|
865
708
|
* @name getNavigations
|
|
866
709
|
* @summary: List navigation items
|
|
867
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/).
|
|
@@ -870,14 +713,6 @@ class Content {
|
|
|
870
713
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
871
714
|
{ responseHeaders } = { responseHeaders: false }
|
|
872
715
|
) {
|
|
873
|
-
let invalidInput = [];
|
|
874
|
-
if (invalidInput.length) {
|
|
875
|
-
const error = new Error();
|
|
876
|
-
error.message = "Missing required field";
|
|
877
|
-
error.details = invalidInput;
|
|
878
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
879
|
-
}
|
|
880
|
-
|
|
881
716
|
const query_params = {};
|
|
882
717
|
query_params["page_no"] = pageNo;
|
|
883
718
|
query_params["page_size"] = pageSize;
|
|
@@ -910,25 +745,19 @@ class Content {
|
|
|
910
745
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
911
746
|
* @returns {Promise<PageSchema>} - Success response
|
|
912
747
|
* @name getPage
|
|
913
|
-
* @summary: Get page
|
|
914
|
-
* @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/).
|
|
915
750
|
*/
|
|
916
751
|
async getPage(
|
|
917
752
|
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
918
753
|
{ responseHeaders } = { responseHeaders: false }
|
|
919
754
|
) {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
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,
|
|
926
760
|
});
|
|
927
|
-
}
|
|
928
|
-
if (invalidInput.length) {
|
|
929
|
-
const error = new Error();
|
|
930
|
-
error.message = "Missing required field";
|
|
931
|
-
error.details = invalidInput;
|
|
932
761
|
return Promise.reject(new FDKClientValidationError(error));
|
|
933
762
|
}
|
|
934
763
|
|
|
@@ -961,23 +790,15 @@ class Content {
|
|
|
961
790
|
/**
|
|
962
791
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
963
792
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
964
|
-
* @returns {Promise<
|
|
793
|
+
* @returns {Promise<PageGetDetails>} - Success response
|
|
965
794
|
* @name getPages
|
|
966
795
|
* @summary: Lists pages
|
|
967
|
-
* @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/).
|
|
968
797
|
*/
|
|
969
798
|
async getPages(
|
|
970
799
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
971
800
|
{ responseHeaders } = { responseHeaders: false }
|
|
972
801
|
) {
|
|
973
|
-
let invalidInput = [];
|
|
974
|
-
if (invalidInput.length) {
|
|
975
|
-
const error = new Error();
|
|
976
|
-
error.message = "Missing required field";
|
|
977
|
-
error.details = invalidInput;
|
|
978
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
979
|
-
}
|
|
980
|
-
|
|
981
802
|
const query_params = {};
|
|
982
803
|
query_params["page_no"] = pageNo;
|
|
983
804
|
query_params["page_size"] = pageSize;
|
|
@@ -1017,14 +838,6 @@ class Content {
|
|
|
1017
838
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1018
839
|
{ responseHeaders } = { responseHeaders: false }
|
|
1019
840
|
) {
|
|
1020
|
-
let invalidInput = [];
|
|
1021
|
-
if (invalidInput.length) {
|
|
1022
|
-
const error = new Error();
|
|
1023
|
-
error.message = "Missing required field";
|
|
1024
|
-
error.details = invalidInput;
|
|
1025
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
841
|
const query_params = {};
|
|
1029
842
|
|
|
1030
843
|
const xHeaders = {};
|
|
@@ -1062,14 +875,6 @@ class Content {
|
|
|
1062
875
|
{ pageType, active, requestHeaders } = { requestHeaders: {} },
|
|
1063
876
|
{ responseHeaders } = { responseHeaders: false }
|
|
1064
877
|
) {
|
|
1065
|
-
let invalidInput = [];
|
|
1066
|
-
if (invalidInput.length) {
|
|
1067
|
-
const error = new Error();
|
|
1068
|
-
error.message = "Missing required field";
|
|
1069
|
-
error.details = invalidInput;
|
|
1070
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
878
|
const query_params = {};
|
|
1074
879
|
query_params["page_type"] = pageType;
|
|
1075
880
|
query_params["active"] = active;
|
|
@@ -1109,14 +914,43 @@ class Content {
|
|
|
1109
914
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1110
915
|
{ responseHeaders } = { responseHeaders: false }
|
|
1111
916
|
) {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
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];
|
|
1118
937
|
}
|
|
1119
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
|
+
) {
|
|
1120
954
|
const query_params = {};
|
|
1121
955
|
|
|
1122
956
|
const xHeaders = {};
|
|
@@ -1125,7 +959,7 @@ class Content {
|
|
|
1125
959
|
this._conf,
|
|
1126
960
|
"get",
|
|
1127
961
|
constructUrl({
|
|
1128
|
-
url: this._urls["
|
|
962
|
+
url: this._urls["getSupportedLanguages"],
|
|
1129
963
|
params: {},
|
|
1130
964
|
}),
|
|
1131
965
|
query_params,
|
|
@@ -1154,15 +988,51 @@ class Content {
|
|
|
1154
988
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1155
989
|
{ responseHeaders } = { responseHeaders: false }
|
|
1156
990
|
) {
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
991
|
+
const query_params = {};
|
|
992
|
+
|
|
993
|
+
const xHeaders = {};
|
|
994
|
+
|
|
995
|
+
const response = await ApplicationAPIClient.execute(
|
|
996
|
+
this._conf,
|
|
997
|
+
"get",
|
|
998
|
+
constructUrl({
|
|
999
|
+
url: this._urls["getTags"],
|
|
1000
|
+
params: {},
|
|
1001
|
+
}),
|
|
1002
|
+
query_params,
|
|
1003
|
+
undefined,
|
|
1004
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1005
|
+
{ responseHeaders }
|
|
1006
|
+
);
|
|
1007
|
+
|
|
1008
|
+
let responseData = response;
|
|
1009
|
+
if (responseHeaders) {
|
|
1010
|
+
responseData = response[0];
|
|
1163
1011
|
}
|
|
1164
1012
|
|
|
1013
|
+
return response;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1018
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
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/).
|
|
1023
|
+
*/
|
|
1024
|
+
async getTranslateUILabels(
|
|
1025
|
+
{ template, templateThemeId, themeId, locale, type, requestHeaders } = {
|
|
1026
|
+
requestHeaders: {},
|
|
1027
|
+
},
|
|
1028
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1029
|
+
) {
|
|
1165
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;
|
|
1166
1036
|
|
|
1167
1037
|
const xHeaders = {};
|
|
1168
1038
|
|
|
@@ -1170,7 +1040,7 @@ class Content {
|
|
|
1170
1040
|
this._conf,
|
|
1171
1041
|
"get",
|
|
1172
1042
|
constructUrl({
|
|
1173
|
-
url: this._urls["
|
|
1043
|
+
url: this._urls["getTranslateUILabels"],
|
|
1174
1044
|
params: {},
|
|
1175
1045
|
}),
|
|
1176
1046
|
query_params,
|