@gofynd/fdk-client-javascript 1.1.6 → 1.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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -2,8 +2,8 @@ const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const constructUrl = require("../constructUrl");
|
|
4
4
|
const Paginator = require("../../common/Paginator");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const FileStorageApplicationValidator = require("./FileStorageApplicationValidator");
|
|
6
|
+
const FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
8
|
const Joi = require("joi");
|
|
9
9
|
const axios = require("axios");
|
|
@@ -35,13 +35,10 @@ class FileStorage {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* stored inside the storage bucket.
|
|
43
|
-
* @param {StartResponse} arg.body
|
|
44
|
-
* @returns {Promise<CompleteResponse>} - Success response
|
|
38
|
+
* @param {FileStorageApplicationValidator.CompleteUploadParam} arg - Arg object.
|
|
39
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
40
|
+
* @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
|
|
41
|
+
* @name completeUpload
|
|
45
42
|
* @summary: Completes the upload process. After successfully uploading a file, call this API to finish the upload process.
|
|
46
43
|
* @description: Use this API to perform the third step of uploading (i.e. **Complete**) an arbitrarily sized buffer or blob.
|
|
47
44
|
*
|
|
@@ -61,9 +58,13 @@ class FileStorage {
|
|
|
61
58
|
* ### Complete
|
|
62
59
|
* After successfully upload, call the `completeUpload` API to finish the upload process.
|
|
63
60
|
* This operation will return the URL of the uploaded file.
|
|
61
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
64
62
|
*/
|
|
65
|
-
async completeUpload(
|
|
66
|
-
|
|
63
|
+
async completeUpload(
|
|
64
|
+
{ namespace, body } = {},
|
|
65
|
+
{ headers } = { headers: false }
|
|
66
|
+
) {
|
|
67
|
+
const { error } = FileStorageApplicationValidator.completeUpload().validate(
|
|
67
68
|
{ namespace, body },
|
|
68
69
|
{ abortEarly: false, allowUnknown: true }
|
|
69
70
|
);
|
|
@@ -72,16 +73,17 @@ class FileStorage {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
// Showing warrnings if extra unknown parameters are found
|
|
75
|
-
const {
|
|
76
|
+
const {
|
|
77
|
+
error: warrning,
|
|
78
|
+
} = FileStorageApplicationValidator.completeUpload().validate(
|
|
76
79
|
{ namespace, body },
|
|
77
80
|
{ abortEarly: false, allowUnknown: false }
|
|
78
81
|
);
|
|
79
82
|
if (warrning) {
|
|
80
83
|
Logger({
|
|
81
84
|
level: "WARN",
|
|
82
|
-
message:
|
|
85
|
+
message: `Parameter Validation warrnings for application > FileStorage > completeUpload \n ${warrning}`,
|
|
83
86
|
});
|
|
84
|
-
Logger({ level: "WARN", message: warrning });
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
const query_params = {};
|
|
@@ -97,12 +99,18 @@ class FileStorage {
|
|
|
97
99
|
}),
|
|
98
100
|
query_params,
|
|
99
101
|
body,
|
|
100
|
-
xHeaders
|
|
102
|
+
xHeaders,
|
|
103
|
+
{ headers }
|
|
101
104
|
);
|
|
102
105
|
|
|
106
|
+
let responseData = response;
|
|
107
|
+
if (headers) {
|
|
108
|
+
responseData = response[0];
|
|
109
|
+
}
|
|
110
|
+
|
|
103
111
|
const {
|
|
104
112
|
error: res_error,
|
|
105
|
-
} =
|
|
113
|
+
} = FileStorageApplicationModel.CompleteResponse().validate(responseData, {
|
|
106
114
|
abortEarly: false,
|
|
107
115
|
allowUnknown: false,
|
|
108
116
|
});
|
|
@@ -110,23 +118,23 @@ class FileStorage {
|
|
|
110
118
|
if (res_error) {
|
|
111
119
|
Logger({
|
|
112
120
|
level: "WARN",
|
|
113
|
-
message:
|
|
121
|
+
message: `Response Validation Warnnings for application > FileStorage > completeUpload \n ${res_error}`,
|
|
114
122
|
});
|
|
115
|
-
Logger({ level: "WARN", message: res_error });
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
return response;
|
|
119
126
|
}
|
|
120
127
|
|
|
121
128
|
/**
|
|
122
|
-
* @param {
|
|
123
|
-
* @param {
|
|
124
|
-
* @returns {Promise<SignUrlResponse>} - Success response
|
|
129
|
+
* @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
|
|
130
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
131
|
+
* @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
|
|
132
|
+
* @name signUrls
|
|
125
133
|
* @summary: Explain here
|
|
126
|
-
* @description: Describe here
|
|
134
|
+
* @description: Describe here - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
127
135
|
*/
|
|
128
|
-
async signUrls({ body } = {}) {
|
|
129
|
-
const { error } =
|
|
136
|
+
async signUrls({ body } = {}, { headers } = { headers: false }) {
|
|
137
|
+
const { error } = FileStorageApplicationValidator.signUrls().validate(
|
|
130
138
|
{ body },
|
|
131
139
|
{ abortEarly: false, allowUnknown: true }
|
|
132
140
|
);
|
|
@@ -135,16 +143,17 @@ class FileStorage {
|
|
|
135
143
|
}
|
|
136
144
|
|
|
137
145
|
// Showing warrnings if extra unknown parameters are found
|
|
138
|
-
const {
|
|
146
|
+
const {
|
|
147
|
+
error: warrning,
|
|
148
|
+
} = FileStorageApplicationValidator.signUrls().validate(
|
|
139
149
|
{ body },
|
|
140
150
|
{ abortEarly: false, allowUnknown: false }
|
|
141
151
|
);
|
|
142
152
|
if (warrning) {
|
|
143
153
|
Logger({
|
|
144
154
|
level: "WARN",
|
|
145
|
-
message:
|
|
155
|
+
message: `Parameter Validation warrnings for application > FileStorage > signUrls \n ${warrning}`,
|
|
146
156
|
});
|
|
147
|
-
Logger({ level: "WARN", message: warrning });
|
|
148
157
|
}
|
|
149
158
|
|
|
150
159
|
const query_params = {};
|
|
@@ -160,12 +169,18 @@ class FileStorage {
|
|
|
160
169
|
}),
|
|
161
170
|
query_params,
|
|
162
171
|
body,
|
|
163
|
-
xHeaders
|
|
172
|
+
xHeaders,
|
|
173
|
+
{ headers }
|
|
164
174
|
);
|
|
165
175
|
|
|
176
|
+
let responseData = response;
|
|
177
|
+
if (headers) {
|
|
178
|
+
responseData = response[0];
|
|
179
|
+
}
|
|
180
|
+
|
|
166
181
|
const {
|
|
167
182
|
error: res_error,
|
|
168
|
-
} =
|
|
183
|
+
} = FileStorageApplicationModel.SignUrlResponse().validate(responseData, {
|
|
169
184
|
abortEarly: false,
|
|
170
185
|
allowUnknown: false,
|
|
171
186
|
});
|
|
@@ -173,22 +188,18 @@ class FileStorage {
|
|
|
173
188
|
if (res_error) {
|
|
174
189
|
Logger({
|
|
175
190
|
level: "WARN",
|
|
176
|
-
message:
|
|
191
|
+
message: `Response Validation Warnnings for application > FileStorage > signUrls \n ${res_error}`,
|
|
177
192
|
});
|
|
178
|
-
Logger({ level: "WARN", message: res_error });
|
|
179
193
|
}
|
|
180
194
|
|
|
181
195
|
return response;
|
|
182
196
|
}
|
|
183
197
|
|
|
184
198
|
/**
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* stored inside the storage bucket.
|
|
190
|
-
* @param {StartRequest} arg.body
|
|
191
|
-
* @returns {Promise<StartResponse>} - Success response
|
|
199
|
+
* @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
|
|
200
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
201
|
+
* @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
|
|
202
|
+
* @name startUpload
|
|
192
203
|
* @summary: Initiates an upload and returns a storage link that is valid for 30 minutes. You can use the storage link to make subsequent upload request with file buffer or blob.
|
|
193
204
|
* @description: Use this API to perform the first step of uploading (i.e. **Start**) an arbitrarily sized buffer or blob.
|
|
194
205
|
*
|
|
@@ -208,9 +219,13 @@ class FileStorage {
|
|
|
208
219
|
* ### Complete
|
|
209
220
|
* After successfully upload, call the `completeUpload` API to finish the upload process.
|
|
210
221
|
* This operation will return the URL of the uploaded file.
|
|
222
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
211
223
|
*/
|
|
212
|
-
async startUpload(
|
|
213
|
-
|
|
224
|
+
async startUpload(
|
|
225
|
+
{ namespace, body } = {},
|
|
226
|
+
{ headers } = { headers: false }
|
|
227
|
+
) {
|
|
228
|
+
const { error } = FileStorageApplicationValidator.startUpload().validate(
|
|
214
229
|
{ namespace, body },
|
|
215
230
|
{ abortEarly: false, allowUnknown: true }
|
|
216
231
|
);
|
|
@@ -219,16 +234,17 @@ class FileStorage {
|
|
|
219
234
|
}
|
|
220
235
|
|
|
221
236
|
// Showing warrnings if extra unknown parameters are found
|
|
222
|
-
const {
|
|
237
|
+
const {
|
|
238
|
+
error: warrning,
|
|
239
|
+
} = FileStorageApplicationValidator.startUpload().validate(
|
|
223
240
|
{ namespace, body },
|
|
224
241
|
{ abortEarly: false, allowUnknown: false }
|
|
225
242
|
);
|
|
226
243
|
if (warrning) {
|
|
227
244
|
Logger({
|
|
228
245
|
level: "WARN",
|
|
229
|
-
message:
|
|
246
|
+
message: `Parameter Validation warrnings for application > FileStorage > startUpload \n ${warrning}`,
|
|
230
247
|
});
|
|
231
|
-
Logger({ level: "WARN", message: warrning });
|
|
232
248
|
}
|
|
233
249
|
|
|
234
250
|
const query_params = {};
|
|
@@ -244,12 +260,18 @@ class FileStorage {
|
|
|
244
260
|
}),
|
|
245
261
|
query_params,
|
|
246
262
|
body,
|
|
247
|
-
xHeaders
|
|
263
|
+
xHeaders,
|
|
264
|
+
{ headers }
|
|
248
265
|
);
|
|
249
266
|
|
|
267
|
+
let responseData = response;
|
|
268
|
+
if (headers) {
|
|
269
|
+
responseData = response[0];
|
|
270
|
+
}
|
|
271
|
+
|
|
250
272
|
const {
|
|
251
273
|
error: res_error,
|
|
252
|
-
} =
|
|
274
|
+
} = FileStorageApplicationModel.StartResponse().validate(responseData, {
|
|
253
275
|
abortEarly: false,
|
|
254
276
|
allowUnknown: false,
|
|
255
277
|
});
|
|
@@ -257,9 +279,8 @@ class FileStorage {
|
|
|
257
279
|
if (res_error) {
|
|
258
280
|
Logger({
|
|
259
281
|
level: "WARN",
|
|
260
|
-
message:
|
|
282
|
+
message: `Response Validation Warnnings for application > FileStorage > startUpload \n ${res_error}`,
|
|
261
283
|
});
|
|
262
|
-
Logger({ level: "WARN", message: res_error });
|
|
263
284
|
}
|
|
264
285
|
|
|
265
286
|
return response;
|
|
@@ -1,21 +1,300 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
export = FileStorageApplicationModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef BrowseResponse
|
|
4
|
+
* @property {DbRecord[]} items
|
|
5
|
+
* @property {Page} page
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @typedef BulkRequest
|
|
9
|
+
* @property {ReqConfiguration} [configuration]
|
|
10
|
+
* @property {Destination} destination
|
|
11
|
+
* @property {string[]} urls
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @typedef BulkUploadResponse
|
|
15
|
+
* @property {CopyFileTask} task
|
|
16
|
+
* @property {string} tracking_url
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @typedef CDN
|
|
20
|
+
* @property {string} absolute_url
|
|
21
|
+
* @property {string} relative_url
|
|
22
|
+
* @property {string} url
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* @typedef CompleteResponse
|
|
26
|
+
* @property {string} _id
|
|
27
|
+
* @property {CDN} cdn
|
|
28
|
+
* @property {string} content_type
|
|
29
|
+
* @property {string} created_on
|
|
30
|
+
* @property {string} file_name
|
|
31
|
+
* @property {string} file_path
|
|
32
|
+
* @property {string} modified_on
|
|
33
|
+
* @property {string} namespace
|
|
34
|
+
* @property {string} operation
|
|
35
|
+
* @property {number} size
|
|
36
|
+
* @property {boolean} success
|
|
37
|
+
* @property {string[]} [tags]
|
|
38
|
+
* @property {Upload} upload
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* @typedef CopyFileTask
|
|
42
|
+
* @property {number} attempts_made
|
|
43
|
+
* @property {BulkRequest} data
|
|
44
|
+
* @property {number} delay
|
|
45
|
+
* @property {number} finished_on
|
|
46
|
+
* @property {string} id
|
|
47
|
+
* @property {string} name
|
|
48
|
+
* @property {Opts} opts
|
|
49
|
+
* @property {number} processed_on
|
|
50
|
+
* @property {number} progress
|
|
51
|
+
* @property {string[]} [stacktrace]
|
|
52
|
+
* @property {number} timestamp
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* @typedef DbRecord
|
|
56
|
+
* @property {string} _id
|
|
57
|
+
* @property {CDN} cdn
|
|
58
|
+
* @property {string} content_type
|
|
59
|
+
* @property {string} created_on
|
|
60
|
+
* @property {string} file_name
|
|
61
|
+
* @property {string} file_path
|
|
62
|
+
* @property {string} modified_on
|
|
63
|
+
* @property {string} namespace
|
|
64
|
+
* @property {string} [operation]
|
|
65
|
+
* @property {boolean} success
|
|
66
|
+
* @property {string[]} tags
|
|
67
|
+
* @property {Upload} upload
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* @typedef Destination
|
|
71
|
+
* @property {string} [basepath]
|
|
72
|
+
* @property {string} namespace
|
|
73
|
+
* @property {string} rewrite
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* @typedef FailedResponse
|
|
77
|
+
* @property {string} message
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* @typedef Opts
|
|
81
|
+
* @property {number} [attempts]
|
|
82
|
+
* @property {number} [delay]
|
|
83
|
+
* @property {number} [timestamp]
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* @typedef Page
|
|
87
|
+
* @property {number} [current]
|
|
88
|
+
* @property {boolean} [has_next]
|
|
89
|
+
* @property {boolean} [has_previous]
|
|
90
|
+
* @property {number} [item_total]
|
|
91
|
+
* @property {string} [next_id]
|
|
92
|
+
* @property {number} [size]
|
|
93
|
+
* @property {string} type
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* @typedef ReqConfiguration
|
|
97
|
+
* @property {number} [concurrency]
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* @typedef SignUrlRequest
|
|
101
|
+
* @property {number} expiry
|
|
102
|
+
* @property {string[]} urls
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* @typedef SignUrlResponse
|
|
106
|
+
* @property {Urls[]} urls
|
|
107
|
+
*/
|
|
108
|
+
/**
|
|
109
|
+
* @typedef StartRequest
|
|
110
|
+
* @property {string} content_type
|
|
111
|
+
* @property {string} file_name
|
|
112
|
+
* @property {Object} [params]
|
|
113
|
+
* @property {number} size
|
|
114
|
+
* @property {string[]} [tags]
|
|
115
|
+
*/
|
|
116
|
+
/**
|
|
117
|
+
* @typedef StartResponse
|
|
118
|
+
* @property {CDN} cdn
|
|
119
|
+
* @property {string} content_type
|
|
120
|
+
* @property {string} file_name
|
|
121
|
+
* @property {string} file_path
|
|
122
|
+
* @property {string} [method]
|
|
123
|
+
* @property {string} namespace
|
|
124
|
+
* @property {string} operation
|
|
125
|
+
* @property {number} size
|
|
126
|
+
* @property {string[]} [tags]
|
|
127
|
+
* @property {Upload} upload
|
|
128
|
+
*/
|
|
129
|
+
/**
|
|
130
|
+
* @typedef Upload
|
|
131
|
+
* @property {number} expiry
|
|
132
|
+
* @property {string} url
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* @typedef Urls
|
|
136
|
+
* @property {number} expiry
|
|
137
|
+
* @property {string} signed_url
|
|
138
|
+
* @property {string} url
|
|
139
|
+
*/
|
|
140
|
+
declare class FileStorageApplicationModel {
|
|
21
141
|
}
|
|
142
|
+
declare namespace FileStorageApplicationModel {
|
|
143
|
+
export { BrowseResponse, BulkRequest, BulkUploadResponse, CDN, CompleteResponse, CopyFileTask, DbRecord, Destination, FailedResponse, Opts, Page, ReqConfiguration, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, Upload, Urls };
|
|
144
|
+
}
|
|
145
|
+
/** @returns {BrowseResponse} */
|
|
146
|
+
declare function BrowseResponse(): BrowseResponse;
|
|
147
|
+
type BrowseResponse = {
|
|
148
|
+
items: DbRecord[];
|
|
149
|
+
page: Page;
|
|
150
|
+
};
|
|
151
|
+
/** @returns {BulkRequest} */
|
|
152
|
+
declare function BulkRequest(): BulkRequest;
|
|
153
|
+
type BulkRequest = {
|
|
154
|
+
configuration?: ReqConfiguration;
|
|
155
|
+
destination: Destination;
|
|
156
|
+
urls: string[];
|
|
157
|
+
};
|
|
158
|
+
/** @returns {BulkUploadResponse} */
|
|
159
|
+
declare function BulkUploadResponse(): BulkUploadResponse;
|
|
160
|
+
type BulkUploadResponse = {
|
|
161
|
+
task: CopyFileTask;
|
|
162
|
+
tracking_url: string;
|
|
163
|
+
};
|
|
164
|
+
/** @returns {CDN} */
|
|
165
|
+
declare function CDN(): CDN;
|
|
166
|
+
type CDN = {
|
|
167
|
+
absolute_url: string;
|
|
168
|
+
relative_url: string;
|
|
169
|
+
url: string;
|
|
170
|
+
};
|
|
171
|
+
/** @returns {CompleteResponse} */
|
|
172
|
+
declare function CompleteResponse(): CompleteResponse;
|
|
173
|
+
type CompleteResponse = {
|
|
174
|
+
_id: string;
|
|
175
|
+
cdn: CDN;
|
|
176
|
+
content_type: string;
|
|
177
|
+
created_on: string;
|
|
178
|
+
file_name: string;
|
|
179
|
+
file_path: string;
|
|
180
|
+
modified_on: string;
|
|
181
|
+
namespace: string;
|
|
182
|
+
operation: string;
|
|
183
|
+
size: number;
|
|
184
|
+
success: boolean;
|
|
185
|
+
tags?: string[];
|
|
186
|
+
upload: Upload;
|
|
187
|
+
};
|
|
188
|
+
/** @returns {CopyFileTask} */
|
|
189
|
+
declare function CopyFileTask(): CopyFileTask;
|
|
190
|
+
type CopyFileTask = {
|
|
191
|
+
attempts_made: number;
|
|
192
|
+
data: BulkRequest;
|
|
193
|
+
delay: number;
|
|
194
|
+
finished_on: number;
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
opts: Opts;
|
|
198
|
+
processed_on: number;
|
|
199
|
+
progress: number;
|
|
200
|
+
stacktrace?: string[];
|
|
201
|
+
timestamp: number;
|
|
202
|
+
};
|
|
203
|
+
/** @returns {DbRecord} */
|
|
204
|
+
declare function DbRecord(): DbRecord;
|
|
205
|
+
type DbRecord = {
|
|
206
|
+
_id: string;
|
|
207
|
+
cdn: CDN;
|
|
208
|
+
content_type: string;
|
|
209
|
+
created_on: string;
|
|
210
|
+
file_name: string;
|
|
211
|
+
file_path: string;
|
|
212
|
+
modified_on: string;
|
|
213
|
+
namespace: string;
|
|
214
|
+
operation?: string;
|
|
215
|
+
success: boolean;
|
|
216
|
+
tags: string[];
|
|
217
|
+
upload: Upload;
|
|
218
|
+
};
|
|
219
|
+
/** @returns {Destination} */
|
|
220
|
+
declare function Destination(): Destination;
|
|
221
|
+
type Destination = {
|
|
222
|
+
basepath?: string;
|
|
223
|
+
namespace: string;
|
|
224
|
+
rewrite: string;
|
|
225
|
+
};
|
|
226
|
+
/** @returns {FailedResponse} */
|
|
227
|
+
declare function FailedResponse(): FailedResponse;
|
|
228
|
+
type FailedResponse = {
|
|
229
|
+
message: string;
|
|
230
|
+
};
|
|
231
|
+
/** @returns {Opts} */
|
|
232
|
+
declare function Opts(): Opts;
|
|
233
|
+
type Opts = {
|
|
234
|
+
attempts?: number;
|
|
235
|
+
delay?: number;
|
|
236
|
+
timestamp?: number;
|
|
237
|
+
};
|
|
238
|
+
/** @returns {Page} */
|
|
239
|
+
declare function Page(): Page;
|
|
240
|
+
type Page = {
|
|
241
|
+
current?: number;
|
|
242
|
+
has_next?: boolean;
|
|
243
|
+
has_previous?: boolean;
|
|
244
|
+
item_total?: number;
|
|
245
|
+
next_id?: string;
|
|
246
|
+
size?: number;
|
|
247
|
+
type: string;
|
|
248
|
+
};
|
|
249
|
+
/** @returns {ReqConfiguration} */
|
|
250
|
+
declare function ReqConfiguration(): ReqConfiguration;
|
|
251
|
+
type ReqConfiguration = {
|
|
252
|
+
concurrency?: number;
|
|
253
|
+
};
|
|
254
|
+
/** @returns {SignUrlRequest} */
|
|
255
|
+
declare function SignUrlRequest(): SignUrlRequest;
|
|
256
|
+
type SignUrlRequest = {
|
|
257
|
+
expiry: number;
|
|
258
|
+
urls: string[];
|
|
259
|
+
};
|
|
260
|
+
/** @returns {SignUrlResponse} */
|
|
261
|
+
declare function SignUrlResponse(): SignUrlResponse;
|
|
262
|
+
type SignUrlResponse = {
|
|
263
|
+
urls: Urls[];
|
|
264
|
+
};
|
|
265
|
+
/** @returns {StartRequest} */
|
|
266
|
+
declare function StartRequest(): StartRequest;
|
|
267
|
+
type StartRequest = {
|
|
268
|
+
content_type: string;
|
|
269
|
+
file_name: string;
|
|
270
|
+
params?: any;
|
|
271
|
+
size: number;
|
|
272
|
+
tags?: string[];
|
|
273
|
+
};
|
|
274
|
+
/** @returns {StartResponse} */
|
|
275
|
+
declare function StartResponse(): StartResponse;
|
|
276
|
+
type StartResponse = {
|
|
277
|
+
cdn: CDN;
|
|
278
|
+
content_type: string;
|
|
279
|
+
file_name: string;
|
|
280
|
+
file_path: string;
|
|
281
|
+
method?: string;
|
|
282
|
+
namespace: string;
|
|
283
|
+
operation: string;
|
|
284
|
+
size: number;
|
|
285
|
+
tags?: string[];
|
|
286
|
+
upload: Upload;
|
|
287
|
+
};
|
|
288
|
+
/** @returns {Upload} */
|
|
289
|
+
declare function Upload(): Upload;
|
|
290
|
+
type Upload = {
|
|
291
|
+
expiry: number;
|
|
292
|
+
url: string;
|
|
293
|
+
};
|
|
294
|
+
/** @returns {Urls} */
|
|
295
|
+
declare function Urls(): Urls;
|
|
296
|
+
type Urls = {
|
|
297
|
+
expiry: number;
|
|
298
|
+
signed_url: string;
|
|
299
|
+
url: string;
|
|
300
|
+
};
|