@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- 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 +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +20 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
- 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/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -6,8 +6,8 @@ declare class Content {
|
|
|
6
6
|
getAnnouncements: string;
|
|
7
7
|
getBlog: string;
|
|
8
8
|
getBlogs: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
getCustomFields: string;
|
|
10
|
+
getCustomObject: string;
|
|
11
11
|
getDataLoaders: string;
|
|
12
12
|
getFaqBySlug: string;
|
|
13
13
|
getFaqCategories: string;
|
|
@@ -45,34 +45,34 @@ declare class Content {
|
|
|
45
45
|
* @summary: Get a blog
|
|
46
46
|
* @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
|
|
47
47
|
*/
|
|
48
|
-
getBlog({ slug, rootId,
|
|
48
|
+
getBlog({ slug, rootId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<BlogSchema>;
|
|
49
49
|
/**
|
|
50
50
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
51
51
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
52
|
-
* @returns {Promise<
|
|
52
|
+
* @returns {Promise<BlogGetResponse>} - Success response
|
|
53
53
|
* @name getBlogs
|
|
54
54
|
* @summary: List blogs
|
|
55
55
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
56
56
|
*/
|
|
57
|
-
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
57
|
+
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<BlogGetResponse>;
|
|
58
58
|
/**
|
|
59
59
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
60
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
61
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
62
|
-
* @name
|
|
63
|
-
* @summary: Get list of custom fields
|
|
64
|
-
* @description:
|
|
62
|
+
* @name getCustomFields
|
|
63
|
+
* @summary: Get list of custom fields
|
|
64
|
+
* @description: List custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
getCustomFields({ resource, resourceId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomFieldsResponseByResourceIdSchema>;
|
|
67
67
|
/**
|
|
68
68
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
69
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
70
70
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
71
|
-
* @name
|
|
72
|
-
* @summary: Get custom object
|
|
73
|
-
* @description:
|
|
71
|
+
* @name getCustomObject
|
|
72
|
+
* @summary: Get custom object
|
|
73
|
+
* @description: Get details of custom objects, their field details, definitions, and references can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObject/).
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
getCustomObject({ metaobjectId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomObjectByIdSchema>;
|
|
76
76
|
/**
|
|
77
77
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
78
78
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -148,12 +148,12 @@ declare class Content {
|
|
|
148
148
|
/**
|
|
149
149
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
150
150
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
151
|
-
* @returns {Promise<
|
|
151
|
+
* @returns {Promise<NavigationGetResponse>} - Success response
|
|
152
152
|
* @name getNavigations
|
|
153
153
|
* @summary: List navigation items
|
|
154
154
|
* @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
|
|
155
155
|
*/
|
|
156
|
-
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
156
|
+
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<NavigationGetResponse>;
|
|
157
157
|
/**
|
|
158
158
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
159
159
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -166,12 +166,12 @@ declare class Content {
|
|
|
166
166
|
/**
|
|
167
167
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
168
168
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
169
|
-
* @returns {Promise<
|
|
169
|
+
* @returns {Promise<PageGetResponse>} - Success response
|
|
170
170
|
* @name getPages
|
|
171
171
|
* @summary: Lists pages
|
|
172
172
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
173
173
|
*/
|
|
174
|
-
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
174
|
+
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PageGetResponse>;
|
|
175
175
|
/**
|
|
176
176
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
177
177
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -202,12 +202,22 @@ declare class Content {
|
|
|
202
202
|
/**
|
|
203
203
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
204
204
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
205
|
-
* @returns {Promise<
|
|
205
|
+
* @returns {Promise<SlideshowGetResponse>} - Success response
|
|
206
206
|
* @name getSlideshows
|
|
207
207
|
* @summary: List Slideshows
|
|
208
208
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
209
209
|
*/
|
|
210
|
-
getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
210
|
+
getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowGetResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* @param {Object} arg - Arg object.
|
|
213
|
+
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
214
|
+
* @returns {Paginator<SlideshowGetResponse>}
|
|
215
|
+
* @summary: List Slideshows
|
|
216
|
+
* @description: List slideshows along with their details.
|
|
217
|
+
*/
|
|
218
|
+
getSlideshowsPaginator({ pageSize }?: {
|
|
219
|
+
pageSize?: number;
|
|
220
|
+
}): Paginator<SlideshowGetResponse>;
|
|
211
221
|
/**
|
|
212
222
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
213
223
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -227,3 +237,4 @@ declare class Content {
|
|
|
227
237
|
*/
|
|
228
238
|
getTags({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TagsSchema>;
|
|
229
239
|
}
|
|
240
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -8,11 +13,11 @@ class Content {
|
|
|
8
13
|
this._relativeUrls = {
|
|
9
14
|
getAnnouncements: "/service/application/content/v1.0/announcements",
|
|
10
15
|
getBlog: "/service/application/content/v1.0/blogs/{slug}",
|
|
11
|
-
getBlogs: "/service/application/content/v1.0/blogs",
|
|
12
|
-
|
|
13
|
-
"/service/application/content/
|
|
14
|
-
|
|
15
|
-
"/service/application/content/
|
|
16
|
+
getBlogs: "/service/application/content/v1.0/blogs/",
|
|
17
|
+
getCustomFields:
|
|
18
|
+
"/service/application/content/v1.0/metafields/{resource}/{resource_id}",
|
|
19
|
+
getCustomObject:
|
|
20
|
+
"/service/application/content/v1.0/metaobjects/{metaobject_id}",
|
|
16
21
|
getDataLoaders: "/service/application/content/v1.0/data-loader",
|
|
17
22
|
getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
|
|
18
23
|
getFaqCategories: "/service/application/content/v1.0/faq/categories",
|
|
@@ -23,13 +28,13 @@ class Content {
|
|
|
23
28
|
"/service/application/content/v1.0/faq/category/{slug}/faqs",
|
|
24
29
|
getLandingPage: "/service/application/content/v1.0/landing-page",
|
|
25
30
|
getLegalInformation: "/service/application/content/v1.0/legal",
|
|
26
|
-
getNavigations: "/service/application/content/v1.0/navigations",
|
|
31
|
+
getNavigations: "/service/application/content/v1.0/navigations/",
|
|
27
32
|
getPage: "/service/application/content/v2.0/pages/{slug}",
|
|
28
|
-
getPages: "/service/application/content/v2.0/pages",
|
|
33
|
+
getPages: "/service/application/content/v2.0/pages/",
|
|
29
34
|
getSEOConfiguration: "/service/application/content/v1.0/seo",
|
|
30
35
|
getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
|
|
31
36
|
getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
|
|
32
|
-
getSlideshows: "/service/application/content/v1.0/slideshow",
|
|
37
|
+
getSlideshows: "/service/application/content/v1.0/slideshow/",
|
|
33
38
|
getSupportInformation: "/service/application/content/v1.0/support",
|
|
34
39
|
getTags: "/service/application/content/v1.0/tags",
|
|
35
40
|
};
|
|
@@ -61,6 +66,14 @@ class Content {
|
|
|
61
66
|
{ requestHeaders } = { requestHeaders: {} },
|
|
62
67
|
{ responseHeaders } = { responseHeaders: false }
|
|
63
68
|
) {
|
|
69
|
+
let invalidInput = [];
|
|
70
|
+
if (invalidInput.length) {
|
|
71
|
+
const error = new Error();
|
|
72
|
+
error.message = "Missing required field";
|
|
73
|
+
error.details = invalidInput;
|
|
74
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
75
|
+
}
|
|
76
|
+
|
|
64
77
|
const query_params = {};
|
|
65
78
|
|
|
66
79
|
const xHeaders = {};
|
|
@@ -95,12 +108,26 @@ class Content {
|
|
|
95
108
|
* @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
|
|
96
109
|
*/
|
|
97
110
|
async getBlog(
|
|
98
|
-
{ slug, rootId,
|
|
111
|
+
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
99
112
|
{ responseHeaders } = { responseHeaders: false }
|
|
100
113
|
) {
|
|
114
|
+
let invalidInput = [];
|
|
115
|
+
|
|
116
|
+
if (!slug) {
|
|
117
|
+
invalidInput.push({
|
|
118
|
+
message: `The 'slug' field is required.`,
|
|
119
|
+
path: ["slug"],
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
if (invalidInput.length) {
|
|
123
|
+
const error = new Error();
|
|
124
|
+
error.message = "Missing required field";
|
|
125
|
+
error.details = invalidInput;
|
|
126
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
127
|
+
}
|
|
128
|
+
|
|
101
129
|
const query_params = {};
|
|
102
130
|
query_params["root_id"] = rootId;
|
|
103
|
-
query_params["preview"] = preview;
|
|
104
131
|
|
|
105
132
|
const xHeaders = {};
|
|
106
133
|
|
|
@@ -128,7 +155,7 @@ class Content {
|
|
|
128
155
|
/**
|
|
129
156
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
130
157
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
131
|
-
* @returns {Promise<
|
|
158
|
+
* @returns {Promise<BlogGetResponse>} - Success response
|
|
132
159
|
* @name getBlogs
|
|
133
160
|
* @summary: List blogs
|
|
134
161
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
@@ -137,6 +164,14 @@ class Content {
|
|
|
137
164
|
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
|
|
138
165
|
{ responseHeaders } = { responseHeaders: false }
|
|
139
166
|
) {
|
|
167
|
+
let invalidInput = [];
|
|
168
|
+
if (invalidInput.length) {
|
|
169
|
+
const error = new Error();
|
|
170
|
+
error.message = "Missing required field";
|
|
171
|
+
error.details = invalidInput;
|
|
172
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
173
|
+
}
|
|
174
|
+
|
|
140
175
|
const query_params = {};
|
|
141
176
|
query_params["page_no"] = pageNo;
|
|
142
177
|
query_params["page_size"] = pageSize;
|
|
@@ -170,14 +205,35 @@ class Content {
|
|
|
170
205
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
171
206
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
172
207
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
173
|
-
* @name
|
|
174
|
-
* @summary: Get list of custom fields
|
|
175
|
-
* @description:
|
|
208
|
+
* @name getCustomFields
|
|
209
|
+
* @summary: Get list of custom fields
|
|
210
|
+
* @description: List custom fields attached to a particular resource by using the resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFields/).
|
|
176
211
|
*/
|
|
177
|
-
async
|
|
178
|
-
{ resource,
|
|
212
|
+
async getCustomFields(
|
|
213
|
+
{ resource, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
179
214
|
{ responseHeaders } = { responseHeaders: false }
|
|
180
215
|
) {
|
|
216
|
+
let invalidInput = [];
|
|
217
|
+
|
|
218
|
+
if (!resource) {
|
|
219
|
+
invalidInput.push({
|
|
220
|
+
message: `The 'resource' field is required.`,
|
|
221
|
+
path: ["resource"],
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
if (!resourceId) {
|
|
225
|
+
invalidInput.push({
|
|
226
|
+
message: `The 'resourceId' field is required.`,
|
|
227
|
+
path: ["resourceId"],
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (invalidInput.length) {
|
|
231
|
+
const error = new Error();
|
|
232
|
+
error.message = "Missing required field";
|
|
233
|
+
error.details = invalidInput;
|
|
234
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
235
|
+
}
|
|
236
|
+
|
|
181
237
|
const query_params = {};
|
|
182
238
|
|
|
183
239
|
const xHeaders = {};
|
|
@@ -186,8 +242,8 @@ class Content {
|
|
|
186
242
|
this._conf,
|
|
187
243
|
"get",
|
|
188
244
|
constructUrl({
|
|
189
|
-
url: this._urls["
|
|
190
|
-
params: { resource,
|
|
245
|
+
url: this._urls["getCustomFields"],
|
|
246
|
+
params: { resource, resourceId },
|
|
191
247
|
}),
|
|
192
248
|
query_params,
|
|
193
249
|
undefined,
|
|
@@ -207,14 +263,29 @@ class Content {
|
|
|
207
263
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
264
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
209
265
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
210
|
-
* @name
|
|
211
|
-
* @summary: Get custom object
|
|
212
|
-
* @description:
|
|
266
|
+
* @name getCustomObject
|
|
267
|
+
* @summary: Get custom object
|
|
268
|
+
* @description: Get details of custom objects, their field details, definitions, and references can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObject/).
|
|
213
269
|
*/
|
|
214
|
-
async
|
|
215
|
-
{
|
|
270
|
+
async getCustomObject(
|
|
271
|
+
{ metaobjectId, requestHeaders } = { requestHeaders: {} },
|
|
216
272
|
{ responseHeaders } = { responseHeaders: false }
|
|
217
273
|
) {
|
|
274
|
+
let invalidInput = [];
|
|
275
|
+
|
|
276
|
+
if (!metaobjectId) {
|
|
277
|
+
invalidInput.push({
|
|
278
|
+
message: `The 'metaobjectId' field is required.`,
|
|
279
|
+
path: ["metaobjectId"],
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
if (invalidInput.length) {
|
|
283
|
+
const error = new Error();
|
|
284
|
+
error.message = "Missing required field";
|
|
285
|
+
error.details = invalidInput;
|
|
286
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
287
|
+
}
|
|
288
|
+
|
|
218
289
|
const query_params = {};
|
|
219
290
|
|
|
220
291
|
const xHeaders = {};
|
|
@@ -223,8 +294,8 @@ class Content {
|
|
|
223
294
|
this._conf,
|
|
224
295
|
"get",
|
|
225
296
|
constructUrl({
|
|
226
|
-
url: this._urls["
|
|
227
|
-
params: {
|
|
297
|
+
url: this._urls["getCustomObject"],
|
|
298
|
+
params: { metaobjectId },
|
|
228
299
|
}),
|
|
229
300
|
query_params,
|
|
230
301
|
undefined,
|
|
@@ -252,6 +323,14 @@ class Content {
|
|
|
252
323
|
{ requestHeaders } = { requestHeaders: {} },
|
|
253
324
|
{ responseHeaders } = { responseHeaders: false }
|
|
254
325
|
) {
|
|
326
|
+
let invalidInput = [];
|
|
327
|
+
if (invalidInput.length) {
|
|
328
|
+
const error = new Error();
|
|
329
|
+
error.message = "Missing required field";
|
|
330
|
+
error.details = invalidInput;
|
|
331
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
332
|
+
}
|
|
333
|
+
|
|
255
334
|
const query_params = {};
|
|
256
335
|
|
|
257
336
|
const xHeaders = {};
|
|
@@ -289,6 +368,21 @@ class Content {
|
|
|
289
368
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
290
369
|
{ responseHeaders } = { responseHeaders: false }
|
|
291
370
|
) {
|
|
371
|
+
let invalidInput = [];
|
|
372
|
+
|
|
373
|
+
if (!slug) {
|
|
374
|
+
invalidInput.push({
|
|
375
|
+
message: `The 'slug' field is required.`,
|
|
376
|
+
path: ["slug"],
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
if (invalidInput.length) {
|
|
380
|
+
const error = new Error();
|
|
381
|
+
error.message = "Missing required field";
|
|
382
|
+
error.details = invalidInput;
|
|
383
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
384
|
+
}
|
|
385
|
+
|
|
292
386
|
const query_params = {};
|
|
293
387
|
|
|
294
388
|
const xHeaders = {};
|
|
@@ -326,6 +420,14 @@ class Content {
|
|
|
326
420
|
{ requestHeaders } = { requestHeaders: {} },
|
|
327
421
|
{ responseHeaders } = { responseHeaders: false }
|
|
328
422
|
) {
|
|
423
|
+
let invalidInput = [];
|
|
424
|
+
if (invalidInput.length) {
|
|
425
|
+
const error = new Error();
|
|
426
|
+
error.message = "Missing required field";
|
|
427
|
+
error.details = invalidInput;
|
|
428
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
429
|
+
}
|
|
430
|
+
|
|
329
431
|
const query_params = {};
|
|
330
432
|
|
|
331
433
|
const xHeaders = {};
|
|
@@ -363,6 +465,21 @@ class Content {
|
|
|
363
465
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
364
466
|
{ responseHeaders } = { responseHeaders: false }
|
|
365
467
|
) {
|
|
468
|
+
let invalidInput = [];
|
|
469
|
+
|
|
470
|
+
if (!slug) {
|
|
471
|
+
invalidInput.push({
|
|
472
|
+
message: `The 'slug' field is required.`,
|
|
473
|
+
path: ["slug"],
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
if (invalidInput.length) {
|
|
477
|
+
const error = new Error();
|
|
478
|
+
error.message = "Missing required field";
|
|
479
|
+
error.details = invalidInput;
|
|
480
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
481
|
+
}
|
|
482
|
+
|
|
366
483
|
const query_params = {};
|
|
367
484
|
|
|
368
485
|
const xHeaders = {};
|
|
@@ -400,6 +517,14 @@ class Content {
|
|
|
400
517
|
{ requestHeaders } = { requestHeaders: {} },
|
|
401
518
|
{ responseHeaders } = { responseHeaders: false }
|
|
402
519
|
) {
|
|
520
|
+
let invalidInput = [];
|
|
521
|
+
if (invalidInput.length) {
|
|
522
|
+
const error = new Error();
|
|
523
|
+
error.message = "Missing required field";
|
|
524
|
+
error.details = invalidInput;
|
|
525
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
526
|
+
}
|
|
527
|
+
|
|
403
528
|
const query_params = {};
|
|
404
529
|
|
|
405
530
|
const xHeaders = {};
|
|
@@ -437,6 +562,21 @@ class Content {
|
|
|
437
562
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
438
563
|
{ responseHeaders } = { responseHeaders: false }
|
|
439
564
|
) {
|
|
565
|
+
let invalidInput = [];
|
|
566
|
+
|
|
567
|
+
if (!slug) {
|
|
568
|
+
invalidInput.push({
|
|
569
|
+
message: `The 'slug' field is required.`,
|
|
570
|
+
path: ["slug"],
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
if (invalidInput.length) {
|
|
574
|
+
const error = new Error();
|
|
575
|
+
error.message = "Missing required field";
|
|
576
|
+
error.details = invalidInput;
|
|
577
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
578
|
+
}
|
|
579
|
+
|
|
440
580
|
const query_params = {};
|
|
441
581
|
|
|
442
582
|
const xHeaders = {};
|
|
@@ -474,6 +614,14 @@ class Content {
|
|
|
474
614
|
{ requestHeaders } = { requestHeaders: {} },
|
|
475
615
|
{ responseHeaders } = { responseHeaders: false }
|
|
476
616
|
) {
|
|
617
|
+
let invalidInput = [];
|
|
618
|
+
if (invalidInput.length) {
|
|
619
|
+
const error = new Error();
|
|
620
|
+
error.message = "Missing required field";
|
|
621
|
+
error.details = invalidInput;
|
|
622
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
623
|
+
}
|
|
624
|
+
|
|
477
625
|
const query_params = {};
|
|
478
626
|
|
|
479
627
|
const xHeaders = {};
|
|
@@ -511,6 +659,14 @@ class Content {
|
|
|
511
659
|
{ requestHeaders } = { requestHeaders: {} },
|
|
512
660
|
{ responseHeaders } = { responseHeaders: false }
|
|
513
661
|
) {
|
|
662
|
+
let invalidInput = [];
|
|
663
|
+
if (invalidInput.length) {
|
|
664
|
+
const error = new Error();
|
|
665
|
+
error.message = "Missing required field";
|
|
666
|
+
error.details = invalidInput;
|
|
667
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
668
|
+
}
|
|
669
|
+
|
|
514
670
|
const query_params = {};
|
|
515
671
|
|
|
516
672
|
const xHeaders = {};
|
|
@@ -539,7 +695,7 @@ class Content {
|
|
|
539
695
|
/**
|
|
540
696
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
541
697
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
542
|
-
* @returns {Promise<
|
|
698
|
+
* @returns {Promise<NavigationGetResponse>} - Success response
|
|
543
699
|
* @name getNavigations
|
|
544
700
|
* @summary: List navigation items
|
|
545
701
|
* @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
|
|
@@ -548,6 +704,14 @@ class Content {
|
|
|
548
704
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
549
705
|
{ responseHeaders } = { responseHeaders: false }
|
|
550
706
|
) {
|
|
707
|
+
let invalidInput = [];
|
|
708
|
+
if (invalidInput.length) {
|
|
709
|
+
const error = new Error();
|
|
710
|
+
error.message = "Missing required field";
|
|
711
|
+
error.details = invalidInput;
|
|
712
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
713
|
+
}
|
|
714
|
+
|
|
551
715
|
const query_params = {};
|
|
552
716
|
query_params["page_no"] = pageNo;
|
|
553
717
|
query_params["page_size"] = pageSize;
|
|
@@ -587,6 +751,21 @@ class Content {
|
|
|
587
751
|
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
588
752
|
{ responseHeaders } = { responseHeaders: false }
|
|
589
753
|
) {
|
|
754
|
+
let invalidInput = [];
|
|
755
|
+
|
|
756
|
+
if (!slug) {
|
|
757
|
+
invalidInput.push({
|
|
758
|
+
message: `The 'slug' field is required.`,
|
|
759
|
+
path: ["slug"],
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
if (invalidInput.length) {
|
|
763
|
+
const error = new Error();
|
|
764
|
+
error.message = "Missing required field";
|
|
765
|
+
error.details = invalidInput;
|
|
766
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
767
|
+
}
|
|
768
|
+
|
|
590
769
|
const query_params = {};
|
|
591
770
|
query_params["root_id"] = rootId;
|
|
592
771
|
|
|
@@ -616,7 +795,7 @@ class Content {
|
|
|
616
795
|
/**
|
|
617
796
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
618
797
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
619
|
-
* @returns {Promise<
|
|
798
|
+
* @returns {Promise<PageGetResponse>} - Success response
|
|
620
799
|
* @name getPages
|
|
621
800
|
* @summary: Lists pages
|
|
622
801
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
@@ -625,6 +804,14 @@ class Content {
|
|
|
625
804
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
626
805
|
{ responseHeaders } = { responseHeaders: false }
|
|
627
806
|
) {
|
|
807
|
+
let invalidInput = [];
|
|
808
|
+
if (invalidInput.length) {
|
|
809
|
+
const error = new Error();
|
|
810
|
+
error.message = "Missing required field";
|
|
811
|
+
error.details = invalidInput;
|
|
812
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
813
|
+
}
|
|
814
|
+
|
|
628
815
|
const query_params = {};
|
|
629
816
|
query_params["page_no"] = pageNo;
|
|
630
817
|
query_params["page_size"] = pageSize;
|
|
@@ -664,6 +851,14 @@ class Content {
|
|
|
664
851
|
{ requestHeaders } = { requestHeaders: {} },
|
|
665
852
|
{ responseHeaders } = { responseHeaders: false }
|
|
666
853
|
) {
|
|
854
|
+
let invalidInput = [];
|
|
855
|
+
if (invalidInput.length) {
|
|
856
|
+
const error = new Error();
|
|
857
|
+
error.message = "Missing required field";
|
|
858
|
+
error.details = invalidInput;
|
|
859
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
860
|
+
}
|
|
861
|
+
|
|
667
862
|
const query_params = {};
|
|
668
863
|
|
|
669
864
|
const xHeaders = {};
|
|
@@ -701,6 +896,14 @@ class Content {
|
|
|
701
896
|
{ pageType, active, requestHeaders } = { requestHeaders: {} },
|
|
702
897
|
{ responseHeaders } = { responseHeaders: false }
|
|
703
898
|
) {
|
|
899
|
+
let invalidInput = [];
|
|
900
|
+
if (invalidInput.length) {
|
|
901
|
+
const error = new Error();
|
|
902
|
+
error.message = "Missing required field";
|
|
903
|
+
error.details = invalidInput;
|
|
904
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
905
|
+
}
|
|
906
|
+
|
|
704
907
|
const query_params = {};
|
|
705
908
|
query_params["page_type"] = pageType;
|
|
706
909
|
query_params["active"] = active;
|
|
@@ -740,6 +943,21 @@ class Content {
|
|
|
740
943
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
741
944
|
{ responseHeaders } = { responseHeaders: false }
|
|
742
945
|
) {
|
|
946
|
+
let invalidInput = [];
|
|
947
|
+
|
|
948
|
+
if (!slug) {
|
|
949
|
+
invalidInput.push({
|
|
950
|
+
message: `The 'slug' field is required.`,
|
|
951
|
+
path: ["slug"],
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
if (invalidInput.length) {
|
|
955
|
+
const error = new Error();
|
|
956
|
+
error.message = "Missing required field";
|
|
957
|
+
error.details = invalidInput;
|
|
958
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
959
|
+
}
|
|
960
|
+
|
|
743
961
|
const query_params = {};
|
|
744
962
|
|
|
745
963
|
const xHeaders = {};
|
|
@@ -768,7 +986,7 @@ class Content {
|
|
|
768
986
|
/**
|
|
769
987
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
770
988
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
771
|
-
* @returns {Promise<
|
|
989
|
+
* @returns {Promise<SlideshowGetResponse>} - Success response
|
|
772
990
|
* @name getSlideshows
|
|
773
991
|
* @summary: List Slideshows
|
|
774
992
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
@@ -777,6 +995,14 @@ class Content {
|
|
|
777
995
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
778
996
|
{ responseHeaders } = { responseHeaders: false }
|
|
779
997
|
) {
|
|
998
|
+
let invalidInput = [];
|
|
999
|
+
if (invalidInput.length) {
|
|
1000
|
+
const error = new Error();
|
|
1001
|
+
error.message = "Missing required field";
|
|
1002
|
+
error.details = invalidInput;
|
|
1003
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1004
|
+
}
|
|
1005
|
+
|
|
780
1006
|
const query_params = {};
|
|
781
1007
|
query_params["page_no"] = pageNo;
|
|
782
1008
|
query_params["page_size"] = pageSize;
|
|
@@ -804,6 +1030,33 @@ class Content {
|
|
|
804
1030
|
return response;
|
|
805
1031
|
}
|
|
806
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* @param {Object} arg - Arg object.
|
|
1035
|
+
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
1036
|
+
* @returns {Paginator<SlideshowGetResponse>}
|
|
1037
|
+
* @summary: List Slideshows
|
|
1038
|
+
* @description: List slideshows along with their details.
|
|
1039
|
+
*/
|
|
1040
|
+
getSlideshowsPaginator({ pageSize } = {}) {
|
|
1041
|
+
const paginator = new Paginator();
|
|
1042
|
+
const callback = async () => {
|
|
1043
|
+
const pageId = paginator.nextId;
|
|
1044
|
+
const pageNo = paginator.pageNo;
|
|
1045
|
+
const pageType = "number";
|
|
1046
|
+
const data = await this.getSlideshows({
|
|
1047
|
+
pageNo: pageNo,
|
|
1048
|
+
pageSize: pageSize,
|
|
1049
|
+
});
|
|
1050
|
+
paginator.setPaginator({
|
|
1051
|
+
hasNext: data.page.has_next ? true : false,
|
|
1052
|
+
nextId: data.page.next_id,
|
|
1053
|
+
});
|
|
1054
|
+
return data;
|
|
1055
|
+
};
|
|
1056
|
+
paginator.setCallback(callback.bind(this));
|
|
1057
|
+
return paginator;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
807
1060
|
/**
|
|
808
1061
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
809
1062
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -816,6 +1069,14 @@ class Content {
|
|
|
816
1069
|
{ requestHeaders } = { requestHeaders: {} },
|
|
817
1070
|
{ responseHeaders } = { responseHeaders: false }
|
|
818
1071
|
) {
|
|
1072
|
+
let invalidInput = [];
|
|
1073
|
+
if (invalidInput.length) {
|
|
1074
|
+
const error = new Error();
|
|
1075
|
+
error.message = "Missing required field";
|
|
1076
|
+
error.details = invalidInput;
|
|
1077
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1078
|
+
}
|
|
1079
|
+
|
|
819
1080
|
const query_params = {};
|
|
820
1081
|
|
|
821
1082
|
const xHeaders = {};
|
|
@@ -853,6 +1114,14 @@ class Content {
|
|
|
853
1114
|
{ requestHeaders } = { requestHeaders: {} },
|
|
854
1115
|
{ responseHeaders } = { responseHeaders: false }
|
|
855
1116
|
) {
|
|
1117
|
+
let invalidInput = [];
|
|
1118
|
+
if (invalidInput.length) {
|
|
1119
|
+
const error = new Error();
|
|
1120
|
+
error.message = "Missing required field";
|
|
1121
|
+
error.details = invalidInput;
|
|
1122
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1123
|
+
}
|
|
1124
|
+
|
|
856
1125
|
const query_params = {};
|
|
857
1126
|
|
|
858
1127
|
const xHeaders = {};
|