@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
|
@@ -15,6 +15,85 @@ class Content {
|
|
|
15
15
|
this.applicationId = applicationId;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @param {ContentPlatformApplicationValidator.AddApplicationLanguageParam} arg
|
|
20
|
+
* - Arg object
|
|
21
|
+
*
|
|
22
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
24
|
+
* @returns {Promise<Object>} - Success response
|
|
25
|
+
* @name addApplicationLanguage
|
|
26
|
+
* @summary: Add app language
|
|
27
|
+
* @description: Add new languages to application's supported language list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addApplicationLanguage/).
|
|
28
|
+
*/
|
|
29
|
+
async addApplicationLanguage(
|
|
30
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
31
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
32
|
+
) {
|
|
33
|
+
const {
|
|
34
|
+
error,
|
|
35
|
+
} = ContentPlatformApplicationValidator.addApplicationLanguage().validate(
|
|
36
|
+
{
|
|
37
|
+
body,
|
|
38
|
+
},
|
|
39
|
+
{ abortEarly: false, allowUnknown: true }
|
|
40
|
+
);
|
|
41
|
+
if (error) {
|
|
42
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Showing warrnings if extra unknown parameters are found
|
|
46
|
+
const {
|
|
47
|
+
error: warrning,
|
|
48
|
+
} = ContentPlatformApplicationValidator.addApplicationLanguage().validate(
|
|
49
|
+
{
|
|
50
|
+
body,
|
|
51
|
+
},
|
|
52
|
+
{ abortEarly: false, allowUnknown: false }
|
|
53
|
+
);
|
|
54
|
+
if (warrning) {
|
|
55
|
+
Logger({
|
|
56
|
+
level: "WARN",
|
|
57
|
+
message: `Parameter Validation warrnings for platform > Content > addApplicationLanguage \n ${warrning}`,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const query_params = {};
|
|
62
|
+
|
|
63
|
+
const response = await PlatformAPIClient.execute(
|
|
64
|
+
this.config,
|
|
65
|
+
"post",
|
|
66
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
|
|
67
|
+
query_params,
|
|
68
|
+
body,
|
|
69
|
+
requestHeaders,
|
|
70
|
+
{ responseHeaders }
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
let responseData = response;
|
|
74
|
+
if (responseHeaders) {
|
|
75
|
+
responseData = response[0];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
79
|
+
abortEarly: false,
|
|
80
|
+
allowUnknown: true,
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
if (res_error) {
|
|
84
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
85
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
86
|
+
} else {
|
|
87
|
+
Logger({
|
|
88
|
+
level: "WARN",
|
|
89
|
+
message: `Response Validation Warnings for platform > Content > addApplicationLanguage \n ${res_error}`,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return response;
|
|
95
|
+
}
|
|
96
|
+
|
|
18
97
|
/**
|
|
19
98
|
* @param {ContentPlatformApplicationValidator.AddDataLoaderParam} arg - Arg object
|
|
20
99
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -181,7 +260,7 @@ class Content {
|
|
|
181
260
|
* @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
|
|
182
261
|
* @name addInjectableTag
|
|
183
262
|
* @summary: Create HTML tag
|
|
184
|
-
* @description: Create and add a new injectable tag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addInjectableTag/).
|
|
263
|
+
* @description: Create and add a new injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addInjectableTag/).
|
|
185
264
|
*/
|
|
186
265
|
async addInjectableTag(
|
|
187
266
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -259,7 +338,7 @@ class Content {
|
|
|
259
338
|
*
|
|
260
339
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
261
340
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
262
|
-
* @returns {Promise<ContentPlatformModel.
|
|
341
|
+
* @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
|
|
263
342
|
* @name addPathRedirectionRules
|
|
264
343
|
* @summary: Create path redirection rules
|
|
265
344
|
* @description: Create and add rules for path redirection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addPathRedirectionRules/).
|
|
@@ -315,7 +394,7 @@ class Content {
|
|
|
315
394
|
|
|
316
395
|
const {
|
|
317
396
|
error: res_error,
|
|
318
|
-
} = ContentPlatformModel.
|
|
397
|
+
} = ContentPlatformModel.PathMappingSchema().validate(responseData, {
|
|
319
398
|
abortEarly: false,
|
|
320
399
|
allowUnknown: true,
|
|
321
400
|
});
|
|
@@ -335,24 +414,23 @@ class Content {
|
|
|
335
414
|
}
|
|
336
415
|
|
|
337
416
|
/**
|
|
338
|
-
* @param {ContentPlatformApplicationValidator.
|
|
417
|
+
* @param {ContentPlatformApplicationValidator.BulkUnPublishApplicationLanguageParam} arg
|
|
339
418
|
* - Arg object
|
|
340
419
|
*
|
|
341
420
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
342
421
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
343
|
-
* @returns {Promise<
|
|
344
|
-
*
|
|
345
|
-
* @
|
|
346
|
-
* @
|
|
347
|
-
* @description: Generate and add a new announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAnnouncement/).
|
|
422
|
+
* @returns {Promise<Object>} - Success response
|
|
423
|
+
* @name bulkUnPublishApplicationLanguage
|
|
424
|
+
* @summary: Unpublish all languages of sales channel.
|
|
425
|
+
* @description: Unpublish all application's published languages of specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/bulkUnPublishApplicationLanguage/).
|
|
348
426
|
*/
|
|
349
|
-
async
|
|
427
|
+
async bulkUnPublishApplicationLanguage(
|
|
350
428
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
351
429
|
{ responseHeaders } = { responseHeaders: false }
|
|
352
430
|
) {
|
|
353
431
|
const {
|
|
354
432
|
error,
|
|
355
|
-
} = ContentPlatformApplicationValidator.
|
|
433
|
+
} = ContentPlatformApplicationValidator.bulkUnPublishApplicationLanguage().validate(
|
|
356
434
|
{
|
|
357
435
|
body,
|
|
358
436
|
},
|
|
@@ -365,7 +443,7 @@ class Content {
|
|
|
365
443
|
// Showing warrnings if extra unknown parameters are found
|
|
366
444
|
const {
|
|
367
445
|
error: warrning,
|
|
368
|
-
} = ContentPlatformApplicationValidator.
|
|
446
|
+
} = ContentPlatformApplicationValidator.bulkUnPublishApplicationLanguage().validate(
|
|
369
447
|
{
|
|
370
448
|
body,
|
|
371
449
|
},
|
|
@@ -374,7 +452,7 @@ class Content {
|
|
|
374
452
|
if (warrning) {
|
|
375
453
|
Logger({
|
|
376
454
|
level: "WARN",
|
|
377
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
455
|
+
message: `Parameter Validation warrnings for platform > Content > bulkUnPublishApplicationLanguage \n ${warrning}`,
|
|
378
456
|
});
|
|
379
457
|
}
|
|
380
458
|
|
|
@@ -382,8 +460,8 @@ class Content {
|
|
|
382
460
|
|
|
383
461
|
const response = await PlatformAPIClient.execute(
|
|
384
462
|
this.config,
|
|
385
|
-
"
|
|
386
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
463
|
+
"patch",
|
|
464
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
|
|
387
465
|
query_params,
|
|
388
466
|
body,
|
|
389
467
|
requestHeaders,
|
|
@@ -395,9 +473,7 @@ class Content {
|
|
|
395
473
|
responseData = response[0];
|
|
396
474
|
}
|
|
397
475
|
|
|
398
|
-
const {
|
|
399
|
-
error: res_error,
|
|
400
|
-
} = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
|
|
476
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
401
477
|
abortEarly: false,
|
|
402
478
|
allowUnknown: true,
|
|
403
479
|
});
|
|
@@ -408,7 +484,7 @@ class Content {
|
|
|
408
484
|
} else {
|
|
409
485
|
Logger({
|
|
410
486
|
level: "WARN",
|
|
411
|
-
message: `Response Validation Warnings for platform > Content >
|
|
487
|
+
message: `Response Validation Warnings for platform > Content > bulkUnPublishApplicationLanguage \n ${res_error}`,
|
|
412
488
|
});
|
|
413
489
|
}
|
|
414
490
|
}
|
|
@@ -417,28 +493,25 @@ class Content {
|
|
|
417
493
|
}
|
|
418
494
|
|
|
419
495
|
/**
|
|
420
|
-
* @param {ContentPlatformApplicationValidator.
|
|
496
|
+
* @param {ContentPlatformApplicationValidator.CreateAnnouncementParam} arg
|
|
421
497
|
* - Arg object
|
|
422
498
|
*
|
|
423
499
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
424
500
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
425
|
-
* @returns {Promise<ContentPlatformModel.
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
* @
|
|
429
|
-
* @
|
|
430
|
-
* @description: You can add a custom field using this endpoint to any resource by providing the resource ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomFieldByResourceId/).
|
|
501
|
+
* @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
|
|
502
|
+
* Success response
|
|
503
|
+
* @name createAnnouncement
|
|
504
|
+
* @summary: Create announcement
|
|
505
|
+
* @description: Generate and add a new announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAnnouncement/).
|
|
431
506
|
*/
|
|
432
|
-
async
|
|
433
|
-
{
|
|
507
|
+
async createAnnouncement(
|
|
508
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
434
509
|
{ responseHeaders } = { responseHeaders: false }
|
|
435
510
|
) {
|
|
436
511
|
const {
|
|
437
512
|
error,
|
|
438
|
-
} = ContentPlatformApplicationValidator.
|
|
513
|
+
} = ContentPlatformApplicationValidator.createAnnouncement().validate(
|
|
439
514
|
{
|
|
440
|
-
resource,
|
|
441
|
-
resourceId,
|
|
442
515
|
body,
|
|
443
516
|
},
|
|
444
517
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -450,10 +523,8 @@ class Content {
|
|
|
450
523
|
// Showing warrnings if extra unknown parameters are found
|
|
451
524
|
const {
|
|
452
525
|
error: warrning,
|
|
453
|
-
} = ContentPlatformApplicationValidator.
|
|
526
|
+
} = ContentPlatformApplicationValidator.createAnnouncement().validate(
|
|
454
527
|
{
|
|
455
|
-
resource,
|
|
456
|
-
resourceId,
|
|
457
528
|
body,
|
|
458
529
|
},
|
|
459
530
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -461,7 +532,7 @@ class Content {
|
|
|
461
532
|
if (warrning) {
|
|
462
533
|
Logger({
|
|
463
534
|
level: "WARN",
|
|
464
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
535
|
+
message: `Parameter Validation warrnings for platform > Content > createAnnouncement \n ${warrning}`,
|
|
465
536
|
});
|
|
466
537
|
}
|
|
467
538
|
|
|
@@ -470,7 +541,7 @@ class Content {
|
|
|
470
541
|
const response = await PlatformAPIClient.execute(
|
|
471
542
|
this.config,
|
|
472
543
|
"post",
|
|
473
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
544
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements`,
|
|
474
545
|
query_params,
|
|
475
546
|
body,
|
|
476
547
|
requestHeaders,
|
|
@@ -484,10 +555,10 @@ class Content {
|
|
|
484
555
|
|
|
485
556
|
const {
|
|
486
557
|
error: res_error,
|
|
487
|
-
} = ContentPlatformModel.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
);
|
|
558
|
+
} = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
|
|
559
|
+
abortEarly: false,
|
|
560
|
+
allowUnknown: true,
|
|
561
|
+
});
|
|
491
562
|
|
|
492
563
|
if (res_error) {
|
|
493
564
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -495,7 +566,7 @@ class Content {
|
|
|
495
566
|
} else {
|
|
496
567
|
Logger({
|
|
497
568
|
level: "WARN",
|
|
498
|
-
message: `Response Validation Warnings for platform > Content >
|
|
569
|
+
message: `Response Validation Warnings for platform > Content > createAnnouncement \n ${res_error}`,
|
|
499
570
|
});
|
|
500
571
|
}
|
|
501
572
|
}
|
|
@@ -513,17 +584,18 @@ class Content {
|
|
|
513
584
|
* - Success response
|
|
514
585
|
*
|
|
515
586
|
* @name createAppCustomFieldDefinition
|
|
516
|
-
* @summary: Create custom field definition
|
|
587
|
+
* @summary: Create custom field definition for a given resource type
|
|
517
588
|
* @description: You can create custom fields definition to any resource so you can extend property of resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomFieldDefinition/).
|
|
518
589
|
*/
|
|
519
590
|
async createAppCustomFieldDefinition(
|
|
520
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
591
|
+
{ resource, body, requestHeaders } = { requestHeaders: {} },
|
|
521
592
|
{ responseHeaders } = { responseHeaders: false }
|
|
522
593
|
) {
|
|
523
594
|
const {
|
|
524
595
|
error,
|
|
525
596
|
} = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
|
|
526
597
|
{
|
|
598
|
+
resource,
|
|
527
599
|
body,
|
|
528
600
|
},
|
|
529
601
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -537,6 +609,7 @@ class Content {
|
|
|
537
609
|
error: warrning,
|
|
538
610
|
} = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
|
|
539
611
|
{
|
|
612
|
+
resource,
|
|
540
613
|
body,
|
|
541
614
|
},
|
|
542
615
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -553,7 +626,7 @@ class Content {
|
|
|
553
626
|
const response = await PlatformAPIClient.execute(
|
|
554
627
|
this.config,
|
|
555
628
|
"post",
|
|
556
|
-
`/service/platform/content/
|
|
629
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
|
|
557
630
|
query_params,
|
|
558
631
|
body,
|
|
559
632
|
requestHeaders,
|
|
@@ -587,25 +660,25 @@ class Content {
|
|
|
587
660
|
}
|
|
588
661
|
|
|
589
662
|
/**
|
|
590
|
-
* @param {ContentPlatformApplicationValidator.
|
|
663
|
+
* @param {ContentPlatformApplicationValidator.CreateAppCustomObjectBySlugParam} arg
|
|
591
664
|
* - Arg object
|
|
592
665
|
*
|
|
593
666
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
594
667
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
595
|
-
* @returns {Promise<ContentPlatformModel.
|
|
596
|
-
*
|
|
597
|
-
* @name createAppCustomObject
|
|
668
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectSchema>} - Success response
|
|
669
|
+
* @name createAppCustomObjectBySlug
|
|
598
670
|
* @summary: Create custom object entries
|
|
599
|
-
* @description: Custom object entries against the custom object definition can be added using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
671
|
+
* @description: Custom object entries against the custom object definition can be added using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomObjectBySlug/).
|
|
600
672
|
*/
|
|
601
|
-
async
|
|
602
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
673
|
+
async createAppCustomObjectBySlug(
|
|
674
|
+
{ definitionSlug, body, requestHeaders } = { requestHeaders: {} },
|
|
603
675
|
{ responseHeaders } = { responseHeaders: false }
|
|
604
676
|
) {
|
|
605
677
|
const {
|
|
606
678
|
error,
|
|
607
|
-
} = ContentPlatformApplicationValidator.
|
|
679
|
+
} = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
|
|
608
680
|
{
|
|
681
|
+
definitionSlug,
|
|
609
682
|
body,
|
|
610
683
|
},
|
|
611
684
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -617,8 +690,9 @@ class Content {
|
|
|
617
690
|
// Showing warrnings if extra unknown parameters are found
|
|
618
691
|
const {
|
|
619
692
|
error: warrning,
|
|
620
|
-
} = ContentPlatformApplicationValidator.
|
|
693
|
+
} = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
|
|
621
694
|
{
|
|
695
|
+
definitionSlug,
|
|
622
696
|
body,
|
|
623
697
|
},
|
|
624
698
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -626,7 +700,7 @@ class Content {
|
|
|
626
700
|
if (warrning) {
|
|
627
701
|
Logger({
|
|
628
702
|
level: "WARN",
|
|
629
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
703
|
+
message: `Parameter Validation warrnings for platform > Content > createAppCustomObjectBySlug \n ${warrning}`,
|
|
630
704
|
});
|
|
631
705
|
}
|
|
632
706
|
|
|
@@ -635,7 +709,7 @@ class Content {
|
|
|
635
709
|
const response = await PlatformAPIClient.execute(
|
|
636
710
|
this.config,
|
|
637
711
|
"post",
|
|
638
|
-
`/service/platform/content/
|
|
712
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
|
|
639
713
|
query_params,
|
|
640
714
|
body,
|
|
641
715
|
requestHeaders,
|
|
@@ -649,10 +723,10 @@ class Content {
|
|
|
649
723
|
|
|
650
724
|
const {
|
|
651
725
|
error: res_error,
|
|
652
|
-
} = ContentPlatformModel.
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
);
|
|
726
|
+
} = ContentPlatformModel.CustomObjectSchema().validate(responseData, {
|
|
727
|
+
abortEarly: false,
|
|
728
|
+
allowUnknown: true,
|
|
729
|
+
});
|
|
656
730
|
|
|
657
731
|
if (res_error) {
|
|
658
732
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -660,7 +734,7 @@ class Content {
|
|
|
660
734
|
} else {
|
|
661
735
|
Logger({
|
|
662
736
|
level: "WARN",
|
|
663
|
-
message: `Response Validation Warnings for platform > Content >
|
|
737
|
+
message: `Response Validation Warnings for platform > Content > createAppCustomObjectBySlug \n ${res_error}`,
|
|
664
738
|
});
|
|
665
739
|
}
|
|
666
740
|
}
|
|
@@ -674,8 +748,9 @@ class Content {
|
|
|
674
748
|
*
|
|
675
749
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
676
750
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
677
|
-
* @returns {Promise<ContentPlatformModel.
|
|
678
|
-
* Success response
|
|
751
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
752
|
+
* - Success response
|
|
753
|
+
*
|
|
679
754
|
* @name createAppCustomObjectDefinition
|
|
680
755
|
* @summary: Create custom object definition
|
|
681
756
|
* @description: Create a custom object that will have a collection of custom fields and can be used anywhere in the custom field for any resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAppCustomObjectDefinition/).
|
|
@@ -717,7 +792,7 @@ class Content {
|
|
|
717
792
|
const response = await PlatformAPIClient.execute(
|
|
718
793
|
this.config,
|
|
719
794
|
"post",
|
|
720
|
-
`/service/platform/content/
|
|
795
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
|
|
721
796
|
query_params,
|
|
722
797
|
body,
|
|
723
798
|
requestHeaders,
|
|
@@ -731,7 +806,7 @@ class Content {
|
|
|
731
806
|
|
|
732
807
|
const {
|
|
733
808
|
error: res_error,
|
|
734
|
-
} = ContentPlatformModel.
|
|
809
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
735
810
|
responseData,
|
|
736
811
|
{ abortEarly: false, allowUnknown: true }
|
|
737
812
|
);
|
|
@@ -751,19 +826,23 @@ class Content {
|
|
|
751
826
|
}
|
|
752
827
|
|
|
753
828
|
/**
|
|
754
|
-
* @param {ContentPlatformApplicationValidator.
|
|
829
|
+
* @param {ContentPlatformApplicationValidator.CreateApplicationResourceTranslationParam} arg
|
|
830
|
+
* - Arg object
|
|
831
|
+
*
|
|
755
832
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
756
833
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
757
|
-
* @returns {Promise<ContentPlatformModel.
|
|
758
|
-
* @name
|
|
759
|
-
* @summary:
|
|
760
|
-
* @description:
|
|
834
|
+
* @returns {Promise<ContentPlatformModel.ResourceTranslation>} - Success response
|
|
835
|
+
* @name createApplicationResourceTranslation
|
|
836
|
+
* @summary: Add app translation
|
|
837
|
+
* @description: Create new translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createApplicationResourceTranslation/).
|
|
761
838
|
*/
|
|
762
|
-
async
|
|
839
|
+
async createApplicationResourceTranslation(
|
|
763
840
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
764
841
|
{ responseHeaders } = { responseHeaders: false }
|
|
765
842
|
) {
|
|
766
|
-
const {
|
|
843
|
+
const {
|
|
844
|
+
error,
|
|
845
|
+
} = ContentPlatformApplicationValidator.createApplicationResourceTranslation().validate(
|
|
767
846
|
{
|
|
768
847
|
body,
|
|
769
848
|
},
|
|
@@ -776,7 +855,7 @@ class Content {
|
|
|
776
855
|
// Showing warrnings if extra unknown parameters are found
|
|
777
856
|
const {
|
|
778
857
|
error: warrning,
|
|
779
|
-
} = ContentPlatformApplicationValidator.
|
|
858
|
+
} = ContentPlatformApplicationValidator.createApplicationResourceTranslation().validate(
|
|
780
859
|
{
|
|
781
860
|
body,
|
|
782
861
|
},
|
|
@@ -785,7 +864,7 @@ class Content {
|
|
|
785
864
|
if (warrning) {
|
|
786
865
|
Logger({
|
|
787
866
|
level: "WARN",
|
|
788
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
867
|
+
message: `Parameter Validation warrnings for platform > Content > createApplicationResourceTranslation \n ${warrning}`,
|
|
789
868
|
});
|
|
790
869
|
}
|
|
791
870
|
|
|
@@ -794,7 +873,7 @@ class Content {
|
|
|
794
873
|
const response = await PlatformAPIClient.execute(
|
|
795
874
|
this.config,
|
|
796
875
|
"post",
|
|
797
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
876
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations`,
|
|
798
877
|
query_params,
|
|
799
878
|
body,
|
|
800
879
|
requestHeaders,
|
|
@@ -808,7 +887,7 @@ class Content {
|
|
|
808
887
|
|
|
809
888
|
const {
|
|
810
889
|
error: res_error,
|
|
811
|
-
} = ContentPlatformModel.
|
|
890
|
+
} = ContentPlatformModel.ResourceTranslation().validate(responseData, {
|
|
812
891
|
abortEarly: false,
|
|
813
892
|
allowUnknown: true,
|
|
814
893
|
});
|
|
@@ -819,7 +898,7 @@ class Content {
|
|
|
819
898
|
} else {
|
|
820
899
|
Logger({
|
|
821
900
|
level: "WARN",
|
|
822
|
-
message: `Response Validation Warnings for platform > Content >
|
|
901
|
+
message: `Response Validation Warnings for platform > Content > createApplicationResourceTranslation \n ${res_error}`,
|
|
823
902
|
});
|
|
824
903
|
}
|
|
825
904
|
}
|
|
@@ -828,23 +907,19 @@ class Content {
|
|
|
828
907
|
}
|
|
829
908
|
|
|
830
909
|
/**
|
|
831
|
-
* @param {ContentPlatformApplicationValidator.
|
|
832
|
-
* - Arg object
|
|
833
|
-
*
|
|
910
|
+
* @param {ContentPlatformApplicationValidator.CreateBlogParam} arg - Arg object
|
|
834
911
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
835
912
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
836
|
-
* @returns {Promise<ContentPlatformModel.
|
|
837
|
-
* @name
|
|
838
|
-
* @summary: Create
|
|
839
|
-
* @description: Generate and add a new
|
|
913
|
+
* @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
|
|
914
|
+
* @name createBlog
|
|
915
|
+
* @summary: Create blog
|
|
916
|
+
* @description: Generate and add a new blog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createBlog/).
|
|
840
917
|
*/
|
|
841
|
-
async
|
|
918
|
+
async createBlog(
|
|
842
919
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
843
920
|
{ responseHeaders } = { responseHeaders: false }
|
|
844
921
|
) {
|
|
845
|
-
const {
|
|
846
|
-
error,
|
|
847
|
-
} = ContentPlatformApplicationValidator.createFaqCategory().validate(
|
|
922
|
+
const { error } = ContentPlatformApplicationValidator.createBlog().validate(
|
|
848
923
|
{
|
|
849
924
|
body,
|
|
850
925
|
},
|
|
@@ -857,7 +932,7 @@ class Content {
|
|
|
857
932
|
// Showing warrnings if extra unknown parameters are found
|
|
858
933
|
const {
|
|
859
934
|
error: warrning,
|
|
860
|
-
} = ContentPlatformApplicationValidator.
|
|
935
|
+
} = ContentPlatformApplicationValidator.createBlog().validate(
|
|
861
936
|
{
|
|
862
937
|
body,
|
|
863
938
|
},
|
|
@@ -866,7 +941,7 @@ class Content {
|
|
|
866
941
|
if (warrning) {
|
|
867
942
|
Logger({
|
|
868
943
|
level: "WARN",
|
|
869
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
944
|
+
message: `Parameter Validation warrnings for platform > Content > createBlog \n ${warrning}`,
|
|
870
945
|
});
|
|
871
946
|
}
|
|
872
947
|
|
|
@@ -875,7 +950,7 @@ class Content {
|
|
|
875
950
|
const response = await PlatformAPIClient.execute(
|
|
876
951
|
this.config,
|
|
877
952
|
"post",
|
|
878
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
953
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
|
|
879
954
|
query_params,
|
|
880
955
|
body,
|
|
881
956
|
requestHeaders,
|
|
@@ -889,7 +964,7 @@ class Content {
|
|
|
889
964
|
|
|
890
965
|
const {
|
|
891
966
|
error: res_error,
|
|
892
|
-
} = ContentPlatformModel.
|
|
967
|
+
} = ContentPlatformModel.BlogSchema().validate(responseData, {
|
|
893
968
|
abortEarly: false,
|
|
894
969
|
allowUnknown: true,
|
|
895
970
|
});
|
|
@@ -900,7 +975,7 @@ class Content {
|
|
|
900
975
|
} else {
|
|
901
976
|
Logger({
|
|
902
977
|
level: "WARN",
|
|
903
|
-
message: `Response Validation Warnings for platform > Content >
|
|
978
|
+
message: `Response Validation Warnings for platform > Content > createBlog \n ${res_error}`,
|
|
904
979
|
});
|
|
905
980
|
}
|
|
906
981
|
}
|
|
@@ -909,23 +984,23 @@ class Content {
|
|
|
909
984
|
}
|
|
910
985
|
|
|
911
986
|
/**
|
|
912
|
-
* @param {ContentPlatformApplicationValidator.
|
|
987
|
+
* @param {ContentPlatformApplicationValidator.CreateFaqCategoryParam} arg
|
|
913
988
|
* - Arg object
|
|
914
989
|
*
|
|
915
990
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
916
991
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
917
|
-
* @returns {Promise<ContentPlatformModel.
|
|
918
|
-
* @name
|
|
919
|
-
* @summary: Create
|
|
920
|
-
* @description:
|
|
992
|
+
* @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
|
|
993
|
+
* @name createFaqCategory
|
|
994
|
+
* @summary: Create FAQ Category
|
|
995
|
+
* @description: Generate and add a new FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createFaqCategory/).
|
|
921
996
|
*/
|
|
922
|
-
async
|
|
997
|
+
async createFaqCategory(
|
|
923
998
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
924
999
|
{ responseHeaders } = { responseHeaders: false }
|
|
925
1000
|
) {
|
|
926
1001
|
const {
|
|
927
1002
|
error,
|
|
928
|
-
} = ContentPlatformApplicationValidator.
|
|
1003
|
+
} = ContentPlatformApplicationValidator.createFaqCategory().validate(
|
|
929
1004
|
{
|
|
930
1005
|
body,
|
|
931
1006
|
},
|
|
@@ -938,7 +1013,7 @@ class Content {
|
|
|
938
1013
|
// Showing warrnings if extra unknown parameters are found
|
|
939
1014
|
const {
|
|
940
1015
|
error: warrning,
|
|
941
|
-
} = ContentPlatformApplicationValidator.
|
|
1016
|
+
} = ContentPlatformApplicationValidator.createFaqCategory().validate(
|
|
942
1017
|
{
|
|
943
1018
|
body,
|
|
944
1019
|
},
|
|
@@ -947,7 +1022,7 @@ class Content {
|
|
|
947
1022
|
if (warrning) {
|
|
948
1023
|
Logger({
|
|
949
1024
|
level: "WARN",
|
|
950
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1025
|
+
message: `Parameter Validation warrnings for platform > Content > createFaqCategory \n ${warrning}`,
|
|
951
1026
|
});
|
|
952
1027
|
}
|
|
953
1028
|
|
|
@@ -956,7 +1031,7 @@ class Content {
|
|
|
956
1031
|
const response = await PlatformAPIClient.execute(
|
|
957
1032
|
this.config,
|
|
958
1033
|
"post",
|
|
959
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1034
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category`,
|
|
960
1035
|
query_params,
|
|
961
1036
|
body,
|
|
962
1037
|
requestHeaders,
|
|
@@ -970,7 +1045,7 @@ class Content {
|
|
|
970
1045
|
|
|
971
1046
|
const {
|
|
972
1047
|
error: res_error,
|
|
973
|
-
} = ContentPlatformModel.
|
|
1048
|
+
} = ContentPlatformModel.CreateFaqCategorySchema().validate(responseData, {
|
|
974
1049
|
abortEarly: false,
|
|
975
1050
|
allowUnknown: true,
|
|
976
1051
|
});
|
|
@@ -981,7 +1056,7 @@ class Content {
|
|
|
981
1056
|
} else {
|
|
982
1057
|
Logger({
|
|
983
1058
|
level: "WARN",
|
|
984
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1059
|
+
message: `Response Validation Warnings for platform > Content > createFaqCategory \n ${res_error}`,
|
|
985
1060
|
});
|
|
986
1061
|
}
|
|
987
1062
|
}
|
|
@@ -1037,7 +1112,7 @@ class Content {
|
|
|
1037
1112
|
const response = await PlatformAPIClient.execute(
|
|
1038
1113
|
this.config,
|
|
1039
1114
|
"post",
|
|
1040
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page
|
|
1115
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
|
|
1041
1116
|
query_params,
|
|
1042
1117
|
body,
|
|
1043
1118
|
requestHeaders,
|
|
@@ -1116,7 +1191,7 @@ class Content {
|
|
|
1116
1191
|
const response = await PlatformAPIClient.execute(
|
|
1117
1192
|
this.config,
|
|
1118
1193
|
"post",
|
|
1119
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations
|
|
1194
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
|
|
1120
1195
|
query_params,
|
|
1121
1196
|
body,
|
|
1122
1197
|
requestHeaders,
|
|
@@ -1193,7 +1268,7 @@ class Content {
|
|
|
1193
1268
|
const response = await PlatformAPIClient.execute(
|
|
1194
1269
|
this.config,
|
|
1195
1270
|
"post",
|
|
1196
|
-
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages
|
|
1271
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
|
|
1197
1272
|
query_params,
|
|
1198
1273
|
body,
|
|
1199
1274
|
requestHeaders,
|
|
@@ -1227,23 +1302,23 @@ class Content {
|
|
|
1227
1302
|
}
|
|
1228
1303
|
|
|
1229
1304
|
/**
|
|
1230
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1305
|
+
* @param {ContentPlatformApplicationValidator.CreateSEOMarkupSchemaParam} arg
|
|
1231
1306
|
* - Arg object
|
|
1232
1307
|
*
|
|
1233
1308
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1234
1309
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1235
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1236
|
-
* @name
|
|
1237
|
-
* @summary: Create
|
|
1238
|
-
* @description:
|
|
1310
|
+
* @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
|
|
1311
|
+
* @name createSEOMarkupSchema
|
|
1312
|
+
* @summary: Create SEO Markup Schema
|
|
1313
|
+
* @description: Use this API to Create SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSEOMarkupSchema/).
|
|
1239
1314
|
*/
|
|
1240
|
-
async
|
|
1315
|
+
async createSEOMarkupSchema(
|
|
1241
1316
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1242
1317
|
{ responseHeaders } = { responseHeaders: false }
|
|
1243
1318
|
) {
|
|
1244
1319
|
const {
|
|
1245
1320
|
error,
|
|
1246
|
-
} = ContentPlatformApplicationValidator.
|
|
1321
|
+
} = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
|
|
1247
1322
|
{
|
|
1248
1323
|
body,
|
|
1249
1324
|
},
|
|
@@ -1256,7 +1331,7 @@ class Content {
|
|
|
1256
1331
|
// Showing warrnings if extra unknown parameters are found
|
|
1257
1332
|
const {
|
|
1258
1333
|
error: warrning,
|
|
1259
|
-
} = ContentPlatformApplicationValidator.
|
|
1334
|
+
} = ContentPlatformApplicationValidator.createSEOMarkupSchema().validate(
|
|
1260
1335
|
{
|
|
1261
1336
|
body,
|
|
1262
1337
|
},
|
|
@@ -1265,7 +1340,7 @@ class Content {
|
|
|
1265
1340
|
if (warrning) {
|
|
1266
1341
|
Logger({
|
|
1267
1342
|
level: "WARN",
|
|
1268
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1343
|
+
message: `Parameter Validation warrnings for platform > Content > createSEOMarkupSchema \n ${warrning}`,
|
|
1269
1344
|
});
|
|
1270
1345
|
}
|
|
1271
1346
|
|
|
@@ -1274,7 +1349,7 @@ class Content {
|
|
|
1274
1349
|
const response = await PlatformAPIClient.execute(
|
|
1275
1350
|
this.config,
|
|
1276
1351
|
"post",
|
|
1277
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1352
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema`,
|
|
1278
1353
|
query_params,
|
|
1279
1354
|
body,
|
|
1280
1355
|
requestHeaders,
|
|
@@ -1288,7 +1363,7 @@ class Content {
|
|
|
1288
1363
|
|
|
1289
1364
|
const {
|
|
1290
1365
|
error: res_error,
|
|
1291
|
-
} = ContentPlatformModel.
|
|
1366
|
+
} = ContentPlatformModel.SEOSchemaMarkupTemplate().validate(responseData, {
|
|
1292
1367
|
abortEarly: false,
|
|
1293
1368
|
allowUnknown: true,
|
|
1294
1369
|
});
|
|
@@ -1299,7 +1374,7 @@ class Content {
|
|
|
1299
1374
|
} else {
|
|
1300
1375
|
Logger({
|
|
1301
1376
|
level: "WARN",
|
|
1302
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1377
|
+
message: `Response Validation Warnings for platform > Content > createSEOMarkupSchema \n ${res_error}`,
|
|
1303
1378
|
});
|
|
1304
1379
|
}
|
|
1305
1380
|
}
|
|
@@ -1308,23 +1383,23 @@ class Content {
|
|
|
1308
1383
|
}
|
|
1309
1384
|
|
|
1310
1385
|
/**
|
|
1311
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1386
|
+
* @param {ContentPlatformApplicationValidator.CreateTranslateUILabelsParam} arg
|
|
1312
1387
|
* - Arg object
|
|
1313
1388
|
*
|
|
1314
1389
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1315
1390
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1316
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1317
|
-
* @name
|
|
1318
|
-
* @summary:
|
|
1319
|
-
* @description:
|
|
1391
|
+
* @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
|
|
1392
|
+
* @name createTranslateUILabels
|
|
1393
|
+
* @summary: Add Translate Ui Labels
|
|
1394
|
+
* @description: Creates a new Translate Ui Labels entry with specified configuration and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createTranslateUILabels/).
|
|
1320
1395
|
*/
|
|
1321
|
-
async
|
|
1396
|
+
async createTranslateUILabels(
|
|
1322
1397
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1323
1398
|
{ responseHeaders } = { responseHeaders: false }
|
|
1324
1399
|
) {
|
|
1325
1400
|
const {
|
|
1326
1401
|
error,
|
|
1327
|
-
} = ContentPlatformApplicationValidator.
|
|
1402
|
+
} = ContentPlatformApplicationValidator.createTranslateUILabels().validate(
|
|
1328
1403
|
{
|
|
1329
1404
|
body,
|
|
1330
1405
|
},
|
|
@@ -1337,7 +1412,7 @@ class Content {
|
|
|
1337
1412
|
// Showing warrnings if extra unknown parameters are found
|
|
1338
1413
|
const {
|
|
1339
1414
|
error: warrning,
|
|
1340
|
-
} = ContentPlatformApplicationValidator.
|
|
1415
|
+
} = ContentPlatformApplicationValidator.createTranslateUILabels().validate(
|
|
1341
1416
|
{
|
|
1342
1417
|
body,
|
|
1343
1418
|
},
|
|
@@ -1346,7 +1421,7 @@ class Content {
|
|
|
1346
1421
|
if (warrning) {
|
|
1347
1422
|
Logger({
|
|
1348
1423
|
level: "WARN",
|
|
1349
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1424
|
+
message: `Parameter Validation warrnings for platform > Content > createTranslateUILabels \n ${warrning}`,
|
|
1350
1425
|
});
|
|
1351
1426
|
}
|
|
1352
1427
|
|
|
@@ -1355,7 +1430,7 @@ class Content {
|
|
|
1355
1430
|
const response = await PlatformAPIClient.execute(
|
|
1356
1431
|
this.config,
|
|
1357
1432
|
"post",
|
|
1358
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1433
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels`,
|
|
1359
1434
|
query_params,
|
|
1360
1435
|
body,
|
|
1361
1436
|
requestHeaders,
|
|
@@ -1369,7 +1444,7 @@ class Content {
|
|
|
1369
1444
|
|
|
1370
1445
|
const {
|
|
1371
1446
|
error: res_error,
|
|
1372
|
-
} = ContentPlatformModel.
|
|
1447
|
+
} = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
|
|
1373
1448
|
abortEarly: false,
|
|
1374
1449
|
allowUnknown: true,
|
|
1375
1450
|
});
|
|
@@ -1380,7 +1455,7 @@ class Content {
|
|
|
1380
1455
|
} else {
|
|
1381
1456
|
Logger({
|
|
1382
1457
|
level: "WARN",
|
|
1383
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1458
|
+
message: `Response Validation Warnings for platform > Content > createTranslateUILabels \n ${res_error}`,
|
|
1384
1459
|
});
|
|
1385
1460
|
}
|
|
1386
1461
|
}
|
|
@@ -1389,24 +1464,27 @@ class Content {
|
|
|
1389
1464
|
}
|
|
1390
1465
|
|
|
1391
1466
|
/**
|
|
1392
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1467
|
+
* @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
|
|
1393
1468
|
* - Arg object
|
|
1394
1469
|
*
|
|
1395
1470
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1396
1471
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1397
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1398
|
-
*
|
|
1399
|
-
* @
|
|
1400
|
-
* @
|
|
1472
|
+
* @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
|
|
1473
|
+
* Success response
|
|
1474
|
+
* @name deleteAnnouncement
|
|
1475
|
+
* @summary: Delete an announcement
|
|
1476
|
+
* @description: Remove a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAnnouncement/).
|
|
1401
1477
|
*/
|
|
1402
|
-
async
|
|
1403
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1478
|
+
async deleteAnnouncement(
|
|
1479
|
+
{ announcementId, requestHeaders } = { requestHeaders: {} },
|
|
1404
1480
|
{ responseHeaders } = { responseHeaders: false }
|
|
1405
1481
|
) {
|
|
1406
1482
|
const {
|
|
1407
1483
|
error,
|
|
1408
|
-
} = ContentPlatformApplicationValidator.
|
|
1409
|
-
{
|
|
1484
|
+
} = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
|
|
1485
|
+
{
|
|
1486
|
+
announcementId,
|
|
1487
|
+
},
|
|
1410
1488
|
{ abortEarly: false, allowUnknown: true }
|
|
1411
1489
|
);
|
|
1412
1490
|
if (error) {
|
|
@@ -1416,14 +1494,16 @@ class Content {
|
|
|
1416
1494
|
// Showing warrnings if extra unknown parameters are found
|
|
1417
1495
|
const {
|
|
1418
1496
|
error: warrning,
|
|
1419
|
-
} = ContentPlatformApplicationValidator.
|
|
1420
|
-
{
|
|
1497
|
+
} = ContentPlatformApplicationValidator.deleteAnnouncement().validate(
|
|
1498
|
+
{
|
|
1499
|
+
announcementId,
|
|
1500
|
+
},
|
|
1421
1501
|
{ abortEarly: false, allowUnknown: false }
|
|
1422
1502
|
);
|
|
1423
1503
|
if (warrning) {
|
|
1424
1504
|
Logger({
|
|
1425
1505
|
level: "WARN",
|
|
1426
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1506
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAnnouncement \n ${warrning}`,
|
|
1427
1507
|
});
|
|
1428
1508
|
}
|
|
1429
1509
|
|
|
@@ -1432,7 +1512,7 @@ class Content {
|
|
|
1432
1512
|
const response = await PlatformAPIClient.execute(
|
|
1433
1513
|
this.config,
|
|
1434
1514
|
"delete",
|
|
1435
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1515
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
|
|
1436
1516
|
query_params,
|
|
1437
1517
|
undefined,
|
|
1438
1518
|
requestHeaders,
|
|
@@ -1446,7 +1526,7 @@ class Content {
|
|
|
1446
1526
|
|
|
1447
1527
|
const {
|
|
1448
1528
|
error: res_error,
|
|
1449
|
-
} = ContentPlatformModel.
|
|
1529
|
+
} = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
|
|
1450
1530
|
abortEarly: false,
|
|
1451
1531
|
allowUnknown: true,
|
|
1452
1532
|
});
|
|
@@ -1457,7 +1537,7 @@ class Content {
|
|
|
1457
1537
|
} else {
|
|
1458
1538
|
Logger({
|
|
1459
1539
|
level: "WARN",
|
|
1460
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1540
|
+
message: `Response Validation Warnings for platform > Content > deleteAnnouncement \n ${res_error}`,
|
|
1461
1541
|
});
|
|
1462
1542
|
}
|
|
1463
1543
|
}
|
|
@@ -1466,26 +1546,27 @@ class Content {
|
|
|
1466
1546
|
}
|
|
1467
1547
|
|
|
1468
1548
|
/**
|
|
1469
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1549
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
1470
1550
|
* - Arg object
|
|
1471
1551
|
*
|
|
1472
1552
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1473
1553
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1474
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1475
|
-
*
|
|
1476
|
-
* @
|
|
1477
|
-
* @
|
|
1478
|
-
* @description: Remove a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAnnouncement/).
|
|
1554
|
+
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1555
|
+
* @name deleteAppCustomFieldDefinitionBySlug
|
|
1556
|
+
* @summary: Delete custom fields definition
|
|
1557
|
+
* @description: Custom field definition and its assosiated custom fields value can be deleted using this api on the basis of definition id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomFieldDefinitionBySlug/).
|
|
1479
1558
|
*/
|
|
1480
|
-
async
|
|
1481
|
-
{
|
|
1559
|
+
async deleteAppCustomFieldDefinitionBySlug(
|
|
1560
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
1482
1561
|
{ responseHeaders } = { responseHeaders: false }
|
|
1483
1562
|
) {
|
|
1484
1563
|
const {
|
|
1485
1564
|
error,
|
|
1486
|
-
} = ContentPlatformApplicationValidator.
|
|
1565
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1487
1566
|
{
|
|
1488
|
-
|
|
1567
|
+
slug,
|
|
1568
|
+
resource,
|
|
1569
|
+
namespace,
|
|
1489
1570
|
},
|
|
1490
1571
|
{ abortEarly: false, allowUnknown: true }
|
|
1491
1572
|
);
|
|
@@ -1496,16 +1577,18 @@ class Content {
|
|
|
1496
1577
|
// Showing warrnings if extra unknown parameters are found
|
|
1497
1578
|
const {
|
|
1498
1579
|
error: warrning,
|
|
1499
|
-
} = ContentPlatformApplicationValidator.
|
|
1580
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1500
1581
|
{
|
|
1501
|
-
|
|
1582
|
+
slug,
|
|
1583
|
+
resource,
|
|
1584
|
+
namespace,
|
|
1502
1585
|
},
|
|
1503
1586
|
{ abortEarly: false, allowUnknown: false }
|
|
1504
1587
|
);
|
|
1505
1588
|
if (warrning) {
|
|
1506
1589
|
Logger({
|
|
1507
1590
|
level: "WARN",
|
|
1508
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1591
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
1509
1592
|
});
|
|
1510
1593
|
}
|
|
1511
1594
|
|
|
@@ -1514,7 +1597,7 @@ class Content {
|
|
|
1514
1597
|
const response = await PlatformAPIClient.execute(
|
|
1515
1598
|
this.config,
|
|
1516
1599
|
"delete",
|
|
1517
|
-
`/service/platform/content/
|
|
1600
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
1518
1601
|
query_params,
|
|
1519
1602
|
undefined,
|
|
1520
1603
|
requestHeaders,
|
|
@@ -1528,7 +1611,7 @@ class Content {
|
|
|
1528
1611
|
|
|
1529
1612
|
const {
|
|
1530
1613
|
error: res_error,
|
|
1531
|
-
} = ContentPlatformModel.
|
|
1614
|
+
} = ContentPlatformModel.CustomDataDeleteSchema().validate(responseData, {
|
|
1532
1615
|
abortEarly: false,
|
|
1533
1616
|
allowUnknown: true,
|
|
1534
1617
|
});
|
|
@@ -1539,7 +1622,7 @@ class Content {
|
|
|
1539
1622
|
} else {
|
|
1540
1623
|
Logger({
|
|
1541
1624
|
level: "WARN",
|
|
1542
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1625
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
1543
1626
|
});
|
|
1544
1627
|
}
|
|
1545
1628
|
}
|
|
@@ -1548,25 +1631,26 @@ class Content {
|
|
|
1548
1631
|
}
|
|
1549
1632
|
|
|
1550
1633
|
/**
|
|
1551
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1634
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectBySlugParam} arg
|
|
1552
1635
|
* - Arg object
|
|
1553
1636
|
*
|
|
1554
1637
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1555
1638
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1556
1639
|
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1557
|
-
* @name
|
|
1558
|
-
* @summary: Delete custom
|
|
1559
|
-
* @description: Custom
|
|
1640
|
+
* @name deleteAppCustomObjectBySlug
|
|
1641
|
+
* @summary: Delete custom object
|
|
1642
|
+
* @description: A Custom object entry can be deleted by providing the custom object definition slug and custom object entry slug using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectBySlug/).
|
|
1560
1643
|
*/
|
|
1561
|
-
async
|
|
1562
|
-
{
|
|
1644
|
+
async deleteAppCustomObjectBySlug(
|
|
1645
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
1563
1646
|
{ responseHeaders } = { responseHeaders: false }
|
|
1564
1647
|
) {
|
|
1565
1648
|
const {
|
|
1566
1649
|
error,
|
|
1567
|
-
} = ContentPlatformApplicationValidator.
|
|
1650
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1568
1651
|
{
|
|
1569
|
-
|
|
1652
|
+
definitionSlug,
|
|
1653
|
+
slug,
|
|
1570
1654
|
},
|
|
1571
1655
|
{ abortEarly: false, allowUnknown: true }
|
|
1572
1656
|
);
|
|
@@ -1577,16 +1661,17 @@ class Content {
|
|
|
1577
1661
|
// Showing warrnings if extra unknown parameters are found
|
|
1578
1662
|
const {
|
|
1579
1663
|
error: warrning,
|
|
1580
|
-
} = ContentPlatformApplicationValidator.
|
|
1664
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1581
1665
|
{
|
|
1582
|
-
|
|
1666
|
+
definitionSlug,
|
|
1667
|
+
slug,
|
|
1583
1668
|
},
|
|
1584
1669
|
{ abortEarly: false, allowUnknown: false }
|
|
1585
1670
|
);
|
|
1586
1671
|
if (warrning) {
|
|
1587
1672
|
Logger({
|
|
1588
1673
|
level: "WARN",
|
|
1589
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1674
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectBySlug \n ${warrning}`,
|
|
1590
1675
|
});
|
|
1591
1676
|
}
|
|
1592
1677
|
|
|
@@ -1595,7 +1680,7 @@ class Content {
|
|
|
1595
1680
|
const response = await PlatformAPIClient.execute(
|
|
1596
1681
|
this.config,
|
|
1597
1682
|
"delete",
|
|
1598
|
-
`/service/platform/content/
|
|
1683
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
1599
1684
|
query_params,
|
|
1600
1685
|
undefined,
|
|
1601
1686
|
requestHeaders,
|
|
@@ -1620,7 +1705,7 @@ class Content {
|
|
|
1620
1705
|
} else {
|
|
1621
1706
|
Logger({
|
|
1622
1707
|
level: "WARN",
|
|
1623
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1708
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectBySlug \n ${res_error}`,
|
|
1624
1709
|
});
|
|
1625
1710
|
}
|
|
1626
1711
|
}
|
|
@@ -1629,28 +1714,27 @@ class Content {
|
|
|
1629
1714
|
}
|
|
1630
1715
|
|
|
1631
1716
|
/**
|
|
1632
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1717
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionBySlugParam} arg
|
|
1633
1718
|
* - Arg object
|
|
1634
1719
|
*
|
|
1635
1720
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1636
1721
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1637
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1638
|
-
* Success response
|
|
1639
|
-
*
|
|
1640
|
-
* @
|
|
1641
|
-
* @
|
|
1722
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
|
|
1723
|
+
* - Success response
|
|
1724
|
+
*
|
|
1725
|
+
* @name deleteAppCustomObjectDefinitionBySlug
|
|
1726
|
+
* @summary: Delete custom object definition
|
|
1727
|
+
* @description: Custom object definitions can be deleted using this endpoint by providing the definition ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectDefinitionBySlug/).
|
|
1642
1728
|
*/
|
|
1643
|
-
async
|
|
1644
|
-
{
|
|
1729
|
+
async deleteAppCustomObjectDefinitionBySlug(
|
|
1730
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
1645
1731
|
{ responseHeaders } = { responseHeaders: false }
|
|
1646
1732
|
) {
|
|
1647
1733
|
const {
|
|
1648
1734
|
error,
|
|
1649
|
-
} = ContentPlatformApplicationValidator.
|
|
1735
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1650
1736
|
{
|
|
1651
|
-
|
|
1652
|
-
resourceId,
|
|
1653
|
-
ids,
|
|
1737
|
+
slug,
|
|
1654
1738
|
},
|
|
1655
1739
|
{ abortEarly: false, allowUnknown: true }
|
|
1656
1740
|
);
|
|
@@ -1661,28 +1745,25 @@ class Content {
|
|
|
1661
1745
|
// Showing warrnings if extra unknown parameters are found
|
|
1662
1746
|
const {
|
|
1663
1747
|
error: warrning,
|
|
1664
|
-
} = ContentPlatformApplicationValidator.
|
|
1748
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1665
1749
|
{
|
|
1666
|
-
|
|
1667
|
-
resourceId,
|
|
1668
|
-
ids,
|
|
1750
|
+
slug,
|
|
1669
1751
|
},
|
|
1670
1752
|
{ abortEarly: false, allowUnknown: false }
|
|
1671
1753
|
);
|
|
1672
1754
|
if (warrning) {
|
|
1673
1755
|
Logger({
|
|
1674
1756
|
level: "WARN",
|
|
1675
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1757
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
1676
1758
|
});
|
|
1677
1759
|
}
|
|
1678
1760
|
|
|
1679
1761
|
const query_params = {};
|
|
1680
|
-
query_params["ids"] = ids;
|
|
1681
1762
|
|
|
1682
1763
|
const response = await PlatformAPIClient.execute(
|
|
1683
1764
|
this.config,
|
|
1684
1765
|
"delete",
|
|
1685
|
-
`/service/platform/content/
|
|
1766
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
1686
1767
|
query_params,
|
|
1687
1768
|
undefined,
|
|
1688
1769
|
requestHeaders,
|
|
@@ -1696,10 +1777,10 @@ class Content {
|
|
|
1696
1777
|
|
|
1697
1778
|
const {
|
|
1698
1779
|
error: res_error,
|
|
1699
|
-
} = ContentPlatformModel.
|
|
1700
|
-
|
|
1701
|
-
allowUnknown: true
|
|
1702
|
-
|
|
1780
|
+
} = ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema().validate(
|
|
1781
|
+
responseData,
|
|
1782
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1783
|
+
);
|
|
1703
1784
|
|
|
1704
1785
|
if (res_error) {
|
|
1705
1786
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1707,7 +1788,7 @@ class Content {
|
|
|
1707
1788
|
} else {
|
|
1708
1789
|
Logger({
|
|
1709
1790
|
level: "WARN",
|
|
1710
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1791
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
1711
1792
|
});
|
|
1712
1793
|
}
|
|
1713
1794
|
}
|
|
@@ -1716,25 +1797,25 @@ class Content {
|
|
|
1716
1797
|
}
|
|
1717
1798
|
|
|
1718
1799
|
/**
|
|
1719
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1800
|
+
* @param {ContentPlatformApplicationValidator.DeleteApplicationLanguageParam} arg
|
|
1720
1801
|
* - Arg object
|
|
1721
1802
|
*
|
|
1722
1803
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1723
1804
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1724
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1725
|
-
* @name
|
|
1726
|
-
* @summary:
|
|
1727
|
-
* @description:
|
|
1805
|
+
* @returns {Promise<ContentPlatformModel.OperationResponseSchema>} - Success response
|
|
1806
|
+
* @name deleteApplicationLanguage
|
|
1807
|
+
* @summary: Remove app language
|
|
1808
|
+
* @description: Remove a language from application's supported languages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteApplicationLanguage/).
|
|
1728
1809
|
*/
|
|
1729
|
-
async
|
|
1730
|
-
{
|
|
1810
|
+
async deleteApplicationLanguage(
|
|
1811
|
+
{ locale, requestHeaders } = { requestHeaders: {} },
|
|
1731
1812
|
{ responseHeaders } = { responseHeaders: false }
|
|
1732
1813
|
) {
|
|
1733
1814
|
const {
|
|
1734
1815
|
error,
|
|
1735
|
-
} = ContentPlatformApplicationValidator.
|
|
1816
|
+
} = ContentPlatformApplicationValidator.deleteApplicationLanguage().validate(
|
|
1736
1817
|
{
|
|
1737
|
-
|
|
1818
|
+
locale,
|
|
1738
1819
|
},
|
|
1739
1820
|
{ abortEarly: false, allowUnknown: true }
|
|
1740
1821
|
);
|
|
@@ -1745,16 +1826,16 @@ class Content {
|
|
|
1745
1826
|
// Showing warrnings if extra unknown parameters are found
|
|
1746
1827
|
const {
|
|
1747
1828
|
error: warrning,
|
|
1748
|
-
} = ContentPlatformApplicationValidator.
|
|
1829
|
+
} = ContentPlatformApplicationValidator.deleteApplicationLanguage().validate(
|
|
1749
1830
|
{
|
|
1750
|
-
|
|
1831
|
+
locale,
|
|
1751
1832
|
},
|
|
1752
1833
|
{ abortEarly: false, allowUnknown: false }
|
|
1753
1834
|
);
|
|
1754
1835
|
if (warrning) {
|
|
1755
1836
|
Logger({
|
|
1756
1837
|
level: "WARN",
|
|
1757
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1838
|
+
message: `Parameter Validation warrnings for platform > Content > deleteApplicationLanguage \n ${warrning}`,
|
|
1758
1839
|
});
|
|
1759
1840
|
}
|
|
1760
1841
|
|
|
@@ -1763,7 +1844,7 @@ class Content {
|
|
|
1763
1844
|
const response = await PlatformAPIClient.execute(
|
|
1764
1845
|
this.config,
|
|
1765
1846
|
"delete",
|
|
1766
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1847
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages/${locale}`,
|
|
1767
1848
|
query_params,
|
|
1768
1849
|
undefined,
|
|
1769
1850
|
requestHeaders,
|
|
@@ -1777,7 +1858,7 @@ class Content {
|
|
|
1777
1858
|
|
|
1778
1859
|
const {
|
|
1779
1860
|
error: res_error,
|
|
1780
|
-
} = ContentPlatformModel.
|
|
1861
|
+
} = ContentPlatformModel.OperationResponseSchema().validate(responseData, {
|
|
1781
1862
|
abortEarly: false,
|
|
1782
1863
|
allowUnknown: true,
|
|
1783
1864
|
});
|
|
@@ -1788,7 +1869,7 @@ class Content {
|
|
|
1788
1869
|
} else {
|
|
1789
1870
|
Logger({
|
|
1790
1871
|
level: "WARN",
|
|
1791
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1872
|
+
message: `Response Validation Warnings for platform > Content > deleteApplicationLanguage \n ${res_error}`,
|
|
1792
1873
|
});
|
|
1793
1874
|
}
|
|
1794
1875
|
}
|
|
@@ -1797,25 +1878,23 @@ class Content {
|
|
|
1797
1878
|
}
|
|
1798
1879
|
|
|
1799
1880
|
/**
|
|
1800
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1881
|
+
* @param {ContentPlatformApplicationValidator.DeleteApplicationResourceTranslationParam} arg
|
|
1801
1882
|
* - Arg object
|
|
1802
1883
|
*
|
|
1803
1884
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1804
1885
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1805
|
-
* @returns {Promise<ContentPlatformModel.
|
|
1806
|
-
*
|
|
1807
|
-
*
|
|
1808
|
-
* @
|
|
1809
|
-
* @summary: Delete custom object definition
|
|
1810
|
-
* @description: Custom object definitions can be deleted using this endpoint by providing the definition ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAppCustomObjectDefinition/).
|
|
1886
|
+
* @returns {Promise<ContentPlatformModel.OperationResponseSchema>} - Success response
|
|
1887
|
+
* @name deleteApplicationResourceTranslation
|
|
1888
|
+
* @summary: Remove app translation
|
|
1889
|
+
* @description: Remove translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteApplicationResourceTranslation/).
|
|
1811
1890
|
*/
|
|
1812
|
-
async
|
|
1891
|
+
async deleteApplicationResourceTranslation(
|
|
1813
1892
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
1814
1893
|
{ responseHeaders } = { responseHeaders: false }
|
|
1815
1894
|
) {
|
|
1816
1895
|
const {
|
|
1817
1896
|
error,
|
|
1818
|
-
} = ContentPlatformApplicationValidator.
|
|
1897
|
+
} = ContentPlatformApplicationValidator.deleteApplicationResourceTranslation().validate(
|
|
1819
1898
|
{
|
|
1820
1899
|
id,
|
|
1821
1900
|
},
|
|
@@ -1828,7 +1907,7 @@ class Content {
|
|
|
1828
1907
|
// Showing warrnings if extra unknown parameters are found
|
|
1829
1908
|
const {
|
|
1830
1909
|
error: warrning,
|
|
1831
|
-
} = ContentPlatformApplicationValidator.
|
|
1910
|
+
} = ContentPlatformApplicationValidator.deleteApplicationResourceTranslation().validate(
|
|
1832
1911
|
{
|
|
1833
1912
|
id,
|
|
1834
1913
|
},
|
|
@@ -1837,7 +1916,7 @@ class Content {
|
|
|
1837
1916
|
if (warrning) {
|
|
1838
1917
|
Logger({
|
|
1839
1918
|
level: "WARN",
|
|
1840
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1919
|
+
message: `Parameter Validation warrnings for platform > Content > deleteApplicationResourceTranslation \n ${warrning}`,
|
|
1841
1920
|
});
|
|
1842
1921
|
}
|
|
1843
1922
|
|
|
@@ -1846,7 +1925,7 @@ class Content {
|
|
|
1846
1925
|
const response = await PlatformAPIClient.execute(
|
|
1847
1926
|
this.config,
|
|
1848
1927
|
"delete",
|
|
1849
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1928
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/${id}`,
|
|
1850
1929
|
query_params,
|
|
1851
1930
|
undefined,
|
|
1852
1931
|
requestHeaders,
|
|
@@ -1860,10 +1939,10 @@ class Content {
|
|
|
1860
1939
|
|
|
1861
1940
|
const {
|
|
1862
1941
|
error: res_error,
|
|
1863
|
-
} = ContentPlatformModel.
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
);
|
|
1942
|
+
} = ContentPlatformModel.OperationResponseSchema().validate(responseData, {
|
|
1943
|
+
abortEarly: false,
|
|
1944
|
+
allowUnknown: true,
|
|
1945
|
+
});
|
|
1867
1946
|
|
|
1868
1947
|
if (res_error) {
|
|
1869
1948
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1871,7 +1950,7 @@ class Content {
|
|
|
1871
1950
|
} else {
|
|
1872
1951
|
Logger({
|
|
1873
1952
|
level: "WARN",
|
|
1874
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1953
|
+
message: `Response Validation Warnings for platform > Content > deleteApplicationResourceTranslation \n ${res_error}`,
|
|
1875
1954
|
});
|
|
1876
1955
|
}
|
|
1877
1956
|
}
|
|
@@ -2121,7 +2200,7 @@ class Content {
|
|
|
2121
2200
|
*
|
|
2122
2201
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2123
2202
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2124
|
-
* @returns {Promise<ContentPlatformModel.
|
|
2203
|
+
* @returns {Promise<ContentPlatformModel.FaqSchema>} - Success response
|
|
2125
2204
|
* @name deleteFaqCategory
|
|
2126
2205
|
* @summary: Delete FAQ category
|
|
2127
2206
|
* @description: Remove a specific FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteFaqCategory/).
|
|
@@ -2177,7 +2256,7 @@ class Content {
|
|
|
2177
2256
|
|
|
2178
2257
|
const {
|
|
2179
2258
|
error: res_error,
|
|
2180
|
-
} = ContentPlatformModel.
|
|
2259
|
+
} = ContentPlatformModel.FaqSchema().validate(responseData, {
|
|
2181
2260
|
abortEarly: false,
|
|
2182
2261
|
allowUnknown: true,
|
|
2183
2262
|
});
|
|
@@ -2439,7 +2518,7 @@ class Content {
|
|
|
2439
2518
|
*
|
|
2440
2519
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2441
2520
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2442
|
-
* @returns {Promise<
|
|
2521
|
+
* @returns {Promise<Object>} - Success response
|
|
2443
2522
|
* @name deletePathRedirectionRules
|
|
2444
2523
|
* @summary: Delete path redirection rule
|
|
2445
2524
|
* @description: Remove specific path redirection rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deletePathRedirectionRules/).
|
|
@@ -2493,9 +2572,7 @@ class Content {
|
|
|
2493
2572
|
responseData = response[0];
|
|
2494
2573
|
}
|
|
2495
2574
|
|
|
2496
|
-
const {
|
|
2497
|
-
error: res_error,
|
|
2498
|
-
} = ContentPlatformModel.DeletPathMappingSchema().validate(responseData, {
|
|
2575
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
2499
2576
|
abortEarly: false,
|
|
2500
2577
|
allowUnknown: true,
|
|
2501
2578
|
});
|
|
@@ -2526,14 +2603,14 @@ class Content {
|
|
|
2526
2603
|
* @description: Use this API to Delete SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSEOMarkupSchema/).
|
|
2527
2604
|
*/
|
|
2528
2605
|
async deleteSEOMarkupSchema(
|
|
2529
|
-
{
|
|
2606
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
2530
2607
|
{ responseHeaders } = { responseHeaders: false }
|
|
2531
2608
|
) {
|
|
2532
2609
|
const {
|
|
2533
2610
|
error,
|
|
2534
2611
|
} = ContentPlatformApplicationValidator.deleteSEOMarkupSchema().validate(
|
|
2535
2612
|
{
|
|
2536
|
-
|
|
2613
|
+
id,
|
|
2537
2614
|
},
|
|
2538
2615
|
{ abortEarly: false, allowUnknown: true }
|
|
2539
2616
|
);
|
|
@@ -2546,7 +2623,7 @@ class Content {
|
|
|
2546
2623
|
error: warrning,
|
|
2547
2624
|
} = ContentPlatformApplicationValidator.deleteSEOMarkupSchema().validate(
|
|
2548
2625
|
{
|
|
2549
|
-
|
|
2626
|
+
id,
|
|
2550
2627
|
},
|
|
2551
2628
|
{ abortEarly: false, allowUnknown: false }
|
|
2552
2629
|
);
|
|
@@ -2562,7 +2639,7 @@ class Content {
|
|
|
2562
2639
|
const response = await PlatformAPIClient.execute(
|
|
2563
2640
|
this.config,
|
|
2564
2641
|
"delete",
|
|
2565
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${
|
|
2642
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
|
|
2566
2643
|
query_params,
|
|
2567
2644
|
undefined,
|
|
2568
2645
|
requestHeaders,
|
|
@@ -2686,7 +2763,7 @@ class Content {
|
|
|
2686
2763
|
* @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
|
|
2687
2764
|
* @name editInjectableTag
|
|
2688
2765
|
* @summary: Update HTML tag
|
|
2689
|
-
* @description: Modify an injectable tag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
|
|
2766
|
+
* @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
|
|
2690
2767
|
*/
|
|
2691
2768
|
async editInjectableTag(
|
|
2692
2769
|
{ tagId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2768,18 +2845,18 @@ class Content {
|
|
|
2768
2845
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2769
2846
|
* @returns {Promise<ContentPlatformModel.SEOSchemaMarkupTemplate>} - Success response
|
|
2770
2847
|
* @name editSEOMarkupSchema
|
|
2771
|
-
* @summary:
|
|
2772
|
-
* @description: Use this API to
|
|
2848
|
+
* @summary: Get SEO Markup Schema
|
|
2849
|
+
* @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editSEOMarkupSchema/).
|
|
2773
2850
|
*/
|
|
2774
2851
|
async editSEOMarkupSchema(
|
|
2775
|
-
{
|
|
2852
|
+
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
2776
2853
|
{ responseHeaders } = { responseHeaders: false }
|
|
2777
2854
|
) {
|
|
2778
2855
|
const {
|
|
2779
2856
|
error,
|
|
2780
2857
|
} = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
|
|
2781
2858
|
{
|
|
2782
|
-
|
|
2859
|
+
id,
|
|
2783
2860
|
body,
|
|
2784
2861
|
},
|
|
2785
2862
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -2793,7 +2870,7 @@ class Content {
|
|
|
2793
2870
|
error: warrning,
|
|
2794
2871
|
} = ContentPlatformApplicationValidator.editSEOMarkupSchema().validate(
|
|
2795
2872
|
{
|
|
2796
|
-
|
|
2873
|
+
id,
|
|
2797
2874
|
body,
|
|
2798
2875
|
},
|
|
2799
2876
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -2810,7 +2887,7 @@ class Content {
|
|
|
2810
2887
|
const response = await PlatformAPIClient.execute(
|
|
2811
2888
|
this.config,
|
|
2812
2889
|
"put",
|
|
2813
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${
|
|
2890
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
|
|
2814
2891
|
query_params,
|
|
2815
2892
|
body,
|
|
2816
2893
|
requestHeaders,
|
|
@@ -2844,7 +2921,7 @@ class Content {
|
|
|
2844
2921
|
}
|
|
2845
2922
|
|
|
2846
2923
|
/**
|
|
2847
|
-
* @param {ContentPlatformApplicationValidator.
|
|
2924
|
+
* @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
|
|
2848
2925
|
* - Arg object
|
|
2849
2926
|
*
|
|
2850
2927
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -2852,19 +2929,19 @@ class Content {
|
|
|
2852
2929
|
* @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
|
|
2853
2930
|
* - Success response
|
|
2854
2931
|
*
|
|
2855
|
-
* @name
|
|
2932
|
+
* @name exportAppCustomObjectEntriesBySlug
|
|
2856
2933
|
* @summary: Initiate download for bulk custom object entries
|
|
2857
|
-
* @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
2934
|
+
* @description: Custom object bulk export of bulk entries can be perform using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/exportAppCustomObjectEntriesBySlug/).
|
|
2858
2935
|
*/
|
|
2859
|
-
async
|
|
2860
|
-
{
|
|
2936
|
+
async exportAppCustomObjectEntriesBySlug(
|
|
2937
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
2861
2938
|
{ responseHeaders } = { responseHeaders: false }
|
|
2862
2939
|
) {
|
|
2863
2940
|
const {
|
|
2864
2941
|
error,
|
|
2865
|
-
} = ContentPlatformApplicationValidator.
|
|
2942
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2866
2943
|
{
|
|
2867
|
-
|
|
2944
|
+
slug,
|
|
2868
2945
|
},
|
|
2869
2946
|
{ abortEarly: false, allowUnknown: true }
|
|
2870
2947
|
);
|
|
@@ -2875,16 +2952,16 @@ class Content {
|
|
|
2875
2952
|
// Showing warrnings if extra unknown parameters are found
|
|
2876
2953
|
const {
|
|
2877
2954
|
error: warrning,
|
|
2878
|
-
} = ContentPlatformApplicationValidator.
|
|
2955
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2879
2956
|
{
|
|
2880
|
-
|
|
2957
|
+
slug,
|
|
2881
2958
|
},
|
|
2882
2959
|
{ abortEarly: false, allowUnknown: false }
|
|
2883
2960
|
);
|
|
2884
2961
|
if (warrning) {
|
|
2885
2962
|
Logger({
|
|
2886
2963
|
level: "WARN",
|
|
2887
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
2964
|
+
message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
2888
2965
|
});
|
|
2889
2966
|
}
|
|
2890
2967
|
|
|
@@ -2893,7 +2970,7 @@ class Content {
|
|
|
2893
2970
|
const response = await PlatformAPIClient.execute(
|
|
2894
2971
|
this.config,
|
|
2895
2972
|
"get",
|
|
2896
|
-
`/service/platform/content/
|
|
2973
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
|
|
2897
2974
|
query_params,
|
|
2898
2975
|
undefined,
|
|
2899
2976
|
requestHeaders,
|
|
@@ -2918,7 +2995,7 @@ class Content {
|
|
|
2918
2995
|
} else {
|
|
2919
2996
|
Logger({
|
|
2920
2997
|
level: "WARN",
|
|
2921
|
-
message: `Response Validation Warnings for platform > Content >
|
|
2998
|
+
message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
2922
2999
|
});
|
|
2923
3000
|
}
|
|
2924
3001
|
}
|
|
@@ -3175,27 +3252,41 @@ class Content {
|
|
|
3175
3252
|
}
|
|
3176
3253
|
|
|
3177
3254
|
/**
|
|
3178
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3255
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
3179
3256
|
* - Arg object
|
|
3180
3257
|
*
|
|
3181
3258
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3182
3259
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3183
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3184
|
-
*
|
|
3185
|
-
*
|
|
3186
|
-
* @
|
|
3187
|
-
* @
|
|
3188
|
-
* @description: Use this API to retrieve the definitions of custom fields using definition_id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinition/).
|
|
3260
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
3261
|
+
* Success response
|
|
3262
|
+
* @name getAppCustomFieldDefinitionByResource
|
|
3263
|
+
* @summary: Get custom fields definitions for a given resource type
|
|
3264
|
+
* @description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitionByResource/).
|
|
3189
3265
|
*/
|
|
3190
|
-
async
|
|
3191
|
-
{
|
|
3266
|
+
async getAppCustomFieldDefinitionByResource(
|
|
3267
|
+
{
|
|
3268
|
+
pageNo,
|
|
3269
|
+
pageSize,
|
|
3270
|
+
resource,
|
|
3271
|
+
types,
|
|
3272
|
+
search,
|
|
3273
|
+
slugs,
|
|
3274
|
+
namespaces,
|
|
3275
|
+
requestHeaders,
|
|
3276
|
+
} = { requestHeaders: {} },
|
|
3192
3277
|
{ responseHeaders } = { responseHeaders: false }
|
|
3193
3278
|
) {
|
|
3194
3279
|
const {
|
|
3195
3280
|
error,
|
|
3196
|
-
} = ContentPlatformApplicationValidator.
|
|
3281
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3197
3282
|
{
|
|
3198
|
-
|
|
3283
|
+
pageNo,
|
|
3284
|
+
pageSize,
|
|
3285
|
+
resource,
|
|
3286
|
+
types,
|
|
3287
|
+
search,
|
|
3288
|
+
slugs,
|
|
3289
|
+
namespaces,
|
|
3199
3290
|
},
|
|
3200
3291
|
{ abortEarly: false, allowUnknown: true }
|
|
3201
3292
|
);
|
|
@@ -3206,25 +3297,37 @@ class Content {
|
|
|
3206
3297
|
// Showing warrnings if extra unknown parameters are found
|
|
3207
3298
|
const {
|
|
3208
3299
|
error: warrning,
|
|
3209
|
-
} = ContentPlatformApplicationValidator.
|
|
3300
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3210
3301
|
{
|
|
3211
|
-
|
|
3302
|
+
pageNo,
|
|
3303
|
+
pageSize,
|
|
3304
|
+
resource,
|
|
3305
|
+
types,
|
|
3306
|
+
search,
|
|
3307
|
+
slugs,
|
|
3308
|
+
namespaces,
|
|
3212
3309
|
},
|
|
3213
3310
|
{ abortEarly: false, allowUnknown: false }
|
|
3214
3311
|
);
|
|
3215
3312
|
if (warrning) {
|
|
3216
3313
|
Logger({
|
|
3217
3314
|
level: "WARN",
|
|
3218
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3315
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${warrning}`,
|
|
3219
3316
|
});
|
|
3220
3317
|
}
|
|
3221
3318
|
|
|
3222
3319
|
const query_params = {};
|
|
3320
|
+
query_params["page_no"] = pageNo;
|
|
3321
|
+
query_params["page_size"] = pageSize;
|
|
3322
|
+
query_params["types"] = types;
|
|
3323
|
+
query_params["search"] = search;
|
|
3324
|
+
query_params["slugs"] = slugs;
|
|
3325
|
+
query_params["namespaces"] = namespaces;
|
|
3223
3326
|
|
|
3224
3327
|
const response = await PlatformAPIClient.execute(
|
|
3225
3328
|
this.config,
|
|
3226
3329
|
"get",
|
|
3227
|
-
`/service/platform/content/
|
|
3330
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
|
|
3228
3331
|
query_params,
|
|
3229
3332
|
undefined,
|
|
3230
3333
|
requestHeaders,
|
|
@@ -3238,7 +3341,7 @@ class Content {
|
|
|
3238
3341
|
|
|
3239
3342
|
const {
|
|
3240
3343
|
error: res_error,
|
|
3241
|
-
} = ContentPlatformModel.
|
|
3344
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3242
3345
|
responseData,
|
|
3243
3346
|
{ abortEarly: false, allowUnknown: true }
|
|
3244
3347
|
);
|
|
@@ -3249,7 +3352,7 @@ class Content {
|
|
|
3249
3352
|
} else {
|
|
3250
3353
|
Logger({
|
|
3251
3354
|
level: "WARN",
|
|
3252
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3355
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${res_error}`,
|
|
3253
3356
|
});
|
|
3254
3357
|
}
|
|
3255
3358
|
}
|
|
@@ -3258,34 +3361,29 @@ class Content {
|
|
|
3258
3361
|
}
|
|
3259
3362
|
|
|
3260
3363
|
/**
|
|
3261
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3364
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionBySlugParam} arg
|
|
3262
3365
|
* - Arg object
|
|
3263
3366
|
*
|
|
3264
3367
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3265
3368
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3266
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3369
|
+
* @returns {Promise<ContentPlatformModel.MetaFieldDefinitionDetailResSchema>}
|
|
3267
3370
|
* - Success response
|
|
3268
3371
|
*
|
|
3269
|
-
* @name
|
|
3270
|
-
* @summary: Get custom fields
|
|
3271
|
-
* @description: Custom field definitions
|
|
3372
|
+
* @name getAppCustomFieldDefinitionBySlug
|
|
3373
|
+
* @summary: Get custom fields definition by resource, slug and namespace
|
|
3374
|
+
* @description: Custom field definitions can be retrived from this using its slug, namespace and resource - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitionBySlug/).
|
|
3272
3375
|
*/
|
|
3273
|
-
async
|
|
3274
|
-
{
|
|
3275
|
-
requestHeaders: {},
|
|
3276
|
-
},
|
|
3376
|
+
async getAppCustomFieldDefinitionBySlug(
|
|
3377
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
3277
3378
|
{ responseHeaders } = { responseHeaders: false }
|
|
3278
3379
|
) {
|
|
3279
3380
|
const {
|
|
3280
3381
|
error,
|
|
3281
|
-
} = ContentPlatformApplicationValidator.
|
|
3382
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3282
3383
|
{
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
types,
|
|
3287
|
-
search,
|
|
3288
|
-
slugs,
|
|
3384
|
+
slug,
|
|
3385
|
+
resource,
|
|
3386
|
+
namespace,
|
|
3289
3387
|
},
|
|
3290
3388
|
{ abortEarly: false, allowUnknown: true }
|
|
3291
3389
|
);
|
|
@@ -3296,36 +3394,27 @@ class Content {
|
|
|
3296
3394
|
// Showing warrnings if extra unknown parameters are found
|
|
3297
3395
|
const {
|
|
3298
3396
|
error: warrning,
|
|
3299
|
-
} = ContentPlatformApplicationValidator.
|
|
3397
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3300
3398
|
{
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
types,
|
|
3305
|
-
search,
|
|
3306
|
-
slugs,
|
|
3399
|
+
slug,
|
|
3400
|
+
resource,
|
|
3401
|
+
namespace,
|
|
3307
3402
|
},
|
|
3308
3403
|
{ abortEarly: false, allowUnknown: false }
|
|
3309
3404
|
);
|
|
3310
3405
|
if (warrning) {
|
|
3311
3406
|
Logger({
|
|
3312
3407
|
level: "WARN",
|
|
3313
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3408
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
3314
3409
|
});
|
|
3315
3410
|
}
|
|
3316
3411
|
|
|
3317
3412
|
const query_params = {};
|
|
3318
|
-
query_params["page_no"] = pageNo;
|
|
3319
|
-
query_params["page_size"] = pageSize;
|
|
3320
|
-
query_params["resources"] = resources;
|
|
3321
|
-
query_params["types"] = types;
|
|
3322
|
-
query_params["search"] = search;
|
|
3323
|
-
query_params["slugs"] = slugs;
|
|
3324
3413
|
|
|
3325
3414
|
const response = await PlatformAPIClient.execute(
|
|
3326
3415
|
this.config,
|
|
3327
3416
|
"get",
|
|
3328
|
-
`/service/platform/content/
|
|
3417
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
3329
3418
|
query_params,
|
|
3330
3419
|
undefined,
|
|
3331
3420
|
requestHeaders,
|
|
@@ -3339,7 +3428,7 @@ class Content {
|
|
|
3339
3428
|
|
|
3340
3429
|
const {
|
|
3341
3430
|
error: res_error,
|
|
3342
|
-
} = ContentPlatformModel.
|
|
3431
|
+
} = ContentPlatformModel.MetaFieldDefinitionDetailResSchema().validate(
|
|
3343
3432
|
responseData,
|
|
3344
3433
|
{ abortEarly: false, allowUnknown: true }
|
|
3345
3434
|
);
|
|
@@ -3350,7 +3439,7 @@ class Content {
|
|
|
3350
3439
|
} else {
|
|
3351
3440
|
Logger({
|
|
3352
3441
|
level: "WARN",
|
|
3353
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3442
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
3354
3443
|
});
|
|
3355
3444
|
}
|
|
3356
3445
|
}
|
|
@@ -3359,27 +3448,41 @@ class Content {
|
|
|
3359
3448
|
}
|
|
3360
3449
|
|
|
3361
3450
|
/**
|
|
3362
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3451
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
|
|
3363
3452
|
* - Arg object
|
|
3364
3453
|
*
|
|
3365
3454
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3366
3455
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3367
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3368
|
-
*
|
|
3369
|
-
* @
|
|
3370
|
-
* @
|
|
3456
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
3457
|
+
* Success response
|
|
3458
|
+
* @name getAppCustomFieldDefinitions
|
|
3459
|
+
* @summary: Get custom fields definitions
|
|
3460
|
+
* @description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitions/).
|
|
3371
3461
|
*/
|
|
3372
|
-
async
|
|
3373
|
-
{
|
|
3462
|
+
async getAppCustomFieldDefinitions(
|
|
3463
|
+
{
|
|
3464
|
+
pageNo,
|
|
3465
|
+
pageSize,
|
|
3466
|
+
resources,
|
|
3467
|
+
types,
|
|
3468
|
+
search,
|
|
3469
|
+
slugs,
|
|
3470
|
+
namespaces,
|
|
3471
|
+
requestHeaders,
|
|
3472
|
+
} = { requestHeaders: {} },
|
|
3374
3473
|
{ responseHeaders } = { responseHeaders: false }
|
|
3375
3474
|
) {
|
|
3376
3475
|
const {
|
|
3377
3476
|
error,
|
|
3378
|
-
} = ContentPlatformApplicationValidator.
|
|
3477
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3379
3478
|
{
|
|
3380
|
-
|
|
3479
|
+
pageNo,
|
|
3381
3480
|
pageSize,
|
|
3382
|
-
|
|
3481
|
+
resources,
|
|
3482
|
+
types,
|
|
3483
|
+
search,
|
|
3484
|
+
slugs,
|
|
3485
|
+
namespaces,
|
|
3383
3486
|
},
|
|
3384
3487
|
{ abortEarly: false, allowUnknown: true }
|
|
3385
3488
|
);
|
|
@@ -3390,30 +3493,38 @@ class Content {
|
|
|
3390
3493
|
// Showing warrnings if extra unknown parameters are found
|
|
3391
3494
|
const {
|
|
3392
3495
|
error: warrning,
|
|
3393
|
-
} = ContentPlatformApplicationValidator.
|
|
3496
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3394
3497
|
{
|
|
3395
|
-
|
|
3498
|
+
pageNo,
|
|
3396
3499
|
pageSize,
|
|
3397
|
-
|
|
3500
|
+
resources,
|
|
3501
|
+
types,
|
|
3502
|
+
search,
|
|
3503
|
+
slugs,
|
|
3504
|
+
namespaces,
|
|
3398
3505
|
},
|
|
3399
3506
|
{ abortEarly: false, allowUnknown: false }
|
|
3400
3507
|
);
|
|
3401
3508
|
if (warrning) {
|
|
3402
3509
|
Logger({
|
|
3403
3510
|
level: "WARN",
|
|
3404
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3511
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
|
|
3405
3512
|
});
|
|
3406
3513
|
}
|
|
3407
3514
|
|
|
3408
3515
|
const query_params = {};
|
|
3409
|
-
query_params["
|
|
3516
|
+
query_params["page_no"] = pageNo;
|
|
3410
3517
|
query_params["page_size"] = pageSize;
|
|
3411
|
-
query_params["
|
|
3518
|
+
query_params["resources"] = resources;
|
|
3519
|
+
query_params["types"] = types;
|
|
3520
|
+
query_params["search"] = search;
|
|
3521
|
+
query_params["slugs"] = slugs;
|
|
3522
|
+
query_params["namespaces"] = namespaces;
|
|
3412
3523
|
|
|
3413
3524
|
const response = await PlatformAPIClient.execute(
|
|
3414
3525
|
this.config,
|
|
3415
3526
|
"get",
|
|
3416
|
-
`/service/platform/content/
|
|
3527
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/definition`,
|
|
3417
3528
|
query_params,
|
|
3418
3529
|
undefined,
|
|
3419
3530
|
requestHeaders,
|
|
@@ -3427,10 +3538,10 @@ class Content {
|
|
|
3427
3538
|
|
|
3428
3539
|
const {
|
|
3429
3540
|
error: res_error,
|
|
3430
|
-
} = ContentPlatformModel.
|
|
3431
|
-
|
|
3432
|
-
allowUnknown: true
|
|
3433
|
-
|
|
3541
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3542
|
+
responseData,
|
|
3543
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3544
|
+
);
|
|
3434
3545
|
|
|
3435
3546
|
if (res_error) {
|
|
3436
3547
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3438,7 +3549,7 @@ class Content {
|
|
|
3438
3549
|
} else {
|
|
3439
3550
|
Logger({
|
|
3440
3551
|
level: "WARN",
|
|
3441
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3552
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
|
|
3442
3553
|
});
|
|
3443
3554
|
}
|
|
3444
3555
|
}
|
|
@@ -3524,89 +3635,7 @@ class Content {
|
|
|
3524
3635
|
}
|
|
3525
3636
|
|
|
3526
3637
|
/**
|
|
3527
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3528
|
-
* - Arg object
|
|
3529
|
-
*
|
|
3530
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3531
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3532
|
-
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseSchema>} -
|
|
3533
|
-
* Success response
|
|
3534
|
-
* @name getAppCustomFields
|
|
3535
|
-
* @summary: Get list of custom fields of gives resource
|
|
3536
|
-
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFields/).
|
|
3537
|
-
*/
|
|
3538
|
-
async getAppCustomFields(
|
|
3539
|
-
{ resource, requestHeaders } = { requestHeaders: {} },
|
|
3540
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
3541
|
-
) {
|
|
3542
|
-
const {
|
|
3543
|
-
error,
|
|
3544
|
-
} = ContentPlatformApplicationValidator.getAppCustomFields().validate(
|
|
3545
|
-
{
|
|
3546
|
-
resource,
|
|
3547
|
-
},
|
|
3548
|
-
{ abortEarly: false, allowUnknown: true }
|
|
3549
|
-
);
|
|
3550
|
-
if (error) {
|
|
3551
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
// Showing warrnings if extra unknown parameters are found
|
|
3555
|
-
const {
|
|
3556
|
-
error: warrning,
|
|
3557
|
-
} = ContentPlatformApplicationValidator.getAppCustomFields().validate(
|
|
3558
|
-
{
|
|
3559
|
-
resource,
|
|
3560
|
-
},
|
|
3561
|
-
{ abortEarly: false, allowUnknown: false }
|
|
3562
|
-
);
|
|
3563
|
-
if (warrning) {
|
|
3564
|
-
Logger({
|
|
3565
|
-
level: "WARN",
|
|
3566
|
-
message: `Parameter Validation warrnings for platform > Content > getAppCustomFields \n ${warrning}`,
|
|
3567
|
-
});
|
|
3568
|
-
}
|
|
3569
|
-
|
|
3570
|
-
const query_params = {};
|
|
3571
|
-
|
|
3572
|
-
const response = await PlatformAPIClient.execute(
|
|
3573
|
-
this.config,
|
|
3574
|
-
"get",
|
|
3575
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}`,
|
|
3576
|
-
query_params,
|
|
3577
|
-
undefined,
|
|
3578
|
-
requestHeaders,
|
|
3579
|
-
{ responseHeaders }
|
|
3580
|
-
);
|
|
3581
|
-
|
|
3582
|
-
let responseData = response;
|
|
3583
|
-
if (responseHeaders) {
|
|
3584
|
-
responseData = response[0];
|
|
3585
|
-
}
|
|
3586
|
-
|
|
3587
|
-
const {
|
|
3588
|
-
error: res_error,
|
|
3589
|
-
} = ContentPlatformModel.CustomFieldsResponseSchema().validate(
|
|
3590
|
-
responseData,
|
|
3591
|
-
{ abortEarly: false, allowUnknown: true }
|
|
3592
|
-
);
|
|
3593
|
-
|
|
3594
|
-
if (res_error) {
|
|
3595
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
3596
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3597
|
-
} else {
|
|
3598
|
-
Logger({
|
|
3599
|
-
level: "WARN",
|
|
3600
|
-
message: `Response Validation Warnings for platform > Content > getAppCustomFields \n ${res_error}`,
|
|
3601
|
-
});
|
|
3602
|
-
}
|
|
3603
|
-
}
|
|
3604
|
-
|
|
3605
|
-
return response;
|
|
3606
|
-
}
|
|
3607
|
-
|
|
3608
|
-
/**
|
|
3609
|
-
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceIdParam} arg
|
|
3638
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceSlugParam} arg
|
|
3610
3639
|
* - Arg object
|
|
3611
3640
|
*
|
|
3612
3641
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -3614,20 +3643,20 @@ class Content {
|
|
|
3614
3643
|
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
3615
3644
|
* - Success response
|
|
3616
3645
|
*
|
|
3617
|
-
* @name
|
|
3618
|
-
* @summary: Get list of custom fields of given resource and resource
|
|
3619
|
-
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource
|
|
3646
|
+
* @name getAppCustomFieldsByResourceSlug
|
|
3647
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
3648
|
+
* @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/platform/content/getAppCustomFieldsByResourceSlug/).
|
|
3620
3649
|
*/
|
|
3621
|
-
async
|
|
3622
|
-
{ resource,
|
|
3650
|
+
async getAppCustomFieldsByResourceSlug(
|
|
3651
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
3623
3652
|
{ responseHeaders } = { responseHeaders: false }
|
|
3624
3653
|
) {
|
|
3625
3654
|
const {
|
|
3626
3655
|
error,
|
|
3627
|
-
} = ContentPlatformApplicationValidator.
|
|
3656
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3628
3657
|
{
|
|
3629
3658
|
resource,
|
|
3630
|
-
|
|
3659
|
+
resourceSlug,
|
|
3631
3660
|
},
|
|
3632
3661
|
{ abortEarly: false, allowUnknown: true }
|
|
3633
3662
|
);
|
|
@@ -3638,17 +3667,17 @@ class Content {
|
|
|
3638
3667
|
// Showing warrnings if extra unknown parameters are found
|
|
3639
3668
|
const {
|
|
3640
3669
|
error: warrning,
|
|
3641
|
-
} = ContentPlatformApplicationValidator.
|
|
3670
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3642
3671
|
{
|
|
3643
3672
|
resource,
|
|
3644
|
-
|
|
3673
|
+
resourceSlug,
|
|
3645
3674
|
},
|
|
3646
3675
|
{ abortEarly: false, allowUnknown: false }
|
|
3647
3676
|
);
|
|
3648
3677
|
if (warrning) {
|
|
3649
3678
|
Logger({
|
|
3650
3679
|
level: "WARN",
|
|
3651
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3680
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${warrning}`,
|
|
3652
3681
|
});
|
|
3653
3682
|
}
|
|
3654
3683
|
|
|
@@ -3657,7 +3686,7 @@ class Content {
|
|
|
3657
3686
|
const response = await PlatformAPIClient.execute(
|
|
3658
3687
|
this.config,
|
|
3659
3688
|
"get",
|
|
3660
|
-
`/service/platform/content/
|
|
3689
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
3661
3690
|
query_params,
|
|
3662
3691
|
undefined,
|
|
3663
3692
|
requestHeaders,
|
|
@@ -3682,7 +3711,7 @@ class Content {
|
|
|
3682
3711
|
} else {
|
|
3683
3712
|
Logger({
|
|
3684
3713
|
level: "WARN",
|
|
3685
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3714
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${res_error}`,
|
|
3686
3715
|
});
|
|
3687
3716
|
}
|
|
3688
3717
|
}
|
|
@@ -3691,25 +3720,27 @@ class Content {
|
|
|
3691
3720
|
}
|
|
3692
3721
|
|
|
3693
3722
|
/**
|
|
3694
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3723
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectBySlugParam} arg
|
|
3695
3724
|
* - Arg object
|
|
3696
3725
|
*
|
|
3697
3726
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3698
3727
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3699
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3700
|
-
*
|
|
3728
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
3729
|
+
* Success response
|
|
3730
|
+
* @name getAppCustomObjectBySlug
|
|
3701
3731
|
* @summary: Get custom object details
|
|
3702
|
-
* @description: Details of custom
|
|
3732
|
+
* @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectBySlug/).
|
|
3703
3733
|
*/
|
|
3704
|
-
async
|
|
3705
|
-
{
|
|
3734
|
+
async getAppCustomObjectBySlug(
|
|
3735
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
3706
3736
|
{ responseHeaders } = { responseHeaders: false }
|
|
3707
3737
|
) {
|
|
3708
3738
|
const {
|
|
3709
3739
|
error,
|
|
3710
|
-
} = ContentPlatformApplicationValidator.
|
|
3740
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3711
3741
|
{
|
|
3712
|
-
|
|
3742
|
+
definitionSlug,
|
|
3743
|
+
slug,
|
|
3713
3744
|
},
|
|
3714
3745
|
{ abortEarly: false, allowUnknown: true }
|
|
3715
3746
|
);
|
|
@@ -3720,16 +3751,17 @@ class Content {
|
|
|
3720
3751
|
// Showing warrnings if extra unknown parameters are found
|
|
3721
3752
|
const {
|
|
3722
3753
|
error: warrning,
|
|
3723
|
-
} = ContentPlatformApplicationValidator.
|
|
3754
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3724
3755
|
{
|
|
3725
|
-
|
|
3756
|
+
definitionSlug,
|
|
3757
|
+
slug,
|
|
3726
3758
|
},
|
|
3727
3759
|
{ abortEarly: false, allowUnknown: false }
|
|
3728
3760
|
);
|
|
3729
3761
|
if (warrning) {
|
|
3730
3762
|
Logger({
|
|
3731
3763
|
level: "WARN",
|
|
3732
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3764
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectBySlug \n ${warrning}`,
|
|
3733
3765
|
});
|
|
3734
3766
|
}
|
|
3735
3767
|
|
|
@@ -3738,7 +3770,7 @@ class Content {
|
|
|
3738
3770
|
const response = await PlatformAPIClient.execute(
|
|
3739
3771
|
this.config,
|
|
3740
3772
|
"get",
|
|
3741
|
-
`/service/platform/content/
|
|
3773
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
3742
3774
|
query_params,
|
|
3743
3775
|
undefined,
|
|
3744
3776
|
requestHeaders,
|
|
@@ -3752,7 +3784,7 @@ class Content {
|
|
|
3752
3784
|
|
|
3753
3785
|
const {
|
|
3754
3786
|
error: res_error,
|
|
3755
|
-
} = ContentPlatformModel.
|
|
3787
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
3756
3788
|
abortEarly: false,
|
|
3757
3789
|
allowUnknown: true,
|
|
3758
3790
|
});
|
|
@@ -3763,7 +3795,7 @@ class Content {
|
|
|
3763
3795
|
} else {
|
|
3764
3796
|
Logger({
|
|
3765
3797
|
level: "WARN",
|
|
3766
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3798
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectBySlug \n ${res_error}`,
|
|
3767
3799
|
});
|
|
3768
3800
|
}
|
|
3769
3801
|
}
|
|
@@ -3772,26 +3804,27 @@ class Content {
|
|
|
3772
3804
|
}
|
|
3773
3805
|
|
|
3774
3806
|
/**
|
|
3775
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3807
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionBySlugParam} arg
|
|
3776
3808
|
* - Arg object
|
|
3777
3809
|
*
|
|
3778
3810
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3779
3811
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3780
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3781
|
-
* Success response
|
|
3782
|
-
*
|
|
3812
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
3813
|
+
* - Success response
|
|
3814
|
+
*
|
|
3815
|
+
* @name getAppCustomObjectDefinitionBySlug
|
|
3783
3816
|
* @summary: Get custom object definition
|
|
3784
|
-
* @description: Custom object definitions can be fetched using their definition
|
|
3817
|
+
* @description: Custom object definitions can be fetched using their custom object definition slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectDefinitionBySlug/).
|
|
3785
3818
|
*/
|
|
3786
|
-
async
|
|
3787
|
-
{
|
|
3819
|
+
async getAppCustomObjectDefinitionBySlug(
|
|
3820
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
3788
3821
|
{ responseHeaders } = { responseHeaders: false }
|
|
3789
3822
|
) {
|
|
3790
3823
|
const {
|
|
3791
3824
|
error,
|
|
3792
|
-
} = ContentPlatformApplicationValidator.
|
|
3825
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3793
3826
|
{
|
|
3794
|
-
|
|
3827
|
+
slug,
|
|
3795
3828
|
},
|
|
3796
3829
|
{ abortEarly: false, allowUnknown: true }
|
|
3797
3830
|
);
|
|
@@ -3802,16 +3835,16 @@ class Content {
|
|
|
3802
3835
|
// Showing warrnings if extra unknown parameters are found
|
|
3803
3836
|
const {
|
|
3804
3837
|
error: warrning,
|
|
3805
|
-
} = ContentPlatformApplicationValidator.
|
|
3838
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3806
3839
|
{
|
|
3807
|
-
|
|
3840
|
+
slug,
|
|
3808
3841
|
},
|
|
3809
3842
|
{ abortEarly: false, allowUnknown: false }
|
|
3810
3843
|
);
|
|
3811
3844
|
if (warrning) {
|
|
3812
3845
|
Logger({
|
|
3813
3846
|
level: "WARN",
|
|
3814
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3847
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
3815
3848
|
});
|
|
3816
3849
|
}
|
|
3817
3850
|
|
|
@@ -3820,7 +3853,7 @@ class Content {
|
|
|
3820
3853
|
const response = await PlatformAPIClient.execute(
|
|
3821
3854
|
this.config,
|
|
3822
3855
|
"get",
|
|
3823
|
-
`/service/platform/content/
|
|
3856
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
3824
3857
|
query_params,
|
|
3825
3858
|
undefined,
|
|
3826
3859
|
requestHeaders,
|
|
@@ -3834,7 +3867,7 @@ class Content {
|
|
|
3834
3867
|
|
|
3835
3868
|
const {
|
|
3836
3869
|
error: res_error,
|
|
3837
|
-
} = ContentPlatformModel.
|
|
3870
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
3838
3871
|
responseData,
|
|
3839
3872
|
{ abortEarly: false, allowUnknown: true }
|
|
3840
3873
|
);
|
|
@@ -3845,7 +3878,7 @@ class Content {
|
|
|
3845
3878
|
} else {
|
|
3846
3879
|
Logger({
|
|
3847
3880
|
level: "WARN",
|
|
3848
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3881
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
3849
3882
|
});
|
|
3850
3883
|
}
|
|
3851
3884
|
}
|
|
@@ -3909,7 +3942,7 @@ class Content {
|
|
|
3909
3942
|
const response = await PlatformAPIClient.execute(
|
|
3910
3943
|
this.config,
|
|
3911
3944
|
"get",
|
|
3912
|
-
`/service/platform/content/
|
|
3945
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
|
|
3913
3946
|
query_params,
|
|
3914
3947
|
undefined,
|
|
3915
3948
|
requestHeaders,
|
|
@@ -3943,27 +3976,29 @@ class Content {
|
|
|
3943
3976
|
}
|
|
3944
3977
|
|
|
3945
3978
|
/**
|
|
3946
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3979
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectsBySlugParam} arg
|
|
3947
3980
|
* - Arg object
|
|
3948
3981
|
*
|
|
3949
3982
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3950
3983
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3951
3984
|
* @returns {Promise<ContentPlatformModel.CustomObjectsSchema>} - Success response
|
|
3952
|
-
* @name
|
|
3985
|
+
* @name getAppCustomObjectsBySlug
|
|
3953
3986
|
* @summary: Get list of custom objects
|
|
3954
|
-
* @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
3987
|
+
* @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectsBySlug/).
|
|
3955
3988
|
*/
|
|
3956
|
-
async
|
|
3957
|
-
{ pageNo, pageSize,
|
|
3989
|
+
async getAppCustomObjectsBySlug(
|
|
3990
|
+
{ pageNo, pageSize, definitionSlug, requestHeaders } = {
|
|
3991
|
+
requestHeaders: {},
|
|
3992
|
+
},
|
|
3958
3993
|
{ responseHeaders } = { responseHeaders: false }
|
|
3959
3994
|
) {
|
|
3960
3995
|
const {
|
|
3961
3996
|
error,
|
|
3962
|
-
} = ContentPlatformApplicationValidator.
|
|
3997
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3963
3998
|
{
|
|
3964
3999
|
pageNo,
|
|
3965
4000
|
pageSize,
|
|
3966
|
-
|
|
4001
|
+
definitionSlug,
|
|
3967
4002
|
},
|
|
3968
4003
|
{ abortEarly: false, allowUnknown: true }
|
|
3969
4004
|
);
|
|
@@ -3974,30 +4009,29 @@ class Content {
|
|
|
3974
4009
|
// Showing warrnings if extra unknown parameters are found
|
|
3975
4010
|
const {
|
|
3976
4011
|
error: warrning,
|
|
3977
|
-
} = ContentPlatformApplicationValidator.
|
|
4012
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3978
4013
|
{
|
|
3979
4014
|
pageNo,
|
|
3980
4015
|
pageSize,
|
|
3981
|
-
|
|
4016
|
+
definitionSlug,
|
|
3982
4017
|
},
|
|
3983
4018
|
{ abortEarly: false, allowUnknown: false }
|
|
3984
4019
|
);
|
|
3985
4020
|
if (warrning) {
|
|
3986
4021
|
Logger({
|
|
3987
4022
|
level: "WARN",
|
|
3988
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
4023
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectsBySlug \n ${warrning}`,
|
|
3989
4024
|
});
|
|
3990
4025
|
}
|
|
3991
4026
|
|
|
3992
4027
|
const query_params = {};
|
|
3993
|
-
query_params["definition_id"] = definitionId;
|
|
3994
4028
|
query_params["page_no"] = pageNo;
|
|
3995
4029
|
query_params["page_size"] = pageSize;
|
|
3996
4030
|
|
|
3997
4031
|
const response = await PlatformAPIClient.execute(
|
|
3998
4032
|
this.config,
|
|
3999
4033
|
"get",
|
|
4000
|
-
`/service/platform/content/
|
|
4034
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
|
|
4001
4035
|
query_params,
|
|
4002
4036
|
undefined,
|
|
4003
4037
|
requestHeaders,
|
|
@@ -4022,7 +4056,7 @@ class Content {
|
|
|
4022
4056
|
} else {
|
|
4023
4057
|
Logger({
|
|
4024
4058
|
level: "WARN",
|
|
4025
|
-
message: `Response Validation Warnings for platform > Content >
|
|
4059
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectsBySlug \n ${res_error}`,
|
|
4026
4060
|
});
|
|
4027
4061
|
}
|
|
4028
4062
|
}
|
|
@@ -4190,24 +4224,24 @@ class Content {
|
|
|
4190
4224
|
}
|
|
4191
4225
|
|
|
4192
4226
|
/**
|
|
4193
|
-
* @param {ContentPlatformApplicationValidator.
|
|
4227
|
+
* @param {ContentPlatformApplicationValidator.GetApplicationLanguagesParam} arg
|
|
4228
|
+
* - Arg object
|
|
4229
|
+
*
|
|
4194
4230
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4195
4231
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4196
|
-
* @returns {Promise<
|
|
4197
|
-
* @name
|
|
4198
|
-
* @summary: Get
|
|
4199
|
-
* @description:
|
|
4232
|
+
* @returns {Promise<Object>} - Success response
|
|
4233
|
+
* @name getApplicationLanguages
|
|
4234
|
+
* @summary: Get app languages
|
|
4235
|
+
* @description: Fetch all languages configured for the specified application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getApplicationLanguages/).
|
|
4200
4236
|
*/
|
|
4201
|
-
async
|
|
4202
|
-
{
|
|
4237
|
+
async getApplicationLanguages(
|
|
4238
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
4203
4239
|
{ responseHeaders } = { responseHeaders: false }
|
|
4204
4240
|
) {
|
|
4205
4241
|
const {
|
|
4206
4242
|
error,
|
|
4207
|
-
} = ContentPlatformApplicationValidator.
|
|
4208
|
-
{
|
|
4209
|
-
slug,
|
|
4210
|
-
},
|
|
4243
|
+
} = ContentPlatformApplicationValidator.getApplicationLanguages().validate(
|
|
4244
|
+
{},
|
|
4211
4245
|
{ abortEarly: false, allowUnknown: true }
|
|
4212
4246
|
);
|
|
4213
4247
|
if (error) {
|
|
@@ -4217,16 +4251,14 @@ class Content {
|
|
|
4217
4251
|
// Showing warrnings if extra unknown parameters are found
|
|
4218
4252
|
const {
|
|
4219
4253
|
error: warrning,
|
|
4220
|
-
} = ContentPlatformApplicationValidator.
|
|
4221
|
-
{
|
|
4222
|
-
slug,
|
|
4223
|
-
},
|
|
4254
|
+
} = ContentPlatformApplicationValidator.getApplicationLanguages().validate(
|
|
4255
|
+
{},
|
|
4224
4256
|
{ abortEarly: false, allowUnknown: false }
|
|
4225
4257
|
);
|
|
4226
4258
|
if (warrning) {
|
|
4227
4259
|
Logger({
|
|
4228
4260
|
level: "WARN",
|
|
4229
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
4261
|
+
message: `Parameter Validation warrnings for platform > Content > getApplicationLanguages \n ${warrning}`,
|
|
4230
4262
|
});
|
|
4231
4263
|
}
|
|
4232
4264
|
|
|
@@ -4235,7 +4267,7 @@ class Content {
|
|
|
4235
4267
|
const response = await PlatformAPIClient.execute(
|
|
4236
4268
|
this.config,
|
|
4237
4269
|
"get",
|
|
4238
|
-
`/service/platform/content/
|
|
4270
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages`,
|
|
4239
4271
|
query_params,
|
|
4240
4272
|
undefined,
|
|
4241
4273
|
requestHeaders,
|
|
@@ -4247,9 +4279,7 @@ class Content {
|
|
|
4247
4279
|
responseData = response[0];
|
|
4248
4280
|
}
|
|
4249
4281
|
|
|
4250
|
-
const {
|
|
4251
|
-
error: res_error,
|
|
4252
|
-
} = ContentPlatformModel.BlogSchema().validate(responseData, {
|
|
4282
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
4253
4283
|
abortEarly: false,
|
|
4254
4284
|
allowUnknown: true,
|
|
4255
4285
|
});
|
|
@@ -4260,7 +4290,7 @@ class Content {
|
|
|
4260
4290
|
} else {
|
|
4261
4291
|
Logger({
|
|
4262
4292
|
level: "WARN",
|
|
4263
|
-
message: `Response Validation Warnings for platform > Content >
|
|
4293
|
+
message: `Response Validation Warnings for platform > Content > getApplicationLanguages \n ${res_error}`,
|
|
4264
4294
|
});
|
|
4265
4295
|
}
|
|
4266
4296
|
}
|
|
@@ -4269,29 +4299,27 @@ class Content {
|
|
|
4269
4299
|
}
|
|
4270
4300
|
|
|
4271
4301
|
/**
|
|
4272
|
-
* @param {ContentPlatformApplicationValidator.
|
|
4302
|
+
* @param {ContentPlatformApplicationValidator.GetApplicationResourceTranslationsParam} arg
|
|
4303
|
+
* - Arg object
|
|
4304
|
+
*
|
|
4273
4305
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4274
4306
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4275
|
-
* @returns {Promise<
|
|
4276
|
-
* @name
|
|
4277
|
-
* @summary:
|
|
4278
|
-
* @description:
|
|
4307
|
+
* @returns {Promise<Object>} - Success response
|
|
4308
|
+
* @name getApplicationResourceTranslations
|
|
4309
|
+
* @summary: Get app translations
|
|
4310
|
+
* @description: Fetch translations for application-level resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getApplicationResourceTranslations/).
|
|
4279
4311
|
*/
|
|
4280
|
-
async
|
|
4281
|
-
{
|
|
4282
|
-
requestHeaders: {},
|
|
4283
|
-
},
|
|
4312
|
+
async getApplicationResourceTranslations(
|
|
4313
|
+
{ locale, type, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
4284
4314
|
{ responseHeaders } = { responseHeaders: false }
|
|
4285
4315
|
) {
|
|
4286
|
-
const {
|
|
4316
|
+
const {
|
|
4317
|
+
error,
|
|
4318
|
+
} = ContentPlatformApplicationValidator.getApplicationResourceTranslations().validate(
|
|
4287
4319
|
{
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
q,
|
|
4292
|
-
slug,
|
|
4293
|
-
title,
|
|
4294
|
-
status,
|
|
4320
|
+
locale,
|
|
4321
|
+
type,
|
|
4322
|
+
resourceId,
|
|
4295
4323
|
},
|
|
4296
4324
|
{ abortEarly: false, allowUnknown: true }
|
|
4297
4325
|
);
|
|
@@ -4302,38 +4330,30 @@ class Content {
|
|
|
4302
4330
|
// Showing warrnings if extra unknown parameters are found
|
|
4303
4331
|
const {
|
|
4304
4332
|
error: warrning,
|
|
4305
|
-
} = ContentPlatformApplicationValidator.
|
|
4333
|
+
} = ContentPlatformApplicationValidator.getApplicationResourceTranslations().validate(
|
|
4306
4334
|
{
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
q,
|
|
4311
|
-
slug,
|
|
4312
|
-
title,
|
|
4313
|
-
status,
|
|
4335
|
+
locale,
|
|
4336
|
+
type,
|
|
4337
|
+
resourceId,
|
|
4314
4338
|
},
|
|
4315
4339
|
{ abortEarly: false, allowUnknown: false }
|
|
4316
4340
|
);
|
|
4317
4341
|
if (warrning) {
|
|
4318
4342
|
Logger({
|
|
4319
4343
|
level: "WARN",
|
|
4320
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
4344
|
+
message: `Parameter Validation warrnings for platform > Content > getApplicationResourceTranslations \n ${warrning}`,
|
|
4321
4345
|
});
|
|
4322
4346
|
}
|
|
4323
4347
|
|
|
4324
4348
|
const query_params = {};
|
|
4325
|
-
query_params["
|
|
4326
|
-
query_params["
|
|
4327
|
-
query_params["
|
|
4328
|
-
query_params["q"] = q;
|
|
4329
|
-
query_params["slug"] = slug;
|
|
4330
|
-
query_params["title"] = title;
|
|
4331
|
-
query_params["status"] = status;
|
|
4349
|
+
query_params["locale"] = locale;
|
|
4350
|
+
query_params["type"] = type;
|
|
4351
|
+
query_params["resource_id"] = resourceId;
|
|
4332
4352
|
|
|
4333
4353
|
const response = await PlatformAPIClient.execute(
|
|
4334
4354
|
this.config,
|
|
4335
4355
|
"get",
|
|
4336
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
4356
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations`,
|
|
4337
4357
|
query_params,
|
|
4338
4358
|
undefined,
|
|
4339
4359
|
requestHeaders,
|
|
@@ -4345,9 +4365,7 @@ class Content {
|
|
|
4345
4365
|
responseData = response[0];
|
|
4346
4366
|
}
|
|
4347
4367
|
|
|
4348
|
-
const {
|
|
4349
|
-
error: res_error,
|
|
4350
|
-
} = ContentPlatformModel.BlogGetResponse().validate(responseData, {
|
|
4368
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
4351
4369
|
abortEarly: false,
|
|
4352
4370
|
allowUnknown: true,
|
|
4353
4371
|
});
|
|
@@ -4358,7 +4376,7 @@ class Content {
|
|
|
4358
4376
|
} else {
|
|
4359
4377
|
Logger({
|
|
4360
4378
|
level: "WARN",
|
|
4361
|
-
message: `Response Validation Warnings for platform > Content >
|
|
4379
|
+
message: `Response Validation Warnings for platform > Content > getApplicationResourceTranslations \n ${res_error}`,
|
|
4362
4380
|
});
|
|
4363
4381
|
}
|
|
4364
4382
|
}
|
|
@@ -4367,21 +4385,21 @@ class Content {
|
|
|
4367
4385
|
}
|
|
4368
4386
|
|
|
4369
4387
|
/**
|
|
4370
|
-
* @param {ContentPlatformApplicationValidator.
|
|
4388
|
+
* @param {ContentPlatformApplicationValidator.GetBlogBySlugParam} arg - Arg object
|
|
4371
4389
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4372
4390
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4373
4391
|
* @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
|
|
4374
|
-
* @name
|
|
4375
|
-
* @summary: Get
|
|
4376
|
-
* @description: Retrieve detailed information about a specific
|
|
4392
|
+
* @name getBlogBySlug
|
|
4393
|
+
* @summary: Get blog by slug
|
|
4394
|
+
* @description: Retrieve detailed information about a specific blog using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogBySlug/).
|
|
4377
4395
|
*/
|
|
4378
|
-
async
|
|
4396
|
+
async getBlogBySlug(
|
|
4379
4397
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
4380
4398
|
{ responseHeaders } = { responseHeaders: false }
|
|
4381
4399
|
) {
|
|
4382
4400
|
const {
|
|
4383
4401
|
error,
|
|
4384
|
-
} = ContentPlatformApplicationValidator.
|
|
4402
|
+
} = ContentPlatformApplicationValidator.getBlogBySlug().validate(
|
|
4385
4403
|
{
|
|
4386
4404
|
slug,
|
|
4387
4405
|
},
|
|
@@ -4394,7 +4412,7 @@ class Content {
|
|
|
4394
4412
|
// Showing warrnings if extra unknown parameters are found
|
|
4395
4413
|
const {
|
|
4396
4414
|
error: warrning,
|
|
4397
|
-
} = ContentPlatformApplicationValidator.
|
|
4415
|
+
} = ContentPlatformApplicationValidator.getBlogBySlug().validate(
|
|
4398
4416
|
{
|
|
4399
4417
|
slug,
|
|
4400
4418
|
},
|
|
@@ -4403,7 +4421,7 @@ class Content {
|
|
|
4403
4421
|
if (warrning) {
|
|
4404
4422
|
Logger({
|
|
4405
4423
|
level: "WARN",
|
|
4406
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
4424
|
+
message: `Parameter Validation warrnings for platform > Content > getBlogBySlug \n ${warrning}`,
|
|
4407
4425
|
});
|
|
4408
4426
|
}
|
|
4409
4427
|
|
|
@@ -4412,7 +4430,7 @@ class Content {
|
|
|
4412
4430
|
const response = await PlatformAPIClient.execute(
|
|
4413
4431
|
this.config,
|
|
4414
4432
|
"get",
|
|
4415
|
-
`/service/platform/content/
|
|
4433
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
|
|
4416
4434
|
query_params,
|
|
4417
4435
|
undefined,
|
|
4418
4436
|
requestHeaders,
|
|
@@ -4437,7 +4455,7 @@ class Content {
|
|
|
4437
4455
|
} else {
|
|
4438
4456
|
Logger({
|
|
4439
4457
|
level: "WARN",
|
|
4440
|
-
message: `Response Validation Warnings for platform > Content >
|
|
4458
|
+
message: `Response Validation Warnings for platform > Content > getBlogBySlug \n ${res_error}`,
|
|
4441
4459
|
});
|
|
4442
4460
|
}
|
|
4443
4461
|
}
|
|
@@ -4446,26 +4464,29 @@ class Content {
|
|
|
4446
4464
|
}
|
|
4447
4465
|
|
|
4448
4466
|
/**
|
|
4449
|
-
* @param {ContentPlatformApplicationValidator.
|
|
4450
|
-
* - Arg object
|
|
4451
|
-
*
|
|
4467
|
+
* @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
|
|
4452
4468
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4453
4469
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4454
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4455
|
-
*
|
|
4456
|
-
* @
|
|
4457
|
-
* @
|
|
4458
|
-
* @description: Retrieve a list of data loaders api specs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getDataLoaderApiSpecs/).
|
|
4470
|
+
* @returns {Promise<ContentPlatformModel.BlogGetDetails>} - Success response
|
|
4471
|
+
* @name getBlogs
|
|
4472
|
+
* @summary: List blogs
|
|
4473
|
+
* @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
|
|
4459
4474
|
*/
|
|
4460
|
-
async
|
|
4461
|
-
{
|
|
4475
|
+
async getBlogs(
|
|
4476
|
+
{ pageNo, pageSize, tags, q, slug, title, status, requestHeaders } = {
|
|
4477
|
+
requestHeaders: {},
|
|
4478
|
+
},
|
|
4462
4479
|
{ responseHeaders } = { responseHeaders: false }
|
|
4463
4480
|
) {
|
|
4464
|
-
const {
|
|
4465
|
-
error,
|
|
4466
|
-
} = ContentPlatformApplicationValidator.getDataLoaderApiSpecs().validate(
|
|
4481
|
+
const { error } = ContentPlatformApplicationValidator.getBlogs().validate(
|
|
4467
4482
|
{
|
|
4468
|
-
|
|
4483
|
+
pageNo,
|
|
4484
|
+
pageSize,
|
|
4485
|
+
tags,
|
|
4486
|
+
q,
|
|
4487
|
+
slug,
|
|
4488
|
+
title,
|
|
4489
|
+
status,
|
|
4469
4490
|
},
|
|
4470
4491
|
{ abortEarly: false, allowUnknown: true }
|
|
4471
4492
|
);
|
|
@@ -4476,26 +4497,38 @@ class Content {
|
|
|
4476
4497
|
// Showing warrnings if extra unknown parameters are found
|
|
4477
4498
|
const {
|
|
4478
4499
|
error: warrning,
|
|
4479
|
-
} = ContentPlatformApplicationValidator.
|
|
4500
|
+
} = ContentPlatformApplicationValidator.getBlogs().validate(
|
|
4480
4501
|
{
|
|
4481
|
-
|
|
4502
|
+
pageNo,
|
|
4503
|
+
pageSize,
|
|
4504
|
+
tags,
|
|
4505
|
+
q,
|
|
4506
|
+
slug,
|
|
4507
|
+
title,
|
|
4508
|
+
status,
|
|
4482
4509
|
},
|
|
4483
4510
|
{ abortEarly: false, allowUnknown: false }
|
|
4484
4511
|
);
|
|
4485
4512
|
if (warrning) {
|
|
4486
4513
|
Logger({
|
|
4487
4514
|
level: "WARN",
|
|
4488
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
4515
|
+
message: `Parameter Validation warrnings for platform > Content > getBlogs \n ${warrning}`,
|
|
4489
4516
|
});
|
|
4490
4517
|
}
|
|
4491
4518
|
|
|
4492
4519
|
const query_params = {};
|
|
4493
|
-
query_params["
|
|
4520
|
+
query_params["page_no"] = pageNo;
|
|
4521
|
+
query_params["page_size"] = pageSize;
|
|
4522
|
+
query_params["tags"] = tags;
|
|
4523
|
+
query_params["q"] = q;
|
|
4524
|
+
query_params["slug"] = slug;
|
|
4525
|
+
query_params["title"] = title;
|
|
4526
|
+
query_params["status"] = status;
|
|
4494
4527
|
|
|
4495
4528
|
const response = await PlatformAPIClient.execute(
|
|
4496
4529
|
this.config,
|
|
4497
4530
|
"get",
|
|
4498
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
4531
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
|
|
4499
4532
|
query_params,
|
|
4500
4533
|
undefined,
|
|
4501
4534
|
requestHeaders,
|
|
@@ -4509,7 +4542,7 @@ class Content {
|
|
|
4509
4542
|
|
|
4510
4543
|
const {
|
|
4511
4544
|
error: res_error,
|
|
4512
|
-
} = ContentPlatformModel.
|
|
4545
|
+
} = ContentPlatformModel.BlogGetDetails().validate(responseData, {
|
|
4513
4546
|
abortEarly: false,
|
|
4514
4547
|
allowUnknown: true,
|
|
4515
4548
|
});
|
|
@@ -4520,7 +4553,7 @@ class Content {
|
|
|
4520
4553
|
} else {
|
|
4521
4554
|
Logger({
|
|
4522
4555
|
level: "WARN",
|
|
4523
|
-
message: `Response Validation Warnings for platform > Content >
|
|
4556
|
+
message: `Response Validation Warnings for platform > Content > getBlogs \n ${res_error}`,
|
|
4524
4557
|
});
|
|
4525
4558
|
}
|
|
4526
4559
|
}
|
|
@@ -4609,7 +4642,7 @@ class Content {
|
|
|
4609
4642
|
*
|
|
4610
4643
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4611
4644
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4612
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4645
|
+
* @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
|
|
4613
4646
|
* Success response
|
|
4614
4647
|
* @name getDataLoadersByService
|
|
4615
4648
|
* @summary: List all data loaders
|
|
@@ -4666,10 +4699,10 @@ class Content {
|
|
|
4666
4699
|
|
|
4667
4700
|
const {
|
|
4668
4701
|
error: res_error,
|
|
4669
|
-
} = ContentPlatformModel.
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
);
|
|
4702
|
+
} = ContentPlatformModel.DataLoaderResponseSchema().validate(responseData, {
|
|
4703
|
+
abortEarly: false,
|
|
4704
|
+
allowUnknown: true,
|
|
4705
|
+
});
|
|
4673
4706
|
|
|
4674
4707
|
if (res_error) {
|
|
4675
4708
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4691,7 +4724,7 @@ class Content {
|
|
|
4691
4724
|
*
|
|
4692
4725
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4693
4726
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4694
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4727
|
+
* @returns {Promise<ContentPlatformModel.DefaultNavigationDetails>} -
|
|
4695
4728
|
* Success response
|
|
4696
4729
|
* @name getDefaultNavigations
|
|
4697
4730
|
* @summary: Get default navigations
|
|
@@ -4744,10 +4777,10 @@ class Content {
|
|
|
4744
4777
|
|
|
4745
4778
|
const {
|
|
4746
4779
|
error: res_error,
|
|
4747
|
-
} = ContentPlatformModel.
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
);
|
|
4780
|
+
} = ContentPlatformModel.DefaultNavigationDetails().validate(responseData, {
|
|
4781
|
+
abortEarly: false,
|
|
4782
|
+
allowUnknown: true,
|
|
4783
|
+
});
|
|
4751
4784
|
|
|
4752
4785
|
if (res_error) {
|
|
4753
4786
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5170,17 +5203,19 @@ class Content {
|
|
|
5170
5203
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5171
5204
|
* @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
|
|
5172
5205
|
* @name getInjectableTags
|
|
5173
|
-
* @summary: Get all
|
|
5174
|
-
* @description:
|
|
5206
|
+
* @summary: Get all HTML tags
|
|
5207
|
+
* @description: Retrieve a list of injectable tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getInjectableTags/).
|
|
5175
5208
|
*/
|
|
5176
5209
|
async getInjectableTags(
|
|
5177
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
5210
|
+
{ all, requestHeaders } = { requestHeaders: {} },
|
|
5178
5211
|
{ responseHeaders } = { responseHeaders: false }
|
|
5179
5212
|
) {
|
|
5180
5213
|
const {
|
|
5181
5214
|
error,
|
|
5182
5215
|
} = ContentPlatformApplicationValidator.getInjectableTags().validate(
|
|
5183
|
-
{
|
|
5216
|
+
{
|
|
5217
|
+
all,
|
|
5218
|
+
},
|
|
5184
5219
|
{ abortEarly: false, allowUnknown: true }
|
|
5185
5220
|
);
|
|
5186
5221
|
if (error) {
|
|
@@ -5191,7 +5226,9 @@ class Content {
|
|
|
5191
5226
|
const {
|
|
5192
5227
|
error: warrning,
|
|
5193
5228
|
} = ContentPlatformApplicationValidator.getInjectableTags().validate(
|
|
5194
|
-
{
|
|
5229
|
+
{
|
|
5230
|
+
all,
|
|
5231
|
+
},
|
|
5195
5232
|
{ abortEarly: false, allowUnknown: false }
|
|
5196
5233
|
);
|
|
5197
5234
|
if (warrning) {
|
|
@@ -5202,6 +5239,7 @@ class Content {
|
|
|
5202
5239
|
}
|
|
5203
5240
|
|
|
5204
5241
|
const query_params = {};
|
|
5242
|
+
query_params["all"] = all;
|
|
5205
5243
|
|
|
5206
5244
|
const response = await PlatformAPIClient.execute(
|
|
5207
5245
|
this.config,
|
|
@@ -5243,7 +5281,7 @@ class Content {
|
|
|
5243
5281
|
* @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
|
|
5244
5282
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5245
5283
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5246
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5284
|
+
* @returns {Promise<ContentPlatformModel.LandingPageGetDetails>} - Success response
|
|
5247
5285
|
* @name getLandingPages
|
|
5248
5286
|
* @summary: Get landing pages
|
|
5249
5287
|
* @description: Lists a list landing pages as per device types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLandingPages/).
|
|
@@ -5289,7 +5327,7 @@ class Content {
|
|
|
5289
5327
|
const response = await PlatformAPIClient.execute(
|
|
5290
5328
|
this.config,
|
|
5291
5329
|
"get",
|
|
5292
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page
|
|
5330
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
|
|
5293
5331
|
query_params,
|
|
5294
5332
|
undefined,
|
|
5295
5333
|
requestHeaders,
|
|
@@ -5303,7 +5341,7 @@ class Content {
|
|
|
5303
5341
|
|
|
5304
5342
|
const {
|
|
5305
5343
|
error: res_error,
|
|
5306
|
-
} = ContentPlatformModel.
|
|
5344
|
+
} = ContentPlatformModel.LandingPageGetDetails().validate(responseData, {
|
|
5307
5345
|
abortEarly: false,
|
|
5308
5346
|
allowUnknown: true,
|
|
5309
5347
|
});
|
|
@@ -5487,7 +5525,7 @@ class Content {
|
|
|
5487
5525
|
* @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
|
|
5488
5526
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5489
5527
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5490
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5528
|
+
* @returns {Promise<ContentPlatformModel.NavigationGetDetails>} - Success response
|
|
5491
5529
|
* @name getNavigations
|
|
5492
5530
|
* @summary: Get navigation items
|
|
5493
5531
|
* @description: Retrieve a list of navigational elements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
|
|
@@ -5538,7 +5576,7 @@ class Content {
|
|
|
5538
5576
|
const response = await PlatformAPIClient.execute(
|
|
5539
5577
|
this.config,
|
|
5540
5578
|
"get",
|
|
5541
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations
|
|
5579
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
|
|
5542
5580
|
query_params,
|
|
5543
5581
|
undefined,
|
|
5544
5582
|
requestHeaders,
|
|
@@ -5552,7 +5590,7 @@ class Content {
|
|
|
5552
5590
|
|
|
5553
5591
|
const {
|
|
5554
5592
|
error: res_error,
|
|
5555
|
-
} = ContentPlatformModel.
|
|
5593
|
+
} = ContentPlatformModel.NavigationGetDetails().validate(responseData, {
|
|
5556
5594
|
abortEarly: false,
|
|
5557
5595
|
allowUnknown: true,
|
|
5558
5596
|
});
|
|
@@ -5578,7 +5616,7 @@ class Content {
|
|
|
5578
5616
|
* @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
|
|
5579
5617
|
* @name getPageBySlug
|
|
5580
5618
|
* @summary: Get page by slug
|
|
5581
|
-
* @description: Get detailed information about a specific page using its slug - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageBySlug/).
|
|
5619
|
+
* @description: Get detailed information about a specific page using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageBySlug/).
|
|
5582
5620
|
*/
|
|
5583
5621
|
async getPageBySlug(
|
|
5584
5622
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -5804,9 +5842,9 @@ class Content {
|
|
|
5804
5842
|
* @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
|
|
5805
5843
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5806
5844
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5807
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5845
|
+
* @returns {Promise<ContentPlatformModel.PageGetDetails>} - Success response
|
|
5808
5846
|
* @name getPages
|
|
5809
|
-
* @summary: Get pages
|
|
5847
|
+
* @summary: Get pages
|
|
5810
5848
|
* @description: Retrieve a list of available pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
|
|
5811
5849
|
*/
|
|
5812
5850
|
async getPages(
|
|
@@ -5848,7 +5886,7 @@ class Content {
|
|
|
5848
5886
|
const response = await PlatformAPIClient.execute(
|
|
5849
5887
|
this.config,
|
|
5850
5888
|
"get",
|
|
5851
|
-
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages
|
|
5889
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
|
|
5852
5890
|
query_params,
|
|
5853
5891
|
undefined,
|
|
5854
5892
|
requestHeaders,
|
|
@@ -5862,7 +5900,7 @@ class Content {
|
|
|
5862
5900
|
|
|
5863
5901
|
const {
|
|
5864
5902
|
error: res_error,
|
|
5865
|
-
} = ContentPlatformModel.
|
|
5903
|
+
} = ContentPlatformModel.PageGetDetails().validate(responseData, {
|
|
5866
5904
|
abortEarly: false,
|
|
5867
5905
|
allowUnknown: true,
|
|
5868
5906
|
});
|
|
@@ -5881,47 +5919,13 @@ class Content {
|
|
|
5881
5919
|
return response;
|
|
5882
5920
|
}
|
|
5883
5921
|
|
|
5884
|
-
/**
|
|
5885
|
-
* @param {Object} arg - Arg object.
|
|
5886
|
-
* @param {string} arg.companyId - Numeric ID allotted to a business account
|
|
5887
|
-
* on Fynd Platform
|
|
5888
|
-
* @param {string} arg.applicationId - Numeric ID allotted to an application
|
|
5889
|
-
* created within a business account.
|
|
5890
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
5891
|
-
* page. Default value is 10.
|
|
5892
|
-
* @returns {Paginator<ContentPlatformModel.PageGetResponse>}
|
|
5893
|
-
* @summary: Get pages.
|
|
5894
|
-
* @description: Retrieve a list of available pages.
|
|
5895
|
-
*/
|
|
5896
|
-
getPagesPaginator({ companyId, applicationId, pageSize } = {}) {
|
|
5897
|
-
const paginator = new Paginator();
|
|
5898
|
-
const callback = async () => {
|
|
5899
|
-
const pageId = paginator.nextId;
|
|
5900
|
-
const pageNo = paginator.pageNo;
|
|
5901
|
-
const pageType = "number";
|
|
5902
|
-
const data = await this.getPages({
|
|
5903
|
-
companyId: companyId,
|
|
5904
|
-
applicationId: applicationId,
|
|
5905
|
-
pageNo: pageNo,
|
|
5906
|
-
pageSize: pageSize,
|
|
5907
|
-
});
|
|
5908
|
-
paginator.setPaginator({
|
|
5909
|
-
hasNext: data.page.has_next ? true : false,
|
|
5910
|
-
nextId: data.page.next_id,
|
|
5911
|
-
});
|
|
5912
|
-
return data;
|
|
5913
|
-
};
|
|
5914
|
-
paginator.setCallback(callback.bind(this));
|
|
5915
|
-
return paginator;
|
|
5916
|
-
}
|
|
5917
|
-
|
|
5918
5922
|
/**
|
|
5919
5923
|
* @param {ContentPlatformApplicationValidator.GetPathRedirectionRuleParam} arg
|
|
5920
5924
|
* - Arg object
|
|
5921
5925
|
*
|
|
5922
5926
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5923
5927
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5924
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5928
|
+
* @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
|
|
5925
5929
|
* @name getPathRedirectionRule
|
|
5926
5930
|
* @summary: Get Path Redirection Rule
|
|
5927
5931
|
* @description: Use this API to Get detailed information about a specific path redirection rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRule/).
|
|
@@ -5977,7 +5981,7 @@ class Content {
|
|
|
5977
5981
|
|
|
5978
5982
|
const {
|
|
5979
5983
|
error: res_error,
|
|
5980
|
-
} = ContentPlatformModel.
|
|
5984
|
+
} = ContentPlatformModel.PathMappingSchema().validate(responseData, {
|
|
5981
5985
|
abortEarly: false,
|
|
5982
5986
|
allowUnknown: true,
|
|
5983
5987
|
});
|
|
@@ -6002,7 +6006,7 @@ class Content {
|
|
|
6002
6006
|
*
|
|
6003
6007
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6004
6008
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6005
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6009
|
+
* @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
|
|
6006
6010
|
* @name getPathRedirectionRules
|
|
6007
6011
|
* @summary: List Path Redirection Rules
|
|
6008
6012
|
* @description: Use this API to List Path Redirection Rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRules/).
|
|
@@ -6062,7 +6066,7 @@ class Content {
|
|
|
6062
6066
|
|
|
6063
6067
|
const {
|
|
6064
6068
|
error: res_error,
|
|
6065
|
-
} = ContentPlatformModel.
|
|
6069
|
+
} = ContentPlatformModel.PathMappingSchema().validate(responseData, {
|
|
6066
6070
|
abortEarly: false,
|
|
6067
6071
|
allowUnknown: true,
|
|
6068
6072
|
});
|
|
@@ -6170,14 +6174,14 @@ class Content {
|
|
|
6170
6174
|
* @description: Use this API to Get SEO Markup Schema - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOMarkupSchema/).
|
|
6171
6175
|
*/
|
|
6172
6176
|
async getSEOMarkupSchema(
|
|
6173
|
-
{
|
|
6177
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
6174
6178
|
{ responseHeaders } = { responseHeaders: false }
|
|
6175
6179
|
) {
|
|
6176
6180
|
const {
|
|
6177
6181
|
error,
|
|
6178
6182
|
} = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
|
|
6179
6183
|
{
|
|
6180
|
-
|
|
6184
|
+
id,
|
|
6181
6185
|
},
|
|
6182
6186
|
{ abortEarly: false, allowUnknown: true }
|
|
6183
6187
|
);
|
|
@@ -6190,7 +6194,7 @@ class Content {
|
|
|
6190
6194
|
error: warrning,
|
|
6191
6195
|
} = ContentPlatformApplicationValidator.getSEOMarkupSchema().validate(
|
|
6192
6196
|
{
|
|
6193
|
-
|
|
6197
|
+
id,
|
|
6194
6198
|
},
|
|
6195
6199
|
{ abortEarly: false, allowUnknown: false }
|
|
6196
6200
|
);
|
|
@@ -6206,7 +6210,7 @@ class Content {
|
|
|
6206
6210
|
const response = await PlatformAPIClient.execute(
|
|
6207
6211
|
this.config,
|
|
6208
6212
|
"get",
|
|
6209
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${
|
|
6213
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo/schema/${id}`,
|
|
6210
6214
|
query_params,
|
|
6211
6215
|
undefined,
|
|
6212
6216
|
requestHeaders,
|
|
@@ -6410,27 +6414,201 @@ class Content {
|
|
|
6410
6414
|
}
|
|
6411
6415
|
|
|
6412
6416
|
/**
|
|
6413
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6417
|
+
* @param {ContentPlatformApplicationValidator.GetTranslateUILabelsParam} arg
|
|
6418
|
+
* - Arg object
|
|
6419
|
+
*
|
|
6420
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6421
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6422
|
+
* @returns {Promise<ContentPlatformModel.TranslateUiLabelsPage>} - Success response
|
|
6423
|
+
* @name getTranslateUILabels
|
|
6424
|
+
* @summary: Get Translate Ui Labels
|
|
6425
|
+
* @description: Retrieves Translate Ui Labels with optional filtering by type, application, and company identifiers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getTranslateUILabels/).
|
|
6426
|
+
*/
|
|
6427
|
+
async getTranslateUILabels(
|
|
6428
|
+
{ templateThemeId, themeId, locale, type, requestHeaders } = {
|
|
6429
|
+
requestHeaders: {},
|
|
6430
|
+
},
|
|
6431
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
6432
|
+
) {
|
|
6433
|
+
const {
|
|
6434
|
+
error,
|
|
6435
|
+
} = ContentPlatformApplicationValidator.getTranslateUILabels().validate(
|
|
6436
|
+
{
|
|
6437
|
+
templateThemeId,
|
|
6438
|
+
themeId,
|
|
6439
|
+
locale,
|
|
6440
|
+
type,
|
|
6441
|
+
},
|
|
6442
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6443
|
+
);
|
|
6444
|
+
if (error) {
|
|
6445
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
6446
|
+
}
|
|
6447
|
+
|
|
6448
|
+
// Showing warrnings if extra unknown parameters are found
|
|
6449
|
+
const {
|
|
6450
|
+
error: warrning,
|
|
6451
|
+
} = ContentPlatformApplicationValidator.getTranslateUILabels().validate(
|
|
6452
|
+
{
|
|
6453
|
+
templateThemeId,
|
|
6454
|
+
themeId,
|
|
6455
|
+
locale,
|
|
6456
|
+
type,
|
|
6457
|
+
},
|
|
6458
|
+
{ abortEarly: false, allowUnknown: false }
|
|
6459
|
+
);
|
|
6460
|
+
if (warrning) {
|
|
6461
|
+
Logger({
|
|
6462
|
+
level: "WARN",
|
|
6463
|
+
message: `Parameter Validation warrnings for platform > Content > getTranslateUILabels \n ${warrning}`,
|
|
6464
|
+
});
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6467
|
+
const query_params = {};
|
|
6468
|
+
query_params["template_theme_id"] = templateThemeId;
|
|
6469
|
+
query_params["theme_id"] = themeId;
|
|
6470
|
+
query_params["locale"] = locale;
|
|
6471
|
+
query_params["type"] = type;
|
|
6472
|
+
|
|
6473
|
+
const response = await PlatformAPIClient.execute(
|
|
6474
|
+
this.config,
|
|
6475
|
+
"get",
|
|
6476
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels`,
|
|
6477
|
+
query_params,
|
|
6478
|
+
undefined,
|
|
6479
|
+
requestHeaders,
|
|
6480
|
+
{ responseHeaders }
|
|
6481
|
+
);
|
|
6482
|
+
|
|
6483
|
+
let responseData = response;
|
|
6484
|
+
if (responseHeaders) {
|
|
6485
|
+
responseData = response[0];
|
|
6486
|
+
}
|
|
6487
|
+
|
|
6488
|
+
const {
|
|
6489
|
+
error: res_error,
|
|
6490
|
+
} = ContentPlatformModel.TranslateUiLabelsPage().validate(responseData, {
|
|
6491
|
+
abortEarly: false,
|
|
6492
|
+
allowUnknown: true,
|
|
6493
|
+
});
|
|
6494
|
+
|
|
6495
|
+
if (res_error) {
|
|
6496
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6497
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6498
|
+
} else {
|
|
6499
|
+
Logger({
|
|
6500
|
+
level: "WARN",
|
|
6501
|
+
message: `Response Validation Warnings for platform > Content > getTranslateUILabels \n ${res_error}`,
|
|
6502
|
+
});
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
|
|
6506
|
+
return response;
|
|
6507
|
+
}
|
|
6508
|
+
|
|
6509
|
+
/**
|
|
6510
|
+
* @param {ContentPlatformApplicationValidator.GetTranslateUILabelsByIdParam} arg
|
|
6511
|
+
* - Arg object
|
|
6512
|
+
*
|
|
6513
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6514
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6515
|
+
* @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
|
|
6516
|
+
* @name getTranslateUILabelsById
|
|
6517
|
+
* @summary: Get Resource Detail
|
|
6518
|
+
* @description: Fetches detailed information for a specific Translate Ui Labels using its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getTranslateUILabelsById/).
|
|
6519
|
+
*/
|
|
6520
|
+
async getTranslateUILabelsById(
|
|
6521
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
6522
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
6523
|
+
) {
|
|
6524
|
+
const {
|
|
6525
|
+
error,
|
|
6526
|
+
} = ContentPlatformApplicationValidator.getTranslateUILabelsById().validate(
|
|
6527
|
+
{
|
|
6528
|
+
id,
|
|
6529
|
+
},
|
|
6530
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6531
|
+
);
|
|
6532
|
+
if (error) {
|
|
6533
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
6534
|
+
}
|
|
6535
|
+
|
|
6536
|
+
// Showing warrnings if extra unknown parameters are found
|
|
6537
|
+
const {
|
|
6538
|
+
error: warrning,
|
|
6539
|
+
} = ContentPlatformApplicationValidator.getTranslateUILabelsById().validate(
|
|
6540
|
+
{
|
|
6541
|
+
id,
|
|
6542
|
+
},
|
|
6543
|
+
{ abortEarly: false, allowUnknown: false }
|
|
6544
|
+
);
|
|
6545
|
+
if (warrning) {
|
|
6546
|
+
Logger({
|
|
6547
|
+
level: "WARN",
|
|
6548
|
+
message: `Parameter Validation warrnings for platform > Content > getTranslateUILabelsById \n ${warrning}`,
|
|
6549
|
+
});
|
|
6550
|
+
}
|
|
6551
|
+
|
|
6552
|
+
const query_params = {};
|
|
6553
|
+
|
|
6554
|
+
const response = await PlatformAPIClient.execute(
|
|
6555
|
+
this.config,
|
|
6556
|
+
"get",
|
|
6557
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels/${id}`,
|
|
6558
|
+
query_params,
|
|
6559
|
+
undefined,
|
|
6560
|
+
requestHeaders,
|
|
6561
|
+
{ responseHeaders }
|
|
6562
|
+
);
|
|
6563
|
+
|
|
6564
|
+
let responseData = response;
|
|
6565
|
+
if (responseHeaders) {
|
|
6566
|
+
responseData = response[0];
|
|
6567
|
+
}
|
|
6568
|
+
|
|
6569
|
+
const {
|
|
6570
|
+
error: res_error,
|
|
6571
|
+
} = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
|
|
6572
|
+
abortEarly: false,
|
|
6573
|
+
allowUnknown: true,
|
|
6574
|
+
});
|
|
6575
|
+
|
|
6576
|
+
if (res_error) {
|
|
6577
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6578
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6579
|
+
} else {
|
|
6580
|
+
Logger({
|
|
6581
|
+
level: "WARN",
|
|
6582
|
+
message: `Response Validation Warnings for platform > Content > getTranslateUILabelsById \n ${res_error}`,
|
|
6583
|
+
});
|
|
6584
|
+
}
|
|
6585
|
+
}
|
|
6586
|
+
|
|
6587
|
+
return response;
|
|
6588
|
+
}
|
|
6589
|
+
|
|
6590
|
+
/**
|
|
6591
|
+
* @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesBySlugParam} arg
|
|
6414
6592
|
* - Arg object
|
|
6415
6593
|
*
|
|
6416
6594
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6417
6595
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6418
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6596
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadDetails>}
|
|
6419
6597
|
* - Success response
|
|
6420
6598
|
*
|
|
6421
|
-
* @name
|
|
6599
|
+
* @name importAppCustomObjectEntriesBySlug
|
|
6422
6600
|
* @summary: Bulk custom object entries upload
|
|
6423
|
-
* @description: Custom object bulk import of bulk entries can be performed using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
6601
|
+
* @description: Custom object bulk import of bulk entries can be performed using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/importAppCustomObjectEntriesBySlug/).
|
|
6424
6602
|
*/
|
|
6425
|
-
async
|
|
6426
|
-
{
|
|
6603
|
+
async importAppCustomObjectEntriesBySlug(
|
|
6604
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
6427
6605
|
{ responseHeaders } = { responseHeaders: false }
|
|
6428
6606
|
) {
|
|
6429
6607
|
const {
|
|
6430
6608
|
error,
|
|
6431
|
-
} = ContentPlatformApplicationValidator.
|
|
6609
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6432
6610
|
{
|
|
6433
|
-
|
|
6611
|
+
slug,
|
|
6434
6612
|
body,
|
|
6435
6613
|
},
|
|
6436
6614
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6442,9 +6620,9 @@ class Content {
|
|
|
6442
6620
|
// Showing warrnings if extra unknown parameters are found
|
|
6443
6621
|
const {
|
|
6444
6622
|
error: warrning,
|
|
6445
|
-
} = ContentPlatformApplicationValidator.
|
|
6623
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6446
6624
|
{
|
|
6447
|
-
|
|
6625
|
+
slug,
|
|
6448
6626
|
body,
|
|
6449
6627
|
},
|
|
6450
6628
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6452,7 +6630,7 @@ class Content {
|
|
|
6452
6630
|
if (warrning) {
|
|
6453
6631
|
Logger({
|
|
6454
6632
|
level: "WARN",
|
|
6455
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6633
|
+
message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
6456
6634
|
});
|
|
6457
6635
|
}
|
|
6458
6636
|
|
|
@@ -6461,7 +6639,7 @@ class Content {
|
|
|
6461
6639
|
const response = await PlatformAPIClient.execute(
|
|
6462
6640
|
this.config,
|
|
6463
6641
|
"post",
|
|
6464
|
-
`/service/platform/content/
|
|
6642
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/upload`,
|
|
6465
6643
|
query_params,
|
|
6466
6644
|
body,
|
|
6467
6645
|
requestHeaders,
|
|
@@ -6475,7 +6653,7 @@ class Content {
|
|
|
6475
6653
|
|
|
6476
6654
|
const {
|
|
6477
6655
|
error: res_error,
|
|
6478
|
-
} = ContentPlatformModel.
|
|
6656
|
+
} = ContentPlatformModel.CustomObjectEntryBulkUploadDetails().validate(
|
|
6479
6657
|
responseData,
|
|
6480
6658
|
{ abortEarly: false, allowUnknown: true }
|
|
6481
6659
|
);
|
|
@@ -6486,7 +6664,7 @@ class Content {
|
|
|
6486
6664
|
} else {
|
|
6487
6665
|
Logger({
|
|
6488
6666
|
level: "WARN",
|
|
6489
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6667
|
+
message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
6490
6668
|
});
|
|
6491
6669
|
}
|
|
6492
6670
|
}
|
|
@@ -6500,8 +6678,7 @@ class Content {
|
|
|
6500
6678
|
*
|
|
6501
6679
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6502
6680
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6503
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6504
|
-
* Success response
|
|
6681
|
+
* @returns {Promise<ContentPlatformModel.TagDeleteSuccessDetails>} - Success response
|
|
6505
6682
|
* @name removeInjectableTag
|
|
6506
6683
|
* @summary: Remove HTML tag
|
|
6507
6684
|
* @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
|
|
@@ -6557,7 +6734,7 @@ class Content {
|
|
|
6557
6734
|
|
|
6558
6735
|
const {
|
|
6559
6736
|
error: res_error,
|
|
6560
|
-
} = ContentPlatformModel.
|
|
6737
|
+
} = ContentPlatformModel.TagDeleteSuccessDetails().validate(responseData, {
|
|
6561
6738
|
abortEarly: false,
|
|
6562
6739
|
allowUnknown: true,
|
|
6563
6740
|
});
|
|
@@ -6659,25 +6836,25 @@ class Content {
|
|
|
6659
6836
|
}
|
|
6660
6837
|
|
|
6661
6838
|
/**
|
|
6662
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6839
|
+
* @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryBySlugParam} arg
|
|
6663
6840
|
* - Arg object
|
|
6664
6841
|
*
|
|
6665
6842
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6666
6843
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6667
6844
|
* @returns {Promise<string>} - Success response
|
|
6668
|
-
* @name
|
|
6845
|
+
* @name sampleAppCustomObjectBulkEntryBySlug
|
|
6669
6846
|
* @summary: Download sample for custom object bulk entry
|
|
6670
|
-
* @description: Sample files for custom object bulk import can be obtained from this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
6847
|
+
* @description: Sample files for custom object bulk import can be obtained from this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/sampleAppCustomObjectBulkEntryBySlug/).
|
|
6671
6848
|
*/
|
|
6672
|
-
async
|
|
6673
|
-
{
|
|
6849
|
+
async sampleAppCustomObjectBulkEntryBySlug(
|
|
6850
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
6674
6851
|
{ responseHeaders } = { responseHeaders: false }
|
|
6675
6852
|
) {
|
|
6676
6853
|
const {
|
|
6677
6854
|
error,
|
|
6678
|
-
} = ContentPlatformApplicationValidator.
|
|
6855
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6679
6856
|
{
|
|
6680
|
-
|
|
6857
|
+
slug,
|
|
6681
6858
|
},
|
|
6682
6859
|
{ abortEarly: false, allowUnknown: true }
|
|
6683
6860
|
);
|
|
@@ -6688,16 +6865,16 @@ class Content {
|
|
|
6688
6865
|
// Showing warrnings if extra unknown parameters are found
|
|
6689
6866
|
const {
|
|
6690
6867
|
error: warrning,
|
|
6691
|
-
} = ContentPlatformApplicationValidator.
|
|
6868
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6692
6869
|
{
|
|
6693
|
-
|
|
6870
|
+
slug,
|
|
6694
6871
|
},
|
|
6695
6872
|
{ abortEarly: false, allowUnknown: false }
|
|
6696
6873
|
);
|
|
6697
6874
|
if (warrning) {
|
|
6698
6875
|
Logger({
|
|
6699
6876
|
level: "WARN",
|
|
6700
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6877
|
+
message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${warrning}`,
|
|
6701
6878
|
});
|
|
6702
6879
|
}
|
|
6703
6880
|
|
|
@@ -6706,7 +6883,7 @@ class Content {
|
|
|
6706
6883
|
const response = await PlatformAPIClient.execute(
|
|
6707
6884
|
this.config,
|
|
6708
6885
|
"get",
|
|
6709
|
-
`/service/platform/content/
|
|
6886
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/sample`,
|
|
6710
6887
|
query_params,
|
|
6711
6888
|
undefined,
|
|
6712
6889
|
requestHeaders,
|
|
@@ -6728,7 +6905,7 @@ class Content {
|
|
|
6728
6905
|
} else {
|
|
6729
6906
|
Logger({
|
|
6730
6907
|
level: "WARN",
|
|
6731
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6908
|
+
message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${res_error}`,
|
|
6732
6909
|
});
|
|
6733
6910
|
}
|
|
6734
6911
|
}
|
|
@@ -6808,7 +6985,175 @@ class Content {
|
|
|
6808
6985
|
} else {
|
|
6809
6986
|
Logger({
|
|
6810
6987
|
level: "WARN",
|
|
6811
|
-
message: `Response Validation Warnings for platform > Content > selectDataLoader \n ${res_error}`,
|
|
6988
|
+
message: `Response Validation Warnings for platform > Content > selectDataLoader \n ${res_error}`,
|
|
6989
|
+
});
|
|
6990
|
+
}
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6993
|
+
return response;
|
|
6994
|
+
}
|
|
6995
|
+
|
|
6996
|
+
/**
|
|
6997
|
+
* @param {ContentPlatformApplicationValidator.UpdateAnnouncementParam} arg
|
|
6998
|
+
* - Arg object
|
|
6999
|
+
*
|
|
7000
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7001
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7002
|
+
* @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
|
|
7003
|
+
* Success response
|
|
7004
|
+
* @name updateAnnouncement
|
|
7005
|
+
* @summary: Update announcement
|
|
7006
|
+
* @description: Modify the content and settings of a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAnnouncement/).
|
|
7007
|
+
*/
|
|
7008
|
+
async updateAnnouncement(
|
|
7009
|
+
{ announcementId, body, requestHeaders } = { requestHeaders: {} },
|
|
7010
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
7011
|
+
) {
|
|
7012
|
+
const {
|
|
7013
|
+
error,
|
|
7014
|
+
} = ContentPlatformApplicationValidator.updateAnnouncement().validate(
|
|
7015
|
+
{
|
|
7016
|
+
announcementId,
|
|
7017
|
+
body,
|
|
7018
|
+
},
|
|
7019
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7020
|
+
);
|
|
7021
|
+
if (error) {
|
|
7022
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
7023
|
+
}
|
|
7024
|
+
|
|
7025
|
+
// Showing warrnings if extra unknown parameters are found
|
|
7026
|
+
const {
|
|
7027
|
+
error: warrning,
|
|
7028
|
+
} = ContentPlatformApplicationValidator.updateAnnouncement().validate(
|
|
7029
|
+
{
|
|
7030
|
+
announcementId,
|
|
7031
|
+
body,
|
|
7032
|
+
},
|
|
7033
|
+
{ abortEarly: false, allowUnknown: false }
|
|
7034
|
+
);
|
|
7035
|
+
if (warrning) {
|
|
7036
|
+
Logger({
|
|
7037
|
+
level: "WARN",
|
|
7038
|
+
message: `Parameter Validation warrnings for platform > Content > updateAnnouncement \n ${warrning}`,
|
|
7039
|
+
});
|
|
7040
|
+
}
|
|
7041
|
+
|
|
7042
|
+
const query_params = {};
|
|
7043
|
+
|
|
7044
|
+
const response = await PlatformAPIClient.execute(
|
|
7045
|
+
this.config,
|
|
7046
|
+
"put",
|
|
7047
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
|
|
7048
|
+
query_params,
|
|
7049
|
+
body,
|
|
7050
|
+
requestHeaders,
|
|
7051
|
+
{ responseHeaders }
|
|
7052
|
+
);
|
|
7053
|
+
|
|
7054
|
+
let responseData = response;
|
|
7055
|
+
if (responseHeaders) {
|
|
7056
|
+
responseData = response[0];
|
|
7057
|
+
}
|
|
7058
|
+
|
|
7059
|
+
const {
|
|
7060
|
+
error: res_error,
|
|
7061
|
+
} = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
|
|
7062
|
+
abortEarly: false,
|
|
7063
|
+
allowUnknown: true,
|
|
7064
|
+
});
|
|
7065
|
+
|
|
7066
|
+
if (res_error) {
|
|
7067
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
7068
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
7069
|
+
} else {
|
|
7070
|
+
Logger({
|
|
7071
|
+
level: "WARN",
|
|
7072
|
+
message: `Response Validation Warnings for platform > Content > updateAnnouncement \n ${res_error}`,
|
|
7073
|
+
});
|
|
7074
|
+
}
|
|
7075
|
+
}
|
|
7076
|
+
|
|
7077
|
+
return response;
|
|
7078
|
+
}
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* @param {ContentPlatformApplicationValidator.UpdateAnnouncementScheduleParam} arg
|
|
7082
|
+
* - Arg object
|
|
7083
|
+
*
|
|
7084
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7085
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7086
|
+
* @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
|
|
7087
|
+
* Success response
|
|
7088
|
+
* @name updateAnnouncementSchedule
|
|
7089
|
+
* @summary: Update announcement schedule
|
|
7090
|
+
* @description: Modify the scheduling of a specific announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAnnouncementSchedule/).
|
|
7091
|
+
*/
|
|
7092
|
+
async updateAnnouncementSchedule(
|
|
7093
|
+
{ announcementId, body, requestHeaders } = { requestHeaders: {} },
|
|
7094
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
7095
|
+
) {
|
|
7096
|
+
const {
|
|
7097
|
+
error,
|
|
7098
|
+
} = ContentPlatformApplicationValidator.updateAnnouncementSchedule().validate(
|
|
7099
|
+
{
|
|
7100
|
+
announcementId,
|
|
7101
|
+
body,
|
|
7102
|
+
},
|
|
7103
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7104
|
+
);
|
|
7105
|
+
if (error) {
|
|
7106
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
// Showing warrnings if extra unknown parameters are found
|
|
7110
|
+
const {
|
|
7111
|
+
error: warrning,
|
|
7112
|
+
} = ContentPlatformApplicationValidator.updateAnnouncementSchedule().validate(
|
|
7113
|
+
{
|
|
7114
|
+
announcementId,
|
|
7115
|
+
body,
|
|
7116
|
+
},
|
|
7117
|
+
{ abortEarly: false, allowUnknown: false }
|
|
7118
|
+
);
|
|
7119
|
+
if (warrning) {
|
|
7120
|
+
Logger({
|
|
7121
|
+
level: "WARN",
|
|
7122
|
+
message: `Parameter Validation warrnings for platform > Content > updateAnnouncementSchedule \n ${warrning}`,
|
|
7123
|
+
});
|
|
7124
|
+
}
|
|
7125
|
+
|
|
7126
|
+
const query_params = {};
|
|
7127
|
+
|
|
7128
|
+
const response = await PlatformAPIClient.execute(
|
|
7129
|
+
this.config,
|
|
7130
|
+
"patch",
|
|
7131
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
|
|
7132
|
+
query_params,
|
|
7133
|
+
body,
|
|
7134
|
+
requestHeaders,
|
|
7135
|
+
{ responseHeaders }
|
|
7136
|
+
);
|
|
7137
|
+
|
|
7138
|
+
let responseData = response;
|
|
7139
|
+
if (responseHeaders) {
|
|
7140
|
+
responseData = response[0];
|
|
7141
|
+
}
|
|
7142
|
+
|
|
7143
|
+
const {
|
|
7144
|
+
error: res_error,
|
|
7145
|
+
} = ContentPlatformModel.CreateAnnouncementSchema().validate(responseData, {
|
|
7146
|
+
abortEarly: false,
|
|
7147
|
+
allowUnknown: true,
|
|
7148
|
+
});
|
|
7149
|
+
|
|
7150
|
+
if (res_error) {
|
|
7151
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
7152
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
7153
|
+
} else {
|
|
7154
|
+
Logger({
|
|
7155
|
+
level: "WARN",
|
|
7156
|
+
message: `Response Validation Warnings for platform > Content > updateAnnouncementSchedule \n ${res_error}`,
|
|
6812
7157
|
});
|
|
6813
7158
|
}
|
|
6814
7159
|
}
|
|
@@ -6817,26 +7162,28 @@ class Content {
|
|
|
6817
7162
|
}
|
|
6818
7163
|
|
|
6819
7164
|
/**
|
|
6820
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7165
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
6821
7166
|
* - Arg object
|
|
6822
7167
|
*
|
|
6823
7168
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6824
7169
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6825
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6826
|
-
* Success response
|
|
6827
|
-
*
|
|
6828
|
-
* @
|
|
6829
|
-
* @
|
|
7170
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
7171
|
+
* - Success response
|
|
7172
|
+
*
|
|
7173
|
+
* @name updateAppCustomFieldByResourceSlug
|
|
7174
|
+
* @summary: Create custom field entries for gives resource and resource slug
|
|
7175
|
+
* @description: You can add a custom field using this endpoint to any resource by providing the resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldByResourceSlug/).
|
|
6830
7176
|
*/
|
|
6831
|
-
async
|
|
6832
|
-
{
|
|
7177
|
+
async updateAppCustomFieldByResourceSlug(
|
|
7178
|
+
{ resource, resourceSlug, body, requestHeaders } = { requestHeaders: {} },
|
|
6833
7179
|
{ responseHeaders } = { responseHeaders: false }
|
|
6834
7180
|
) {
|
|
6835
7181
|
const {
|
|
6836
7182
|
error,
|
|
6837
|
-
} = ContentPlatformApplicationValidator.
|
|
7183
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6838
7184
|
{
|
|
6839
|
-
|
|
7185
|
+
resource,
|
|
7186
|
+
resourceSlug,
|
|
6840
7187
|
body,
|
|
6841
7188
|
},
|
|
6842
7189
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6848,9 +7195,10 @@ class Content {
|
|
|
6848
7195
|
// Showing warrnings if extra unknown parameters are found
|
|
6849
7196
|
const {
|
|
6850
7197
|
error: warrning,
|
|
6851
|
-
} = ContentPlatformApplicationValidator.
|
|
7198
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6852
7199
|
{
|
|
6853
|
-
|
|
7200
|
+
resource,
|
|
7201
|
+
resourceSlug,
|
|
6854
7202
|
body,
|
|
6855
7203
|
},
|
|
6856
7204
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6858,7 +7206,7 @@ class Content {
|
|
|
6858
7206
|
if (warrning) {
|
|
6859
7207
|
Logger({
|
|
6860
7208
|
level: "WARN",
|
|
6861
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7209
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${warrning}`,
|
|
6862
7210
|
});
|
|
6863
7211
|
}
|
|
6864
7212
|
|
|
@@ -6867,7 +7215,7 @@ class Content {
|
|
|
6867
7215
|
const response = await PlatformAPIClient.execute(
|
|
6868
7216
|
this.config,
|
|
6869
7217
|
"put",
|
|
6870
|
-
`/service/platform/content/
|
|
7218
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
6871
7219
|
query_params,
|
|
6872
7220
|
body,
|
|
6873
7221
|
requestHeaders,
|
|
@@ -6881,10 +7229,10 @@ class Content {
|
|
|
6881
7229
|
|
|
6882
7230
|
const {
|
|
6883
7231
|
error: res_error,
|
|
6884
|
-
} = ContentPlatformModel.
|
|
6885
|
-
|
|
6886
|
-
allowUnknown: true
|
|
6887
|
-
|
|
7232
|
+
} = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
|
|
7233
|
+
responseData,
|
|
7234
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7235
|
+
);
|
|
6888
7236
|
|
|
6889
7237
|
if (res_error) {
|
|
6890
7238
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6892,7 +7240,7 @@ class Content {
|
|
|
6892
7240
|
} else {
|
|
6893
7241
|
Logger({
|
|
6894
7242
|
level: "WARN",
|
|
6895
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7243
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${res_error}`,
|
|
6896
7244
|
});
|
|
6897
7245
|
}
|
|
6898
7246
|
}
|
|
@@ -6901,26 +7249,31 @@ class Content {
|
|
|
6901
7249
|
}
|
|
6902
7250
|
|
|
6903
7251
|
/**
|
|
6904
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7252
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionBySlugParam} arg
|
|
6905
7253
|
* - Arg object
|
|
6906
7254
|
*
|
|
6907
7255
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6908
7256
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6909
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6910
|
-
* Success response
|
|
6911
|
-
*
|
|
6912
|
-
* @
|
|
6913
|
-
* @
|
|
7257
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
|
|
7258
|
+
* - Success response
|
|
7259
|
+
*
|
|
7260
|
+
* @name updateAppCustomFieldDefinitionBySlug
|
|
7261
|
+
* @summary: Update custom field definition
|
|
7262
|
+
* @description: Custom fields definition can be update using this api, You can update custom field definition name and description. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldDefinitionBySlug/).
|
|
6914
7263
|
*/
|
|
6915
|
-
async
|
|
6916
|
-
{
|
|
7264
|
+
async updateAppCustomFieldDefinitionBySlug(
|
|
7265
|
+
{ slug, resource, namespace, body, requestHeaders } = {
|
|
7266
|
+
requestHeaders: {},
|
|
7267
|
+
},
|
|
6917
7268
|
{ responseHeaders } = { responseHeaders: false }
|
|
6918
7269
|
) {
|
|
6919
7270
|
const {
|
|
6920
7271
|
error,
|
|
6921
|
-
} = ContentPlatformApplicationValidator.
|
|
7272
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6922
7273
|
{
|
|
6923
|
-
|
|
7274
|
+
slug,
|
|
7275
|
+
resource,
|
|
7276
|
+
namespace,
|
|
6924
7277
|
body,
|
|
6925
7278
|
},
|
|
6926
7279
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6932,9 +7285,11 @@ class Content {
|
|
|
6932
7285
|
// Showing warrnings if extra unknown parameters are found
|
|
6933
7286
|
const {
|
|
6934
7287
|
error: warrning,
|
|
6935
|
-
} = ContentPlatformApplicationValidator.
|
|
7288
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6936
7289
|
{
|
|
6937
|
-
|
|
7290
|
+
slug,
|
|
7291
|
+
resource,
|
|
7292
|
+
namespace,
|
|
6938
7293
|
body,
|
|
6939
7294
|
},
|
|
6940
7295
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6942,7 +7297,7 @@ class Content {
|
|
|
6942
7297
|
if (warrning) {
|
|
6943
7298
|
Logger({
|
|
6944
7299
|
level: "WARN",
|
|
6945
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7300
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
6946
7301
|
});
|
|
6947
7302
|
}
|
|
6948
7303
|
|
|
@@ -6950,8 +7305,8 @@ class Content {
|
|
|
6950
7305
|
|
|
6951
7306
|
const response = await PlatformAPIClient.execute(
|
|
6952
7307
|
this.config,
|
|
6953
|
-
"
|
|
6954
|
-
`/service/platform/content/
|
|
7308
|
+
"put",
|
|
7309
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
6955
7310
|
query_params,
|
|
6956
7311
|
body,
|
|
6957
7312
|
requestHeaders,
|
|
@@ -6965,10 +7320,10 @@ class Content {
|
|
|
6965
7320
|
|
|
6966
7321
|
const {
|
|
6967
7322
|
error: res_error,
|
|
6968
|
-
} = ContentPlatformModel.
|
|
6969
|
-
|
|
6970
|
-
allowUnknown: true
|
|
6971
|
-
|
|
7323
|
+
} = ContentPlatformModel.CustomFieldDefinitionDetailResSchema().validate(
|
|
7324
|
+
responseData,
|
|
7325
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7326
|
+
);
|
|
6972
7327
|
|
|
6973
7328
|
if (res_error) {
|
|
6974
7329
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6976,7 +7331,7 @@ class Content {
|
|
|
6976
7331
|
} else {
|
|
6977
7332
|
Logger({
|
|
6978
7333
|
level: "WARN",
|
|
6979
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7334
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
6980
7335
|
});
|
|
6981
7336
|
}
|
|
6982
7337
|
}
|
|
@@ -6985,28 +7340,27 @@ class Content {
|
|
|
6985
7340
|
}
|
|
6986
7341
|
|
|
6987
7342
|
/**
|
|
6988
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7343
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectBySlugParam} arg
|
|
6989
7344
|
* - Arg object
|
|
6990
7345
|
*
|
|
6991
7346
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6992
7347
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6993
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6994
|
-
*
|
|
6995
|
-
*
|
|
6996
|
-
* @
|
|
6997
|
-
* @
|
|
6998
|
-
* @description: Use this API to create the custom field entry for given resource and resource_id in param. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomFieldByResourceId/).
|
|
7348
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
7349
|
+
* Success response
|
|
7350
|
+
* @name updateAppCustomObjectBySlug
|
|
7351
|
+
* @summary: Update custom object details
|
|
7352
|
+
* @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectBySlug/).
|
|
6999
7353
|
*/
|
|
7000
|
-
async
|
|
7001
|
-
{
|
|
7354
|
+
async updateAppCustomObjectBySlug(
|
|
7355
|
+
{ definitionSlug, slug, body, requestHeaders } = { requestHeaders: {} },
|
|
7002
7356
|
{ responseHeaders } = { responseHeaders: false }
|
|
7003
7357
|
) {
|
|
7004
7358
|
const {
|
|
7005
7359
|
error,
|
|
7006
|
-
} = ContentPlatformApplicationValidator.
|
|
7360
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
7007
7361
|
{
|
|
7008
|
-
|
|
7009
|
-
|
|
7362
|
+
definitionSlug,
|
|
7363
|
+
slug,
|
|
7010
7364
|
body,
|
|
7011
7365
|
},
|
|
7012
7366
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -7018,10 +7372,10 @@ class Content {
|
|
|
7018
7372
|
// Showing warrnings if extra unknown parameters are found
|
|
7019
7373
|
const {
|
|
7020
7374
|
error: warrning,
|
|
7021
|
-
} = ContentPlatformApplicationValidator.
|
|
7375
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
7022
7376
|
{
|
|
7023
|
-
|
|
7024
|
-
|
|
7377
|
+
definitionSlug,
|
|
7378
|
+
slug,
|
|
7025
7379
|
body,
|
|
7026
7380
|
},
|
|
7027
7381
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -7029,7 +7383,7 @@ class Content {
|
|
|
7029
7383
|
if (warrning) {
|
|
7030
7384
|
Logger({
|
|
7031
7385
|
level: "WARN",
|
|
7032
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7386
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectBySlug \n ${warrning}`,
|
|
7033
7387
|
});
|
|
7034
7388
|
}
|
|
7035
7389
|
|
|
@@ -7038,7 +7392,7 @@ class Content {
|
|
|
7038
7392
|
const response = await PlatformAPIClient.execute(
|
|
7039
7393
|
this.config,
|
|
7040
7394
|
"put",
|
|
7041
|
-
`/service/platform/content/
|
|
7395
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
7042
7396
|
query_params,
|
|
7043
7397
|
body,
|
|
7044
7398
|
requestHeaders,
|
|
@@ -7052,10 +7406,10 @@ class Content {
|
|
|
7052
7406
|
|
|
7053
7407
|
const {
|
|
7054
7408
|
error: res_error,
|
|
7055
|
-
} = ContentPlatformModel.
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
);
|
|
7409
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
7410
|
+
abortEarly: false,
|
|
7411
|
+
allowUnknown: true,
|
|
7412
|
+
});
|
|
7059
7413
|
|
|
7060
7414
|
if (res_error) {
|
|
7061
7415
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -7063,7 +7417,7 @@ class Content {
|
|
|
7063
7417
|
} else {
|
|
7064
7418
|
Logger({
|
|
7065
7419
|
level: "WARN",
|
|
7066
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7420
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectBySlug \n ${res_error}`,
|
|
7067
7421
|
});
|
|
7068
7422
|
}
|
|
7069
7423
|
}
|
|
@@ -7072,27 +7426,27 @@ class Content {
|
|
|
7072
7426
|
}
|
|
7073
7427
|
|
|
7074
7428
|
/**
|
|
7075
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7429
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionBySlugParam} arg
|
|
7076
7430
|
* - Arg object
|
|
7077
7431
|
*
|
|
7078
7432
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7079
7433
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7080
|
-
* @returns {Promise<ContentPlatformModel.
|
|
7434
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
7081
7435
|
* - Success response
|
|
7082
7436
|
*
|
|
7083
|
-
* @name
|
|
7084
|
-
* @summary: Update custom
|
|
7085
|
-
* @description: Custom
|
|
7437
|
+
* @name updateAppCustomObjectDefinitionBySlug
|
|
7438
|
+
* @summary: Update custom object definition
|
|
7439
|
+
* @description: Custom object definitions can be updated using this endpoint. You can update the name and description of the custom object and add more custom field definitions to the existing custom object. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectDefinitionBySlug/).
|
|
7086
7440
|
*/
|
|
7087
|
-
async
|
|
7088
|
-
{
|
|
7441
|
+
async updateAppCustomObjectDefinitionBySlug(
|
|
7442
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
7089
7443
|
{ responseHeaders } = { responseHeaders: false }
|
|
7090
7444
|
) {
|
|
7091
7445
|
const {
|
|
7092
7446
|
error,
|
|
7093
|
-
} = ContentPlatformApplicationValidator.
|
|
7447
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7094
7448
|
{
|
|
7095
|
-
|
|
7449
|
+
slug,
|
|
7096
7450
|
body,
|
|
7097
7451
|
},
|
|
7098
7452
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -7104,9 +7458,9 @@ class Content {
|
|
|
7104
7458
|
// Showing warrnings if extra unknown parameters are found
|
|
7105
7459
|
const {
|
|
7106
7460
|
error: warrning,
|
|
7107
|
-
} = ContentPlatformApplicationValidator.
|
|
7461
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7108
7462
|
{
|
|
7109
|
-
|
|
7463
|
+
slug,
|
|
7110
7464
|
body,
|
|
7111
7465
|
},
|
|
7112
7466
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -7114,7 +7468,7 @@ class Content {
|
|
|
7114
7468
|
if (warrning) {
|
|
7115
7469
|
Logger({
|
|
7116
7470
|
level: "WARN",
|
|
7117
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7471
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
7118
7472
|
});
|
|
7119
7473
|
}
|
|
7120
7474
|
|
|
@@ -7123,7 +7477,7 @@ class Content {
|
|
|
7123
7477
|
const response = await PlatformAPIClient.execute(
|
|
7124
7478
|
this.config,
|
|
7125
7479
|
"put",
|
|
7126
|
-
`/service/platform/content/
|
|
7480
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
7127
7481
|
query_params,
|
|
7128
7482
|
body,
|
|
7129
7483
|
requestHeaders,
|
|
@@ -7137,7 +7491,7 @@ class Content {
|
|
|
7137
7491
|
|
|
7138
7492
|
const {
|
|
7139
7493
|
error: res_error,
|
|
7140
|
-
} = ContentPlatformModel.
|
|
7494
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
7141
7495
|
responseData,
|
|
7142
7496
|
{ abortEarly: false, allowUnknown: true }
|
|
7143
7497
|
);
|
|
@@ -7148,7 +7502,7 @@ class Content {
|
|
|
7148
7502
|
} else {
|
|
7149
7503
|
Logger({
|
|
7150
7504
|
level: "WARN",
|
|
7151
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7505
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
7152
7506
|
});
|
|
7153
7507
|
}
|
|
7154
7508
|
}
|
|
@@ -7157,26 +7511,25 @@ class Content {
|
|
|
7157
7511
|
}
|
|
7158
7512
|
|
|
7159
7513
|
/**
|
|
7160
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7514
|
+
* @param {ContentPlatformApplicationValidator.UpdateApplicationLanguageStatusParam} arg
|
|
7161
7515
|
* - Arg object
|
|
7162
7516
|
*
|
|
7163
7517
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7164
7518
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7165
|
-
* @returns {Promise<ContentPlatformModel.
|
|
7166
|
-
*
|
|
7167
|
-
* @
|
|
7168
|
-
* @
|
|
7169
|
-
* @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObject/).
|
|
7519
|
+
* @returns {Promise<ContentPlatformModel.ApplicationLanguage>} - Success response
|
|
7520
|
+
* @name updateApplicationLanguageStatus
|
|
7521
|
+
* @summary: Set app language
|
|
7522
|
+
* @description: Update language status and settings for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateApplicationLanguageStatus/).
|
|
7170
7523
|
*/
|
|
7171
|
-
async
|
|
7172
|
-
{
|
|
7524
|
+
async updateApplicationLanguageStatus(
|
|
7525
|
+
{ locale, body, requestHeaders } = { requestHeaders: {} },
|
|
7173
7526
|
{ responseHeaders } = { responseHeaders: false }
|
|
7174
7527
|
) {
|
|
7175
7528
|
const {
|
|
7176
7529
|
error,
|
|
7177
|
-
} = ContentPlatformApplicationValidator.
|
|
7530
|
+
} = ContentPlatformApplicationValidator.updateApplicationLanguageStatus().validate(
|
|
7178
7531
|
{
|
|
7179
|
-
|
|
7532
|
+
locale,
|
|
7180
7533
|
body,
|
|
7181
7534
|
},
|
|
7182
7535
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -7188,9 +7541,9 @@ class Content {
|
|
|
7188
7541
|
// Showing warrnings if extra unknown parameters are found
|
|
7189
7542
|
const {
|
|
7190
7543
|
error: warrning,
|
|
7191
|
-
} = ContentPlatformApplicationValidator.
|
|
7544
|
+
} = ContentPlatformApplicationValidator.updateApplicationLanguageStatus().validate(
|
|
7192
7545
|
{
|
|
7193
|
-
|
|
7546
|
+
locale,
|
|
7194
7547
|
body,
|
|
7195
7548
|
},
|
|
7196
7549
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -7198,7 +7551,7 @@ class Content {
|
|
|
7198
7551
|
if (warrning) {
|
|
7199
7552
|
Logger({
|
|
7200
7553
|
level: "WARN",
|
|
7201
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7554
|
+
message: `Parameter Validation warrnings for platform > Content > updateApplicationLanguageStatus \n ${warrning}`,
|
|
7202
7555
|
});
|
|
7203
7556
|
}
|
|
7204
7557
|
|
|
@@ -7207,7 +7560,7 @@ class Content {
|
|
|
7207
7560
|
const response = await PlatformAPIClient.execute(
|
|
7208
7561
|
this.config,
|
|
7209
7562
|
"put",
|
|
7210
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
7563
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/languages/${locale}`,
|
|
7211
7564
|
query_params,
|
|
7212
7565
|
body,
|
|
7213
7566
|
requestHeaders,
|
|
@@ -7221,10 +7574,10 @@ class Content {
|
|
|
7221
7574
|
|
|
7222
7575
|
const {
|
|
7223
7576
|
error: res_error,
|
|
7224
|
-
} = ContentPlatformModel.
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
);
|
|
7577
|
+
} = ContentPlatformModel.ApplicationLanguage().validate(responseData, {
|
|
7578
|
+
abortEarly: false,
|
|
7579
|
+
allowUnknown: true,
|
|
7580
|
+
});
|
|
7228
7581
|
|
|
7229
7582
|
if (res_error) {
|
|
7230
7583
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -7232,7 +7585,7 @@ class Content {
|
|
|
7232
7585
|
} else {
|
|
7233
7586
|
Logger({
|
|
7234
7587
|
level: "WARN",
|
|
7235
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7588
|
+
message: `Response Validation Warnings for platform > Content > updateApplicationLanguageStatus \n ${res_error}`,
|
|
7236
7589
|
});
|
|
7237
7590
|
}
|
|
7238
7591
|
}
|
|
@@ -7241,24 +7594,23 @@ class Content {
|
|
|
7241
7594
|
}
|
|
7242
7595
|
|
|
7243
7596
|
/**
|
|
7244
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7597
|
+
* @param {ContentPlatformApplicationValidator.UpdateApplicationResourceTranslationParam} arg
|
|
7245
7598
|
* - Arg object
|
|
7246
7599
|
*
|
|
7247
7600
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7248
7601
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7249
|
-
* @returns {Promise<ContentPlatformModel.
|
|
7250
|
-
*
|
|
7251
|
-
* @
|
|
7252
|
-
* @
|
|
7253
|
-
* @description: Use this API to update a custom object definition for your application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectDefinition/).
|
|
7602
|
+
* @returns {Promise<ContentPlatformModel.ResourceTranslation>} - Success response
|
|
7603
|
+
* @name updateApplicationResourceTranslation
|
|
7604
|
+
* @summary: Update app translation
|
|
7605
|
+
* @description: Update existing translations for application resources. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateApplicationResourceTranslation/).
|
|
7254
7606
|
*/
|
|
7255
|
-
async
|
|
7607
|
+
async updateApplicationResourceTranslation(
|
|
7256
7608
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
7257
7609
|
{ responseHeaders } = { responseHeaders: false }
|
|
7258
7610
|
) {
|
|
7259
7611
|
const {
|
|
7260
7612
|
error,
|
|
7261
|
-
} = ContentPlatformApplicationValidator.
|
|
7613
|
+
} = ContentPlatformApplicationValidator.updateApplicationResourceTranslation().validate(
|
|
7262
7614
|
{
|
|
7263
7615
|
id,
|
|
7264
7616
|
body,
|
|
@@ -7272,7 +7624,7 @@ class Content {
|
|
|
7272
7624
|
// Showing warrnings if extra unknown parameters are found
|
|
7273
7625
|
const {
|
|
7274
7626
|
error: warrning,
|
|
7275
|
-
} = ContentPlatformApplicationValidator.
|
|
7627
|
+
} = ContentPlatformApplicationValidator.updateApplicationResourceTranslation().validate(
|
|
7276
7628
|
{
|
|
7277
7629
|
id,
|
|
7278
7630
|
body,
|
|
@@ -7282,7 +7634,7 @@ class Content {
|
|
|
7282
7634
|
if (warrning) {
|
|
7283
7635
|
Logger({
|
|
7284
7636
|
level: "WARN",
|
|
7285
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7637
|
+
message: `Parameter Validation warrnings for platform > Content > updateApplicationResourceTranslation \n ${warrning}`,
|
|
7286
7638
|
});
|
|
7287
7639
|
}
|
|
7288
7640
|
|
|
@@ -7291,7 +7643,7 @@ class Content {
|
|
|
7291
7643
|
const response = await PlatformAPIClient.execute(
|
|
7292
7644
|
this.config,
|
|
7293
7645
|
"put",
|
|
7294
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
7646
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/${id}`,
|
|
7295
7647
|
query_params,
|
|
7296
7648
|
body,
|
|
7297
7649
|
requestHeaders,
|
|
@@ -7305,10 +7657,10 @@ class Content {
|
|
|
7305
7657
|
|
|
7306
7658
|
const {
|
|
7307
7659
|
error: res_error,
|
|
7308
|
-
} = ContentPlatformModel.
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
);
|
|
7660
|
+
} = ContentPlatformModel.ResourceTranslation().validate(responseData, {
|
|
7661
|
+
abortEarly: false,
|
|
7662
|
+
allowUnknown: true,
|
|
7663
|
+
});
|
|
7312
7664
|
|
|
7313
7665
|
if (res_error) {
|
|
7314
7666
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -7316,7 +7668,7 @@ class Content {
|
|
|
7316
7668
|
} else {
|
|
7317
7669
|
Logger({
|
|
7318
7670
|
level: "WARN",
|
|
7319
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7671
|
+
message: `Response Validation Warnings for platform > Content > updateApplicationResourceTranslation \n ${res_error}`,
|
|
7320
7672
|
});
|
|
7321
7673
|
}
|
|
7322
7674
|
}
|
|
@@ -7575,8 +7927,8 @@ class Content {
|
|
|
7575
7927
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7576
7928
|
* @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
|
|
7577
7929
|
* @name updateInjectableTag
|
|
7578
|
-
* @summary: Update HTML
|
|
7579
|
-
* @description:
|
|
7930
|
+
* @summary: Update HTML tag
|
|
7931
|
+
* @description: Modify settings for an injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/).
|
|
7580
7932
|
*/
|
|
7581
7933
|
async updateInjectableTag(
|
|
7582
7934
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -8061,7 +8413,7 @@ class Content {
|
|
|
8061
8413
|
*
|
|
8062
8414
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8063
8415
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
8064
|
-
* @returns {Promise<ContentPlatformModel.
|
|
8416
|
+
* @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
|
|
8065
8417
|
* @name updatePathRedirectionRules
|
|
8066
8418
|
* @summary: Update path redirection rule
|
|
8067
8419
|
* @description: Modify settings for path redirection rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updatePathRedirectionRules/).
|
|
@@ -8119,7 +8471,7 @@ class Content {
|
|
|
8119
8471
|
|
|
8120
8472
|
const {
|
|
8121
8473
|
error: res_error,
|
|
8122
|
-
} = ContentPlatformModel.
|
|
8474
|
+
} = ContentPlatformModel.PathMappingSchema().validate(responseData, {
|
|
8123
8475
|
abortEarly: false,
|
|
8124
8476
|
allowUnknown: true,
|
|
8125
8477
|
});
|
|
@@ -8299,6 +8651,173 @@ class Content {
|
|
|
8299
8651
|
|
|
8300
8652
|
return response;
|
|
8301
8653
|
}
|
|
8654
|
+
|
|
8655
|
+
/**
|
|
8656
|
+
* @param {ContentPlatformApplicationValidator.UpdateTranslateUILabelsParam} arg
|
|
8657
|
+
* - Arg object
|
|
8658
|
+
*
|
|
8659
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8660
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
8661
|
+
* @returns {Promise<ContentPlatformModel.TranslateUiLabels>} - Success response
|
|
8662
|
+
* @name updateTranslateUILabels
|
|
8663
|
+
* @summary: Update Resource Detail
|
|
8664
|
+
* @description: Modifies existing Translate Ui Labels properties including locale, type, and associated configurations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateTranslateUILabels/).
|
|
8665
|
+
*/
|
|
8666
|
+
async updateTranslateUILabels(
|
|
8667
|
+
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
8668
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
8669
|
+
) {
|
|
8670
|
+
const {
|
|
8671
|
+
error,
|
|
8672
|
+
} = ContentPlatformApplicationValidator.updateTranslateUILabels().validate(
|
|
8673
|
+
{
|
|
8674
|
+
id,
|
|
8675
|
+
|
|
8676
|
+
body,
|
|
8677
|
+
},
|
|
8678
|
+
{ abortEarly: false, allowUnknown: true }
|
|
8679
|
+
);
|
|
8680
|
+
if (error) {
|
|
8681
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
// Showing warrnings if extra unknown parameters are found
|
|
8685
|
+
const {
|
|
8686
|
+
error: warrning,
|
|
8687
|
+
} = ContentPlatformApplicationValidator.updateTranslateUILabels().validate(
|
|
8688
|
+
{
|
|
8689
|
+
id,
|
|
8690
|
+
|
|
8691
|
+
body,
|
|
8692
|
+
},
|
|
8693
|
+
{ abortEarly: false, allowUnknown: false }
|
|
8694
|
+
);
|
|
8695
|
+
if (warrning) {
|
|
8696
|
+
Logger({
|
|
8697
|
+
level: "WARN",
|
|
8698
|
+
message: `Parameter Validation warrnings for platform > Content > updateTranslateUILabels \n ${warrning}`,
|
|
8699
|
+
});
|
|
8700
|
+
}
|
|
8701
|
+
|
|
8702
|
+
const query_params = {};
|
|
8703
|
+
|
|
8704
|
+
const response = await PlatformAPIClient.execute(
|
|
8705
|
+
this.config,
|
|
8706
|
+
"put",
|
|
8707
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/translate-ui-labels/${id}`,
|
|
8708
|
+
query_params,
|
|
8709
|
+
body,
|
|
8710
|
+
requestHeaders,
|
|
8711
|
+
{ responseHeaders }
|
|
8712
|
+
);
|
|
8713
|
+
|
|
8714
|
+
let responseData = response;
|
|
8715
|
+
if (responseHeaders) {
|
|
8716
|
+
responseData = response[0];
|
|
8717
|
+
}
|
|
8718
|
+
|
|
8719
|
+
const {
|
|
8720
|
+
error: res_error,
|
|
8721
|
+
} = ContentPlatformModel.TranslateUiLabels().validate(responseData, {
|
|
8722
|
+
abortEarly: false,
|
|
8723
|
+
allowUnknown: true,
|
|
8724
|
+
});
|
|
8725
|
+
|
|
8726
|
+
if (res_error) {
|
|
8727
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
8728
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
8729
|
+
} else {
|
|
8730
|
+
Logger({
|
|
8731
|
+
level: "WARN",
|
|
8732
|
+
message: `Response Validation Warnings for platform > Content > updateTranslateUILabels \n ${res_error}`,
|
|
8733
|
+
});
|
|
8734
|
+
}
|
|
8735
|
+
}
|
|
8736
|
+
|
|
8737
|
+
return response;
|
|
8738
|
+
}
|
|
8739
|
+
|
|
8740
|
+
/**
|
|
8741
|
+
* @param {ContentPlatformApplicationValidator.UpsertApplicationResourceTranslationInBulkParam} arg
|
|
8742
|
+
* - Arg object
|
|
8743
|
+
*
|
|
8744
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8745
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
8746
|
+
* @returns {Promise<ContentPlatformModel.ResourceTranslationBulkUpsert>} -
|
|
8747
|
+
* Success response
|
|
8748
|
+
* @name upsertApplicationResourceTranslationInBulk
|
|
8749
|
+
* @summary: Bulk update translations
|
|
8750
|
+
* @description: Create or update multiple translations in a single request. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/upsertApplicationResourceTranslationInBulk/).
|
|
8751
|
+
*/
|
|
8752
|
+
async upsertApplicationResourceTranslationInBulk(
|
|
8753
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
8754
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
8755
|
+
) {
|
|
8756
|
+
const {
|
|
8757
|
+
error,
|
|
8758
|
+
} = ContentPlatformApplicationValidator.upsertApplicationResourceTranslationInBulk().validate(
|
|
8759
|
+
{
|
|
8760
|
+
body,
|
|
8761
|
+
},
|
|
8762
|
+
{ abortEarly: false, allowUnknown: true }
|
|
8763
|
+
);
|
|
8764
|
+
if (error) {
|
|
8765
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
8766
|
+
}
|
|
8767
|
+
|
|
8768
|
+
// Showing warrnings if extra unknown parameters are found
|
|
8769
|
+
const {
|
|
8770
|
+
error: warrning,
|
|
8771
|
+
} = ContentPlatformApplicationValidator.upsertApplicationResourceTranslationInBulk().validate(
|
|
8772
|
+
{
|
|
8773
|
+
body,
|
|
8774
|
+
},
|
|
8775
|
+
{ abortEarly: false, allowUnknown: false }
|
|
8776
|
+
);
|
|
8777
|
+
if (warrning) {
|
|
8778
|
+
Logger({
|
|
8779
|
+
level: "WARN",
|
|
8780
|
+
message: `Parameter Validation warrnings for platform > Content > upsertApplicationResourceTranslationInBulk \n ${warrning}`,
|
|
8781
|
+
});
|
|
8782
|
+
}
|
|
8783
|
+
|
|
8784
|
+
const query_params = {};
|
|
8785
|
+
|
|
8786
|
+
const response = await PlatformAPIClient.execute(
|
|
8787
|
+
this.config,
|
|
8788
|
+
"patch",
|
|
8789
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resource/translations/bulk`,
|
|
8790
|
+
query_params,
|
|
8791
|
+
body,
|
|
8792
|
+
requestHeaders,
|
|
8793
|
+
{ responseHeaders }
|
|
8794
|
+
);
|
|
8795
|
+
|
|
8796
|
+
let responseData = response;
|
|
8797
|
+
if (responseHeaders) {
|
|
8798
|
+
responseData = response[0];
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
const {
|
|
8802
|
+
error: res_error,
|
|
8803
|
+
} = ContentPlatformModel.ResourceTranslationBulkUpsert().validate(
|
|
8804
|
+
responseData,
|
|
8805
|
+
{ abortEarly: false, allowUnknown: true }
|
|
8806
|
+
);
|
|
8807
|
+
|
|
8808
|
+
if (res_error) {
|
|
8809
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
8810
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
8811
|
+
} else {
|
|
8812
|
+
Logger({
|
|
8813
|
+
level: "WARN",
|
|
8814
|
+
message: `Response Validation Warnings for platform > Content > upsertApplicationResourceTranslationInBulk \n ${res_error}`,
|
|
8815
|
+
});
|
|
8816
|
+
}
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8819
|
+
return response;
|
|
8820
|
+
}
|
|
8302
8821
|
}
|
|
8303
8822
|
|
|
8304
8823
|
module.exports = Content;
|