@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
- package/sdk/application/Content/ContentApplicationModel.js +342 -276
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
- package/sdk/application/Order/OrderApplicationModel.js +392 -316
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
- package/sdk/platform/Content/ContentPlatformModel.js +30 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
- package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
- package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
- package/sdk/platform/Order/OrderPlatformModel.js +367 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
- package/sdk/platform/User/UserPlatformModel.js +9 -11
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
- package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -9,13 +9,6 @@ export = ConfigurationPlatformValidator;
|
|
|
9
9
|
* @property {number} [pageSize]
|
|
10
10
|
* @property {string} [q] - Search param by name or domain
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
* @typedef GetAvailableOptInsParam
|
|
14
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
15
|
-
* set of results. Default value is 1.
|
|
16
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
17
|
-
* Default value is 10.
|
|
18
|
-
*/
|
|
19
12
|
/**
|
|
20
13
|
* @typedef GetBrandsByCompanyParam
|
|
21
14
|
* @property {string} [q] - Search text for brand name
|
|
@@ -33,31 +26,6 @@ export = ConfigurationPlatformValidator;
|
|
|
33
26
|
* @typedef GetDomainAvailibilityParam
|
|
34
27
|
* @property {ConfigurationPlatformModel.DomainSuggestionsRequest} body
|
|
35
28
|
*/
|
|
36
|
-
/**
|
|
37
|
-
* @typedef GetIntegrationByIdParam
|
|
38
|
-
* @property {string} id - Integration id
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* @typedef GetIntegrationByLevelIdParam
|
|
42
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
43
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
44
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* @typedef GetIntegrationLevelConfigParam
|
|
48
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
49
|
-
* @property {string} level - Store or company
|
|
50
|
-
* @property {boolean} [opted] - True means get the opted stores. False means
|
|
51
|
-
* get the stores that aren't opted.
|
|
52
|
-
* @property {boolean} [checkPermission] - Filter on if permissions (for
|
|
53
|
-
* inventory/order) are present
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @typedef GetLevelActiveIntegrationsParam
|
|
57
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
58
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
59
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
60
|
-
*/
|
|
61
29
|
/**
|
|
62
30
|
* @typedef GetOtherSellerApplicationByIdParam
|
|
63
31
|
* @property {string} id - Application Id
|
|
@@ -69,15 +37,6 @@ export = ConfigurationPlatformValidator;
|
|
|
69
37
|
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
70
38
|
* Default value is 10.
|
|
71
39
|
*/
|
|
72
|
-
/**
|
|
73
|
-
* @typedef GetSelectedOptInsParam
|
|
74
|
-
* @property {string} level - Store or company
|
|
75
|
-
* @property {number} uid - Unique identifier of the selected integration level.
|
|
76
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
77
|
-
* set of results. Default value is 1.
|
|
78
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
79
|
-
* Default value is 10.
|
|
80
|
-
*/
|
|
81
40
|
/**
|
|
82
41
|
* @typedef GetStoreByBrandsParam
|
|
83
42
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
@@ -92,26 +51,11 @@ export = ConfigurationPlatformValidator;
|
|
|
92
51
|
* channel website) created within a business account.
|
|
93
52
|
* @property {ConfigurationPlatformModel.OptOutInventory} body
|
|
94
53
|
*/
|
|
95
|
-
/**
|
|
96
|
-
* @typedef UpdateLevelIntegrationParam
|
|
97
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
98
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
99
|
-
* @property {ConfigurationPlatformModel.UpdateIntegrationLevelRequest} body
|
|
100
|
-
*/
|
|
101
|
-
/**
|
|
102
|
-
* @typedef UpdateLevelUidIntegrationParam
|
|
103
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
104
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
105
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
106
|
-
* @property {ConfigurationPlatformModel.IntegrationLevel} body
|
|
107
|
-
*/
|
|
108
54
|
declare class ConfigurationPlatformValidator {
|
|
109
55
|
/** @returns {CreateApplicationParam} */
|
|
110
56
|
static createApplication(): CreateApplicationParam;
|
|
111
57
|
/** @returns {GetApplicationsParam} */
|
|
112
58
|
static getApplications(): GetApplicationsParam;
|
|
113
|
-
/** @returns {GetAvailableOptInsParam} */
|
|
114
|
-
static getAvailableOptIns(): GetAvailableOptInsParam;
|
|
115
59
|
/** @returns {GetBrandsByCompanyParam} */
|
|
116
60
|
static getBrandsByCompany(): GetBrandsByCompanyParam;
|
|
117
61
|
/** @returns {GetCompanyByBrandsParam} */
|
|
@@ -120,31 +64,17 @@ declare class ConfigurationPlatformValidator {
|
|
|
120
64
|
static getCurrencies(): any;
|
|
121
65
|
/** @returns {GetDomainAvailibilityParam} */
|
|
122
66
|
static getDomainAvailibility(): GetDomainAvailibilityParam;
|
|
123
|
-
/** @returns {GetIntegrationByIdParam} */
|
|
124
|
-
static getIntegrationById(): GetIntegrationByIdParam;
|
|
125
|
-
/** @returns {GetIntegrationByLevelIdParam} */
|
|
126
|
-
static getIntegrationByLevelId(): GetIntegrationByLevelIdParam;
|
|
127
|
-
/** @returns {GetIntegrationLevelConfigParam} */
|
|
128
|
-
static getIntegrationLevelConfig(): GetIntegrationLevelConfigParam;
|
|
129
|
-
/** @returns {GetLevelActiveIntegrationsParam} */
|
|
130
|
-
static getLevelActiveIntegrations(): GetLevelActiveIntegrationsParam;
|
|
131
67
|
/** @returns {GetOtherSellerApplicationByIdParam} */
|
|
132
68
|
static getOtherSellerApplicationById(): GetOtherSellerApplicationByIdParam;
|
|
133
69
|
/** @returns {GetOtherSellerApplicationsParam} */
|
|
134
70
|
static getOtherSellerApplications(): GetOtherSellerApplicationsParam;
|
|
135
|
-
/** @returns {GetSelectedOptInsParam} */
|
|
136
|
-
static getSelectedOptIns(): GetSelectedOptInsParam;
|
|
137
71
|
/** @returns {GetStoreByBrandsParam} */
|
|
138
72
|
static getStoreByBrands(): GetStoreByBrandsParam;
|
|
139
73
|
/** @returns {OptOutFromApplicationParam} */
|
|
140
74
|
static optOutFromApplication(): OptOutFromApplicationParam;
|
|
141
|
-
/** @returns {UpdateLevelIntegrationParam} */
|
|
142
|
-
static updateLevelIntegration(): UpdateLevelIntegrationParam;
|
|
143
|
-
/** @returns {UpdateLevelUidIntegrationParam} */
|
|
144
|
-
static updateLevelUidIntegration(): UpdateLevelUidIntegrationParam;
|
|
145
75
|
}
|
|
146
76
|
declare namespace ConfigurationPlatformValidator {
|
|
147
|
-
export { CreateApplicationParam, GetApplicationsParam,
|
|
77
|
+
export { CreateApplicationParam, GetApplicationsParam, GetBrandsByCompanyParam, GetCompanyByBrandsParam, GetCurrenciesParam, GetDomainAvailibilityParam, GetOtherSellerApplicationByIdParam, GetOtherSellerApplicationsParam, GetStoreByBrandsParam, OptOutFromApplicationParam };
|
|
148
78
|
}
|
|
149
79
|
type CreateApplicationParam = {
|
|
150
80
|
body: ConfigurationPlatformModel.CreateApplicationRequest;
|
|
@@ -157,18 +87,6 @@ type GetApplicationsParam = {
|
|
|
157
87
|
*/
|
|
158
88
|
q?: string;
|
|
159
89
|
};
|
|
160
|
-
type GetAvailableOptInsParam = {
|
|
161
|
-
/**
|
|
162
|
-
* - The page number to navigate through the given
|
|
163
|
-
* set of results. Default value is 1.
|
|
164
|
-
*/
|
|
165
|
-
pageNo?: number;
|
|
166
|
-
/**
|
|
167
|
-
* - The number of items to retrieve in each page.
|
|
168
|
-
* Default value is 10.
|
|
169
|
-
*/
|
|
170
|
-
pageSize?: number;
|
|
171
|
-
};
|
|
172
90
|
type GetBrandsByCompanyParam = {
|
|
173
91
|
/**
|
|
174
92
|
* - Search text for brand name
|
|
@@ -191,60 +109,6 @@ type GetCompanyByBrandsParam = {
|
|
|
191
109
|
type GetDomainAvailibilityParam = {
|
|
192
110
|
body: ConfigurationPlatformModel.DomainSuggestionsRequest;
|
|
193
111
|
};
|
|
194
|
-
type GetIntegrationByIdParam = {
|
|
195
|
-
/**
|
|
196
|
-
* - Integration id
|
|
197
|
-
*/
|
|
198
|
-
id: string;
|
|
199
|
-
};
|
|
200
|
-
type GetIntegrationByLevelIdParam = {
|
|
201
|
-
/**
|
|
202
|
-
* - Integration ID (24-digit Mongo Object ID)
|
|
203
|
-
*/
|
|
204
|
-
id: string;
|
|
205
|
-
/**
|
|
206
|
-
* - Integration level, `store` or `company`
|
|
207
|
-
*/
|
|
208
|
-
level: string;
|
|
209
|
-
/**
|
|
210
|
-
* - Unique identifier of integration level (store/company)
|
|
211
|
-
*/
|
|
212
|
-
uid: number;
|
|
213
|
-
};
|
|
214
|
-
type GetIntegrationLevelConfigParam = {
|
|
215
|
-
/**
|
|
216
|
-
* - Integration ID (24-digit Mongo Object ID)
|
|
217
|
-
*/
|
|
218
|
-
id: string;
|
|
219
|
-
/**
|
|
220
|
-
* - Store or company
|
|
221
|
-
*/
|
|
222
|
-
level: string;
|
|
223
|
-
/**
|
|
224
|
-
* - True means get the opted stores. False means
|
|
225
|
-
* get the stores that aren't opted.
|
|
226
|
-
*/
|
|
227
|
-
opted?: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* - Filter on if permissions (for
|
|
230
|
-
* inventory/order) are present
|
|
231
|
-
*/
|
|
232
|
-
checkPermission?: boolean;
|
|
233
|
-
};
|
|
234
|
-
type GetLevelActiveIntegrationsParam = {
|
|
235
|
-
/**
|
|
236
|
-
* - Integration ID (24-digit Mongo Object ID)
|
|
237
|
-
*/
|
|
238
|
-
id: string;
|
|
239
|
-
/**
|
|
240
|
-
* - Integration level, `store` or `company`
|
|
241
|
-
*/
|
|
242
|
-
level: string;
|
|
243
|
-
/**
|
|
244
|
-
* - Unique identifier of integration level (store/company)
|
|
245
|
-
*/
|
|
246
|
-
uid: number;
|
|
247
|
-
};
|
|
248
112
|
type GetOtherSellerApplicationByIdParam = {
|
|
249
113
|
/**
|
|
250
114
|
* - Application Id
|
|
@@ -263,26 +127,6 @@ type GetOtherSellerApplicationsParam = {
|
|
|
263
127
|
*/
|
|
264
128
|
pageSize?: number;
|
|
265
129
|
};
|
|
266
|
-
type GetSelectedOptInsParam = {
|
|
267
|
-
/**
|
|
268
|
-
* - Store or company
|
|
269
|
-
*/
|
|
270
|
-
level: string;
|
|
271
|
-
/**
|
|
272
|
-
* - Unique identifier of the selected integration level.
|
|
273
|
-
*/
|
|
274
|
-
uid: number;
|
|
275
|
-
/**
|
|
276
|
-
* - The page number to navigate through the given
|
|
277
|
-
* set of results. Default value is 1.
|
|
278
|
-
*/
|
|
279
|
-
pageNo?: number;
|
|
280
|
-
/**
|
|
281
|
-
* - The number of items to retrieve in each page.
|
|
282
|
-
* Default value is 10.
|
|
283
|
-
*/
|
|
284
|
-
pageSize?: number;
|
|
285
|
-
};
|
|
286
130
|
type GetStoreByBrandsParam = {
|
|
287
131
|
/**
|
|
288
132
|
* - The page number to navigate through the given
|
|
@@ -304,31 +148,5 @@ type OptOutFromApplicationParam = {
|
|
|
304
148
|
id: string;
|
|
305
149
|
body: ConfigurationPlatformModel.OptOutInventory;
|
|
306
150
|
};
|
|
307
|
-
type UpdateLevelIntegrationParam = {
|
|
308
|
-
/**
|
|
309
|
-
* - Integration ID (24-digit Mongo Object ID)
|
|
310
|
-
*/
|
|
311
|
-
id: string;
|
|
312
|
-
/**
|
|
313
|
-
* - Integration level, `store` or `company`
|
|
314
|
-
*/
|
|
315
|
-
level: string;
|
|
316
|
-
body: ConfigurationPlatformModel.UpdateIntegrationLevelRequest;
|
|
317
|
-
};
|
|
318
|
-
type UpdateLevelUidIntegrationParam = {
|
|
319
|
-
/**
|
|
320
|
-
* - Integration ID (24-digit Mongo Object ID)
|
|
321
|
-
*/
|
|
322
|
-
id: string;
|
|
323
|
-
/**
|
|
324
|
-
* - Integration level, `store` or `company`
|
|
325
|
-
*/
|
|
326
|
-
level: string;
|
|
327
|
-
/**
|
|
328
|
-
* - Unique identifier of integration level (store/company)
|
|
329
|
-
*/
|
|
330
|
-
uid: number;
|
|
331
|
-
body: ConfigurationPlatformModel.IntegrationLevel;
|
|
332
|
-
};
|
|
333
151
|
type GetCurrenciesParam = any;
|
|
334
152
|
import ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
@@ -14,14 +14,6 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
|
14
14
|
* @property {string} [q] - Search param by name or domain
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* @typedef GetAvailableOptInsParam
|
|
19
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
20
|
-
* set of results. Default value is 1.
|
|
21
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
22
|
-
* Default value is 10.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
17
|
/**
|
|
26
18
|
* @typedef GetBrandsByCompanyParam
|
|
27
19
|
* @property {string} [q] - Search text for brand name
|
|
@@ -43,35 +35,6 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
|
43
35
|
* @property {ConfigurationPlatformModel.DomainSuggestionsRequest} body
|
|
44
36
|
*/
|
|
45
37
|
|
|
46
|
-
/**
|
|
47
|
-
* @typedef GetIntegrationByIdParam
|
|
48
|
-
* @property {string} id - Integration id
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @typedef GetIntegrationByLevelIdParam
|
|
53
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
54
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
55
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @typedef GetIntegrationLevelConfigParam
|
|
60
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
61
|
-
* @property {string} level - Store or company
|
|
62
|
-
* @property {boolean} [opted] - True means get the opted stores. False means
|
|
63
|
-
* get the stores that aren't opted.
|
|
64
|
-
* @property {boolean} [checkPermission] - Filter on if permissions (for
|
|
65
|
-
* inventory/order) are present
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @typedef GetLevelActiveIntegrationsParam
|
|
70
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
71
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
72
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
38
|
/**
|
|
76
39
|
* @typedef GetOtherSellerApplicationByIdParam
|
|
77
40
|
* @property {string} id - Application Id
|
|
@@ -85,16 +48,6 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
|
85
48
|
* Default value is 10.
|
|
86
49
|
*/
|
|
87
50
|
|
|
88
|
-
/**
|
|
89
|
-
* @typedef GetSelectedOptInsParam
|
|
90
|
-
* @property {string} level - Store or company
|
|
91
|
-
* @property {number} uid - Unique identifier of the selected integration level.
|
|
92
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
93
|
-
* set of results. Default value is 1.
|
|
94
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
95
|
-
* Default value is 10.
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
51
|
/**
|
|
99
52
|
* @typedef GetStoreByBrandsParam
|
|
100
53
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
@@ -111,21 +64,6 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
|
111
64
|
* @property {ConfigurationPlatformModel.OptOutInventory} body
|
|
112
65
|
*/
|
|
113
66
|
|
|
114
|
-
/**
|
|
115
|
-
* @typedef UpdateLevelIntegrationParam
|
|
116
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
117
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
118
|
-
* @property {ConfigurationPlatformModel.UpdateIntegrationLevelRequest} body
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef UpdateLevelUidIntegrationParam
|
|
123
|
-
* @property {string} id - Integration ID (24-digit Mongo Object ID)
|
|
124
|
-
* @property {string} level - Integration level, `store` or `company`
|
|
125
|
-
* @property {number} uid - Unique identifier of integration level (store/company)
|
|
126
|
-
* @property {ConfigurationPlatformModel.IntegrationLevel} body
|
|
127
|
-
*/
|
|
128
|
-
|
|
129
67
|
class ConfigurationPlatformValidator {
|
|
130
68
|
/** @returns {CreateApplicationParam} */
|
|
131
69
|
static createApplication() {
|
|
@@ -143,14 +81,6 @@ class ConfigurationPlatformValidator {
|
|
|
143
81
|
}).required();
|
|
144
82
|
}
|
|
145
83
|
|
|
146
|
-
/** @returns {GetAvailableOptInsParam} */
|
|
147
|
-
static getAvailableOptIns() {
|
|
148
|
-
return Joi.object({
|
|
149
|
-
pageNo: Joi.number(),
|
|
150
|
-
pageSize: Joi.number(),
|
|
151
|
-
}).required();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
84
|
/** @returns {GetBrandsByCompanyParam} */
|
|
155
85
|
static getBrandsByCompany() {
|
|
156
86
|
return Joi.object({
|
|
@@ -179,41 +109,6 @@ class ConfigurationPlatformValidator {
|
|
|
179
109
|
}).required();
|
|
180
110
|
}
|
|
181
111
|
|
|
182
|
-
/** @returns {GetIntegrationByIdParam} */
|
|
183
|
-
static getIntegrationById() {
|
|
184
|
-
return Joi.object({
|
|
185
|
-
id: Joi.string().allow("").required(),
|
|
186
|
-
}).required();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/** @returns {GetIntegrationByLevelIdParam} */
|
|
190
|
-
static getIntegrationByLevelId() {
|
|
191
|
-
return Joi.object({
|
|
192
|
-
id: Joi.string().allow("").required(),
|
|
193
|
-
level: Joi.string().allow("").required(),
|
|
194
|
-
uid: Joi.number().required(),
|
|
195
|
-
}).required();
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/** @returns {GetIntegrationLevelConfigParam} */
|
|
199
|
-
static getIntegrationLevelConfig() {
|
|
200
|
-
return Joi.object({
|
|
201
|
-
id: Joi.string().allow("").required(),
|
|
202
|
-
level: Joi.string().allow("").required(),
|
|
203
|
-
opted: Joi.boolean(),
|
|
204
|
-
checkPermission: Joi.boolean(),
|
|
205
|
-
}).required();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/** @returns {GetLevelActiveIntegrationsParam} */
|
|
209
|
-
static getLevelActiveIntegrations() {
|
|
210
|
-
return Joi.object({
|
|
211
|
-
id: Joi.string().allow("").required(),
|
|
212
|
-
level: Joi.string().allow("").required(),
|
|
213
|
-
uid: Joi.number().required(),
|
|
214
|
-
}).required();
|
|
215
|
-
}
|
|
216
|
-
|
|
217
112
|
/** @returns {GetOtherSellerApplicationByIdParam} */
|
|
218
113
|
static getOtherSellerApplicationById() {
|
|
219
114
|
return Joi.object({
|
|
@@ -229,16 +124,6 @@ class ConfigurationPlatformValidator {
|
|
|
229
124
|
}).required();
|
|
230
125
|
}
|
|
231
126
|
|
|
232
|
-
/** @returns {GetSelectedOptInsParam} */
|
|
233
|
-
static getSelectedOptIns() {
|
|
234
|
-
return Joi.object({
|
|
235
|
-
level: Joi.string().allow("").required(),
|
|
236
|
-
uid: Joi.number().required(),
|
|
237
|
-
pageNo: Joi.number(),
|
|
238
|
-
pageSize: Joi.number(),
|
|
239
|
-
}).required();
|
|
240
|
-
}
|
|
241
|
-
|
|
242
127
|
/** @returns {GetStoreByBrandsParam} */
|
|
243
128
|
static getStoreByBrands() {
|
|
244
129
|
return Joi.object({
|
|
@@ -255,25 +140,6 @@ class ConfigurationPlatformValidator {
|
|
|
255
140
|
body: ConfigurationPlatformModel.OptOutInventory().required(),
|
|
256
141
|
}).required();
|
|
257
142
|
}
|
|
258
|
-
|
|
259
|
-
/** @returns {UpdateLevelIntegrationParam} */
|
|
260
|
-
static updateLevelIntegration() {
|
|
261
|
-
return Joi.object({
|
|
262
|
-
id: Joi.string().allow("").required(),
|
|
263
|
-
level: Joi.string().allow("").required(),
|
|
264
|
-
body: ConfigurationPlatformModel.UpdateIntegrationLevelRequest().required(),
|
|
265
|
-
}).required();
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/** @returns {UpdateLevelUidIntegrationParam} */
|
|
269
|
-
static updateLevelUidIntegration() {
|
|
270
|
-
return Joi.object({
|
|
271
|
-
id: Joi.string().allow("").required(),
|
|
272
|
-
level: Joi.string().allow("").required(),
|
|
273
|
-
uid: Joi.number().required(),
|
|
274
|
-
body: ConfigurationPlatformModel.IntegrationLevel().required(),
|
|
275
|
-
}).required();
|
|
276
|
-
}
|
|
277
143
|
}
|
|
278
144
|
|
|
279
145
|
module.exports = ConfigurationPlatformValidator;
|
|
@@ -600,16 +600,6 @@ declare class Content {
|
|
|
600
600
|
* @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
|
|
601
601
|
*/
|
|
602
602
|
getBlogs({ pageNo, pageSize, tags, q, slug, title, status, requestHeaders }?: ContentPlatformApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentPlatformModel.BlogGetResponse>;
|
|
603
|
-
/**
|
|
604
|
-
* @param {ContentPlatformApplicationValidator.GetComponentByIdParam} arg - Arg object
|
|
605
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
606
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
607
|
-
* @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
|
|
608
|
-
* @name getComponentById
|
|
609
|
-
* @summary: Get component
|
|
610
|
-
* @description: Retrieve detailed information about a specific component. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getComponentById/).
|
|
611
|
-
*/
|
|
612
|
-
getComponentById({ slug, requestHeaders }?: ContentPlatformApplicationValidator.GetComponentByIdParam, { responseHeaders }?: object): Promise<ContentPlatformModel.BlogSchema>;
|
|
613
603
|
/**
|
|
614
604
|
* @param {ContentPlatformApplicationValidator.GetDataLoadersParam} arg - Arg object
|
|
615
605
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -4184,85 +4184,6 @@ class Content {
|
|
|
4184
4184
|
return response;
|
|
4185
4185
|
}
|
|
4186
4186
|
|
|
4187
|
-
/**
|
|
4188
|
-
* @param {ContentPlatformApplicationValidator.GetComponentByIdParam} arg - Arg object
|
|
4189
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4190
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4191
|
-
* @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
|
|
4192
|
-
* @name getComponentById
|
|
4193
|
-
* @summary: Get component
|
|
4194
|
-
* @description: Retrieve detailed information about a specific component. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getComponentById/).
|
|
4195
|
-
*/
|
|
4196
|
-
async getComponentById(
|
|
4197
|
-
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
4198
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
4199
|
-
) {
|
|
4200
|
-
const {
|
|
4201
|
-
error,
|
|
4202
|
-
} = ContentPlatformApplicationValidator.getComponentById().validate(
|
|
4203
|
-
{
|
|
4204
|
-
slug,
|
|
4205
|
-
},
|
|
4206
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4207
|
-
);
|
|
4208
|
-
if (error) {
|
|
4209
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
// Showing warrnings if extra unknown parameters are found
|
|
4213
|
-
const {
|
|
4214
|
-
error: warrning,
|
|
4215
|
-
} = ContentPlatformApplicationValidator.getComponentById().validate(
|
|
4216
|
-
{
|
|
4217
|
-
slug,
|
|
4218
|
-
},
|
|
4219
|
-
{ abortEarly: false, allowUnknown: false }
|
|
4220
|
-
);
|
|
4221
|
-
if (warrning) {
|
|
4222
|
-
Logger({
|
|
4223
|
-
level: "WARN",
|
|
4224
|
-
message: `Parameter Validation warrnings for platform > Content > getComponentById \n ${warrning}`,
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
const query_params = {};
|
|
4229
|
-
|
|
4230
|
-
const response = await PlatformAPIClient.execute(
|
|
4231
|
-
this.config,
|
|
4232
|
-
"get",
|
|
4233
|
-
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
|
|
4234
|
-
query_params,
|
|
4235
|
-
undefined,
|
|
4236
|
-
requestHeaders,
|
|
4237
|
-
{ responseHeaders }
|
|
4238
|
-
);
|
|
4239
|
-
|
|
4240
|
-
let responseData = response;
|
|
4241
|
-
if (responseHeaders) {
|
|
4242
|
-
responseData = response[0];
|
|
4243
|
-
}
|
|
4244
|
-
|
|
4245
|
-
const {
|
|
4246
|
-
error: res_error,
|
|
4247
|
-
} = ContentPlatformModel.BlogSchema().validate(responseData, {
|
|
4248
|
-
abortEarly: false,
|
|
4249
|
-
allowUnknown: true,
|
|
4250
|
-
});
|
|
4251
|
-
|
|
4252
|
-
if (res_error) {
|
|
4253
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
4254
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4255
|
-
} else {
|
|
4256
|
-
Logger({
|
|
4257
|
-
level: "WARN",
|
|
4258
|
-
message: `Response Validation Warnings for platform > Content > getComponentById \n ${res_error}`,
|
|
4259
|
-
});
|
|
4260
|
-
}
|
|
4261
|
-
}
|
|
4262
|
-
|
|
4263
|
-
return response;
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
4187
|
/**
|
|
4267
4188
|
* @param {ContentPlatformApplicationValidator.GetDataLoadersParam} arg - Arg object
|
|
4268
4189
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -232,11 +232,6 @@ export = ContentPlatformApplicationValidator;
|
|
|
232
232
|
* @property {string} [title] - Blogs retrieve based on the title passed.
|
|
233
233
|
* @property {string} [status] - Blogs retrieve based on the status passed.
|
|
234
234
|
*/
|
|
235
|
-
/**
|
|
236
|
-
* @typedef GetComponentByIdParam
|
|
237
|
-
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
238
|
-
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
239
|
-
*/
|
|
240
235
|
/** @typedef GetDataLoadersParam */
|
|
241
236
|
/**
|
|
242
237
|
* @typedef GetDataLoadersByServiceParam
|
|
@@ -565,8 +560,6 @@ declare class ContentPlatformApplicationValidator {
|
|
|
565
560
|
static getBlogBySlug(): GetBlogBySlugParam;
|
|
566
561
|
/** @returns {GetBlogsParam} */
|
|
567
562
|
static getBlogs(): GetBlogsParam;
|
|
568
|
-
/** @returns {GetComponentByIdParam} */
|
|
569
|
-
static getComponentById(): GetComponentByIdParam;
|
|
570
563
|
/** @returns {GetDataLoadersParam} */
|
|
571
564
|
static getDataLoaders(): any;
|
|
572
565
|
/** @returns {GetDataLoadersByServiceParam} */
|
|
@@ -665,7 +658,7 @@ declare class ContentPlatformApplicationValidator {
|
|
|
665
658
|
static updateSupportInformation(): UpdateSupportInformationParam;
|
|
666
659
|
}
|
|
667
660
|
declare namespace ContentPlatformApplicationValidator {
|
|
668
|
-
export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateAppCustomFieldByResourceIdParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectParam, CreateAppCustomObjectDefinitionParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreatePagePreviewParam, CreateSEOMarkupSchemaParam, CreateSlideshowParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionParam, DeleteAppCustomObjectParam, DeleteAppCustomObjectDefinitionParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, DeleteSlideshowParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsParam, GetAppCustomFieldsByResourceIdParam, GetAppCustomObjectParam, GetAppCustomObjectDefinitionParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsParam, GetAppJobsParam, GetAppResourcesParam, GetBlogBySlugParam, GetBlogsParam,
|
|
661
|
+
export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateAppCustomFieldByResourceIdParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectParam, CreateAppCustomObjectDefinitionParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreatePagePreviewParam, CreateSEOMarkupSchemaParam, CreateSlideshowParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionParam, DeleteAppCustomObjectParam, DeleteAppCustomObjectDefinitionParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, DeleteSlideshowParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsParam, GetAppCustomFieldsByResourceIdParam, GetAppCustomObjectParam, GetAppCustomObjectDefinitionParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsParam, GetAppJobsParam, GetAppResourcesParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSlideshowBySlugParam, GetSlideshowsParam, GetSupportInformationParam, ImportAppCustomObjectEntriesParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppCustomFieldDefinitionParam, UpdateAppCustomObjectParam, UpdateAppCustomObjectDefinitionParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateInjectableTagParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSlideshowParam, UpdateSupportInformationParam };
|
|
669
662
|
}
|
|
670
663
|
type AddDataLoaderParam = {
|
|
671
664
|
body: ContentPlatformModel.DataLoaderSchema;
|
|
@@ -933,13 +926,6 @@ type GetBlogsParam = {
|
|
|
933
926
|
*/
|
|
934
927
|
status?: string;
|
|
935
928
|
};
|
|
936
|
-
type GetComponentByIdParam = {
|
|
937
|
-
/**
|
|
938
|
-
* - A short, human-readable, URL-friendly identifier of
|
|
939
|
-
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
940
|
-
*/
|
|
941
|
-
slug: string;
|
|
942
|
-
};
|
|
943
929
|
type GetDataLoadersByServiceParam = {
|
|
944
930
|
/**
|
|
945
931
|
* - Service name of the data loader..
|
|
@@ -286,12 +286,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
286
286
|
* @property {string} [status] - Blogs retrieve based on the status passed.
|
|
287
287
|
*/
|
|
288
288
|
|
|
289
|
-
/**
|
|
290
|
-
* @typedef GetComponentByIdParam
|
|
291
|
-
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
292
|
-
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
289
|
/** @typedef GetDataLoadersParam */
|
|
296
290
|
|
|
297
291
|
/**
|
|
@@ -945,13 +939,6 @@ class ContentPlatformApplicationValidator {
|
|
|
945
939
|
}).required();
|
|
946
940
|
}
|
|
947
941
|
|
|
948
|
-
/** @returns {GetComponentByIdParam} */
|
|
949
|
-
static getComponentById() {
|
|
950
|
-
return Joi.object({
|
|
951
|
-
slug: Joi.string().allow("").required(),
|
|
952
|
-
}).required();
|
|
953
|
-
}
|
|
954
|
-
|
|
955
942
|
/** @returns {GetDataLoadersParam} */
|
|
956
943
|
static getDataLoaders() {
|
|
957
944
|
return Joi.object({}).required();
|