@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +108 -1199
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -111
- package/sdk/application/Content/ContentApplicationClient.js +43 -1065
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +91 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +103 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +157 -30
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5060 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1985 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +178 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +122 -191
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1233 -476
- package/sdk/platform/Content/ContentPlatformModel.js +514 -487
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +424 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
- package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +145 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +132 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +795 -7
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
- 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 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -416,93 +416,6 @@ class Content {
|
|
|
416
416
|
return response;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
/**
|
|
420
|
-
* @param {ContentPlatformApplicationValidator.CreateAppCustomFieldByResourceIdParam} arg
|
|
421
|
-
* - Arg object
|
|
422
|
-
*
|
|
423
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
424
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
425
|
-
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
426
|
-
* - Success response
|
|
427
|
-
*
|
|
428
|
-
* @name createAppCustomFieldByResourceId
|
|
429
|
-
* @summary: Create custom field entries for gives resource and resource_id
|
|
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/).
|
|
431
|
-
*/
|
|
432
|
-
async createAppCustomFieldByResourceId(
|
|
433
|
-
{ resource, resourceId, body, requestHeaders } = { requestHeaders: {} },
|
|
434
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
435
|
-
) {
|
|
436
|
-
const {
|
|
437
|
-
error,
|
|
438
|
-
} = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
|
|
439
|
-
{
|
|
440
|
-
resource,
|
|
441
|
-
resourceId,
|
|
442
|
-
body,
|
|
443
|
-
},
|
|
444
|
-
{ abortEarly: false, allowUnknown: true }
|
|
445
|
-
);
|
|
446
|
-
if (error) {
|
|
447
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// Showing warrnings if extra unknown parameters are found
|
|
451
|
-
const {
|
|
452
|
-
error: warrning,
|
|
453
|
-
} = ContentPlatformApplicationValidator.createAppCustomFieldByResourceId().validate(
|
|
454
|
-
{
|
|
455
|
-
resource,
|
|
456
|
-
resourceId,
|
|
457
|
-
body,
|
|
458
|
-
},
|
|
459
|
-
{ abortEarly: false, allowUnknown: false }
|
|
460
|
-
);
|
|
461
|
-
if (warrning) {
|
|
462
|
-
Logger({
|
|
463
|
-
level: "WARN",
|
|
464
|
-
message: `Parameter Validation warrnings for platform > Content > createAppCustomFieldByResourceId \n ${warrning}`,
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
const query_params = {};
|
|
469
|
-
|
|
470
|
-
const response = await PlatformAPIClient.execute(
|
|
471
|
-
this.config,
|
|
472
|
-
"put",
|
|
473
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/${resource}/${resourceId}`,
|
|
474
|
-
query_params,
|
|
475
|
-
body,
|
|
476
|
-
requestHeaders,
|
|
477
|
-
{ responseHeaders }
|
|
478
|
-
);
|
|
479
|
-
|
|
480
|
-
let responseData = response;
|
|
481
|
-
if (responseHeaders) {
|
|
482
|
-
responseData = response[0];
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
const {
|
|
486
|
-
error: res_error,
|
|
487
|
-
} = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
|
|
488
|
-
responseData,
|
|
489
|
-
{ abortEarly: false, allowUnknown: true }
|
|
490
|
-
);
|
|
491
|
-
|
|
492
|
-
if (res_error) {
|
|
493
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
494
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
495
|
-
} else {
|
|
496
|
-
Logger({
|
|
497
|
-
level: "WARN",
|
|
498
|
-
message: `Response Validation Warnings for platform > Content > createAppCustomFieldByResourceId \n ${res_error}`,
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
return response;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
419
|
/**
|
|
507
420
|
* @param {ContentPlatformApplicationValidator.CreateAppCustomFieldDefinitionParam} arg
|
|
508
421
|
* - Arg object
|
|
@@ -513,17 +426,18 @@ class Content {
|
|
|
513
426
|
* - Success response
|
|
514
427
|
*
|
|
515
428
|
* @name createAppCustomFieldDefinition
|
|
516
|
-
* @summary: Create custom field definition
|
|
429
|
+
* @summary: Create custom field definition for a given resource type
|
|
517
430
|
* @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
431
|
*/
|
|
519
432
|
async createAppCustomFieldDefinition(
|
|
520
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
433
|
+
{ resource, body, requestHeaders } = { requestHeaders: {} },
|
|
521
434
|
{ responseHeaders } = { responseHeaders: false }
|
|
522
435
|
) {
|
|
523
436
|
const {
|
|
524
437
|
error,
|
|
525
438
|
} = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
|
|
526
439
|
{
|
|
440
|
+
resource,
|
|
527
441
|
body,
|
|
528
442
|
},
|
|
529
443
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -537,6 +451,7 @@ class Content {
|
|
|
537
451
|
error: warrning,
|
|
538
452
|
} = ContentPlatformApplicationValidator.createAppCustomFieldDefinition().validate(
|
|
539
453
|
{
|
|
454
|
+
resource,
|
|
540
455
|
body,
|
|
541
456
|
},
|
|
542
457
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -553,7 +468,7 @@ class Content {
|
|
|
553
468
|
const response = await PlatformAPIClient.execute(
|
|
554
469
|
this.config,
|
|
555
470
|
"post",
|
|
556
|
-
`/service/platform/content/
|
|
471
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
|
|
557
472
|
query_params,
|
|
558
473
|
body,
|
|
559
474
|
requestHeaders,
|
|
@@ -587,24 +502,25 @@ class Content {
|
|
|
587
502
|
}
|
|
588
503
|
|
|
589
504
|
/**
|
|
590
|
-
* @param {ContentPlatformApplicationValidator.
|
|
505
|
+
* @param {ContentPlatformApplicationValidator.CreateAppCustomObjectBySlugParam} arg
|
|
591
506
|
* - Arg object
|
|
592
507
|
*
|
|
593
508
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
594
509
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
595
510
|
* @returns {Promise<ContentPlatformModel.CustomObjectSchema>} - Success response
|
|
596
|
-
* @name
|
|
511
|
+
* @name createAppCustomObjectBySlug
|
|
597
512
|
* @summary: Create custom object entries
|
|
598
|
-
* @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/
|
|
513
|
+
* @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/).
|
|
599
514
|
*/
|
|
600
|
-
async
|
|
601
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
515
|
+
async createAppCustomObjectBySlug(
|
|
516
|
+
{ definitionSlug, body, requestHeaders } = { requestHeaders: {} },
|
|
602
517
|
{ responseHeaders } = { responseHeaders: false }
|
|
603
518
|
) {
|
|
604
519
|
const {
|
|
605
520
|
error,
|
|
606
|
-
} = ContentPlatformApplicationValidator.
|
|
521
|
+
} = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
|
|
607
522
|
{
|
|
523
|
+
definitionSlug,
|
|
608
524
|
body,
|
|
609
525
|
},
|
|
610
526
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -616,8 +532,9 @@ class Content {
|
|
|
616
532
|
// Showing warrnings if extra unknown parameters are found
|
|
617
533
|
const {
|
|
618
534
|
error: warrning,
|
|
619
|
-
} = ContentPlatformApplicationValidator.
|
|
535
|
+
} = ContentPlatformApplicationValidator.createAppCustomObjectBySlug().validate(
|
|
620
536
|
{
|
|
537
|
+
definitionSlug,
|
|
621
538
|
body,
|
|
622
539
|
},
|
|
623
540
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -625,7 +542,7 @@ class Content {
|
|
|
625
542
|
if (warrning) {
|
|
626
543
|
Logger({
|
|
627
544
|
level: "WARN",
|
|
628
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
545
|
+
message: `Parameter Validation warrnings for platform > Content > createAppCustomObjectBySlug \n ${warrning}`,
|
|
629
546
|
});
|
|
630
547
|
}
|
|
631
548
|
|
|
@@ -634,7 +551,7 @@ class Content {
|
|
|
634
551
|
const response = await PlatformAPIClient.execute(
|
|
635
552
|
this.config,
|
|
636
553
|
"post",
|
|
637
|
-
`/service/platform/content/
|
|
554
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
|
|
638
555
|
query_params,
|
|
639
556
|
body,
|
|
640
557
|
requestHeaders,
|
|
@@ -659,7 +576,7 @@ class Content {
|
|
|
659
576
|
} else {
|
|
660
577
|
Logger({
|
|
661
578
|
level: "WARN",
|
|
662
|
-
message: `Response Validation Warnings for platform > Content >
|
|
579
|
+
message: `Response Validation Warnings for platform > Content > createAppCustomObjectBySlug \n ${res_error}`,
|
|
663
580
|
});
|
|
664
581
|
}
|
|
665
582
|
}
|
|
@@ -673,8 +590,9 @@ class Content {
|
|
|
673
590
|
*
|
|
674
591
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
675
592
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
|
-
* @returns {Promise<ContentPlatformModel.
|
|
677
|
-
* Success response
|
|
593
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
594
|
+
* - Success response
|
|
595
|
+
*
|
|
678
596
|
* @name createAppCustomObjectDefinition
|
|
679
597
|
* @summary: Create custom object definition
|
|
680
598
|
* @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/).
|
|
@@ -716,7 +634,7 @@ class Content {
|
|
|
716
634
|
const response = await PlatformAPIClient.execute(
|
|
717
635
|
this.config,
|
|
718
636
|
"post",
|
|
719
|
-
`/service/platform/content/
|
|
637
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
|
|
720
638
|
query_params,
|
|
721
639
|
body,
|
|
722
640
|
requestHeaders,
|
|
@@ -730,7 +648,7 @@ class Content {
|
|
|
730
648
|
|
|
731
649
|
const {
|
|
732
650
|
error: res_error,
|
|
733
|
-
} = ContentPlatformModel.
|
|
651
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
734
652
|
responseData,
|
|
735
653
|
{ abortEarly: false, allowUnknown: true }
|
|
736
654
|
);
|
|
@@ -1306,85 +1224,6 @@ class Content {
|
|
|
1306
1224
|
return response;
|
|
1307
1225
|
}
|
|
1308
1226
|
|
|
1309
|
-
/**
|
|
1310
|
-
* @param {ContentPlatformApplicationValidator.CreateSlideshowParam} arg - Arg object
|
|
1311
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1312
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1313
|
-
* @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
|
|
1314
|
-
* @name createSlideshow
|
|
1315
|
-
* @summary: Create a slideshow
|
|
1316
|
-
* @description: Use this API to create a slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSlideshow/).
|
|
1317
|
-
*/
|
|
1318
|
-
async createSlideshow(
|
|
1319
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1320
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1321
|
-
) {
|
|
1322
|
-
const {
|
|
1323
|
-
error,
|
|
1324
|
-
} = ContentPlatformApplicationValidator.createSlideshow().validate(
|
|
1325
|
-
{
|
|
1326
|
-
body,
|
|
1327
|
-
},
|
|
1328
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1329
|
-
);
|
|
1330
|
-
if (error) {
|
|
1331
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1335
|
-
const {
|
|
1336
|
-
error: warrning,
|
|
1337
|
-
} = ContentPlatformApplicationValidator.createSlideshow().validate(
|
|
1338
|
-
{
|
|
1339
|
-
body,
|
|
1340
|
-
},
|
|
1341
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1342
|
-
);
|
|
1343
|
-
if (warrning) {
|
|
1344
|
-
Logger({
|
|
1345
|
-
level: "WARN",
|
|
1346
|
-
message: `Parameter Validation warrnings for platform > Content > createSlideshow \n ${warrning}`,
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
const query_params = {};
|
|
1351
|
-
|
|
1352
|
-
const response = await PlatformAPIClient.execute(
|
|
1353
|
-
this.config,
|
|
1354
|
-
"post",
|
|
1355
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows`,
|
|
1356
|
-
query_params,
|
|
1357
|
-
body,
|
|
1358
|
-
requestHeaders,
|
|
1359
|
-
{ responseHeaders }
|
|
1360
|
-
);
|
|
1361
|
-
|
|
1362
|
-
let responseData = response;
|
|
1363
|
-
if (responseHeaders) {
|
|
1364
|
-
responseData = response[0];
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
const {
|
|
1368
|
-
error: res_error,
|
|
1369
|
-
} = ContentPlatformModel.SlideshowSchema().validate(responseData, {
|
|
1370
|
-
abortEarly: false,
|
|
1371
|
-
allowUnknown: true,
|
|
1372
|
-
});
|
|
1373
|
-
|
|
1374
|
-
if (res_error) {
|
|
1375
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1376
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1377
|
-
} else {
|
|
1378
|
-
Logger({
|
|
1379
|
-
level: "WARN",
|
|
1380
|
-
message: `Response Validation Warnings for platform > Content > createSlideshow \n ${res_error}`,
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
return response;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
1227
|
/**
|
|
1389
1228
|
* @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
|
|
1390
1229
|
* - Arg object
|
|
@@ -1468,25 +1307,27 @@ class Content {
|
|
|
1468
1307
|
}
|
|
1469
1308
|
|
|
1470
1309
|
/**
|
|
1471
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1310
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
1472
1311
|
* - Arg object
|
|
1473
1312
|
*
|
|
1474
1313
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1475
1314
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1476
1315
|
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1477
|
-
* @name
|
|
1316
|
+
* @name deleteAppCustomFieldDefinitionBySlug
|
|
1478
1317
|
* @summary: Delete custom fields definition
|
|
1479
|
-
* @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/
|
|
1318
|
+
* @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/).
|
|
1480
1319
|
*/
|
|
1481
|
-
async
|
|
1482
|
-
{
|
|
1320
|
+
async deleteAppCustomFieldDefinitionBySlug(
|
|
1321
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
1483
1322
|
{ responseHeaders } = { responseHeaders: false }
|
|
1484
1323
|
) {
|
|
1485
1324
|
const {
|
|
1486
1325
|
error,
|
|
1487
|
-
} = ContentPlatformApplicationValidator.
|
|
1326
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1488
1327
|
{
|
|
1489
|
-
|
|
1328
|
+
slug,
|
|
1329
|
+
resource,
|
|
1330
|
+
namespace,
|
|
1490
1331
|
},
|
|
1491
1332
|
{ abortEarly: false, allowUnknown: true }
|
|
1492
1333
|
);
|
|
@@ -1497,16 +1338,18 @@ class Content {
|
|
|
1497
1338
|
// Showing warrnings if extra unknown parameters are found
|
|
1498
1339
|
const {
|
|
1499
1340
|
error: warrning,
|
|
1500
|
-
} = ContentPlatformApplicationValidator.
|
|
1341
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1501
1342
|
{
|
|
1502
|
-
|
|
1343
|
+
slug,
|
|
1344
|
+
resource,
|
|
1345
|
+
namespace,
|
|
1503
1346
|
},
|
|
1504
1347
|
{ abortEarly: false, allowUnknown: false }
|
|
1505
1348
|
);
|
|
1506
1349
|
if (warrning) {
|
|
1507
1350
|
Logger({
|
|
1508
1351
|
level: "WARN",
|
|
1509
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1352
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
1510
1353
|
});
|
|
1511
1354
|
}
|
|
1512
1355
|
|
|
@@ -1515,7 +1358,7 @@ class Content {
|
|
|
1515
1358
|
const response = await PlatformAPIClient.execute(
|
|
1516
1359
|
this.config,
|
|
1517
1360
|
"delete",
|
|
1518
|
-
`/service/platform/content/
|
|
1361
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
1519
1362
|
query_params,
|
|
1520
1363
|
undefined,
|
|
1521
1364
|
requestHeaders,
|
|
@@ -1540,7 +1383,7 @@ class Content {
|
|
|
1540
1383
|
} else {
|
|
1541
1384
|
Logger({
|
|
1542
1385
|
level: "WARN",
|
|
1543
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1386
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
1544
1387
|
});
|
|
1545
1388
|
}
|
|
1546
1389
|
}
|
|
@@ -1549,25 +1392,26 @@ class Content {
|
|
|
1549
1392
|
}
|
|
1550
1393
|
|
|
1551
1394
|
/**
|
|
1552
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1395
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectBySlugParam} arg
|
|
1553
1396
|
* - Arg object
|
|
1554
1397
|
*
|
|
1555
1398
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1556
1399
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1557
1400
|
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1558
|
-
* @name
|
|
1401
|
+
* @name deleteAppCustomObjectBySlug
|
|
1559
1402
|
* @summary: Delete custom object
|
|
1560
|
-
* @description: Custom object
|
|
1403
|
+
* @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/).
|
|
1561
1404
|
*/
|
|
1562
|
-
async
|
|
1563
|
-
{
|
|
1405
|
+
async deleteAppCustomObjectBySlug(
|
|
1406
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
1564
1407
|
{ responseHeaders } = { responseHeaders: false }
|
|
1565
1408
|
) {
|
|
1566
1409
|
const {
|
|
1567
1410
|
error,
|
|
1568
|
-
} = ContentPlatformApplicationValidator.
|
|
1411
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1569
1412
|
{
|
|
1570
|
-
|
|
1413
|
+
definitionSlug,
|
|
1414
|
+
slug,
|
|
1571
1415
|
},
|
|
1572
1416
|
{ abortEarly: false, allowUnknown: true }
|
|
1573
1417
|
);
|
|
@@ -1578,16 +1422,17 @@ class Content {
|
|
|
1578
1422
|
// Showing warrnings if extra unknown parameters are found
|
|
1579
1423
|
const {
|
|
1580
1424
|
error: warrning,
|
|
1581
|
-
} = ContentPlatformApplicationValidator.
|
|
1425
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1582
1426
|
{
|
|
1583
|
-
|
|
1427
|
+
definitionSlug,
|
|
1428
|
+
slug,
|
|
1584
1429
|
},
|
|
1585
1430
|
{ abortEarly: false, allowUnknown: false }
|
|
1586
1431
|
);
|
|
1587
1432
|
if (warrning) {
|
|
1588
1433
|
Logger({
|
|
1589
1434
|
level: "WARN",
|
|
1590
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1435
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectBySlug \n ${warrning}`,
|
|
1591
1436
|
});
|
|
1592
1437
|
}
|
|
1593
1438
|
|
|
@@ -1596,7 +1441,7 @@ class Content {
|
|
|
1596
1441
|
const response = await PlatformAPIClient.execute(
|
|
1597
1442
|
this.config,
|
|
1598
1443
|
"delete",
|
|
1599
|
-
`/service/platform/content/
|
|
1444
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
1600
1445
|
query_params,
|
|
1601
1446
|
undefined,
|
|
1602
1447
|
requestHeaders,
|
|
@@ -1621,7 +1466,7 @@ class Content {
|
|
|
1621
1466
|
} else {
|
|
1622
1467
|
Logger({
|
|
1623
1468
|
level: "WARN",
|
|
1624
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1469
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectBySlug \n ${res_error}`,
|
|
1625
1470
|
});
|
|
1626
1471
|
}
|
|
1627
1472
|
}
|
|
@@ -1630,7 +1475,7 @@ class Content {
|
|
|
1630
1475
|
}
|
|
1631
1476
|
|
|
1632
1477
|
/**
|
|
1633
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1478
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionBySlugParam} arg
|
|
1634
1479
|
* - Arg object
|
|
1635
1480
|
*
|
|
1636
1481
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1638,19 +1483,19 @@ class Content {
|
|
|
1638
1483
|
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
|
|
1639
1484
|
* - Success response
|
|
1640
1485
|
*
|
|
1641
|
-
* @name
|
|
1486
|
+
* @name deleteAppCustomObjectDefinitionBySlug
|
|
1642
1487
|
* @summary: Delete custom object definition
|
|
1643
|
-
* @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/
|
|
1488
|
+
* @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/).
|
|
1644
1489
|
*/
|
|
1645
|
-
async
|
|
1646
|
-
{
|
|
1490
|
+
async deleteAppCustomObjectDefinitionBySlug(
|
|
1491
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
1647
1492
|
{ responseHeaders } = { responseHeaders: false }
|
|
1648
1493
|
) {
|
|
1649
1494
|
const {
|
|
1650
1495
|
error,
|
|
1651
|
-
} = ContentPlatformApplicationValidator.
|
|
1496
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1652
1497
|
{
|
|
1653
|
-
|
|
1498
|
+
slug,
|
|
1654
1499
|
},
|
|
1655
1500
|
{ abortEarly: false, allowUnknown: true }
|
|
1656
1501
|
);
|
|
@@ -1661,16 +1506,16 @@ class Content {
|
|
|
1661
1506
|
// Showing warrnings if extra unknown parameters are found
|
|
1662
1507
|
const {
|
|
1663
1508
|
error: warrning,
|
|
1664
|
-
} = ContentPlatformApplicationValidator.
|
|
1509
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1665
1510
|
{
|
|
1666
|
-
|
|
1511
|
+
slug,
|
|
1667
1512
|
},
|
|
1668
1513
|
{ abortEarly: false, allowUnknown: false }
|
|
1669
1514
|
);
|
|
1670
1515
|
if (warrning) {
|
|
1671
1516
|
Logger({
|
|
1672
1517
|
level: "WARN",
|
|
1673
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1518
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
1674
1519
|
});
|
|
1675
1520
|
}
|
|
1676
1521
|
|
|
@@ -1679,7 +1524,7 @@ class Content {
|
|
|
1679
1524
|
const response = await PlatformAPIClient.execute(
|
|
1680
1525
|
this.config,
|
|
1681
1526
|
"delete",
|
|
1682
|
-
`/service/platform/content/
|
|
1527
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
1683
1528
|
query_params,
|
|
1684
1529
|
undefined,
|
|
1685
1530
|
requestHeaders,
|
|
@@ -1704,7 +1549,7 @@ class Content {
|
|
|
1704
1549
|
} else {
|
|
1705
1550
|
Logger({
|
|
1706
1551
|
level: "WARN",
|
|
1707
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1552
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
1708
1553
|
});
|
|
1709
1554
|
}
|
|
1710
1555
|
}
|
|
@@ -2426,85 +2271,6 @@ class Content {
|
|
|
2426
2271
|
return response;
|
|
2427
2272
|
}
|
|
2428
2273
|
|
|
2429
|
-
/**
|
|
2430
|
-
* @param {ContentPlatformApplicationValidator.DeleteSlideshowParam} arg - Arg object
|
|
2431
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2432
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2433
|
-
* @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
|
|
2434
|
-
* @name deleteSlideshow
|
|
2435
|
-
* @summary: Delete a slideshow
|
|
2436
|
-
* @description: Use this API to delete an existing slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSlideshow/).
|
|
2437
|
-
*/
|
|
2438
|
-
async deleteSlideshow(
|
|
2439
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
2440
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2441
|
-
) {
|
|
2442
|
-
const {
|
|
2443
|
-
error,
|
|
2444
|
-
} = ContentPlatformApplicationValidator.deleteSlideshow().validate(
|
|
2445
|
-
{
|
|
2446
|
-
id,
|
|
2447
|
-
},
|
|
2448
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2449
|
-
);
|
|
2450
|
-
if (error) {
|
|
2451
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2455
|
-
const {
|
|
2456
|
-
error: warrning,
|
|
2457
|
-
} = ContentPlatformApplicationValidator.deleteSlideshow().validate(
|
|
2458
|
-
{
|
|
2459
|
-
id,
|
|
2460
|
-
},
|
|
2461
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2462
|
-
);
|
|
2463
|
-
if (warrning) {
|
|
2464
|
-
Logger({
|
|
2465
|
-
level: "WARN",
|
|
2466
|
-
message: `Parameter Validation warrnings for platform > Content > deleteSlideshow \n ${warrning}`,
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
const query_params = {};
|
|
2471
|
-
|
|
2472
|
-
const response = await PlatformAPIClient.execute(
|
|
2473
|
-
this.config,
|
|
2474
|
-
"delete",
|
|
2475
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
|
|
2476
|
-
query_params,
|
|
2477
|
-
undefined,
|
|
2478
|
-
requestHeaders,
|
|
2479
|
-
{ responseHeaders }
|
|
2480
|
-
);
|
|
2481
|
-
|
|
2482
|
-
let responseData = response;
|
|
2483
|
-
if (responseHeaders) {
|
|
2484
|
-
responseData = response[0];
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
const {
|
|
2488
|
-
error: res_error,
|
|
2489
|
-
} = ContentPlatformModel.SlideshowSchema().validate(responseData, {
|
|
2490
|
-
abortEarly: false,
|
|
2491
|
-
allowUnknown: true,
|
|
2492
|
-
});
|
|
2493
|
-
|
|
2494
|
-
if (res_error) {
|
|
2495
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2496
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2497
|
-
} else {
|
|
2498
|
-
Logger({
|
|
2499
|
-
level: "WARN",
|
|
2500
|
-
message: `Response Validation Warnings for platform > Content > deleteSlideshow \n ${res_error}`,
|
|
2501
|
-
});
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
return response;
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
2274
|
/**
|
|
2509
2275
|
* @param {ContentPlatformApplicationValidator.EditDataLoaderParam} arg - Arg object
|
|
2510
2276
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -2754,7 +2520,7 @@ class Content {
|
|
|
2754
2520
|
}
|
|
2755
2521
|
|
|
2756
2522
|
/**
|
|
2757
|
-
* @param {ContentPlatformApplicationValidator.
|
|
2523
|
+
* @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
|
|
2758
2524
|
* - Arg object
|
|
2759
2525
|
*
|
|
2760
2526
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -2762,19 +2528,19 @@ class Content {
|
|
|
2762
2528
|
* @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
|
|
2763
2529
|
* - Success response
|
|
2764
2530
|
*
|
|
2765
|
-
* @name
|
|
2531
|
+
* @name exportAppCustomObjectEntriesBySlug
|
|
2766
2532
|
* @summary: Initiate download for bulk custom object entries
|
|
2767
|
-
* @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/
|
|
2533
|
+
* @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/).
|
|
2768
2534
|
*/
|
|
2769
|
-
async
|
|
2770
|
-
{
|
|
2535
|
+
async exportAppCustomObjectEntriesBySlug(
|
|
2536
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
2771
2537
|
{ responseHeaders } = { responseHeaders: false }
|
|
2772
2538
|
) {
|
|
2773
2539
|
const {
|
|
2774
2540
|
error,
|
|
2775
|
-
} = ContentPlatformApplicationValidator.
|
|
2541
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2776
2542
|
{
|
|
2777
|
-
|
|
2543
|
+
slug,
|
|
2778
2544
|
},
|
|
2779
2545
|
{ abortEarly: false, allowUnknown: true }
|
|
2780
2546
|
);
|
|
@@ -2785,16 +2551,16 @@ class Content {
|
|
|
2785
2551
|
// Showing warrnings if extra unknown parameters are found
|
|
2786
2552
|
const {
|
|
2787
2553
|
error: warrning,
|
|
2788
|
-
} = ContentPlatformApplicationValidator.
|
|
2554
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2789
2555
|
{
|
|
2790
|
-
|
|
2556
|
+
slug,
|
|
2791
2557
|
},
|
|
2792
2558
|
{ abortEarly: false, allowUnknown: false }
|
|
2793
2559
|
);
|
|
2794
2560
|
if (warrning) {
|
|
2795
2561
|
Logger({
|
|
2796
2562
|
level: "WARN",
|
|
2797
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
2563
|
+
message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
2798
2564
|
});
|
|
2799
2565
|
}
|
|
2800
2566
|
|
|
@@ -2803,7 +2569,7 @@ class Content {
|
|
|
2803
2569
|
const response = await PlatformAPIClient.execute(
|
|
2804
2570
|
this.config,
|
|
2805
2571
|
"get",
|
|
2806
|
-
`/service/platform/content/
|
|
2572
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
|
|
2807
2573
|
query_params,
|
|
2808
2574
|
undefined,
|
|
2809
2575
|
requestHeaders,
|
|
@@ -2828,7 +2594,7 @@ class Content {
|
|
|
2828
2594
|
} else {
|
|
2829
2595
|
Logger({
|
|
2830
2596
|
level: "WARN",
|
|
2831
|
-
message: `Response Validation Warnings for platform > Content >
|
|
2597
|
+
message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
2832
2598
|
});
|
|
2833
2599
|
}
|
|
2834
2600
|
}
|
|
@@ -3085,27 +2851,41 @@ class Content {
|
|
|
3085
2851
|
}
|
|
3086
2852
|
|
|
3087
2853
|
/**
|
|
3088
|
-
* @param {ContentPlatformApplicationValidator.
|
|
2854
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
3089
2855
|
* - Arg object
|
|
3090
2856
|
*
|
|
3091
2857
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3092
2858
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3093
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3094
|
-
*
|
|
3095
|
-
*
|
|
3096
|
-
* @
|
|
3097
|
-
* @
|
|
3098
|
-
* @description: Custom field definitions can be fetch using definition id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinition/).
|
|
2859
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
2860
|
+
* Success response
|
|
2861
|
+
* @name getAppCustomFieldDefinitionByResource
|
|
2862
|
+
* @summary: Get custom fields definitions for a given resource type
|
|
2863
|
+
* @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/).
|
|
3099
2864
|
*/
|
|
3100
|
-
async
|
|
3101
|
-
{
|
|
2865
|
+
async getAppCustomFieldDefinitionByResource(
|
|
2866
|
+
{
|
|
2867
|
+
pageNo,
|
|
2868
|
+
pageSize,
|
|
2869
|
+
resource,
|
|
2870
|
+
types,
|
|
2871
|
+
search,
|
|
2872
|
+
slugs,
|
|
2873
|
+
namespaces,
|
|
2874
|
+
requestHeaders,
|
|
2875
|
+
} = { requestHeaders: {} },
|
|
3102
2876
|
{ responseHeaders } = { responseHeaders: false }
|
|
3103
2877
|
) {
|
|
3104
2878
|
const {
|
|
3105
2879
|
error,
|
|
3106
|
-
} = ContentPlatformApplicationValidator.
|
|
2880
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3107
2881
|
{
|
|
3108
|
-
|
|
2882
|
+
pageNo,
|
|
2883
|
+
pageSize,
|
|
2884
|
+
resource,
|
|
2885
|
+
types,
|
|
2886
|
+
search,
|
|
2887
|
+
slugs,
|
|
2888
|
+
namespaces,
|
|
3109
2889
|
},
|
|
3110
2890
|
{ abortEarly: false, allowUnknown: true }
|
|
3111
2891
|
);
|
|
@@ -3116,25 +2896,37 @@ class Content {
|
|
|
3116
2896
|
// Showing warrnings if extra unknown parameters are found
|
|
3117
2897
|
const {
|
|
3118
2898
|
error: warrning,
|
|
3119
|
-
} = ContentPlatformApplicationValidator.
|
|
2899
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3120
2900
|
{
|
|
3121
|
-
|
|
2901
|
+
pageNo,
|
|
2902
|
+
pageSize,
|
|
2903
|
+
resource,
|
|
2904
|
+
types,
|
|
2905
|
+
search,
|
|
2906
|
+
slugs,
|
|
2907
|
+
namespaces,
|
|
3122
2908
|
},
|
|
3123
2909
|
{ abortEarly: false, allowUnknown: false }
|
|
3124
2910
|
);
|
|
3125
2911
|
if (warrning) {
|
|
3126
2912
|
Logger({
|
|
3127
2913
|
level: "WARN",
|
|
3128
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
2914
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${warrning}`,
|
|
3129
2915
|
});
|
|
3130
2916
|
}
|
|
3131
2917
|
|
|
3132
2918
|
const query_params = {};
|
|
2919
|
+
query_params["page_no"] = pageNo;
|
|
2920
|
+
query_params["page_size"] = pageSize;
|
|
2921
|
+
query_params["types"] = types;
|
|
2922
|
+
query_params["search"] = search;
|
|
2923
|
+
query_params["slugs"] = slugs;
|
|
2924
|
+
query_params["namespaces"] = namespaces;
|
|
3133
2925
|
|
|
3134
2926
|
const response = await PlatformAPIClient.execute(
|
|
3135
2927
|
this.config,
|
|
3136
2928
|
"get",
|
|
3137
|
-
`/service/platform/content/
|
|
2929
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
|
|
3138
2930
|
query_params,
|
|
3139
2931
|
undefined,
|
|
3140
2932
|
requestHeaders,
|
|
@@ -3148,7 +2940,7 @@ class Content {
|
|
|
3148
2940
|
|
|
3149
2941
|
const {
|
|
3150
2942
|
error: res_error,
|
|
3151
|
-
} = ContentPlatformModel.
|
|
2943
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3152
2944
|
responseData,
|
|
3153
2945
|
{ abortEarly: false, allowUnknown: true }
|
|
3154
2946
|
);
|
|
@@ -3159,7 +2951,7 @@ class Content {
|
|
|
3159
2951
|
} else {
|
|
3160
2952
|
Logger({
|
|
3161
2953
|
level: "WARN",
|
|
3162
|
-
message: `Response Validation Warnings for platform > Content >
|
|
2954
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${res_error}`,
|
|
3163
2955
|
});
|
|
3164
2956
|
}
|
|
3165
2957
|
}
|
|
@@ -3168,32 +2960,29 @@ class Content {
|
|
|
3168
2960
|
}
|
|
3169
2961
|
|
|
3170
2962
|
/**
|
|
3171
|
-
* @param {ContentPlatformApplicationValidator.
|
|
2963
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionBySlugParam} arg
|
|
3172
2964
|
* - Arg object
|
|
3173
2965
|
*
|
|
3174
2966
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3175
2967
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3176
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3177
|
-
* Success response
|
|
3178
|
-
*
|
|
3179
|
-
* @
|
|
3180
|
-
* @
|
|
2968
|
+
* @returns {Promise<ContentPlatformModel.MetaFieldDefinitionDetailResSchema>}
|
|
2969
|
+
* - Success response
|
|
2970
|
+
*
|
|
2971
|
+
* @name getAppCustomFieldDefinitionBySlug
|
|
2972
|
+
* @summary: Get custom fields definition by resource, slug and namespace
|
|
2973
|
+
* @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/).
|
|
3181
2974
|
*/
|
|
3182
|
-
async
|
|
3183
|
-
{
|
|
3184
|
-
requestHeaders: {},
|
|
3185
|
-
},
|
|
2975
|
+
async getAppCustomFieldDefinitionBySlug(
|
|
2976
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
3186
2977
|
{ responseHeaders } = { responseHeaders: false }
|
|
3187
2978
|
) {
|
|
3188
2979
|
const {
|
|
3189
2980
|
error,
|
|
3190
|
-
} = ContentPlatformApplicationValidator.
|
|
2981
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3191
2982
|
{
|
|
3192
|
-
|
|
3193
|
-
pageSize,
|
|
2983
|
+
slug,
|
|
3194
2984
|
resource,
|
|
3195
|
-
|
|
3196
|
-
search,
|
|
2985
|
+
namespace,
|
|
3197
2986
|
},
|
|
3198
2987
|
{ abortEarly: false, allowUnknown: true }
|
|
3199
2988
|
);
|
|
@@ -3204,34 +2993,27 @@ class Content {
|
|
|
3204
2993
|
// Showing warrnings if extra unknown parameters are found
|
|
3205
2994
|
const {
|
|
3206
2995
|
error: warrning,
|
|
3207
|
-
} = ContentPlatformApplicationValidator.
|
|
2996
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3208
2997
|
{
|
|
3209
|
-
|
|
3210
|
-
pageSize,
|
|
2998
|
+
slug,
|
|
3211
2999
|
resource,
|
|
3212
|
-
|
|
3213
|
-
search,
|
|
3000
|
+
namespace,
|
|
3214
3001
|
},
|
|
3215
3002
|
{ abortEarly: false, allowUnknown: false }
|
|
3216
3003
|
);
|
|
3217
3004
|
if (warrning) {
|
|
3218
3005
|
Logger({
|
|
3219
3006
|
level: "WARN",
|
|
3220
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3007
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
3221
3008
|
});
|
|
3222
3009
|
}
|
|
3223
3010
|
|
|
3224
3011
|
const query_params = {};
|
|
3225
|
-
query_params["page_no"] = pageNo;
|
|
3226
|
-
query_params["page_size"] = pageSize;
|
|
3227
|
-
query_params["resource"] = resource;
|
|
3228
|
-
query_params["type"] = type;
|
|
3229
|
-
query_params["search"] = search;
|
|
3230
3012
|
|
|
3231
3013
|
const response = await PlatformAPIClient.execute(
|
|
3232
3014
|
this.config,
|
|
3233
3015
|
"get",
|
|
3234
|
-
`/service/platform/content/
|
|
3016
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
3235
3017
|
query_params,
|
|
3236
3018
|
undefined,
|
|
3237
3019
|
requestHeaders,
|
|
@@ -3245,7 +3027,7 @@ class Content {
|
|
|
3245
3027
|
|
|
3246
3028
|
const {
|
|
3247
3029
|
error: res_error,
|
|
3248
|
-
} = ContentPlatformModel.
|
|
3030
|
+
} = ContentPlatformModel.MetaFieldDefinitionDetailResSchema().validate(
|
|
3249
3031
|
responseData,
|
|
3250
3032
|
{ abortEarly: false, allowUnknown: true }
|
|
3251
3033
|
);
|
|
@@ -3256,7 +3038,7 @@ class Content {
|
|
|
3256
3038
|
} else {
|
|
3257
3039
|
Logger({
|
|
3258
3040
|
level: "WARN",
|
|
3259
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3041
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
3260
3042
|
});
|
|
3261
3043
|
}
|
|
3262
3044
|
}
|
|
@@ -3265,24 +3047,42 @@ class Content {
|
|
|
3265
3047
|
}
|
|
3266
3048
|
|
|
3267
3049
|
/**
|
|
3268
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3050
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
|
|
3269
3051
|
* - Arg object
|
|
3270
3052
|
*
|
|
3271
3053
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3272
3054
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3273
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3274
|
-
*
|
|
3275
|
-
* @
|
|
3276
|
-
* @
|
|
3055
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
3056
|
+
* Success response
|
|
3057
|
+
* @name getAppCustomFieldDefinitions
|
|
3058
|
+
* @summary: Get custom fields definitions
|
|
3059
|
+
* @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/).
|
|
3277
3060
|
*/
|
|
3278
|
-
async
|
|
3279
|
-
{
|
|
3061
|
+
async getAppCustomFieldDefinitions(
|
|
3062
|
+
{
|
|
3063
|
+
pageNo,
|
|
3064
|
+
pageSize,
|
|
3065
|
+
resources,
|
|
3066
|
+
types,
|
|
3067
|
+
search,
|
|
3068
|
+
slugs,
|
|
3069
|
+
namespaces,
|
|
3070
|
+
requestHeaders,
|
|
3071
|
+
} = { requestHeaders: {} },
|
|
3280
3072
|
{ responseHeaders } = { responseHeaders: false }
|
|
3281
3073
|
) {
|
|
3282
3074
|
const {
|
|
3283
3075
|
error,
|
|
3284
|
-
} = ContentPlatformApplicationValidator.
|
|
3285
|
-
{
|
|
3076
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3077
|
+
{
|
|
3078
|
+
pageNo,
|
|
3079
|
+
pageSize,
|
|
3080
|
+
resources,
|
|
3081
|
+
types,
|
|
3082
|
+
search,
|
|
3083
|
+
slugs,
|
|
3084
|
+
namespaces,
|
|
3085
|
+
},
|
|
3286
3086
|
{ abortEarly: false, allowUnknown: true }
|
|
3287
3087
|
);
|
|
3288
3088
|
if (error) {
|
|
@@ -3292,23 +3092,38 @@ class Content {
|
|
|
3292
3092
|
// Showing warrnings if extra unknown parameters are found
|
|
3293
3093
|
const {
|
|
3294
3094
|
error: warrning,
|
|
3295
|
-
} = ContentPlatformApplicationValidator.
|
|
3296
|
-
{
|
|
3095
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3096
|
+
{
|
|
3097
|
+
pageNo,
|
|
3098
|
+
pageSize,
|
|
3099
|
+
resources,
|
|
3100
|
+
types,
|
|
3101
|
+
search,
|
|
3102
|
+
slugs,
|
|
3103
|
+
namespaces,
|
|
3104
|
+
},
|
|
3297
3105
|
{ abortEarly: false, allowUnknown: false }
|
|
3298
3106
|
);
|
|
3299
3107
|
if (warrning) {
|
|
3300
3108
|
Logger({
|
|
3301
3109
|
level: "WARN",
|
|
3302
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3110
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
|
|
3303
3111
|
});
|
|
3304
3112
|
}
|
|
3305
3113
|
|
|
3306
3114
|
const query_params = {};
|
|
3115
|
+
query_params["page_no"] = pageNo;
|
|
3116
|
+
query_params["page_size"] = pageSize;
|
|
3117
|
+
query_params["resources"] = resources;
|
|
3118
|
+
query_params["types"] = types;
|
|
3119
|
+
query_params["search"] = search;
|
|
3120
|
+
query_params["slugs"] = slugs;
|
|
3121
|
+
query_params["namespaces"] = namespaces;
|
|
3307
3122
|
|
|
3308
3123
|
const response = await PlatformAPIClient.execute(
|
|
3309
3124
|
this.config,
|
|
3310
3125
|
"get",
|
|
3311
|
-
`/service/platform/content/
|
|
3126
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/definition`,
|
|
3312
3127
|
query_params,
|
|
3313
3128
|
undefined,
|
|
3314
3129
|
requestHeaders,
|
|
@@ -3322,10 +3137,10 @@ class Content {
|
|
|
3322
3137
|
|
|
3323
3138
|
const {
|
|
3324
3139
|
error: res_error,
|
|
3325
|
-
} = ContentPlatformModel.
|
|
3326
|
-
|
|
3327
|
-
allowUnknown: true
|
|
3328
|
-
|
|
3140
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3141
|
+
responseData,
|
|
3142
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3143
|
+
);
|
|
3329
3144
|
|
|
3330
3145
|
if (res_error) {
|
|
3331
3146
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3333,7 +3148,7 @@ class Content {
|
|
|
3333
3148
|
} else {
|
|
3334
3149
|
Logger({
|
|
3335
3150
|
level: "WARN",
|
|
3336
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3151
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
|
|
3337
3152
|
});
|
|
3338
3153
|
}
|
|
3339
3154
|
}
|
|
@@ -3342,27 +3157,24 @@ class Content {
|
|
|
3342
3157
|
}
|
|
3343
3158
|
|
|
3344
3159
|
/**
|
|
3345
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3160
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldTypesParam} arg
|
|
3346
3161
|
* - Arg object
|
|
3347
3162
|
*
|
|
3348
3163
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3349
3164
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3350
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3351
|
-
*
|
|
3352
|
-
* @
|
|
3353
|
-
* @
|
|
3354
|
-
* @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/).
|
|
3165
|
+
* @returns {Promise<ContentPlatformModel.MetafieldTypesSchema>} - Success response
|
|
3166
|
+
* @name getAppCustomFieldTypes
|
|
3167
|
+
* @summary: Get custom field types
|
|
3168
|
+
* @description: Each custom field and custom field definition has a type, which defines the type of information that it can store. The custom field types have built-in validation. This api will give list of supported custom fields types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldTypes/).
|
|
3355
3169
|
*/
|
|
3356
|
-
async
|
|
3357
|
-
{
|
|
3170
|
+
async getAppCustomFieldTypes(
|
|
3171
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3358
3172
|
{ responseHeaders } = { responseHeaders: false }
|
|
3359
3173
|
) {
|
|
3360
3174
|
const {
|
|
3361
3175
|
error,
|
|
3362
|
-
} = ContentPlatformApplicationValidator.
|
|
3363
|
-
{
|
|
3364
|
-
resource,
|
|
3365
|
-
},
|
|
3176
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
|
|
3177
|
+
{},
|
|
3366
3178
|
{ abortEarly: false, allowUnknown: true }
|
|
3367
3179
|
);
|
|
3368
3180
|
if (error) {
|
|
@@ -3372,16 +3184,14 @@ class Content {
|
|
|
3372
3184
|
// Showing warrnings if extra unknown parameters are found
|
|
3373
3185
|
const {
|
|
3374
3186
|
error: warrning,
|
|
3375
|
-
} = ContentPlatformApplicationValidator.
|
|
3376
|
-
{
|
|
3377
|
-
resource,
|
|
3378
|
-
},
|
|
3187
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
|
|
3188
|
+
{},
|
|
3379
3189
|
{ abortEarly: false, allowUnknown: false }
|
|
3380
3190
|
);
|
|
3381
3191
|
if (warrning) {
|
|
3382
3192
|
Logger({
|
|
3383
3193
|
level: "WARN",
|
|
3384
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3194
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldTypes \n ${warrning}`,
|
|
3385
3195
|
});
|
|
3386
3196
|
}
|
|
3387
3197
|
|
|
@@ -3390,7 +3200,7 @@ class Content {
|
|
|
3390
3200
|
const response = await PlatformAPIClient.execute(
|
|
3391
3201
|
this.config,
|
|
3392
3202
|
"get",
|
|
3393
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields
|
|
3203
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/types`,
|
|
3394
3204
|
query_params,
|
|
3395
3205
|
undefined,
|
|
3396
3206
|
requestHeaders,
|
|
@@ -3404,10 +3214,10 @@ class Content {
|
|
|
3404
3214
|
|
|
3405
3215
|
const {
|
|
3406
3216
|
error: res_error,
|
|
3407
|
-
} = ContentPlatformModel.
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
);
|
|
3217
|
+
} = ContentPlatformModel.MetafieldTypesSchema().validate(responseData, {
|
|
3218
|
+
abortEarly: false,
|
|
3219
|
+
allowUnknown: true,
|
|
3220
|
+
});
|
|
3411
3221
|
|
|
3412
3222
|
if (res_error) {
|
|
3413
3223
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3415,7 +3225,7 @@ class Content {
|
|
|
3415
3225
|
} else {
|
|
3416
3226
|
Logger({
|
|
3417
3227
|
level: "WARN",
|
|
3418
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3228
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldTypes \n ${res_error}`,
|
|
3419
3229
|
});
|
|
3420
3230
|
}
|
|
3421
3231
|
}
|
|
@@ -3424,7 +3234,7 @@ class Content {
|
|
|
3424
3234
|
}
|
|
3425
3235
|
|
|
3426
3236
|
/**
|
|
3427
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3237
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceSlugParam} arg
|
|
3428
3238
|
* - Arg object
|
|
3429
3239
|
*
|
|
3430
3240
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -3432,20 +3242,20 @@ class Content {
|
|
|
3432
3242
|
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
3433
3243
|
* - Success response
|
|
3434
3244
|
*
|
|
3435
|
-
* @name
|
|
3436
|
-
* @summary: Get list of custom fields of given resource and resource
|
|
3437
|
-
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource
|
|
3245
|
+
* @name getAppCustomFieldsByResourceSlug
|
|
3246
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
3247
|
+
* @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/).
|
|
3438
3248
|
*/
|
|
3439
|
-
async
|
|
3440
|
-
{ resource,
|
|
3249
|
+
async getAppCustomFieldsByResourceSlug(
|
|
3250
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
3441
3251
|
{ responseHeaders } = { responseHeaders: false }
|
|
3442
3252
|
) {
|
|
3443
3253
|
const {
|
|
3444
3254
|
error,
|
|
3445
|
-
} = ContentPlatformApplicationValidator.
|
|
3255
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3446
3256
|
{
|
|
3447
3257
|
resource,
|
|
3448
|
-
|
|
3258
|
+
resourceSlug,
|
|
3449
3259
|
},
|
|
3450
3260
|
{ abortEarly: false, allowUnknown: true }
|
|
3451
3261
|
);
|
|
@@ -3456,17 +3266,17 @@ class Content {
|
|
|
3456
3266
|
// Showing warrnings if extra unknown parameters are found
|
|
3457
3267
|
const {
|
|
3458
3268
|
error: warrning,
|
|
3459
|
-
} = ContentPlatformApplicationValidator.
|
|
3269
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3460
3270
|
{
|
|
3461
3271
|
resource,
|
|
3462
|
-
|
|
3272
|
+
resourceSlug,
|
|
3463
3273
|
},
|
|
3464
3274
|
{ abortEarly: false, allowUnknown: false }
|
|
3465
3275
|
);
|
|
3466
3276
|
if (warrning) {
|
|
3467
3277
|
Logger({
|
|
3468
3278
|
level: "WARN",
|
|
3469
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3279
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${warrning}`,
|
|
3470
3280
|
});
|
|
3471
3281
|
}
|
|
3472
3282
|
|
|
@@ -3475,7 +3285,7 @@ class Content {
|
|
|
3475
3285
|
const response = await PlatformAPIClient.execute(
|
|
3476
3286
|
this.config,
|
|
3477
3287
|
"get",
|
|
3478
|
-
`/service/platform/content/
|
|
3288
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
3479
3289
|
query_params,
|
|
3480
3290
|
undefined,
|
|
3481
3291
|
requestHeaders,
|
|
@@ -3500,7 +3310,7 @@ class Content {
|
|
|
3500
3310
|
} else {
|
|
3501
3311
|
Logger({
|
|
3502
3312
|
level: "WARN",
|
|
3503
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3313
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${res_error}`,
|
|
3504
3314
|
});
|
|
3505
3315
|
}
|
|
3506
3316
|
}
|
|
@@ -3509,25 +3319,27 @@ class Content {
|
|
|
3509
3319
|
}
|
|
3510
3320
|
|
|
3511
3321
|
/**
|
|
3512
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3322
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectBySlugParam} arg
|
|
3513
3323
|
* - Arg object
|
|
3514
3324
|
*
|
|
3515
3325
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3516
3326
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3517
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3518
|
-
*
|
|
3327
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
3328
|
+
* Success response
|
|
3329
|
+
* @name getAppCustomObjectBySlug
|
|
3519
3330
|
* @summary: Get custom object details
|
|
3520
|
-
* @description: Details of custom
|
|
3331
|
+
* @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/).
|
|
3521
3332
|
*/
|
|
3522
|
-
async
|
|
3523
|
-
{
|
|
3333
|
+
async getAppCustomObjectBySlug(
|
|
3334
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
3524
3335
|
{ responseHeaders } = { responseHeaders: false }
|
|
3525
3336
|
) {
|
|
3526
3337
|
const {
|
|
3527
3338
|
error,
|
|
3528
|
-
} = ContentPlatformApplicationValidator.
|
|
3339
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3529
3340
|
{
|
|
3530
|
-
|
|
3341
|
+
definitionSlug,
|
|
3342
|
+
slug,
|
|
3531
3343
|
},
|
|
3532
3344
|
{ abortEarly: false, allowUnknown: true }
|
|
3533
3345
|
);
|
|
@@ -3538,16 +3350,17 @@ class Content {
|
|
|
3538
3350
|
// Showing warrnings if extra unknown parameters are found
|
|
3539
3351
|
const {
|
|
3540
3352
|
error: warrning,
|
|
3541
|
-
} = ContentPlatformApplicationValidator.
|
|
3353
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3542
3354
|
{
|
|
3543
|
-
|
|
3355
|
+
definitionSlug,
|
|
3356
|
+
slug,
|
|
3544
3357
|
},
|
|
3545
3358
|
{ abortEarly: false, allowUnknown: false }
|
|
3546
3359
|
);
|
|
3547
3360
|
if (warrning) {
|
|
3548
3361
|
Logger({
|
|
3549
3362
|
level: "WARN",
|
|
3550
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3363
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectBySlug \n ${warrning}`,
|
|
3551
3364
|
});
|
|
3552
3365
|
}
|
|
3553
3366
|
|
|
@@ -3556,7 +3369,7 @@ class Content {
|
|
|
3556
3369
|
const response = await PlatformAPIClient.execute(
|
|
3557
3370
|
this.config,
|
|
3558
3371
|
"get",
|
|
3559
|
-
`/service/platform/content/
|
|
3372
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
3560
3373
|
query_params,
|
|
3561
3374
|
undefined,
|
|
3562
3375
|
requestHeaders,
|
|
@@ -3570,7 +3383,7 @@ class Content {
|
|
|
3570
3383
|
|
|
3571
3384
|
const {
|
|
3572
3385
|
error: res_error,
|
|
3573
|
-
} = ContentPlatformModel.
|
|
3386
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
3574
3387
|
abortEarly: false,
|
|
3575
3388
|
allowUnknown: true,
|
|
3576
3389
|
});
|
|
@@ -3581,7 +3394,7 @@ class Content {
|
|
|
3581
3394
|
} else {
|
|
3582
3395
|
Logger({
|
|
3583
3396
|
level: "WARN",
|
|
3584
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3397
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectBySlug \n ${res_error}`,
|
|
3585
3398
|
});
|
|
3586
3399
|
}
|
|
3587
3400
|
}
|
|
@@ -3590,26 +3403,27 @@ class Content {
|
|
|
3590
3403
|
}
|
|
3591
3404
|
|
|
3592
3405
|
/**
|
|
3593
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3406
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionBySlugParam} arg
|
|
3594
3407
|
* - Arg object
|
|
3595
3408
|
*
|
|
3596
3409
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3597
3410
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3598
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3599
|
-
* Success response
|
|
3600
|
-
*
|
|
3411
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
3412
|
+
* - Success response
|
|
3413
|
+
*
|
|
3414
|
+
* @name getAppCustomObjectDefinitionBySlug
|
|
3601
3415
|
* @summary: Get custom object definition
|
|
3602
|
-
* @description: Custom object definitions can be fetched using their definition
|
|
3416
|
+
* @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/).
|
|
3603
3417
|
*/
|
|
3604
|
-
async
|
|
3605
|
-
{
|
|
3418
|
+
async getAppCustomObjectDefinitionBySlug(
|
|
3419
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
3606
3420
|
{ responseHeaders } = { responseHeaders: false }
|
|
3607
3421
|
) {
|
|
3608
3422
|
const {
|
|
3609
3423
|
error,
|
|
3610
|
-
} = ContentPlatformApplicationValidator.
|
|
3424
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3611
3425
|
{
|
|
3612
|
-
|
|
3426
|
+
slug,
|
|
3613
3427
|
},
|
|
3614
3428
|
{ abortEarly: false, allowUnknown: true }
|
|
3615
3429
|
);
|
|
@@ -3620,16 +3434,16 @@ class Content {
|
|
|
3620
3434
|
// Showing warrnings if extra unknown parameters are found
|
|
3621
3435
|
const {
|
|
3622
3436
|
error: warrning,
|
|
3623
|
-
} = ContentPlatformApplicationValidator.
|
|
3437
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3624
3438
|
{
|
|
3625
|
-
|
|
3439
|
+
slug,
|
|
3626
3440
|
},
|
|
3627
3441
|
{ abortEarly: false, allowUnknown: false }
|
|
3628
3442
|
);
|
|
3629
3443
|
if (warrning) {
|
|
3630
3444
|
Logger({
|
|
3631
3445
|
level: "WARN",
|
|
3632
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3446
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
3633
3447
|
});
|
|
3634
3448
|
}
|
|
3635
3449
|
|
|
@@ -3638,7 +3452,7 @@ class Content {
|
|
|
3638
3452
|
const response = await PlatformAPIClient.execute(
|
|
3639
3453
|
this.config,
|
|
3640
3454
|
"get",
|
|
3641
|
-
`/service/platform/content/
|
|
3455
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
3642
3456
|
query_params,
|
|
3643
3457
|
undefined,
|
|
3644
3458
|
requestHeaders,
|
|
@@ -3652,7 +3466,7 @@ class Content {
|
|
|
3652
3466
|
|
|
3653
3467
|
const {
|
|
3654
3468
|
error: res_error,
|
|
3655
|
-
} = ContentPlatformModel.
|
|
3469
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
3656
3470
|
responseData,
|
|
3657
3471
|
{ abortEarly: false, allowUnknown: true }
|
|
3658
3472
|
);
|
|
@@ -3663,7 +3477,7 @@ class Content {
|
|
|
3663
3477
|
} else {
|
|
3664
3478
|
Logger({
|
|
3665
3479
|
level: "WARN",
|
|
3666
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3480
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
3667
3481
|
});
|
|
3668
3482
|
}
|
|
3669
3483
|
}
|
|
@@ -3727,7 +3541,7 @@ class Content {
|
|
|
3727
3541
|
const response = await PlatformAPIClient.execute(
|
|
3728
3542
|
this.config,
|
|
3729
3543
|
"get",
|
|
3730
|
-
`/service/platform/content/
|
|
3544
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
|
|
3731
3545
|
query_params,
|
|
3732
3546
|
undefined,
|
|
3733
3547
|
requestHeaders,
|
|
@@ -3761,27 +3575,29 @@ class Content {
|
|
|
3761
3575
|
}
|
|
3762
3576
|
|
|
3763
3577
|
/**
|
|
3764
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3578
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectsBySlugParam} arg
|
|
3765
3579
|
* - Arg object
|
|
3766
3580
|
*
|
|
3767
3581
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3768
3582
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3769
3583
|
* @returns {Promise<ContentPlatformModel.CustomObjectsSchema>} - Success response
|
|
3770
|
-
* @name
|
|
3584
|
+
* @name getAppCustomObjectsBySlug
|
|
3771
3585
|
* @summary: Get list of custom objects
|
|
3772
|
-
* @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
3586
|
+
* @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectsBySlug/).
|
|
3773
3587
|
*/
|
|
3774
|
-
async
|
|
3775
|
-
{ pageNo, pageSize,
|
|
3588
|
+
async getAppCustomObjectsBySlug(
|
|
3589
|
+
{ pageNo, pageSize, definitionSlug, requestHeaders } = {
|
|
3590
|
+
requestHeaders: {},
|
|
3591
|
+
},
|
|
3776
3592
|
{ responseHeaders } = { responseHeaders: false }
|
|
3777
3593
|
) {
|
|
3778
3594
|
const {
|
|
3779
3595
|
error,
|
|
3780
|
-
} = ContentPlatformApplicationValidator.
|
|
3596
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3781
3597
|
{
|
|
3782
3598
|
pageNo,
|
|
3783
3599
|
pageSize,
|
|
3784
|
-
|
|
3600
|
+
definitionSlug,
|
|
3785
3601
|
},
|
|
3786
3602
|
{ abortEarly: false, allowUnknown: true }
|
|
3787
3603
|
);
|
|
@@ -3792,30 +3608,29 @@ class Content {
|
|
|
3792
3608
|
// Showing warrnings if extra unknown parameters are found
|
|
3793
3609
|
const {
|
|
3794
3610
|
error: warrning,
|
|
3795
|
-
} = ContentPlatformApplicationValidator.
|
|
3611
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3796
3612
|
{
|
|
3797
3613
|
pageNo,
|
|
3798
3614
|
pageSize,
|
|
3799
|
-
|
|
3615
|
+
definitionSlug,
|
|
3800
3616
|
},
|
|
3801
3617
|
{ abortEarly: false, allowUnknown: false }
|
|
3802
3618
|
);
|
|
3803
3619
|
if (warrning) {
|
|
3804
3620
|
Logger({
|
|
3805
3621
|
level: "WARN",
|
|
3806
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3622
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectsBySlug \n ${warrning}`,
|
|
3807
3623
|
});
|
|
3808
3624
|
}
|
|
3809
3625
|
|
|
3810
3626
|
const query_params = {};
|
|
3811
|
-
query_params["definition_id"] = definitionId;
|
|
3812
3627
|
query_params["page_no"] = pageNo;
|
|
3813
3628
|
query_params["page_size"] = pageSize;
|
|
3814
3629
|
|
|
3815
3630
|
const response = await PlatformAPIClient.execute(
|
|
3816
3631
|
this.config,
|
|
3817
3632
|
"get",
|
|
3818
|
-
`/service/platform/content/
|
|
3633
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
|
|
3819
3634
|
query_params,
|
|
3820
3635
|
undefined,
|
|
3821
3636
|
requestHeaders,
|
|
@@ -3840,7 +3655,7 @@ class Content {
|
|
|
3840
3655
|
} else {
|
|
3841
3656
|
Logger({
|
|
3842
3657
|
level: "WARN",
|
|
3843
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3658
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectsBySlug \n ${res_error}`,
|
|
3844
3659
|
});
|
|
3845
3660
|
}
|
|
3846
3661
|
}
|
|
@@ -4090,7 +3905,7 @@ class Content {
|
|
|
4090
3905
|
* @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
|
|
4091
3906
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4092
3907
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4093
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3908
|
+
* @returns {Promise<ContentPlatformModel.BlogGetDetails>} - Success response
|
|
4094
3909
|
* @name getBlogs
|
|
4095
3910
|
* @summary: List blogs
|
|
4096
3911
|
* @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
|
|
@@ -4165,7 +3980,7 @@ class Content {
|
|
|
4165
3980
|
|
|
4166
3981
|
const {
|
|
4167
3982
|
error: res_error,
|
|
4168
|
-
} = ContentPlatformModel.
|
|
3983
|
+
} = ContentPlatformModel.BlogGetDetails().validate(responseData, {
|
|
4169
3984
|
abortEarly: false,
|
|
4170
3985
|
allowUnknown: true,
|
|
4171
3986
|
});
|
|
@@ -4347,7 +4162,7 @@ class Content {
|
|
|
4347
4162
|
*
|
|
4348
4163
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4349
4164
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4350
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4165
|
+
* @returns {Promise<ContentPlatformModel.DefaultNavigationDetails>} -
|
|
4351
4166
|
* Success response
|
|
4352
4167
|
* @name getDefaultNavigations
|
|
4353
4168
|
* @summary: Get default navigations
|
|
@@ -4400,10 +4215,10 @@ class Content {
|
|
|
4400
4215
|
|
|
4401
4216
|
const {
|
|
4402
4217
|
error: res_error,
|
|
4403
|
-
} = ContentPlatformModel.
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
);
|
|
4218
|
+
} = ContentPlatformModel.DefaultNavigationDetails().validate(responseData, {
|
|
4219
|
+
abortEarly: false,
|
|
4220
|
+
allowUnknown: true,
|
|
4221
|
+
});
|
|
4407
4222
|
|
|
4408
4223
|
if (res_error) {
|
|
4409
4224
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4904,7 +4719,7 @@ class Content {
|
|
|
4904
4719
|
* @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
|
|
4905
4720
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4906
4721
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4907
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4722
|
+
* @returns {Promise<ContentPlatformModel.LandingPageGetDetails>} - Success response
|
|
4908
4723
|
* @name getLandingPages
|
|
4909
4724
|
* @summary: Get landing pages
|
|
4910
4725
|
* @description: Lists a list landing pages as per device types - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLandingPages/).
|
|
@@ -4964,7 +4779,7 @@ class Content {
|
|
|
4964
4779
|
|
|
4965
4780
|
const {
|
|
4966
4781
|
error: res_error,
|
|
4967
|
-
} = ContentPlatformModel.
|
|
4782
|
+
} = ContentPlatformModel.LandingPageGetDetails().validate(responseData, {
|
|
4968
4783
|
abortEarly: false,
|
|
4969
4784
|
allowUnknown: true,
|
|
4970
4785
|
});
|
|
@@ -5148,7 +4963,7 @@ class Content {
|
|
|
5148
4963
|
* @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
|
|
5149
4964
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5150
4965
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5151
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4966
|
+
* @returns {Promise<ContentPlatformModel.NavigationGetDetails>} - Success response
|
|
5152
4967
|
* @name getNavigations
|
|
5153
4968
|
* @summary: Get navigation items
|
|
5154
4969
|
* @description: Retrieve a list of navigational elements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
|
|
@@ -5213,7 +5028,7 @@ class Content {
|
|
|
5213
5028
|
|
|
5214
5029
|
const {
|
|
5215
5030
|
error: res_error,
|
|
5216
|
-
} = ContentPlatformModel.
|
|
5031
|
+
} = ContentPlatformModel.NavigationGetDetails().validate(responseData, {
|
|
5217
5032
|
abortEarly: false,
|
|
5218
5033
|
allowUnknown: true,
|
|
5219
5034
|
});
|
|
@@ -5465,7 +5280,7 @@ class Content {
|
|
|
5465
5280
|
* @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
|
|
5466
5281
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5467
5282
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5468
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5283
|
+
* @returns {Promise<ContentPlatformModel.PageGetDetails>} - Success response
|
|
5469
5284
|
* @name getPages
|
|
5470
5285
|
* @summary: Get pages
|
|
5471
5286
|
* @description: Retrieve a list of available pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
|
|
@@ -5523,7 +5338,7 @@ class Content {
|
|
|
5523
5338
|
|
|
5524
5339
|
const {
|
|
5525
5340
|
error: res_error,
|
|
5526
|
-
} = ContentPlatformModel.
|
|
5341
|
+
} = ContentPlatformModel.PageGetDetails().validate(responseData, {
|
|
5527
5342
|
abortEarly: false,
|
|
5528
5343
|
allowUnknown: true,
|
|
5529
5344
|
});
|
|
@@ -5959,220 +5774,6 @@ class Content {
|
|
|
5959
5774
|
return response;
|
|
5960
5775
|
}
|
|
5961
5776
|
|
|
5962
|
-
/**
|
|
5963
|
-
* @param {ContentPlatformApplicationValidator.GetSlideshowBySlugParam} arg
|
|
5964
|
-
* - Arg object
|
|
5965
|
-
*
|
|
5966
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5967
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5968
|
-
* @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
|
|
5969
|
-
* @name getSlideshowBySlug
|
|
5970
|
-
* @summary: Get Slideshow
|
|
5971
|
-
* @description: Use this API to get the details of a slideshow by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshowBySlug/).
|
|
5972
|
-
*/
|
|
5973
|
-
async getSlideshowBySlug(
|
|
5974
|
-
{ slug, devicePlatform, requestHeaders } = { requestHeaders: {} },
|
|
5975
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
5976
|
-
) {
|
|
5977
|
-
const {
|
|
5978
|
-
error,
|
|
5979
|
-
} = ContentPlatformApplicationValidator.getSlideshowBySlug().validate(
|
|
5980
|
-
{
|
|
5981
|
-
slug,
|
|
5982
|
-
devicePlatform,
|
|
5983
|
-
},
|
|
5984
|
-
{ abortEarly: false, allowUnknown: true }
|
|
5985
|
-
);
|
|
5986
|
-
if (error) {
|
|
5987
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
5988
|
-
}
|
|
5989
|
-
|
|
5990
|
-
// Showing warrnings if extra unknown parameters are found
|
|
5991
|
-
const {
|
|
5992
|
-
error: warrning,
|
|
5993
|
-
} = ContentPlatformApplicationValidator.getSlideshowBySlug().validate(
|
|
5994
|
-
{
|
|
5995
|
-
slug,
|
|
5996
|
-
devicePlatform,
|
|
5997
|
-
},
|
|
5998
|
-
{ abortEarly: false, allowUnknown: false }
|
|
5999
|
-
);
|
|
6000
|
-
if (warrning) {
|
|
6001
|
-
Logger({
|
|
6002
|
-
level: "WARN",
|
|
6003
|
-
message: `Parameter Validation warrnings for platform > Content > getSlideshowBySlug \n ${warrning}`,
|
|
6004
|
-
});
|
|
6005
|
-
}
|
|
6006
|
-
|
|
6007
|
-
const query_params = {};
|
|
6008
|
-
query_params["device_platform"] = devicePlatform;
|
|
6009
|
-
|
|
6010
|
-
const response = await PlatformAPIClient.execute(
|
|
6011
|
-
this.config,
|
|
6012
|
-
"get",
|
|
6013
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${slug}`,
|
|
6014
|
-
query_params,
|
|
6015
|
-
undefined,
|
|
6016
|
-
requestHeaders,
|
|
6017
|
-
{ responseHeaders }
|
|
6018
|
-
);
|
|
6019
|
-
|
|
6020
|
-
let responseData = response;
|
|
6021
|
-
if (responseHeaders) {
|
|
6022
|
-
responseData = response[0];
|
|
6023
|
-
}
|
|
6024
|
-
|
|
6025
|
-
const {
|
|
6026
|
-
error: res_error,
|
|
6027
|
-
} = ContentPlatformModel.SlideshowSchema().validate(responseData, {
|
|
6028
|
-
abortEarly: false,
|
|
6029
|
-
allowUnknown: true,
|
|
6030
|
-
});
|
|
6031
|
-
|
|
6032
|
-
if (res_error) {
|
|
6033
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
6034
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6035
|
-
} else {
|
|
6036
|
-
Logger({
|
|
6037
|
-
level: "WARN",
|
|
6038
|
-
message: `Response Validation Warnings for platform > Content > getSlideshowBySlug \n ${res_error}`,
|
|
6039
|
-
});
|
|
6040
|
-
}
|
|
6041
|
-
}
|
|
6042
|
-
|
|
6043
|
-
return response;
|
|
6044
|
-
}
|
|
6045
|
-
|
|
6046
|
-
/**
|
|
6047
|
-
* @param {ContentPlatformApplicationValidator.GetSlideshowsParam} arg - Arg object
|
|
6048
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6049
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6050
|
-
* @returns {Promise<ContentPlatformModel.SlideshowGetResponse>} - Success response
|
|
6051
|
-
* @name getSlideshows
|
|
6052
|
-
* @summary: List Slideshows
|
|
6053
|
-
* @description: Use this API to list all Slideshows - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshows/).
|
|
6054
|
-
*/
|
|
6055
|
-
async getSlideshows(
|
|
6056
|
-
{ devicePlatform, pageNo, pageSize, requestHeaders } = {
|
|
6057
|
-
requestHeaders: {},
|
|
6058
|
-
},
|
|
6059
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
6060
|
-
) {
|
|
6061
|
-
const {
|
|
6062
|
-
error,
|
|
6063
|
-
} = ContentPlatformApplicationValidator.getSlideshows().validate(
|
|
6064
|
-
{
|
|
6065
|
-
devicePlatform,
|
|
6066
|
-
pageNo,
|
|
6067
|
-
pageSize,
|
|
6068
|
-
},
|
|
6069
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6070
|
-
);
|
|
6071
|
-
if (error) {
|
|
6072
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
6073
|
-
}
|
|
6074
|
-
|
|
6075
|
-
// Showing warrnings if extra unknown parameters are found
|
|
6076
|
-
const {
|
|
6077
|
-
error: warrning,
|
|
6078
|
-
} = ContentPlatformApplicationValidator.getSlideshows().validate(
|
|
6079
|
-
{
|
|
6080
|
-
devicePlatform,
|
|
6081
|
-
pageNo,
|
|
6082
|
-
pageSize,
|
|
6083
|
-
},
|
|
6084
|
-
{ abortEarly: false, allowUnknown: false }
|
|
6085
|
-
);
|
|
6086
|
-
if (warrning) {
|
|
6087
|
-
Logger({
|
|
6088
|
-
level: "WARN",
|
|
6089
|
-
message: `Parameter Validation warrnings for platform > Content > getSlideshows \n ${warrning}`,
|
|
6090
|
-
});
|
|
6091
|
-
}
|
|
6092
|
-
|
|
6093
|
-
const query_params = {};
|
|
6094
|
-
query_params["device_platform"] = devicePlatform;
|
|
6095
|
-
query_params["page_no"] = pageNo;
|
|
6096
|
-
query_params["page_size"] = pageSize;
|
|
6097
|
-
|
|
6098
|
-
const response = await PlatformAPIClient.execute(
|
|
6099
|
-
this.config,
|
|
6100
|
-
"get",
|
|
6101
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows`,
|
|
6102
|
-
query_params,
|
|
6103
|
-
undefined,
|
|
6104
|
-
requestHeaders,
|
|
6105
|
-
{ responseHeaders }
|
|
6106
|
-
);
|
|
6107
|
-
|
|
6108
|
-
let responseData = response;
|
|
6109
|
-
if (responseHeaders) {
|
|
6110
|
-
responseData = response[0];
|
|
6111
|
-
}
|
|
6112
|
-
|
|
6113
|
-
const {
|
|
6114
|
-
error: res_error,
|
|
6115
|
-
} = ContentPlatformModel.SlideshowGetResponse().validate(responseData, {
|
|
6116
|
-
abortEarly: false,
|
|
6117
|
-
allowUnknown: true,
|
|
6118
|
-
});
|
|
6119
|
-
|
|
6120
|
-
if (res_error) {
|
|
6121
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
6122
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6123
|
-
} else {
|
|
6124
|
-
Logger({
|
|
6125
|
-
level: "WARN",
|
|
6126
|
-
message: `Response Validation Warnings for platform > Content > getSlideshows \n ${res_error}`,
|
|
6127
|
-
});
|
|
6128
|
-
}
|
|
6129
|
-
}
|
|
6130
|
-
|
|
6131
|
-
return response;
|
|
6132
|
-
}
|
|
6133
|
-
|
|
6134
|
-
/**
|
|
6135
|
-
* @param {Object} arg - Arg object.
|
|
6136
|
-
* @param {string} arg.companyId - Numeric ID allotted to a business account
|
|
6137
|
-
* on Fynd Platform
|
|
6138
|
-
* @param {string} arg.applicationId - Numeric ID allotted to an application
|
|
6139
|
-
* created within a business account.
|
|
6140
|
-
* @param {string} arg.devicePlatform - Filter slideshows by platform.
|
|
6141
|
-
* Acceptable values are: web, android, ios and all
|
|
6142
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
6143
|
-
* page. Default value is 10.
|
|
6144
|
-
* @returns {Paginator<ContentPlatformModel.SlideshowGetResponse>}
|
|
6145
|
-
* @summary: List Slideshows
|
|
6146
|
-
* @description: Use this API to list all Slideshows
|
|
6147
|
-
*/
|
|
6148
|
-
getSlideshowsPaginator({
|
|
6149
|
-
companyId,
|
|
6150
|
-
applicationId,
|
|
6151
|
-
devicePlatform,
|
|
6152
|
-
pageSize,
|
|
6153
|
-
} = {}) {
|
|
6154
|
-
const paginator = new Paginator();
|
|
6155
|
-
const callback = async () => {
|
|
6156
|
-
const pageId = paginator.nextId;
|
|
6157
|
-
const pageNo = paginator.pageNo;
|
|
6158
|
-
const pageType = "number";
|
|
6159
|
-
const data = await this.getSlideshows({
|
|
6160
|
-
companyId: companyId,
|
|
6161
|
-
applicationId: applicationId,
|
|
6162
|
-
devicePlatform: devicePlatform,
|
|
6163
|
-
pageNo: pageNo,
|
|
6164
|
-
pageSize: pageSize,
|
|
6165
|
-
});
|
|
6166
|
-
paginator.setPaginator({
|
|
6167
|
-
hasNext: data.page.has_next ? true : false,
|
|
6168
|
-
nextId: data.page.next_id,
|
|
6169
|
-
});
|
|
6170
|
-
return data;
|
|
6171
|
-
};
|
|
6172
|
-
paginator.setCallback(callback.bind(this));
|
|
6173
|
-
return paginator;
|
|
6174
|
-
}
|
|
6175
|
-
|
|
6176
5777
|
/**
|
|
6177
5778
|
* @param {ContentPlatformApplicationValidator.GetSupportInformationParam} arg
|
|
6178
5779
|
* - Arg object
|
|
@@ -6251,27 +5852,27 @@ class Content {
|
|
|
6251
5852
|
}
|
|
6252
5853
|
|
|
6253
5854
|
/**
|
|
6254
|
-
* @param {ContentPlatformApplicationValidator.
|
|
5855
|
+
* @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesBySlugParam} arg
|
|
6255
5856
|
* - Arg object
|
|
6256
5857
|
*
|
|
6257
5858
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6258
5859
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6259
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5860
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadDetails>}
|
|
6260
5861
|
* - Success response
|
|
6261
5862
|
*
|
|
6262
|
-
* @name
|
|
5863
|
+
* @name importAppCustomObjectEntriesBySlug
|
|
6263
5864
|
* @summary: Bulk custom object entries upload
|
|
6264
|
-
* @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/
|
|
5865
|
+
* @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/).
|
|
6265
5866
|
*/
|
|
6266
|
-
async
|
|
6267
|
-
{
|
|
5867
|
+
async importAppCustomObjectEntriesBySlug(
|
|
5868
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
6268
5869
|
{ responseHeaders } = { responseHeaders: false }
|
|
6269
5870
|
) {
|
|
6270
5871
|
const {
|
|
6271
5872
|
error,
|
|
6272
|
-
} = ContentPlatformApplicationValidator.
|
|
5873
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6273
5874
|
{
|
|
6274
|
-
|
|
5875
|
+
slug,
|
|
6275
5876
|
body,
|
|
6276
5877
|
},
|
|
6277
5878
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6283,9 +5884,9 @@ class Content {
|
|
|
6283
5884
|
// Showing warrnings if extra unknown parameters are found
|
|
6284
5885
|
const {
|
|
6285
5886
|
error: warrning,
|
|
6286
|
-
} = ContentPlatformApplicationValidator.
|
|
5887
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6287
5888
|
{
|
|
6288
|
-
|
|
5889
|
+
slug,
|
|
6289
5890
|
body,
|
|
6290
5891
|
},
|
|
6291
5892
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6293,7 +5894,7 @@ class Content {
|
|
|
6293
5894
|
if (warrning) {
|
|
6294
5895
|
Logger({
|
|
6295
5896
|
level: "WARN",
|
|
6296
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
5897
|
+
message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
6297
5898
|
});
|
|
6298
5899
|
}
|
|
6299
5900
|
|
|
@@ -6302,7 +5903,7 @@ class Content {
|
|
|
6302
5903
|
const response = await PlatformAPIClient.execute(
|
|
6303
5904
|
this.config,
|
|
6304
5905
|
"post",
|
|
6305
|
-
`/service/platform/content/
|
|
5906
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/upload`,
|
|
6306
5907
|
query_params,
|
|
6307
5908
|
body,
|
|
6308
5909
|
requestHeaders,
|
|
@@ -6316,7 +5917,7 @@ class Content {
|
|
|
6316
5917
|
|
|
6317
5918
|
const {
|
|
6318
5919
|
error: res_error,
|
|
6319
|
-
} = ContentPlatformModel.
|
|
5920
|
+
} = ContentPlatformModel.CustomObjectEntryBulkUploadDetails().validate(
|
|
6320
5921
|
responseData,
|
|
6321
5922
|
{ abortEarly: false, allowUnknown: true }
|
|
6322
5923
|
);
|
|
@@ -6327,7 +5928,7 @@ class Content {
|
|
|
6327
5928
|
} else {
|
|
6328
5929
|
Logger({
|
|
6329
5930
|
level: "WARN",
|
|
6330
|
-
message: `Response Validation Warnings for platform > Content >
|
|
5931
|
+
message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
6331
5932
|
});
|
|
6332
5933
|
}
|
|
6333
5934
|
}
|
|
@@ -6341,8 +5942,7 @@ class Content {
|
|
|
6341
5942
|
*
|
|
6342
5943
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6343
5944
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6344
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6345
|
-
* Success response
|
|
5945
|
+
* @returns {Promise<ContentPlatformModel.TagDeleteSuccessDetails>} - Success response
|
|
6346
5946
|
* @name removeInjectableTag
|
|
6347
5947
|
* @summary: Remove HTML tag
|
|
6348
5948
|
* @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
|
|
@@ -6398,7 +5998,7 @@ class Content {
|
|
|
6398
5998
|
|
|
6399
5999
|
const {
|
|
6400
6000
|
error: res_error,
|
|
6401
|
-
} = ContentPlatformModel.
|
|
6001
|
+
} = ContentPlatformModel.TagDeleteSuccessDetails().validate(responseData, {
|
|
6402
6002
|
abortEarly: false,
|
|
6403
6003
|
allowUnknown: true,
|
|
6404
6004
|
});
|
|
@@ -6500,25 +6100,25 @@ class Content {
|
|
|
6500
6100
|
}
|
|
6501
6101
|
|
|
6502
6102
|
/**
|
|
6503
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6103
|
+
* @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryBySlugParam} arg
|
|
6504
6104
|
* - Arg object
|
|
6505
6105
|
*
|
|
6506
6106
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6507
6107
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6508
6108
|
* @returns {Promise<string>} - Success response
|
|
6509
|
-
* @name
|
|
6109
|
+
* @name sampleAppCustomObjectBulkEntryBySlug
|
|
6510
6110
|
* @summary: Download sample for custom object bulk entry
|
|
6511
|
-
* @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/
|
|
6111
|
+
* @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/).
|
|
6512
6112
|
*/
|
|
6513
|
-
async
|
|
6514
|
-
{
|
|
6113
|
+
async sampleAppCustomObjectBulkEntryBySlug(
|
|
6114
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
6515
6115
|
{ responseHeaders } = { responseHeaders: false }
|
|
6516
6116
|
) {
|
|
6517
6117
|
const {
|
|
6518
6118
|
error,
|
|
6519
|
-
} = ContentPlatformApplicationValidator.
|
|
6119
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6520
6120
|
{
|
|
6521
|
-
|
|
6121
|
+
slug,
|
|
6522
6122
|
},
|
|
6523
6123
|
{ abortEarly: false, allowUnknown: true }
|
|
6524
6124
|
);
|
|
@@ -6529,16 +6129,16 @@ class Content {
|
|
|
6529
6129
|
// Showing warrnings if extra unknown parameters are found
|
|
6530
6130
|
const {
|
|
6531
6131
|
error: warrning,
|
|
6532
|
-
} = ContentPlatformApplicationValidator.
|
|
6132
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6533
6133
|
{
|
|
6534
|
-
|
|
6134
|
+
slug,
|
|
6535
6135
|
},
|
|
6536
6136
|
{ abortEarly: false, allowUnknown: false }
|
|
6537
6137
|
);
|
|
6538
6138
|
if (warrning) {
|
|
6539
6139
|
Logger({
|
|
6540
6140
|
level: "WARN",
|
|
6541
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6141
|
+
message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${warrning}`,
|
|
6542
6142
|
});
|
|
6543
6143
|
}
|
|
6544
6144
|
|
|
@@ -6547,7 +6147,7 @@ class Content {
|
|
|
6547
6147
|
const response = await PlatformAPIClient.execute(
|
|
6548
6148
|
this.config,
|
|
6549
6149
|
"get",
|
|
6550
|
-
`/service/platform/content/
|
|
6150
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/sample`,
|
|
6551
6151
|
query_params,
|
|
6552
6152
|
undefined,
|
|
6553
6153
|
requestHeaders,
|
|
@@ -6569,7 +6169,7 @@ class Content {
|
|
|
6569
6169
|
} else {
|
|
6570
6170
|
Logger({
|
|
6571
6171
|
level: "WARN",
|
|
6572
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6172
|
+
message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${res_error}`,
|
|
6573
6173
|
});
|
|
6574
6174
|
}
|
|
6575
6175
|
}
|
|
@@ -6826,7 +6426,94 @@ class Content {
|
|
|
6826
6426
|
}
|
|
6827
6427
|
|
|
6828
6428
|
/**
|
|
6829
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6429
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
6430
|
+
* - Arg object
|
|
6431
|
+
*
|
|
6432
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6433
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6434
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
6435
|
+
* - Success response
|
|
6436
|
+
*
|
|
6437
|
+
* @name updateAppCustomFieldByResourceSlug
|
|
6438
|
+
* @summary: Create custom field entries for gives resource and resource slug
|
|
6439
|
+
* @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/).
|
|
6440
|
+
*/
|
|
6441
|
+
async updateAppCustomFieldByResourceSlug(
|
|
6442
|
+
{ resource, resourceSlug, body, requestHeaders } = { requestHeaders: {} },
|
|
6443
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
6444
|
+
) {
|
|
6445
|
+
const {
|
|
6446
|
+
error,
|
|
6447
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6448
|
+
{
|
|
6449
|
+
resource,
|
|
6450
|
+
resourceSlug,
|
|
6451
|
+
body,
|
|
6452
|
+
},
|
|
6453
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6454
|
+
);
|
|
6455
|
+
if (error) {
|
|
6456
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
6457
|
+
}
|
|
6458
|
+
|
|
6459
|
+
// Showing warrnings if extra unknown parameters are found
|
|
6460
|
+
const {
|
|
6461
|
+
error: warrning,
|
|
6462
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6463
|
+
{
|
|
6464
|
+
resource,
|
|
6465
|
+
resourceSlug,
|
|
6466
|
+
body,
|
|
6467
|
+
},
|
|
6468
|
+
{ abortEarly: false, allowUnknown: false }
|
|
6469
|
+
);
|
|
6470
|
+
if (warrning) {
|
|
6471
|
+
Logger({
|
|
6472
|
+
level: "WARN",
|
|
6473
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${warrning}`,
|
|
6474
|
+
});
|
|
6475
|
+
}
|
|
6476
|
+
|
|
6477
|
+
const query_params = {};
|
|
6478
|
+
|
|
6479
|
+
const response = await PlatformAPIClient.execute(
|
|
6480
|
+
this.config,
|
|
6481
|
+
"put",
|
|
6482
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
6483
|
+
query_params,
|
|
6484
|
+
body,
|
|
6485
|
+
requestHeaders,
|
|
6486
|
+
{ responseHeaders }
|
|
6487
|
+
);
|
|
6488
|
+
|
|
6489
|
+
let responseData = response;
|
|
6490
|
+
if (responseHeaders) {
|
|
6491
|
+
responseData = response[0];
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6494
|
+
const {
|
|
6495
|
+
error: res_error,
|
|
6496
|
+
} = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
|
|
6497
|
+
responseData,
|
|
6498
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6499
|
+
);
|
|
6500
|
+
|
|
6501
|
+
if (res_error) {
|
|
6502
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6503
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6504
|
+
} else {
|
|
6505
|
+
Logger({
|
|
6506
|
+
level: "WARN",
|
|
6507
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${res_error}`,
|
|
6508
|
+
});
|
|
6509
|
+
}
|
|
6510
|
+
}
|
|
6511
|
+
|
|
6512
|
+
return response;
|
|
6513
|
+
}
|
|
6514
|
+
|
|
6515
|
+
/**
|
|
6516
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionBySlugParam} arg
|
|
6830
6517
|
* - Arg object
|
|
6831
6518
|
*
|
|
6832
6519
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -6834,19 +6521,23 @@ class Content {
|
|
|
6834
6521
|
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
|
|
6835
6522
|
* - Success response
|
|
6836
6523
|
*
|
|
6837
|
-
* @name
|
|
6524
|
+
* @name updateAppCustomFieldDefinitionBySlug
|
|
6838
6525
|
* @summary: Update custom field definition
|
|
6839
|
-
* @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/
|
|
6526
|
+
* @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/).
|
|
6840
6527
|
*/
|
|
6841
|
-
async
|
|
6842
|
-
{
|
|
6528
|
+
async updateAppCustomFieldDefinitionBySlug(
|
|
6529
|
+
{ slug, resource, namespace, body, requestHeaders } = {
|
|
6530
|
+
requestHeaders: {},
|
|
6531
|
+
},
|
|
6843
6532
|
{ responseHeaders } = { responseHeaders: false }
|
|
6844
6533
|
) {
|
|
6845
6534
|
const {
|
|
6846
6535
|
error,
|
|
6847
|
-
} = ContentPlatformApplicationValidator.
|
|
6536
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6848
6537
|
{
|
|
6849
|
-
|
|
6538
|
+
slug,
|
|
6539
|
+
resource,
|
|
6540
|
+
namespace,
|
|
6850
6541
|
body,
|
|
6851
6542
|
},
|
|
6852
6543
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6858,9 +6549,11 @@ class Content {
|
|
|
6858
6549
|
// Showing warrnings if extra unknown parameters are found
|
|
6859
6550
|
const {
|
|
6860
6551
|
error: warrning,
|
|
6861
|
-
} = ContentPlatformApplicationValidator.
|
|
6552
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6862
6553
|
{
|
|
6863
|
-
|
|
6554
|
+
slug,
|
|
6555
|
+
resource,
|
|
6556
|
+
namespace,
|
|
6864
6557
|
body,
|
|
6865
6558
|
},
|
|
6866
6559
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6868,7 +6561,7 @@ class Content {
|
|
|
6868
6561
|
if (warrning) {
|
|
6869
6562
|
Logger({
|
|
6870
6563
|
level: "WARN",
|
|
6871
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6564
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
6872
6565
|
});
|
|
6873
6566
|
}
|
|
6874
6567
|
|
|
@@ -6877,7 +6570,7 @@ class Content {
|
|
|
6877
6570
|
const response = await PlatformAPIClient.execute(
|
|
6878
6571
|
this.config,
|
|
6879
6572
|
"put",
|
|
6880
|
-
`/service/platform/content/
|
|
6573
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
6881
6574
|
query_params,
|
|
6882
6575
|
body,
|
|
6883
6576
|
requestHeaders,
|
|
@@ -6902,7 +6595,7 @@ class Content {
|
|
|
6902
6595
|
} else {
|
|
6903
6596
|
Logger({
|
|
6904
6597
|
level: "WARN",
|
|
6905
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6598
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
6906
6599
|
});
|
|
6907
6600
|
}
|
|
6908
6601
|
}
|
|
@@ -6911,25 +6604,27 @@ class Content {
|
|
|
6911
6604
|
}
|
|
6912
6605
|
|
|
6913
6606
|
/**
|
|
6914
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6607
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectBySlugParam} arg
|
|
6915
6608
|
* - Arg object
|
|
6916
6609
|
*
|
|
6917
6610
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6918
6611
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6919
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6920
|
-
*
|
|
6612
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
6613
|
+
* Success response
|
|
6614
|
+
* @name updateAppCustomObjectBySlug
|
|
6921
6615
|
* @summary: Update custom object details
|
|
6922
|
-
* @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/
|
|
6616
|
+
* @description: Custom object entries can be updated using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAppCustomObjectBySlug/).
|
|
6923
6617
|
*/
|
|
6924
|
-
async
|
|
6925
|
-
{
|
|
6618
|
+
async updateAppCustomObjectBySlug(
|
|
6619
|
+
{ definitionSlug, slug, body, requestHeaders } = { requestHeaders: {} },
|
|
6926
6620
|
{ responseHeaders } = { responseHeaders: false }
|
|
6927
6621
|
) {
|
|
6928
6622
|
const {
|
|
6929
6623
|
error,
|
|
6930
|
-
} = ContentPlatformApplicationValidator.
|
|
6624
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
6931
6625
|
{
|
|
6932
|
-
|
|
6626
|
+
definitionSlug,
|
|
6627
|
+
slug,
|
|
6933
6628
|
body,
|
|
6934
6629
|
},
|
|
6935
6630
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6941,9 +6636,10 @@ class Content {
|
|
|
6941
6636
|
// Showing warrnings if extra unknown parameters are found
|
|
6942
6637
|
const {
|
|
6943
6638
|
error: warrning,
|
|
6944
|
-
} = ContentPlatformApplicationValidator.
|
|
6639
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
6945
6640
|
{
|
|
6946
|
-
|
|
6641
|
+
definitionSlug,
|
|
6642
|
+
slug,
|
|
6947
6643
|
body,
|
|
6948
6644
|
},
|
|
6949
6645
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6951,7 +6647,7 @@ class Content {
|
|
|
6951
6647
|
if (warrning) {
|
|
6952
6648
|
Logger({
|
|
6953
6649
|
level: "WARN",
|
|
6954
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6650
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectBySlug \n ${warrning}`,
|
|
6955
6651
|
});
|
|
6956
6652
|
}
|
|
6957
6653
|
|
|
@@ -6960,7 +6656,7 @@ class Content {
|
|
|
6960
6656
|
const response = await PlatformAPIClient.execute(
|
|
6961
6657
|
this.config,
|
|
6962
6658
|
"put",
|
|
6963
|
-
`/service/platform/content/
|
|
6659
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
6964
6660
|
query_params,
|
|
6965
6661
|
body,
|
|
6966
6662
|
requestHeaders,
|
|
@@ -6974,7 +6670,7 @@ class Content {
|
|
|
6974
6670
|
|
|
6975
6671
|
const {
|
|
6976
6672
|
error: res_error,
|
|
6977
|
-
} = ContentPlatformModel.
|
|
6673
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
6978
6674
|
abortEarly: false,
|
|
6979
6675
|
allowUnknown: true,
|
|
6980
6676
|
});
|
|
@@ -6985,7 +6681,7 @@ class Content {
|
|
|
6985
6681
|
} else {
|
|
6986
6682
|
Logger({
|
|
6987
6683
|
level: "WARN",
|
|
6988
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6684
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectBySlug \n ${res_error}`,
|
|
6989
6685
|
});
|
|
6990
6686
|
}
|
|
6991
6687
|
}
|
|
@@ -6994,26 +6690,27 @@ class Content {
|
|
|
6994
6690
|
}
|
|
6995
6691
|
|
|
6996
6692
|
/**
|
|
6997
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6693
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionBySlugParam} arg
|
|
6998
6694
|
* - Arg object
|
|
6999
6695
|
*
|
|
7000
6696
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7001
6697
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7002
|
-
* @returns {Promise<ContentPlatformModel.
|
|
7003
|
-
* Success response
|
|
7004
|
-
*
|
|
6698
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
6699
|
+
* - Success response
|
|
6700
|
+
*
|
|
6701
|
+
* @name updateAppCustomObjectDefinitionBySlug
|
|
7005
6702
|
* @summary: Update custom object definition
|
|
7006
|
-
* @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/
|
|
6703
|
+
* @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/).
|
|
7007
6704
|
*/
|
|
7008
|
-
async
|
|
7009
|
-
{
|
|
6705
|
+
async updateAppCustomObjectDefinitionBySlug(
|
|
6706
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
7010
6707
|
{ responseHeaders } = { responseHeaders: false }
|
|
7011
6708
|
) {
|
|
7012
6709
|
const {
|
|
7013
6710
|
error,
|
|
7014
|
-
} = ContentPlatformApplicationValidator.
|
|
6711
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7015
6712
|
{
|
|
7016
|
-
|
|
6713
|
+
slug,
|
|
7017
6714
|
body,
|
|
7018
6715
|
},
|
|
7019
6716
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -7025,9 +6722,9 @@ class Content {
|
|
|
7025
6722
|
// Showing warrnings if extra unknown parameters are found
|
|
7026
6723
|
const {
|
|
7027
6724
|
error: warrning,
|
|
7028
|
-
} = ContentPlatformApplicationValidator.
|
|
6725
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7029
6726
|
{
|
|
7030
|
-
|
|
6727
|
+
slug,
|
|
7031
6728
|
body,
|
|
7032
6729
|
},
|
|
7033
6730
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -7035,7 +6732,7 @@ class Content {
|
|
|
7035
6732
|
if (warrning) {
|
|
7036
6733
|
Logger({
|
|
7037
6734
|
level: "WARN",
|
|
7038
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6735
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
7039
6736
|
});
|
|
7040
6737
|
}
|
|
7041
6738
|
|
|
@@ -7044,7 +6741,7 @@ class Content {
|
|
|
7044
6741
|
const response = await PlatformAPIClient.execute(
|
|
7045
6742
|
this.config,
|
|
7046
6743
|
"put",
|
|
7047
|
-
`/service/platform/content/
|
|
6744
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
7048
6745
|
query_params,
|
|
7049
6746
|
body,
|
|
7050
6747
|
requestHeaders,
|
|
@@ -7058,7 +6755,7 @@ class Content {
|
|
|
7058
6755
|
|
|
7059
6756
|
const {
|
|
7060
6757
|
error: res_error,
|
|
7061
|
-
} = ContentPlatformModel.
|
|
6758
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
7062
6759
|
responseData,
|
|
7063
6760
|
{ abortEarly: false, allowUnknown: true }
|
|
7064
6761
|
);
|
|
@@ -7069,7 +6766,7 @@ class Content {
|
|
|
7069
6766
|
} else {
|
|
7070
6767
|
Logger({
|
|
7071
6768
|
level: "WARN",
|
|
7072
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6769
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
7073
6770
|
});
|
|
7074
6771
|
}
|
|
7075
6772
|
}
|
|
@@ -7972,87 +7669,6 @@ class Content {
|
|
|
7972
7669
|
return response;
|
|
7973
7670
|
}
|
|
7974
7671
|
|
|
7975
|
-
/**
|
|
7976
|
-
* @param {ContentPlatformApplicationValidator.UpdateSlideshowParam} arg - Arg object
|
|
7977
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7978
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7979
|
-
* @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
|
|
7980
|
-
* @name updateSlideshow
|
|
7981
|
-
* @summary: Update a slideshow
|
|
7982
|
-
* @description: Use this API to Update Slideshow - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSlideshow/).
|
|
7983
|
-
*/
|
|
7984
|
-
async updateSlideshow(
|
|
7985
|
-
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
7986
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
7987
|
-
) {
|
|
7988
|
-
const {
|
|
7989
|
-
error,
|
|
7990
|
-
} = ContentPlatformApplicationValidator.updateSlideshow().validate(
|
|
7991
|
-
{
|
|
7992
|
-
id,
|
|
7993
|
-
body,
|
|
7994
|
-
},
|
|
7995
|
-
{ abortEarly: false, allowUnknown: true }
|
|
7996
|
-
);
|
|
7997
|
-
if (error) {
|
|
7998
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
7999
|
-
}
|
|
8000
|
-
|
|
8001
|
-
// Showing warrnings if extra unknown parameters are found
|
|
8002
|
-
const {
|
|
8003
|
-
error: warrning,
|
|
8004
|
-
} = ContentPlatformApplicationValidator.updateSlideshow().validate(
|
|
8005
|
-
{
|
|
8006
|
-
id,
|
|
8007
|
-
body,
|
|
8008
|
-
},
|
|
8009
|
-
{ abortEarly: false, allowUnknown: false }
|
|
8010
|
-
);
|
|
8011
|
-
if (warrning) {
|
|
8012
|
-
Logger({
|
|
8013
|
-
level: "WARN",
|
|
8014
|
-
message: `Parameter Validation warrnings for platform > Content > updateSlideshow \n ${warrning}`,
|
|
8015
|
-
});
|
|
8016
|
-
}
|
|
8017
|
-
|
|
8018
|
-
const query_params = {};
|
|
8019
|
-
|
|
8020
|
-
const response = await PlatformAPIClient.execute(
|
|
8021
|
-
this.config,
|
|
8022
|
-
"put",
|
|
8023
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
|
|
8024
|
-
query_params,
|
|
8025
|
-
body,
|
|
8026
|
-
requestHeaders,
|
|
8027
|
-
{ responseHeaders }
|
|
8028
|
-
);
|
|
8029
|
-
|
|
8030
|
-
let responseData = response;
|
|
8031
|
-
if (responseHeaders) {
|
|
8032
|
-
responseData = response[0];
|
|
8033
|
-
}
|
|
8034
|
-
|
|
8035
|
-
const {
|
|
8036
|
-
error: res_error,
|
|
8037
|
-
} = ContentPlatformModel.SlideshowSchema().validate(responseData, {
|
|
8038
|
-
abortEarly: false,
|
|
8039
|
-
allowUnknown: true,
|
|
8040
|
-
});
|
|
8041
|
-
|
|
8042
|
-
if (res_error) {
|
|
8043
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
8044
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
8045
|
-
} else {
|
|
8046
|
-
Logger({
|
|
8047
|
-
level: "WARN",
|
|
8048
|
-
message: `Response Validation Warnings for platform > Content > updateSlideshow \n ${res_error}`,
|
|
8049
|
-
});
|
|
8050
|
-
}
|
|
8051
|
-
}
|
|
8052
|
-
|
|
8053
|
-
return response;
|
|
8054
|
-
}
|
|
8055
|
-
|
|
8056
7672
|
/**
|
|
8057
7673
|
* @param {ContentPlatformApplicationValidator.UpdateSupportInformationParam} arg
|
|
8058
7674
|
* - Arg object
|