@gofynd/fdk-client-javascript 1.6.4 → 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 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- 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 +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- 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 +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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
|
@@ -11,8 +11,7 @@ const Joi = require("joi");
|
|
|
11
11
|
* @property {string} name
|
|
12
12
|
* @property {number} company_id
|
|
13
13
|
* @property {boolean} is_active
|
|
14
|
-
* @property {string
|
|
15
|
-
* @property {string[]} [extension_ids]
|
|
14
|
+
* @property {string} app_id
|
|
16
15
|
* @property {string} job_type
|
|
17
16
|
* @property {string} discount_type
|
|
18
17
|
* @property {string} discount_level
|
|
@@ -20,7 +19,7 @@ const Joi = require("joi");
|
|
|
20
19
|
* @property {string} [file_path]
|
|
21
20
|
* @property {number[]} [brand_ids]
|
|
22
21
|
* @property {number[]} [store_ids]
|
|
23
|
-
* @property {string[]} [
|
|
22
|
+
* @property {string[]} [factory_type_ids]
|
|
24
23
|
* @property {ValidityObject} validity
|
|
25
24
|
* @property {DiscountMeta} [discount_meta]
|
|
26
25
|
*/
|
|
@@ -41,15 +40,15 @@ const Joi = require("joi");
|
|
|
41
40
|
* @property {string} name
|
|
42
41
|
* @property {number} company_id
|
|
43
42
|
* @property {boolean} is_active
|
|
44
|
-
* @property {string
|
|
45
|
-
* @property {string}
|
|
43
|
+
* @property {string} app_id
|
|
44
|
+
* @property {string} job_type
|
|
46
45
|
* @property {string} [discount_type]
|
|
47
|
-
* @property {string}
|
|
46
|
+
* @property {string} discount_level
|
|
48
47
|
* @property {number} [value]
|
|
49
48
|
* @property {string} [file_path]
|
|
50
49
|
* @property {number[]} [brand_ids]
|
|
51
50
|
* @property {number[]} [store_ids]
|
|
52
|
-
* @property {string[]} [
|
|
51
|
+
* @property {string[]} [factory_type_ids]
|
|
53
52
|
* @property {DiscountMeta} [discount_meta]
|
|
54
53
|
* @property {ValidityObject} validity
|
|
55
54
|
* @property {string} created_on
|
|
@@ -64,7 +63,7 @@ const Joi = require("joi");
|
|
|
64
63
|
* @property {string} [name]
|
|
65
64
|
* @property {number} [company_id]
|
|
66
65
|
* @property {boolean} [is_active]
|
|
67
|
-
* @property {string
|
|
66
|
+
* @property {string} [app_id]
|
|
68
67
|
* @property {string} [job_type]
|
|
69
68
|
* @property {string} [discount_type]
|
|
70
69
|
* @property {string} [discount_level]
|
|
@@ -72,8 +71,7 @@ const Joi = require("joi");
|
|
|
72
71
|
* @property {string} [file_path]
|
|
73
72
|
* @property {number[]} [brand_ids]
|
|
74
73
|
* @property {number[]} [store_ids]
|
|
75
|
-
* @property {string[]} [
|
|
76
|
-
* @property {string[]} [zone_ids]
|
|
74
|
+
* @property {string[]} [factory_type_ids]
|
|
77
75
|
* @property {DiscountMeta} [discount_meta]
|
|
78
76
|
* @property {ValidityObject} [validity]
|
|
79
77
|
* @property {string} [created_on]
|
|
@@ -94,6 +92,8 @@ const Joi = require("joi");
|
|
|
94
92
|
* @property {string} [item_code]
|
|
95
93
|
* @property {string} [brand_name]
|
|
96
94
|
* @property {string} [seller_identifier]
|
|
95
|
+
* @property {string} [store_code]
|
|
96
|
+
* @property {string} [price_zone]
|
|
97
97
|
* @property {string} discount_type
|
|
98
98
|
* @property {number} value
|
|
99
99
|
* @property {DiscountMeta} [discount_meta]
|
|
@@ -106,7 +106,7 @@ const Joi = require("joi");
|
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* @typedef
|
|
109
|
+
* @typedef FileJobResponse
|
|
110
110
|
* @property {string} stage
|
|
111
111
|
* @property {number} total
|
|
112
112
|
* @property {number} failed
|
|
@@ -117,22 +117,20 @@ const Joi = require("joi");
|
|
|
117
117
|
* @property {string} _id - A unique identifier to distinguish and identify a job.
|
|
118
118
|
* @property {string} [file_path]
|
|
119
119
|
* @property {number} [progress]
|
|
120
|
-
* @property {string[]} [extension_ids]
|
|
121
|
-
* @property {string[]} [zone_ids]
|
|
122
120
|
* @property {string} [created_on]
|
|
123
121
|
* @property {string} [modified_on]
|
|
124
122
|
* @property {UserDetails} [created_by]
|
|
125
123
|
*/
|
|
126
124
|
|
|
127
125
|
/**
|
|
128
|
-
* @typedef
|
|
126
|
+
* @typedef FileJobRequest
|
|
129
127
|
* @property {string} name
|
|
130
128
|
* @property {boolean} is_active
|
|
131
129
|
* @property {number} company_id
|
|
132
|
-
* @property {string
|
|
133
|
-
* @property {string}
|
|
130
|
+
* @property {string} app_id
|
|
131
|
+
* @property {string} job_type
|
|
134
132
|
* @property {string} [discount_type]
|
|
135
|
-
* @property {string}
|
|
133
|
+
* @property {string} discount_level
|
|
136
134
|
* @property {string} [file_path]
|
|
137
135
|
* @property {number[]} [brand_ids]
|
|
138
136
|
* @property {number[]} [store_ids]
|
|
@@ -142,12 +140,11 @@ const Joi = require("joi");
|
|
|
142
140
|
|
|
143
141
|
/**
|
|
144
142
|
* @typedef DownloadFileJob
|
|
145
|
-
* @property {
|
|
146
|
-
* @property {number[]} [store_ids]
|
|
143
|
+
* @property {string} app_id
|
|
147
144
|
*/
|
|
148
145
|
|
|
149
146
|
/**
|
|
150
|
-
* @typedef
|
|
147
|
+
* @typedef CancelJobResponse
|
|
151
148
|
* @property {boolean} success
|
|
152
149
|
*/
|
|
153
150
|
|
|
@@ -160,6 +157,7 @@ const Joi = require("joi");
|
|
|
160
157
|
* @property {number} [current] - The current page number.
|
|
161
158
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
162
159
|
* @property {number} [size] - The number of items per page.
|
|
160
|
+
* @property {number} [total] - Total number of items.
|
|
163
161
|
*/
|
|
164
162
|
|
|
165
163
|
/**
|
|
@@ -200,8 +198,7 @@ class DiscountPlatformModel {
|
|
|
200
198
|
name: Joi.string().allow("").required(),
|
|
201
199
|
company_id: Joi.number().required(),
|
|
202
200
|
is_active: Joi.boolean().required(),
|
|
203
|
-
|
|
204
|
-
extension_ids: Joi.array().items(Joi.string().allow("")),
|
|
201
|
+
app_id: Joi.string().allow("").required(),
|
|
205
202
|
job_type: Joi.string().allow("").required(),
|
|
206
203
|
discount_type: Joi.string().allow("").required(),
|
|
207
204
|
discount_level: Joi.string().allow("").required(),
|
|
@@ -209,7 +206,7 @@ class DiscountPlatformModel {
|
|
|
209
206
|
file_path: Joi.string().allow(""),
|
|
210
207
|
brand_ids: Joi.array().items(Joi.number()),
|
|
211
208
|
store_ids: Joi.array().items(Joi.number()),
|
|
212
|
-
|
|
209
|
+
factory_type_ids: Joi.array().items(Joi.string().allow("")),
|
|
213
210
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
214
211
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
215
212
|
});
|
|
@@ -231,22 +228,22 @@ class DiscountPlatformModel {
|
|
|
231
228
|
name: Joi.string().allow("").required(),
|
|
232
229
|
company_id: Joi.number().required(),
|
|
233
230
|
is_active: Joi.boolean().required(),
|
|
234
|
-
|
|
235
|
-
job_type: Joi.string().allow(""),
|
|
231
|
+
app_id: Joi.string().allow("").required(),
|
|
232
|
+
job_type: Joi.string().allow("").required(),
|
|
236
233
|
discount_type: Joi.string().allow(""),
|
|
237
|
-
discount_level: Joi.string().allow(""),
|
|
234
|
+
discount_level: Joi.string().allow("").required(),
|
|
238
235
|
value: Joi.number(),
|
|
239
236
|
file_path: Joi.string().allow(""),
|
|
240
237
|
brand_ids: Joi.array().items(Joi.number()),
|
|
241
238
|
store_ids: Joi.array().items(Joi.number()),
|
|
242
|
-
|
|
239
|
+
factory_type_ids: Joi.array().items(Joi.string().allow("")),
|
|
243
240
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
244
241
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
245
242
|
created_on: Joi.string().allow("").required(),
|
|
246
243
|
modified_on: Joi.string().allow("").required(),
|
|
247
244
|
created_by: DiscountPlatformModel.UserDetails().required(),
|
|
248
245
|
modified_by: DiscountPlatformModel.UserDetails().required(),
|
|
249
|
-
meta: Joi.
|
|
246
|
+
meta: Joi.any(),
|
|
250
247
|
});
|
|
251
248
|
}
|
|
252
249
|
|
|
@@ -256,7 +253,7 @@ class DiscountPlatformModel {
|
|
|
256
253
|
name: Joi.string().allow(""),
|
|
257
254
|
company_id: Joi.number(),
|
|
258
255
|
is_active: Joi.boolean(),
|
|
259
|
-
|
|
256
|
+
app_id: Joi.string().allow(""),
|
|
260
257
|
job_type: Joi.string().allow(""),
|
|
261
258
|
discount_type: Joi.string().allow(""),
|
|
262
259
|
discount_level: Joi.string().allow(""),
|
|
@@ -264,15 +261,14 @@ class DiscountPlatformModel {
|
|
|
264
261
|
file_path: Joi.string().allow(""),
|
|
265
262
|
brand_ids: Joi.array().items(Joi.number()),
|
|
266
263
|
store_ids: Joi.array().items(Joi.number()),
|
|
267
|
-
|
|
268
|
-
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
264
|
+
factory_type_ids: Joi.array().items(Joi.string().allow("")),
|
|
269
265
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
270
266
|
validity: DiscountPlatformModel.ValidityObject(),
|
|
271
267
|
created_on: Joi.string().allow(""),
|
|
272
268
|
modified_on: Joi.string().allow(""),
|
|
273
269
|
created_by: DiscountPlatformModel.UserDetails(),
|
|
274
270
|
modified_by: DiscountPlatformModel.UserDetails(),
|
|
275
|
-
meta: Joi.
|
|
271
|
+
meta: Joi.any(),
|
|
276
272
|
});
|
|
277
273
|
}
|
|
278
274
|
|
|
@@ -290,6 +286,8 @@ class DiscountPlatformModel {
|
|
|
290
286
|
item_code: Joi.string().allow(""),
|
|
291
287
|
brand_name: Joi.string().allow(""),
|
|
292
288
|
seller_identifier: Joi.string().allow(""),
|
|
289
|
+
store_code: Joi.string().allow(""),
|
|
290
|
+
price_zone: Joi.string().allow(""),
|
|
293
291
|
discount_type: Joi.string().allow("").required(),
|
|
294
292
|
value: Joi.number().required(),
|
|
295
293
|
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
@@ -306,8 +304,8 @@ class DiscountPlatformModel {
|
|
|
306
304
|
});
|
|
307
305
|
}
|
|
308
306
|
|
|
309
|
-
/** @returns {
|
|
310
|
-
static
|
|
307
|
+
/** @returns {FileJobResponse} */
|
|
308
|
+
static FileJobResponse() {
|
|
311
309
|
return Joi.object({
|
|
312
310
|
stage: Joi.string().allow("").required(),
|
|
313
311
|
total: Joi.number().required(),
|
|
@@ -319,42 +317,39 @@ class DiscountPlatformModel {
|
|
|
319
317
|
_id: Joi.string().allow("").required(),
|
|
320
318
|
file_path: Joi.string().allow(""),
|
|
321
319
|
progress: Joi.number(),
|
|
322
|
-
extension_ids: Joi.array().items(Joi.string().allow("")),
|
|
323
|
-
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
324
320
|
created_on: Joi.string().allow(""),
|
|
325
321
|
modified_on: Joi.string().allow(""),
|
|
326
322
|
created_by: DiscountPlatformModel.UserDetails(),
|
|
327
323
|
});
|
|
328
324
|
}
|
|
329
325
|
|
|
330
|
-
/** @returns {
|
|
331
|
-
static
|
|
326
|
+
/** @returns {FileJobRequest} */
|
|
327
|
+
static FileJobRequest() {
|
|
332
328
|
return Joi.object({
|
|
333
329
|
name: Joi.string().allow("").required(),
|
|
334
330
|
is_active: Joi.boolean().required(),
|
|
335
331
|
company_id: Joi.number().required(),
|
|
336
|
-
|
|
337
|
-
job_type: Joi.string().allow(""),
|
|
332
|
+
app_id: Joi.string().allow("").required(),
|
|
333
|
+
job_type: Joi.string().allow("").required(),
|
|
338
334
|
discount_type: Joi.string().allow(""),
|
|
339
|
-
discount_level: Joi.string().allow(""),
|
|
335
|
+
discount_level: Joi.string().allow("").required(),
|
|
340
336
|
file_path: Joi.string().allow(""),
|
|
341
337
|
brand_ids: Joi.array().items(Joi.number()),
|
|
342
338
|
store_ids: Joi.array().items(Joi.number()),
|
|
343
339
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
344
|
-
meta: Joi.
|
|
340
|
+
meta: Joi.any(),
|
|
345
341
|
});
|
|
346
342
|
}
|
|
347
343
|
|
|
348
344
|
/** @returns {DownloadFileJob} */
|
|
349
345
|
static DownloadFileJob() {
|
|
350
346
|
return Joi.object({
|
|
351
|
-
|
|
352
|
-
store_ids: Joi.array().items(Joi.number()),
|
|
347
|
+
app_id: Joi.string().allow("").required(),
|
|
353
348
|
});
|
|
354
349
|
}
|
|
355
350
|
|
|
356
|
-
/** @returns {
|
|
357
|
-
static
|
|
351
|
+
/** @returns {CancelJobResponse} */
|
|
352
|
+
static CancelJobResponse() {
|
|
358
353
|
return Joi.object({
|
|
359
354
|
success: Joi.boolean().required(),
|
|
360
355
|
});
|
|
@@ -370,6 +365,7 @@ class DiscountPlatformModel {
|
|
|
370
365
|
current: Joi.number(),
|
|
371
366
|
type: Joi.string().allow("").required(),
|
|
372
367
|
size: Joi.number(),
|
|
368
|
+
total: Joi.number(),
|
|
373
369
|
});
|
|
374
370
|
}
|
|
375
371
|
|
|
@@ -54,7 +54,7 @@ export = DiscountPlatformValidator;
|
|
|
54
54
|
/**
|
|
55
55
|
* @typedef ValidateDiscountFileParam
|
|
56
56
|
* @property {string} [discount] - Discount
|
|
57
|
-
* @property {DiscountPlatformModel.
|
|
57
|
+
* @property {DiscountPlatformModel.FileJobRequest} body
|
|
58
58
|
*/
|
|
59
59
|
declare class DiscountPlatformValidator {
|
|
60
60
|
/** @returns {CancelDownloadJobParam} */
|
|
@@ -181,6 +181,6 @@ type ValidateDiscountFileParam = {
|
|
|
181
181
|
* - Discount
|
|
182
182
|
*/
|
|
183
183
|
discount?: string;
|
|
184
|
-
body: DiscountPlatformModel.
|
|
184
|
+
body: DiscountPlatformModel.FileJobRequest;
|
|
185
185
|
};
|
|
186
186
|
import DiscountPlatformModel = require("./DiscountPlatformModel");
|
|
@@ -67,7 +67,7 @@ const DiscountPlatformModel = require("./DiscountPlatformModel");
|
|
|
67
67
|
/**
|
|
68
68
|
* @typedef ValidateDiscountFileParam
|
|
69
69
|
* @property {string} [discount] - Discount
|
|
70
|
-
* @property {DiscountPlatformModel.
|
|
70
|
+
* @property {DiscountPlatformModel.FileJobRequest} body
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
class DiscountPlatformValidator {
|
|
@@ -156,7 +156,7 @@ class DiscountPlatformValidator {
|
|
|
156
156
|
static validateDiscountFile() {
|
|
157
157
|
return Joi.object({
|
|
158
158
|
discount: Joi.string().allow(""),
|
|
159
|
-
body: DiscountPlatformModel.
|
|
159
|
+
body: DiscountPlatformModel.FileJobRequest().required(),
|
|
160
160
|
}).required();
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -9,12 +9,12 @@ declare class FileStorage {
|
|
|
9
9
|
*
|
|
10
10
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
11
11
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
12
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
12
|
+
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
13
13
|
* @name appCompleteUpload
|
|
14
14
|
* @summary: Application complete upload.
|
|
15
15
|
* @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
|
|
16
16
|
*/
|
|
17
|
-
appCompleteUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
17
|
+
appCompleteUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.CompleteResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* @param {FileStoragePlatformApplicationValidator.AppCopyFilesParam} arg - Arg object
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -31,12 +31,12 @@ declare class FileStorage {
|
|
|
31
31
|
*
|
|
32
32
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
33
33
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
34
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
34
|
+
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
35
35
|
* @name appStartUpload
|
|
36
36
|
* @summary: Application start upload.
|
|
37
37
|
* @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
|
|
38
38
|
*/
|
|
39
|
-
appStartUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppStartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
39
|
+
appStartUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppStartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.StartResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* @param {FileStoragePlatformApplicationValidator.AppbrowseParam} arg - Arg object
|
|
42
42
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -75,25 +75,26 @@ declare class FileStorage {
|
|
|
75
75
|
*
|
|
76
76
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
77
77
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
78
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
79
|
-
* Success response
|
|
78
|
+
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>}
|
|
79
|
+
* - Success response
|
|
80
|
+
*
|
|
80
81
|
* @name fetchPdfDefaultTemplateById
|
|
81
82
|
* @summary: get default html template for invoice or label
|
|
82
83
|
* @description: get default html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfDefaultTemplateById/).
|
|
83
84
|
*/
|
|
84
|
-
fetchPdfDefaultTemplateById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
85
|
+
fetchPdfDefaultTemplateById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>;
|
|
85
86
|
/**
|
|
86
87
|
* @param {FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam} arg
|
|
87
88
|
* - Arg object
|
|
88
89
|
*
|
|
89
90
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
91
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
91
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
92
|
+
* @returns {Promise<FileStoragePlatformModel.PdfTypeIdResponse>} - Success response
|
|
92
93
|
* @name fetchPdfTypeById
|
|
93
94
|
* @summary: Get the pdf types of by id
|
|
94
95
|
* @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
|
|
95
96
|
*/
|
|
96
|
-
fetchPdfTypeById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
97
|
+
fetchPdfTypeById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfTypeIdResponse>;
|
|
97
98
|
/**
|
|
98
99
|
* @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
|
|
99
100
|
* - Arg object
|
|
@@ -124,12 +125,13 @@ declare class FileStorage {
|
|
|
124
125
|
*
|
|
125
126
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
126
127
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
127
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
128
|
+
* @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
|
|
129
|
+
* Success response
|
|
128
130
|
* @name getDefaultPdfData
|
|
129
131
|
* @summary: Get default PDF data.
|
|
130
132
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
131
133
|
*/
|
|
132
|
-
getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
134
|
+
getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
|
|
133
135
|
/**
|
|
134
136
|
* @param {FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam} arg
|
|
135
137
|
* - Arg object
|
|
@@ -161,22 +163,23 @@ declare class FileStorage {
|
|
|
161
163
|
*
|
|
162
164
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
163
165
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
164
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
166
|
+
* @returns {Promise<FileStoragePlatformModel.DummyPayloadById>} - Success response
|
|
165
167
|
* @name getPdfPayloadById
|
|
166
168
|
* @summary: Get default PDF data.
|
|
167
169
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
|
|
168
170
|
*/
|
|
169
|
-
getPdfPayloadById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
171
|
+
getPdfPayloadById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyPayloadById>;
|
|
170
172
|
/**
|
|
171
173
|
* @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
|
|
172
174
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
173
175
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
174
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
176
|
+
* @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
|
|
177
|
+
* Success response
|
|
175
178
|
* @name getPdfTypes
|
|
176
179
|
* @summary: Get all the supported invoice pdf types
|
|
177
180
|
* @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
178
181
|
*/
|
|
179
|
-
getPdfTypes({ storeOs, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
182
|
+
getPdfTypes({ storeOs, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
|
|
180
183
|
/**
|
|
181
184
|
* @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg
|
|
182
185
|
* - Arg object
|
|
@@ -23,7 +23,7 @@ class FileStorage {
|
|
|
23
23
|
*
|
|
24
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
25
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
26
|
+
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
27
27
|
* @name appCompleteUpload
|
|
28
28
|
* @summary: Application complete upload.
|
|
29
29
|
* @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
|
|
@@ -83,7 +83,7 @@ class FileStorage {
|
|
|
83
83
|
|
|
84
84
|
const {
|
|
85
85
|
error: res_error,
|
|
86
|
-
} = FileStoragePlatformModel.
|
|
86
|
+
} = FileStoragePlatformModel.CompleteResponse().validate(responseData, {
|
|
87
87
|
abortEarly: false,
|
|
88
88
|
allowUnknown: true,
|
|
89
89
|
});
|
|
@@ -188,7 +188,7 @@ class FileStorage {
|
|
|
188
188
|
*
|
|
189
189
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
190
190
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
191
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
191
|
+
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
192
192
|
* @name appStartUpload
|
|
193
193
|
* @summary: Application start upload.
|
|
194
194
|
* @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
|
|
@@ -248,7 +248,7 @@ class FileStorage {
|
|
|
248
248
|
|
|
249
249
|
const {
|
|
250
250
|
error: res_error,
|
|
251
|
-
} = FileStoragePlatformModel.
|
|
251
|
+
} = FileStoragePlatformModel.StartResponse().validate(responseData, {
|
|
252
252
|
abortEarly: false,
|
|
253
253
|
allowUnknown: true,
|
|
254
254
|
});
|
|
@@ -532,8 +532,9 @@ class FileStorage {
|
|
|
532
532
|
*
|
|
533
533
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
534
534
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
535
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
536
|
-
* Success response
|
|
535
|
+
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>}
|
|
536
|
+
* - Success response
|
|
537
|
+
*
|
|
537
538
|
* @name fetchPdfDefaultTemplateById
|
|
538
539
|
* @summary: get default html template for invoice or label
|
|
539
540
|
* @description: get default html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfDefaultTemplateById/).
|
|
@@ -589,7 +590,7 @@ class FileStorage {
|
|
|
589
590
|
|
|
590
591
|
const {
|
|
591
592
|
error: res_error,
|
|
592
|
-
} = FileStoragePlatformModel.
|
|
593
|
+
} = FileStoragePlatformModel.PdfDefaultTemplateResponse().validate(
|
|
593
594
|
responseData,
|
|
594
595
|
{ abortEarly: false, allowUnknown: true }
|
|
595
596
|
);
|
|
@@ -614,7 +615,7 @@ class FileStorage {
|
|
|
614
615
|
*
|
|
615
616
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
616
617
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
617
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
618
|
+
* @returns {Promise<FileStoragePlatformModel.PdfTypeIdResponse>} - Success response
|
|
618
619
|
* @name fetchPdfTypeById
|
|
619
620
|
* @summary: Get the pdf types of by id
|
|
620
621
|
* @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
|
|
@@ -670,7 +671,7 @@ class FileStorage {
|
|
|
670
671
|
|
|
671
672
|
const {
|
|
672
673
|
error: res_error,
|
|
673
|
-
} = FileStoragePlatformModel.
|
|
674
|
+
} = FileStoragePlatformModel.PdfTypeIdResponse().validate(responseData, {
|
|
674
675
|
abortEarly: false,
|
|
675
676
|
allowUnknown: true,
|
|
676
677
|
});
|
|
@@ -828,10 +829,9 @@ class FileStorage {
|
|
|
828
829
|
responseData = response[0];
|
|
829
830
|
}
|
|
830
831
|
|
|
831
|
-
const { error: res_error } = Joi.
|
|
832
|
-
|
|
833
|
-
allowUnknown: true
|
|
834
|
-
});
|
|
832
|
+
const { error: res_error } = Joi.object()
|
|
833
|
+
.pattern(/\S/, Joi.any())
|
|
834
|
+
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
835
835
|
|
|
836
836
|
if (res_error) {
|
|
837
837
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -853,7 +853,8 @@ class FileStorage {
|
|
|
853
853
|
*
|
|
854
854
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
855
855
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
856
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
856
|
+
* @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
|
|
857
|
+
* Success response
|
|
857
858
|
* @name getDefaultPdfData
|
|
858
859
|
* @summary: Get default PDF data.
|
|
859
860
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
@@ -913,10 +914,10 @@ class FileStorage {
|
|
|
913
914
|
|
|
914
915
|
const {
|
|
915
916
|
error: res_error,
|
|
916
|
-
} = FileStoragePlatformModel.
|
|
917
|
-
|
|
918
|
-
allowUnknown: true
|
|
919
|
-
|
|
917
|
+
} = FileStoragePlatformModel.DummyTemplateDataItems().validate(
|
|
918
|
+
responseData,
|
|
919
|
+
{ abortEarly: false, allowUnknown: true }
|
|
920
|
+
);
|
|
920
921
|
|
|
921
922
|
if (res_error) {
|
|
922
923
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1115,7 +1116,7 @@ class FileStorage {
|
|
|
1115
1116
|
*
|
|
1116
1117
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1117
1118
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1118
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
1119
|
+
* @returns {Promise<FileStoragePlatformModel.DummyPayloadById>} - Success response
|
|
1119
1120
|
* @name getPdfPayloadById
|
|
1120
1121
|
* @summary: Get default PDF data.
|
|
1121
1122
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
|
|
@@ -1171,7 +1172,7 @@ class FileStorage {
|
|
|
1171
1172
|
|
|
1172
1173
|
const {
|
|
1173
1174
|
error: res_error,
|
|
1174
|
-
} = FileStoragePlatformModel.
|
|
1175
|
+
} = FileStoragePlatformModel.DummyPayloadById().validate(responseData, {
|
|
1175
1176
|
abortEarly: false,
|
|
1176
1177
|
allowUnknown: true,
|
|
1177
1178
|
});
|
|
@@ -1194,7 +1195,8 @@ class FileStorage {
|
|
|
1194
1195
|
* @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
|
|
1195
1196
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1196
1197
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1197
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
1198
|
+
* @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
|
|
1199
|
+
* Success response
|
|
1198
1200
|
* @name getPdfTypes
|
|
1199
1201
|
* @summary: Get all the supported invoice pdf types
|
|
1200
1202
|
* @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
@@ -1254,7 +1256,7 @@ class FileStorage {
|
|
|
1254
1256
|
|
|
1255
1257
|
const {
|
|
1256
1258
|
error: res_error,
|
|
1257
|
-
} = FileStoragePlatformModel.
|
|
1259
|
+
} = FileStoragePlatformModel.InvoiceTypesResponse().validate(responseData, {
|
|
1258
1260
|
abortEarly: false,
|
|
1259
1261
|
allowUnknown: true,
|
|
1260
1262
|
});
|
|
@@ -5,7 +5,7 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
5
5
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
6
6
|
* the file being uploaded, decides where exactly the file will be stored
|
|
7
7
|
* inside the storage bucket.
|
|
8
|
-
* @property {FileStoragePlatformModel.
|
|
8
|
+
* @property {FileStoragePlatformModel.StartResponse} body
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AppCopyFilesParam
|
|
@@ -18,7 +18,7 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
18
18
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
19
19
|
* the file being uploaded, decides where exactly the file will be stored
|
|
20
20
|
* inside the storage bucket.
|
|
21
|
-
* @property {FileStoragePlatformModel.
|
|
21
|
+
* @property {FileStoragePlatformModel.StartRequest} body
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
24
24
|
* @typedef AppbrowseParam
|
|
@@ -143,7 +143,7 @@ type AppCompleteUploadParam = {
|
|
|
143
143
|
* inside the storage bucket.
|
|
144
144
|
*/
|
|
145
145
|
namespace: string;
|
|
146
|
-
body: FileStoragePlatformModel.
|
|
146
|
+
body: FileStoragePlatformModel.StartResponse;
|
|
147
147
|
};
|
|
148
148
|
type AppCopyFilesParam = {
|
|
149
149
|
/**
|
|
@@ -160,7 +160,7 @@ type AppStartUploadParam = {
|
|
|
160
160
|
* inside the storage bucket.
|
|
161
161
|
*/
|
|
162
162
|
namespace: string;
|
|
163
|
-
body: FileStoragePlatformModel.
|
|
163
|
+
body: FileStoragePlatformModel.StartRequest;
|
|
164
164
|
};
|
|
165
165
|
type AppbrowseParam = {
|
|
166
166
|
/**
|
|
@@ -8,7 +8,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
8
8
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
9
9
|
* the file being uploaded, decides where exactly the file will be stored
|
|
10
10
|
* inside the storage bucket.
|
|
11
|
-
* @property {FileStoragePlatformModel.
|
|
11
|
+
* @property {FileStoragePlatformModel.StartResponse} body
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -23,7 +23,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
23
23
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
24
24
|
* the file being uploaded, decides where exactly the file will be stored
|
|
25
25
|
* inside the storage bucket.
|
|
26
|
-
* @property {FileStoragePlatformModel.
|
|
26
|
+
* @property {FileStoragePlatformModel.StartRequest} body
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -122,7 +122,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
122
122
|
return Joi.object({
|
|
123
123
|
namespace: Joi.string().allow("").required(),
|
|
124
124
|
|
|
125
|
-
body: FileStoragePlatformModel.
|
|
125
|
+
body: FileStoragePlatformModel.StartResponse().required(),
|
|
126
126
|
}).required();
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -140,7 +140,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
140
140
|
return Joi.object({
|
|
141
141
|
namespace: Joi.string().allow("").required(),
|
|
142
142
|
|
|
143
|
-
body: FileStoragePlatformModel.
|
|
143
|
+
body: FileStoragePlatformModel.StartRequest().required(),
|
|
144
144
|
}).required();
|
|
145
145
|
}
|
|
146
146
|
|