@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- 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 +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- 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 +4 -2
- 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/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -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 +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +810 -6
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/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/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -6,9 +6,10 @@ declare class Content {
|
|
|
6
6
|
getAnnouncements: string;
|
|
7
7
|
getBlog: string;
|
|
8
8
|
getBlogs: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
getCustomFieldsByResourceId: string;
|
|
10
|
+
getCustomObjectBySlug: string;
|
|
11
11
|
getDataLoaders: string;
|
|
12
|
+
getDefaultSitemapConfig: string;
|
|
12
13
|
getFaqBySlug: string;
|
|
13
14
|
getFaqCategories: string;
|
|
14
15
|
getFaqCategoryBySlug: string;
|
|
@@ -21,6 +22,8 @@ declare class Content {
|
|
|
21
22
|
getPages: string;
|
|
22
23
|
getSEOConfiguration: string;
|
|
23
24
|
getSEOMarkupSchemas: string;
|
|
25
|
+
getSitemap: string;
|
|
26
|
+
getSitemaps: string;
|
|
24
27
|
getSlideshow: string;
|
|
25
28
|
getSlideshows: string;
|
|
26
29
|
getSupportInformation: string;
|
|
@@ -45,34 +48,34 @@ declare class Content {
|
|
|
45
48
|
* @summary: Get a blog
|
|
46
49
|
* @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
50
|
*/
|
|
48
|
-
getBlog({ slug, rootId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<BlogSchema>;
|
|
51
|
+
getBlog({ slug, rootId, preview, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<BlogSchema>;
|
|
49
52
|
/**
|
|
50
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
51
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
52
|
-
* @returns {Promise<
|
|
55
|
+
* @returns {Promise<BlogGetDetails>} - Success response
|
|
53
56
|
* @name getBlogs
|
|
54
57
|
* @summary: List blogs
|
|
55
58
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
56
59
|
*/
|
|
57
|
-
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
60
|
+
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<BlogGetDetails>;
|
|
58
61
|
/**
|
|
59
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
63
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
64
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
62
|
-
* @name
|
|
63
|
-
* @summary: Get list of custom fields
|
|
64
|
-
* @description:
|
|
65
|
+
* @name getCustomFieldsByResourceId
|
|
66
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
67
|
+
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFieldsByResourceId/).
|
|
65
68
|
*/
|
|
66
|
-
|
|
69
|
+
getCustomFieldsByResourceId({ resource, resourceSlug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomFieldsResponseByResourceIdSchema>;
|
|
67
70
|
/**
|
|
68
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
72
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
70
73
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
71
|
-
* @name
|
|
72
|
-
* @summary: Get custom object
|
|
73
|
-
* @description:
|
|
74
|
+
* @name getCustomObjectBySlug
|
|
75
|
+
* @summary: Get custom object details
|
|
76
|
+
* @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjectBySlug/).
|
|
74
77
|
*/
|
|
75
|
-
|
|
78
|
+
getCustomObjectBySlug({ definitionSlug, slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomObjectByIdSchema>;
|
|
76
79
|
/**
|
|
77
80
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
78
81
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -82,6 +85,15 @@ declare class Content {
|
|
|
82
85
|
* @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/).
|
|
83
86
|
*/
|
|
84
87
|
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>;
|
|
85
97
|
/**
|
|
86
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
87
99
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -148,12 +160,12 @@ declare class Content {
|
|
|
148
160
|
/**
|
|
149
161
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
150
162
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
151
|
-
* @returns {Promise<
|
|
163
|
+
* @returns {Promise<NavigationGetDetails>} - Success response
|
|
152
164
|
* @name getNavigations
|
|
153
165
|
* @summary: List navigation items
|
|
154
166
|
* @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
167
|
*/
|
|
156
|
-
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
168
|
+
getNavigations({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<NavigationGetDetails>;
|
|
157
169
|
/**
|
|
158
170
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
159
171
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -166,12 +178,12 @@ declare class Content {
|
|
|
166
178
|
/**
|
|
167
179
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
168
180
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
169
|
-
* @returns {Promise<
|
|
181
|
+
* @returns {Promise<PageGetDetails>} - Success response
|
|
170
182
|
* @name getPages
|
|
171
183
|
* @summary: Lists pages
|
|
172
184
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
173
185
|
*/
|
|
174
|
-
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
186
|
+
getPages({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PageGetDetails>;
|
|
175
187
|
/**
|
|
176
188
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
177
189
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -190,6 +202,26 @@ declare class Content {
|
|
|
190
202
|
* @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/).
|
|
191
203
|
*/
|
|
192
204
|
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>;
|
|
193
225
|
/**
|
|
194
226
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
195
227
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -202,22 +234,12 @@ declare class Content {
|
|
|
202
234
|
/**
|
|
203
235
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
204
236
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
205
|
-
* @returns {Promise<
|
|
237
|
+
* @returns {Promise<SlideshowGetDetails>} - Success response
|
|
206
238
|
* @name getSlideshows
|
|
207
239
|
* @summary: List Slideshows
|
|
208
240
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
209
241
|
*/
|
|
210
|
-
getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
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>;
|
|
242
|
+
getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowGetDetails>;
|
|
221
243
|
/**
|
|
222
244
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
223
245
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -237,4 +259,3 @@ declare class Content {
|
|
|
237
259
|
*/
|
|
238
260
|
getTags({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TagsSchema>;
|
|
239
261
|
}
|
|
240
|
-
import Paginator = require("../../common/Paginator");
|
|
@@ -14,12 +14,14 @@ 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
|
+
getCustomFieldsByResourceId:
|
|
19
|
+
"/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",
|
|
20
|
+
getCustomObjectBySlug:
|
|
21
|
+
"/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",
|
|
22
22
|
getDataLoaders: "/service/application/content/v1.0/data-loader",
|
|
23
|
+
getDefaultSitemapConfig:
|
|
24
|
+
"/service/application/content/v1.0/seo/sitemap/default",
|
|
23
25
|
getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
|
|
24
26
|
getFaqCategories: "/service/application/content/v1.0/faq/categories",
|
|
25
27
|
getFaqCategoryBySlug:
|
|
@@ -29,13 +31,15 @@ class Content {
|
|
|
29
31
|
"/service/application/content/v1.0/faq/category/{slug}/faqs",
|
|
30
32
|
getLandingPage: "/service/application/content/v1.0/landing-page",
|
|
31
33
|
getLegalInformation: "/service/application/content/v1.0/legal",
|
|
32
|
-
getNavigations: "/service/application/content/
|
|
34
|
+
getNavigations: "/service/application/content/v2.0/navigations",
|
|
33
35
|
getPage: "/service/application/content/v2.0/pages/{slug}",
|
|
34
|
-
getPages: "/service/application/content/v2.0/pages
|
|
36
|
+
getPages: "/service/application/content/v2.0/pages",
|
|
35
37
|
getSEOConfiguration: "/service/application/content/v1.0/seo",
|
|
36
38
|
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",
|
|
37
41
|
getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
|
|
38
|
-
getSlideshows: "/service/application/content/v1.0/slideshow
|
|
42
|
+
getSlideshows: "/service/application/content/v1.0/slideshow",
|
|
39
43
|
getSupportInformation: "/service/application/content/v1.0/support",
|
|
40
44
|
getTags: "/service/application/content/v1.0/tags",
|
|
41
45
|
};
|
|
@@ -101,7 +105,7 @@ class Content {
|
|
|
101
105
|
* @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/).
|
|
102
106
|
*/
|
|
103
107
|
async getBlog(
|
|
104
|
-
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
108
|
+
{ slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
|
|
105
109
|
{ responseHeaders } = { responseHeaders: false }
|
|
106
110
|
) {
|
|
107
111
|
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
@@ -115,6 +119,7 @@ class Content {
|
|
|
115
119
|
|
|
116
120
|
const query_params = {};
|
|
117
121
|
query_params["root_id"] = rootId;
|
|
122
|
+
query_params["preview"] = preview;
|
|
118
123
|
|
|
119
124
|
const xHeaders = {};
|
|
120
125
|
|
|
@@ -142,7 +147,7 @@ class Content {
|
|
|
142
147
|
/**
|
|
143
148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
144
149
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
145
|
-
* @returns {Promise<
|
|
150
|
+
* @returns {Promise<BlogGetDetails>} - Success response
|
|
146
151
|
* @name getBlogs
|
|
147
152
|
* @summary: List blogs
|
|
148
153
|
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
@@ -184,17 +189,17 @@ class Content {
|
|
|
184
189
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
185
190
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
186
191
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
187
|
-
* @name
|
|
188
|
-
* @summary: Get list of custom fields
|
|
189
|
-
* @description:
|
|
192
|
+
* @name getCustomFieldsByResourceId
|
|
193
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
194
|
+
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFieldsByResourceId/).
|
|
190
195
|
*/
|
|
191
|
-
async
|
|
192
|
-
{ resource,
|
|
196
|
+
async getCustomFieldsByResourceId(
|
|
197
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
193
198
|
{ responseHeaders } = { responseHeaders: false }
|
|
194
199
|
) {
|
|
195
200
|
const errors = validateRequiredParams(arguments[0], [
|
|
196
201
|
"resource",
|
|
197
|
-
"
|
|
202
|
+
"resourceSlug",
|
|
198
203
|
]);
|
|
199
204
|
if (errors.length > 0) {
|
|
200
205
|
const error = new FDKClientValidationError({
|
|
@@ -212,8 +217,8 @@ class Content {
|
|
|
212
217
|
this._conf,
|
|
213
218
|
"get",
|
|
214
219
|
constructUrl({
|
|
215
|
-
url: this._urls["
|
|
216
|
-
params: { resource,
|
|
220
|
+
url: this._urls["getCustomFieldsByResourceId"],
|
|
221
|
+
params: { resource, resourceSlug },
|
|
217
222
|
}),
|
|
218
223
|
query_params,
|
|
219
224
|
undefined,
|
|
@@ -233,15 +238,18 @@ class Content {
|
|
|
233
238
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
234
239
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
235
240
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
236
|
-
* @name
|
|
237
|
-
* @summary: Get custom object
|
|
238
|
-
* @description:
|
|
241
|
+
* @name getCustomObjectBySlug
|
|
242
|
+
* @summary: Get custom object details
|
|
243
|
+
* @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjectBySlug/).
|
|
239
244
|
*/
|
|
240
|
-
async
|
|
241
|
-
{
|
|
245
|
+
async getCustomObjectBySlug(
|
|
246
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
242
247
|
{ responseHeaders } = { responseHeaders: false }
|
|
243
248
|
) {
|
|
244
|
-
const errors = validateRequiredParams(arguments[0], [
|
|
249
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
250
|
+
"definitionSlug",
|
|
251
|
+
"slug",
|
|
252
|
+
]);
|
|
245
253
|
if (errors.length > 0) {
|
|
246
254
|
const error = new FDKClientValidationError({
|
|
247
255
|
message: "Missing required field",
|
|
@@ -258,8 +266,8 @@ class Content {
|
|
|
258
266
|
this._conf,
|
|
259
267
|
"get",
|
|
260
268
|
constructUrl({
|
|
261
|
-
url: this._urls["
|
|
262
|
-
params: {
|
|
269
|
+
url: this._urls["getCustomObjectBySlug"],
|
|
270
|
+
params: { definitionSlug, slug },
|
|
263
271
|
}),
|
|
264
272
|
query_params,
|
|
265
273
|
undefined,
|
|
@@ -312,6 +320,43 @@ class Content {
|
|
|
312
320
|
return response;
|
|
313
321
|
}
|
|
314
322
|
|
|
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
|
+
|
|
315
360
|
/**
|
|
316
361
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
317
362
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -601,7 +646,7 @@ class Content {
|
|
|
601
646
|
/**
|
|
602
647
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
603
648
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
604
|
-
* @returns {Promise<
|
|
649
|
+
* @returns {Promise<NavigationGetDetails>} - Success response
|
|
605
650
|
* @name getNavigations
|
|
606
651
|
* @summary: List navigation items
|
|
607
652
|
* @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/).
|
|
@@ -687,7 +732,7 @@ class Content {
|
|
|
687
732
|
/**
|
|
688
733
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
689
734
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
690
|
-
* @returns {Promise<
|
|
735
|
+
* @returns {Promise<PageGetDetails>} - Success response
|
|
691
736
|
* @name getPages
|
|
692
737
|
* @summary: Lists pages
|
|
693
738
|
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
@@ -799,6 +844,93 @@ class Content {
|
|
|
799
844
|
return response;
|
|
800
845
|
}
|
|
801
846
|
|
|
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
|
+
|
|
802
934
|
/**
|
|
803
935
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
804
936
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -848,7 +980,7 @@ class Content {
|
|
|
848
980
|
/**
|
|
849
981
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
850
982
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
851
|
-
* @returns {Promise<
|
|
983
|
+
* @returns {Promise<SlideshowGetDetails>} - Success response
|
|
852
984
|
* @name getSlideshows
|
|
853
985
|
* @summary: List Slideshows
|
|
854
986
|
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
@@ -884,33 +1016,6 @@ class Content {
|
|
|
884
1016
|
return response;
|
|
885
1017
|
}
|
|
886
1018
|
|
|
887
|
-
/**
|
|
888
|
-
* @param {Object} arg - Arg object.
|
|
889
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
890
|
-
* @returns {Paginator<SlideshowGetResponse>}
|
|
891
|
-
* @summary: List Slideshows
|
|
892
|
-
* @description: List slideshows along with their details.
|
|
893
|
-
*/
|
|
894
|
-
getSlideshowsPaginator({ pageSize } = {}) {
|
|
895
|
-
const paginator = new Paginator();
|
|
896
|
-
const callback = async () => {
|
|
897
|
-
const pageId = paginator.nextId;
|
|
898
|
-
const pageNo = paginator.pageNo;
|
|
899
|
-
const pageType = "number";
|
|
900
|
-
const data = await this.getSlideshows({
|
|
901
|
-
pageNo: pageNo,
|
|
902
|
-
pageSize: pageSize,
|
|
903
|
-
});
|
|
904
|
-
paginator.setPaginator({
|
|
905
|
-
hasNext: data.page.has_next ? true : false,
|
|
906
|
-
nextId: data.page.next_id,
|
|
907
|
-
});
|
|
908
|
-
return data;
|
|
909
|
-
};
|
|
910
|
-
paginator.setCallback(callback.bind(this));
|
|
911
|
-
return paginator;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
1019
|
/**
|
|
915
1020
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
916
1021
|
* @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<FileUploadComplete>} - Success response
|
|
16
16
|
* @name completeUpload
|
|
17
|
-
* @summary:
|
|
17
|
+
* @summary: Finalizes upload process.
|
|
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<FileUploadComplete>;
|
|
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<SignUrlResult>} - Success response
|
|
25
25
|
* @name signUrls
|
|
26
|
-
* @summary:
|
|
26
|
+
* @summary: Signs file 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<SignUrlResult>;
|
|
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<FileUpload>} - 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<FileUpload>;
|
|
39
39
|
/**
|
|
40
40
|
* @param data
|
|
41
41
|
* @param {string} file_name
|
|
@@ -43,15 +43,13 @@ declare class FileStorage {
|
|
|
43
43
|
* @param {string} namespace
|
|
44
44
|
* @param {number} size
|
|
45
45
|
* @param {number} tags
|
|
46
|
-
* @param {string} enc_key
|
|
47
46
|
*/
|
|
48
|
-
upload({ data, file_name, content_type, namespace, size, tags,
|
|
47
|
+
upload({ data, file_name, content_type, namespace, size, tags, }?: {
|
|
49
48
|
data: any;
|
|
50
49
|
file_name: any;
|
|
51
50
|
content_type: any;
|
|
52
51
|
namespace: any;
|
|
53
52
|
size: any;
|
|
54
53
|
tags: any;
|
|
55
|
-
enc_key: any;
|
|
56
54
|
}): Promise<any>;
|
|
57
55
|
}
|
|
@@ -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/v2.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/v2.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<FileUploadComplete>} - Success response
|
|
43
43
|
* @name completeUpload
|
|
44
|
-
* @summary:
|
|
44
|
+
* @summary: Finalizes upload process.
|
|
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<SignUrlResult>} - Success response
|
|
89
89
|
* @name signUrls
|
|
90
|
-
* @summary:
|
|
90
|
+
* @summary: Signs file 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<FileUpload>} - 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,7 +173,6 @@ class FileStorage {
|
|
|
173
173
|
* @param {string} namespace
|
|
174
174
|
* @param {number} size
|
|
175
175
|
* @param {number} tags
|
|
176
|
-
* @param {string} enc_key
|
|
177
176
|
*/
|
|
178
177
|
FileStorage.prototype.upload = function ({
|
|
179
178
|
data,
|
|
@@ -182,7 +181,6 @@ FileStorage.prototype.upload = function ({
|
|
|
182
181
|
namespace,
|
|
183
182
|
size,
|
|
184
183
|
tags,
|
|
185
|
-
enc_key,
|
|
186
184
|
} = {}) {
|
|
187
185
|
return new Promise(async (resolve, reject) => {
|
|
188
186
|
try {
|
|
@@ -193,7 +191,6 @@ FileStorage.prototype.upload = function ({
|
|
|
193
191
|
content_type,
|
|
194
192
|
size: size,
|
|
195
193
|
tags: tags,
|
|
196
|
-
enc_key: enc_key,
|
|
197
194
|
},
|
|
198
195
|
});
|
|
199
196
|
if (dataObj.upload && dataObj.upload.url) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export = Finance;
|
|
2
|
+
declare class Finance {
|
|
3
|
+
constructor(_conf: any);
|
|
4
|
+
_conf: any;
|
|
5
|
+
_relativeUrls: {
|
|
6
|
+
customerCreditBalance: string;
|
|
7
|
+
lockUnlockCreditNote: string;
|
|
8
|
+
};
|
|
9
|
+
_urls: {};
|
|
10
|
+
updateUrls(urls: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
13
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
14
|
+
* @returns {Promise<CustomerCreditBalanceResponseSchema>} - Success response
|
|
15
|
+
* @name customerCreditBalance
|
|
16
|
+
* @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
|
|
17
|
+
* @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
|
|
18
|
+
*/
|
|
19
|
+
customerCreditBalance({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerCreditBalanceResponseSchema>;
|
|
20
|
+
/**
|
|
21
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
22
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
23
|
+
* @returns {Promise<LockUnlockResponseSchema>} - Success response
|
|
24
|
+
* @name lockUnlockCreditNote
|
|
25
|
+
* @summary: Lock or Unlock requested credit note.
|
|
26
|
+
* @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
|
|
27
|
+
*/
|
|
28
|
+
lockUnlockCreditNote({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LockUnlockResponseSchema>;
|
|
29
|
+
}
|