@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
|
@@ -18,11 +18,10 @@ class Discount {
|
|
|
18
18
|
* @param {DiscountPlatformValidator.CancelDownloadJobParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
22
|
-
* Success response
|
|
21
|
+
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
23
22
|
* @name cancelDownloadJob
|
|
24
|
-
* @summary:
|
|
25
|
-
* @description: Cancel
|
|
23
|
+
* @summary: Cancel download job.
|
|
24
|
+
* @description: Cancel download Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
|
|
26
25
|
*/
|
|
27
26
|
async cancelDownloadJob(
|
|
28
27
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -75,7 +74,7 @@ class Discount {
|
|
|
75
74
|
|
|
76
75
|
const {
|
|
77
76
|
error: res_error,
|
|
78
|
-
} = DiscountPlatformModel.
|
|
77
|
+
} = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
|
|
79
78
|
abortEarly: false,
|
|
80
79
|
allowUnknown: true,
|
|
81
80
|
});
|
|
@@ -98,11 +97,10 @@ class Discount {
|
|
|
98
97
|
* @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
|
|
99
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
99
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
102
|
-
* Success response
|
|
100
|
+
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
103
101
|
* @name cancelValidationJob
|
|
104
|
-
* @summary:
|
|
105
|
-
* @description:
|
|
102
|
+
* @summary: Cancel validation job.
|
|
103
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
|
|
106
104
|
*/
|
|
107
105
|
async cancelValidationJob(
|
|
108
106
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -155,7 +153,7 @@ class Discount {
|
|
|
155
153
|
|
|
156
154
|
const {
|
|
157
155
|
error: res_error,
|
|
158
|
-
} = DiscountPlatformModel.
|
|
156
|
+
} = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
|
|
159
157
|
abortEarly: false,
|
|
160
158
|
allowUnknown: true,
|
|
161
159
|
});
|
|
@@ -180,8 +178,8 @@ class Discount {
|
|
|
180
178
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
179
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
182
180
|
* @name createDiscount
|
|
183
|
-
* @summary: Create discount
|
|
184
|
-
* @description:
|
|
181
|
+
* @summary: Create discount.
|
|
182
|
+
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/createDiscount/).
|
|
185
183
|
*/
|
|
186
184
|
async createDiscount(
|
|
187
185
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -257,10 +255,10 @@ class Discount {
|
|
|
257
255
|
* @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
|
|
258
256
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
259
257
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
260
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
258
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
261
259
|
* @name downloadDiscountFile
|
|
262
|
-
* @summary:
|
|
263
|
-
* @description:
|
|
260
|
+
* @summary: Download discount file.
|
|
261
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
|
|
264
262
|
*/
|
|
265
263
|
async downloadDiscountFile(
|
|
266
264
|
{ type, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -315,7 +313,7 @@ class Discount {
|
|
|
315
313
|
|
|
316
314
|
const {
|
|
317
315
|
error: res_error,
|
|
318
|
-
} = DiscountPlatformModel.
|
|
316
|
+
} = DiscountPlatformModel.FileJobResponse().validate(responseData, {
|
|
319
317
|
abortEarly: false,
|
|
320
318
|
allowUnknown: true,
|
|
321
319
|
});
|
|
@@ -340,8 +338,8 @@ class Discount {
|
|
|
340
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
341
339
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
342
340
|
* @name getDiscount
|
|
343
|
-
* @summary: Get discount
|
|
344
|
-
* @description: Retrieve
|
|
341
|
+
* @summary: Get discount by ID.
|
|
342
|
+
* @description: Retrieve detailed information about a specific discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscount/).
|
|
345
343
|
*/
|
|
346
344
|
async getDiscount(
|
|
347
345
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -419,8 +417,8 @@ class Discount {
|
|
|
419
417
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
420
418
|
* @returns {Promise<DiscountPlatformModel.ListOrCalender>} - Success response
|
|
421
419
|
* @name getDiscounts
|
|
422
|
-
* @summary:
|
|
423
|
-
* @description: Retrieve a list of
|
|
420
|
+
* @summary: Get discounts.
|
|
421
|
+
* @description: Retrieve a list of available discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscounts/).
|
|
424
422
|
*/
|
|
425
423
|
async getDiscounts(
|
|
426
424
|
{
|
|
@@ -528,14 +526,65 @@ class Discount {
|
|
|
528
526
|
return response;
|
|
529
527
|
}
|
|
530
528
|
|
|
529
|
+
/**
|
|
530
|
+
* @param {Object} arg - Arg object.
|
|
531
|
+
* @param {string} [arg.view] - Listing or calender. Default is listing.
|
|
532
|
+
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
533
|
+
* complete name of a discount.
|
|
534
|
+
* @param {number} [arg.pageSize] - Page size. Default is 12.
|
|
535
|
+
* @param {boolean} [arg.archived] - Archived. Default is false.
|
|
536
|
+
* @param {number} [arg.month] - Month. Default is current month.
|
|
537
|
+
* @param {number} [arg.year] - Year. Default is current year.
|
|
538
|
+
* @param {string} [arg.type] - Basic or custom.
|
|
539
|
+
* @param {string[]} [arg.appIds] - Application ids.
|
|
540
|
+
* @returns {Paginator<DiscountPlatformModel.ListOrCalender>}
|
|
541
|
+
* @summary: Get discounts.
|
|
542
|
+
* @description: Retrieve a list of available discounts.
|
|
543
|
+
*/
|
|
544
|
+
getDiscountsPaginator({
|
|
545
|
+
view,
|
|
546
|
+
q,
|
|
547
|
+
pageSize,
|
|
548
|
+
archived,
|
|
549
|
+
month,
|
|
550
|
+
year,
|
|
551
|
+
type,
|
|
552
|
+
appIds,
|
|
553
|
+
} = {}) {
|
|
554
|
+
const paginator = new Paginator();
|
|
555
|
+
const callback = async () => {
|
|
556
|
+
const pageId = paginator.nextId;
|
|
557
|
+
const pageNo = paginator.pageNo;
|
|
558
|
+
const pageType = "number";
|
|
559
|
+
const data = await this.getDiscounts({
|
|
560
|
+
view: view,
|
|
561
|
+
q: q,
|
|
562
|
+
pageNo: pageNo,
|
|
563
|
+
pageSize: pageSize,
|
|
564
|
+
archived: archived,
|
|
565
|
+
month: month,
|
|
566
|
+
year: year,
|
|
567
|
+
type: type,
|
|
568
|
+
appIds: appIds,
|
|
569
|
+
});
|
|
570
|
+
paginator.setPaginator({
|
|
571
|
+
hasNext: data.page.has_next ? true : false,
|
|
572
|
+
nextId: data.page.next_id,
|
|
573
|
+
});
|
|
574
|
+
return data;
|
|
575
|
+
};
|
|
576
|
+
paginator.setCallback(callback.bind(this));
|
|
577
|
+
return paginator;
|
|
578
|
+
}
|
|
579
|
+
|
|
531
580
|
/**
|
|
532
581
|
* @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
|
|
533
582
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
534
583
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
535
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
584
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
536
585
|
* @name getDownloadJob
|
|
537
|
-
* @summary:
|
|
538
|
-
* @description:
|
|
586
|
+
* @summary: Get download job.
|
|
587
|
+
* @description: Download file Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
|
|
539
588
|
*/
|
|
540
589
|
async getDownloadJob(
|
|
541
590
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -588,7 +637,7 @@ class Discount {
|
|
|
588
637
|
|
|
589
638
|
const {
|
|
590
639
|
error: res_error,
|
|
591
|
-
} = DiscountPlatformModel.
|
|
640
|
+
} = DiscountPlatformModel.FileJobResponse().validate(responseData, {
|
|
592
641
|
abortEarly: false,
|
|
593
642
|
allowUnknown: true,
|
|
594
643
|
});
|
|
@@ -611,10 +660,10 @@ class Discount {
|
|
|
611
660
|
* @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
|
|
612
661
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
613
662
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
614
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
663
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
615
664
|
* @name getValidationJob
|
|
616
|
-
* @summary:
|
|
617
|
-
* @description:
|
|
665
|
+
* @summary: Get validation job.
|
|
666
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
|
|
618
667
|
*/
|
|
619
668
|
async getValidationJob(
|
|
620
669
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -667,7 +716,7 @@ class Discount {
|
|
|
667
716
|
|
|
668
717
|
const {
|
|
669
718
|
error: res_error,
|
|
670
|
-
} = DiscountPlatformModel.
|
|
719
|
+
} = DiscountPlatformModel.FileJobResponse().validate(responseData, {
|
|
671
720
|
abortEarly: false,
|
|
672
721
|
allowUnknown: true,
|
|
673
722
|
});
|
|
@@ -692,8 +741,8 @@ class Discount {
|
|
|
692
741
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
693
742
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
694
743
|
* @name updateDiscount
|
|
695
|
-
* @summary: Update discount
|
|
696
|
-
* @description:
|
|
744
|
+
* @summary: Update discount.
|
|
745
|
+
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/updateDiscount/).
|
|
697
746
|
*/
|
|
698
747
|
async updateDiscount(
|
|
699
748
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -773,8 +822,8 @@ class Discount {
|
|
|
773
822
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
774
823
|
* @returns {Promise<Object>} - Success response
|
|
775
824
|
* @name upsertDiscountItems
|
|
776
|
-
* @summary: Upsert discount items
|
|
777
|
-
* @description:
|
|
825
|
+
* @summary: Upsert discount items.
|
|
826
|
+
* @description: Create custom discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/upsertDiscountItems/).
|
|
778
827
|
*/
|
|
779
828
|
async upsertDiscountItems(
|
|
780
829
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -850,10 +899,10 @@ class Discount {
|
|
|
850
899
|
* @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
|
|
851
900
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
852
901
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
853
|
-
* @returns {Promise<DiscountPlatformModel.
|
|
902
|
+
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
854
903
|
* @name validateDiscountFile
|
|
855
|
-
* @summary: Validate discount file
|
|
856
|
-
* @description:
|
|
904
|
+
* @summary: Validate discount file.
|
|
905
|
+
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
|
|
857
906
|
*/
|
|
858
907
|
async validateDiscountFile(
|
|
859
908
|
{ body, discount, requestHeaders } = { requestHeaders: {} },
|
|
@@ -909,7 +958,7 @@ class Discount {
|
|
|
909
958
|
|
|
910
959
|
const {
|
|
911
960
|
error: res_error,
|
|
912
|
-
} = DiscountPlatformModel.
|
|
961
|
+
} = DiscountPlatformModel.FileJobResponse().validate(responseData, {
|
|
913
962
|
abortEarly: false,
|
|
914
963
|
allowUnknown: true,
|
|
915
964
|
});
|
|
@@ -9,8 +9,7 @@ export = DiscountPlatformModel;
|
|
|
9
9
|
* @property {string} name
|
|
10
10
|
* @property {number} company_id
|
|
11
11
|
* @property {boolean} is_active
|
|
12
|
-
* @property {string
|
|
13
|
-
* @property {string[]} [extension_ids]
|
|
12
|
+
* @property {string} app_id
|
|
14
13
|
* @property {string} job_type
|
|
15
14
|
* @property {string} discount_type
|
|
16
15
|
* @property {string} discount_level
|
|
@@ -18,7 +17,7 @@ export = DiscountPlatformModel;
|
|
|
18
17
|
* @property {string} [file_path]
|
|
19
18
|
* @property {number[]} [brand_ids]
|
|
20
19
|
* @property {number[]} [store_ids]
|
|
21
|
-
* @property {string[]} [
|
|
20
|
+
* @property {string[]} [factory_type_ids]
|
|
22
21
|
* @property {ValidityObject} validity
|
|
23
22
|
* @property {DiscountMeta} [discount_meta]
|
|
24
23
|
*/
|
|
@@ -37,15 +36,15 @@ export = DiscountPlatformModel;
|
|
|
37
36
|
* @property {string} name
|
|
38
37
|
* @property {number} company_id
|
|
39
38
|
* @property {boolean} is_active
|
|
40
|
-
* @property {string
|
|
41
|
-
* @property {string}
|
|
39
|
+
* @property {string} app_id
|
|
40
|
+
* @property {string} job_type
|
|
42
41
|
* @property {string} [discount_type]
|
|
43
|
-
* @property {string}
|
|
42
|
+
* @property {string} discount_level
|
|
44
43
|
* @property {number} [value]
|
|
45
44
|
* @property {string} [file_path]
|
|
46
45
|
* @property {number[]} [brand_ids]
|
|
47
46
|
* @property {number[]} [store_ids]
|
|
48
|
-
* @property {string[]} [
|
|
47
|
+
* @property {string[]} [factory_type_ids]
|
|
49
48
|
* @property {DiscountMeta} [discount_meta]
|
|
50
49
|
* @property {ValidityObject} validity
|
|
51
50
|
* @property {string} created_on
|
|
@@ -59,7 +58,7 @@ export = DiscountPlatformModel;
|
|
|
59
58
|
* @property {string} [name]
|
|
60
59
|
* @property {number} [company_id]
|
|
61
60
|
* @property {boolean} [is_active]
|
|
62
|
-
* @property {string
|
|
61
|
+
* @property {string} [app_id]
|
|
63
62
|
* @property {string} [job_type]
|
|
64
63
|
* @property {string} [discount_type]
|
|
65
64
|
* @property {string} [discount_level]
|
|
@@ -67,8 +66,7 @@ export = DiscountPlatformModel;
|
|
|
67
66
|
* @property {string} [file_path]
|
|
68
67
|
* @property {number[]} [brand_ids]
|
|
69
68
|
* @property {number[]} [store_ids]
|
|
70
|
-
* @property {string[]} [
|
|
71
|
-
* @property {string[]} [zone_ids]
|
|
69
|
+
* @property {string[]} [factory_type_ids]
|
|
72
70
|
* @property {DiscountMeta} [discount_meta]
|
|
73
71
|
* @property {ValidityObject} [validity]
|
|
74
72
|
* @property {string} [created_on]
|
|
@@ -87,6 +85,8 @@ export = DiscountPlatformModel;
|
|
|
87
85
|
* @property {string} [item_code]
|
|
88
86
|
* @property {string} [brand_name]
|
|
89
87
|
* @property {string} [seller_identifier]
|
|
88
|
+
* @property {string} [store_code]
|
|
89
|
+
* @property {string} [price_zone]
|
|
90
90
|
* @property {string} discount_type
|
|
91
91
|
* @property {number} value
|
|
92
92
|
* @property {DiscountMeta} [discount_meta]
|
|
@@ -97,7 +97,7 @@ export = DiscountPlatformModel;
|
|
|
97
97
|
* @property {DiscountItems[]} items
|
|
98
98
|
*/
|
|
99
99
|
/**
|
|
100
|
-
* @typedef
|
|
100
|
+
* @typedef FileJobResponse
|
|
101
101
|
* @property {string} stage
|
|
102
102
|
* @property {number} total
|
|
103
103
|
* @property {number} failed
|
|
@@ -108,21 +108,19 @@ export = DiscountPlatformModel;
|
|
|
108
108
|
* @property {string} _id - A unique identifier to distinguish and identify a job.
|
|
109
109
|
* @property {string} [file_path]
|
|
110
110
|
* @property {number} [progress]
|
|
111
|
-
* @property {string[]} [extension_ids]
|
|
112
|
-
* @property {string[]} [zone_ids]
|
|
113
111
|
* @property {string} [created_on]
|
|
114
112
|
* @property {string} [modified_on]
|
|
115
113
|
* @property {UserDetails} [created_by]
|
|
116
114
|
*/
|
|
117
115
|
/**
|
|
118
|
-
* @typedef
|
|
116
|
+
* @typedef FileJobRequest
|
|
119
117
|
* @property {string} name
|
|
120
118
|
* @property {boolean} is_active
|
|
121
119
|
* @property {number} company_id
|
|
122
|
-
* @property {string
|
|
123
|
-
* @property {string}
|
|
120
|
+
* @property {string} app_id
|
|
121
|
+
* @property {string} job_type
|
|
124
122
|
* @property {string} [discount_type]
|
|
125
|
-
* @property {string}
|
|
123
|
+
* @property {string} discount_level
|
|
126
124
|
* @property {string} [file_path]
|
|
127
125
|
* @property {number[]} [brand_ids]
|
|
128
126
|
* @property {number[]} [store_ids]
|
|
@@ -131,11 +129,10 @@ export = DiscountPlatformModel;
|
|
|
131
129
|
*/
|
|
132
130
|
/**
|
|
133
131
|
* @typedef DownloadFileJob
|
|
134
|
-
* @property {
|
|
135
|
-
* @property {number[]} [store_ids]
|
|
132
|
+
* @property {string} app_id
|
|
136
133
|
*/
|
|
137
134
|
/**
|
|
138
|
-
* @typedef
|
|
135
|
+
* @typedef CancelJobResponse
|
|
139
136
|
* @property {boolean} success
|
|
140
137
|
*/
|
|
141
138
|
/**
|
|
@@ -147,6 +144,7 @@ export = DiscountPlatformModel;
|
|
|
147
144
|
* @property {number} [current] - The current page number.
|
|
148
145
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
149
146
|
* @property {number} [size] - The number of items per page.
|
|
147
|
+
* @property {number} [total] - Total number of items.
|
|
150
148
|
*/
|
|
151
149
|
/**
|
|
152
150
|
* @typedef UserDetails
|
|
@@ -170,7 +168,7 @@ export = DiscountPlatformModel;
|
|
|
170
168
|
declare class DiscountPlatformModel {
|
|
171
169
|
}
|
|
172
170
|
declare namespace DiscountPlatformModel {
|
|
173
|
-
export { ValidityObject, CreateUpdateDiscount, DiscountMeta, DiscountJob, FileJobBody, ListOrCalender, DiscountItems, BulkDiscount,
|
|
171
|
+
export { ValidityObject, CreateUpdateDiscount, DiscountMeta, DiscountJob, FileJobBody, ListOrCalender, DiscountItems, BulkDiscount, FileJobResponse, FileJobRequest, DownloadFileJob, CancelJobResponse, Page, UserDetails, BadRequestObject, BadRequestData, BadRequestObjectGet };
|
|
174
172
|
}
|
|
175
173
|
/** @returns {ValidityObject} */
|
|
176
174
|
declare function ValidityObject(): ValidityObject;
|
|
@@ -184,8 +182,7 @@ type CreateUpdateDiscount = {
|
|
|
184
182
|
name: string;
|
|
185
183
|
company_id: number;
|
|
186
184
|
is_active: boolean;
|
|
187
|
-
|
|
188
|
-
extension_ids?: string[];
|
|
185
|
+
app_id: string;
|
|
189
186
|
job_type: string;
|
|
190
187
|
discount_type: string;
|
|
191
188
|
discount_level: string;
|
|
@@ -193,7 +190,7 @@ type CreateUpdateDiscount = {
|
|
|
193
190
|
file_path?: string;
|
|
194
191
|
brand_ids?: number[];
|
|
195
192
|
store_ids?: number[];
|
|
196
|
-
|
|
193
|
+
factory_type_ids?: string[];
|
|
197
194
|
validity: ValidityObject;
|
|
198
195
|
discount_meta?: DiscountMeta;
|
|
199
196
|
};
|
|
@@ -223,15 +220,15 @@ type DiscountJob = {
|
|
|
223
220
|
name: string;
|
|
224
221
|
company_id: number;
|
|
225
222
|
is_active: boolean;
|
|
226
|
-
|
|
227
|
-
job_type
|
|
223
|
+
app_id: string;
|
|
224
|
+
job_type: string;
|
|
228
225
|
discount_type?: string;
|
|
229
|
-
discount_level
|
|
226
|
+
discount_level: string;
|
|
230
227
|
value?: number;
|
|
231
228
|
file_path?: string;
|
|
232
229
|
brand_ids?: number[];
|
|
233
230
|
store_ids?: number[];
|
|
234
|
-
|
|
231
|
+
factory_type_ids?: string[];
|
|
235
232
|
discount_meta?: DiscountMeta;
|
|
236
233
|
validity: ValidityObject;
|
|
237
234
|
created_on: string;
|
|
@@ -246,7 +243,7 @@ type FileJobBody = {
|
|
|
246
243
|
name?: string;
|
|
247
244
|
company_id?: number;
|
|
248
245
|
is_active?: boolean;
|
|
249
|
-
|
|
246
|
+
app_id?: string;
|
|
250
247
|
job_type?: string;
|
|
251
248
|
discount_type?: string;
|
|
252
249
|
discount_level?: string;
|
|
@@ -254,8 +251,7 @@ type FileJobBody = {
|
|
|
254
251
|
file_path?: string;
|
|
255
252
|
brand_ids?: number[];
|
|
256
253
|
store_ids?: number[];
|
|
257
|
-
|
|
258
|
-
zone_ids?: string[];
|
|
254
|
+
factory_type_ids?: string[];
|
|
259
255
|
discount_meta?: DiscountMeta;
|
|
260
256
|
validity?: ValidityObject;
|
|
261
257
|
created_on?: string;
|
|
@@ -276,6 +272,8 @@ type DiscountItems = {
|
|
|
276
272
|
item_code?: string;
|
|
277
273
|
brand_name?: string;
|
|
278
274
|
seller_identifier?: string;
|
|
275
|
+
store_code?: string;
|
|
276
|
+
price_zone?: string;
|
|
279
277
|
discount_type: string;
|
|
280
278
|
value: number;
|
|
281
279
|
discount_meta?: DiscountMeta;
|
|
@@ -286,9 +284,9 @@ type BulkDiscount = {
|
|
|
286
284
|
company_id: number;
|
|
287
285
|
items: DiscountItems[];
|
|
288
286
|
};
|
|
289
|
-
/** @returns {
|
|
290
|
-
declare function
|
|
291
|
-
type
|
|
287
|
+
/** @returns {FileJobResponse} */
|
|
288
|
+
declare function FileJobResponse(): FileJobResponse;
|
|
289
|
+
type FileJobResponse = {
|
|
292
290
|
stage: string;
|
|
293
291
|
total: number;
|
|
294
292
|
failed: number;
|
|
@@ -302,22 +300,20 @@ type FileJobResponseSchema = {
|
|
|
302
300
|
_id: string;
|
|
303
301
|
file_path?: string;
|
|
304
302
|
progress?: number;
|
|
305
|
-
extension_ids?: string[];
|
|
306
|
-
zone_ids?: string[];
|
|
307
303
|
created_on?: string;
|
|
308
304
|
modified_on?: string;
|
|
309
305
|
created_by?: UserDetails;
|
|
310
306
|
};
|
|
311
|
-
/** @returns {
|
|
312
|
-
declare function
|
|
313
|
-
type
|
|
307
|
+
/** @returns {FileJobRequest} */
|
|
308
|
+
declare function FileJobRequest(): FileJobRequest;
|
|
309
|
+
type FileJobRequest = {
|
|
314
310
|
name: string;
|
|
315
311
|
is_active: boolean;
|
|
316
312
|
company_id: number;
|
|
317
|
-
|
|
318
|
-
job_type
|
|
313
|
+
app_id: string;
|
|
314
|
+
job_type: string;
|
|
319
315
|
discount_type?: string;
|
|
320
|
-
discount_level
|
|
316
|
+
discount_level: string;
|
|
321
317
|
file_path?: string;
|
|
322
318
|
brand_ids?: number[];
|
|
323
319
|
store_ids?: number[];
|
|
@@ -327,12 +323,11 @@ type FileJobRequestSchema = {
|
|
|
327
323
|
/** @returns {DownloadFileJob} */
|
|
328
324
|
declare function DownloadFileJob(): DownloadFileJob;
|
|
329
325
|
type DownloadFileJob = {
|
|
330
|
-
|
|
331
|
-
store_ids?: number[];
|
|
326
|
+
app_id: string;
|
|
332
327
|
};
|
|
333
|
-
/** @returns {
|
|
334
|
-
declare function
|
|
335
|
-
type
|
|
328
|
+
/** @returns {CancelJobResponse} */
|
|
329
|
+
declare function CancelJobResponse(): CancelJobResponse;
|
|
330
|
+
type CancelJobResponse = {
|
|
336
331
|
success: boolean;
|
|
337
332
|
};
|
|
338
333
|
/** @returns {Page} */
|
|
@@ -366,6 +361,10 @@ type Page = {
|
|
|
366
361
|
* - The number of items per page.
|
|
367
362
|
*/
|
|
368
363
|
size?: number;
|
|
364
|
+
/**
|
|
365
|
+
* - Total number of items.
|
|
366
|
+
*/
|
|
367
|
+
total?: number;
|
|
369
368
|
};
|
|
370
369
|
/** @returns {UserDetails} */
|
|
371
370
|
declare function UserDetails(): UserDetails;
|