@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -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 +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -3,15 +3,20 @@ const Joi = require("joi");
|
|
|
3
3
|
const ContentPlatformModel = require("./ContentPlatformModel");
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @typedef
|
|
6
|
+
* @typedef CreateCustomFieldByResourceIdParam
|
|
7
7
|
* @property {string} resource
|
|
8
|
+
* @property {string} resourceId
|
|
9
|
+
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @typedef CreateCustomFieldDefinitionParam
|
|
8
14
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
9
15
|
*/
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
|
-
* @typedef
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
18
|
+
* @typedef CreateCustomObjectParam
|
|
19
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
15
20
|
*/
|
|
16
21
|
|
|
17
22
|
/**
|
|
@@ -20,51 +25,35 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
20
25
|
*/
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
|
-
* @typedef
|
|
24
|
-
* @property {string}
|
|
25
|
-
* @property {string} resource
|
|
26
|
-
* @property {string} namespace
|
|
28
|
+
* @typedef DeleteCustomFieldDefinitionParam
|
|
29
|
+
* @property {string} id
|
|
27
30
|
*/
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
|
-
* @typedef
|
|
33
|
+
* @typedef DeleteCustomFieldsByResourceIdParam
|
|
31
34
|
* @property {string} resource
|
|
32
|
-
* @property {string}
|
|
35
|
+
* @property {string} resourceId
|
|
33
36
|
* @property {string} ids
|
|
34
37
|
*/
|
|
35
38
|
|
|
36
39
|
/**
|
|
37
|
-
* @typedef
|
|
38
|
-
* @property {string}
|
|
39
|
-
* @property {string} slug
|
|
40
|
+
* @typedef DeleteCustomObjectParam
|
|
41
|
+
* @property {string} id
|
|
40
42
|
*/
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
-
* @property {string}
|
|
45
|
+
* @typedef DeleteCustomObjectDefinitionParam
|
|
46
|
+
* @property {string} id
|
|
45
47
|
*/
|
|
46
48
|
|
|
47
49
|
/**
|
|
48
|
-
* @typedef
|
|
49
|
-
* @property {string}
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @typedef GetCustomFieldDefinitionByResourceParam
|
|
54
|
-
* @property {string} pageNo
|
|
55
|
-
* @property {string} pageSize
|
|
56
|
-
* @property {string} resource
|
|
57
|
-
* @property {string} [types]
|
|
58
|
-
* @property {string} [search]
|
|
59
|
-
* @property {string} [slugs]
|
|
60
|
-
* @property {string} [namespaces]
|
|
50
|
+
* @typedef ExportCustomObjectEntriesParam
|
|
51
|
+
* @property {string} definitionId
|
|
61
52
|
*/
|
|
62
53
|
|
|
63
54
|
/**
|
|
64
|
-
* @typedef
|
|
65
|
-
* @property {string}
|
|
66
|
-
* @property {string} resource
|
|
67
|
-
* @property {string} namespace
|
|
55
|
+
* @typedef GetCustomFieldDefinitionParam
|
|
56
|
+
* @property {string} id
|
|
68
57
|
*/
|
|
69
58
|
|
|
70
59
|
/**
|
|
@@ -75,26 +64,36 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
75
64
|
* @property {string} [types]
|
|
76
65
|
* @property {string} [search]
|
|
77
66
|
* @property {string} [slugs]
|
|
78
|
-
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @typedef GetCustomFieldJobsParam
|
|
71
|
+
* @property {string} page
|
|
72
|
+
* @property {string} pageSize
|
|
73
|
+
* @property {string} actionType
|
|
79
74
|
*/
|
|
80
75
|
|
|
81
76
|
/** @typedef GetCustomFieldTypesParam */
|
|
82
77
|
|
|
83
78
|
/**
|
|
84
|
-
* @typedef
|
|
79
|
+
* @typedef GetCustomFieldsParam
|
|
85
80
|
* @property {string} resource
|
|
86
|
-
* @property {string} resourceSlug
|
|
87
81
|
*/
|
|
88
82
|
|
|
89
83
|
/**
|
|
90
|
-
* @typedef
|
|
91
|
-
* @property {string}
|
|
92
|
-
* @property {string}
|
|
84
|
+
* @typedef GetCustomFieldsByResourceIdParam
|
|
85
|
+
* @property {string} resource
|
|
86
|
+
* @property {string} resourceId
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @typedef GetCustomObjectParam
|
|
91
|
+
* @property {string} id
|
|
93
92
|
*/
|
|
94
93
|
|
|
95
94
|
/**
|
|
96
|
-
* @typedef
|
|
97
|
-
* @property {string}
|
|
95
|
+
* @typedef GetCustomObjectDefinitionParam
|
|
96
|
+
* @property {string} id
|
|
98
97
|
*/
|
|
99
98
|
|
|
100
99
|
/**
|
|
@@ -105,10 +104,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
105
104
|
*/
|
|
106
105
|
|
|
107
106
|
/**
|
|
108
|
-
* @typedef
|
|
107
|
+
* @typedef GetCustomObjectsParam
|
|
108
|
+
* @property {string} [definitionId]
|
|
109
109
|
* @property {string} pageNo
|
|
110
110
|
* @property {string} pageSize
|
|
111
|
-
* @property {string} definitionSlug
|
|
112
111
|
*/
|
|
113
112
|
|
|
114
113
|
/**
|
|
@@ -121,58 +120,62 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
121
120
|
/** @typedef GetResourcesParam */
|
|
122
121
|
|
|
123
122
|
/**
|
|
124
|
-
* @typedef
|
|
125
|
-
* @property {string}
|
|
123
|
+
* @typedef ImportCustomObjectEntriesParam
|
|
124
|
+
* @property {string} definitionId
|
|
126
125
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
127
126
|
*/
|
|
128
127
|
|
|
129
128
|
/**
|
|
130
|
-
* @typedef
|
|
131
|
-
* @property {string}
|
|
129
|
+
* @typedef SampleCustomObjectBulkEntryParam
|
|
130
|
+
* @property {string} definitionId
|
|
132
131
|
*/
|
|
133
132
|
|
|
134
133
|
/**
|
|
135
|
-
* @typedef
|
|
134
|
+
* @typedef UpdateCustomFieldByResourceIdParam
|
|
136
135
|
* @property {string} resource
|
|
137
|
-
* @property {string}
|
|
136
|
+
* @property {string} resourceId
|
|
138
137
|
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
139
138
|
*/
|
|
140
139
|
|
|
141
140
|
/**
|
|
142
|
-
* @typedef
|
|
143
|
-
* @property {string}
|
|
144
|
-
* @property {string} resource
|
|
145
|
-
* @property {string} namespace
|
|
141
|
+
* @typedef UpdateCustomFieldDefinitionParam
|
|
142
|
+
* @property {string} id
|
|
146
143
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
147
144
|
*/
|
|
148
145
|
|
|
149
146
|
/**
|
|
150
|
-
* @typedef
|
|
151
|
-
* @property {string}
|
|
152
|
-
* @property {
|
|
153
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
147
|
+
* @typedef UpdateCustomObjectParam
|
|
148
|
+
* @property {string} id
|
|
149
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
154
150
|
*/
|
|
155
151
|
|
|
156
152
|
/**
|
|
157
|
-
* @typedef
|
|
158
|
-
* @property {string}
|
|
153
|
+
* @typedef UpdateCustomObjectDefinitionParam
|
|
154
|
+
* @property {string} id
|
|
159
155
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
160
156
|
*/
|
|
161
157
|
|
|
162
158
|
class ContentPlatformValidator {
|
|
159
|
+
/** @returns {CreateCustomFieldByResourceIdParam} */
|
|
160
|
+
static createCustomFieldByResourceId() {
|
|
161
|
+
return Joi.object({
|
|
162
|
+
resource: Joi.string().allow("").required(),
|
|
163
|
+
resourceId: Joi.string().allow("").required(),
|
|
164
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
165
|
+
}).required();
|
|
166
|
+
}
|
|
167
|
+
|
|
163
168
|
/** @returns {CreateCustomFieldDefinitionParam} */
|
|
164
169
|
static createCustomFieldDefinition() {
|
|
165
170
|
return Joi.object({
|
|
166
|
-
resource: Joi.string().allow("").required(),
|
|
167
171
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
168
172
|
}).required();
|
|
169
173
|
}
|
|
170
174
|
|
|
171
|
-
/** @returns {
|
|
172
|
-
static
|
|
175
|
+
/** @returns {CreateCustomObjectParam} */
|
|
176
|
+
static createCustomObject() {
|
|
173
177
|
return Joi.object({
|
|
174
|
-
|
|
175
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
178
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
176
179
|
}).required();
|
|
177
180
|
}
|
|
178
181
|
|
|
@@ -183,65 +186,47 @@ class ContentPlatformValidator {
|
|
|
183
186
|
}).required();
|
|
184
187
|
}
|
|
185
188
|
|
|
186
|
-
/** @returns {
|
|
187
|
-
static
|
|
189
|
+
/** @returns {DeleteCustomFieldDefinitionParam} */
|
|
190
|
+
static deleteCustomFieldDefinition() {
|
|
188
191
|
return Joi.object({
|
|
189
|
-
|
|
190
|
-
resource: Joi.string().allow("").required(),
|
|
191
|
-
namespace: Joi.string().allow("").required(),
|
|
192
|
+
id: Joi.string().allow("").required(),
|
|
192
193
|
}).required();
|
|
193
194
|
}
|
|
194
195
|
|
|
195
|
-
/** @returns {
|
|
196
|
-
static
|
|
196
|
+
/** @returns {DeleteCustomFieldsByResourceIdParam} */
|
|
197
|
+
static deleteCustomFieldsByResourceId() {
|
|
197
198
|
return Joi.object({
|
|
198
199
|
resource: Joi.string().allow("").required(),
|
|
199
|
-
|
|
200
|
+
resourceId: Joi.string().allow("").required(),
|
|
200
201
|
ids: Joi.string().allow("").required(),
|
|
201
202
|
}).required();
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
/** @returns {
|
|
205
|
-
static
|
|
205
|
+
/** @returns {DeleteCustomObjectParam} */
|
|
206
|
+
static deleteCustomObject() {
|
|
206
207
|
return Joi.object({
|
|
207
|
-
|
|
208
|
-
slug: Joi.string().allow("").required(),
|
|
208
|
+
id: Joi.string().allow("").required(),
|
|
209
209
|
}).required();
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
/** @returns {
|
|
213
|
-
static
|
|
212
|
+
/** @returns {DeleteCustomObjectDefinitionParam} */
|
|
213
|
+
static deleteCustomObjectDefinition() {
|
|
214
214
|
return Joi.object({
|
|
215
|
-
|
|
215
|
+
id: Joi.string().allow("").required(),
|
|
216
216
|
}).required();
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
/** @returns {
|
|
220
|
-
static
|
|
219
|
+
/** @returns {ExportCustomObjectEntriesParam} */
|
|
220
|
+
static exportCustomObjectEntries() {
|
|
221
221
|
return Joi.object({
|
|
222
|
-
|
|
223
|
-
}).required();
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/** @returns {GetCustomFieldDefinitionByResourceParam} */
|
|
227
|
-
static getCustomFieldDefinitionByResource() {
|
|
228
|
-
return Joi.object({
|
|
229
|
-
pageNo: Joi.string().allow("").required(),
|
|
230
|
-
pageSize: Joi.string().allow("").required(),
|
|
231
|
-
resource: Joi.string().allow("").required(),
|
|
232
|
-
types: Joi.string().allow(""),
|
|
233
|
-
search: Joi.string().allow(""),
|
|
234
|
-
slugs: Joi.string().allow(""),
|
|
235
|
-
namespaces: Joi.string().allow(""),
|
|
222
|
+
definitionId: Joi.string().allow("").required(),
|
|
236
223
|
}).required();
|
|
237
224
|
}
|
|
238
225
|
|
|
239
|
-
/** @returns {
|
|
240
|
-
static
|
|
226
|
+
/** @returns {GetCustomFieldDefinitionParam} */
|
|
227
|
+
static getCustomFieldDefinition() {
|
|
241
228
|
return Joi.object({
|
|
242
|
-
|
|
243
|
-
resource: Joi.string().allow("").required(),
|
|
244
|
-
namespace: Joi.string().allow("").required(),
|
|
229
|
+
id: Joi.string().allow("").required(),
|
|
245
230
|
}).required();
|
|
246
231
|
}
|
|
247
232
|
|
|
@@ -254,7 +239,15 @@ class ContentPlatformValidator {
|
|
|
254
239
|
types: Joi.string().allow(""),
|
|
255
240
|
search: Joi.string().allow(""),
|
|
256
241
|
slugs: Joi.string().allow(""),
|
|
257
|
-
|
|
242
|
+
}).required();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** @returns {GetCustomFieldJobsParam} */
|
|
246
|
+
static getCustomFieldJobs() {
|
|
247
|
+
return Joi.object({
|
|
248
|
+
page: Joi.string().allow("").required(),
|
|
249
|
+
pageSize: Joi.string().allow("").required(),
|
|
250
|
+
actionType: Joi.string().allow("").required(),
|
|
258
251
|
}).required();
|
|
259
252
|
}
|
|
260
253
|
|
|
@@ -263,26 +256,32 @@ class ContentPlatformValidator {
|
|
|
263
256
|
return Joi.object({}).required();
|
|
264
257
|
}
|
|
265
258
|
|
|
266
|
-
/** @returns {
|
|
267
|
-
static
|
|
259
|
+
/** @returns {GetCustomFieldsParam} */
|
|
260
|
+
static getCustomFields() {
|
|
268
261
|
return Joi.object({
|
|
269
262
|
resource: Joi.string().allow("").required(),
|
|
270
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
271
263
|
}).required();
|
|
272
264
|
}
|
|
273
265
|
|
|
274
|
-
/** @returns {
|
|
275
|
-
static
|
|
266
|
+
/** @returns {GetCustomFieldsByResourceIdParam} */
|
|
267
|
+
static getCustomFieldsByResourceId() {
|
|
276
268
|
return Joi.object({
|
|
277
|
-
|
|
278
|
-
|
|
269
|
+
resource: Joi.string().allow("").required(),
|
|
270
|
+
resourceId: Joi.string().allow("").required(),
|
|
279
271
|
}).required();
|
|
280
272
|
}
|
|
281
273
|
|
|
282
|
-
/** @returns {
|
|
283
|
-
static
|
|
274
|
+
/** @returns {GetCustomObjectParam} */
|
|
275
|
+
static getCustomObject() {
|
|
284
276
|
return Joi.object({
|
|
285
|
-
|
|
277
|
+
id: Joi.string().allow("").required(),
|
|
278
|
+
}).required();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** @returns {GetCustomObjectDefinitionParam} */
|
|
282
|
+
static getCustomObjectDefinition() {
|
|
283
|
+
return Joi.object({
|
|
284
|
+
id: Joi.string().allow("").required(),
|
|
286
285
|
}).required();
|
|
287
286
|
}
|
|
288
287
|
|
|
@@ -295,12 +294,12 @@ class ContentPlatformValidator {
|
|
|
295
294
|
}).required();
|
|
296
295
|
}
|
|
297
296
|
|
|
298
|
-
/** @returns {
|
|
299
|
-
static
|
|
297
|
+
/** @returns {GetCustomObjectsParam} */
|
|
298
|
+
static getCustomObjects() {
|
|
300
299
|
return Joi.object({
|
|
300
|
+
definitionId: Joi.string().allow(""),
|
|
301
301
|
pageNo: Joi.string().allow("").required(),
|
|
302
302
|
pageSize: Joi.string().allow("").required(),
|
|
303
|
-
definitionSlug: Joi.string().allow("").required(),
|
|
304
303
|
}).required();
|
|
305
304
|
}
|
|
306
305
|
|
|
@@ -318,53 +317,50 @@ class ContentPlatformValidator {
|
|
|
318
317
|
return Joi.object({}).required();
|
|
319
318
|
}
|
|
320
319
|
|
|
321
|
-
/** @returns {
|
|
322
|
-
static
|
|
320
|
+
/** @returns {ImportCustomObjectEntriesParam} */
|
|
321
|
+
static importCustomObjectEntries() {
|
|
323
322
|
return Joi.object({
|
|
324
|
-
|
|
323
|
+
definitionId: Joi.string().allow("").required(),
|
|
325
324
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
326
325
|
}).required();
|
|
327
326
|
}
|
|
328
327
|
|
|
329
|
-
/** @returns {
|
|
330
|
-
static
|
|
328
|
+
/** @returns {SampleCustomObjectBulkEntryParam} */
|
|
329
|
+
static sampleCustomObjectBulkEntry() {
|
|
331
330
|
return Joi.object({
|
|
332
|
-
|
|
331
|
+
definitionId: Joi.string().allow("").required(),
|
|
333
332
|
}).required();
|
|
334
333
|
}
|
|
335
334
|
|
|
336
|
-
/** @returns {
|
|
337
|
-
static
|
|
335
|
+
/** @returns {UpdateCustomFieldByResourceIdParam} */
|
|
336
|
+
static updateCustomFieldByResourceId() {
|
|
338
337
|
return Joi.object({
|
|
339
338
|
resource: Joi.string().allow("").required(),
|
|
340
|
-
|
|
339
|
+
resourceId: Joi.string().allow("").required(),
|
|
341
340
|
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
342
341
|
}).required();
|
|
343
342
|
}
|
|
344
343
|
|
|
345
|
-
/** @returns {
|
|
346
|
-
static
|
|
344
|
+
/** @returns {UpdateCustomFieldDefinitionParam} */
|
|
345
|
+
static updateCustomFieldDefinition() {
|
|
347
346
|
return Joi.object({
|
|
348
|
-
|
|
349
|
-
resource: Joi.string().allow("").required(),
|
|
350
|
-
namespace: Joi.string().allow("").required(),
|
|
347
|
+
id: Joi.string().allow("").required(),
|
|
351
348
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
352
349
|
}).required();
|
|
353
350
|
}
|
|
354
351
|
|
|
355
|
-
/** @returns {
|
|
356
|
-
static
|
|
352
|
+
/** @returns {UpdateCustomObjectParam} */
|
|
353
|
+
static updateCustomObject() {
|
|
357
354
|
return Joi.object({
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
355
|
+
id: Joi.string().allow("").required(),
|
|
356
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
361
357
|
}).required();
|
|
362
358
|
}
|
|
363
359
|
|
|
364
|
-
/** @returns {
|
|
365
|
-
static
|
|
360
|
+
/** @returns {UpdateCustomObjectDefinitionParam} */
|
|
361
|
+
static updateCustomObjectDefinition() {
|
|
366
362
|
return Joi.object({
|
|
367
|
-
|
|
363
|
+
id: Joi.string().allow("").required(),
|
|
368
364
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
369
365
|
}).required();
|
|
370
366
|
}
|
|
@@ -6,52 +6,50 @@ declare class Discount {
|
|
|
6
6
|
* @param {DiscountPlatformValidator.CancelDownloadJobParam} arg - Arg object
|
|
7
7
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
10
|
-
* Success response
|
|
9
|
+
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
11
10
|
* @name cancelDownloadJob
|
|
12
|
-
* @summary:
|
|
13
|
-
* @description: Cancel
|
|
11
|
+
* @summary: Cancel download job.
|
|
12
|
+
* @description: Cancel download Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
|
|
14
13
|
*/
|
|
15
|
-
cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
14
|
+
cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
|
|
16
15
|
/**
|
|
17
16
|
* @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
|
|
18
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
19
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
21
|
-
* Success response
|
|
19
|
+
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
22
20
|
* @name cancelValidationJob
|
|
23
|
-
* @summary:
|
|
24
|
-
* @description:
|
|
21
|
+
* @summary: Cancel validation job.
|
|
22
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
|
|
25
23
|
*/
|
|
26
|
-
cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
24
|
+
cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
|
|
27
25
|
/**
|
|
28
26
|
* @param {DiscountPlatformValidator.CreateDiscountParam} arg - Arg object
|
|
29
27
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
30
28
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
31
29
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
32
30
|
* @name createDiscount
|
|
33
|
-
* @summary: Create discount
|
|
34
|
-
* @description:
|
|
31
|
+
* @summary: Create discount.
|
|
32
|
+
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/createDiscount/).
|
|
35
33
|
*/
|
|
36
34
|
createDiscount({ body, requestHeaders }?: DiscountPlatformValidator.CreateDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
37
35
|
/**
|
|
38
36
|
* @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
|
|
39
37
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
40
38
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
41
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
39
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
42
40
|
* @name downloadDiscountFile
|
|
43
|
-
* @summary:
|
|
44
|
-
* @description:
|
|
41
|
+
* @summary: Download discount file.
|
|
42
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
|
|
45
43
|
*/
|
|
46
|
-
downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
44
|
+
downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
47
45
|
/**
|
|
48
46
|
* @param {DiscountPlatformValidator.GetDiscountParam} arg - Arg object
|
|
49
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
50
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
51
49
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
52
50
|
* @name getDiscount
|
|
53
|
-
* @summary: Get discount
|
|
54
|
-
* @description: Retrieve
|
|
51
|
+
* @summary: Get discount by ID.
|
|
52
|
+
* @description: Retrieve detailed information about a specific discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscount/).
|
|
55
53
|
*/
|
|
56
54
|
getDiscount({ id, requestHeaders }?: DiscountPlatformValidator.GetDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
57
55
|
/**
|
|
@@ -60,38 +58,63 @@ declare class Discount {
|
|
|
60
58
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
61
59
|
* @returns {Promise<DiscountPlatformModel.ListOrCalender>} - Success response
|
|
62
60
|
* @name getDiscounts
|
|
63
|
-
* @summary:
|
|
64
|
-
* @description: Retrieve a list of
|
|
61
|
+
* @summary: Get discounts.
|
|
62
|
+
* @description: Retrieve a list of available discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscounts/).
|
|
65
63
|
*/
|
|
66
64
|
getDiscounts({ view, q, pageNo, pageSize, archived, month, year, type, appIds, requestHeaders, }?: DiscountPlatformValidator.GetDiscountsParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.ListOrCalender>;
|
|
65
|
+
/**
|
|
66
|
+
* @param {Object} arg - Arg object.
|
|
67
|
+
* @param {string} [arg.view] - Listing or calender. Default is listing.
|
|
68
|
+
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
69
|
+
* complete name of a discount.
|
|
70
|
+
* @param {number} [arg.pageSize] - Page size. Default is 12.
|
|
71
|
+
* @param {boolean} [arg.archived] - Archived. Default is false.
|
|
72
|
+
* @param {number} [arg.month] - Month. Default is current month.
|
|
73
|
+
* @param {number} [arg.year] - Year. Default is current year.
|
|
74
|
+
* @param {string} [arg.type] - Basic or custom.
|
|
75
|
+
* @param {string[]} [arg.appIds] - Application ids.
|
|
76
|
+
* @returns {Paginator<DiscountPlatformModel.ListOrCalender>}
|
|
77
|
+
* @summary: Get discounts.
|
|
78
|
+
* @description: Retrieve a list of available discounts.
|
|
79
|
+
*/
|
|
80
|
+
getDiscountsPaginator({ view, q, pageSize, archived, month, year, type, appIds, }?: {
|
|
81
|
+
view?: string;
|
|
82
|
+
q?: string;
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
archived?: boolean;
|
|
85
|
+
month?: number;
|
|
86
|
+
year?: number;
|
|
87
|
+
type?: string;
|
|
88
|
+
appIds?: string[];
|
|
89
|
+
}): Paginator<DiscountPlatformModel.ListOrCalender>;
|
|
67
90
|
/**
|
|
68
91
|
* @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
|
|
69
92
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
93
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
71
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
94
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
72
95
|
* @name getDownloadJob
|
|
73
|
-
* @summary:
|
|
74
|
-
* @description:
|
|
96
|
+
* @summary: Get download job.
|
|
97
|
+
* @description: Download file Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
|
|
75
98
|
*/
|
|
76
|
-
getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
99
|
+
getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
77
100
|
/**
|
|
78
101
|
* @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
|
|
79
102
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
80
103
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
81
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
104
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
82
105
|
* @name getValidationJob
|
|
83
|
-
* @summary:
|
|
84
|
-
* @description:
|
|
106
|
+
* @summary: Get validation job.
|
|
107
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
|
|
85
108
|
*/
|
|
86
|
-
getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
109
|
+
getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
87
110
|
/**
|
|
88
111
|
* @param {DiscountPlatformValidator.UpdateDiscountParam} arg - Arg object
|
|
89
112
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
113
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
91
114
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
92
115
|
* @name updateDiscount
|
|
93
|
-
* @summary: Update discount
|
|
94
|
-
* @description:
|
|
116
|
+
* @summary: Update discount.
|
|
117
|
+
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/updateDiscount/).
|
|
95
118
|
*/
|
|
96
119
|
updateDiscount({ id, body, requestHeaders }?: DiscountPlatformValidator.UpdateDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
97
120
|
/**
|
|
@@ -100,20 +123,21 @@ declare class Discount {
|
|
|
100
123
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
124
|
* @returns {Promise<Object>} - Success response
|
|
102
125
|
* @name upsertDiscountItems
|
|
103
|
-
* @summary: Upsert discount items
|
|
104
|
-
* @description:
|
|
126
|
+
* @summary: Upsert discount items.
|
|
127
|
+
* @description: Create custom discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/upsertDiscountItems/).
|
|
105
128
|
*/
|
|
106
129
|
upsertDiscountItems({ id, body, requestHeaders }?: DiscountPlatformValidator.UpsertDiscountItemsParam, { responseHeaders }?: object): Promise<any>;
|
|
107
130
|
/**
|
|
108
131
|
* @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
|
|
109
132
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
110
133
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
111
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
134
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
112
135
|
* @name validateDiscountFile
|
|
113
|
-
* @summary: Validate discount file
|
|
114
|
-
* @description:
|
|
136
|
+
* @summary: Validate discount file.
|
|
137
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
|
|
115
138
|
*/
|
|
116
|
-
validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.
|
|
139
|
+
validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
117
140
|
}
|
|
118
141
|
import DiscountPlatformValidator = require("./DiscountPlatformValidator");
|
|
119
142
|
import DiscountPlatformModel = require("./DiscountPlatformModel");
|
|
143
|
+
import Paginator = require("../../common/Paginator");
|