@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -310,7 +310,7 @@ class FileStorage {
|
|
|
310
310
|
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
|
|
311
311
|
*/
|
|
312
312
|
async appbrowse(
|
|
313
|
-
{ namespace, page, limit, requestHeaders } = { requestHeaders: {} },
|
|
313
|
+
{ namespace, page, limit, search, requestHeaders } = { requestHeaders: {} },
|
|
314
314
|
{ responseHeaders } = { responseHeaders: false }
|
|
315
315
|
) {
|
|
316
316
|
const {
|
|
@@ -321,6 +321,7 @@ class FileStorage {
|
|
|
321
321
|
|
|
322
322
|
page,
|
|
323
323
|
limit,
|
|
324
|
+
search,
|
|
324
325
|
},
|
|
325
326
|
{ abortEarly: false, allowUnknown: true }
|
|
326
327
|
);
|
|
@@ -337,6 +338,7 @@ class FileStorage {
|
|
|
337
338
|
|
|
338
339
|
page,
|
|
339
340
|
limit,
|
|
341
|
+
search,
|
|
340
342
|
},
|
|
341
343
|
{ abortEarly: false, allowUnknown: false }
|
|
342
344
|
);
|
|
@@ -350,6 +352,7 @@ class FileStorage {
|
|
|
350
352
|
const query_params = {};
|
|
351
353
|
query_params["page"] = page;
|
|
352
354
|
query_params["limit"] = limit;
|
|
355
|
+
query_params["search"] = search;
|
|
353
356
|
|
|
354
357
|
const response = await PlatformAPIClient.execute(
|
|
355
358
|
this.config,
|
|
@@ -385,6 +388,98 @@ class FileStorage {
|
|
|
385
388
|
return response;
|
|
386
389
|
}
|
|
387
390
|
|
|
391
|
+
/**
|
|
392
|
+
* @param {FileStoragePlatformApplicationValidator.BrowsefilesParam} arg - Arg object
|
|
393
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
394
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
395
|
+
* @returns {Promise<Object>} - Success response
|
|
396
|
+
* @name browsefiles
|
|
397
|
+
* @summary: Browse Files
|
|
398
|
+
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
|
|
399
|
+
*/
|
|
400
|
+
async browsefiles(
|
|
401
|
+
{ namespace, body, page, limit, search, requestHeaders } = {
|
|
402
|
+
requestHeaders: {},
|
|
403
|
+
},
|
|
404
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
405
|
+
) {
|
|
406
|
+
const {
|
|
407
|
+
error,
|
|
408
|
+
} = FileStoragePlatformApplicationValidator.browsefiles().validate(
|
|
409
|
+
{
|
|
410
|
+
namespace,
|
|
411
|
+
|
|
412
|
+
body,
|
|
413
|
+
page,
|
|
414
|
+
limit,
|
|
415
|
+
search,
|
|
416
|
+
},
|
|
417
|
+
{ abortEarly: false, allowUnknown: true }
|
|
418
|
+
);
|
|
419
|
+
if (error) {
|
|
420
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Showing warrnings if extra unknown parameters are found
|
|
424
|
+
const {
|
|
425
|
+
error: warrning,
|
|
426
|
+
} = FileStoragePlatformApplicationValidator.browsefiles().validate(
|
|
427
|
+
{
|
|
428
|
+
namespace,
|
|
429
|
+
|
|
430
|
+
body,
|
|
431
|
+
page,
|
|
432
|
+
limit,
|
|
433
|
+
search,
|
|
434
|
+
},
|
|
435
|
+
{ abortEarly: false, allowUnknown: false }
|
|
436
|
+
);
|
|
437
|
+
if (warrning) {
|
|
438
|
+
Logger({
|
|
439
|
+
level: "WARN",
|
|
440
|
+
message: `Parameter Validation warrnings for platform > FileStorage > browsefiles \n ${warrning}`,
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
const query_params = {};
|
|
445
|
+
query_params["page"] = page;
|
|
446
|
+
query_params["limit"] = limit;
|
|
447
|
+
query_params["search"] = search;
|
|
448
|
+
|
|
449
|
+
const response = await PlatformAPIClient.execute(
|
|
450
|
+
this.config,
|
|
451
|
+
"post",
|
|
452
|
+
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/browse`,
|
|
453
|
+
query_params,
|
|
454
|
+
body,
|
|
455
|
+
requestHeaders,
|
|
456
|
+
{ responseHeaders }
|
|
457
|
+
);
|
|
458
|
+
|
|
459
|
+
let responseData = response;
|
|
460
|
+
if (responseHeaders) {
|
|
461
|
+
responseData = response[0];
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
465
|
+
abortEarly: false,
|
|
466
|
+
allowUnknown: true,
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
if (res_error) {
|
|
470
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
471
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
472
|
+
} else {
|
|
473
|
+
Logger({
|
|
474
|
+
level: "WARN",
|
|
475
|
+
message: `Response Validation Warnings for platform > FileStorage > browsefiles \n ${res_error}`,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
return response;
|
|
481
|
+
}
|
|
482
|
+
|
|
388
483
|
/**
|
|
389
484
|
* @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
|
|
390
485
|
* - Arg object
|
|
@@ -476,7 +571,7 @@ class FileStorage {
|
|
|
476
571
|
* @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/).
|
|
477
572
|
*/
|
|
478
573
|
async getDefaultHtmlTemplate(
|
|
479
|
-
{ pdfTypeId, format, requestHeaders } = { requestHeaders: {} },
|
|
574
|
+
{ pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
480
575
|
{ responseHeaders } = { responseHeaders: false }
|
|
481
576
|
) {
|
|
482
577
|
const {
|
|
@@ -485,6 +580,7 @@ class FileStorage {
|
|
|
485
580
|
{
|
|
486
581
|
pdfTypeId,
|
|
487
582
|
format,
|
|
583
|
+
countryCode,
|
|
488
584
|
},
|
|
489
585
|
{ abortEarly: false, allowUnknown: true }
|
|
490
586
|
);
|
|
@@ -499,6 +595,7 @@ class FileStorage {
|
|
|
499
595
|
{
|
|
500
596
|
pdfTypeId,
|
|
501
597
|
format,
|
|
598
|
+
countryCode,
|
|
502
599
|
},
|
|
503
600
|
{ abortEarly: false, allowUnknown: false }
|
|
504
601
|
);
|
|
@@ -512,6 +609,7 @@ class FileStorage {
|
|
|
512
609
|
const query_params = {};
|
|
513
610
|
query_params["pdf_type_id"] = pdfTypeId;
|
|
514
611
|
query_params["format"] = format;
|
|
612
|
+
query_params["country_code"] = countryCode;
|
|
515
613
|
|
|
516
614
|
const response = await PlatformAPIClient.execute(
|
|
517
615
|
this.config,
|
|
@@ -562,7 +660,7 @@ class FileStorage {
|
|
|
562
660
|
* @description: Get Dummy pdf data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
563
661
|
*/
|
|
564
662
|
async getDefaultPdfData(
|
|
565
|
-
{ pdfTypeId, requestHeaders } = { requestHeaders: {} },
|
|
663
|
+
{ pdfTypeId, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
566
664
|
{ responseHeaders } = { responseHeaders: false }
|
|
567
665
|
) {
|
|
568
666
|
const {
|
|
@@ -570,6 +668,7 @@ class FileStorage {
|
|
|
570
668
|
} = FileStoragePlatformApplicationValidator.getDefaultPdfData().validate(
|
|
571
669
|
{
|
|
572
670
|
pdfTypeId,
|
|
671
|
+
countryCode,
|
|
573
672
|
},
|
|
574
673
|
{ abortEarly: false, allowUnknown: true }
|
|
575
674
|
);
|
|
@@ -583,6 +682,7 @@ class FileStorage {
|
|
|
583
682
|
} = FileStoragePlatformApplicationValidator.getDefaultPdfData().validate(
|
|
584
683
|
{
|
|
585
684
|
pdfTypeId,
|
|
685
|
+
countryCode,
|
|
586
686
|
},
|
|
587
687
|
{ abortEarly: false, allowUnknown: false }
|
|
588
688
|
);
|
|
@@ -595,6 +695,7 @@ class FileStorage {
|
|
|
595
695
|
|
|
596
696
|
const query_params = {};
|
|
597
697
|
query_params["pdf_type_id"] = pdfTypeId;
|
|
698
|
+
query_params["country_code"] = countryCode;
|
|
598
699
|
|
|
599
700
|
const response = await PlatformAPIClient.execute(
|
|
600
701
|
this.config,
|
|
@@ -645,7 +746,7 @@ class FileStorage {
|
|
|
645
746
|
* @description: Get default html template data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
|
|
646
747
|
*/
|
|
647
748
|
async getDefaultPdfTemplate(
|
|
648
|
-
{ pdfTypeId, format, requestHeaders } = { requestHeaders: {} },
|
|
749
|
+
{ pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
649
750
|
{ responseHeaders } = { responseHeaders: false }
|
|
650
751
|
) {
|
|
651
752
|
const {
|
|
@@ -654,6 +755,7 @@ class FileStorage {
|
|
|
654
755
|
{
|
|
655
756
|
pdfTypeId,
|
|
656
757
|
format,
|
|
758
|
+
countryCode,
|
|
657
759
|
},
|
|
658
760
|
{ abortEarly: false, allowUnknown: true }
|
|
659
761
|
);
|
|
@@ -668,6 +770,7 @@ class FileStorage {
|
|
|
668
770
|
{
|
|
669
771
|
pdfTypeId,
|
|
670
772
|
format,
|
|
773
|
+
countryCode,
|
|
671
774
|
},
|
|
672
775
|
{ abortEarly: false, allowUnknown: false }
|
|
673
776
|
);
|
|
@@ -681,6 +784,7 @@ class FileStorage {
|
|
|
681
784
|
const query_params = {};
|
|
682
785
|
query_params["pdf_type_id"] = pdfTypeId;
|
|
683
786
|
query_params["format"] = format;
|
|
787
|
+
query_params["country_code"] = countryCode;
|
|
684
788
|
|
|
685
789
|
const response = await PlatformAPIClient.execute(
|
|
686
790
|
this.config,
|
|
@@ -726,16 +830,18 @@ class FileStorage {
|
|
|
726
830
|
* Success response
|
|
727
831
|
* @name getPdfTypes
|
|
728
832
|
* @summary: Get all the supported invoice pdf types
|
|
729
|
-
* @description: Get all the supported invoice pdf types such as Invoice, Label,
|
|
833
|
+
* @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
730
834
|
*/
|
|
731
835
|
async getPdfTypes(
|
|
732
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
836
|
+
{ countryCode, requestHeaders } = { requestHeaders: {} },
|
|
733
837
|
{ responseHeaders } = { responseHeaders: false }
|
|
734
838
|
) {
|
|
735
839
|
const {
|
|
736
840
|
error,
|
|
737
841
|
} = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
|
|
738
|
-
{
|
|
842
|
+
{
|
|
843
|
+
countryCode,
|
|
844
|
+
},
|
|
739
845
|
{ abortEarly: false, allowUnknown: true }
|
|
740
846
|
);
|
|
741
847
|
if (error) {
|
|
@@ -746,7 +852,9 @@ class FileStorage {
|
|
|
746
852
|
const {
|
|
747
853
|
error: warrning,
|
|
748
854
|
} = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
|
|
749
|
-
{
|
|
855
|
+
{
|
|
856
|
+
countryCode,
|
|
857
|
+
},
|
|
750
858
|
{ abortEarly: false, allowUnknown: false }
|
|
751
859
|
);
|
|
752
860
|
if (warrning) {
|
|
@@ -757,6 +865,7 @@ class FileStorage {
|
|
|
757
865
|
}
|
|
758
866
|
|
|
759
867
|
const query_params = {};
|
|
868
|
+
query_params["country_code"] = countryCode;
|
|
760
869
|
|
|
761
870
|
const response = await PlatformAPIClient.execute(
|
|
762
871
|
this.config,
|
|
@@ -28,6 +28,18 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
28
28
|
* inside the storage bucket.
|
|
29
29
|
* @property {number} [page] - Page no
|
|
30
30
|
* @property {number} [limit] - Limit
|
|
31
|
+
* @property {string} [search] - Search
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* @typedef BrowsefilesParam
|
|
35
|
+
* @property {string} namespace - Segregation of different types of
|
|
36
|
+
* files(products, orders, logistics etc), Required for validating the data of
|
|
37
|
+
* the file being uploaded, decides where exactly the file will be stored
|
|
38
|
+
* inside the storage bucket.
|
|
39
|
+
* @property {number} [page] - Page no
|
|
40
|
+
* @property {number} [limit] - Limit
|
|
41
|
+
* @property {string} [search] - Search
|
|
42
|
+
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
31
43
|
*/
|
|
32
44
|
/**
|
|
33
45
|
* @typedef GeneratePaymentReceiptParam
|
|
@@ -37,17 +49,23 @@ export = FileStoragePlatformApplicationValidator;
|
|
|
37
49
|
* @typedef GetDefaultHtmlTemplateParam
|
|
38
50
|
* @property {number} pdfTypeId
|
|
39
51
|
* @property {string} format
|
|
52
|
+
* @property {string} [countryCode]
|
|
40
53
|
*/
|
|
41
54
|
/**
|
|
42
55
|
* @typedef GetDefaultPdfDataParam
|
|
43
56
|
* @property {number} pdfTypeId
|
|
57
|
+
* @property {string} [countryCode]
|
|
44
58
|
*/
|
|
45
59
|
/**
|
|
46
60
|
* @typedef GetDefaultPdfTemplateParam
|
|
47
61
|
* @property {number} pdfTypeId
|
|
48
62
|
* @property {string} format
|
|
63
|
+
* @property {string} [countryCode]
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* @typedef GetPdfTypesParam
|
|
67
|
+
* @property {string} [countryCode]
|
|
49
68
|
*/
|
|
50
|
-
/** @typedef GetPdfTypesParam */
|
|
51
69
|
/**
|
|
52
70
|
* @typedef SaveHtmlTemplateParam
|
|
53
71
|
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
@@ -66,6 +84,8 @@ declare class FileStoragePlatformApplicationValidator {
|
|
|
66
84
|
static appStartUpload(): AppStartUploadParam;
|
|
67
85
|
/** @returns {AppbrowseParam} */
|
|
68
86
|
static appbrowse(): AppbrowseParam;
|
|
87
|
+
/** @returns {BrowsefilesParam} */
|
|
88
|
+
static browsefiles(): BrowsefilesParam;
|
|
69
89
|
/** @returns {GeneratePaymentReceiptParam} */
|
|
70
90
|
static generatePaymentReceipt(): GeneratePaymentReceiptParam;
|
|
71
91
|
/** @returns {GetDefaultHtmlTemplateParam} */
|
|
@@ -75,14 +95,14 @@ declare class FileStoragePlatformApplicationValidator {
|
|
|
75
95
|
/** @returns {GetDefaultPdfTemplateParam} */
|
|
76
96
|
static getDefaultPdfTemplate(): GetDefaultPdfTemplateParam;
|
|
77
97
|
/** @returns {GetPdfTypesParam} */
|
|
78
|
-
static getPdfTypes():
|
|
98
|
+
static getPdfTypes(): GetPdfTypesParam;
|
|
79
99
|
/** @returns {SaveHtmlTemplateParam} */
|
|
80
100
|
static saveHtmlTemplate(): SaveHtmlTemplateParam;
|
|
81
101
|
/** @returns {UpdateHtmlTemplateParam} */
|
|
82
102
|
static updateHtmlTemplate(): UpdateHtmlTemplateParam;
|
|
83
103
|
}
|
|
84
104
|
declare namespace FileStoragePlatformApplicationValidator {
|
|
85
|
-
export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, GeneratePaymentReceiptParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam };
|
|
105
|
+
export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, GeneratePaymentReceiptParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam };
|
|
86
106
|
}
|
|
87
107
|
type AppCompleteUploadParam = {
|
|
88
108
|
/**
|
|
@@ -127,6 +147,32 @@ type AppbrowseParam = {
|
|
|
127
147
|
* - Limit
|
|
128
148
|
*/
|
|
129
149
|
limit?: number;
|
|
150
|
+
/**
|
|
151
|
+
* - Search
|
|
152
|
+
*/
|
|
153
|
+
search?: string;
|
|
154
|
+
};
|
|
155
|
+
type BrowsefilesParam = {
|
|
156
|
+
/**
|
|
157
|
+
* - Segregation of different types of
|
|
158
|
+
* files(products, orders, logistics etc), Required for validating the data of
|
|
159
|
+
* the file being uploaded, decides where exactly the file will be stored
|
|
160
|
+
* inside the storage bucket.
|
|
161
|
+
*/
|
|
162
|
+
namespace: string;
|
|
163
|
+
/**
|
|
164
|
+
* - Page no
|
|
165
|
+
*/
|
|
166
|
+
page?: number;
|
|
167
|
+
/**
|
|
168
|
+
* - Limit
|
|
169
|
+
*/
|
|
170
|
+
limit?: number;
|
|
171
|
+
/**
|
|
172
|
+
* - Search
|
|
173
|
+
*/
|
|
174
|
+
search?: string;
|
|
175
|
+
body: FileStoragePlatformModel.ExtensionSlug;
|
|
130
176
|
};
|
|
131
177
|
type GeneratePaymentReceiptParam = {
|
|
132
178
|
body: FileStoragePlatformModel.PaymentReceiptRequestBody;
|
|
@@ -134,13 +180,19 @@ type GeneratePaymentReceiptParam = {
|
|
|
134
180
|
type GetDefaultHtmlTemplateParam = {
|
|
135
181
|
pdfTypeId: number;
|
|
136
182
|
format: string;
|
|
183
|
+
countryCode?: string;
|
|
137
184
|
};
|
|
138
185
|
type GetDefaultPdfDataParam = {
|
|
139
186
|
pdfTypeId: number;
|
|
187
|
+
countryCode?: string;
|
|
140
188
|
};
|
|
141
189
|
type GetDefaultPdfTemplateParam = {
|
|
142
190
|
pdfTypeId: number;
|
|
143
191
|
format: string;
|
|
192
|
+
countryCode?: string;
|
|
193
|
+
};
|
|
194
|
+
type GetPdfTypesParam = {
|
|
195
|
+
countryCode?: string;
|
|
144
196
|
};
|
|
145
197
|
type SaveHtmlTemplateParam = {
|
|
146
198
|
body: FileStoragePlatformModel.PdfConfig;
|
|
@@ -149,5 +201,4 @@ type UpdateHtmlTemplateParam = {
|
|
|
149
201
|
id: string;
|
|
150
202
|
body: FileStoragePlatformModel.PdfConfig;
|
|
151
203
|
};
|
|
152
|
-
type GetPdfTypesParam = any;
|
|
153
204
|
import FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
@@ -34,6 +34,19 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
34
34
|
* inside the storage bucket.
|
|
35
35
|
* @property {number} [page] - Page no
|
|
36
36
|
* @property {number} [limit] - Limit
|
|
37
|
+
* @property {string} [search] - Search
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef BrowsefilesParam
|
|
42
|
+
* @property {string} namespace - Segregation of different types of
|
|
43
|
+
* files(products, orders, logistics etc), Required for validating the data of
|
|
44
|
+
* the file being uploaded, decides where exactly the file will be stored
|
|
45
|
+
* inside the storage bucket.
|
|
46
|
+
* @property {number} [page] - Page no
|
|
47
|
+
* @property {number} [limit] - Limit
|
|
48
|
+
* @property {string} [search] - Search
|
|
49
|
+
* @property {FileStoragePlatformModel.ExtensionSlug} body
|
|
37
50
|
*/
|
|
38
51
|
|
|
39
52
|
/**
|
|
@@ -45,20 +58,26 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
45
58
|
* @typedef GetDefaultHtmlTemplateParam
|
|
46
59
|
* @property {number} pdfTypeId
|
|
47
60
|
* @property {string} format
|
|
61
|
+
* @property {string} [countryCode]
|
|
48
62
|
*/
|
|
49
63
|
|
|
50
64
|
/**
|
|
51
65
|
* @typedef GetDefaultPdfDataParam
|
|
52
66
|
* @property {number} pdfTypeId
|
|
67
|
+
* @property {string} [countryCode]
|
|
53
68
|
*/
|
|
54
69
|
|
|
55
70
|
/**
|
|
56
71
|
* @typedef GetDefaultPdfTemplateParam
|
|
57
72
|
* @property {number} pdfTypeId
|
|
58
73
|
* @property {string} format
|
|
74
|
+
* @property {string} [countryCode]
|
|
59
75
|
*/
|
|
60
76
|
|
|
61
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* @typedef GetPdfTypesParam
|
|
79
|
+
* @property {string} [countryCode]
|
|
80
|
+
*/
|
|
62
81
|
|
|
63
82
|
/**
|
|
64
83
|
* @typedef SaveHtmlTemplateParam
|
|
@@ -106,6 +125,19 @@ class FileStoragePlatformApplicationValidator {
|
|
|
106
125
|
|
|
107
126
|
page: Joi.number(),
|
|
108
127
|
limit: Joi.number(),
|
|
128
|
+
search: Joi.string().allow(""),
|
|
129
|
+
}).required();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @returns {BrowsefilesParam} */
|
|
133
|
+
static browsefiles() {
|
|
134
|
+
return Joi.object({
|
|
135
|
+
namespace: Joi.string().allow("").required(),
|
|
136
|
+
|
|
137
|
+
page: Joi.number(),
|
|
138
|
+
limit: Joi.number(),
|
|
139
|
+
search: Joi.string().allow(""),
|
|
140
|
+
body: FileStoragePlatformModel.ExtensionSlug().required(),
|
|
109
141
|
}).required();
|
|
110
142
|
}
|
|
111
143
|
|
|
@@ -121,6 +153,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
121
153
|
return Joi.object({
|
|
122
154
|
pdfTypeId: Joi.number().required(),
|
|
123
155
|
format: Joi.string().allow("").required(),
|
|
156
|
+
countryCode: Joi.string().allow(""),
|
|
124
157
|
}).required();
|
|
125
158
|
}
|
|
126
159
|
|
|
@@ -128,6 +161,7 @@ class FileStoragePlatformApplicationValidator {
|
|
|
128
161
|
static getDefaultPdfData() {
|
|
129
162
|
return Joi.object({
|
|
130
163
|
pdfTypeId: Joi.number().required(),
|
|
164
|
+
countryCode: Joi.string().allow(""),
|
|
131
165
|
}).required();
|
|
132
166
|
}
|
|
133
167
|
|
|
@@ -136,12 +170,15 @@ class FileStoragePlatformApplicationValidator {
|
|
|
136
170
|
return Joi.object({
|
|
137
171
|
pdfTypeId: Joi.number().required(),
|
|
138
172
|
format: Joi.string().allow("").required(),
|
|
173
|
+
countryCode: Joi.string().allow(""),
|
|
139
174
|
}).required();
|
|
140
175
|
}
|
|
141
176
|
|
|
142
177
|
/** @returns {GetPdfTypesParam} */
|
|
143
178
|
static getPdfTypes() {
|
|
144
|
-
return Joi.object({
|
|
179
|
+
return Joi.object({
|
|
180
|
+
countryCode: Joi.string().allow(""),
|
|
181
|
+
}).required();
|
|
145
182
|
}
|
|
146
183
|
|
|
147
184
|
/** @returns {SaveHtmlTemplateParam} */
|
|
@@ -125,6 +125,7 @@ export = FileStoragePlatformModel;
|
|
|
125
125
|
* @typedef DummyTemplateData
|
|
126
126
|
* @property {number} [__v]
|
|
127
127
|
* @property {string} [_id]
|
|
128
|
+
* @property {string} [country_code]
|
|
128
129
|
* @property {DummyTemplateDataPayload} payload
|
|
129
130
|
* @property {number} [pdf_type_id]
|
|
130
131
|
*/
|
|
@@ -151,7 +152,7 @@ export = FileStoragePlatformModel;
|
|
|
151
152
|
* @property {string} [disclaimer]
|
|
152
153
|
* @property {Image} [image]
|
|
153
154
|
* @property {InvoiceDetail} [invoice_detail]
|
|
154
|
-
* @property {boolean} [
|
|
155
|
+
* @property {boolean} [is_export]
|
|
155
156
|
* @property {boolean} [is_self_pickup]
|
|
156
157
|
* @property {boolean} [is_self_ship]
|
|
157
158
|
* @property {Meta} [meta]
|
|
@@ -171,6 +172,10 @@ export = FileStoragePlatformModel;
|
|
|
171
172
|
* @property {string} [upi_qrcode]
|
|
172
173
|
* @property {Object[]} [waybills]
|
|
173
174
|
*/
|
|
175
|
+
/**
|
|
176
|
+
* @typedef ExtensionSlug
|
|
177
|
+
* @property {string} [extension_slug]
|
|
178
|
+
*/
|
|
174
179
|
/**
|
|
175
180
|
* @typedef FailedResponse
|
|
176
181
|
* @property {string} message
|
|
@@ -205,7 +210,7 @@ export = FileStoragePlatformModel;
|
|
|
205
210
|
* @typedef InvoiceTypesDataResponse
|
|
206
211
|
* @property {number} __v
|
|
207
212
|
* @property {string} _id
|
|
208
|
-
* @property {string}
|
|
213
|
+
* @property {string} country_code
|
|
209
214
|
* @property {string[]} format
|
|
210
215
|
* @property {string} name
|
|
211
216
|
* @property {number} pdf_type_id
|
|
@@ -258,10 +263,6 @@ export = FileStoragePlatformModel;
|
|
|
258
263
|
* @property {SignedQrcodeGenerator} [signed_qrcode_generator]
|
|
259
264
|
* @property {UpiQrcodeGenerator} [upi_qrcode_generator]
|
|
260
265
|
*/
|
|
261
|
-
/**
|
|
262
|
-
* @typedef Params
|
|
263
|
-
* @property {string} [subpath] - The subpath for the file.
|
|
264
|
-
*/
|
|
265
266
|
/**
|
|
266
267
|
* @typedef PaymentData
|
|
267
268
|
* @property {number} [amount]
|
|
@@ -441,7 +442,7 @@ export = FileStoragePlatformModel;
|
|
|
441
442
|
* @typedef StartRequest
|
|
442
443
|
* @property {string} content_type
|
|
443
444
|
* @property {string} file_name
|
|
444
|
-
* @property {
|
|
445
|
+
* @property {Object} [params]
|
|
445
446
|
* @property {number} size
|
|
446
447
|
* @property {string[]} [tags]
|
|
447
448
|
*/
|
|
@@ -514,7 +515,7 @@ export = FileStoragePlatformModel;
|
|
|
514
515
|
declare class FileStoragePlatformModel {
|
|
515
516
|
}
|
|
516
517
|
declare namespace FileStoragePlatformModel {
|
|
517
|
-
export { AwbNumberLabelBarcodeGenerator, Brand, CDN, Cgst, CompanyDetail, CompleteResponse, ConversionRate, CopyFiles, CreatedBy, CustomerBillingDetail, CustomerShippingDetail, DeliveryPartnerDetail, DestinationNamespace, DigitalsignatureGenerator, Document, DummyTemplateData, DummyTemplateDataItems, DummyTemplateDataPayload, FailedResponse, Igst, Image, Inr, InvoiceDetail, InvoiceTypesDataResponse, InvoiceTypesResponse, ItemsProductTable, Kwargs, KwargsAwbNumber, KwargsUpiQrcode, Meta, MetaProperty,
|
|
518
|
+
export { AwbNumberLabelBarcodeGenerator, Brand, CDN, Cgst, CompanyDetail, CompleteResponse, ConversionRate, CopyFiles, CreatedBy, CustomerBillingDetail, CustomerShippingDetail, DeliveryPartnerDetail, DestinationNamespace, DigitalsignatureGenerator, Document, DummyTemplateData, DummyTemplateDataItems, DummyTemplateDataPayload, ExtensionSlug, FailedResponse, Igst, Image, Inr, InvoiceDetail, InvoiceTypesDataResponse, InvoiceTypesResponse, ItemsProductTable, Kwargs, KwargsAwbNumber, KwargsUpiQrcode, Meta, MetaProperty, PaymentData, PaymentReceiptCustomerDetails, PaymentReceiptFormat, PaymentReceiptMeta, PaymentReceiptOrderDetails, PaymentReceiptPayload, PaymentReceiptPayments, PaymentReceiptRequestBody, PaymentReceiptService, PaymentReceiptTaxes, PdfConfig, PdfConfigSaveSuccess, PdfConfigSaveSuccessData, PdfConfigSuccess, PdfConfigSuccessData, PdfDefaultTemplateSuccess, ProductTable, Rates, RegisteredCompanyDetail, ReturnDetail, Sgst, ShipmentIdBarcodeGenerator, SignedQrcodeGenerator, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, StoreDetail, Tax, Taxes, TaxTable, UpiQrcodeGenerator, Upload, Urls, Usd };
|
|
518
519
|
}
|
|
519
520
|
/** @returns {AwbNumberLabelBarcodeGenerator} */
|
|
520
521
|
declare function AwbNumberLabelBarcodeGenerator(): AwbNumberLabelBarcodeGenerator;
|
|
@@ -658,6 +659,7 @@ declare function DummyTemplateData(): DummyTemplateData;
|
|
|
658
659
|
type DummyTemplateData = {
|
|
659
660
|
__v?: number;
|
|
660
661
|
_id?: string;
|
|
662
|
+
country_code?: string;
|
|
661
663
|
payload: DummyTemplateDataPayload;
|
|
662
664
|
pdf_type_id?: number;
|
|
663
665
|
};
|
|
@@ -686,7 +688,7 @@ type DummyTemplateDataPayload = {
|
|
|
686
688
|
disclaimer?: string;
|
|
687
689
|
image?: Image;
|
|
688
690
|
invoice_detail?: InvoiceDetail;
|
|
689
|
-
|
|
691
|
+
is_export?: boolean;
|
|
690
692
|
is_self_pickup?: boolean;
|
|
691
693
|
is_self_ship?: boolean;
|
|
692
694
|
meta?: Meta;
|
|
@@ -706,6 +708,11 @@ type DummyTemplateDataPayload = {
|
|
|
706
708
|
upi_qrcode?: string;
|
|
707
709
|
waybills?: any[];
|
|
708
710
|
};
|
|
711
|
+
/** @returns {ExtensionSlug} */
|
|
712
|
+
declare function ExtensionSlug(): ExtensionSlug;
|
|
713
|
+
type ExtensionSlug = {
|
|
714
|
+
extension_slug?: string;
|
|
715
|
+
};
|
|
709
716
|
/** @returns {FailedResponse} */
|
|
710
717
|
declare function FailedResponse(): FailedResponse;
|
|
711
718
|
type FailedResponse = {
|
|
@@ -746,7 +753,7 @@ declare function InvoiceTypesDataResponse(): InvoiceTypesDataResponse;
|
|
|
746
753
|
type InvoiceTypesDataResponse = {
|
|
747
754
|
__v: number;
|
|
748
755
|
_id: string;
|
|
749
|
-
country_code
|
|
756
|
+
country_code: string;
|
|
750
757
|
format: string[];
|
|
751
758
|
name: string;
|
|
752
759
|
pdf_type_id: number;
|
|
@@ -806,14 +813,6 @@ type MetaProperty = {
|
|
|
806
813
|
signed_qrcode_generator?: SignedQrcodeGenerator;
|
|
807
814
|
upi_qrcode_generator?: UpiQrcodeGenerator;
|
|
808
815
|
};
|
|
809
|
-
/** @returns {Params} */
|
|
810
|
-
declare function Params(): Params;
|
|
811
|
-
type Params = {
|
|
812
|
-
/**
|
|
813
|
-
* - The subpath for the file.
|
|
814
|
-
*/
|
|
815
|
-
subpath?: string;
|
|
816
|
-
};
|
|
817
816
|
/** @returns {PaymentData} */
|
|
818
817
|
declare function PaymentData(): PaymentData;
|
|
819
818
|
type PaymentData = {
|
|
@@ -1028,7 +1027,7 @@ declare function StartRequest(): StartRequest;
|
|
|
1028
1027
|
type StartRequest = {
|
|
1029
1028
|
content_type: string;
|
|
1030
1029
|
file_name: string;
|
|
1031
|
-
params?:
|
|
1030
|
+
params?: any;
|
|
1032
1031
|
size: number;
|
|
1033
1032
|
tags?: string[];
|
|
1034
1033
|
};
|