@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
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 +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,261 +1,182 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @typedef BadRequestObject
|
|
10
|
-
* @property {string} message
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @typedef BadRequestObjectGet
|
|
15
|
-
* @property {BadRequestData} [data]
|
|
16
|
-
* @property {string} [error]
|
|
17
|
-
* @property {string} [message]
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @typedef BulkDiscount
|
|
22
|
-
* @property {number} company_id
|
|
23
|
-
* @property {DiscountItems[]} items
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @typedef CancelJobResponse
|
|
28
|
-
* @property {boolean} success
|
|
4
|
+
* @typedef ValidityObject
|
|
5
|
+
* @property {string} start
|
|
6
|
+
* @property {string} end
|
|
29
7
|
*/
|
|
30
8
|
|
|
31
9
|
/**
|
|
32
10
|
* @typedef CreateUpdateDiscount
|
|
33
|
-
* @property {string
|
|
34
|
-
* @property {number[]} [brand_ids]
|
|
11
|
+
* @property {string} name
|
|
35
12
|
* @property {number} company_id
|
|
36
|
-
* @property {string} discount_level
|
|
37
|
-
* @property {DiscountMeta} [discount_meta]
|
|
38
|
-
* @property {string} discount_type
|
|
39
|
-
* @property {string[]} [extension_ids]
|
|
40
|
-
* @property {string} [file_path]
|
|
41
13
|
* @property {boolean} is_active
|
|
14
|
+
* @property {string[]} app_ids
|
|
15
|
+
* @property {string[]} extension_ids
|
|
42
16
|
* @property {string} job_type
|
|
43
|
-
* @property {string}
|
|
44
|
-
* @property {
|
|
45
|
-
* @property {ValidityObject} validity
|
|
17
|
+
* @property {string} discount_type
|
|
18
|
+
* @property {string} discount_level
|
|
46
19
|
* @property {number} [value]
|
|
20
|
+
* @property {string} [file_path]
|
|
21
|
+
* @property {number[]} [brand_ids]
|
|
22
|
+
* @property {number[]} [store_ids]
|
|
47
23
|
* @property {string[]} [zone_ids]
|
|
24
|
+
* @property {ValidityObject} validity
|
|
25
|
+
* @property {DiscountMeta} [discount_meta]
|
|
48
26
|
*/
|
|
49
27
|
|
|
50
28
|
/**
|
|
51
|
-
* @typedef
|
|
52
|
-
* @property {
|
|
53
|
-
*
|
|
54
|
-
* @property {
|
|
55
|
-
*
|
|
56
|
-
* @property {
|
|
57
|
-
*
|
|
29
|
+
* @typedef DiscountMeta
|
|
30
|
+
* @property {boolean} timer - Determines whether the discount countdown is
|
|
31
|
+
* visible or not.
|
|
32
|
+
* @property {number} [hours] - The time in hours before the discount ends when
|
|
33
|
+
* the countdown timer should start.
|
|
34
|
+
* @property {number} [minutes] - The time in minutes before the discount ends
|
|
35
|
+
* when the countdown timer should start.
|
|
58
36
|
*/
|
|
59
37
|
|
|
60
38
|
/**
|
|
61
39
|
* @typedef DiscountJob
|
|
62
40
|
* @property {string} _id
|
|
63
|
-
* @property {string
|
|
64
|
-
* @property {number[]} [brand_ids]
|
|
41
|
+
* @property {string} name
|
|
65
42
|
* @property {number} company_id
|
|
66
|
-
* @property {UserDetails} created_by
|
|
67
|
-
* @property {string} created_on
|
|
68
|
-
* @property {string} [discount_level]
|
|
69
|
-
* @property {DiscountMeta} [discount_meta]
|
|
70
|
-
* @property {string} [discount_type]
|
|
71
|
-
* @property {string} [file_path]
|
|
72
43
|
* @property {boolean} is_active
|
|
44
|
+
* @property {string[]} [app_ids]
|
|
73
45
|
* @property {string} [job_type]
|
|
74
|
-
* @property {
|
|
75
|
-
* @property {
|
|
76
|
-
* @property {
|
|
77
|
-
* @property {string}
|
|
46
|
+
* @property {string} [discount_type]
|
|
47
|
+
* @property {string} [discount_level]
|
|
48
|
+
* @property {number} [value]
|
|
49
|
+
* @property {string} [file_path]
|
|
50
|
+
* @property {number[]} [brand_ids]
|
|
78
51
|
* @property {number[]} [store_ids]
|
|
52
|
+
* @property {DiscountMeta} [discount_meta]
|
|
79
53
|
* @property {ValidityObject} validity
|
|
80
|
-
* @property {
|
|
81
|
-
* @property {string
|
|
54
|
+
* @property {string} created_on
|
|
55
|
+
* @property {string} modified_on
|
|
56
|
+
* @property {UserDetails} created_by
|
|
57
|
+
* @property {UserDetails} modified_by
|
|
58
|
+
* @property {Object} [meta]
|
|
82
59
|
*/
|
|
83
60
|
|
|
84
61
|
/**
|
|
85
|
-
* @typedef
|
|
86
|
-
* @property {
|
|
87
|
-
*
|
|
88
|
-
* @property {number} [minutes] - The time in minutes before the discount ends
|
|
89
|
-
* when the countdown timer should start.
|
|
90
|
-
* @property {boolean} timer - Determines whether the discount countdown is
|
|
91
|
-
* visible or not.
|
|
62
|
+
* @typedef ListOrCalender
|
|
63
|
+
* @property {DiscountJob[]} items
|
|
64
|
+
* @property {Page} page
|
|
92
65
|
*/
|
|
93
66
|
|
|
94
67
|
/**
|
|
95
|
-
* @typedef
|
|
96
|
-
* @property {
|
|
97
|
-
* @property {number
|
|
68
|
+
* @typedef DiscountItems
|
|
69
|
+
* @property {string} [item_code]
|
|
70
|
+
* @property {number} [brand_uid]
|
|
71
|
+
* @property {string} [seller_identifier]
|
|
72
|
+
* @property {string} discount_type
|
|
73
|
+
* @property {number} value
|
|
74
|
+
* @property {DiscountMeta} [discount_meta]
|
|
98
75
|
*/
|
|
99
76
|
|
|
100
77
|
/**
|
|
101
|
-
* @typedef
|
|
102
|
-
* @property {
|
|
103
|
-
* @property {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
* @
|
|
108
|
-
* @property {
|
|
109
|
-
* @property {
|
|
110
|
-
* @property {
|
|
111
|
-
* @property {
|
|
112
|
-
* @property {
|
|
113
|
-
* @property {string}
|
|
114
|
-
* @property {
|
|
115
|
-
* @property {
|
|
116
|
-
* @property {string}
|
|
117
|
-
* @property {string} [name]
|
|
118
|
-
* @property {number[]} [store_ids]
|
|
119
|
-
* @property {ValidityObject} [validity]
|
|
120
|
-
* @property {number} [value]
|
|
121
|
-
* @property {string[]} [zone_ids]
|
|
78
|
+
* @typedef BulkDiscount
|
|
79
|
+
* @property {number} company_id
|
|
80
|
+
* @property {DiscountItems[]} items
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef FileJobResponse
|
|
85
|
+
* @property {string} stage
|
|
86
|
+
* @property {number} total
|
|
87
|
+
* @property {number} failed
|
|
88
|
+
* @property {number} company_id
|
|
89
|
+
* @property {Object} [body]
|
|
90
|
+
* @property {string} type
|
|
91
|
+
* @property {string} file_type
|
|
92
|
+
* @property {string} _id - A unique identifier to distinguish and identify a job.
|
|
93
|
+
* @property {string} file_path
|
|
122
94
|
*/
|
|
123
95
|
|
|
124
96
|
/**
|
|
125
97
|
* @typedef FileJobRequest
|
|
98
|
+
* @property {string} name
|
|
99
|
+
* @property {boolean} is_active
|
|
126
100
|
* @property {string[]} [app_ids]
|
|
127
|
-
* @property {
|
|
128
|
-
* @property {number} company_id
|
|
129
|
-
* @property {string} [discount_level]
|
|
101
|
+
* @property {string} [job_type]
|
|
130
102
|
* @property {string} [discount_type]
|
|
103
|
+
* @property {string} [discount_level]
|
|
131
104
|
* @property {string} [file_path]
|
|
132
|
-
* @property {
|
|
133
|
-
* @property {string} [job_type]
|
|
134
|
-
* @property {Object} [meta]
|
|
135
|
-
* @property {string} name
|
|
105
|
+
* @property {number[]} [brand_ids]
|
|
136
106
|
* @property {number[]} [store_ids]
|
|
137
107
|
* @property {ValidityObject} validity
|
|
108
|
+
* @property {Object} [meta]
|
|
138
109
|
*/
|
|
139
110
|
|
|
140
111
|
/**
|
|
141
|
-
* @typedef
|
|
142
|
-
* @property {
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {number} company_id
|
|
145
|
-
* @property {UserDetails} [created_by]
|
|
146
|
-
* @property {string} [created_on]
|
|
147
|
-
* @property {string[]} [extension_ids]
|
|
148
|
-
* @property {number} failed
|
|
149
|
-
* @property {string} [file_path]
|
|
150
|
-
* @property {string} [file_type]
|
|
151
|
-
* @property {string} [modified_on]
|
|
152
|
-
* @property {number} [progress]
|
|
153
|
-
* @property {string} stage
|
|
154
|
-
* @property {number} total
|
|
155
|
-
* @property {string} type
|
|
156
|
-
* @property {string[]} [zone_ids]
|
|
112
|
+
* @typedef DownloadFileJob
|
|
113
|
+
* @property {number[]} [brand_ids]
|
|
114
|
+
* @property {number[]} [store_ids]
|
|
157
115
|
*/
|
|
158
116
|
|
|
159
117
|
/**
|
|
160
|
-
* @typedef
|
|
161
|
-
* @property {
|
|
162
|
-
* @property {Page} page
|
|
118
|
+
* @typedef CancelJobResponse
|
|
119
|
+
* @property {boolean} success
|
|
163
120
|
*/
|
|
164
121
|
|
|
165
122
|
/**
|
|
166
123
|
* @typedef Page
|
|
167
|
-
* @property {number} [current]
|
|
168
|
-
* @property {boolean} [has_next]
|
|
169
|
-
* @property {boolean} [has_previous]
|
|
170
124
|
* @property {number} [item_total]
|
|
171
125
|
* @property {string} [next_id]
|
|
172
|
-
* @property {
|
|
126
|
+
* @property {boolean} [has_previous]
|
|
127
|
+
* @property {boolean} [has_next]
|
|
128
|
+
* @property {number} [current]
|
|
173
129
|
* @property {string} type
|
|
130
|
+
* @property {number} [size]
|
|
174
131
|
*/
|
|
175
132
|
|
|
176
133
|
/**
|
|
177
134
|
* @typedef UserDetails
|
|
178
|
-
* @property {string} user_id
|
|
179
135
|
* @property {string} username
|
|
136
|
+
* @property {string} user_id
|
|
180
137
|
*/
|
|
181
138
|
|
|
182
139
|
/**
|
|
183
|
-
* @typedef
|
|
184
|
-
* @property {string}
|
|
185
|
-
* @property {string} start
|
|
140
|
+
* @typedef BadRequestObject
|
|
141
|
+
* @property {string} message
|
|
186
142
|
*/
|
|
187
143
|
|
|
188
144
|
class DiscountPlatformModel {
|
|
189
|
-
/** @returns {
|
|
190
|
-
static
|
|
191
|
-
return Joi.object({
|
|
192
|
-
message: Joi.string().allow(""),
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/** @returns {BadRequestObject} */
|
|
197
|
-
static BadRequestObject() {
|
|
198
|
-
return Joi.object({
|
|
199
|
-
message: Joi.string().allow("").required(),
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/** @returns {BadRequestObjectGet} */
|
|
204
|
-
static BadRequestObjectGet() {
|
|
205
|
-
return Joi.object({
|
|
206
|
-
data: DiscountPlatformModel.BadRequestData(),
|
|
207
|
-
error: Joi.string().allow(""),
|
|
208
|
-
message: Joi.string().allow(""),
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/** @returns {BulkDiscount} */
|
|
213
|
-
static BulkDiscount() {
|
|
214
|
-
return Joi.object({
|
|
215
|
-
company_id: Joi.number().required(),
|
|
216
|
-
items: Joi.array()
|
|
217
|
-
.items(DiscountPlatformModel.DiscountItems())
|
|
218
|
-
.required(),
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/** @returns {CancelJobResponse} */
|
|
223
|
-
static CancelJobResponse() {
|
|
145
|
+
/** @returns {ValidityObject} */
|
|
146
|
+
static ValidityObject() {
|
|
224
147
|
return Joi.object({
|
|
225
|
-
|
|
148
|
+
start: Joi.string().allow("").required(),
|
|
149
|
+
end: Joi.string().allow("").required(),
|
|
226
150
|
});
|
|
227
151
|
}
|
|
228
152
|
|
|
229
153
|
/** @returns {CreateUpdateDiscount} */
|
|
230
154
|
static CreateUpdateDiscount() {
|
|
231
155
|
return Joi.object({
|
|
232
|
-
|
|
233
|
-
brand_ids: Joi.array().items(Joi.number()),
|
|
156
|
+
name: Joi.string().allow("").required(),
|
|
234
157
|
company_id: Joi.number().required(),
|
|
235
|
-
discount_level: Joi.string().allow("").required(),
|
|
236
|
-
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
237
|
-
discount_type: Joi.string().allow("").required(),
|
|
238
|
-
extension_ids: Joi.array().items(Joi.string().allow("")),
|
|
239
|
-
file_path: Joi.string().allow(""),
|
|
240
158
|
is_active: Joi.boolean().required(),
|
|
159
|
+
app_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
160
|
+
extension_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
241
161
|
job_type: Joi.string().allow("").required(),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
162
|
+
discount_type: Joi.string().allow("").required(),
|
|
163
|
+
discount_level: Joi.string().allow("").required(),
|
|
245
164
|
value: Joi.number(),
|
|
165
|
+
file_path: Joi.string().allow(""),
|
|
166
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
167
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
246
168
|
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
169
|
+
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
170
|
+
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
247
171
|
});
|
|
248
172
|
}
|
|
249
173
|
|
|
250
|
-
/** @returns {
|
|
251
|
-
static
|
|
174
|
+
/** @returns {DiscountMeta} */
|
|
175
|
+
static DiscountMeta() {
|
|
252
176
|
return Joi.object({
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
item_code: Joi.string().allow(""),
|
|
257
|
-
seller_identifier: Joi.string().allow(""),
|
|
258
|
-
value: Joi.number().required(),
|
|
177
|
+
timer: Joi.boolean().required(),
|
|
178
|
+
hours: Joi.number(),
|
|
179
|
+
minutes: Joi.number(),
|
|
259
180
|
});
|
|
260
181
|
}
|
|
261
182
|
|
|
@@ -263,144 +184,129 @@ class DiscountPlatformModel {
|
|
|
263
184
|
static DiscountJob() {
|
|
264
185
|
return Joi.object({
|
|
265
186
|
_id: Joi.string().allow("").required(),
|
|
266
|
-
|
|
267
|
-
brand_ids: Joi.array().items(Joi.number()),
|
|
187
|
+
name: Joi.string().allow("").required(),
|
|
268
188
|
company_id: Joi.number().required(),
|
|
269
|
-
created_by: DiscountPlatformModel.UserDetails().required(),
|
|
270
|
-
created_on: Joi.string().allow("").required(),
|
|
271
|
-
discount_level: Joi.string().allow(""),
|
|
272
|
-
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
273
|
-
discount_type: Joi.string().allow(""),
|
|
274
|
-
file_path: Joi.string().allow(""),
|
|
275
189
|
is_active: Joi.boolean().required(),
|
|
190
|
+
app_ids: Joi.array().items(Joi.string().allow("")),
|
|
276
191
|
job_type: Joi.string().allow(""),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
192
|
+
discount_type: Joi.string().allow(""),
|
|
193
|
+
discount_level: Joi.string().allow(""),
|
|
194
|
+
value: Joi.number(),
|
|
195
|
+
file_path: Joi.string().allow(""),
|
|
196
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
281
197
|
store_ids: Joi.array().items(Joi.number()),
|
|
198
|
+
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
282
199
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
283
|
-
|
|
284
|
-
|
|
200
|
+
created_on: Joi.string().allow("").required(),
|
|
201
|
+
modified_on: Joi.string().allow("").required(),
|
|
202
|
+
created_by: DiscountPlatformModel.UserDetails().required(),
|
|
203
|
+
modified_by: DiscountPlatformModel.UserDetails().required(),
|
|
204
|
+
meta: Joi.any(),
|
|
285
205
|
});
|
|
286
206
|
}
|
|
287
207
|
|
|
288
|
-
/** @returns {
|
|
289
|
-
static
|
|
208
|
+
/** @returns {ListOrCalender} */
|
|
209
|
+
static ListOrCalender() {
|
|
290
210
|
return Joi.object({
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
timer: Joi.boolean().required(),
|
|
211
|
+
items: Joi.array().items(DiscountPlatformModel.DiscountJob()).required(),
|
|
212
|
+
page: DiscountPlatformModel.Page().required(),
|
|
294
213
|
});
|
|
295
214
|
}
|
|
296
215
|
|
|
297
|
-
/** @returns {
|
|
298
|
-
static
|
|
216
|
+
/** @returns {DiscountItems} */
|
|
217
|
+
static DiscountItems() {
|
|
299
218
|
return Joi.object({
|
|
300
|
-
|
|
301
|
-
|
|
219
|
+
item_code: Joi.string().allow(""),
|
|
220
|
+
brand_uid: Joi.number(),
|
|
221
|
+
seller_identifier: Joi.string().allow(""),
|
|
222
|
+
discount_type: Joi.string().allow("").required(),
|
|
223
|
+
value: Joi.number().required(),
|
|
224
|
+
discount_meta: DiscountPlatformModel.DiscountMeta(),
|
|
302
225
|
});
|
|
303
226
|
}
|
|
304
227
|
|
|
305
|
-
/** @returns {
|
|
306
|
-
static
|
|
228
|
+
/** @returns {BulkDiscount} */
|
|
229
|
+
static BulkDiscount() {
|
|
307
230
|
return Joi.object({
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
231
|
+
company_id: Joi.number().required(),
|
|
232
|
+
items: Joi.array()
|
|
233
|
+
.items(DiscountPlatformModel.DiscountItems())
|
|
234
|
+
.required(),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** @returns {FileJobResponse} */
|
|
239
|
+
static FileJobResponse() {
|
|
240
|
+
return Joi.object({
|
|
241
|
+
stage: Joi.string().allow("").required(),
|
|
242
|
+
total: Joi.number().required(),
|
|
243
|
+
failed: Joi.number().required(),
|
|
244
|
+
company_id: Joi.number().required(),
|
|
245
|
+
body: Joi.any(),
|
|
246
|
+
type: Joi.string().allow("").required(),
|
|
247
|
+
file_type: Joi.string().allow("").required(),
|
|
248
|
+
_id: Joi.string().allow("").required(),
|
|
249
|
+
file_path: Joi.string().allow("").required(),
|
|
328
250
|
});
|
|
329
251
|
}
|
|
330
252
|
|
|
331
253
|
/** @returns {FileJobRequest} */
|
|
332
254
|
static FileJobRequest() {
|
|
333
255
|
return Joi.object({
|
|
256
|
+
name: Joi.string().allow("").required(),
|
|
257
|
+
is_active: Joi.boolean().required(),
|
|
334
258
|
app_ids: Joi.array().items(Joi.string().allow("")),
|
|
335
|
-
|
|
336
|
-
company_id: Joi.number().required(),
|
|
337
|
-
discount_level: Joi.string().allow(""),
|
|
259
|
+
job_type: Joi.string().allow(""),
|
|
338
260
|
discount_type: Joi.string().allow(""),
|
|
261
|
+
discount_level: Joi.string().allow(""),
|
|
339
262
|
file_path: Joi.string().allow(""),
|
|
340
|
-
|
|
341
|
-
job_type: Joi.string().allow(""),
|
|
342
|
-
meta: Joi.any(),
|
|
343
|
-
name: Joi.string().allow("").required(),
|
|
263
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
344
264
|
store_ids: Joi.array().items(Joi.number()),
|
|
345
265
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
266
|
+
meta: Joi.any(),
|
|
346
267
|
});
|
|
347
268
|
}
|
|
348
269
|
|
|
349
|
-
/** @returns {
|
|
350
|
-
static
|
|
270
|
+
/** @returns {DownloadFileJob} */
|
|
271
|
+
static DownloadFileJob() {
|
|
351
272
|
return Joi.object({
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
company_id: Joi.number().required(),
|
|
355
|
-
created_by: DiscountPlatformModel.UserDetails(),
|
|
356
|
-
created_on: Joi.string().allow(""),
|
|
357
|
-
extension_ids: Joi.array().items(Joi.string().allow("")),
|
|
358
|
-
failed: Joi.number().required(),
|
|
359
|
-
file_path: Joi.string().allow(""),
|
|
360
|
-
file_type: Joi.string().allow(""),
|
|
361
|
-
modified_on: Joi.string().allow(""),
|
|
362
|
-
progress: Joi.number(),
|
|
363
|
-
stage: Joi.string().allow("").required(),
|
|
364
|
-
total: Joi.number().required(),
|
|
365
|
-
type: Joi.string().allow("").required(),
|
|
366
|
-
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
273
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
274
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
367
275
|
});
|
|
368
276
|
}
|
|
369
277
|
|
|
370
|
-
/** @returns {
|
|
371
|
-
static
|
|
278
|
+
/** @returns {CancelJobResponse} */
|
|
279
|
+
static CancelJobResponse() {
|
|
372
280
|
return Joi.object({
|
|
373
|
-
|
|
374
|
-
page: DiscountPlatformModel.Page().required(),
|
|
281
|
+
success: Joi.boolean().required(),
|
|
375
282
|
});
|
|
376
283
|
}
|
|
377
284
|
|
|
378
285
|
/** @returns {Page} */
|
|
379
286
|
static Page() {
|
|
380
287
|
return Joi.object({
|
|
381
|
-
current: Joi.number(),
|
|
382
|
-
has_next: Joi.boolean(),
|
|
383
|
-
has_previous: Joi.boolean(),
|
|
384
288
|
item_total: Joi.number(),
|
|
385
289
|
next_id: Joi.string().allow(""),
|
|
386
|
-
|
|
290
|
+
has_previous: Joi.boolean(),
|
|
291
|
+
has_next: Joi.boolean(),
|
|
292
|
+
current: Joi.number(),
|
|
387
293
|
type: Joi.string().allow("").required(),
|
|
294
|
+
size: Joi.number(),
|
|
388
295
|
});
|
|
389
296
|
}
|
|
390
297
|
|
|
391
298
|
/** @returns {UserDetails} */
|
|
392
299
|
static UserDetails() {
|
|
393
300
|
return Joi.object({
|
|
394
|
-
user_id: Joi.string().allow("").required(),
|
|
395
301
|
username: Joi.string().allow("").required(),
|
|
302
|
+
user_id: Joi.string().allow("").required(),
|
|
396
303
|
});
|
|
397
304
|
}
|
|
398
305
|
|
|
399
|
-
/** @returns {
|
|
400
|
-
static
|
|
306
|
+
/** @returns {BadRequestObject} */
|
|
307
|
+
static BadRequestObject() {
|
|
401
308
|
return Joi.object({
|
|
402
|
-
|
|
403
|
-
start: Joi.string().allow("").required(),
|
|
309
|
+
message: Joi.string().allow("").required(),
|
|
404
310
|
});
|
|
405
311
|
}
|
|
406
312
|
}
|
|
@@ -82,17 +82,7 @@ declare class FileStorage {
|
|
|
82
82
|
* @summary: Browse Files
|
|
83
83
|
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
|
|
84
84
|
*/
|
|
85
|
-
appbrowse({ namespace, page, limit,
|
|
86
|
-
/**
|
|
87
|
-
* @param {FileStoragePlatformApplicationValidator.BrowsefilesParam} arg - Arg object
|
|
88
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
89
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
90
|
-
* @returns {Promise<Object>} - Success response
|
|
91
|
-
* @name browsefiles
|
|
92
|
-
* @summary: Browse Files
|
|
93
|
-
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
|
|
94
|
-
*/
|
|
95
|
-
browsefiles({ namespace, body, page, limit, search, requestHeaders }?: FileStoragePlatformApplicationValidator.BrowsefilesParam, { responseHeaders }?: object): Promise<any>;
|
|
85
|
+
appbrowse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
96
86
|
/**
|
|
97
87
|
* @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
|
|
98
88
|
* - Arg object
|
|
@@ -116,7 +106,7 @@ declare class FileStorage {
|
|
|
116
106
|
* @summary: Get html template for sales channel
|
|
117
107
|
* @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/).
|
|
118
108
|
*/
|
|
119
|
-
getDefaultHtmlTemplate({ pdfTypeId, format,
|
|
109
|
+
getDefaultHtmlTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfConfigSuccess>;
|
|
120
110
|
/**
|
|
121
111
|
* @param {FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam} arg
|
|
122
112
|
* - Arg object
|
|
@@ -129,7 +119,7 @@ declare class FileStorage {
|
|
|
129
119
|
* @summary: Get Dummy pdf data for invoice or label
|
|
130
120
|
* @description: Get Dummy pdf data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
131
121
|
*/
|
|
132
|
-
getDefaultPdfData({ pdfTypeId,
|
|
122
|
+
getDefaultPdfData({ pdfTypeId, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
|
|
133
123
|
/**
|
|
134
124
|
* @param {FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam} arg
|
|
135
125
|
* - Arg object
|
|
@@ -142,7 +132,7 @@ declare class FileStorage {
|
|
|
142
132
|
* @summary: Default html template
|
|
143
133
|
* @description: Get default html template data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
|
|
144
134
|
*/
|
|
145
|
-
getDefaultPdfTemplate({ pdfTypeId, format,
|
|
135
|
+
getDefaultPdfTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>;
|
|
146
136
|
/**
|
|
147
137
|
* @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
|
|
148
138
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -151,9 +141,9 @@ declare class FileStorage {
|
|
|
151
141
|
* Success response
|
|
152
142
|
* @name getPdfTypes
|
|
153
143
|
* @summary: Get all the supported invoice pdf types
|
|
154
|
-
* @description: Get all the supported invoice pdf types such as Invoice, Label,
|
|
144
|
+
* @description: Get all the supported invoice pdf types such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
155
145
|
*/
|
|
156
|
-
getPdfTypes({
|
|
146
|
+
getPdfTypes({ requestHeaders }?: any, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
|
|
157
147
|
/**
|
|
158
148
|
* @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg
|
|
159
149
|
* - Arg object
|