@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +810 -6
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- 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 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -5,7 +5,7 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
5
5
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
6
6
|
* the file being uploaded, decides where exactly the file will be stored
|
|
7
7
|
* inside the storage bucket.
|
|
8
|
-
* @property {FileStoragePlatformModel.
|
|
8
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AppCopyFilesParam
|
|
@@ -18,7 +18,7 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
18
18
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
19
19
|
* the file being uploaded, decides where exactly the file will be stored
|
|
20
20
|
* inside the storage bucket.
|
|
21
|
-
* @property {FileStoragePlatformModel.
|
|
21
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
24
24
|
* @typedef AppbrowseParam
|
|
@@ -41,15 +41,25 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
41
41
|
* @property {string} [search] - Search
|
|
42
42
|
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
43
43
|
*/
|
|
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
|
+
*/
|
|
44
56
|
/**
|
|
45
57
|
* @typedef GeneratePaymentReceiptParam
|
|
46
58
|
* @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
|
|
47
59
|
*/
|
|
48
60
|
/**
|
|
49
|
-
* @typedef
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {string} format
|
|
52
|
-
* @property {string} [countryCode]
|
|
61
|
+
* @typedef GetConfigHtmlTemplateByIdParam
|
|
62
|
+
* @property {string} id
|
|
53
63
|
*/
|
|
54
64
|
/**
|
|
55
65
|
* @typedef GetDefaultPdfDataParam
|
|
@@ -62,9 +72,20 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
62
72
|
* @property {string} format
|
|
63
73
|
* @property {string} [countryCode]
|
|
64
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
|
+
*/
|
|
65
85
|
/**
|
|
66
86
|
* @typedef GetPdfTypesParam
|
|
67
87
|
* @property {string} [countryCode]
|
|
88
|
+
* @property {boolean} storeOs
|
|
68
89
|
*/
|
|
69
90
|
/**
|
|
70
91
|
* @typedef SaveHtmlTemplateParam
|
|
@@ -86,14 +107,24 @@ declare class FileStoragePlatformApplicationValidator {
|
|
|
86
107
|
static appbrowse(): AppbrowseParam;
|
|
87
108
|
/** @returns {BrowsefilesParam} */
|
|
88
109
|
static browsefiles(): BrowsefilesParam;
|
|
110
|
+
/** @returns {DeletePdfGeneratorConfigParam} */
|
|
111
|
+
static deletePdfGeneratorConfig(): DeletePdfGeneratorConfigParam;
|
|
112
|
+
/** @returns {FetchPdfDefaultTemplateByIdParam} */
|
|
113
|
+
static fetchPdfDefaultTemplateById(): FetchPdfDefaultTemplateByIdParam;
|
|
114
|
+
/** @returns {FetchPdfTypeByIdParam} */
|
|
115
|
+
static fetchPdfTypeById(): FetchPdfTypeByIdParam;
|
|
89
116
|
/** @returns {GeneratePaymentReceiptParam} */
|
|
90
117
|
static generatePaymentReceipt(): GeneratePaymentReceiptParam;
|
|
91
|
-
/** @returns {
|
|
92
|
-
static
|
|
118
|
+
/** @returns {GetConfigHtmlTemplateByIdParam} */
|
|
119
|
+
static getConfigHtmlTemplateById(): GetConfigHtmlTemplateByIdParam;
|
|
93
120
|
/** @returns {GetDefaultPdfDataParam} */
|
|
94
121
|
static getDefaultPdfData(): GetDefaultPdfDataParam;
|
|
95
122
|
/** @returns {GetDefaultPdfTemplateParam} */
|
|
96
123
|
static getDefaultPdfTemplate(): GetDefaultPdfTemplateParam;
|
|
124
|
+
/** @returns {GetHtmlTemplateConfigParam} */
|
|
125
|
+
static getHtmlTemplateConfig(): GetHtmlTemplateConfigParam;
|
|
126
|
+
/** @returns {GetPdfPayloadByIdParam} */
|
|
127
|
+
static getPdfPayloadById(): GetPdfPayloadByIdParam;
|
|
97
128
|
/** @returns {GetPdfTypesParam} */
|
|
98
129
|
static getPdfTypes(): GetPdfTypesParam;
|
|
99
130
|
/** @returns {SaveHtmlTemplateParam} */
|
|
@@ -102,7 +133,7 @@ declare class FileStoragePlatformApplicationValidator {
|
|
|
102
133
|
static updateHtmlTemplate(): UpdateHtmlTemplateParam;
|
|
103
134
|
}
|
|
104
135
|
declare namespace FileStoragePlatformApplicationValidator {
|
|
105
|
-
export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, GeneratePaymentReceiptParam,
|
|
136
|
+
export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, DeletePdfGeneratorConfigParam, FetchPdfDefaultTemplateByIdParam, FetchPdfTypeByIdParam, GeneratePaymentReceiptParam, GetConfigHtmlTemplateByIdParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetHtmlTemplateConfigParam, GetPdfPayloadByIdParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam };
|
|
106
137
|
}
|
|
107
138
|
type AppCompleteUploadParam = {
|
|
108
139
|
/**
|
|
@@ -112,7 +143,7 @@ type AppCompleteUploadParam = {
|
|
|
112
143
|
* inside the storage bucket.
|
|
113
144
|
*/
|
|
114
145
|
namespace: string;
|
|
115
|
-
body: FileStoragePlatformModel.
|
|
146
|
+
body: FileStoragePlatformModel.FileUpload;
|
|
116
147
|
};
|
|
117
148
|
type AppCopyFilesParam = {
|
|
118
149
|
/**
|
|
@@ -129,7 +160,7 @@ type AppStartUploadParam = {
|
|
|
129
160
|
* inside the storage bucket.
|
|
130
161
|
*/
|
|
131
162
|
namespace: string;
|
|
132
|
-
body: FileStoragePlatformModel.
|
|
163
|
+
body: FileStoragePlatformModel.FileUploadStart;
|
|
133
164
|
};
|
|
134
165
|
type AppbrowseParam = {
|
|
135
166
|
/**
|
|
@@ -174,13 +205,20 @@ type BrowsefilesParam = {
|
|
|
174
205
|
search?: string;
|
|
175
206
|
body: FileStoragePlatformModel.ExtensionSlug;
|
|
176
207
|
};
|
|
208
|
+
type DeletePdfGeneratorConfigParam = {
|
|
209
|
+
id: string;
|
|
210
|
+
};
|
|
211
|
+
type FetchPdfDefaultTemplateByIdParam = {
|
|
212
|
+
id: string;
|
|
213
|
+
};
|
|
214
|
+
type FetchPdfTypeByIdParam = {
|
|
215
|
+
id: string;
|
|
216
|
+
};
|
|
177
217
|
type GeneratePaymentReceiptParam = {
|
|
178
218
|
body: FileStoragePlatformModel.PaymentReceiptRequestBody;
|
|
179
219
|
};
|
|
180
|
-
type
|
|
181
|
-
|
|
182
|
-
format: string;
|
|
183
|
-
countryCode?: string;
|
|
220
|
+
type GetConfigHtmlTemplateByIdParam = {
|
|
221
|
+
id: string;
|
|
184
222
|
};
|
|
185
223
|
type GetDefaultPdfDataParam = {
|
|
186
224
|
pdfTypeId: number;
|
|
@@ -191,8 +229,17 @@ type GetDefaultPdfTemplateParam = {
|
|
|
191
229
|
format: string;
|
|
192
230
|
countryCode?: string;
|
|
193
231
|
};
|
|
232
|
+
type GetHtmlTemplateConfigParam = {
|
|
233
|
+
pdfTypeId: number;
|
|
234
|
+
format: string;
|
|
235
|
+
countryCode?: string;
|
|
236
|
+
};
|
|
237
|
+
type GetPdfPayloadByIdParam = {
|
|
238
|
+
id: string;
|
|
239
|
+
};
|
|
194
240
|
type GetPdfTypesParam = {
|
|
195
241
|
countryCode?: string;
|
|
242
|
+
storeOs: boolean;
|
|
196
243
|
};
|
|
197
244
|
type SaveHtmlTemplateParam = {
|
|
198
245
|
body: FileStoragePlatformModel.PdfConfig;
|
|
@@ -8,7 +8,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
8
8
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
9
9
|
* the file being uploaded, decides where exactly the file will be stored
|
|
10
10
|
* inside the storage bucket.
|
|
11
|
-
* @property {FileStoragePlatformModel.
|
|
11
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -23,7 +23,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
23
23
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
24
24
|
* the file being uploaded, decides where exactly the file will be stored
|
|
25
25
|
* inside the storage bucket.
|
|
26
|
-
* @property {FileStoragePlatformModel.
|
|
26
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -49,16 +49,29 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
49
49
|
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
50
50
|
*/
|
|
51
51
|
|
|
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
|
+
|
|
52
67
|
/**
|
|
53
68
|
* @typedef GeneratePaymentReceiptParam
|
|
54
69
|
* @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
|
|
55
70
|
*/
|
|
56
71
|
|
|
57
72
|
/**
|
|
58
|
-
* @typedef
|
|
59
|
-
* @property {
|
|
60
|
-
* @property {string} format
|
|
61
|
-
* @property {string} [countryCode]
|
|
73
|
+
* @typedef GetConfigHtmlTemplateByIdParam
|
|
74
|
+
* @property {string} id
|
|
62
75
|
*/
|
|
63
76
|
|
|
64
77
|
/**
|
|
@@ -74,9 +87,22 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
74
87
|
* @property {string} [countryCode]
|
|
75
88
|
*/
|
|
76
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
|
+
|
|
77
102
|
/**
|
|
78
103
|
* @typedef GetPdfTypesParam
|
|
79
104
|
* @property {string} [countryCode]
|
|
105
|
+
* @property {boolean} storeOs
|
|
80
106
|
*/
|
|
81
107
|
|
|
82
108
|
/**
|
|
@@ -96,7 +122,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
96
122
|
return Joi.object({
|
|
97
123
|
namespace: Joi.string().allow("").required(),
|
|
98
124
|
|
|
99
|
-
body: FileStoragePlatformModel.
|
|
125
|
+
body: FileStoragePlatformModel.FileUpload().required(),
|
|
100
126
|
}).required();
|
|
101
127
|
}
|
|
102
128
|
|
|
@@ -114,7 +140,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
114
140
|
return Joi.object({
|
|
115
141
|
namespace: Joi.string().allow("").required(),
|
|
116
142
|
|
|
117
|
-
body: FileStoragePlatformModel.
|
|
143
|
+
body: FileStoragePlatformModel.FileUploadStart().required(),
|
|
118
144
|
}).required();
|
|
119
145
|
}
|
|
120
146
|
|
|
@@ -141,6 +167,27 @@ class FileStoragePlatformApplicationValidator {
|
|
|
141
167
|
}).required();
|
|
142
168
|
}
|
|
143
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
|
+
|
|
144
191
|
/** @returns {GeneratePaymentReceiptParam} */
|
|
145
192
|
static generatePaymentReceipt() {
|
|
146
193
|
return Joi.object({
|
|
@@ -148,12 +195,10 @@ class FileStoragePlatformApplicationValidator {
|
|
|
148
195
|
}).required();
|
|
149
196
|
}
|
|
150
197
|
|
|
151
|
-
/** @returns {
|
|
152
|
-
static
|
|
198
|
+
/** @returns {GetConfigHtmlTemplateByIdParam} */
|
|
199
|
+
static getConfigHtmlTemplateById() {
|
|
153
200
|
return Joi.object({
|
|
154
|
-
|
|
155
|
-
format: Joi.string().allow("").required(),
|
|
156
|
-
countryCode: Joi.string().allow(""),
|
|
201
|
+
id: Joi.string().allow("").required(),
|
|
157
202
|
}).required();
|
|
158
203
|
}
|
|
159
204
|
|
|
@@ -174,10 +219,27 @@ class FileStoragePlatformApplicationValidator {
|
|
|
174
219
|
}).required();
|
|
175
220
|
}
|
|
176
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
|
+
|
|
177
238
|
/** @returns {GetPdfTypesParam} */
|
|
178
239
|
static getPdfTypes() {
|
|
179
240
|
return Joi.object({
|
|
180
241
|
countryCode: Joi.string().allow(""),
|
|
242
|
+
storeOs: Joi.boolean().required(),
|
|
181
243
|
}).required();
|
|
182
244
|
}
|
|
183
245
|
|
|
@@ -8,7 +8,7 @@ declare class FileStorage {
|
|
|
8
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
9
|
* @returns {Promise<Object>} - Success response
|
|
10
10
|
* @name browse
|
|
11
|
-
* @summary: Browse files
|
|
11
|
+
* @summary: Browse files.
|
|
12
12
|
* @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/).
|
|
13
13
|
*/
|
|
14
14
|
browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -16,52 +16,52 @@ 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
|
-
* @summary: Complete file upload
|
|
22
|
-
* @description:
|
|
21
|
+
* @summary: Complete file upload.
|
|
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 `{}`
|
|
28
28
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
29
29
|
* @returns {Promise<Object>} - Success response
|
|
30
30
|
* @name copyFiles
|
|
31
|
-
* @summary: Copy files
|
|
32
|
-
* @description:
|
|
31
|
+
* @summary: Copy files.
|
|
32
|
+
* @description: Duplicate files to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/).
|
|
33
33
|
*/
|
|
34
34
|
copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise<any>;
|
|
35
35
|
/**
|
|
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
|
-
* @summary: Get signed URLs
|
|
42
|
-
* @description:
|
|
41
|
+
* @summary: Get signed URLs.
|
|
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
|
-
* @summary:
|
|
52
|
-
* @description:
|
|
51
|
+
* @summary: Proxy file access.
|
|
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
|
-
* @summary: Start file upload
|
|
62
|
-
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response
|
|
61
|
+
* @summary: Start file upload.
|
|
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
|
|
@@ -69,16 +69,14 @@ declare class FileStorage {
|
|
|
69
69
|
* @param {string} namespace
|
|
70
70
|
* @param {number} size
|
|
71
71
|
* @param {number} tags
|
|
72
|
-
* @param {string} enc_key
|
|
73
72
|
*/
|
|
74
|
-
upload({ data, file_name, content_type, namespace, size, tags,
|
|
73
|
+
upload({ data, file_name, content_type, namespace, size, tags, }?: {
|
|
75
74
|
data: any;
|
|
76
75
|
file_name: any;
|
|
77
76
|
content_type: any;
|
|
78
77
|
namespace: any;
|
|
79
78
|
size: any;
|
|
80
79
|
tags: any;
|
|
81
|
-
enc_key: any;
|
|
82
80
|
}): Promise<any>;
|
|
83
81
|
}
|
|
84
82
|
import FileStoragePlatformValidator = require("./FileStoragePlatformValidator");
|
|
@@ -22,7 +22,7 @@ class FileStorage {
|
|
|
22
22
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
23
23
|
* @returns {Promise<Object>} - Success response
|
|
24
24
|
* @name browse
|
|
25
|
-
* @summary: Browse files
|
|
25
|
+
* @summary: Browse files.
|
|
26
26
|
* @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/).
|
|
27
27
|
*/
|
|
28
28
|
async browse(
|
|
@@ -103,10 +103,10 @@ 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
|
-
* @summary: Complete file upload
|
|
109
|
-
* @description:
|
|
108
|
+
* @summary: Complete file upload.
|
|
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/).
|
|
110
110
|
*/
|
|
111
111
|
async completeUpload(
|
|
112
112
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -149,7 +149,7 @@ class FileStorage {
|
|
|
149
149
|
const response = await PlatformAPIClient.execute(
|
|
150
150
|
this.config,
|
|
151
151
|
"post",
|
|
152
|
-
`/service/platform/assets/
|
|
152
|
+
`/service/platform/assets/v2.0/company/${this.config.companyId}/namespaces/${namespace}/upload/complete`,
|
|
153
153
|
query_params,
|
|
154
154
|
body,
|
|
155
155
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -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
|
});
|
|
@@ -188,8 +188,8 @@ class FileStorage {
|
|
|
188
188
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
189
189
|
* @returns {Promise<Object>} - Success response
|
|
190
190
|
* @name copyFiles
|
|
191
|
-
* @summary: Copy files
|
|
192
|
-
* @description:
|
|
191
|
+
* @summary: Copy files.
|
|
192
|
+
* @description: Duplicate files to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/).
|
|
193
193
|
*/
|
|
194
194
|
async copyFiles(
|
|
195
195
|
{ body, sync, requestHeaders } = { requestHeaders: {} },
|
|
@@ -266,10 +266,10 @@ 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
|
-
* @summary: Get signed URLs
|
|
272
|
-
* @description:
|
|
271
|
+
* @summary: Get signed URLs.
|
|
272
|
+
* @description: Retrieve signed URLs for file access. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getSignUrls/).
|
|
273
273
|
*/
|
|
274
274
|
async getSignUrls(
|
|
275
275
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -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,10 +345,10 @@ 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
|
-
* @summary:
|
|
351
|
-
* @description:
|
|
350
|
+
* @summary: Proxy file access.
|
|
351
|
+
* @description: Access files through a proxy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/proxy/).
|
|
352
352
|
*/
|
|
353
353
|
async proxy(
|
|
354
354
|
{ url, requestHeaders } = { requestHeaders: {} },
|
|
@@ -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,10 +423,10 @@ 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
|
-
* @summary: Start file upload
|
|
429
|
-
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response
|
|
428
|
+
* @summary: Start file upload.
|
|
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/).
|
|
430
430
|
*/
|
|
431
431
|
async startUpload(
|
|
432
432
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -469,7 +469,7 @@ class FileStorage {
|
|
|
469
469
|
const response = await PlatformAPIClient.execute(
|
|
470
470
|
this.config,
|
|
471
471
|
"post",
|
|
472
|
-
`/service/platform/assets/
|
|
472
|
+
`/service/platform/assets/v2.0/company/${this.config.companyId}/namespaces/${namespace}/upload/start`,
|
|
473
473
|
query_params,
|
|
474
474
|
body,
|
|
475
475
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -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
|
});
|
|
@@ -510,7 +510,6 @@ class FileStorage {
|
|
|
510
510
|
* @param {string} namespace
|
|
511
511
|
* @param {number} size
|
|
512
512
|
* @param {number} tags
|
|
513
|
-
* @param {string} enc_key
|
|
514
513
|
*/
|
|
515
514
|
FileStorage.prototype.upload = function ({
|
|
516
515
|
data,
|
|
@@ -519,7 +518,6 @@ FileStorage.prototype.upload = function ({
|
|
|
519
518
|
namespace,
|
|
520
519
|
size,
|
|
521
520
|
tags,
|
|
522
|
-
enc_key,
|
|
523
521
|
} = {}) {
|
|
524
522
|
return new Promise(async (resolve, reject) => {
|
|
525
523
|
try {
|
|
@@ -530,7 +528,6 @@ FileStorage.prototype.upload = function ({
|
|
|
530
528
|
content_type,
|
|
531
529
|
size: size,
|
|
532
530
|
tags: tags,
|
|
533
|
-
enc_key: enc_key,
|
|
534
531
|
},
|
|
535
532
|
});
|
|
536
533
|
if (dataObj.upload && dataObj.upload.url) {
|