@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- 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/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -23,10 +23,10 @@ class FileStorage {
|
|
|
23
23
|
*
|
|
24
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
25
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
26
|
+
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
27
27
|
* @name appCompleteUpload
|
|
28
|
-
* @summary:
|
|
29
|
-
* @description:
|
|
28
|
+
* @summary: Complete file upload for Application
|
|
29
|
+
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database on platform at application level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
|
|
30
30
|
*/
|
|
31
31
|
async appCompleteUpload(
|
|
32
32
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -69,7 +69,7 @@ class FileStorage {
|
|
|
69
69
|
const response = await PlatformAPIClient.execute(
|
|
70
70
|
this.config,
|
|
71
71
|
"post",
|
|
72
|
-
`/service/platform/assets/
|
|
72
|
+
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/complete`,
|
|
73
73
|
query_params,
|
|
74
74
|
body,
|
|
75
75
|
requestHeaders,
|
|
@@ -83,7 +83,7 @@ class FileStorage {
|
|
|
83
83
|
|
|
84
84
|
const {
|
|
85
85
|
error: res_error,
|
|
86
|
-
} = FileStoragePlatformModel.
|
|
86
|
+
} = FileStoragePlatformModel.CompleteResponse().validate(responseData, {
|
|
87
87
|
abortEarly: false,
|
|
88
88
|
allowUnknown: true,
|
|
89
89
|
});
|
|
@@ -108,8 +108,8 @@ class FileStorage {
|
|
|
108
108
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
109
109
|
* @returns {Promise<Object>} - Success response
|
|
110
110
|
* @name appCopyFiles
|
|
111
|
-
* @summary:
|
|
112
|
-
* @description:
|
|
111
|
+
* @summary: Copy files for Application
|
|
112
|
+
* @description: Handle multiple file uploads, updating progress and providing detailed status reports. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/).
|
|
113
113
|
*/
|
|
114
114
|
async appCopyFiles(
|
|
115
115
|
{ body, sync, requestHeaders } = { requestHeaders: {} },
|
|
@@ -188,10 +188,10 @@ class FileStorage {
|
|
|
188
188
|
*
|
|
189
189
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
190
190
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
191
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
191
|
+
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
192
192
|
* @name appStartUpload
|
|
193
|
-
* @summary:
|
|
194
|
-
* @description:
|
|
193
|
+
* @summary: Initiates file upload for Application
|
|
194
|
+
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response on platofrm at application level. Please refer group description for more details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
|
|
195
195
|
*/
|
|
196
196
|
async appStartUpload(
|
|
197
197
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -234,7 +234,7 @@ class FileStorage {
|
|
|
234
234
|
const response = await PlatformAPIClient.execute(
|
|
235
235
|
this.config,
|
|
236
236
|
"post",
|
|
237
|
-
`/service/platform/assets/
|
|
237
|
+
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/start`,
|
|
238
238
|
query_params,
|
|
239
239
|
body,
|
|
240
240
|
requestHeaders,
|
|
@@ -248,7 +248,7 @@ class FileStorage {
|
|
|
248
248
|
|
|
249
249
|
const {
|
|
250
250
|
error: res_error,
|
|
251
|
-
} = FileStoragePlatformModel.
|
|
251
|
+
} = FileStoragePlatformModel.StartResponse().validate(responseData, {
|
|
252
252
|
abortEarly: false,
|
|
253
253
|
allowUnknown: true,
|
|
254
254
|
});
|
|
@@ -273,8 +273,8 @@ class FileStorage {
|
|
|
273
273
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
274
274
|
* @returns {Promise<Object>} - Success response
|
|
275
275
|
* @name appbrowse
|
|
276
|
-
* @summary:
|
|
277
|
-
* @description:
|
|
276
|
+
* @summary: Browse files for Application
|
|
277
|
+
* @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
|
|
278
278
|
*/
|
|
279
279
|
async appbrowse(
|
|
280
280
|
{ namespace, page, limit, search, requestHeaders } = { requestHeaders: {} },
|
|
@@ -361,8 +361,8 @@ class FileStorage {
|
|
|
361
361
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
362
362
|
* @returns {Promise<Object>} - Success response
|
|
363
363
|
* @name browsefiles
|
|
364
|
-
* @summary: Browse
|
|
365
|
-
* @description:
|
|
364
|
+
* @summary: Browse files for Application
|
|
365
|
+
* @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
|
|
366
366
|
*/
|
|
367
367
|
async browsefiles(
|
|
368
368
|
{ namespace, body, page, limit, search, requestHeaders } = {
|
|
@@ -447,248 +447,6 @@ class FileStorage {
|
|
|
447
447
|
return response;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
/**
|
|
451
|
-
* @param {FileStoragePlatformApplicationValidator.DeletePdfGeneratorConfigParam} arg
|
|
452
|
-
* - Arg object
|
|
453
|
-
*
|
|
454
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
455
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
456
|
-
* @returns {Promise<Object>} - Success response
|
|
457
|
-
* @name deletePdfGeneratorConfig
|
|
458
|
-
* @summary: Delete a PDF generator configuration
|
|
459
|
-
* @description: Deletes a specific PDF generator configuration based on the provided id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfGeneratorConfig/).
|
|
460
|
-
*/
|
|
461
|
-
async deletePdfGeneratorConfig(
|
|
462
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
463
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
464
|
-
) {
|
|
465
|
-
const {
|
|
466
|
-
error,
|
|
467
|
-
} = FileStoragePlatformApplicationValidator.deletePdfGeneratorConfig().validate(
|
|
468
|
-
{
|
|
469
|
-
id,
|
|
470
|
-
},
|
|
471
|
-
{ abortEarly: false, allowUnknown: true }
|
|
472
|
-
);
|
|
473
|
-
if (error) {
|
|
474
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
// Showing warrnings if extra unknown parameters are found
|
|
478
|
-
const {
|
|
479
|
-
error: warrning,
|
|
480
|
-
} = FileStoragePlatformApplicationValidator.deletePdfGeneratorConfig().validate(
|
|
481
|
-
{
|
|
482
|
-
id,
|
|
483
|
-
},
|
|
484
|
-
{ abortEarly: false, allowUnknown: false }
|
|
485
|
-
);
|
|
486
|
-
if (warrning) {
|
|
487
|
-
Logger({
|
|
488
|
-
level: "WARN",
|
|
489
|
-
message: `Parameter Validation warrnings for platform > FileStorage > deletePdfGeneratorConfig \n ${warrning}`,
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
const query_params = {};
|
|
494
|
-
|
|
495
|
-
const response = await PlatformAPIClient.execute(
|
|
496
|
-
this.config,
|
|
497
|
-
"delete",
|
|
498
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config/${id}`,
|
|
499
|
-
query_params,
|
|
500
|
-
undefined,
|
|
501
|
-
requestHeaders,
|
|
502
|
-
{ responseHeaders }
|
|
503
|
-
);
|
|
504
|
-
|
|
505
|
-
let responseData = response;
|
|
506
|
-
if (responseHeaders) {
|
|
507
|
-
responseData = response[0];
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
const { error: res_error } = Joi.any().validate(responseData, {
|
|
511
|
-
abortEarly: false,
|
|
512
|
-
allowUnknown: true,
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
if (res_error) {
|
|
516
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
517
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
518
|
-
} else {
|
|
519
|
-
Logger({
|
|
520
|
-
level: "WARN",
|
|
521
|
-
message: `Response Validation Warnings for platform > FileStorage > deletePdfGeneratorConfig \n ${res_error}`,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
return response;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* @param {FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam} arg
|
|
531
|
-
* - Arg object
|
|
532
|
-
*
|
|
533
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
534
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
535
|
-
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateById>} -
|
|
536
|
-
* Success response
|
|
537
|
-
* @name fetchPdfDefaultTemplateById
|
|
538
|
-
* @summary: get default html template for invoice or label
|
|
539
|
-
* @description: get default html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfDefaultTemplateById/).
|
|
540
|
-
*/
|
|
541
|
-
async fetchPdfDefaultTemplateById(
|
|
542
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
543
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
544
|
-
) {
|
|
545
|
-
const {
|
|
546
|
-
error,
|
|
547
|
-
} = FileStoragePlatformApplicationValidator.fetchPdfDefaultTemplateById().validate(
|
|
548
|
-
{
|
|
549
|
-
id,
|
|
550
|
-
},
|
|
551
|
-
{ abortEarly: false, allowUnknown: true }
|
|
552
|
-
);
|
|
553
|
-
if (error) {
|
|
554
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
// Showing warrnings if extra unknown parameters are found
|
|
558
|
-
const {
|
|
559
|
-
error: warrning,
|
|
560
|
-
} = FileStoragePlatformApplicationValidator.fetchPdfDefaultTemplateById().validate(
|
|
561
|
-
{
|
|
562
|
-
id,
|
|
563
|
-
},
|
|
564
|
-
{ abortEarly: false, allowUnknown: false }
|
|
565
|
-
);
|
|
566
|
-
if (warrning) {
|
|
567
|
-
Logger({
|
|
568
|
-
level: "WARN",
|
|
569
|
-
message: `Parameter Validation warrnings for platform > FileStorage > fetchPdfDefaultTemplateById \n ${warrning}`,
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
const query_params = {};
|
|
574
|
-
|
|
575
|
-
const response = await PlatformAPIClient.execute(
|
|
576
|
-
this.config,
|
|
577
|
-
"get",
|
|
578
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/default-template/${id}`,
|
|
579
|
-
query_params,
|
|
580
|
-
undefined,
|
|
581
|
-
requestHeaders,
|
|
582
|
-
{ responseHeaders }
|
|
583
|
-
);
|
|
584
|
-
|
|
585
|
-
let responseData = response;
|
|
586
|
-
if (responseHeaders) {
|
|
587
|
-
responseData = response[0];
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
const {
|
|
591
|
-
error: res_error,
|
|
592
|
-
} = FileStoragePlatformModel.PdfDefaultTemplateById().validate(
|
|
593
|
-
responseData,
|
|
594
|
-
{ abortEarly: false, allowUnknown: true }
|
|
595
|
-
);
|
|
596
|
-
|
|
597
|
-
if (res_error) {
|
|
598
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
599
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
600
|
-
} else {
|
|
601
|
-
Logger({
|
|
602
|
-
level: "WARN",
|
|
603
|
-
message: `Response Validation Warnings for platform > FileStorage > fetchPdfDefaultTemplateById \n ${res_error}`,
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return response;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* @param {FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam} arg
|
|
613
|
-
* - Arg object
|
|
614
|
-
*
|
|
615
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
616
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
617
|
-
* @returns {Promise<FileStoragePlatformModel.PdfTypeByIdDetails>} - Success response
|
|
618
|
-
* @name fetchPdfTypeById
|
|
619
|
-
* @summary: Get the pdf types of by id
|
|
620
|
-
* @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
|
|
621
|
-
*/
|
|
622
|
-
async fetchPdfTypeById(
|
|
623
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
624
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
625
|
-
) {
|
|
626
|
-
const {
|
|
627
|
-
error,
|
|
628
|
-
} = FileStoragePlatformApplicationValidator.fetchPdfTypeById().validate(
|
|
629
|
-
{
|
|
630
|
-
id,
|
|
631
|
-
},
|
|
632
|
-
{ abortEarly: false, allowUnknown: true }
|
|
633
|
-
);
|
|
634
|
-
if (error) {
|
|
635
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
// Showing warrnings if extra unknown parameters are found
|
|
639
|
-
const {
|
|
640
|
-
error: warrning,
|
|
641
|
-
} = FileStoragePlatformApplicationValidator.fetchPdfTypeById().validate(
|
|
642
|
-
{
|
|
643
|
-
id,
|
|
644
|
-
},
|
|
645
|
-
{ abortEarly: false, allowUnknown: false }
|
|
646
|
-
);
|
|
647
|
-
if (warrning) {
|
|
648
|
-
Logger({
|
|
649
|
-
level: "WARN",
|
|
650
|
-
message: `Parameter Validation warrnings for platform > FileStorage > fetchPdfTypeById \n ${warrning}`,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
const query_params = {};
|
|
655
|
-
|
|
656
|
-
const response = await PlatformAPIClient.execute(
|
|
657
|
-
this.config,
|
|
658
|
-
"get",
|
|
659
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/types/${id}`,
|
|
660
|
-
query_params,
|
|
661
|
-
undefined,
|
|
662
|
-
requestHeaders,
|
|
663
|
-
{ responseHeaders }
|
|
664
|
-
);
|
|
665
|
-
|
|
666
|
-
let responseData = response;
|
|
667
|
-
if (responseHeaders) {
|
|
668
|
-
responseData = response[0];
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
const {
|
|
672
|
-
error: res_error,
|
|
673
|
-
} = FileStoragePlatformModel.PdfTypeByIdDetails().validate(responseData, {
|
|
674
|
-
abortEarly: false,
|
|
675
|
-
allowUnknown: true,
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
if (res_error) {
|
|
679
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
680
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
681
|
-
} else {
|
|
682
|
-
Logger({
|
|
683
|
-
level: "WARN",
|
|
684
|
-
message: `Response Validation Warnings for platform > FileStorage > fetchPdfTypeById \n ${res_error}`,
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
return response;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
450
|
/**
|
|
693
451
|
* @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
|
|
694
452
|
* - Arg object
|
|
@@ -697,7 +455,7 @@ class FileStorage {
|
|
|
697
455
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
698
456
|
* @returns {Promise<Object>} - Success response
|
|
699
457
|
* @name generatePaymentReceipt
|
|
700
|
-
* @summary: Generate payment receipt
|
|
458
|
+
* @summary: Generate payment receipt
|
|
701
459
|
* @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/).
|
|
702
460
|
*/
|
|
703
461
|
async generatePaymentReceipt(
|
|
@@ -769,25 +527,28 @@ class FileStorage {
|
|
|
769
527
|
}
|
|
770
528
|
|
|
771
529
|
/**
|
|
772
|
-
* @param {FileStoragePlatformApplicationValidator.
|
|
530
|
+
* @param {FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam} arg
|
|
773
531
|
* - Arg object
|
|
774
532
|
*
|
|
775
533
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
776
534
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
777
|
-
* @returns {Promise<
|
|
778
|
-
* @name
|
|
779
|
-
* @summary:
|
|
780
|
-
* @description:
|
|
535
|
+
* @returns {Promise<FileStoragePlatformModel.PdfConfigSuccess>} - Success response
|
|
536
|
+
* @name getDefaultHtmlTemplate
|
|
537
|
+
* @summary: Get html template for Application
|
|
538
|
+
* @description: Get the saved html template for provided sales channel
|
|
539
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/).
|
|
781
540
|
*/
|
|
782
|
-
async
|
|
783
|
-
{
|
|
541
|
+
async getDefaultHtmlTemplate(
|
|
542
|
+
{ pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
784
543
|
{ responseHeaders } = { responseHeaders: false }
|
|
785
544
|
) {
|
|
786
545
|
const {
|
|
787
546
|
error,
|
|
788
|
-
} = FileStoragePlatformApplicationValidator.
|
|
547
|
+
} = FileStoragePlatformApplicationValidator.getDefaultHtmlTemplate().validate(
|
|
789
548
|
{
|
|
790
|
-
|
|
549
|
+
pdfTypeId,
|
|
550
|
+
format,
|
|
551
|
+
countryCode,
|
|
791
552
|
},
|
|
792
553
|
{ abortEarly: false, allowUnknown: true }
|
|
793
554
|
);
|
|
@@ -798,25 +559,30 @@ class FileStorage {
|
|
|
798
559
|
// Showing warrnings if extra unknown parameters are found
|
|
799
560
|
const {
|
|
800
561
|
error: warrning,
|
|
801
|
-
} = FileStoragePlatformApplicationValidator.
|
|
562
|
+
} = FileStoragePlatformApplicationValidator.getDefaultHtmlTemplate().validate(
|
|
802
563
|
{
|
|
803
|
-
|
|
564
|
+
pdfTypeId,
|
|
565
|
+
format,
|
|
566
|
+
countryCode,
|
|
804
567
|
},
|
|
805
568
|
{ abortEarly: false, allowUnknown: false }
|
|
806
569
|
);
|
|
807
570
|
if (warrning) {
|
|
808
571
|
Logger({
|
|
809
572
|
level: "WARN",
|
|
810
|
-
message: `Parameter Validation warrnings for platform > FileStorage >
|
|
573
|
+
message: `Parameter Validation warrnings for platform > FileStorage > getDefaultHtmlTemplate \n ${warrning}`,
|
|
811
574
|
});
|
|
812
575
|
}
|
|
813
576
|
|
|
814
577
|
const query_params = {};
|
|
578
|
+
query_params["pdf_type_id"] = pdfTypeId;
|
|
579
|
+
query_params["format"] = format;
|
|
580
|
+
query_params["country_code"] = countryCode;
|
|
815
581
|
|
|
816
582
|
const response = await PlatformAPIClient.execute(
|
|
817
583
|
this.config,
|
|
818
584
|
"get",
|
|
819
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config
|
|
585
|
+
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`,
|
|
820
586
|
query_params,
|
|
821
587
|
undefined,
|
|
822
588
|
requestHeaders,
|
|
@@ -828,7 +594,9 @@ class FileStorage {
|
|
|
828
594
|
responseData = response[0];
|
|
829
595
|
}
|
|
830
596
|
|
|
831
|
-
const {
|
|
597
|
+
const {
|
|
598
|
+
error: res_error,
|
|
599
|
+
} = FileStoragePlatformModel.PdfConfigSuccess().validate(responseData, {
|
|
832
600
|
abortEarly: false,
|
|
833
601
|
allowUnknown: true,
|
|
834
602
|
});
|
|
@@ -839,7 +607,7 @@ class FileStorage {
|
|
|
839
607
|
} else {
|
|
840
608
|
Logger({
|
|
841
609
|
level: "WARN",
|
|
842
|
-
message: `Response Validation Warnings for platform > FileStorage >
|
|
610
|
+
message: `Response Validation Warnings for platform > FileStorage > getDefaultHtmlTemplate \n ${res_error}`,
|
|
843
611
|
});
|
|
844
612
|
}
|
|
845
613
|
}
|
|
@@ -853,10 +621,11 @@ class FileStorage {
|
|
|
853
621
|
*
|
|
854
622
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
855
623
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
856
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
624
|
+
* @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
|
|
625
|
+
* Success response
|
|
857
626
|
* @name getDefaultPdfData
|
|
858
|
-
* @summary: Get default PDF data
|
|
859
|
-
* @description: Retrieve default data for
|
|
627
|
+
* @summary: Get default PDF data
|
|
628
|
+
* @description: Retrieve default pdf payload data for invoice generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
860
629
|
*/
|
|
861
630
|
async getDefaultPdfData(
|
|
862
631
|
{ pdfTypeId, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
@@ -913,10 +682,10 @@ class FileStorage {
|
|
|
913
682
|
|
|
914
683
|
const {
|
|
915
684
|
error: res_error,
|
|
916
|
-
} = FileStoragePlatformModel.
|
|
917
|
-
|
|
918
|
-
allowUnknown: true
|
|
919
|
-
|
|
685
|
+
} = FileStoragePlatformModel.DummyTemplateDataItems().validate(
|
|
686
|
+
responseData,
|
|
687
|
+
{ abortEarly: false, allowUnknown: true }
|
|
688
|
+
);
|
|
920
689
|
|
|
921
690
|
if (res_error) {
|
|
922
691
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -941,8 +710,8 @@ class FileStorage {
|
|
|
941
710
|
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>} -
|
|
942
711
|
* Success response
|
|
943
712
|
* @name getDefaultPdfTemplate
|
|
944
|
-
* @summary: Get default PDF template
|
|
945
|
-
* @description: Retrieve the default
|
|
713
|
+
* @summary: Get default PDF template
|
|
714
|
+
* @description: Retrieve to get the default Invoice template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
|
|
946
715
|
*/
|
|
947
716
|
async getDefaultPdfTemplate(
|
|
948
717
|
{ pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1021,193 +790,24 @@ class FileStorage {
|
|
|
1021
790
|
return response;
|
|
1022
791
|
}
|
|
1023
792
|
|
|
1024
|
-
/**
|
|
1025
|
-
* @param {FileStoragePlatformApplicationValidator.GetHtmlTemplateConfigParam} arg
|
|
1026
|
-
* - Arg object
|
|
1027
|
-
*
|
|
1028
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1029
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1030
|
-
* @returns {Promise<FileStoragePlatformModel.PdfConfigSuccess>} - Success response
|
|
1031
|
-
* @name getHtmlTemplateConfig
|
|
1032
|
-
* @summary: Get html template for sales channel
|
|
1033
|
-
* @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getHtmlTemplateConfig/).
|
|
1034
|
-
*/
|
|
1035
|
-
async getHtmlTemplateConfig(
|
|
1036
|
-
{ pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
|
|
1037
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1038
|
-
) {
|
|
1039
|
-
const {
|
|
1040
|
-
error,
|
|
1041
|
-
} = FileStoragePlatformApplicationValidator.getHtmlTemplateConfig().validate(
|
|
1042
|
-
{
|
|
1043
|
-
pdfTypeId,
|
|
1044
|
-
format,
|
|
1045
|
-
countryCode,
|
|
1046
|
-
},
|
|
1047
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1048
|
-
);
|
|
1049
|
-
if (error) {
|
|
1050
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1054
|
-
const {
|
|
1055
|
-
error: warrning,
|
|
1056
|
-
} = FileStoragePlatformApplicationValidator.getHtmlTemplateConfig().validate(
|
|
1057
|
-
{
|
|
1058
|
-
pdfTypeId,
|
|
1059
|
-
format,
|
|
1060
|
-
countryCode,
|
|
1061
|
-
},
|
|
1062
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1063
|
-
);
|
|
1064
|
-
if (warrning) {
|
|
1065
|
-
Logger({
|
|
1066
|
-
level: "WARN",
|
|
1067
|
-
message: `Parameter Validation warrnings for platform > FileStorage > getHtmlTemplateConfig \n ${warrning}`,
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
const query_params = {};
|
|
1072
|
-
query_params["pdf_type_id"] = pdfTypeId;
|
|
1073
|
-
query_params["format"] = format;
|
|
1074
|
-
query_params["country_code"] = countryCode;
|
|
1075
|
-
|
|
1076
|
-
const response = await PlatformAPIClient.execute(
|
|
1077
|
-
this.config,
|
|
1078
|
-
"get",
|
|
1079
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`,
|
|
1080
|
-
query_params,
|
|
1081
|
-
undefined,
|
|
1082
|
-
requestHeaders,
|
|
1083
|
-
{ responseHeaders }
|
|
1084
|
-
);
|
|
1085
|
-
|
|
1086
|
-
let responseData = response;
|
|
1087
|
-
if (responseHeaders) {
|
|
1088
|
-
responseData = response[0];
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
const {
|
|
1092
|
-
error: res_error,
|
|
1093
|
-
} = FileStoragePlatformModel.PdfConfigSuccess().validate(responseData, {
|
|
1094
|
-
abortEarly: false,
|
|
1095
|
-
allowUnknown: true,
|
|
1096
|
-
});
|
|
1097
|
-
|
|
1098
|
-
if (res_error) {
|
|
1099
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1100
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1101
|
-
} else {
|
|
1102
|
-
Logger({
|
|
1103
|
-
level: "WARN",
|
|
1104
|
-
message: `Response Validation Warnings for platform > FileStorage > getHtmlTemplateConfig \n ${res_error}`,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
return response;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
* @param {FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam} arg
|
|
1114
|
-
* - Arg object
|
|
1115
|
-
*
|
|
1116
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1117
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1118
|
-
* @returns {Promise<FileStoragePlatformModel.MapperDetails>} - Success response
|
|
1119
|
-
* @name getPdfPayloadById
|
|
1120
|
-
* @summary: Get default PDF data.
|
|
1121
|
-
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
|
|
1122
|
-
*/
|
|
1123
|
-
async getPdfPayloadById(
|
|
1124
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
1125
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1126
|
-
) {
|
|
1127
|
-
const {
|
|
1128
|
-
error,
|
|
1129
|
-
} = FileStoragePlatformApplicationValidator.getPdfPayloadById().validate(
|
|
1130
|
-
{
|
|
1131
|
-
id,
|
|
1132
|
-
},
|
|
1133
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1134
|
-
);
|
|
1135
|
-
if (error) {
|
|
1136
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1140
|
-
const {
|
|
1141
|
-
error: warrning,
|
|
1142
|
-
} = FileStoragePlatformApplicationValidator.getPdfPayloadById().validate(
|
|
1143
|
-
{
|
|
1144
|
-
id,
|
|
1145
|
-
},
|
|
1146
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1147
|
-
);
|
|
1148
|
-
if (warrning) {
|
|
1149
|
-
Logger({
|
|
1150
|
-
level: "WARN",
|
|
1151
|
-
message: `Parameter Validation warrnings for platform > FileStorage > getPdfPayloadById \n ${warrning}`,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
const query_params = {};
|
|
1156
|
-
|
|
1157
|
-
const response = await PlatformAPIClient.execute(
|
|
1158
|
-
this.config,
|
|
1159
|
-
"get",
|
|
1160
|
-
`/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/mapper/${id}`,
|
|
1161
|
-
query_params,
|
|
1162
|
-
undefined,
|
|
1163
|
-
requestHeaders,
|
|
1164
|
-
{ responseHeaders }
|
|
1165
|
-
);
|
|
1166
|
-
|
|
1167
|
-
let responseData = response;
|
|
1168
|
-
if (responseHeaders) {
|
|
1169
|
-
responseData = response[0];
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
const {
|
|
1173
|
-
error: res_error,
|
|
1174
|
-
} = FileStoragePlatformModel.MapperDetails().validate(responseData, {
|
|
1175
|
-
abortEarly: false,
|
|
1176
|
-
allowUnknown: true,
|
|
1177
|
-
});
|
|
1178
|
-
|
|
1179
|
-
if (res_error) {
|
|
1180
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1181
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1182
|
-
} else {
|
|
1183
|
-
Logger({
|
|
1184
|
-
level: "WARN",
|
|
1185
|
-
message: `Response Validation Warnings for platform > FileStorage > getPdfPayloadById \n ${res_error}`,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
return response;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
793
|
/**
|
|
1194
794
|
* @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
|
|
1195
795
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1196
796
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1197
|
-
* @returns {Promise<FileStoragePlatformModel.
|
|
797
|
+
* @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
|
|
798
|
+
* Success response
|
|
1198
799
|
* @name getPdfTypes
|
|
1199
|
-
* @summary: Get
|
|
1200
|
-
* @description:
|
|
800
|
+
* @summary: Get PDF types
|
|
801
|
+
* @description: Retrieve a list of available invoice types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
1201
802
|
*/
|
|
1202
803
|
async getPdfTypes(
|
|
1203
|
-
{
|
|
804
|
+
{ countryCode, requestHeaders } = { requestHeaders: {} },
|
|
1204
805
|
{ responseHeaders } = { responseHeaders: false }
|
|
1205
806
|
) {
|
|
1206
807
|
const {
|
|
1207
808
|
error,
|
|
1208
809
|
} = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
|
|
1209
810
|
{
|
|
1210
|
-
storeOs,
|
|
1211
811
|
countryCode,
|
|
1212
812
|
},
|
|
1213
813
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -1221,7 +821,6 @@ class FileStorage {
|
|
|
1221
821
|
error: warrning,
|
|
1222
822
|
} = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
|
|
1223
823
|
{
|
|
1224
|
-
storeOs,
|
|
1225
824
|
countryCode,
|
|
1226
825
|
},
|
|
1227
826
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -1235,7 +834,6 @@ class FileStorage {
|
|
|
1235
834
|
|
|
1236
835
|
const query_params = {};
|
|
1237
836
|
query_params["country_code"] = countryCode;
|
|
1238
|
-
query_params["store_os"] = storeOs;
|
|
1239
837
|
|
|
1240
838
|
const response = await PlatformAPIClient.execute(
|
|
1241
839
|
this.config,
|
|
@@ -1254,7 +852,7 @@ class FileStorage {
|
|
|
1254
852
|
|
|
1255
853
|
const {
|
|
1256
854
|
error: res_error,
|
|
1257
|
-
} = FileStoragePlatformModel.
|
|
855
|
+
} = FileStoragePlatformModel.InvoiceTypesResponse().validate(responseData, {
|
|
1258
856
|
abortEarly: false,
|
|
1259
857
|
allowUnknown: true,
|
|
1260
858
|
});
|
|
@@ -1282,8 +880,8 @@ class FileStorage {
|
|
|
1282
880
|
* @returns {Promise<FileStoragePlatformModel.PdfConfigSaveSuccess>} -
|
|
1283
881
|
* Success response
|
|
1284
882
|
* @name saveHtmlTemplate
|
|
1285
|
-
* @summary: Save
|
|
1286
|
-
* @description:
|
|
883
|
+
* @summary: Save PDF template
|
|
884
|
+
* @description: Save html template for provided sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/).
|
|
1287
885
|
*/
|
|
1288
886
|
async saveHtmlTemplate(
|
|
1289
887
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1447,6 +1045,7 @@ class FileStorage {
|
|
|
1447
1045
|
* @param {string} namespace
|
|
1448
1046
|
* @param {number} size
|
|
1449
1047
|
* @param {number} tags
|
|
1048
|
+
* @param {string} enc_key
|
|
1450
1049
|
*/
|
|
1451
1050
|
FileStorage.prototype.upload = function ({
|
|
1452
1051
|
data,
|
|
@@ -1455,6 +1054,7 @@ FileStorage.prototype.upload = function ({
|
|
|
1455
1054
|
namespace,
|
|
1456
1055
|
size,
|
|
1457
1056
|
tags,
|
|
1057
|
+
enc_key,
|
|
1458
1058
|
} = {}) {
|
|
1459
1059
|
return new Promise(async (resolve, reject) => {
|
|
1460
1060
|
try {
|
|
@@ -1465,6 +1065,7 @@ FileStorage.prototype.upload = function ({
|
|
|
1465
1065
|
content_type,
|
|
1466
1066
|
size: size,
|
|
1467
1067
|
tags: tags,
|
|
1068
|
+
enc_key: enc_key,
|
|
1468
1069
|
},
|
|
1469
1070
|
});
|
|
1470
1071
|
if (dataObj.upload && dataObj.upload.url) {
|