@gofynd/fdk-client-javascript 1.0.1 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +562 -1270
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +15266 -17619
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3509 -4121
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3750 -5636
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +1058 -547
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +76 -36
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +581 -213
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
- package/sdk/application/Content/ContentApplicationModel.js +468 -875
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +230 -96
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
- package/sdk/application/Order/OrderApplicationClient.js +448 -215
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +357 -661
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
- package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +221 -96
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +1201 -543
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
- package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
- package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
- package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
- package/sdk/platform/Common/CommonPlatformClient.js +80 -37
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
- package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
- package/sdk/platform/Content/ContentPlatformModel.js +486 -867
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
- package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
- package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
- package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
- package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
- package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
- package/sdk/platform/PlatformApplicationClient.js +1584 -13691
- package/sdk/platform/PlatformClient.d.ts +7918 -7666
- package/sdk/platform/PlatformClient.js +8701 -9926
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
- package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
- package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
- package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -3,22 +3,24 @@ const constructUrl = require("../constructUrl");
|
|
|
3
3
|
const Paginator = require("../../common/Paginator");
|
|
4
4
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const ShareValidator = require("./ShareApplicationValidator");
|
|
6
|
+
const ShareModel = require("./ShareApplicationModel");
|
|
7
|
+
const { Logger } = require("./../../common/Logger");
|
|
6
8
|
|
|
7
9
|
class Share {
|
|
8
10
|
constructor(_conf) {
|
|
9
11
|
this._conf = _conf;
|
|
10
12
|
this._relativeUrls = {
|
|
13
|
+
createShortLink: "/service/application/share/v1.0/links/short-link/",
|
|
11
14
|
getApplicationQRCode: "/service/application/share/v1.0/qr/",
|
|
12
|
-
getProductQRCodeBySlug:
|
|
13
|
-
"/service/application/share/v1.0/qr/products/{slug}/",
|
|
14
15
|
getCollectionQRCodeBySlug:
|
|
15
16
|
"/service/application/share/v1.0/qr/collection/{slug}/",
|
|
16
|
-
getUrlQRCode: "/service/application/share/v1.0/qr/url/",
|
|
17
|
-
createShortLink: "/service/application/share/v1.0/links/short-link/",
|
|
18
|
-
getShortLinkByHash:
|
|
19
|
-
"/service/application/share/v1.0/links/short-link/{hash}/",
|
|
20
17
|
getOriginalShortLinkByHash:
|
|
21
18
|
"/service/application/share/v1.0/links/short-link/{hash}/original/",
|
|
19
|
+
getProductQRCodeBySlug:
|
|
20
|
+
"/service/application/share/v1.0/qr/products/{slug}/",
|
|
21
|
+
getShortLinkByHash:
|
|
22
|
+
"/service/application/share/v1.0/links/short-link/{hash}/",
|
|
23
|
+
getUrlQRCode: "/service/application/share/v1.0/qr/url/",
|
|
22
24
|
};
|
|
23
25
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
24
26
|
(urls, [method, relativeUrl]) => {
|
|
@@ -38,13 +40,14 @@ class Share {
|
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
42
|
* @param {Object} arg - Arg object.
|
|
41
|
-
* @
|
|
42
|
-
* @
|
|
43
|
-
* @
|
|
43
|
+
* @param {ShortLinkReq} arg.body
|
|
44
|
+
* @returns {Promise<ShortLinkRes>} - Success response
|
|
45
|
+
* @summary: Create a short link
|
|
46
|
+
* @description: Use this API to create a short link that is easy to write/share/read as compared to long URLs.
|
|
44
47
|
*/
|
|
45
|
-
|
|
46
|
-
const { error } = ShareValidator.
|
|
47
|
-
{},
|
|
48
|
+
async createShortLink({ body } = {}) {
|
|
49
|
+
const { error } = ShareValidator.createShortLink().validate(
|
|
50
|
+
{ body },
|
|
48
51
|
{ abortEarly: false, allowUnknown: true }
|
|
49
52
|
);
|
|
50
53
|
if (error) {
|
|
@@ -52,43 +55,59 @@ class Share {
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
// Showing warrnings if extra unknown parameters are found
|
|
55
|
-
const { error: warrning } = ShareValidator.
|
|
56
|
-
{},
|
|
58
|
+
const { error: warrning } = ShareValidator.createShortLink().validate(
|
|
59
|
+
{ body },
|
|
57
60
|
{ abortEarly: false, allowUnknown: false }
|
|
58
61
|
);
|
|
59
62
|
if (warrning) {
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
Logger({
|
|
64
|
+
level: "WARN",
|
|
65
|
+
message: "Parameter Validation warrnings for createShortLink",
|
|
66
|
+
});
|
|
67
|
+
Logger({ level: "WARN", message: warrning });
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
const query_params = {};
|
|
65
71
|
|
|
66
72
|
const xHeaders = {};
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
const response = await APIClient.execute(
|
|
69
75
|
this._conf,
|
|
70
76
|
"post",
|
|
71
77
|
constructUrl({
|
|
72
|
-
url: this._urls["
|
|
78
|
+
url: this._urls["createShortLink"],
|
|
73
79
|
params: {},
|
|
74
80
|
}),
|
|
75
81
|
query_params,
|
|
76
|
-
|
|
82
|
+
body,
|
|
77
83
|
xHeaders
|
|
78
84
|
);
|
|
85
|
+
|
|
86
|
+
const { error: res_error } = ShareModel.ShortLinkRes().validate(response, {
|
|
87
|
+
abortEarly: false,
|
|
88
|
+
allowUnknown: false,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
if (res_error) {
|
|
92
|
+
Logger({
|
|
93
|
+
level: "WARN",
|
|
94
|
+
message: "Response Validation Warnnings for createShortLink",
|
|
95
|
+
});
|
|
96
|
+
Logger({ level: "WARN", message: res_error });
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return response;
|
|
79
100
|
}
|
|
80
101
|
|
|
81
102
|
/**
|
|
82
103
|
* @param {Object} arg - Arg object.
|
|
83
|
-
* @param {string} arg.slug - A short, human-readable, URL-friendly
|
|
84
|
-
* identifier of a product. You can get slug value from the endpoint.
|
|
85
104
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
86
|
-
* @summary: Create QR Code of
|
|
87
|
-
* @description: Use this API to create a QR code of
|
|
105
|
+
* @summary: Create QR Code of an app
|
|
106
|
+
* @description: Use this API to create a QR code of an app for sharing it with users who want to use the app.
|
|
88
107
|
*/
|
|
89
|
-
|
|
90
|
-
const { error } = ShareValidator.
|
|
91
|
-
{
|
|
108
|
+
async getApplicationQRCode({} = {}) {
|
|
109
|
+
const { error } = ShareValidator.getApplicationQRCode().validate(
|
|
110
|
+
{},
|
|
92
111
|
{ abortEarly: false, allowUnknown: true }
|
|
93
112
|
);
|
|
94
113
|
if (error) {
|
|
@@ -96,32 +115,48 @@ class Share {
|
|
|
96
115
|
}
|
|
97
116
|
|
|
98
117
|
// Showing warrnings if extra unknown parameters are found
|
|
99
|
-
const {
|
|
100
|
-
|
|
101
|
-
} = ShareValidator.getProductQRCodeBySlug().validate(
|
|
102
|
-
{ slug },
|
|
118
|
+
const { error: warrning } = ShareValidator.getApplicationQRCode().validate(
|
|
119
|
+
{},
|
|
103
120
|
{ abortEarly: false, allowUnknown: false }
|
|
104
121
|
);
|
|
105
122
|
if (warrning) {
|
|
106
|
-
|
|
107
|
-
|
|
123
|
+
Logger({
|
|
124
|
+
level: "WARN",
|
|
125
|
+
message: "Parameter Validation warrnings for getApplicationQRCode",
|
|
126
|
+
});
|
|
127
|
+
Logger({ level: "WARN", message: warrning });
|
|
108
128
|
}
|
|
109
129
|
|
|
110
130
|
const query_params = {};
|
|
111
131
|
|
|
112
132
|
const xHeaders = {};
|
|
113
133
|
|
|
114
|
-
|
|
134
|
+
const response = await APIClient.execute(
|
|
115
135
|
this._conf,
|
|
116
136
|
"post",
|
|
117
137
|
constructUrl({
|
|
118
|
-
url: this._urls["
|
|
119
|
-
params: {
|
|
138
|
+
url: this._urls["getApplicationQRCode"],
|
|
139
|
+
params: {},
|
|
120
140
|
}),
|
|
121
141
|
query_params,
|
|
122
142
|
undefined,
|
|
123
143
|
xHeaders
|
|
124
144
|
);
|
|
145
|
+
|
|
146
|
+
const { error: res_error } = ShareModel.QRCodeResp().validate(response, {
|
|
147
|
+
abortEarly: false,
|
|
148
|
+
allowUnknown: false,
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
if (res_error) {
|
|
152
|
+
Logger({
|
|
153
|
+
level: "WARN",
|
|
154
|
+
message: "Response Validation Warnnings for getApplicationQRCode",
|
|
155
|
+
});
|
|
156
|
+
Logger({ level: "WARN", message: res_error });
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return response;
|
|
125
160
|
}
|
|
126
161
|
|
|
127
162
|
/**
|
|
@@ -132,7 +167,7 @@ class Share {
|
|
|
132
167
|
* @summary: Create QR Code of a collection
|
|
133
168
|
* @description: Use this API to create a QR code of a collection of products for sharing it with users who want to view/purchase the collection.
|
|
134
169
|
*/
|
|
135
|
-
getCollectionQRCodeBySlug({ slug } = {}) {
|
|
170
|
+
async getCollectionQRCodeBySlug({ slug } = {}) {
|
|
136
171
|
const { error } = ShareValidator.getCollectionQRCodeBySlug().validate(
|
|
137
172
|
{ slug },
|
|
138
173
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -149,17 +184,18 @@ class Share {
|
|
|
149
184
|
{ abortEarly: false, allowUnknown: false }
|
|
150
185
|
);
|
|
151
186
|
if (warrning) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
187
|
+
Logger({
|
|
188
|
+
level: "WARN",
|
|
189
|
+
message: "Parameter Validation warrnings for getCollectionQRCodeBySlug",
|
|
190
|
+
});
|
|
191
|
+
Logger({ level: "WARN", message: warrning });
|
|
156
192
|
}
|
|
157
193
|
|
|
158
194
|
const query_params = {};
|
|
159
195
|
|
|
160
196
|
const xHeaders = {};
|
|
161
197
|
|
|
162
|
-
|
|
198
|
+
const response = await APIClient.execute(
|
|
163
199
|
this._conf,
|
|
164
200
|
"post",
|
|
165
201
|
constructUrl({
|
|
@@ -170,18 +206,34 @@ class Share {
|
|
|
170
206
|
undefined,
|
|
171
207
|
xHeaders
|
|
172
208
|
);
|
|
209
|
+
|
|
210
|
+
const { error: res_error } = ShareModel.QRCodeResp().validate(response, {
|
|
211
|
+
abortEarly: false,
|
|
212
|
+
allowUnknown: false,
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
if (res_error) {
|
|
216
|
+
Logger({
|
|
217
|
+
level: "WARN",
|
|
218
|
+
message: "Response Validation Warnnings for getCollectionQRCodeBySlug",
|
|
219
|
+
});
|
|
220
|
+
Logger({ level: "WARN", message: res_error });
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return response;
|
|
173
224
|
}
|
|
174
225
|
|
|
175
226
|
/**
|
|
176
227
|
* @param {Object} arg - Arg object.
|
|
177
|
-
* @param {string} arg.
|
|
178
|
-
*
|
|
179
|
-
* @
|
|
180
|
-
* @
|
|
228
|
+
* @param {string} arg.hash - A string value used for converting long URL to
|
|
229
|
+
* short URL and vice-versa.
|
|
230
|
+
* @returns {Promise<ShortLinkRes>} - Success response
|
|
231
|
+
* @summary: Get original link by hash
|
|
232
|
+
* @description: Use this API to retrieve the original link from a short-link by using a hash value.
|
|
181
233
|
*/
|
|
182
|
-
|
|
183
|
-
const { error } = ShareValidator.
|
|
184
|
-
{
|
|
234
|
+
async getOriginalShortLinkByHash({ hash } = {}) {
|
|
235
|
+
const { error } = ShareValidator.getOriginalShortLinkByHash().validate(
|
|
236
|
+
{ hash },
|
|
185
237
|
{ abortEarly: false, allowUnknown: true }
|
|
186
238
|
);
|
|
187
239
|
if (error) {
|
|
@@ -189,43 +241,64 @@ class Share {
|
|
|
189
241
|
}
|
|
190
242
|
|
|
191
243
|
// Showing warrnings if extra unknown parameters are found
|
|
192
|
-
const {
|
|
193
|
-
|
|
244
|
+
const {
|
|
245
|
+
error: warrning,
|
|
246
|
+
} = ShareValidator.getOriginalShortLinkByHash().validate(
|
|
247
|
+
{ hash },
|
|
194
248
|
{ abortEarly: false, allowUnknown: false }
|
|
195
249
|
);
|
|
196
250
|
if (warrning) {
|
|
197
|
-
|
|
198
|
-
|
|
251
|
+
Logger({
|
|
252
|
+
level: "WARN",
|
|
253
|
+
message:
|
|
254
|
+
"Parameter Validation warrnings for getOriginalShortLinkByHash",
|
|
255
|
+
});
|
|
256
|
+
Logger({ level: "WARN", message: warrning });
|
|
199
257
|
}
|
|
200
258
|
|
|
201
259
|
const query_params = {};
|
|
202
|
-
query_params["url"] = url;
|
|
203
260
|
|
|
204
261
|
const xHeaders = {};
|
|
205
262
|
|
|
206
|
-
|
|
263
|
+
const response = await APIClient.execute(
|
|
207
264
|
this._conf,
|
|
208
|
-
"
|
|
265
|
+
"get",
|
|
209
266
|
constructUrl({
|
|
210
|
-
url: this._urls["
|
|
211
|
-
params: {},
|
|
267
|
+
url: this._urls["getOriginalShortLinkByHash"],
|
|
268
|
+
params: { hash },
|
|
212
269
|
}),
|
|
213
270
|
query_params,
|
|
214
271
|
undefined,
|
|
215
272
|
xHeaders
|
|
216
273
|
);
|
|
274
|
+
|
|
275
|
+
const { error: res_error } = ShareModel.ShortLinkRes().validate(response, {
|
|
276
|
+
abortEarly: false,
|
|
277
|
+
allowUnknown: false,
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
if (res_error) {
|
|
281
|
+
Logger({
|
|
282
|
+
level: "WARN",
|
|
283
|
+
message: "Response Validation Warnnings for getOriginalShortLinkByHash",
|
|
284
|
+
});
|
|
285
|
+
Logger({ level: "WARN", message: res_error });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
return response;
|
|
217
289
|
}
|
|
218
290
|
|
|
219
291
|
/**
|
|
220
292
|
* @param {Object} arg - Arg object.
|
|
221
|
-
* @param {
|
|
222
|
-
*
|
|
223
|
-
* @
|
|
224
|
-
* @
|
|
293
|
+
* @param {string} arg.slug - A short, human-readable, URL-friendly
|
|
294
|
+
* identifier of a product. You can get slug value from the endpoint.
|
|
295
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
296
|
+
* @summary: Create QR Code of a product
|
|
297
|
+
* @description: Use this API to create a QR code of a product for sharing it with users who want to view/purchase the product.
|
|
225
298
|
*/
|
|
226
|
-
|
|
227
|
-
const { error } = ShareValidator.
|
|
228
|
-
{
|
|
299
|
+
async getProductQRCodeBySlug({ slug } = {}) {
|
|
300
|
+
const { error } = ShareValidator.getProductQRCodeBySlug().validate(
|
|
301
|
+
{ slug },
|
|
229
302
|
{ abortEarly: false, allowUnknown: true }
|
|
230
303
|
);
|
|
231
304
|
if (error) {
|
|
@@ -233,30 +306,50 @@ class Share {
|
|
|
233
306
|
}
|
|
234
307
|
|
|
235
308
|
// Showing warrnings if extra unknown parameters are found
|
|
236
|
-
const {
|
|
237
|
-
|
|
309
|
+
const {
|
|
310
|
+
error: warrning,
|
|
311
|
+
} = ShareValidator.getProductQRCodeBySlug().validate(
|
|
312
|
+
{ slug },
|
|
238
313
|
{ abortEarly: false, allowUnknown: false }
|
|
239
314
|
);
|
|
240
315
|
if (warrning) {
|
|
241
|
-
|
|
242
|
-
|
|
316
|
+
Logger({
|
|
317
|
+
level: "WARN",
|
|
318
|
+
message: "Parameter Validation warrnings for getProductQRCodeBySlug",
|
|
319
|
+
});
|
|
320
|
+
Logger({ level: "WARN", message: warrning });
|
|
243
321
|
}
|
|
244
322
|
|
|
245
323
|
const query_params = {};
|
|
246
324
|
|
|
247
325
|
const xHeaders = {};
|
|
248
326
|
|
|
249
|
-
|
|
327
|
+
const response = await APIClient.execute(
|
|
250
328
|
this._conf,
|
|
251
329
|
"post",
|
|
252
330
|
constructUrl({
|
|
253
|
-
url: this._urls["
|
|
254
|
-
params: {},
|
|
331
|
+
url: this._urls["getProductQRCodeBySlug"],
|
|
332
|
+
params: { slug },
|
|
255
333
|
}),
|
|
256
334
|
query_params,
|
|
257
|
-
|
|
335
|
+
undefined,
|
|
258
336
|
xHeaders
|
|
259
337
|
);
|
|
338
|
+
|
|
339
|
+
const { error: res_error } = ShareModel.QRCodeResp().validate(response, {
|
|
340
|
+
abortEarly: false,
|
|
341
|
+
allowUnknown: false,
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
if (res_error) {
|
|
345
|
+
Logger({
|
|
346
|
+
level: "WARN",
|
|
347
|
+
message: "Response Validation Warnnings for getProductQRCodeBySlug",
|
|
348
|
+
});
|
|
349
|
+
Logger({ level: "WARN", message: res_error });
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
return response;
|
|
260
353
|
}
|
|
261
354
|
|
|
262
355
|
/**
|
|
@@ -267,7 +360,7 @@ class Share {
|
|
|
267
360
|
* @summary: Get short link by hash
|
|
268
361
|
* @description: Use this API to get a short link by using a hash value.
|
|
269
362
|
*/
|
|
270
|
-
getShortLinkByHash({ hash } = {}) {
|
|
363
|
+
async getShortLinkByHash({ hash } = {}) {
|
|
271
364
|
const { error } = ShareValidator.getShortLinkByHash().validate(
|
|
272
365
|
{ hash },
|
|
273
366
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -282,15 +375,18 @@ class Share {
|
|
|
282
375
|
{ abortEarly: false, allowUnknown: false }
|
|
283
376
|
);
|
|
284
377
|
if (warrning) {
|
|
285
|
-
|
|
286
|
-
|
|
378
|
+
Logger({
|
|
379
|
+
level: "WARN",
|
|
380
|
+
message: "Parameter Validation warrnings for getShortLinkByHash",
|
|
381
|
+
});
|
|
382
|
+
Logger({ level: "WARN", message: warrning });
|
|
287
383
|
}
|
|
288
384
|
|
|
289
385
|
const query_params = {};
|
|
290
386
|
|
|
291
387
|
const xHeaders = {};
|
|
292
388
|
|
|
293
|
-
|
|
389
|
+
const response = await APIClient.execute(
|
|
294
390
|
this._conf,
|
|
295
391
|
"get",
|
|
296
392
|
constructUrl({
|
|
@@ -301,19 +397,33 @@ class Share {
|
|
|
301
397
|
undefined,
|
|
302
398
|
xHeaders
|
|
303
399
|
);
|
|
400
|
+
|
|
401
|
+
const { error: res_error } = ShareModel.ShortLinkRes().validate(response, {
|
|
402
|
+
abortEarly: false,
|
|
403
|
+
allowUnknown: false,
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
if (res_error) {
|
|
407
|
+
Logger({
|
|
408
|
+
level: "WARN",
|
|
409
|
+
message: "Response Validation Warnnings for getShortLinkByHash",
|
|
410
|
+
});
|
|
411
|
+
Logger({ level: "WARN", message: res_error });
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
return response;
|
|
304
415
|
}
|
|
305
416
|
|
|
306
417
|
/**
|
|
307
418
|
* @param {Object} arg - Arg object.
|
|
308
|
-
* @param {string} arg.
|
|
309
|
-
*
|
|
310
|
-
* @
|
|
311
|
-
* @
|
|
312
|
-
* @description: Use this API to retrieve the original link from a short-link by using a hash value.
|
|
419
|
+
* @param {string} arg.url - A link or a web address
|
|
420
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
421
|
+
* @summary: Create QR Code of a URL
|
|
422
|
+
* @description: Use this API to create a QR code of a URL for sharing it with users who want to visit the link.
|
|
313
423
|
*/
|
|
314
|
-
|
|
315
|
-
const { error } = ShareValidator.
|
|
316
|
-
{
|
|
424
|
+
async getUrlQRCode({ url } = {}) {
|
|
425
|
+
const { error } = ShareValidator.getUrlQRCode().validate(
|
|
426
|
+
{ url },
|
|
317
427
|
{ abortEarly: false, allowUnknown: true }
|
|
318
428
|
);
|
|
319
429
|
if (error) {
|
|
@@ -321,34 +431,49 @@ class Share {
|
|
|
321
431
|
}
|
|
322
432
|
|
|
323
433
|
// Showing warrnings if extra unknown parameters are found
|
|
324
|
-
const {
|
|
325
|
-
|
|
326
|
-
} = ShareValidator.getOriginalShortLinkByHash().validate(
|
|
327
|
-
{ hash },
|
|
434
|
+
const { error: warrning } = ShareValidator.getUrlQRCode().validate(
|
|
435
|
+
{ url },
|
|
328
436
|
{ abortEarly: false, allowUnknown: false }
|
|
329
437
|
);
|
|
330
438
|
if (warrning) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
439
|
+
Logger({
|
|
440
|
+
level: "WARN",
|
|
441
|
+
message: "Parameter Validation warrnings for getUrlQRCode",
|
|
442
|
+
});
|
|
443
|
+
Logger({ level: "WARN", message: warrning });
|
|
335
444
|
}
|
|
336
445
|
|
|
337
446
|
const query_params = {};
|
|
447
|
+
query_params["url"] = url;
|
|
338
448
|
|
|
339
449
|
const xHeaders = {};
|
|
340
450
|
|
|
341
|
-
|
|
451
|
+
const response = await APIClient.execute(
|
|
342
452
|
this._conf,
|
|
343
|
-
"
|
|
453
|
+
"post",
|
|
344
454
|
constructUrl({
|
|
345
|
-
url: this._urls["
|
|
346
|
-
params: {
|
|
455
|
+
url: this._urls["getUrlQRCode"],
|
|
456
|
+
params: {},
|
|
347
457
|
}),
|
|
348
458
|
query_params,
|
|
349
459
|
undefined,
|
|
350
460
|
xHeaders
|
|
351
461
|
);
|
|
462
|
+
|
|
463
|
+
const { error: res_error } = ShareModel.QRCodeResp().validate(response, {
|
|
464
|
+
abortEarly: false,
|
|
465
|
+
allowUnknown: false,
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
if (res_error) {
|
|
469
|
+
Logger({
|
|
470
|
+
level: "WARN",
|
|
471
|
+
message: "Response Validation Warnnings for getUrlQRCode",
|
|
472
|
+
});
|
|
473
|
+
Logger({ level: "WARN", message: res_error });
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return response;
|
|
352
477
|
}
|
|
353
478
|
}
|
|
354
479
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export = ShareModel;
|
|
2
2
|
declare class ShareModel {
|
|
3
|
+
static Attribution(): any;
|
|
4
|
+
static CampaignShortLink(): any;
|
|
5
|
+
static ErrorRes(): any;
|
|
6
|
+
static Page(): any;
|
|
3
7
|
static QRCodeResp(): any;
|
|
4
8
|
static RedirectDevice(): any;
|
|
5
|
-
static WebRedirect(): any;
|
|
6
9
|
static Redirects(): any;
|
|
7
|
-
static
|
|
8
|
-
static Attribution(): any;
|
|
9
|
-
static SocialMediaTags(): any;
|
|
10
|
+
static ShortLinkList(): any;
|
|
10
11
|
static ShortLinkReq(): any;
|
|
11
|
-
static UrlInfo(): any;
|
|
12
12
|
static ShortLinkRes(): any;
|
|
13
|
-
static
|
|
14
|
-
static
|
|
15
|
-
static
|
|
13
|
+
static SocialMediaTags(): any;
|
|
14
|
+
static UrlInfo(): any;
|
|
15
|
+
static WebRedirect(): any;
|
|
16
16
|
}
|