@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -5,12 +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.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @typedef AppCopyFilesParam
|
|
12
|
-
* @property {boolean} [sync] - Sync
|
|
13
|
-
* @property {FileStoragePlatformModel.CopyFiles} body
|
|
8
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
14
9
|
*/
|
|
15
10
|
/**
|
|
16
11
|
* @typedef AppStartUploadParam
|
|
@@ -18,7 +13,7 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
18
13
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
19
14
|
* the file being uploaded, decides where exactly the file will be stored
|
|
20
15
|
* inside the storage bucket.
|
|
21
|
-
* @property {FileStoragePlatformModel.
|
|
16
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
22
17
|
*/
|
|
23
18
|
/**
|
|
24
19
|
* @typedef AppbrowseParam
|
|
@@ -41,99 +36,18 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
41
36
|
* @property {string} [search] - Search
|
|
42
37
|
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
43
38
|
*/
|
|
44
|
-
/**
|
|
45
|
-
* @typedef DeletePdfGeneratorConfigParam
|
|
46
|
-
* @property {string} id
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* @typedef FetchPdfDefaultTemplateByIdParam
|
|
50
|
-
* @property {string} id
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* @typedef FetchPdfTypeByIdParam
|
|
54
|
-
* @property {string} id
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
* @typedef GeneratePaymentReceiptParam
|
|
58
|
-
* @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
|
|
59
|
-
*/
|
|
60
|
-
/**
|
|
61
|
-
* @typedef GetConfigHtmlTemplateByIdParam
|
|
62
|
-
* @property {string} id
|
|
63
|
-
*/
|
|
64
|
-
/**
|
|
65
|
-
* @typedef GetDefaultPdfDataParam
|
|
66
|
-
* @property {number} pdfTypeId
|
|
67
|
-
* @property {string} [countryCode]
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* @typedef GetDefaultPdfTemplateParam
|
|
71
|
-
* @property {number} pdfTypeId
|
|
72
|
-
* @property {string} format
|
|
73
|
-
* @property {string} [countryCode]
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* @typedef GetHtmlTemplateConfigParam
|
|
77
|
-
* @property {number} pdfTypeId
|
|
78
|
-
* @property {string} format
|
|
79
|
-
* @property {string} [countryCode]
|
|
80
|
-
*/
|
|
81
|
-
/**
|
|
82
|
-
* @typedef GetPdfPayloadByIdParam
|
|
83
|
-
* @property {string} id
|
|
84
|
-
*/
|
|
85
|
-
/**
|
|
86
|
-
* @typedef GetPdfTypesParam
|
|
87
|
-
* @property {string} [countryCode]
|
|
88
|
-
* @property {boolean} storeOs
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* @typedef SaveHtmlTemplateParam
|
|
92
|
-
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* @typedef UpdateHtmlTemplateParam
|
|
96
|
-
* @property {string} id
|
|
97
|
-
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
98
|
-
*/
|
|
99
39
|
declare class FileStoragePlatformApplicationValidator {
|
|
100
40
|
/** @returns {AppCompleteUploadParam} */
|
|
101
41
|
static appCompleteUpload(): AppCompleteUploadParam;
|
|
102
|
-
/** @returns {AppCopyFilesParam} */
|
|
103
|
-
static appCopyFiles(): AppCopyFilesParam;
|
|
104
42
|
/** @returns {AppStartUploadParam} */
|
|
105
43
|
static appStartUpload(): AppStartUploadParam;
|
|
106
44
|
/** @returns {AppbrowseParam} */
|
|
107
45
|
static appbrowse(): AppbrowseParam;
|
|
108
46
|
/** @returns {BrowsefilesParam} */
|
|
109
47
|
static browsefiles(): BrowsefilesParam;
|
|
110
|
-
/** @returns {DeletePdfGeneratorConfigParam} */
|
|
111
|
-
static deletePdfGeneratorConfig(): DeletePdfGeneratorConfigParam;
|
|
112
|
-
/** @returns {FetchPdfDefaultTemplateByIdParam} */
|
|
113
|
-
static fetchPdfDefaultTemplateById(): FetchPdfDefaultTemplateByIdParam;
|
|
114
|
-
/** @returns {FetchPdfTypeByIdParam} */
|
|
115
|
-
static fetchPdfTypeById(): FetchPdfTypeByIdParam;
|
|
116
|
-
/** @returns {GeneratePaymentReceiptParam} */
|
|
117
|
-
static generatePaymentReceipt(): GeneratePaymentReceiptParam;
|
|
118
|
-
/** @returns {GetConfigHtmlTemplateByIdParam} */
|
|
119
|
-
static getConfigHtmlTemplateById(): GetConfigHtmlTemplateByIdParam;
|
|
120
|
-
/** @returns {GetDefaultPdfDataParam} */
|
|
121
|
-
static getDefaultPdfData(): GetDefaultPdfDataParam;
|
|
122
|
-
/** @returns {GetDefaultPdfTemplateParam} */
|
|
123
|
-
static getDefaultPdfTemplate(): GetDefaultPdfTemplateParam;
|
|
124
|
-
/** @returns {GetHtmlTemplateConfigParam} */
|
|
125
|
-
static getHtmlTemplateConfig(): GetHtmlTemplateConfigParam;
|
|
126
|
-
/** @returns {GetPdfPayloadByIdParam} */
|
|
127
|
-
static getPdfPayloadById(): GetPdfPayloadByIdParam;
|
|
128
|
-
/** @returns {GetPdfTypesParam} */
|
|
129
|
-
static getPdfTypes(): GetPdfTypesParam;
|
|
130
|
-
/** @returns {SaveHtmlTemplateParam} */
|
|
131
|
-
static saveHtmlTemplate(): SaveHtmlTemplateParam;
|
|
132
|
-
/** @returns {UpdateHtmlTemplateParam} */
|
|
133
|
-
static updateHtmlTemplate(): UpdateHtmlTemplateParam;
|
|
134
48
|
}
|
|
135
49
|
declare namespace FileStoragePlatformApplicationValidator {
|
|
136
|
-
export { AppCompleteUploadParam,
|
|
50
|
+
export { AppCompleteUploadParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam };
|
|
137
51
|
}
|
|
138
52
|
type AppCompleteUploadParam = {
|
|
139
53
|
/**
|
|
@@ -143,14 +57,7 @@ type AppCompleteUploadParam = {
|
|
|
143
57
|
* inside the storage bucket.
|
|
144
58
|
*/
|
|
145
59
|
namespace: string;
|
|
146
|
-
body: FileStoragePlatformModel.
|
|
147
|
-
};
|
|
148
|
-
type AppCopyFilesParam = {
|
|
149
|
-
/**
|
|
150
|
-
* - Sync
|
|
151
|
-
*/
|
|
152
|
-
sync?: boolean;
|
|
153
|
-
body: FileStoragePlatformModel.CopyFiles;
|
|
60
|
+
body: FileStoragePlatformModel.FileUpload;
|
|
154
61
|
};
|
|
155
62
|
type AppStartUploadParam = {
|
|
156
63
|
/**
|
|
@@ -160,7 +67,7 @@ type AppStartUploadParam = {
|
|
|
160
67
|
* inside the storage bucket.
|
|
161
68
|
*/
|
|
162
69
|
namespace: string;
|
|
163
|
-
body: FileStoragePlatformModel.
|
|
70
|
+
body: FileStoragePlatformModel.FileUploadStart;
|
|
164
71
|
};
|
|
165
72
|
type AppbrowseParam = {
|
|
166
73
|
/**
|
|
@@ -205,47 +112,4 @@ type BrowsefilesParam = {
|
|
|
205
112
|
search?: string;
|
|
206
113
|
body: FileStoragePlatformModel.ExtensionSlug;
|
|
207
114
|
};
|
|
208
|
-
type DeletePdfGeneratorConfigParam = {
|
|
209
|
-
id: string;
|
|
210
|
-
};
|
|
211
|
-
type FetchPdfDefaultTemplateByIdParam = {
|
|
212
|
-
id: string;
|
|
213
|
-
};
|
|
214
|
-
type FetchPdfTypeByIdParam = {
|
|
215
|
-
id: string;
|
|
216
|
-
};
|
|
217
|
-
type GeneratePaymentReceiptParam = {
|
|
218
|
-
body: FileStoragePlatformModel.PaymentReceiptRequestBody;
|
|
219
|
-
};
|
|
220
|
-
type GetConfigHtmlTemplateByIdParam = {
|
|
221
|
-
id: string;
|
|
222
|
-
};
|
|
223
|
-
type GetDefaultPdfDataParam = {
|
|
224
|
-
pdfTypeId: number;
|
|
225
|
-
countryCode?: string;
|
|
226
|
-
};
|
|
227
|
-
type GetDefaultPdfTemplateParam = {
|
|
228
|
-
pdfTypeId: number;
|
|
229
|
-
format: string;
|
|
230
|
-
countryCode?: string;
|
|
231
|
-
};
|
|
232
|
-
type GetHtmlTemplateConfigParam = {
|
|
233
|
-
pdfTypeId: number;
|
|
234
|
-
format: string;
|
|
235
|
-
countryCode?: string;
|
|
236
|
-
};
|
|
237
|
-
type GetPdfPayloadByIdParam = {
|
|
238
|
-
id: string;
|
|
239
|
-
};
|
|
240
|
-
type GetPdfTypesParam = {
|
|
241
|
-
countryCode?: string;
|
|
242
|
-
storeOs: boolean;
|
|
243
|
-
};
|
|
244
|
-
type SaveHtmlTemplateParam = {
|
|
245
|
-
body: FileStoragePlatformModel.PdfConfig;
|
|
246
|
-
};
|
|
247
|
-
type UpdateHtmlTemplateParam = {
|
|
248
|
-
id: string;
|
|
249
|
-
body: FileStoragePlatformModel.PdfConfig;
|
|
250
|
-
};
|
|
251
115
|
import FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
@@ -8,13 +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.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef AppCopyFilesParam
|
|
16
|
-
* @property {boolean} [sync] - Sync
|
|
17
|
-
* @property {FileStoragePlatformModel.CopyFiles} body
|
|
11
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
18
12
|
*/
|
|
19
13
|
|
|
20
14
|
/**
|
|
@@ -23,7 +17,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
23
17
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
24
18
|
* the file being uploaded, decides where exactly the file will be stored
|
|
25
19
|
* inside the storage bucket.
|
|
26
|
-
* @property {FileStoragePlatformModel.
|
|
20
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
27
21
|
*/
|
|
28
22
|
|
|
29
23
|
/**
|
|
@@ -49,89 +43,13 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
49
43
|
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
50
44
|
*/
|
|
51
45
|
|
|
52
|
-
/**
|
|
53
|
-
* @typedef DeletePdfGeneratorConfigParam
|
|
54
|
-
* @property {string} id
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef FetchPdfDefaultTemplateByIdParam
|
|
59
|
-
* @property {string} id
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @typedef FetchPdfTypeByIdParam
|
|
64
|
-
* @property {string} id
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @typedef GeneratePaymentReceiptParam
|
|
69
|
-
* @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @typedef GetConfigHtmlTemplateByIdParam
|
|
74
|
-
* @property {string} id
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @typedef GetDefaultPdfDataParam
|
|
79
|
-
* @property {number} pdfTypeId
|
|
80
|
-
* @property {string} [countryCode]
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @typedef GetDefaultPdfTemplateParam
|
|
85
|
-
* @property {number} pdfTypeId
|
|
86
|
-
* @property {string} format
|
|
87
|
-
* @property {string} [countryCode]
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @typedef GetHtmlTemplateConfigParam
|
|
92
|
-
* @property {number} pdfTypeId
|
|
93
|
-
* @property {string} format
|
|
94
|
-
* @property {string} [countryCode]
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @typedef GetPdfPayloadByIdParam
|
|
99
|
-
* @property {string} id
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @typedef GetPdfTypesParam
|
|
104
|
-
* @property {string} [countryCode]
|
|
105
|
-
* @property {boolean} storeOs
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @typedef SaveHtmlTemplateParam
|
|
110
|
-
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @typedef UpdateHtmlTemplateParam
|
|
115
|
-
* @property {string} id
|
|
116
|
-
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
46
|
class FileStoragePlatformApplicationValidator {
|
|
120
47
|
/** @returns {AppCompleteUploadParam} */
|
|
121
48
|
static appCompleteUpload() {
|
|
122
49
|
return Joi.object({
|
|
123
50
|
namespace: Joi.string().allow("").required(),
|
|
124
51
|
|
|
125
|
-
body: FileStoragePlatformModel.
|
|
126
|
-
}).required();
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** @returns {AppCopyFilesParam} */
|
|
130
|
-
static appCopyFiles() {
|
|
131
|
-
return Joi.object({
|
|
132
|
-
sync: Joi.boolean(),
|
|
133
|
-
|
|
134
|
-
body: FileStoragePlatformModel.CopyFiles().required(),
|
|
52
|
+
body: FileStoragePlatformModel.FileUpload().required(),
|
|
135
53
|
}).required();
|
|
136
54
|
}
|
|
137
55
|
|
|
@@ -140,7 +58,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
140
58
|
return Joi.object({
|
|
141
59
|
namespace: Joi.string().allow("").required(),
|
|
142
60
|
|
|
143
|
-
body: FileStoragePlatformModel.
|
|
61
|
+
body: FileStoragePlatformModel.FileUploadStart().required(),
|
|
144
62
|
}).required();
|
|
145
63
|
}
|
|
146
64
|
|
|
@@ -166,97 +84,6 @@ class FileStoragePlatformApplicationValidator {
|
|
|
166
84
|
body: FileStoragePlatformModel.ExtensionSlug().required(),
|
|
167
85
|
}).required();
|
|
168
86
|
}
|
|
169
|
-
|
|
170
|
-
/** @returns {DeletePdfGeneratorConfigParam} */
|
|
171
|
-
static deletePdfGeneratorConfig() {
|
|
172
|
-
return Joi.object({
|
|
173
|
-
id: Joi.string().allow("").required(),
|
|
174
|
-
}).required();
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/** @returns {FetchPdfDefaultTemplateByIdParam} */
|
|
178
|
-
static fetchPdfDefaultTemplateById() {
|
|
179
|
-
return Joi.object({
|
|
180
|
-
id: Joi.string().allow("").required(),
|
|
181
|
-
}).required();
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/** @returns {FetchPdfTypeByIdParam} */
|
|
185
|
-
static fetchPdfTypeById() {
|
|
186
|
-
return Joi.object({
|
|
187
|
-
id: Joi.string().allow("").required(),
|
|
188
|
-
}).required();
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/** @returns {GeneratePaymentReceiptParam} */
|
|
192
|
-
static generatePaymentReceipt() {
|
|
193
|
-
return Joi.object({
|
|
194
|
-
body: FileStoragePlatformModel.PaymentReceiptRequestBody().required(),
|
|
195
|
-
}).required();
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/** @returns {GetConfigHtmlTemplateByIdParam} */
|
|
199
|
-
static getConfigHtmlTemplateById() {
|
|
200
|
-
return Joi.object({
|
|
201
|
-
id: Joi.string().allow("").required(),
|
|
202
|
-
}).required();
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/** @returns {GetDefaultPdfDataParam} */
|
|
206
|
-
static getDefaultPdfData() {
|
|
207
|
-
return Joi.object({
|
|
208
|
-
pdfTypeId: Joi.number().required(),
|
|
209
|
-
countryCode: Joi.string().allow(""),
|
|
210
|
-
}).required();
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** @returns {GetDefaultPdfTemplateParam} */
|
|
214
|
-
static getDefaultPdfTemplate() {
|
|
215
|
-
return Joi.object({
|
|
216
|
-
pdfTypeId: Joi.number().required(),
|
|
217
|
-
format: Joi.string().allow("").required(),
|
|
218
|
-
countryCode: Joi.string().allow(""),
|
|
219
|
-
}).required();
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/** @returns {GetHtmlTemplateConfigParam} */
|
|
223
|
-
static getHtmlTemplateConfig() {
|
|
224
|
-
return Joi.object({
|
|
225
|
-
pdfTypeId: Joi.number().required(),
|
|
226
|
-
format: Joi.string().allow("").required(),
|
|
227
|
-
countryCode: Joi.string().allow(""),
|
|
228
|
-
}).required();
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** @returns {GetPdfPayloadByIdParam} */
|
|
232
|
-
static getPdfPayloadById() {
|
|
233
|
-
return Joi.object({
|
|
234
|
-
id: Joi.string().allow("").required(),
|
|
235
|
-
}).required();
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/** @returns {GetPdfTypesParam} */
|
|
239
|
-
static getPdfTypes() {
|
|
240
|
-
return Joi.object({
|
|
241
|
-
countryCode: Joi.string().allow(""),
|
|
242
|
-
storeOs: Joi.boolean().required(),
|
|
243
|
-
}).required();
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/** @returns {SaveHtmlTemplateParam} */
|
|
247
|
-
static saveHtmlTemplate() {
|
|
248
|
-
return Joi.object({
|
|
249
|
-
body: FileStoragePlatformModel.PdfConfig().required(),
|
|
250
|
-
}).required();
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/** @returns {UpdateHtmlTemplateParam} */
|
|
254
|
-
static updateHtmlTemplate() {
|
|
255
|
-
return Joi.object({
|
|
256
|
-
id: Joi.string().allow("").required(),
|
|
257
|
-
body: FileStoragePlatformModel.PdfConfig().required(),
|
|
258
|
-
}).required();
|
|
259
|
-
}
|
|
260
87
|
}
|
|
261
88
|
|
|
262
89
|
module.exports = FileStoragePlatformApplicationValidator;
|
|
@@ -16,12 +16,12 @@ declare class FileStorage {
|
|
|
16
16
|
* @param {FileStoragePlatformValidator.CompleteUploadParam} arg - Arg object
|
|
17
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
19
|
+
* @returns {Promise<FileStoragePlatformModel.FileUploadComplete>} - Success response
|
|
20
20
|
* @name completeUpload
|
|
21
21
|
* @summary: Complete file upload.
|
|
22
22
|
* @description: Starts the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/completeUpload/).
|
|
23
23
|
*/
|
|
24
|
-
completeUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
24
|
+
completeUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.FileUploadComplete>;
|
|
25
25
|
/**
|
|
26
26
|
* @param {FileStoragePlatformValidator.CopyFilesParam} arg - Arg object
|
|
27
27
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -36,32 +36,32 @@ declare class FileStorage {
|
|
|
36
36
|
* @param {FileStoragePlatformValidator.GetSignUrlsParam} arg - Arg object
|
|
37
37
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
38
38
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
39
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
39
|
+
* @returns {Promise<FileStoragePlatformModel.SignUrlResult>} - Success response
|
|
40
40
|
* @name getSignUrls
|
|
41
41
|
* @summary: Get signed URLs.
|
|
42
42
|
* @description: Retrieve signed URLs for file access. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getSignUrls/).
|
|
43
43
|
*/
|
|
44
|
-
getSignUrls({ body, requestHeaders }?: FileStoragePlatformValidator.GetSignUrlsParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
44
|
+
getSignUrls({ body, requestHeaders }?: FileStoragePlatformValidator.GetSignUrlsParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.SignUrlResult>;
|
|
45
45
|
/**
|
|
46
46
|
* @param {FileStoragePlatformValidator.ProxyParam} arg - Arg object
|
|
47
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
49
|
+
* @returns {Promise<FileStoragePlatformModel.ProxyFileAccess>} - Success response
|
|
50
50
|
* @name proxy
|
|
51
51
|
* @summary: Proxy file access.
|
|
52
52
|
* @description: Access files through a proxy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/proxy/).
|
|
53
53
|
*/
|
|
54
|
-
proxy({ url, requestHeaders }?: FileStoragePlatformValidator.ProxyParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
54
|
+
proxy({ url, requestHeaders }?: FileStoragePlatformValidator.ProxyParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.ProxyFileAccess>;
|
|
55
55
|
/**
|
|
56
56
|
* @param {FileStoragePlatformValidator.StartUploadParam} arg - Arg object
|
|
57
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
58
58
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
59
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
59
|
+
* @returns {Promise<FileStoragePlatformModel.FileUpload>} - Success response
|
|
60
60
|
* @name startUpload
|
|
61
61
|
* @summary: Start file upload.
|
|
62
62
|
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/startUpload/).
|
|
63
63
|
*/
|
|
64
|
-
startUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.
|
|
64
|
+
startUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.FileUpload>;
|
|
65
65
|
/**
|
|
66
66
|
* @param data
|
|
67
67
|
* @param {string} file_name
|
|
@@ -103,7 +103,7 @@ class FileStorage {
|
|
|
103
103
|
* @param {FileStoragePlatformValidator.CompleteUploadParam} arg - Arg object
|
|
104
104
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
105
105
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
106
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
106
|
+
* @returns {Promise<FileStoragePlatformModel.FileUploadComplete>} - Success response
|
|
107
107
|
* @name completeUpload
|
|
108
108
|
* @summary: Complete file upload.
|
|
109
109
|
* @description: Starts the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/completeUpload/).
|
|
@@ -163,7 +163,7 @@ class FileStorage {
|
|
|
163
163
|
|
|
164
164
|
const {
|
|
165
165
|
error: res_error,
|
|
166
|
-
} = FileStoragePlatformModel.
|
|
166
|
+
} = FileStoragePlatformModel.FileUploadComplete().validate(responseData, {
|
|
167
167
|
abortEarly: false,
|
|
168
168
|
allowUnknown: true,
|
|
169
169
|
});
|
|
@@ -266,7 +266,7 @@ class FileStorage {
|
|
|
266
266
|
* @param {FileStoragePlatformValidator.GetSignUrlsParam} arg - Arg object
|
|
267
267
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
268
268
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
269
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
269
|
+
* @returns {Promise<FileStoragePlatformModel.SignUrlResult>} - Success response
|
|
270
270
|
* @name getSignUrls
|
|
271
271
|
* @summary: Get signed URLs.
|
|
272
272
|
* @description: Retrieve signed URLs for file access. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getSignUrls/).
|
|
@@ -322,7 +322,7 @@ class FileStorage {
|
|
|
322
322
|
|
|
323
323
|
const {
|
|
324
324
|
error: res_error,
|
|
325
|
-
} = FileStoragePlatformModel.
|
|
325
|
+
} = FileStoragePlatformModel.SignUrlResult().validate(responseData, {
|
|
326
326
|
abortEarly: false,
|
|
327
327
|
allowUnknown: true,
|
|
328
328
|
});
|
|
@@ -345,7 +345,7 @@ class FileStorage {
|
|
|
345
345
|
* @param {FileStoragePlatformValidator.ProxyParam} arg - Arg object
|
|
346
346
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
347
347
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
348
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
348
|
+
* @returns {Promise<FileStoragePlatformModel.ProxyFileAccess>} - Success response
|
|
349
349
|
* @name proxy
|
|
350
350
|
* @summary: Proxy file access.
|
|
351
351
|
* @description: Access files through a proxy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/proxy/).
|
|
@@ -400,7 +400,7 @@ class FileStorage {
|
|
|
400
400
|
|
|
401
401
|
const {
|
|
402
402
|
error: res_error,
|
|
403
|
-
} = FileStoragePlatformModel.
|
|
403
|
+
} = FileStoragePlatformModel.ProxyFileAccess().validate(responseData, {
|
|
404
404
|
abortEarly: false,
|
|
405
405
|
allowUnknown: true,
|
|
406
406
|
});
|
|
@@ -423,7 +423,7 @@ class FileStorage {
|
|
|
423
423
|
* @param {FileStoragePlatformValidator.StartUploadParam} arg - Arg object
|
|
424
424
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
425
425
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
426
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
426
|
+
* @returns {Promise<FileStoragePlatformModel.FileUpload>} - Success response
|
|
427
427
|
* @name startUpload
|
|
428
428
|
* @summary: Start file upload.
|
|
429
429
|
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/startUpload/).
|
|
@@ -483,7 +483,7 @@ class FileStorage {
|
|
|
483
483
|
|
|
484
484
|
const {
|
|
485
485
|
error: res_error,
|
|
486
|
-
} = FileStoragePlatformModel.
|
|
486
|
+
} = FileStoragePlatformModel.FileUpload().validate(responseData, {
|
|
487
487
|
abortEarly: false,
|
|
488
488
|
allowUnknown: true,
|
|
489
489
|
});
|