@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.3
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 +111 -1200
- 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 +52 -95
- package/sdk/application/Content/ContentApplicationClient.js +46 -990
- 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 +89 -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 +93 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
- 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 +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- 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 +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5067 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1988 -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 +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -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 +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- 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 +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -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 +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1893 -623
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +924 -568
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -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
|
);
|
|
@@ -1468,25 +1386,27 @@ class Content {
|
|
|
1468
1386
|
}
|
|
1469
1387
|
|
|
1470
1388
|
/**
|
|
1471
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1389
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
1472
1390
|
* - Arg object
|
|
1473
1391
|
*
|
|
1474
1392
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1475
1393
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1476
1394
|
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1477
|
-
* @name
|
|
1395
|
+
* @name deleteAppCustomFieldDefinitionBySlug
|
|
1478
1396
|
* @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/
|
|
1397
|
+
* @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
1398
|
*/
|
|
1481
|
-
async
|
|
1482
|
-
{
|
|
1399
|
+
async deleteAppCustomFieldDefinitionBySlug(
|
|
1400
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
1483
1401
|
{ responseHeaders } = { responseHeaders: false }
|
|
1484
1402
|
) {
|
|
1485
1403
|
const {
|
|
1486
1404
|
error,
|
|
1487
|
-
} = ContentPlatformApplicationValidator.
|
|
1405
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1488
1406
|
{
|
|
1489
|
-
|
|
1407
|
+
slug,
|
|
1408
|
+
resource,
|
|
1409
|
+
namespace,
|
|
1490
1410
|
},
|
|
1491
1411
|
{ abortEarly: false, allowUnknown: true }
|
|
1492
1412
|
);
|
|
@@ -1497,16 +1417,18 @@ class Content {
|
|
|
1497
1417
|
// Showing warrnings if extra unknown parameters are found
|
|
1498
1418
|
const {
|
|
1499
1419
|
error: warrning,
|
|
1500
|
-
} = ContentPlatformApplicationValidator.
|
|
1420
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomFieldDefinitionBySlug().validate(
|
|
1501
1421
|
{
|
|
1502
|
-
|
|
1422
|
+
slug,
|
|
1423
|
+
resource,
|
|
1424
|
+
namespace,
|
|
1503
1425
|
},
|
|
1504
1426
|
{ abortEarly: false, allowUnknown: false }
|
|
1505
1427
|
);
|
|
1506
1428
|
if (warrning) {
|
|
1507
1429
|
Logger({
|
|
1508
1430
|
level: "WARN",
|
|
1509
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1431
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
1510
1432
|
});
|
|
1511
1433
|
}
|
|
1512
1434
|
|
|
@@ -1515,7 +1437,7 @@ class Content {
|
|
|
1515
1437
|
const response = await PlatformAPIClient.execute(
|
|
1516
1438
|
this.config,
|
|
1517
1439
|
"delete",
|
|
1518
|
-
`/service/platform/content/
|
|
1440
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
1519
1441
|
query_params,
|
|
1520
1442
|
undefined,
|
|
1521
1443
|
requestHeaders,
|
|
@@ -1540,7 +1462,7 @@ class Content {
|
|
|
1540
1462
|
} else {
|
|
1541
1463
|
Logger({
|
|
1542
1464
|
level: "WARN",
|
|
1543
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1465
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
1544
1466
|
});
|
|
1545
1467
|
}
|
|
1546
1468
|
}
|
|
@@ -1549,25 +1471,26 @@ class Content {
|
|
|
1549
1471
|
}
|
|
1550
1472
|
|
|
1551
1473
|
/**
|
|
1552
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1474
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectBySlugParam} arg
|
|
1553
1475
|
* - Arg object
|
|
1554
1476
|
*
|
|
1555
1477
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1556
1478
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1557
1479
|
* @returns {Promise<ContentPlatformModel.CustomDataDeleteSchema>} - Success response
|
|
1558
|
-
* @name
|
|
1480
|
+
* @name deleteAppCustomObjectBySlug
|
|
1559
1481
|
* @summary: Delete custom object
|
|
1560
|
-
* @description: Custom object
|
|
1482
|
+
* @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
1483
|
*/
|
|
1562
|
-
async
|
|
1563
|
-
{
|
|
1484
|
+
async deleteAppCustomObjectBySlug(
|
|
1485
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
1564
1486
|
{ responseHeaders } = { responseHeaders: false }
|
|
1565
1487
|
) {
|
|
1566
1488
|
const {
|
|
1567
1489
|
error,
|
|
1568
|
-
} = ContentPlatformApplicationValidator.
|
|
1490
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1569
1491
|
{
|
|
1570
|
-
|
|
1492
|
+
definitionSlug,
|
|
1493
|
+
slug,
|
|
1571
1494
|
},
|
|
1572
1495
|
{ abortEarly: false, allowUnknown: true }
|
|
1573
1496
|
);
|
|
@@ -1578,16 +1501,17 @@ class Content {
|
|
|
1578
1501
|
// Showing warrnings if extra unknown parameters are found
|
|
1579
1502
|
const {
|
|
1580
1503
|
error: warrning,
|
|
1581
|
-
} = ContentPlatformApplicationValidator.
|
|
1504
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectBySlug().validate(
|
|
1582
1505
|
{
|
|
1583
|
-
|
|
1506
|
+
definitionSlug,
|
|
1507
|
+
slug,
|
|
1584
1508
|
},
|
|
1585
1509
|
{ abortEarly: false, allowUnknown: false }
|
|
1586
1510
|
);
|
|
1587
1511
|
if (warrning) {
|
|
1588
1512
|
Logger({
|
|
1589
1513
|
level: "WARN",
|
|
1590
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1514
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectBySlug \n ${warrning}`,
|
|
1591
1515
|
});
|
|
1592
1516
|
}
|
|
1593
1517
|
|
|
@@ -1596,7 +1520,7 @@ class Content {
|
|
|
1596
1520
|
const response = await PlatformAPIClient.execute(
|
|
1597
1521
|
this.config,
|
|
1598
1522
|
"delete",
|
|
1599
|
-
`/service/platform/content/
|
|
1523
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
1600
1524
|
query_params,
|
|
1601
1525
|
undefined,
|
|
1602
1526
|
requestHeaders,
|
|
@@ -1621,7 +1545,7 @@ class Content {
|
|
|
1621
1545
|
} else {
|
|
1622
1546
|
Logger({
|
|
1623
1547
|
level: "WARN",
|
|
1624
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1548
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectBySlug \n ${res_error}`,
|
|
1625
1549
|
});
|
|
1626
1550
|
}
|
|
1627
1551
|
}
|
|
@@ -1630,7 +1554,7 @@ class Content {
|
|
|
1630
1554
|
}
|
|
1631
1555
|
|
|
1632
1556
|
/**
|
|
1633
|
-
* @param {ContentPlatformApplicationValidator.
|
|
1557
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppCustomObjectDefinitionBySlugParam} arg
|
|
1634
1558
|
* - Arg object
|
|
1635
1559
|
*
|
|
1636
1560
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1638,19 +1562,19 @@ class Content {
|
|
|
1638
1562
|
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionDeleteResponseSchema>}
|
|
1639
1563
|
* - Success response
|
|
1640
1564
|
*
|
|
1641
|
-
* @name
|
|
1565
|
+
* @name deleteAppCustomObjectDefinitionBySlug
|
|
1642
1566
|
* @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/
|
|
1567
|
+
* @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
1568
|
*/
|
|
1645
|
-
async
|
|
1646
|
-
{
|
|
1569
|
+
async deleteAppCustomObjectDefinitionBySlug(
|
|
1570
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
1647
1571
|
{ responseHeaders } = { responseHeaders: false }
|
|
1648
1572
|
) {
|
|
1649
1573
|
const {
|
|
1650
1574
|
error,
|
|
1651
|
-
} = ContentPlatformApplicationValidator.
|
|
1575
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1652
1576
|
{
|
|
1653
|
-
|
|
1577
|
+
slug,
|
|
1654
1578
|
},
|
|
1655
1579
|
{ abortEarly: false, allowUnknown: true }
|
|
1656
1580
|
);
|
|
@@ -1661,16 +1585,16 @@ class Content {
|
|
|
1661
1585
|
// Showing warrnings if extra unknown parameters are found
|
|
1662
1586
|
const {
|
|
1663
1587
|
error: warrning,
|
|
1664
|
-
} = ContentPlatformApplicationValidator.
|
|
1588
|
+
} = ContentPlatformApplicationValidator.deleteAppCustomObjectDefinitionBySlug().validate(
|
|
1665
1589
|
{
|
|
1666
|
-
|
|
1590
|
+
slug,
|
|
1667
1591
|
},
|
|
1668
1592
|
{ abortEarly: false, allowUnknown: false }
|
|
1669
1593
|
);
|
|
1670
1594
|
if (warrning) {
|
|
1671
1595
|
Logger({
|
|
1672
1596
|
level: "WARN",
|
|
1673
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
1597
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
1674
1598
|
});
|
|
1675
1599
|
}
|
|
1676
1600
|
|
|
@@ -1679,7 +1603,7 @@ class Content {
|
|
|
1679
1603
|
const response = await PlatformAPIClient.execute(
|
|
1680
1604
|
this.config,
|
|
1681
1605
|
"delete",
|
|
1682
|
-
`/service/platform/content/
|
|
1606
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
1683
1607
|
query_params,
|
|
1684
1608
|
undefined,
|
|
1685
1609
|
requestHeaders,
|
|
@@ -1704,7 +1628,7 @@ class Content {
|
|
|
1704
1628
|
} else {
|
|
1705
1629
|
Logger({
|
|
1706
1630
|
level: "WARN",
|
|
1707
|
-
message: `Response Validation Warnings for platform > Content >
|
|
1631
|
+
message: `Response Validation Warnings for platform > Content > deleteAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
1708
1632
|
});
|
|
1709
1633
|
}
|
|
1710
1634
|
}
|
|
@@ -2754,7 +2678,7 @@ class Content {
|
|
|
2754
2678
|
}
|
|
2755
2679
|
|
|
2756
2680
|
/**
|
|
2757
|
-
* @param {ContentPlatformApplicationValidator.
|
|
2681
|
+
* @param {ContentPlatformApplicationValidator.ExportAppCustomObjectEntriesBySlugParam} arg
|
|
2758
2682
|
* - Arg object
|
|
2759
2683
|
*
|
|
2760
2684
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -2762,19 +2686,19 @@ class Content {
|
|
|
2762
2686
|
* @returns {Promise<ContentPlatformModel.CustomObjectBulkEntryInitiateDownload>}
|
|
2763
2687
|
* - Success response
|
|
2764
2688
|
*
|
|
2765
|
-
* @name
|
|
2689
|
+
* @name exportAppCustomObjectEntriesBySlug
|
|
2766
2690
|
* @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/
|
|
2691
|
+
* @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
2692
|
*/
|
|
2769
|
-
async
|
|
2770
|
-
{
|
|
2693
|
+
async exportAppCustomObjectEntriesBySlug(
|
|
2694
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
2771
2695
|
{ responseHeaders } = { responseHeaders: false }
|
|
2772
2696
|
) {
|
|
2773
2697
|
const {
|
|
2774
2698
|
error,
|
|
2775
|
-
} = ContentPlatformApplicationValidator.
|
|
2699
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2776
2700
|
{
|
|
2777
|
-
|
|
2701
|
+
slug,
|
|
2778
2702
|
},
|
|
2779
2703
|
{ abortEarly: false, allowUnknown: true }
|
|
2780
2704
|
);
|
|
@@ -2785,16 +2709,16 @@ class Content {
|
|
|
2785
2709
|
// Showing warrnings if extra unknown parameters are found
|
|
2786
2710
|
const {
|
|
2787
2711
|
error: warrning,
|
|
2788
|
-
} = ContentPlatformApplicationValidator.
|
|
2712
|
+
} = ContentPlatformApplicationValidator.exportAppCustomObjectEntriesBySlug().validate(
|
|
2789
2713
|
{
|
|
2790
|
-
|
|
2714
|
+
slug,
|
|
2791
2715
|
},
|
|
2792
2716
|
{ abortEarly: false, allowUnknown: false }
|
|
2793
2717
|
);
|
|
2794
2718
|
if (warrning) {
|
|
2795
2719
|
Logger({
|
|
2796
2720
|
level: "WARN",
|
|
2797
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
2721
|
+
message: `Parameter Validation warrnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
2798
2722
|
});
|
|
2799
2723
|
}
|
|
2800
2724
|
|
|
@@ -2803,7 +2727,7 @@ class Content {
|
|
|
2803
2727
|
const response = await PlatformAPIClient.execute(
|
|
2804
2728
|
this.config,
|
|
2805
2729
|
"get",
|
|
2806
|
-
`/service/platform/content/
|
|
2730
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/download`,
|
|
2807
2731
|
query_params,
|
|
2808
2732
|
undefined,
|
|
2809
2733
|
requestHeaders,
|
|
@@ -2828,7 +2752,7 @@ class Content {
|
|
|
2828
2752
|
} else {
|
|
2829
2753
|
Logger({
|
|
2830
2754
|
level: "WARN",
|
|
2831
|
-
message: `Response Validation Warnings for platform > Content >
|
|
2755
|
+
message: `Response Validation Warnings for platform > Content > exportAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
2832
2756
|
});
|
|
2833
2757
|
}
|
|
2834
2758
|
}
|
|
@@ -3085,27 +3009,41 @@ class Content {
|
|
|
3085
3009
|
}
|
|
3086
3010
|
|
|
3087
3011
|
/**
|
|
3088
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3012
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
3089
3013
|
* - Arg object
|
|
3090
3014
|
*
|
|
3091
3015
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3092
3016
|
* @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/).
|
|
3017
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
3018
|
+
* Success response
|
|
3019
|
+
* @name getAppCustomFieldDefinitionByResource
|
|
3020
|
+
* @summary: Get custom fields definitions for a given resource type
|
|
3021
|
+
* @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
3022
|
*/
|
|
3100
|
-
async
|
|
3101
|
-
{
|
|
3023
|
+
async getAppCustomFieldDefinitionByResource(
|
|
3024
|
+
{
|
|
3025
|
+
pageNo,
|
|
3026
|
+
pageSize,
|
|
3027
|
+
resource,
|
|
3028
|
+
types,
|
|
3029
|
+
search,
|
|
3030
|
+
slugs,
|
|
3031
|
+
namespaces,
|
|
3032
|
+
requestHeaders,
|
|
3033
|
+
} = { requestHeaders: {} },
|
|
3102
3034
|
{ responseHeaders } = { responseHeaders: false }
|
|
3103
3035
|
) {
|
|
3104
3036
|
const {
|
|
3105
3037
|
error,
|
|
3106
|
-
} = ContentPlatformApplicationValidator.
|
|
3038
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3107
3039
|
{
|
|
3108
|
-
|
|
3040
|
+
pageNo,
|
|
3041
|
+
pageSize,
|
|
3042
|
+
resource,
|
|
3043
|
+
types,
|
|
3044
|
+
search,
|
|
3045
|
+
slugs,
|
|
3046
|
+
namespaces,
|
|
3109
3047
|
},
|
|
3110
3048
|
{ abortEarly: false, allowUnknown: true }
|
|
3111
3049
|
);
|
|
@@ -3116,25 +3054,37 @@ class Content {
|
|
|
3116
3054
|
// Showing warrnings if extra unknown parameters are found
|
|
3117
3055
|
const {
|
|
3118
3056
|
error: warrning,
|
|
3119
|
-
} = ContentPlatformApplicationValidator.
|
|
3057
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionByResource().validate(
|
|
3120
3058
|
{
|
|
3121
|
-
|
|
3059
|
+
pageNo,
|
|
3060
|
+
pageSize,
|
|
3061
|
+
resource,
|
|
3062
|
+
types,
|
|
3063
|
+
search,
|
|
3064
|
+
slugs,
|
|
3065
|
+
namespaces,
|
|
3122
3066
|
},
|
|
3123
3067
|
{ abortEarly: false, allowUnknown: false }
|
|
3124
3068
|
);
|
|
3125
3069
|
if (warrning) {
|
|
3126
3070
|
Logger({
|
|
3127
3071
|
level: "WARN",
|
|
3128
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3072
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${warrning}`,
|
|
3129
3073
|
});
|
|
3130
3074
|
}
|
|
3131
3075
|
|
|
3132
3076
|
const query_params = {};
|
|
3077
|
+
query_params["page_no"] = pageNo;
|
|
3078
|
+
query_params["page_size"] = pageSize;
|
|
3079
|
+
query_params["types"] = types;
|
|
3080
|
+
query_params["search"] = search;
|
|
3081
|
+
query_params["slugs"] = slugs;
|
|
3082
|
+
query_params["namespaces"] = namespaces;
|
|
3133
3083
|
|
|
3134
3084
|
const response = await PlatformAPIClient.execute(
|
|
3135
3085
|
this.config,
|
|
3136
3086
|
"get",
|
|
3137
|
-
`/service/platform/content/
|
|
3087
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/definition`,
|
|
3138
3088
|
query_params,
|
|
3139
3089
|
undefined,
|
|
3140
3090
|
requestHeaders,
|
|
@@ -3148,7 +3098,7 @@ class Content {
|
|
|
3148
3098
|
|
|
3149
3099
|
const {
|
|
3150
3100
|
error: res_error,
|
|
3151
|
-
} = ContentPlatformModel.
|
|
3101
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3152
3102
|
responseData,
|
|
3153
3103
|
{ abortEarly: false, allowUnknown: true }
|
|
3154
3104
|
);
|
|
@@ -3159,7 +3109,7 @@ class Content {
|
|
|
3159
3109
|
} else {
|
|
3160
3110
|
Logger({
|
|
3161
3111
|
level: "WARN",
|
|
3162
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3112
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionByResource \n ${res_error}`,
|
|
3163
3113
|
});
|
|
3164
3114
|
}
|
|
3165
3115
|
}
|
|
@@ -3168,32 +3118,29 @@ class Content {
|
|
|
3168
3118
|
}
|
|
3169
3119
|
|
|
3170
3120
|
/**
|
|
3171
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3121
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionBySlugParam} arg
|
|
3172
3122
|
* - Arg object
|
|
3173
3123
|
*
|
|
3174
3124
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3175
3125
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3176
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3177
|
-
* Success response
|
|
3178
|
-
*
|
|
3179
|
-
* @
|
|
3180
|
-
* @
|
|
3126
|
+
* @returns {Promise<ContentPlatformModel.MetaFieldDefinitionDetailResSchema>}
|
|
3127
|
+
* - Success response
|
|
3128
|
+
*
|
|
3129
|
+
* @name getAppCustomFieldDefinitionBySlug
|
|
3130
|
+
* @summary: Get custom fields definition by resource, slug and namespace
|
|
3131
|
+
* @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
3132
|
*/
|
|
3182
|
-
async
|
|
3183
|
-
{
|
|
3184
|
-
requestHeaders: {},
|
|
3185
|
-
},
|
|
3133
|
+
async getAppCustomFieldDefinitionBySlug(
|
|
3134
|
+
{ slug, resource, namespace, requestHeaders } = { requestHeaders: {} },
|
|
3186
3135
|
{ responseHeaders } = { responseHeaders: false }
|
|
3187
3136
|
) {
|
|
3188
3137
|
const {
|
|
3189
3138
|
error,
|
|
3190
|
-
} = ContentPlatformApplicationValidator.
|
|
3139
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3191
3140
|
{
|
|
3192
|
-
|
|
3193
|
-
pageSize,
|
|
3141
|
+
slug,
|
|
3194
3142
|
resource,
|
|
3195
|
-
|
|
3196
|
-
search,
|
|
3143
|
+
namespace,
|
|
3197
3144
|
},
|
|
3198
3145
|
{ abortEarly: false, allowUnknown: true }
|
|
3199
3146
|
);
|
|
@@ -3204,34 +3151,27 @@ class Content {
|
|
|
3204
3151
|
// Showing warrnings if extra unknown parameters are found
|
|
3205
3152
|
const {
|
|
3206
3153
|
error: warrning,
|
|
3207
|
-
} = ContentPlatformApplicationValidator.
|
|
3154
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitionBySlug().validate(
|
|
3208
3155
|
{
|
|
3209
|
-
|
|
3210
|
-
pageSize,
|
|
3156
|
+
slug,
|
|
3211
3157
|
resource,
|
|
3212
|
-
|
|
3213
|
-
search,
|
|
3158
|
+
namespace,
|
|
3214
3159
|
},
|
|
3215
3160
|
{ abortEarly: false, allowUnknown: false }
|
|
3216
3161
|
);
|
|
3217
3162
|
if (warrning) {
|
|
3218
3163
|
Logger({
|
|
3219
3164
|
level: "WARN",
|
|
3220
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3165
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
3221
3166
|
});
|
|
3222
3167
|
}
|
|
3223
3168
|
|
|
3224
3169
|
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
3170
|
|
|
3231
3171
|
const response = await PlatformAPIClient.execute(
|
|
3232
3172
|
this.config,
|
|
3233
3173
|
"get",
|
|
3234
|
-
`/service/platform/content/
|
|
3174
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
3235
3175
|
query_params,
|
|
3236
3176
|
undefined,
|
|
3237
3177
|
requestHeaders,
|
|
@@ -3245,7 +3185,7 @@ class Content {
|
|
|
3245
3185
|
|
|
3246
3186
|
const {
|
|
3247
3187
|
error: res_error,
|
|
3248
|
-
} = ContentPlatformModel.
|
|
3188
|
+
} = ContentPlatformModel.MetaFieldDefinitionDetailResSchema().validate(
|
|
3249
3189
|
responseData,
|
|
3250
3190
|
{ abortEarly: false, allowUnknown: true }
|
|
3251
3191
|
);
|
|
@@ -3256,7 +3196,7 @@ class Content {
|
|
|
3256
3196
|
} else {
|
|
3257
3197
|
Logger({
|
|
3258
3198
|
level: "WARN",
|
|
3259
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3199
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
3260
3200
|
});
|
|
3261
3201
|
}
|
|
3262
3202
|
}
|
|
@@ -3265,24 +3205,42 @@ class Content {
|
|
|
3265
3205
|
}
|
|
3266
3206
|
|
|
3267
3207
|
/**
|
|
3268
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3208
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam} arg
|
|
3269
3209
|
* - Arg object
|
|
3270
3210
|
*
|
|
3271
3211
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3272
3212
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3273
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3274
|
-
*
|
|
3275
|
-
* @
|
|
3276
|
-
* @
|
|
3213
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionsSchema>} -
|
|
3214
|
+
* Success response
|
|
3215
|
+
* @name getAppCustomFieldDefinitions
|
|
3216
|
+
* @summary: Get custom fields definitions
|
|
3217
|
+
* @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
3218
|
*/
|
|
3278
|
-
async
|
|
3279
|
-
{
|
|
3219
|
+
async getAppCustomFieldDefinitions(
|
|
3220
|
+
{
|
|
3221
|
+
pageNo,
|
|
3222
|
+
pageSize,
|
|
3223
|
+
resources,
|
|
3224
|
+
types,
|
|
3225
|
+
search,
|
|
3226
|
+
slugs,
|
|
3227
|
+
namespaces,
|
|
3228
|
+
requestHeaders,
|
|
3229
|
+
} = { requestHeaders: {} },
|
|
3280
3230
|
{ responseHeaders } = { responseHeaders: false }
|
|
3281
3231
|
) {
|
|
3282
3232
|
const {
|
|
3283
3233
|
error,
|
|
3284
|
-
} = ContentPlatformApplicationValidator.
|
|
3285
|
-
{
|
|
3234
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3235
|
+
{
|
|
3236
|
+
pageNo,
|
|
3237
|
+
pageSize,
|
|
3238
|
+
resources,
|
|
3239
|
+
types,
|
|
3240
|
+
search,
|
|
3241
|
+
slugs,
|
|
3242
|
+
namespaces,
|
|
3243
|
+
},
|
|
3286
3244
|
{ abortEarly: false, allowUnknown: true }
|
|
3287
3245
|
);
|
|
3288
3246
|
if (error) {
|
|
@@ -3292,23 +3250,38 @@ class Content {
|
|
|
3292
3250
|
// Showing warrnings if extra unknown parameters are found
|
|
3293
3251
|
const {
|
|
3294
3252
|
error: warrning,
|
|
3295
|
-
} = ContentPlatformApplicationValidator.
|
|
3296
|
-
{
|
|
3253
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldDefinitions().validate(
|
|
3254
|
+
{
|
|
3255
|
+
pageNo,
|
|
3256
|
+
pageSize,
|
|
3257
|
+
resources,
|
|
3258
|
+
types,
|
|
3259
|
+
search,
|
|
3260
|
+
slugs,
|
|
3261
|
+
namespaces,
|
|
3262
|
+
},
|
|
3297
3263
|
{ abortEarly: false, allowUnknown: false }
|
|
3298
3264
|
);
|
|
3299
3265
|
if (warrning) {
|
|
3300
3266
|
Logger({
|
|
3301
3267
|
level: "WARN",
|
|
3302
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3268
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldDefinitions \n ${warrning}`,
|
|
3303
3269
|
});
|
|
3304
3270
|
}
|
|
3305
3271
|
|
|
3306
3272
|
const query_params = {};
|
|
3273
|
+
query_params["page_no"] = pageNo;
|
|
3274
|
+
query_params["page_size"] = pageSize;
|
|
3275
|
+
query_params["resources"] = resources;
|
|
3276
|
+
query_params["types"] = types;
|
|
3277
|
+
query_params["search"] = search;
|
|
3278
|
+
query_params["slugs"] = slugs;
|
|
3279
|
+
query_params["namespaces"] = namespaces;
|
|
3307
3280
|
|
|
3308
3281
|
const response = await PlatformAPIClient.execute(
|
|
3309
3282
|
this.config,
|
|
3310
3283
|
"get",
|
|
3311
|
-
`/service/platform/content/
|
|
3284
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/definition`,
|
|
3312
3285
|
query_params,
|
|
3313
3286
|
undefined,
|
|
3314
3287
|
requestHeaders,
|
|
@@ -3322,10 +3295,10 @@ class Content {
|
|
|
3322
3295
|
|
|
3323
3296
|
const {
|
|
3324
3297
|
error: res_error,
|
|
3325
|
-
} = ContentPlatformModel.
|
|
3326
|
-
|
|
3327
|
-
allowUnknown: true
|
|
3328
|
-
|
|
3298
|
+
} = ContentPlatformModel.CustomFieldDefinitionsSchema().validate(
|
|
3299
|
+
responseData,
|
|
3300
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3301
|
+
);
|
|
3329
3302
|
|
|
3330
3303
|
if (res_error) {
|
|
3331
3304
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3333,7 +3306,7 @@ class Content {
|
|
|
3333
3306
|
} else {
|
|
3334
3307
|
Logger({
|
|
3335
3308
|
level: "WARN",
|
|
3336
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3309
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldDefinitions \n ${res_error}`,
|
|
3337
3310
|
});
|
|
3338
3311
|
}
|
|
3339
3312
|
}
|
|
@@ -3342,27 +3315,24 @@ class Content {
|
|
|
3342
3315
|
}
|
|
3343
3316
|
|
|
3344
3317
|
/**
|
|
3345
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3318
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldTypesParam} arg
|
|
3346
3319
|
* - Arg object
|
|
3347
3320
|
*
|
|
3348
3321
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3349
3322
|
* @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/).
|
|
3323
|
+
* @returns {Promise<ContentPlatformModel.MetafieldTypesSchema>} - Success response
|
|
3324
|
+
* @name getAppCustomFieldTypes
|
|
3325
|
+
* @summary: Get custom field types
|
|
3326
|
+
* @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
3327
|
*/
|
|
3356
|
-
async
|
|
3357
|
-
{
|
|
3328
|
+
async getAppCustomFieldTypes(
|
|
3329
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3358
3330
|
{ responseHeaders } = { responseHeaders: false }
|
|
3359
3331
|
) {
|
|
3360
3332
|
const {
|
|
3361
3333
|
error,
|
|
3362
|
-
} = ContentPlatformApplicationValidator.
|
|
3363
|
-
{
|
|
3364
|
-
resource,
|
|
3365
|
-
},
|
|
3334
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
|
|
3335
|
+
{},
|
|
3366
3336
|
{ abortEarly: false, allowUnknown: true }
|
|
3367
3337
|
);
|
|
3368
3338
|
if (error) {
|
|
@@ -3372,16 +3342,14 @@ class Content {
|
|
|
3372
3342
|
// Showing warrnings if extra unknown parameters are found
|
|
3373
3343
|
const {
|
|
3374
3344
|
error: warrning,
|
|
3375
|
-
} = ContentPlatformApplicationValidator.
|
|
3376
|
-
{
|
|
3377
|
-
resource,
|
|
3378
|
-
},
|
|
3345
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldTypes().validate(
|
|
3346
|
+
{},
|
|
3379
3347
|
{ abortEarly: false, allowUnknown: false }
|
|
3380
3348
|
);
|
|
3381
3349
|
if (warrning) {
|
|
3382
3350
|
Logger({
|
|
3383
3351
|
level: "WARN",
|
|
3384
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3352
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldTypes \n ${warrning}`,
|
|
3385
3353
|
});
|
|
3386
3354
|
}
|
|
3387
3355
|
|
|
@@ -3390,7 +3358,7 @@ class Content {
|
|
|
3390
3358
|
const response = await PlatformAPIClient.execute(
|
|
3391
3359
|
this.config,
|
|
3392
3360
|
"get",
|
|
3393
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields
|
|
3361
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/metafields/types`,
|
|
3394
3362
|
query_params,
|
|
3395
3363
|
undefined,
|
|
3396
3364
|
requestHeaders,
|
|
@@ -3404,10 +3372,10 @@ class Content {
|
|
|
3404
3372
|
|
|
3405
3373
|
const {
|
|
3406
3374
|
error: res_error,
|
|
3407
|
-
} = ContentPlatformModel.
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
);
|
|
3375
|
+
} = ContentPlatformModel.MetafieldTypesSchema().validate(responseData, {
|
|
3376
|
+
abortEarly: false,
|
|
3377
|
+
allowUnknown: true,
|
|
3378
|
+
});
|
|
3411
3379
|
|
|
3412
3380
|
if (res_error) {
|
|
3413
3381
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3415,7 +3383,7 @@ class Content {
|
|
|
3415
3383
|
} else {
|
|
3416
3384
|
Logger({
|
|
3417
3385
|
level: "WARN",
|
|
3418
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3386
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldTypes \n ${res_error}`,
|
|
3419
3387
|
});
|
|
3420
3388
|
}
|
|
3421
3389
|
}
|
|
@@ -3424,7 +3392,7 @@ class Content {
|
|
|
3424
3392
|
}
|
|
3425
3393
|
|
|
3426
3394
|
/**
|
|
3427
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3395
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldsByResourceSlugParam} arg
|
|
3428
3396
|
* - Arg object
|
|
3429
3397
|
*
|
|
3430
3398
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -3432,20 +3400,20 @@ class Content {
|
|
|
3432
3400
|
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
3433
3401
|
* - Success response
|
|
3434
3402
|
*
|
|
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
|
|
3403
|
+
* @name getAppCustomFieldsByResourceSlug
|
|
3404
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
3405
|
+
* @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
3406
|
*/
|
|
3439
|
-
async
|
|
3440
|
-
{ resource,
|
|
3407
|
+
async getAppCustomFieldsByResourceSlug(
|
|
3408
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
3441
3409
|
{ responseHeaders } = { responseHeaders: false }
|
|
3442
3410
|
) {
|
|
3443
3411
|
const {
|
|
3444
3412
|
error,
|
|
3445
|
-
} = ContentPlatformApplicationValidator.
|
|
3413
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3446
3414
|
{
|
|
3447
3415
|
resource,
|
|
3448
|
-
|
|
3416
|
+
resourceSlug,
|
|
3449
3417
|
},
|
|
3450
3418
|
{ abortEarly: false, allowUnknown: true }
|
|
3451
3419
|
);
|
|
@@ -3456,17 +3424,17 @@ class Content {
|
|
|
3456
3424
|
// Showing warrnings if extra unknown parameters are found
|
|
3457
3425
|
const {
|
|
3458
3426
|
error: warrning,
|
|
3459
|
-
} = ContentPlatformApplicationValidator.
|
|
3427
|
+
} = ContentPlatformApplicationValidator.getAppCustomFieldsByResourceSlug().validate(
|
|
3460
3428
|
{
|
|
3461
3429
|
resource,
|
|
3462
|
-
|
|
3430
|
+
resourceSlug,
|
|
3463
3431
|
},
|
|
3464
3432
|
{ abortEarly: false, allowUnknown: false }
|
|
3465
3433
|
);
|
|
3466
3434
|
if (warrning) {
|
|
3467
3435
|
Logger({
|
|
3468
3436
|
level: "WARN",
|
|
3469
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3437
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${warrning}`,
|
|
3470
3438
|
});
|
|
3471
3439
|
}
|
|
3472
3440
|
|
|
@@ -3475,7 +3443,7 @@ class Content {
|
|
|
3475
3443
|
const response = await PlatformAPIClient.execute(
|
|
3476
3444
|
this.config,
|
|
3477
3445
|
"get",
|
|
3478
|
-
`/service/platform/content/
|
|
3446
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
3479
3447
|
query_params,
|
|
3480
3448
|
undefined,
|
|
3481
3449
|
requestHeaders,
|
|
@@ -3500,7 +3468,7 @@ class Content {
|
|
|
3500
3468
|
} else {
|
|
3501
3469
|
Logger({
|
|
3502
3470
|
level: "WARN",
|
|
3503
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3471
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomFieldsByResourceSlug \n ${res_error}`,
|
|
3504
3472
|
});
|
|
3505
3473
|
}
|
|
3506
3474
|
}
|
|
@@ -3509,25 +3477,27 @@ class Content {
|
|
|
3509
3477
|
}
|
|
3510
3478
|
|
|
3511
3479
|
/**
|
|
3512
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3480
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectBySlugParam} arg
|
|
3513
3481
|
* - Arg object
|
|
3514
3482
|
*
|
|
3515
3483
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3516
3484
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3517
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3518
|
-
*
|
|
3485
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
3486
|
+
* Success response
|
|
3487
|
+
* @name getAppCustomObjectBySlug
|
|
3519
3488
|
* @summary: Get custom object details
|
|
3520
|
-
* @description: Details of custom
|
|
3489
|
+
* @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
3490
|
*/
|
|
3522
|
-
async
|
|
3523
|
-
{
|
|
3491
|
+
async getAppCustomObjectBySlug(
|
|
3492
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
3524
3493
|
{ responseHeaders } = { responseHeaders: false }
|
|
3525
3494
|
) {
|
|
3526
3495
|
const {
|
|
3527
3496
|
error,
|
|
3528
|
-
} = ContentPlatformApplicationValidator.
|
|
3497
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3529
3498
|
{
|
|
3530
|
-
|
|
3499
|
+
definitionSlug,
|
|
3500
|
+
slug,
|
|
3531
3501
|
},
|
|
3532
3502
|
{ abortEarly: false, allowUnknown: true }
|
|
3533
3503
|
);
|
|
@@ -3538,16 +3508,17 @@ class Content {
|
|
|
3538
3508
|
// Showing warrnings if extra unknown parameters are found
|
|
3539
3509
|
const {
|
|
3540
3510
|
error: warrning,
|
|
3541
|
-
} = ContentPlatformApplicationValidator.
|
|
3511
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectBySlug().validate(
|
|
3542
3512
|
{
|
|
3543
|
-
|
|
3513
|
+
definitionSlug,
|
|
3514
|
+
slug,
|
|
3544
3515
|
},
|
|
3545
3516
|
{ abortEarly: false, allowUnknown: false }
|
|
3546
3517
|
);
|
|
3547
3518
|
if (warrning) {
|
|
3548
3519
|
Logger({
|
|
3549
3520
|
level: "WARN",
|
|
3550
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3521
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectBySlug \n ${warrning}`,
|
|
3551
3522
|
});
|
|
3552
3523
|
}
|
|
3553
3524
|
|
|
@@ -3556,7 +3527,7 @@ class Content {
|
|
|
3556
3527
|
const response = await PlatformAPIClient.execute(
|
|
3557
3528
|
this.config,
|
|
3558
3529
|
"get",
|
|
3559
|
-
`/service/platform/content/
|
|
3530
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
3560
3531
|
query_params,
|
|
3561
3532
|
undefined,
|
|
3562
3533
|
requestHeaders,
|
|
@@ -3570,7 +3541,7 @@ class Content {
|
|
|
3570
3541
|
|
|
3571
3542
|
const {
|
|
3572
3543
|
error: res_error,
|
|
3573
|
-
} = ContentPlatformModel.
|
|
3544
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
3574
3545
|
abortEarly: false,
|
|
3575
3546
|
allowUnknown: true,
|
|
3576
3547
|
});
|
|
@@ -3581,7 +3552,7 @@ class Content {
|
|
|
3581
3552
|
} else {
|
|
3582
3553
|
Logger({
|
|
3583
3554
|
level: "WARN",
|
|
3584
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3555
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectBySlug \n ${res_error}`,
|
|
3585
3556
|
});
|
|
3586
3557
|
}
|
|
3587
3558
|
}
|
|
@@ -3590,26 +3561,27 @@ class Content {
|
|
|
3590
3561
|
}
|
|
3591
3562
|
|
|
3592
3563
|
/**
|
|
3593
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3564
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectDefinitionBySlugParam} arg
|
|
3594
3565
|
* - Arg object
|
|
3595
3566
|
*
|
|
3596
3567
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3597
3568
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3598
|
-
* @returns {Promise<ContentPlatformModel.
|
|
3599
|
-
* Success response
|
|
3600
|
-
*
|
|
3569
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
3570
|
+
* - Success response
|
|
3571
|
+
*
|
|
3572
|
+
* @name getAppCustomObjectDefinitionBySlug
|
|
3601
3573
|
* @summary: Get custom object definition
|
|
3602
|
-
* @description: Custom object definitions can be fetched using their definition
|
|
3574
|
+
* @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
3575
|
*/
|
|
3604
|
-
async
|
|
3605
|
-
{
|
|
3576
|
+
async getAppCustomObjectDefinitionBySlug(
|
|
3577
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
3606
3578
|
{ responseHeaders } = { responseHeaders: false }
|
|
3607
3579
|
) {
|
|
3608
3580
|
const {
|
|
3609
3581
|
error,
|
|
3610
|
-
} = ContentPlatformApplicationValidator.
|
|
3582
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3611
3583
|
{
|
|
3612
|
-
|
|
3584
|
+
slug,
|
|
3613
3585
|
},
|
|
3614
3586
|
{ abortEarly: false, allowUnknown: true }
|
|
3615
3587
|
);
|
|
@@ -3620,16 +3592,16 @@ class Content {
|
|
|
3620
3592
|
// Showing warrnings if extra unknown parameters are found
|
|
3621
3593
|
const {
|
|
3622
3594
|
error: warrning,
|
|
3623
|
-
} = ContentPlatformApplicationValidator.
|
|
3595
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectDefinitionBySlug().validate(
|
|
3624
3596
|
{
|
|
3625
|
-
|
|
3597
|
+
slug,
|
|
3626
3598
|
},
|
|
3627
3599
|
{ abortEarly: false, allowUnknown: false }
|
|
3628
3600
|
);
|
|
3629
3601
|
if (warrning) {
|
|
3630
3602
|
Logger({
|
|
3631
3603
|
level: "WARN",
|
|
3632
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3604
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
3633
3605
|
});
|
|
3634
3606
|
}
|
|
3635
3607
|
|
|
@@ -3638,7 +3610,7 @@ class Content {
|
|
|
3638
3610
|
const response = await PlatformAPIClient.execute(
|
|
3639
3611
|
this.config,
|
|
3640
3612
|
"get",
|
|
3641
|
-
`/service/platform/content/
|
|
3613
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
3642
3614
|
query_params,
|
|
3643
3615
|
undefined,
|
|
3644
3616
|
requestHeaders,
|
|
@@ -3652,7 +3624,7 @@ class Content {
|
|
|
3652
3624
|
|
|
3653
3625
|
const {
|
|
3654
3626
|
error: res_error,
|
|
3655
|
-
} = ContentPlatformModel.
|
|
3627
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
3656
3628
|
responseData,
|
|
3657
3629
|
{ abortEarly: false, allowUnknown: true }
|
|
3658
3630
|
);
|
|
@@ -3663,7 +3635,7 @@ class Content {
|
|
|
3663
3635
|
} else {
|
|
3664
3636
|
Logger({
|
|
3665
3637
|
level: "WARN",
|
|
3666
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3638
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
3667
3639
|
});
|
|
3668
3640
|
}
|
|
3669
3641
|
}
|
|
@@ -3727,7 +3699,7 @@ class Content {
|
|
|
3727
3699
|
const response = await PlatformAPIClient.execute(
|
|
3728
3700
|
this.config,
|
|
3729
3701
|
"get",
|
|
3730
|
-
`/service/platform/content/
|
|
3702
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition`,
|
|
3731
3703
|
query_params,
|
|
3732
3704
|
undefined,
|
|
3733
3705
|
requestHeaders,
|
|
@@ -3761,27 +3733,29 @@ class Content {
|
|
|
3761
3733
|
}
|
|
3762
3734
|
|
|
3763
3735
|
/**
|
|
3764
|
-
* @param {ContentPlatformApplicationValidator.
|
|
3736
|
+
* @param {ContentPlatformApplicationValidator.GetAppCustomObjectsBySlugParam} arg
|
|
3765
3737
|
* - Arg object
|
|
3766
3738
|
*
|
|
3767
3739
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3768
3740
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3769
3741
|
* @returns {Promise<ContentPlatformModel.CustomObjectsSchema>} - Success response
|
|
3770
|
-
* @name
|
|
3742
|
+
* @name getAppCustomObjectsBySlug
|
|
3771
3743
|
* @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/
|
|
3744
|
+
* @description: Custom object entries can fetch using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjectsBySlug/).
|
|
3773
3745
|
*/
|
|
3774
|
-
async
|
|
3775
|
-
{ pageNo, pageSize,
|
|
3746
|
+
async getAppCustomObjectsBySlug(
|
|
3747
|
+
{ pageNo, pageSize, definitionSlug, requestHeaders } = {
|
|
3748
|
+
requestHeaders: {},
|
|
3749
|
+
},
|
|
3776
3750
|
{ responseHeaders } = { responseHeaders: false }
|
|
3777
3751
|
) {
|
|
3778
3752
|
const {
|
|
3779
3753
|
error,
|
|
3780
|
-
} = ContentPlatformApplicationValidator.
|
|
3754
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3781
3755
|
{
|
|
3782
3756
|
pageNo,
|
|
3783
3757
|
pageSize,
|
|
3784
|
-
|
|
3758
|
+
definitionSlug,
|
|
3785
3759
|
},
|
|
3786
3760
|
{ abortEarly: false, allowUnknown: true }
|
|
3787
3761
|
);
|
|
@@ -3792,30 +3766,29 @@ class Content {
|
|
|
3792
3766
|
// Showing warrnings if extra unknown parameters are found
|
|
3793
3767
|
const {
|
|
3794
3768
|
error: warrning,
|
|
3795
|
-
} = ContentPlatformApplicationValidator.
|
|
3769
|
+
} = ContentPlatformApplicationValidator.getAppCustomObjectsBySlug().validate(
|
|
3796
3770
|
{
|
|
3797
3771
|
pageNo,
|
|
3798
3772
|
pageSize,
|
|
3799
|
-
|
|
3773
|
+
definitionSlug,
|
|
3800
3774
|
},
|
|
3801
3775
|
{ abortEarly: false, allowUnknown: false }
|
|
3802
3776
|
);
|
|
3803
3777
|
if (warrning) {
|
|
3804
3778
|
Logger({
|
|
3805
3779
|
level: "WARN",
|
|
3806
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
3780
|
+
message: `Parameter Validation warrnings for platform > Content > getAppCustomObjectsBySlug \n ${warrning}`,
|
|
3807
3781
|
});
|
|
3808
3782
|
}
|
|
3809
3783
|
|
|
3810
3784
|
const query_params = {};
|
|
3811
|
-
query_params["definition_id"] = definitionId;
|
|
3812
3785
|
query_params["page_no"] = pageNo;
|
|
3813
3786
|
query_params["page_size"] = pageSize;
|
|
3814
3787
|
|
|
3815
3788
|
const response = await PlatformAPIClient.execute(
|
|
3816
3789
|
this.config,
|
|
3817
3790
|
"get",
|
|
3818
|
-
`/service/platform/content/
|
|
3791
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries`,
|
|
3819
3792
|
query_params,
|
|
3820
3793
|
undefined,
|
|
3821
3794
|
requestHeaders,
|
|
@@ -3840,7 +3813,7 @@ class Content {
|
|
|
3840
3813
|
} else {
|
|
3841
3814
|
Logger({
|
|
3842
3815
|
level: "WARN",
|
|
3843
|
-
message: `Response Validation Warnings for platform > Content >
|
|
3816
|
+
message: `Response Validation Warnings for platform > Content > getAppCustomObjectsBySlug \n ${res_error}`,
|
|
3844
3817
|
});
|
|
3845
3818
|
}
|
|
3846
3819
|
}
|
|
@@ -4090,7 +4063,7 @@ class Content {
|
|
|
4090
4063
|
* @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
|
|
4091
4064
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4092
4065
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4093
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4066
|
+
* @returns {Promise<ContentPlatformModel.BlogGetDetails>} - Success response
|
|
4094
4067
|
* @name getBlogs
|
|
4095
4068
|
* @summary: List blogs
|
|
4096
4069
|
* @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
|
|
@@ -4165,7 +4138,7 @@ class Content {
|
|
|
4165
4138
|
|
|
4166
4139
|
const {
|
|
4167
4140
|
error: res_error,
|
|
4168
|
-
} = ContentPlatformModel.
|
|
4141
|
+
} = ContentPlatformModel.BlogGetDetails().validate(responseData, {
|
|
4169
4142
|
abortEarly: false,
|
|
4170
4143
|
allowUnknown: true,
|
|
4171
4144
|
});
|
|
@@ -4347,7 +4320,7 @@ class Content {
|
|
|
4347
4320
|
*
|
|
4348
4321
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4349
4322
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4350
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4323
|
+
* @returns {Promise<ContentPlatformModel.DefaultNavigationDetails>} -
|
|
4351
4324
|
* Success response
|
|
4352
4325
|
* @name getDefaultNavigations
|
|
4353
4326
|
* @summary: Get default navigations
|
|
@@ -4400,10 +4373,10 @@ class Content {
|
|
|
4400
4373
|
|
|
4401
4374
|
const {
|
|
4402
4375
|
error: res_error,
|
|
4403
|
-
} = ContentPlatformModel.
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
);
|
|
4376
|
+
} = ContentPlatformModel.DefaultNavigationDetails().validate(responseData, {
|
|
4377
|
+
abortEarly: false,
|
|
4378
|
+
allowUnknown: true,
|
|
4379
|
+
});
|
|
4407
4380
|
|
|
4408
4381
|
if (res_error) {
|
|
4409
4382
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4904,7 +4877,7 @@ class Content {
|
|
|
4904
4877
|
* @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
|
|
4905
4878
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4906
4879
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4907
|
-
* @returns {Promise<ContentPlatformModel.
|
|
4880
|
+
* @returns {Promise<ContentPlatformModel.LandingPageGetDetails>} - Success response
|
|
4908
4881
|
* @name getLandingPages
|
|
4909
4882
|
* @summary: Get landing pages
|
|
4910
4883
|
* @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 +4937,7 @@ class Content {
|
|
|
4964
4937
|
|
|
4965
4938
|
const {
|
|
4966
4939
|
error: res_error,
|
|
4967
|
-
} = ContentPlatformModel.
|
|
4940
|
+
} = ContentPlatformModel.LandingPageGetDetails().validate(responseData, {
|
|
4968
4941
|
abortEarly: false,
|
|
4969
4942
|
allowUnknown: true,
|
|
4970
4943
|
});
|
|
@@ -5148,7 +5121,7 @@ class Content {
|
|
|
5148
5121
|
* @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
|
|
5149
5122
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5150
5123
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5151
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5124
|
+
* @returns {Promise<ContentPlatformModel.NavigationGetDetails>} - Success response
|
|
5152
5125
|
* @name getNavigations
|
|
5153
5126
|
* @summary: Get navigation items
|
|
5154
5127
|
* @description: Retrieve a list of navigational elements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
|
|
@@ -5213,7 +5186,7 @@ class Content {
|
|
|
5213
5186
|
|
|
5214
5187
|
const {
|
|
5215
5188
|
error: res_error,
|
|
5216
|
-
} = ContentPlatformModel.
|
|
5189
|
+
} = ContentPlatformModel.NavigationGetDetails().validate(responseData, {
|
|
5217
5190
|
abortEarly: false,
|
|
5218
5191
|
allowUnknown: true,
|
|
5219
5192
|
});
|
|
@@ -5465,7 +5438,7 @@ class Content {
|
|
|
5465
5438
|
* @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
|
|
5466
5439
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5467
5440
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5468
|
-
* @returns {Promise<ContentPlatformModel.
|
|
5441
|
+
* @returns {Promise<ContentPlatformModel.PageGetDetails>} - Success response
|
|
5469
5442
|
* @name getPages
|
|
5470
5443
|
* @summary: Get pages
|
|
5471
5444
|
* @description: Retrieve a list of available pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
|
|
@@ -5523,7 +5496,7 @@ class Content {
|
|
|
5523
5496
|
|
|
5524
5497
|
const {
|
|
5525
5498
|
error: res_error,
|
|
5526
|
-
} = ContentPlatformModel.
|
|
5499
|
+
} = ContentPlatformModel.PageGetDetails().validate(responseData, {
|
|
5527
5500
|
abortEarly: false,
|
|
5528
5501
|
allowUnknown: true,
|
|
5529
5502
|
});
|
|
@@ -6047,7 +6020,7 @@ class Content {
|
|
|
6047
6020
|
* @param {ContentPlatformApplicationValidator.GetSlideshowsParam} arg - Arg object
|
|
6048
6021
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6049
6022
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6050
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6023
|
+
* @returns {Promise<ContentPlatformModel.SlideshowGetDetails>} - Success response
|
|
6051
6024
|
* @name getSlideshows
|
|
6052
6025
|
* @summary: List Slideshows
|
|
6053
6026
|
* @description: Use this API to list all Slideshows - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshows/).
|
|
@@ -6112,7 +6085,7 @@ class Content {
|
|
|
6112
6085
|
|
|
6113
6086
|
const {
|
|
6114
6087
|
error: res_error,
|
|
6115
|
-
} = ContentPlatformModel.
|
|
6088
|
+
} = ContentPlatformModel.SlideshowGetDetails().validate(responseData, {
|
|
6116
6089
|
abortEarly: false,
|
|
6117
6090
|
allowUnknown: true,
|
|
6118
6091
|
});
|
|
@@ -6131,48 +6104,6 @@ class Content {
|
|
|
6131
6104
|
return response;
|
|
6132
6105
|
}
|
|
6133
6106
|
|
|
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
6107
|
/**
|
|
6177
6108
|
* @param {ContentPlatformApplicationValidator.GetSupportInformationParam} arg
|
|
6178
6109
|
* - Arg object
|
|
@@ -6251,27 +6182,27 @@ class Content {
|
|
|
6251
6182
|
}
|
|
6252
6183
|
|
|
6253
6184
|
/**
|
|
6254
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6185
|
+
* @param {ContentPlatformApplicationValidator.ImportAppCustomObjectEntriesBySlugParam} arg
|
|
6255
6186
|
* - Arg object
|
|
6256
6187
|
*
|
|
6257
6188
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6258
6189
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6259
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6190
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectEntryBulkUploadDetails>}
|
|
6260
6191
|
* - Success response
|
|
6261
6192
|
*
|
|
6262
|
-
* @name
|
|
6193
|
+
* @name importAppCustomObjectEntriesBySlug
|
|
6263
6194
|
* @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/
|
|
6195
|
+
* @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
6196
|
*/
|
|
6266
|
-
async
|
|
6267
|
-
{
|
|
6197
|
+
async importAppCustomObjectEntriesBySlug(
|
|
6198
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
6268
6199
|
{ responseHeaders } = { responseHeaders: false }
|
|
6269
6200
|
) {
|
|
6270
6201
|
const {
|
|
6271
6202
|
error,
|
|
6272
|
-
} = ContentPlatformApplicationValidator.
|
|
6203
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6273
6204
|
{
|
|
6274
|
-
|
|
6205
|
+
slug,
|
|
6275
6206
|
body,
|
|
6276
6207
|
},
|
|
6277
6208
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6283,9 +6214,9 @@ class Content {
|
|
|
6283
6214
|
// Showing warrnings if extra unknown parameters are found
|
|
6284
6215
|
const {
|
|
6285
6216
|
error: warrning,
|
|
6286
|
-
} = ContentPlatformApplicationValidator.
|
|
6217
|
+
} = ContentPlatformApplicationValidator.importAppCustomObjectEntriesBySlug().validate(
|
|
6287
6218
|
{
|
|
6288
|
-
|
|
6219
|
+
slug,
|
|
6289
6220
|
body,
|
|
6290
6221
|
},
|
|
6291
6222
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6293,7 +6224,7 @@ class Content {
|
|
|
6293
6224
|
if (warrning) {
|
|
6294
6225
|
Logger({
|
|
6295
6226
|
level: "WARN",
|
|
6296
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6227
|
+
message: `Parameter Validation warrnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${warrning}`,
|
|
6297
6228
|
});
|
|
6298
6229
|
}
|
|
6299
6230
|
|
|
@@ -6302,7 +6233,7 @@ class Content {
|
|
|
6302
6233
|
const response = await PlatformAPIClient.execute(
|
|
6303
6234
|
this.config,
|
|
6304
6235
|
"post",
|
|
6305
|
-
`/service/platform/content/
|
|
6236
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/upload`,
|
|
6306
6237
|
query_params,
|
|
6307
6238
|
body,
|
|
6308
6239
|
requestHeaders,
|
|
@@ -6316,7 +6247,7 @@ class Content {
|
|
|
6316
6247
|
|
|
6317
6248
|
const {
|
|
6318
6249
|
error: res_error,
|
|
6319
|
-
} = ContentPlatformModel.
|
|
6250
|
+
} = ContentPlatformModel.CustomObjectEntryBulkUploadDetails().validate(
|
|
6320
6251
|
responseData,
|
|
6321
6252
|
{ abortEarly: false, allowUnknown: true }
|
|
6322
6253
|
);
|
|
@@ -6327,7 +6258,7 @@ class Content {
|
|
|
6327
6258
|
} else {
|
|
6328
6259
|
Logger({
|
|
6329
6260
|
level: "WARN",
|
|
6330
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6261
|
+
message: `Response Validation Warnings for platform > Content > importAppCustomObjectEntriesBySlug \n ${res_error}`,
|
|
6331
6262
|
});
|
|
6332
6263
|
}
|
|
6333
6264
|
}
|
|
@@ -6341,8 +6272,7 @@ class Content {
|
|
|
6341
6272
|
*
|
|
6342
6273
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6343
6274
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6344
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6345
|
-
* Success response
|
|
6275
|
+
* @returns {Promise<ContentPlatformModel.TagDeleteSuccessDetails>} - Success response
|
|
6346
6276
|
* @name removeInjectableTag
|
|
6347
6277
|
* @summary: Remove HTML tag
|
|
6348
6278
|
* @description: Delete a specific injectable tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
|
|
@@ -6398,7 +6328,7 @@ class Content {
|
|
|
6398
6328
|
|
|
6399
6329
|
const {
|
|
6400
6330
|
error: res_error,
|
|
6401
|
-
} = ContentPlatformModel.
|
|
6331
|
+
} = ContentPlatformModel.TagDeleteSuccessDetails().validate(responseData, {
|
|
6402
6332
|
abortEarly: false,
|
|
6403
6333
|
allowUnknown: true,
|
|
6404
6334
|
});
|
|
@@ -6500,25 +6430,25 @@ class Content {
|
|
|
6500
6430
|
}
|
|
6501
6431
|
|
|
6502
6432
|
/**
|
|
6503
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6433
|
+
* @param {ContentPlatformApplicationValidator.SampleAppCustomObjectBulkEntryBySlugParam} arg
|
|
6504
6434
|
* - Arg object
|
|
6505
6435
|
*
|
|
6506
6436
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6507
6437
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6508
6438
|
* @returns {Promise<string>} - Success response
|
|
6509
|
-
* @name
|
|
6439
|
+
* @name sampleAppCustomObjectBulkEntryBySlug
|
|
6510
6440
|
* @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/
|
|
6441
|
+
* @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
6442
|
*/
|
|
6513
|
-
async
|
|
6514
|
-
{
|
|
6443
|
+
async sampleAppCustomObjectBulkEntryBySlug(
|
|
6444
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
6515
6445
|
{ responseHeaders } = { responseHeaders: false }
|
|
6516
6446
|
) {
|
|
6517
6447
|
const {
|
|
6518
6448
|
error,
|
|
6519
|
-
} = ContentPlatformApplicationValidator.
|
|
6449
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6520
6450
|
{
|
|
6521
|
-
|
|
6451
|
+
slug,
|
|
6522
6452
|
},
|
|
6523
6453
|
{ abortEarly: false, allowUnknown: true }
|
|
6524
6454
|
);
|
|
@@ -6529,16 +6459,16 @@ class Content {
|
|
|
6529
6459
|
// Showing warrnings if extra unknown parameters are found
|
|
6530
6460
|
const {
|
|
6531
6461
|
error: warrning,
|
|
6532
|
-
} = ContentPlatformApplicationValidator.
|
|
6462
|
+
} = ContentPlatformApplicationValidator.sampleAppCustomObjectBulkEntryBySlug().validate(
|
|
6533
6463
|
{
|
|
6534
|
-
|
|
6464
|
+
slug,
|
|
6535
6465
|
},
|
|
6536
6466
|
{ abortEarly: false, allowUnknown: false }
|
|
6537
6467
|
);
|
|
6538
6468
|
if (warrning) {
|
|
6539
6469
|
Logger({
|
|
6540
6470
|
level: "WARN",
|
|
6541
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6471
|
+
message: `Parameter Validation warrnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${warrning}`,
|
|
6542
6472
|
});
|
|
6543
6473
|
}
|
|
6544
6474
|
|
|
@@ -6547,7 +6477,7 @@ class Content {
|
|
|
6547
6477
|
const response = await PlatformAPIClient.execute(
|
|
6548
6478
|
this.config,
|
|
6549
6479
|
"get",
|
|
6550
|
-
`/service/platform/content/
|
|
6480
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}/bulk/sample`,
|
|
6551
6481
|
query_params,
|
|
6552
6482
|
undefined,
|
|
6553
6483
|
requestHeaders,
|
|
@@ -6569,7 +6499,7 @@ class Content {
|
|
|
6569
6499
|
} else {
|
|
6570
6500
|
Logger({
|
|
6571
6501
|
level: "WARN",
|
|
6572
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6502
|
+
message: `Response Validation Warnings for platform > Content > sampleAppCustomObjectBulkEntryBySlug \n ${res_error}`,
|
|
6573
6503
|
});
|
|
6574
6504
|
}
|
|
6575
6505
|
}
|
|
@@ -6826,7 +6756,94 @@ class Content {
|
|
|
6826
6756
|
}
|
|
6827
6757
|
|
|
6828
6758
|
/**
|
|
6829
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6759
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
6760
|
+
* - Arg object
|
|
6761
|
+
*
|
|
6762
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6763
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6764
|
+
* @returns {Promise<ContentPlatformModel.CustomFieldsResponseByResourceIdSchema>}
|
|
6765
|
+
* - Success response
|
|
6766
|
+
*
|
|
6767
|
+
* @name updateAppCustomFieldByResourceSlug
|
|
6768
|
+
* @summary: Create custom field entries for gives resource and resource slug
|
|
6769
|
+
* @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/).
|
|
6770
|
+
*/
|
|
6771
|
+
async updateAppCustomFieldByResourceSlug(
|
|
6772
|
+
{ resource, resourceSlug, body, requestHeaders } = { requestHeaders: {} },
|
|
6773
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
6774
|
+
) {
|
|
6775
|
+
const {
|
|
6776
|
+
error,
|
|
6777
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6778
|
+
{
|
|
6779
|
+
resource,
|
|
6780
|
+
resourceSlug,
|
|
6781
|
+
body,
|
|
6782
|
+
},
|
|
6783
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6784
|
+
);
|
|
6785
|
+
if (error) {
|
|
6786
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
6787
|
+
}
|
|
6788
|
+
|
|
6789
|
+
// Showing warrnings if extra unknown parameters are found
|
|
6790
|
+
const {
|
|
6791
|
+
error: warrning,
|
|
6792
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldByResourceSlug().validate(
|
|
6793
|
+
{
|
|
6794
|
+
resource,
|
|
6795
|
+
resourceSlug,
|
|
6796
|
+
body,
|
|
6797
|
+
},
|
|
6798
|
+
{ abortEarly: false, allowUnknown: false }
|
|
6799
|
+
);
|
|
6800
|
+
if (warrning) {
|
|
6801
|
+
Logger({
|
|
6802
|
+
level: "WARN",
|
|
6803
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${warrning}`,
|
|
6804
|
+
});
|
|
6805
|
+
}
|
|
6806
|
+
|
|
6807
|
+
const query_params = {};
|
|
6808
|
+
|
|
6809
|
+
const response = await PlatformAPIClient.execute(
|
|
6810
|
+
this.config,
|
|
6811
|
+
"put",
|
|
6812
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/${resourceSlug}`,
|
|
6813
|
+
query_params,
|
|
6814
|
+
body,
|
|
6815
|
+
requestHeaders,
|
|
6816
|
+
{ responseHeaders }
|
|
6817
|
+
);
|
|
6818
|
+
|
|
6819
|
+
let responseData = response;
|
|
6820
|
+
if (responseHeaders) {
|
|
6821
|
+
responseData = response[0];
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
const {
|
|
6825
|
+
error: res_error,
|
|
6826
|
+
} = ContentPlatformModel.CustomFieldsResponseByResourceIdSchema().validate(
|
|
6827
|
+
responseData,
|
|
6828
|
+
{ abortEarly: false, allowUnknown: true }
|
|
6829
|
+
);
|
|
6830
|
+
|
|
6831
|
+
if (res_error) {
|
|
6832
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6833
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6834
|
+
} else {
|
|
6835
|
+
Logger({
|
|
6836
|
+
level: "WARN",
|
|
6837
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldByResourceSlug \n ${res_error}`,
|
|
6838
|
+
});
|
|
6839
|
+
}
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6842
|
+
return response;
|
|
6843
|
+
}
|
|
6844
|
+
|
|
6845
|
+
/**
|
|
6846
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldDefinitionBySlugParam} arg
|
|
6830
6847
|
* - Arg object
|
|
6831
6848
|
*
|
|
6832
6849
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -6834,19 +6851,23 @@ class Content {
|
|
|
6834
6851
|
* @returns {Promise<ContentPlatformModel.CustomFieldDefinitionDetailResSchema>}
|
|
6835
6852
|
* - Success response
|
|
6836
6853
|
*
|
|
6837
|
-
* @name
|
|
6854
|
+
* @name updateAppCustomFieldDefinitionBySlug
|
|
6838
6855
|
* @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/
|
|
6856
|
+
* @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
6857
|
*/
|
|
6841
|
-
async
|
|
6842
|
-
{
|
|
6858
|
+
async updateAppCustomFieldDefinitionBySlug(
|
|
6859
|
+
{ slug, resource, namespace, body, requestHeaders } = {
|
|
6860
|
+
requestHeaders: {},
|
|
6861
|
+
},
|
|
6843
6862
|
{ responseHeaders } = { responseHeaders: false }
|
|
6844
6863
|
) {
|
|
6845
6864
|
const {
|
|
6846
6865
|
error,
|
|
6847
|
-
} = ContentPlatformApplicationValidator.
|
|
6866
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6848
6867
|
{
|
|
6849
|
-
|
|
6868
|
+
slug,
|
|
6869
|
+
resource,
|
|
6870
|
+
namespace,
|
|
6850
6871
|
body,
|
|
6851
6872
|
},
|
|
6852
6873
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6858,9 +6879,11 @@ class Content {
|
|
|
6858
6879
|
// Showing warrnings if extra unknown parameters are found
|
|
6859
6880
|
const {
|
|
6860
6881
|
error: warrning,
|
|
6861
|
-
} = ContentPlatformApplicationValidator.
|
|
6882
|
+
} = ContentPlatformApplicationValidator.updateAppCustomFieldDefinitionBySlug().validate(
|
|
6862
6883
|
{
|
|
6863
|
-
|
|
6884
|
+
slug,
|
|
6885
|
+
resource,
|
|
6886
|
+
namespace,
|
|
6864
6887
|
body,
|
|
6865
6888
|
},
|
|
6866
6889
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6868,7 +6891,7 @@ class Content {
|
|
|
6868
6891
|
if (warrning) {
|
|
6869
6892
|
Logger({
|
|
6870
6893
|
level: "WARN",
|
|
6871
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6894
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${warrning}`,
|
|
6872
6895
|
});
|
|
6873
6896
|
}
|
|
6874
6897
|
|
|
@@ -6877,7 +6900,7 @@ class Content {
|
|
|
6877
6900
|
const response = await PlatformAPIClient.execute(
|
|
6878
6901
|
this.config,
|
|
6879
6902
|
"put",
|
|
6880
|
-
`/service/platform/content/
|
|
6903
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customfields/resource/${resource}/namespace/${namespace}/definition/${slug}`,
|
|
6881
6904
|
query_params,
|
|
6882
6905
|
body,
|
|
6883
6906
|
requestHeaders,
|
|
@@ -6902,7 +6925,7 @@ class Content {
|
|
|
6902
6925
|
} else {
|
|
6903
6926
|
Logger({
|
|
6904
6927
|
level: "WARN",
|
|
6905
|
-
message: `Response Validation Warnings for platform > Content >
|
|
6928
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomFieldDefinitionBySlug \n ${res_error}`,
|
|
6906
6929
|
});
|
|
6907
6930
|
}
|
|
6908
6931
|
}
|
|
@@ -6911,25 +6934,27 @@ class Content {
|
|
|
6911
6934
|
}
|
|
6912
6935
|
|
|
6913
6936
|
/**
|
|
6914
|
-
* @param {ContentPlatformApplicationValidator.
|
|
6937
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectBySlugParam} arg
|
|
6915
6938
|
* - Arg object
|
|
6916
6939
|
*
|
|
6917
6940
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6918
6941
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6919
|
-
* @returns {Promise<ContentPlatformModel.
|
|
6920
|
-
*
|
|
6942
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectBySlugSchema>} -
|
|
6943
|
+
* Success response
|
|
6944
|
+
* @name updateAppCustomObjectBySlug
|
|
6921
6945
|
* @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/
|
|
6946
|
+
* @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
6947
|
*/
|
|
6924
|
-
async
|
|
6925
|
-
{
|
|
6948
|
+
async updateAppCustomObjectBySlug(
|
|
6949
|
+
{ definitionSlug, slug, body, requestHeaders } = { requestHeaders: {} },
|
|
6926
6950
|
{ responseHeaders } = { responseHeaders: false }
|
|
6927
6951
|
) {
|
|
6928
6952
|
const {
|
|
6929
6953
|
error,
|
|
6930
|
-
} = ContentPlatformApplicationValidator.
|
|
6954
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
6931
6955
|
{
|
|
6932
|
-
|
|
6956
|
+
definitionSlug,
|
|
6957
|
+
slug,
|
|
6933
6958
|
body,
|
|
6934
6959
|
},
|
|
6935
6960
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -6941,9 +6966,10 @@ class Content {
|
|
|
6941
6966
|
// Showing warrnings if extra unknown parameters are found
|
|
6942
6967
|
const {
|
|
6943
6968
|
error: warrning,
|
|
6944
|
-
} = ContentPlatformApplicationValidator.
|
|
6969
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectBySlug().validate(
|
|
6945
6970
|
{
|
|
6946
|
-
|
|
6971
|
+
definitionSlug,
|
|
6972
|
+
slug,
|
|
6947
6973
|
body,
|
|
6948
6974
|
},
|
|
6949
6975
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -6951,7 +6977,7 @@ class Content {
|
|
|
6951
6977
|
if (warrning) {
|
|
6952
6978
|
Logger({
|
|
6953
6979
|
level: "WARN",
|
|
6954
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
6980
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectBySlug \n ${warrning}`,
|
|
6955
6981
|
});
|
|
6956
6982
|
}
|
|
6957
6983
|
|
|
@@ -6960,7 +6986,7 @@ class Content {
|
|
|
6960
6986
|
const response = await PlatformAPIClient.execute(
|
|
6961
6987
|
this.config,
|
|
6962
6988
|
"put",
|
|
6963
|
-
`/service/platform/content/
|
|
6989
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${definitionSlug}/entries/${slug}`,
|
|
6964
6990
|
query_params,
|
|
6965
6991
|
body,
|
|
6966
6992
|
requestHeaders,
|
|
@@ -6974,7 +7000,7 @@ class Content {
|
|
|
6974
7000
|
|
|
6975
7001
|
const {
|
|
6976
7002
|
error: res_error,
|
|
6977
|
-
} = ContentPlatformModel.
|
|
7003
|
+
} = ContentPlatformModel.CustomObjectBySlugSchema().validate(responseData, {
|
|
6978
7004
|
abortEarly: false,
|
|
6979
7005
|
allowUnknown: true,
|
|
6980
7006
|
});
|
|
@@ -6985,7 +7011,7 @@ class Content {
|
|
|
6985
7011
|
} else {
|
|
6986
7012
|
Logger({
|
|
6987
7013
|
level: "WARN",
|
|
6988
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7014
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectBySlug \n ${res_error}`,
|
|
6989
7015
|
});
|
|
6990
7016
|
}
|
|
6991
7017
|
}
|
|
@@ -6994,26 +7020,27 @@ class Content {
|
|
|
6994
7020
|
}
|
|
6995
7021
|
|
|
6996
7022
|
/**
|
|
6997
|
-
* @param {ContentPlatformApplicationValidator.
|
|
7023
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppCustomObjectDefinitionBySlugParam} arg
|
|
6998
7024
|
* - Arg object
|
|
6999
7025
|
*
|
|
7000
7026
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7001
7027
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7002
|
-
* @returns {Promise<ContentPlatformModel.
|
|
7003
|
-
* Success response
|
|
7004
|
-
*
|
|
7028
|
+
* @returns {Promise<ContentPlatformModel.CustomObjectDefinitionSlugSchema>}
|
|
7029
|
+
* - Success response
|
|
7030
|
+
*
|
|
7031
|
+
* @name updateAppCustomObjectDefinitionBySlug
|
|
7005
7032
|
* @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/
|
|
7033
|
+
* @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
7034
|
*/
|
|
7008
|
-
async
|
|
7009
|
-
{
|
|
7035
|
+
async updateAppCustomObjectDefinitionBySlug(
|
|
7036
|
+
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
7010
7037
|
{ responseHeaders } = { responseHeaders: false }
|
|
7011
7038
|
) {
|
|
7012
7039
|
const {
|
|
7013
7040
|
error,
|
|
7014
|
-
} = ContentPlatformApplicationValidator.
|
|
7041
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7015
7042
|
{
|
|
7016
|
-
|
|
7043
|
+
slug,
|
|
7017
7044
|
body,
|
|
7018
7045
|
},
|
|
7019
7046
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -7025,9 +7052,9 @@ class Content {
|
|
|
7025
7052
|
// Showing warrnings if extra unknown parameters are found
|
|
7026
7053
|
const {
|
|
7027
7054
|
error: warrning,
|
|
7028
|
-
} = ContentPlatformApplicationValidator.
|
|
7055
|
+
} = ContentPlatformApplicationValidator.updateAppCustomObjectDefinitionBySlug().validate(
|
|
7029
7056
|
{
|
|
7030
|
-
|
|
7057
|
+
slug,
|
|
7031
7058
|
body,
|
|
7032
7059
|
},
|
|
7033
7060
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -7035,7 +7062,7 @@ class Content {
|
|
|
7035
7062
|
if (warrning) {
|
|
7036
7063
|
Logger({
|
|
7037
7064
|
level: "WARN",
|
|
7038
|
-
message: `Parameter Validation warrnings for platform > Content >
|
|
7065
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${warrning}`,
|
|
7039
7066
|
});
|
|
7040
7067
|
}
|
|
7041
7068
|
|
|
@@ -7044,7 +7071,7 @@ class Content {
|
|
|
7044
7071
|
const response = await PlatformAPIClient.execute(
|
|
7045
7072
|
this.config,
|
|
7046
7073
|
"put",
|
|
7047
|
-
`/service/platform/content/
|
|
7074
|
+
`/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/customobjects/definition/${slug}`,
|
|
7048
7075
|
query_params,
|
|
7049
7076
|
body,
|
|
7050
7077
|
requestHeaders,
|
|
@@ -7058,7 +7085,7 @@ class Content {
|
|
|
7058
7085
|
|
|
7059
7086
|
const {
|
|
7060
7087
|
error: res_error,
|
|
7061
|
-
} = ContentPlatformModel.
|
|
7088
|
+
} = ContentPlatformModel.CustomObjectDefinitionSlugSchema().validate(
|
|
7062
7089
|
responseData,
|
|
7063
7090
|
{ abortEarly: false, allowUnknown: true }
|
|
7064
7091
|
);
|
|
@@ -7069,7 +7096,7 @@ class Content {
|
|
|
7069
7096
|
} else {
|
|
7070
7097
|
Logger({
|
|
7071
7098
|
level: "WARN",
|
|
7072
|
-
message: `Response Validation Warnings for platform > Content >
|
|
7099
|
+
message: `Response Validation Warnings for platform > Content > updateAppCustomObjectDefinitionBySlug \n ${res_error}`,
|
|
7073
7100
|
});
|
|
7074
7101
|
}
|
|
7075
7102
|
}
|