@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- 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 +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- 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
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -12,13 +12,19 @@ class Content {
|
|
|
12
12
|
constructor(_conf) {
|
|
13
13
|
this._conf = _conf;
|
|
14
14
|
this._relativeUrls = {
|
|
15
|
+
fetchResourceTranslations:
|
|
16
|
+
"/service/application/content/v1.0/resource/translations/{type}/{locale}",
|
|
17
|
+
fetchResourceTranslationsWithPayload:
|
|
18
|
+
"/service/application/content/v1.0/resource/translations/{type}/{locale}",
|
|
15
19
|
getAnnouncements: "/service/application/content/v1.0/announcements",
|
|
16
20
|
getBlog: "/service/application/content/v1.0/blogs/{slug}",
|
|
17
|
-
getBlogs: "/service/application/content/v1.0/blogs
|
|
18
|
-
|
|
19
|
-
"/service/application/content/
|
|
20
|
-
|
|
21
|
-
"/service/application/content/
|
|
21
|
+
getBlogs: "/service/application/content/v1.0/blogs",
|
|
22
|
+
getBulkCustomFieldsByResource:
|
|
23
|
+
"/service/application/content/v2.0/customfields/resource/{resource}",
|
|
24
|
+
getCustomFieldsByResourceId:
|
|
25
|
+
"/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",
|
|
26
|
+
getCustomObjectBySlug:
|
|
27
|
+
"/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",
|
|
22
28
|
getDataLoaders: "/service/application/content/v1.0/data-loader",
|
|
23
29
|
getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
|
|
24
30
|
getFaqCategories: "/service/application/content/v1.0/faq/categories",
|
|
@@ -29,15 +35,18 @@ class Content {
|
|
|
29
35
|
"/service/application/content/v1.0/faq/category/{slug}/faqs",
|
|
30
36
|
getLandingPage: "/service/application/content/v1.0/landing-page",
|
|
31
37
|
getLegalInformation: "/service/application/content/v1.0/legal",
|
|
32
|
-
getNavigations: "/service/application/content/v1.0/navigations
|
|
38
|
+
getNavigations: "/service/application/content/v1.0/navigations",
|
|
39
|
+
getOrderTranslation:
|
|
40
|
+
"/service/application/content/v1.0/resource/translations/orders",
|
|
33
41
|
getPage: "/service/application/content/v2.0/pages/{slug}",
|
|
34
|
-
getPages: "/service/application/content/v2.0/pages
|
|
42
|
+
getPages: "/service/application/content/v2.0/pages",
|
|
35
43
|
getSEOConfiguration: "/service/application/content/v1.0/seo",
|
|
36
44
|
getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
|
|
37
|
-
getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
|
|
38
|
-
getSlideshows: "/service/application/content/v1.0/slideshow/",
|
|
39
45
|
getSupportInformation: "/service/application/content/v1.0/support",
|
|
46
|
+
getSupportedLanguages: "/service/application/content/v1.0/languages",
|
|
40
47
|
getTags: "/service/application/content/v1.0/tags",
|
|
48
|
+
getTranslateUILabels:
|
|
49
|
+
"/service/application/content/v1.0/translate-ui-labels",
|
|
41
50
|
};
|
|
42
51
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
43
52
|
(urls, [method, relativeUrl]) => {
|
|
@@ -55,13 +64,106 @@ class Content {
|
|
|
55
64
|
};
|
|
56
65
|
}
|
|
57
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
70
|
+
* @returns {Promise<ResourceTranslations>} - Success response
|
|
71
|
+
* @name fetchResourceTranslations
|
|
72
|
+
* @summary: Get Resource Translations
|
|
73
|
+
* @description: Fetch translations for specific resource IDs based on type and locale settings. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/fetchResourceTranslations/).
|
|
74
|
+
*/
|
|
75
|
+
async fetchResourceTranslations(
|
|
76
|
+
{ type, locale, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
77
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
78
|
+
) {
|
|
79
|
+
const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
|
|
80
|
+
if (errors.length > 0) {
|
|
81
|
+
const error = new FDKClientValidationError({
|
|
82
|
+
message: "Missing required field",
|
|
83
|
+
details: errors,
|
|
84
|
+
});
|
|
85
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const query_params = {};
|
|
89
|
+
query_params["resource_id"] = resourceId;
|
|
90
|
+
|
|
91
|
+
const xHeaders = {};
|
|
92
|
+
|
|
93
|
+
const response = await ApplicationAPIClient.execute(
|
|
94
|
+
this._conf,
|
|
95
|
+
"get",
|
|
96
|
+
constructUrl({
|
|
97
|
+
url: this._urls["fetchResourceTranslations"],
|
|
98
|
+
params: { type, locale },
|
|
99
|
+
}),
|
|
100
|
+
query_params,
|
|
101
|
+
undefined,
|
|
102
|
+
{ ...xHeaders, ...requestHeaders },
|
|
103
|
+
{ responseHeaders }
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
let responseData = response;
|
|
107
|
+
if (responseHeaders) {
|
|
108
|
+
responseData = response[0];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return response;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
116
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
117
|
+
* @returns {Promise<ResourceTranslations>} - Success response
|
|
118
|
+
* @name fetchResourceTranslationsWithPayload
|
|
119
|
+
* @summary: Post Resource Translations
|
|
120
|
+
* @description: Submit and retrieve translations for resources using payload data and locale settings. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/fetchResourceTranslationsWithPayload/).
|
|
121
|
+
*/
|
|
122
|
+
async fetchResourceTranslationsWithPayload(
|
|
123
|
+
{ type, locale, body, requestHeaders } = { requestHeaders: {} },
|
|
124
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
125
|
+
) {
|
|
126
|
+
const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
|
|
127
|
+
if (errors.length > 0) {
|
|
128
|
+
const error = new FDKClientValidationError({
|
|
129
|
+
message: "Missing required field",
|
|
130
|
+
details: errors,
|
|
131
|
+
});
|
|
132
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const query_params = {};
|
|
136
|
+
|
|
137
|
+
const xHeaders = {};
|
|
138
|
+
|
|
139
|
+
const response = await ApplicationAPIClient.execute(
|
|
140
|
+
this._conf,
|
|
141
|
+
"post",
|
|
142
|
+
constructUrl({
|
|
143
|
+
url: this._urls["fetchResourceTranslationsWithPayload"],
|
|
144
|
+
params: { type, locale },
|
|
145
|
+
}),
|
|
146
|
+
query_params,
|
|
147
|
+
body,
|
|
148
|
+
{ ...xHeaders, ...requestHeaders },
|
|
149
|
+
{ responseHeaders }
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
let responseData = response;
|
|
153
|
+
if (responseHeaders) {
|
|
154
|
+
responseData = response[0];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return response;
|
|
158
|
+
}
|
|
159
|
+
|
|
58
160
|
/**
|
|
59
161
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
162
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
163
|
* @returns {Promise<AnnouncementsResponseSchema>} - Success response
|
|
62
164
|
* @name getAnnouncements
|
|
63
165
|
* @summary: List announcements
|
|
64
|
-
* @description: List all current announcements in the application. - Check out [method documentation](https://
|
|
166
|
+
* @description: List all current announcements in the application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getAnnouncements/).
|
|
65
167
|
*/
|
|
66
168
|
async getAnnouncements(
|
|
67
169
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -98,10 +200,10 @@ class Content {
|
|
|
98
200
|
* @returns {Promise<BlogSchema>} - Success response
|
|
99
201
|
* @name getBlog
|
|
100
202
|
* @summary: Get a blog
|
|
101
|
-
* @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://
|
|
203
|
+
* @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getBlog/).
|
|
102
204
|
*/
|
|
103
205
|
async getBlog(
|
|
104
|
-
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
206
|
+
{ slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
|
|
105
207
|
{ responseHeaders } = { responseHeaders: false }
|
|
106
208
|
) {
|
|
107
209
|
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
@@ -115,6 +217,7 @@ class Content {
|
|
|
115
217
|
|
|
116
218
|
const query_params = {};
|
|
117
219
|
query_params["root_id"] = rootId;
|
|
220
|
+
query_params["preview"] = preview;
|
|
118
221
|
|
|
119
222
|
const xHeaders = {};
|
|
120
223
|
|
|
@@ -142,10 +245,10 @@ class Content {
|
|
|
142
245
|
/**
|
|
143
246
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
144
247
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
145
|
-
* @returns {Promise<
|
|
248
|
+
* @returns {Promise<BlogGetDetails>} - Success response
|
|
146
249
|
* @name getBlogs
|
|
147
250
|
* @summary: List blogs
|
|
148
|
-
* @description: List all the blogs against an application. - Check out [method documentation](https://
|
|
251
|
+
* @description: List all the blogs against an application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getBlogs/).
|
|
149
252
|
*/
|
|
150
253
|
async getBlogs(
|
|
151
254
|
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
|
|
@@ -180,21 +283,72 @@ class Content {
|
|
|
180
283
|
return response;
|
|
181
284
|
}
|
|
182
285
|
|
|
286
|
+
/**
|
|
287
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
288
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
289
|
+
* @returns {Promise<BulkCustomFieldsResponseByResourceSchema>} - Success response
|
|
290
|
+
* @name getBulkCustomFieldsByResource
|
|
291
|
+
* @summary: Get bulk list of custom fields of given resource
|
|
292
|
+
* @description: Retrieves a bulk list of custom fields attached to a particular resource by using the resource and resource IDs. The resource_ids query parameter is required and can accept multiple comma-separated values. Optional filters for keys and namespaces can also be applied. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getBulkCustomFieldsByResource/).
|
|
293
|
+
*/
|
|
294
|
+
async getBulkCustomFieldsByResource(
|
|
295
|
+
{ resource, resourceIds, keys, namespaces, requestHeaders } = {
|
|
296
|
+
requestHeaders: {},
|
|
297
|
+
},
|
|
298
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
299
|
+
) {
|
|
300
|
+
const errors = validateRequiredParams(arguments[0], ["resource"]);
|
|
301
|
+
if (errors.length > 0) {
|
|
302
|
+
const error = new FDKClientValidationError({
|
|
303
|
+
message: "Missing required field",
|
|
304
|
+
details: errors,
|
|
305
|
+
});
|
|
306
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const query_params = {};
|
|
310
|
+
query_params["resource_ids"] = resourceIds;
|
|
311
|
+
query_params["keys"] = keys;
|
|
312
|
+
query_params["namespaces"] = namespaces;
|
|
313
|
+
|
|
314
|
+
const xHeaders = {};
|
|
315
|
+
|
|
316
|
+
const response = await ApplicationAPIClient.execute(
|
|
317
|
+
this._conf,
|
|
318
|
+
"get",
|
|
319
|
+
constructUrl({
|
|
320
|
+
url: this._urls["getBulkCustomFieldsByResource"],
|
|
321
|
+
params: { resource },
|
|
322
|
+
}),
|
|
323
|
+
query_params,
|
|
324
|
+
undefined,
|
|
325
|
+
{ ...xHeaders, ...requestHeaders },
|
|
326
|
+
{ responseHeaders }
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
let responseData = response;
|
|
330
|
+
if (responseHeaders) {
|
|
331
|
+
responseData = response[0];
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return response;
|
|
335
|
+
}
|
|
336
|
+
|
|
183
337
|
/**
|
|
184
338
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
185
339
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
186
340
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
187
|
-
* @name
|
|
188
|
-
* @summary: Get list of custom fields
|
|
189
|
-
* @description:
|
|
341
|
+
* @name getCustomFieldsByResourceId
|
|
342
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
343
|
+
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getCustomFieldsByResourceId/).
|
|
190
344
|
*/
|
|
191
|
-
async
|
|
192
|
-
{ resource,
|
|
345
|
+
async getCustomFieldsByResourceId(
|
|
346
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
193
347
|
{ responseHeaders } = { responseHeaders: false }
|
|
194
348
|
) {
|
|
195
349
|
const errors = validateRequiredParams(arguments[0], [
|
|
196
350
|
"resource",
|
|
197
|
-
"
|
|
351
|
+
"resourceSlug",
|
|
198
352
|
]);
|
|
199
353
|
if (errors.length > 0) {
|
|
200
354
|
const error = new FDKClientValidationError({
|
|
@@ -212,8 +366,8 @@ class Content {
|
|
|
212
366
|
this._conf,
|
|
213
367
|
"get",
|
|
214
368
|
constructUrl({
|
|
215
|
-
url: this._urls["
|
|
216
|
-
params: { resource,
|
|
369
|
+
url: this._urls["getCustomFieldsByResourceId"],
|
|
370
|
+
params: { resource, resourceSlug },
|
|
217
371
|
}),
|
|
218
372
|
query_params,
|
|
219
373
|
undefined,
|
|
@@ -233,15 +387,18 @@ class Content {
|
|
|
233
387
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
234
388
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
235
389
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
236
|
-
* @name
|
|
237
|
-
* @summary: Get custom object
|
|
238
|
-
* @description:
|
|
390
|
+
* @name getCustomObjectBySlug
|
|
391
|
+
* @summary: Get custom object details
|
|
392
|
+
* @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getCustomObjectBySlug/).
|
|
239
393
|
*/
|
|
240
|
-
async
|
|
241
|
-
{
|
|
394
|
+
async getCustomObjectBySlug(
|
|
395
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
242
396
|
{ responseHeaders } = { responseHeaders: false }
|
|
243
397
|
) {
|
|
244
|
-
const errors = validateRequiredParams(arguments[0], [
|
|
398
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
399
|
+
"definitionSlug",
|
|
400
|
+
"slug",
|
|
401
|
+
]);
|
|
245
402
|
if (errors.length > 0) {
|
|
246
403
|
const error = new FDKClientValidationError({
|
|
247
404
|
message: "Missing required field",
|
|
@@ -258,8 +415,8 @@ class Content {
|
|
|
258
415
|
this._conf,
|
|
259
416
|
"get",
|
|
260
417
|
constructUrl({
|
|
261
|
-
url: this._urls["
|
|
262
|
-
params: {
|
|
418
|
+
url: this._urls["getCustomObjectBySlug"],
|
|
419
|
+
params: { definitionSlug, slug },
|
|
263
420
|
}),
|
|
264
421
|
query_params,
|
|
265
422
|
undefined,
|
|
@@ -281,7 +438,7 @@ class Content {
|
|
|
281
438
|
* @returns {Promise<DataLoadersSchema>} - Success response
|
|
282
439
|
* @name getDataLoaders
|
|
283
440
|
* @summary: List Dataloaders
|
|
284
|
-
* @description: List all the data loaders that are enabled for an application. - Check out [method documentation](https://
|
|
441
|
+
* @description: List all the data loaders that are enabled for an application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getDataLoaders/).
|
|
285
442
|
*/
|
|
286
443
|
async getDataLoaders(
|
|
287
444
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -318,7 +475,7 @@ class Content {
|
|
|
318
475
|
* @returns {Promise<FaqSchema>} - Success response
|
|
319
476
|
* @name getFaqBySlug
|
|
320
477
|
* @summary: Get FAQ
|
|
321
|
-
* @description: Get a specific FAQ using its slug identifier. - Check out [method documentation](https://
|
|
478
|
+
* @description: Get a specific FAQ using its slug identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getFaqBySlug/).
|
|
322
479
|
*/
|
|
323
480
|
async getFaqBySlug(
|
|
324
481
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -364,7 +521,7 @@ class Content {
|
|
|
364
521
|
* @returns {Promise<GetFaqCategoriesSchema>} - Success response
|
|
365
522
|
* @name getFaqCategories
|
|
366
523
|
* @summary: List FAQ Categories
|
|
367
|
-
* @description: List categories for organizing FAQs. - Check out [method documentation](https://
|
|
524
|
+
* @description: List categories for organizing FAQs. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getFaqCategories/).
|
|
368
525
|
*/
|
|
369
526
|
async getFaqCategories(
|
|
370
527
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -401,7 +558,7 @@ class Content {
|
|
|
401
558
|
* @returns {Promise<GetFaqCategoryBySlugSchema>} - Success response
|
|
402
559
|
* @name getFaqCategoryBySlug
|
|
403
560
|
* @summary: Get a FAQ category
|
|
404
|
-
* @description: Get a specific FAQ category using its slug. - Check out [method documentation](https://
|
|
561
|
+
* @description: Get a specific FAQ category using its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getFaqCategoryBySlug/).
|
|
405
562
|
*/
|
|
406
563
|
async getFaqCategoryBySlug(
|
|
407
564
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -447,7 +604,7 @@ class Content {
|
|
|
447
604
|
* @returns {Promise<FaqResponseSchema>} - Success response
|
|
448
605
|
* @name getFaqs
|
|
449
606
|
* @summary: List FAQs
|
|
450
|
-
* @description: List frequently asked questions and answers. - Check out [method documentation](https://
|
|
607
|
+
* @description: List frequently asked questions and answers. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getFaqs/).
|
|
451
608
|
*/
|
|
452
609
|
async getFaqs(
|
|
453
610
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -484,7 +641,7 @@ class Content {
|
|
|
484
641
|
* @returns {Promise<GetFaqSchema>} - Success response
|
|
485
642
|
* @name getFaqsByCategorySlug
|
|
486
643
|
* @summary: List FAQs by category
|
|
487
|
-
* @description: Get FAQs belonging to a specific category slug. - Check out [method documentation](https://
|
|
644
|
+
* @description: Get FAQs belonging to a specific category slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getFaqsByCategorySlug/).
|
|
488
645
|
*/
|
|
489
646
|
async getFaqsByCategorySlug(
|
|
490
647
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -530,7 +687,7 @@ class Content {
|
|
|
530
687
|
* @returns {Promise<LandingPageSchema>} - Success response
|
|
531
688
|
* @name getLandingPage
|
|
532
689
|
* @summary: Get a landing page
|
|
533
|
-
* @description: Get content of the application's landing page. - Check out [method documentation](https://
|
|
690
|
+
* @description: Get content of the application's landing page. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getLandingPage/).
|
|
534
691
|
*/
|
|
535
692
|
async getLandingPage(
|
|
536
693
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -567,7 +724,7 @@ class Content {
|
|
|
567
724
|
* @returns {Promise<ApplicationLegal>} - Success response
|
|
568
725
|
* @name getLegalInformation
|
|
569
726
|
* @summary: Get legal information
|
|
570
|
-
* @description: Get legal policies for an application which includes Terms and conditions, return policy, shipping policy and privacy policy. - Check out [method documentation](https://
|
|
727
|
+
* @description: Get legal policies for an application which includes Terms and conditions, return policy, shipping policy and privacy policy. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getLegalInformation/).
|
|
571
728
|
*/
|
|
572
729
|
async getLegalInformation(
|
|
573
730
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -601,10 +758,10 @@ class Content {
|
|
|
601
758
|
/**
|
|
602
759
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
603
760
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
604
|
-
* @returns {Promise<
|
|
761
|
+
* @returns {Promise<NavigationGetDetails>} - Success response
|
|
605
762
|
* @name getNavigations
|
|
606
763
|
* @summary: List navigation items
|
|
607
|
-
* @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://
|
|
764
|
+
* @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getNavigations/).
|
|
608
765
|
*/
|
|
609
766
|
async getNavigations(
|
|
610
767
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -637,13 +794,50 @@ class Content {
|
|
|
637
794
|
return response;
|
|
638
795
|
}
|
|
639
796
|
|
|
797
|
+
/**
|
|
798
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
799
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
800
|
+
* @returns {Promise<TranslationResult>} - Success response
|
|
801
|
+
* @name getOrderTranslation
|
|
802
|
+
* @summary: Get Order Translations
|
|
803
|
+
* @description: Retrieves translated information for orders or shipments. This endpoint processes the order/shipment payload and returns the same structure with translated details including names, brands, categories, and other localized content. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getOrderTranslation/).
|
|
804
|
+
*/
|
|
805
|
+
async getOrderTranslation(
|
|
806
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
807
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
808
|
+
) {
|
|
809
|
+
const query_params = {};
|
|
810
|
+
|
|
811
|
+
const xHeaders = {};
|
|
812
|
+
|
|
813
|
+
const response = await ApplicationAPIClient.execute(
|
|
814
|
+
this._conf,
|
|
815
|
+
"post",
|
|
816
|
+
constructUrl({
|
|
817
|
+
url: this._urls["getOrderTranslation"],
|
|
818
|
+
params: {},
|
|
819
|
+
}),
|
|
820
|
+
query_params,
|
|
821
|
+
body,
|
|
822
|
+
{ ...xHeaders, ...requestHeaders },
|
|
823
|
+
{ responseHeaders }
|
|
824
|
+
);
|
|
825
|
+
|
|
826
|
+
let responseData = response;
|
|
827
|
+
if (responseHeaders) {
|
|
828
|
+
responseData = response[0];
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
return response;
|
|
832
|
+
}
|
|
833
|
+
|
|
640
834
|
/**
|
|
641
835
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
642
836
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
643
837
|
* @returns {Promise<PageSchema>} - Success response
|
|
644
838
|
* @name getPage
|
|
645
839
|
* @summary: Get a page
|
|
646
|
-
* @description: Get detailed information for a specific page within the theme. - Check out [method documentation](https://
|
|
840
|
+
* @description: Get detailed information for a specific page within the theme. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getPage/).
|
|
647
841
|
*/
|
|
648
842
|
async getPage(
|
|
649
843
|
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -687,10 +881,10 @@ class Content {
|
|
|
687
881
|
/**
|
|
688
882
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
689
883
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
690
|
-
* @returns {Promise<
|
|
884
|
+
* @returns {Promise<PageGetDetails>} - Success response
|
|
691
885
|
* @name getPages
|
|
692
886
|
* @summary: Lists pages
|
|
693
|
-
* @description: Lists all Custom Pages. - Check out [method documentation](https://
|
|
887
|
+
* @description: Lists all Custom Pages. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getPages/).
|
|
694
888
|
*/
|
|
695
889
|
async getPages(
|
|
696
890
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -729,7 +923,7 @@ class Content {
|
|
|
729
923
|
* @returns {Promise<SeoComponent>} - Success response
|
|
730
924
|
* @name getSEOConfiguration
|
|
731
925
|
* @summary: Get SEO settings
|
|
732
|
-
* @description: Get search engine optimization configurations of an application. Details include the title, description and an image. - Check out [method documentation](https://
|
|
926
|
+
* @description: Get search engine optimization configurations of an application. Details include the title, description and an image. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getSEOConfiguration/).
|
|
733
927
|
*/
|
|
734
928
|
async getSEOConfiguration(
|
|
735
929
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -766,7 +960,7 @@ class Content {
|
|
|
766
960
|
* @returns {Promise<SeoSchemaComponent>} - Success response
|
|
767
961
|
* @name getSEOMarkupSchemas
|
|
768
962
|
* @summary: List SEO Markup schemas
|
|
769
|
-
* @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://
|
|
963
|
+
* @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getSEOMarkupSchemas/).
|
|
770
964
|
*/
|
|
771
965
|
async getSEOMarkupSchemas(
|
|
772
966
|
{ pageType, active, requestHeaders } = { requestHeaders: {} },
|
|
@@ -802,24 +996,15 @@ class Content {
|
|
|
802
996
|
/**
|
|
803
997
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
804
998
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
805
|
-
* @returns {Promise<
|
|
806
|
-
* @name
|
|
807
|
-
* @summary: Get
|
|
808
|
-
* @description: Get a
|
|
999
|
+
* @returns {Promise<Support>} - Success response
|
|
1000
|
+
* @name getSupportInformation
|
|
1001
|
+
* @summary: Get customer support information
|
|
1002
|
+
* @description: Get customer support contact details. Contact Details can be either a phone number or an email-id or both. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getSupportInformation/).
|
|
809
1003
|
*/
|
|
810
|
-
async
|
|
811
|
-
{
|
|
1004
|
+
async getSupportInformation(
|
|
1005
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
812
1006
|
{ responseHeaders } = { responseHeaders: false }
|
|
813
1007
|
) {
|
|
814
|
-
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
815
|
-
if (errors.length > 0) {
|
|
816
|
-
const error = new FDKClientValidationError({
|
|
817
|
-
message: "Missing required field",
|
|
818
|
-
details: errors,
|
|
819
|
-
});
|
|
820
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
821
|
-
}
|
|
822
|
-
|
|
823
1008
|
const query_params = {};
|
|
824
1009
|
|
|
825
1010
|
const xHeaders = {};
|
|
@@ -828,8 +1013,8 @@ class Content {
|
|
|
828
1013
|
this._conf,
|
|
829
1014
|
"get",
|
|
830
1015
|
constructUrl({
|
|
831
|
-
url: this._urls["
|
|
832
|
-
params: {
|
|
1016
|
+
url: this._urls["getSupportInformation"],
|
|
1017
|
+
params: {},
|
|
833
1018
|
}),
|
|
834
1019
|
query_params,
|
|
835
1020
|
undefined,
|
|
@@ -848,18 +1033,16 @@ class Content {
|
|
|
848
1033
|
/**
|
|
849
1034
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
850
1035
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
851
|
-
* @returns {Promise<
|
|
852
|
-
* @name
|
|
853
|
-
* @summary: List
|
|
854
|
-
* @description:
|
|
1036
|
+
* @returns {Promise<Object>} - Success response
|
|
1037
|
+
* @name getSupportedLanguages
|
|
1038
|
+
* @summary: List App Languages
|
|
1039
|
+
* @description: Retrieve available languages and their configurations for the specified application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getSupportedLanguages/).
|
|
855
1040
|
*/
|
|
856
|
-
async
|
|
857
|
-
{
|
|
1041
|
+
async getSupportedLanguages(
|
|
1042
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
858
1043
|
{ responseHeaders } = { responseHeaders: false }
|
|
859
1044
|
) {
|
|
860
1045
|
const query_params = {};
|
|
861
|
-
query_params["page_no"] = pageNo;
|
|
862
|
-
query_params["page_size"] = pageSize;
|
|
863
1046
|
|
|
864
1047
|
const xHeaders = {};
|
|
865
1048
|
|
|
@@ -867,7 +1050,7 @@ class Content {
|
|
|
867
1050
|
this._conf,
|
|
868
1051
|
"get",
|
|
869
1052
|
constructUrl({
|
|
870
|
-
url: this._urls["
|
|
1053
|
+
url: this._urls["getSupportedLanguages"],
|
|
871
1054
|
params: {},
|
|
872
1055
|
}),
|
|
873
1056
|
query_params,
|
|
@@ -884,42 +1067,15 @@ class Content {
|
|
|
884
1067
|
return response;
|
|
885
1068
|
}
|
|
886
1069
|
|
|
887
|
-
/**
|
|
888
|
-
* @param {Object} arg - Arg object.
|
|
889
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
890
|
-
* @returns {Paginator<SlideshowGetResponse>}
|
|
891
|
-
* @summary: List Slideshows
|
|
892
|
-
* @description: List slideshows along with their details.
|
|
893
|
-
*/
|
|
894
|
-
getSlideshowsPaginator({ pageSize } = {}) {
|
|
895
|
-
const paginator = new Paginator();
|
|
896
|
-
const callback = async () => {
|
|
897
|
-
const pageId = paginator.nextId;
|
|
898
|
-
const pageNo = paginator.pageNo;
|
|
899
|
-
const pageType = "number";
|
|
900
|
-
const data = await this.getSlideshows({
|
|
901
|
-
pageNo: pageNo,
|
|
902
|
-
pageSize: pageSize,
|
|
903
|
-
});
|
|
904
|
-
paginator.setPaginator({
|
|
905
|
-
hasNext: data.page.has_next ? true : false,
|
|
906
|
-
nextId: data.page.next_id,
|
|
907
|
-
});
|
|
908
|
-
return data;
|
|
909
|
-
};
|
|
910
|
-
paginator.setCallback(callback.bind(this));
|
|
911
|
-
return paginator;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
1070
|
/**
|
|
915
1071
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
916
1072
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
917
|
-
* @returns {Promise<
|
|
918
|
-
* @name
|
|
919
|
-
* @summary: Get
|
|
920
|
-
* @description:
|
|
1073
|
+
* @returns {Promise<TagsSchema>} - Success response
|
|
1074
|
+
* @name getTags
|
|
1075
|
+
* @summary: Get HTML tags
|
|
1076
|
+
* @description: Lists HTML tags to power additional functionalities within an application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getTags/).
|
|
921
1077
|
*/
|
|
922
|
-
async
|
|
1078
|
+
async getTags(
|
|
923
1079
|
{ requestHeaders } = { requestHeaders: {} },
|
|
924
1080
|
{ responseHeaders } = { responseHeaders: false }
|
|
925
1081
|
) {
|
|
@@ -931,7 +1087,7 @@ class Content {
|
|
|
931
1087
|
this._conf,
|
|
932
1088
|
"get",
|
|
933
1089
|
constructUrl({
|
|
934
|
-
url: this._urls["
|
|
1090
|
+
url: this._urls["getTags"],
|
|
935
1091
|
params: {},
|
|
936
1092
|
}),
|
|
937
1093
|
query_params,
|
|
@@ -951,16 +1107,23 @@ class Content {
|
|
|
951
1107
|
/**
|
|
952
1108
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
953
1109
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
954
|
-
* @returns {Promise<
|
|
955
|
-
* @name
|
|
956
|
-
* @summary: Get
|
|
957
|
-
* @description:
|
|
1110
|
+
* @returns {Promise<TranslateUiLabelsPage>} - Success response
|
|
1111
|
+
* @name getTranslateUILabels
|
|
1112
|
+
* @summary: Get Translate Ui Labels
|
|
1113
|
+
* @description: Retrieve Translate Ui Labels with filtering options for type, template, and locale settings. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/content/getTranslateUILabels/).
|
|
958
1114
|
*/
|
|
959
|
-
async
|
|
960
|
-
{
|
|
1115
|
+
async getTranslateUILabels(
|
|
1116
|
+
{ template, templateThemeId, themeId, locale, type, requestHeaders } = {
|
|
1117
|
+
requestHeaders: {},
|
|
1118
|
+
},
|
|
961
1119
|
{ responseHeaders } = { responseHeaders: false }
|
|
962
1120
|
) {
|
|
963
1121
|
const query_params = {};
|
|
1122
|
+
query_params["template"] = template;
|
|
1123
|
+
query_params["template_theme_id"] = templateThemeId;
|
|
1124
|
+
query_params["theme_id"] = themeId;
|
|
1125
|
+
query_params["locale"] = locale;
|
|
1126
|
+
query_params["type"] = type;
|
|
964
1127
|
|
|
965
1128
|
const xHeaders = {};
|
|
966
1129
|
|
|
@@ -968,7 +1131,7 @@ class Content {
|
|
|
968
1131
|
this._conf,
|
|
969
1132
|
"get",
|
|
970
1133
|
constructUrl({
|
|
971
|
-
url: this._urls["
|
|
1134
|
+
url: this._urls["getTranslateUILabels"],
|
|
972
1135
|
params: {},
|
|
973
1136
|
}),
|
|
974
1137
|
query_params,
|