@gofynd/fdk-client-javascript 1.4.16-beta.2 → 1.4.16-beta.4
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 +27 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -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/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- 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 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- 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 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- 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 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- 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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -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 +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -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 +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- 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 +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +5 -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 +6 -810
- 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/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -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 -111
|
@@ -6,10 +6,9 @@ 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
|
-
getDefaultSitemapConfig: string;
|
|
13
12
|
getFaqBySlug: string;
|
|
14
13
|
getFaqCategories: string;
|
|
15
14
|
getFaqCategoryBySlug: string;
|
|
@@ -22,8 +21,6 @@ declare class Content {
|
|
|
22
21
|
getPages: string;
|
|
23
22
|
getSEOConfiguration: string;
|
|
24
23
|
getSEOMarkupSchemas: string;
|
|
25
|
-
getSitemap: string;
|
|
26
|
-
getSitemaps: string;
|
|
27
24
|
getSlideshow: string;
|
|
28
25
|
getSlideshows: string;
|
|
29
26
|
getSupportInformation: string;
|
|
@@ -48,34 +45,34 @@ declare class Content {
|
|
|
48
45
|
* @summary: Get a blog
|
|
49
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/).
|
|
50
47
|
*/
|
|
51
|
-
getBlog({ slug, rootId,
|
|
48
|
+
getBlog({ slug, rootId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<BlogSchema>;
|
|
52
49
|
/**
|
|
53
50
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
51
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
55
|
-
* @returns {Promise<
|
|
52
|
+
* @returns {Promise<BlogGetResponse>} - Success response
|
|
56
53
|
* @name getBlogs
|
|
57
54
|
* @summary: List blogs
|
|
58
55
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
59
56
|
*/
|
|
60
|
-
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>;
|
|
61
58
|
/**
|
|
62
59
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
63
60
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
64
61
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
65
|
-
* @name
|
|
66
|
-
* @summary: Get list of custom fields
|
|
67
|
-
* @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/).
|
|
68
65
|
*/
|
|
69
|
-
|
|
66
|
+
getCustomFields({ resource, resourceId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomFieldsResponseByResourceIdSchema>;
|
|
70
67
|
/**
|
|
71
68
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
69
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
73
70
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
74
|
-
* @name
|
|
75
|
-
* @summary: Get custom object
|
|
76
|
-
* @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/).
|
|
77
74
|
*/
|
|
78
|
-
|
|
75
|
+
getCustomObject({ metaobjectId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomObjectByIdSchema>;
|
|
79
76
|
/**
|
|
80
77
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
81
78
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -85,15 +82,6 @@ declare class Content {
|
|
|
85
82
|
* @description: List all the data loaders that are enabled for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDataLoaders/).
|
|
86
83
|
*/
|
|
87
84
|
getDataLoaders({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<DataLoadersSchema>;
|
|
88
|
-
/**
|
|
89
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
91
|
-
* @returns {Promise<DefaultSitemapConfig>} - Success response
|
|
92
|
-
* @name getDefaultSitemapConfig
|
|
93
|
-
* @summary: Get default sitemap configuration
|
|
94
|
-
* @description: Retrieves the current default sitemap configuration settings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDefaultSitemapConfig/).
|
|
95
|
-
*/
|
|
96
|
-
getDefaultSitemapConfig({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<DefaultSitemapConfig>;
|
|
97
85
|
/**
|
|
98
86
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
99
87
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -160,12 +148,12 @@ declare class Content {
|
|
|
160
148
|
/**
|
|
161
149
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
162
150
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
163
|
-
* @returns {Promise<
|
|
151
|
+
* @returns {Promise<NavigationGetResponse>} - Success response
|
|
164
152
|
* @name getNavigations
|
|
165
153
|
* @summary: List navigation items
|
|
166
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/).
|
|
167
155
|
*/
|
|
168
|
-
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
156
|
+
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<NavigationGetResponse>;
|
|
169
157
|
/**
|
|
170
158
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
171
159
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -178,12 +166,12 @@ declare class Content {
|
|
|
178
166
|
/**
|
|
179
167
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
168
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<
|
|
169
|
+
* @returns {Promise<PageGetResponse>} - Success response
|
|
182
170
|
* @name getPages
|
|
183
171
|
* @summary: Lists pages
|
|
184
172
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
185
173
|
*/
|
|
186
|
-
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
174
|
+
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PageGetResponse>;
|
|
187
175
|
/**
|
|
188
176
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
189
177
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -202,26 +190,6 @@ declare class Content {
|
|
|
202
190
|
* @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
|
|
203
191
|
*/
|
|
204
192
|
getSEOMarkupSchemas({ pageType, active, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SeoSchemaComponent>;
|
|
205
|
-
/**
|
|
206
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
207
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
208
|
-
* @returns {Promise<SitemapConfig>} - Success response
|
|
209
|
-
* @name getSitemap
|
|
210
|
-
* @summary: Get a specific sitemap configuration
|
|
211
|
-
* @description: Retrieve a specific sitemap configuration by its name. Returns the complete configuration including the sitemap XML data, activation status, and timestamps.
|
|
212
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSitemap/).
|
|
213
|
-
*/
|
|
214
|
-
getSitemap({ name, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SitemapConfig>;
|
|
215
|
-
/**
|
|
216
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
217
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
218
|
-
* @returns {Promise<SitemapConfigurationList>} - Success response
|
|
219
|
-
* @name getSitemaps
|
|
220
|
-
* @summary: List sitemap configurations
|
|
221
|
-
* @description: Retrieve a list of sitemap configurations for a specific application. Each configuration contains the sitemap XML data.
|
|
222
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSitemaps/).
|
|
223
|
-
*/
|
|
224
|
-
getSitemaps({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SitemapConfigurationList>;
|
|
225
193
|
/**
|
|
226
194
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
227
195
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -234,12 +202,22 @@ declare class Content {
|
|
|
234
202
|
/**
|
|
235
203
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
236
204
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
237
|
-
* @returns {Promise<
|
|
205
|
+
* @returns {Promise<SlideshowGetResponse>} - Success response
|
|
238
206
|
* @name getSlideshows
|
|
239
207
|
* @summary: List Slideshows
|
|
240
208
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
241
209
|
*/
|
|
242
|
-
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>;
|
|
243
221
|
/**
|
|
244
222
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
245
223
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -259,3 +237,4 @@ declare class Content {
|
|
|
259
237
|
*/
|
|
260
238
|
getTags({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TagsSchema>;
|
|
261
239
|
}
|
|
240
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -14,14 +14,12 @@ class Content {
|
|
|
14
14
|
this._relativeUrls = {
|
|
15
15
|
getAnnouncements: "/service/application/content/v1.0/announcements",
|
|
16
16
|
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/
|
|
17
|
+
getBlogs: "/service/application/content/v1.0/blogs/",
|
|
18
|
+
getCustomFields:
|
|
19
|
+
"/service/application/content/v1.0/metafields/{resource}/{resource_id}",
|
|
20
|
+
getCustomObject:
|
|
21
|
+
"/service/application/content/v1.0/metaobjects/{metaobject_id}",
|
|
22
22
|
getDataLoaders: "/service/application/content/v1.0/data-loader",
|
|
23
|
-
getDefaultSitemapConfig:
|
|
24
|
-
"/service/application/content/v1.0/seo/sitemap/default",
|
|
25
23
|
getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
|
|
26
24
|
getFaqCategories: "/service/application/content/v1.0/faq/categories",
|
|
27
25
|
getFaqCategoryBySlug:
|
|
@@ -31,15 +29,13 @@ class Content {
|
|
|
31
29
|
"/service/application/content/v1.0/faq/category/{slug}/faqs",
|
|
32
30
|
getLandingPage: "/service/application/content/v1.0/landing-page",
|
|
33
31
|
getLegalInformation: "/service/application/content/v1.0/legal",
|
|
34
|
-
getNavigations: "/service/application/content/v1.0/navigations",
|
|
32
|
+
getNavigations: "/service/application/content/v1.0/navigations/",
|
|
35
33
|
getPage: "/service/application/content/v2.0/pages/{slug}",
|
|
36
|
-
getPages: "/service/application/content/v2.0/pages",
|
|
34
|
+
getPages: "/service/application/content/v2.0/pages/",
|
|
37
35
|
getSEOConfiguration: "/service/application/content/v1.0/seo",
|
|
38
36
|
getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
|
|
39
|
-
getSitemap: "/service/application/content/v1.0/seo/sitemaps/{name}",
|
|
40
|
-
getSitemaps: "/service/application/content/v1.0/seo/sitemaps",
|
|
41
37
|
getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
|
|
42
|
-
getSlideshows: "/service/application/content/v1.0/slideshow",
|
|
38
|
+
getSlideshows: "/service/application/content/v1.0/slideshow/",
|
|
43
39
|
getSupportInformation: "/service/application/content/v1.0/support",
|
|
44
40
|
getTags: "/service/application/content/v1.0/tags",
|
|
45
41
|
};
|
|
@@ -105,7 +101,7 @@ class Content {
|
|
|
105
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://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
|
|
106
102
|
*/
|
|
107
103
|
async getBlog(
|
|
108
|
-
{ slug, rootId,
|
|
104
|
+
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
109
105
|
{ responseHeaders } = { responseHeaders: false }
|
|
110
106
|
) {
|
|
111
107
|
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
@@ -119,7 +115,6 @@ class Content {
|
|
|
119
115
|
|
|
120
116
|
const query_params = {};
|
|
121
117
|
query_params["root_id"] = rootId;
|
|
122
|
-
query_params["preview"] = preview;
|
|
123
118
|
|
|
124
119
|
const xHeaders = {};
|
|
125
120
|
|
|
@@ -147,7 +142,7 @@ class Content {
|
|
|
147
142
|
/**
|
|
148
143
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
149
144
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
150
|
-
* @returns {Promise<
|
|
145
|
+
* @returns {Promise<BlogGetResponse>} - Success response
|
|
151
146
|
* @name getBlogs
|
|
152
147
|
* @summary: List blogs
|
|
153
148
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
@@ -189,17 +184,17 @@ class Content {
|
|
|
189
184
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
190
185
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
191
186
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
192
|
-
* @name
|
|
193
|
-
* @summary: Get list of custom fields
|
|
194
|
-
* @description:
|
|
187
|
+
* @name getCustomFields
|
|
188
|
+
* @summary: Get list of custom fields
|
|
189
|
+
* @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/).
|
|
195
190
|
*/
|
|
196
|
-
async
|
|
197
|
-
{ resource,
|
|
191
|
+
async getCustomFields(
|
|
192
|
+
{ resource, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
198
193
|
{ responseHeaders } = { responseHeaders: false }
|
|
199
194
|
) {
|
|
200
195
|
const errors = validateRequiredParams(arguments[0], [
|
|
201
196
|
"resource",
|
|
202
|
-
"
|
|
197
|
+
"resourceId",
|
|
203
198
|
]);
|
|
204
199
|
if (errors.length > 0) {
|
|
205
200
|
const error = new FDKClientValidationError({
|
|
@@ -217,8 +212,8 @@ class Content {
|
|
|
217
212
|
this._conf,
|
|
218
213
|
"get",
|
|
219
214
|
constructUrl({
|
|
220
|
-
url: this._urls["
|
|
221
|
-
params: { resource,
|
|
215
|
+
url: this._urls["getCustomFields"],
|
|
216
|
+
params: { resource, resourceId },
|
|
222
217
|
}),
|
|
223
218
|
query_params,
|
|
224
219
|
undefined,
|
|
@@ -238,18 +233,15 @@ class Content {
|
|
|
238
233
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
239
234
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
240
235
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
241
|
-
* @name
|
|
242
|
-
* @summary: Get custom object
|
|
243
|
-
* @description:
|
|
236
|
+
* @name getCustomObject
|
|
237
|
+
* @summary: Get custom object
|
|
238
|
+
* @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/).
|
|
244
239
|
*/
|
|
245
|
-
async
|
|
246
|
-
{
|
|
240
|
+
async getCustomObject(
|
|
241
|
+
{ metaobjectId, requestHeaders } = { requestHeaders: {} },
|
|
247
242
|
{ responseHeaders } = { responseHeaders: false }
|
|
248
243
|
) {
|
|
249
|
-
const errors = validateRequiredParams(arguments[0], [
|
|
250
|
-
"definitionSlug",
|
|
251
|
-
"slug",
|
|
252
|
-
]);
|
|
244
|
+
const errors = validateRequiredParams(arguments[0], ["metaobjectId"]);
|
|
253
245
|
if (errors.length > 0) {
|
|
254
246
|
const error = new FDKClientValidationError({
|
|
255
247
|
message: "Missing required field",
|
|
@@ -266,8 +258,8 @@ class Content {
|
|
|
266
258
|
this._conf,
|
|
267
259
|
"get",
|
|
268
260
|
constructUrl({
|
|
269
|
-
url: this._urls["
|
|
270
|
-
params: {
|
|
261
|
+
url: this._urls["getCustomObject"],
|
|
262
|
+
params: { metaobjectId },
|
|
271
263
|
}),
|
|
272
264
|
query_params,
|
|
273
265
|
undefined,
|
|
@@ -320,43 +312,6 @@ class Content {
|
|
|
320
312
|
return response;
|
|
321
313
|
}
|
|
322
314
|
|
|
323
|
-
/**
|
|
324
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
325
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
326
|
-
* @returns {Promise<DefaultSitemapConfig>} - Success response
|
|
327
|
-
* @name getDefaultSitemapConfig
|
|
328
|
-
* @summary: Get default sitemap configuration
|
|
329
|
-
* @description: Retrieves the current default sitemap configuration settings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDefaultSitemapConfig/).
|
|
330
|
-
*/
|
|
331
|
-
async getDefaultSitemapConfig(
|
|
332
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
333
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
334
|
-
) {
|
|
335
|
-
const query_params = {};
|
|
336
|
-
|
|
337
|
-
const xHeaders = {};
|
|
338
|
-
|
|
339
|
-
const response = await ApplicationAPIClient.execute(
|
|
340
|
-
this._conf,
|
|
341
|
-
"get",
|
|
342
|
-
constructUrl({
|
|
343
|
-
url: this._urls["getDefaultSitemapConfig"],
|
|
344
|
-
params: {},
|
|
345
|
-
}),
|
|
346
|
-
query_params,
|
|
347
|
-
undefined,
|
|
348
|
-
{ ...xHeaders, ...requestHeaders },
|
|
349
|
-
{ responseHeaders }
|
|
350
|
-
);
|
|
351
|
-
|
|
352
|
-
let responseData = response;
|
|
353
|
-
if (responseHeaders) {
|
|
354
|
-
responseData = response[0];
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
return response;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
315
|
/**
|
|
361
316
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
362
317
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -646,7 +601,7 @@ class Content {
|
|
|
646
601
|
/**
|
|
647
602
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
648
603
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
649
|
-
* @returns {Promise<
|
|
604
|
+
* @returns {Promise<NavigationGetResponse>} - Success response
|
|
650
605
|
* @name getNavigations
|
|
651
606
|
* @summary: List navigation items
|
|
652
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://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
|
|
@@ -732,7 +687,7 @@ class Content {
|
|
|
732
687
|
/**
|
|
733
688
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
734
689
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
735
|
-
* @returns {Promise<
|
|
690
|
+
* @returns {Promise<PageGetResponse>} - Success response
|
|
736
691
|
* @name getPages
|
|
737
692
|
* @summary: Lists pages
|
|
738
693
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
@@ -844,93 +799,6 @@ class Content {
|
|
|
844
799
|
return response;
|
|
845
800
|
}
|
|
846
801
|
|
|
847
|
-
/**
|
|
848
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
849
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
850
|
-
* @returns {Promise<SitemapConfig>} - Success response
|
|
851
|
-
* @name getSitemap
|
|
852
|
-
* @summary: Get a specific sitemap configuration
|
|
853
|
-
* @description: Retrieve a specific sitemap configuration by its name. Returns the complete configuration including the sitemap XML data, activation status, and timestamps.
|
|
854
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSitemap/).
|
|
855
|
-
*/
|
|
856
|
-
async getSitemap(
|
|
857
|
-
{ name, requestHeaders } = { requestHeaders: {} },
|
|
858
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
859
|
-
) {
|
|
860
|
-
const errors = validateRequiredParams(arguments[0], ["name"]);
|
|
861
|
-
if (errors.length > 0) {
|
|
862
|
-
const error = new FDKClientValidationError({
|
|
863
|
-
message: "Missing required field",
|
|
864
|
-
details: errors,
|
|
865
|
-
});
|
|
866
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
const query_params = {};
|
|
870
|
-
|
|
871
|
-
const xHeaders = {};
|
|
872
|
-
|
|
873
|
-
const response = await ApplicationAPIClient.execute(
|
|
874
|
-
this._conf,
|
|
875
|
-
"get",
|
|
876
|
-
constructUrl({
|
|
877
|
-
url: this._urls["getSitemap"],
|
|
878
|
-
params: { name },
|
|
879
|
-
}),
|
|
880
|
-
query_params,
|
|
881
|
-
undefined,
|
|
882
|
-
{ ...xHeaders, ...requestHeaders },
|
|
883
|
-
{ responseHeaders }
|
|
884
|
-
);
|
|
885
|
-
|
|
886
|
-
let responseData = response;
|
|
887
|
-
if (responseHeaders) {
|
|
888
|
-
responseData = response[0];
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
return response;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
896
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
897
|
-
* @returns {Promise<SitemapConfigurationList>} - Success response
|
|
898
|
-
* @name getSitemaps
|
|
899
|
-
* @summary: List sitemap configurations
|
|
900
|
-
* @description: Retrieve a list of sitemap configurations for a specific application. Each configuration contains the sitemap XML data.
|
|
901
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSitemaps/).
|
|
902
|
-
*/
|
|
903
|
-
async getSitemaps(
|
|
904
|
-
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
905
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
906
|
-
) {
|
|
907
|
-
const query_params = {};
|
|
908
|
-
query_params["page_no"] = pageNo;
|
|
909
|
-
query_params["page_size"] = pageSize;
|
|
910
|
-
|
|
911
|
-
const xHeaders = {};
|
|
912
|
-
|
|
913
|
-
const response = await ApplicationAPIClient.execute(
|
|
914
|
-
this._conf,
|
|
915
|
-
"get",
|
|
916
|
-
constructUrl({
|
|
917
|
-
url: this._urls["getSitemaps"],
|
|
918
|
-
params: {},
|
|
919
|
-
}),
|
|
920
|
-
query_params,
|
|
921
|
-
undefined,
|
|
922
|
-
{ ...xHeaders, ...requestHeaders },
|
|
923
|
-
{ responseHeaders }
|
|
924
|
-
);
|
|
925
|
-
|
|
926
|
-
let responseData = response;
|
|
927
|
-
if (responseHeaders) {
|
|
928
|
-
responseData = response[0];
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
return response;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
802
|
/**
|
|
935
803
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
936
804
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -980,7 +848,7 @@ class Content {
|
|
|
980
848
|
/**
|
|
981
849
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
982
850
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
983
|
-
* @returns {Promise<
|
|
851
|
+
* @returns {Promise<SlideshowGetResponse>} - Success response
|
|
984
852
|
* @name getSlideshows
|
|
985
853
|
* @summary: List Slideshows
|
|
986
854
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
@@ -1016,6 +884,33 @@ class Content {
|
|
|
1016
884
|
return response;
|
|
1017
885
|
}
|
|
1018
886
|
|
|
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
|
+
|
|
1019
914
|
/**
|
|
1020
915
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1021
916
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -12,30 +12,30 @@ declare class FileStorage {
|
|
|
12
12
|
/**
|
|
13
13
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
14
14
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
15
|
-
* @returns {Promise<
|
|
15
|
+
* @returns {Promise<CompleteResponse>} - Success response
|
|
16
16
|
* @name completeUpload
|
|
17
|
-
* @summary:
|
|
17
|
+
* @summary: Complete file upload
|
|
18
18
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
19
19
|
*/
|
|
20
|
-
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<
|
|
20
|
+
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CompleteResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<
|
|
24
|
+
* @returns {Promise<SignUrlResponse>} - Success response
|
|
25
25
|
* @name signUrls
|
|
26
|
-
* @summary:
|
|
26
|
+
* @summary: Get signed URLs
|
|
27
27
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
28
28
|
*/
|
|
29
|
-
signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
29
|
+
signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SignUrlResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
32
32
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
33
|
-
* @returns {Promise<
|
|
33
|
+
* @returns {Promise<StartResponse>} - Success response
|
|
34
34
|
* @name startUpload
|
|
35
35
|
* @summary: Initiates file upload
|
|
36
36
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
37
37
|
*/
|
|
38
|
-
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<
|
|
38
|
+
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<StartResponse>;
|
|
39
39
|
/**
|
|
40
40
|
* @param data
|
|
41
41
|
* @param {string} file_name
|
|
@@ -43,13 +43,15 @@ declare class FileStorage {
|
|
|
43
43
|
* @param {string} namespace
|
|
44
44
|
* @param {number} size
|
|
45
45
|
* @param {number} tags
|
|
46
|
+
* @param {string} enc_key
|
|
46
47
|
*/
|
|
47
|
-
upload({ data, file_name, content_type, namespace, size, tags, }?: {
|
|
48
|
+
upload({ data, file_name, content_type, namespace, size, tags, enc_key, }?: {
|
|
48
49
|
data: any;
|
|
49
50
|
file_name: any;
|
|
50
51
|
content_type: any;
|
|
51
52
|
namespace: any;
|
|
52
53
|
size: any;
|
|
53
54
|
tags: any;
|
|
55
|
+
enc_key: any;
|
|
54
56
|
}): Promise<any>;
|
|
55
57
|
}
|
|
@@ -15,10 +15,10 @@ class FileStorage {
|
|
|
15
15
|
this._conf = _conf;
|
|
16
16
|
this._relativeUrls = {
|
|
17
17
|
completeUpload:
|
|
18
|
-
"/service/application/assets/
|
|
18
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
|
|
19
19
|
signUrls: "/service/application/assets/v1.0/sign-urls",
|
|
20
20
|
startUpload:
|
|
21
|
-
"/service/application/assets/
|
|
21
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
|
|
22
22
|
};
|
|
23
23
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
24
24
|
(urls, [method, relativeUrl]) => {
|
|
@@ -39,9 +39,9 @@ class FileStorage {
|
|
|
39
39
|
/**
|
|
40
40
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
41
41
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
42
|
-
* @returns {Promise<
|
|
42
|
+
* @returns {Promise<CompleteResponse>} - Success response
|
|
43
43
|
* @name completeUpload
|
|
44
|
-
* @summary:
|
|
44
|
+
* @summary: Complete file upload
|
|
45
45
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
46
46
|
*/
|
|
47
47
|
async completeUpload(
|
|
@@ -85,9 +85,9 @@ class FileStorage {
|
|
|
85
85
|
/**
|
|
86
86
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
87
87
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
88
|
-
* @returns {Promise<
|
|
88
|
+
* @returns {Promise<SignUrlResponse>} - Success response
|
|
89
89
|
* @name signUrls
|
|
90
|
-
* @summary:
|
|
90
|
+
* @summary: Get signed URLs
|
|
91
91
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
92
92
|
*/
|
|
93
93
|
async signUrls(
|
|
@@ -122,7 +122,7 @@ class FileStorage {
|
|
|
122
122
|
/**
|
|
123
123
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
124
124
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
125
|
-
* @returns {Promise<
|
|
125
|
+
* @returns {Promise<StartResponse>} - Success response
|
|
126
126
|
* @name startUpload
|
|
127
127
|
* @summary: Initiates file upload
|
|
128
128
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
@@ -173,6 +173,7 @@ class FileStorage {
|
|
|
173
173
|
* @param {string} namespace
|
|
174
174
|
* @param {number} size
|
|
175
175
|
* @param {number} tags
|
|
176
|
+
* @param {string} enc_key
|
|
176
177
|
*/
|
|
177
178
|
FileStorage.prototype.upload = function ({
|
|
178
179
|
data,
|
|
@@ -181,6 +182,7 @@ FileStorage.prototype.upload = function ({
|
|
|
181
182
|
namespace,
|
|
182
183
|
size,
|
|
183
184
|
tags,
|
|
185
|
+
enc_key,
|
|
184
186
|
} = {}) {
|
|
185
187
|
return new Promise(async (resolve, reject) => {
|
|
186
188
|
try {
|
|
@@ -191,6 +193,7 @@ FileStorage.prototype.upload = function ({
|
|
|
191
193
|
content_type,
|
|
192
194
|
size: size,
|
|
193
195
|
tags: tags,
|
|
196
|
+
enc_key: enc_key,
|
|
194
197
|
},
|
|
195
198
|
});
|
|
196
199
|
if (dataObj.upload && dataObj.upload.url) {
|
|
@@ -50,10 +50,10 @@ declare class Lead {
|
|
|
50
50
|
/**
|
|
51
51
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
52
52
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
53
|
-
* @returns {Promise<
|
|
53
|
+
* @returns {Promise<SubmitCustomFormResponse>} - Success response
|
|
54
54
|
* @name submitCustomForm
|
|
55
55
|
* @summary: Submits form data
|
|
56
56
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
57
57
|
*/
|
|
58
|
-
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<
|
|
58
|
+
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SubmitCustomFormResponse>;
|
|
59
59
|
}
|
|
@@ -212,7 +212,7 @@ class Lead {
|
|
|
212
212
|
/**
|
|
213
213
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
214
214
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
215
|
-
* @returns {Promise<
|
|
215
|
+
* @returns {Promise<SubmitCustomFormResponse>} - Success response
|
|
216
216
|
* @name submitCustomForm
|
|
217
217
|
* @summary: Submits form data
|
|
218
218
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|