@gofynd/fdk-client-javascript 1.0.2 → 1.0.4
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 +31 -2
- package/index.d.ts +4 -4
- package/index.js +9 -10
- package/package.json +14 -14
- package/sdk/APIClient.d.ts +11 -0
- package/sdk/APIClient.js +35 -0
- package/sdk/Client.d.ts +6 -0
- package/sdk/Client.js +17 -0
- package/sdk/Config.d.ts +9 -0
- package/sdk/Config.js +17 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +595 -594
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +490 -885
- 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 +1079 -1078
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
- 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 +43 -42
- 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 +32 -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 +350 -349
- 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 +216 -215
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +468 -884
- 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 +65 -64
- 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 +109 -108
- 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 +31 -22
- package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
- 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 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +247 -246
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +361 -656
- 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 +781 -780
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- 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 +646 -645
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
- 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 +122 -121
- 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 +94 -93
- 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 +38 -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 +619 -618
- 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 +18 -7
- package/sdk/constructUrl.d.ts +5 -0
- package/sdk/constructUrl.js +13 -0
- package/sdk/index.d.ts +3 -0
- package/sdk/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
- 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 +7 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
- 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 +26 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +40 -51
- 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 +7 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
- 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 +39 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +485 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
- 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 +30 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
- 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 +12 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
- 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 +29 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
- 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 +25 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7972 -7888
- package/sdk/platform/PlatformClient.js +8678 -10107
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
- 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 +15 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -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 +115 -113
- 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 +2 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -7339
- package/documentation/application/CATALOG.md +0 -9597
- package/documentation/application/COMMON.md +0 -452
- package/documentation/application/COMMUNICATION.md +0 -467
- package/documentation/application/CONFIGURATION.md +0 -2906
- package/documentation/application/CONTENT.md +0 -3351
- package/documentation/application/FILESTORAGE.md +0 -578
- package/documentation/application/LEAD.md +0 -1895
- package/documentation/application/LOGISTIC.md +0 -765
- package/documentation/application/ORDER.md +0 -3432
- package/documentation/application/PAYMENT.md +0 -5221
- package/documentation/application/POSCART.md +0 -7938
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -708
- package/documentation/application/SHARE.md +0 -733
- package/documentation/application/THEME.md +0 -5800
- package/documentation/application/USER.md +0 -4335
- package/documentation/platform/ANALYTICS.md +0 -1154
- package/documentation/platform/AUDITTRAIL.md +0 -576
- package/documentation/platform/BILLING.md +0 -2400
- package/documentation/platform/CART.md +0 -5559
- package/documentation/platform/CATALOG.md +0 -23261
- package/documentation/platform/COMMON.md +0 -452
- package/documentation/platform/COMMUNICATION.md +0 -5718
- package/documentation/platform/COMPANYPROFILE.md +0 -2031
- package/documentation/platform/CONFIGURATION.md +0 -7339
- package/documentation/platform/CONTENT.md +0 -9098
- package/documentation/platform/DISCOUNT.md +0 -863
- package/documentation/platform/FILESTORAGE.md +0 -1081
- package/documentation/platform/INVENTORY.md +0 -1779
- package/documentation/platform/LEAD.md +0 -4740
- package/documentation/platform/ORDER.md +0 -8486
- package/documentation/platform/PARTNER.md +0 -220
- package/documentation/platform/PAYMENT.md +0 -3448
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -1083
- package/documentation/platform/SHARE.md +0 -606
- package/documentation/platform/THEME.md +0 -35729
- package/documentation/platform/USER.md +0 -2319
- package/documentation/platform/WEBHOOK.md +0 -591
- package/documentation/public/CONFIGURATION.md +0 -452
- package/documentation/public/INVENTORY.md +0 -690
- package/documentation/public/WEBHOOK.md +0 -352
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -47
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,177 +1,117 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class ShareModel {
|
|
4
|
-
static
|
|
4
|
+
static Attribution() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
svg: Joi.string().allow(""),
|
|
6
|
+
campaign_cookie_expiry: Joi.string().allow(""),
|
|
9
7
|
});
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
static RedirectDevice() {
|
|
9
|
+
static CampaignShortLink() {
|
|
13
10
|
return Joi.object({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type: Joi.string().allow(""),
|
|
11
|
+
medium: Joi.string().allow(""),
|
|
12
|
+
source: Joi.string().allow(""),
|
|
17
13
|
});
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
static WebRedirect() {
|
|
15
|
+
static ErrorRes() {
|
|
21
16
|
return Joi.object({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type: Joi.string().allow(""),
|
|
17
|
+
message: Joi.string().allow(""),
|
|
25
18
|
});
|
|
26
19
|
}
|
|
27
|
-
|
|
28
|
-
static Redirects() {
|
|
20
|
+
static Page() {
|
|
29
21
|
return Joi.object({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
current: Joi.number(),
|
|
23
|
+
has_next: Joi.boolean(),
|
|
24
|
+
has_previous: Joi.boolean(),
|
|
25
|
+
item_total: Joi.number(),
|
|
26
|
+
next_id: Joi.string().allow(""),
|
|
27
|
+
size: Joi.number(),
|
|
28
|
+
type: Joi.string().allow("").required(),
|
|
37
29
|
});
|
|
38
30
|
}
|
|
39
|
-
|
|
40
|
-
static CampaignShortLink() {
|
|
31
|
+
static QRCodeResp() {
|
|
41
32
|
return Joi.object({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
medium: Joi.string().allow(""),
|
|
33
|
+
link: Joi.string().allow(""),
|
|
34
|
+
svg: Joi.string().allow(""),
|
|
45
35
|
});
|
|
46
36
|
}
|
|
47
|
-
|
|
48
|
-
static Attribution() {
|
|
37
|
+
static RedirectDevice() {
|
|
49
38
|
return Joi.object({
|
|
50
|
-
|
|
39
|
+
link: Joi.string().allow(""),
|
|
40
|
+
type: Joi.string().allow(""),
|
|
51
41
|
});
|
|
52
42
|
}
|
|
53
|
-
|
|
54
|
-
static SocialMediaTags() {
|
|
43
|
+
static Redirects() {
|
|
55
44
|
return Joi.object({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
android: ShareModel.RedirectDevice(),
|
|
46
|
+
force_web: Joi.boolean(),
|
|
47
|
+
ios: ShareModel.RedirectDevice(),
|
|
48
|
+
web: ShareModel.WebRedirect(),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static ShortLinkList() {
|
|
52
|
+
return Joi.object({
|
|
53
|
+
items: Joi.array().items(ShareModel.ShortLinkRes()),
|
|
54
|
+
page: ShareModel.Page(),
|
|
61
55
|
});
|
|
62
56
|
}
|
|
63
|
-
|
|
64
57
|
static ShortLinkReq() {
|
|
65
58
|
return Joi.object({
|
|
66
|
-
title: Joi.string().allow("").required(),
|
|
67
|
-
|
|
68
|
-
url: Joi.string().allow("").required(),
|
|
69
|
-
|
|
70
|
-
hash: Joi.string().allow(""),
|
|
71
|
-
|
|
72
59
|
active: Joi.boolean(),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
60
|
+
attribution: ShareModel.Attribution(),
|
|
61
|
+
campaign: ShareModel.CampaignShortLink(),
|
|
62
|
+
count: Joi.number(),
|
|
76
63
|
enable_tracking: Joi.boolean(),
|
|
77
|
-
|
|
64
|
+
expire_at: Joi.string().allow(""),
|
|
65
|
+
hash: Joi.string().allow(""),
|
|
78
66
|
personalized: Joi.boolean(),
|
|
79
|
-
|
|
80
|
-
campaign: ShareModel.CampaignShortLink(),
|
|
81
|
-
|
|
82
67
|
redirects: ShareModel.Redirects(),
|
|
83
|
-
|
|
84
|
-
attribution: ShareModel.Attribution(),
|
|
85
|
-
|
|
86
68
|
social_media_tags: ShareModel.SocialMediaTags(),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
static UrlInfo() {
|
|
93
|
-
return Joi.object({
|
|
94
|
-
original: Joi.string().allow(""),
|
|
95
|
-
|
|
96
|
-
short: Joi.string().allow(""),
|
|
97
|
-
|
|
98
|
-
hash: Joi.string().allow(""),
|
|
69
|
+
title: Joi.string().allow("").required(),
|
|
70
|
+
url: Joi.string().allow("").required(),
|
|
99
71
|
});
|
|
100
72
|
}
|
|
101
|
-
|
|
102
73
|
static ShortLinkRes() {
|
|
103
74
|
return Joi.object({
|
|
104
|
-
title: Joi.string().allow(""),
|
|
105
|
-
|
|
106
|
-
url: ShareModel.UrlInfo(),
|
|
107
|
-
|
|
108
|
-
created_by: Joi.string().allow(""),
|
|
109
|
-
|
|
110
|
-
app_redirect: Joi.boolean(),
|
|
111
|
-
|
|
112
|
-
fallback: Joi.string().allow(""),
|
|
113
|
-
|
|
114
|
-
active: Joi.boolean(),
|
|
115
|
-
|
|
116
75
|
_id: Joi.string().allow(""),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
expire_at: Joi.string().allow(""),
|
|
121
|
-
|
|
76
|
+
active: Joi.boolean(),
|
|
77
|
+
app_redirect: Joi.boolean(),
|
|
122
78
|
application: Joi.string().allow(""),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
79
|
+
attribution: ShareModel.Attribution(),
|
|
80
|
+
campaign: ShareModel.CampaignShortLink(),
|
|
81
|
+
count: Joi.number(),
|
|
126
82
|
created_at: Joi.string().allow(""),
|
|
127
|
-
|
|
83
|
+
created_by: Joi.string().allow(""),
|
|
84
|
+
enable_tracking: Joi.boolean(),
|
|
85
|
+
expire_at: Joi.string().allow(""),
|
|
86
|
+
fallback: Joi.string().allow(""),
|
|
128
87
|
meta: Joi.any(),
|
|
129
|
-
|
|
130
|
-
updated_at: Joi.string().allow(""),
|
|
131
|
-
|
|
132
88
|
personalized: Joi.boolean(),
|
|
133
|
-
|
|
134
|
-
campaign: ShareModel.CampaignShortLink(),
|
|
135
|
-
|
|
136
89
|
redirects: ShareModel.Redirects(),
|
|
137
|
-
|
|
138
|
-
attribution: ShareModel.Attribution(),
|
|
139
|
-
|
|
140
90
|
social_media_tags: ShareModel.SocialMediaTags(),
|
|
141
|
-
|
|
142
|
-
|
|
91
|
+
title: Joi.string().allow(""),
|
|
92
|
+
updated_at: Joi.string().allow(""),
|
|
93
|
+
url: ShareModel.UrlInfo(),
|
|
94
|
+
user_id: Joi.string().allow(""),
|
|
143
95
|
});
|
|
144
96
|
}
|
|
145
|
-
|
|
146
|
-
static Page() {
|
|
97
|
+
static SocialMediaTags() {
|
|
147
98
|
return Joi.object({
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
has_previous: Joi.boolean(),
|
|
153
|
-
|
|
154
|
-
has_next: Joi.boolean(),
|
|
155
|
-
|
|
156
|
-
current: Joi.number(),
|
|
157
|
-
|
|
158
|
-
type: Joi.string().allow("").required(),
|
|
159
|
-
|
|
160
|
-
size: Joi.number(),
|
|
99
|
+
description: Joi.string().allow(""),
|
|
100
|
+
image: Joi.string().allow(""),
|
|
101
|
+
title: Joi.string().allow(""),
|
|
161
102
|
});
|
|
162
103
|
}
|
|
163
|
-
|
|
164
|
-
static ShortLinkList() {
|
|
104
|
+
static UrlInfo() {
|
|
165
105
|
return Joi.object({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
106
|
+
hash: Joi.string().allow(""),
|
|
107
|
+
original: Joi.string().allow(""),
|
|
108
|
+
short: Joi.string().allow(""),
|
|
169
109
|
});
|
|
170
110
|
}
|
|
171
|
-
|
|
172
|
-
static ErrorRes() {
|
|
111
|
+
static WebRedirect() {
|
|
173
112
|
return Joi.object({
|
|
174
|
-
|
|
113
|
+
link: Joi.string().allow(""),
|
|
114
|
+
type: Joi.string().allow(""),
|
|
175
115
|
});
|
|
176
116
|
}
|
|
177
117
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export = ShareValidator;
|
|
2
2
|
declare class ShareValidator {
|
|
3
|
+
static createShortLink(): any;
|
|
3
4
|
static getApplicationQRCode(): any;
|
|
4
|
-
static getProductQRCodeBySlug(): any;
|
|
5
5
|
static getCollectionQRCodeBySlug(): any;
|
|
6
|
-
static getUrlQRCode(): any;
|
|
7
|
-
static createShortLink(): any;
|
|
8
|
-
static getShortLinkByHash(): any;
|
|
9
6
|
static getOriginalShortLinkByHash(): any;
|
|
7
|
+
static getProductQRCodeBySlug(): any;
|
|
8
|
+
static getShortLinkByHash(): any;
|
|
9
|
+
static getUrlQRCode(): any;
|
|
10
10
|
}
|
|
@@ -2,31 +2,31 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ShareModel = require("./ShareApplicationModel");
|
|
4
4
|
class ShareValidator {
|
|
5
|
-
static
|
|
6
|
-
return Joi.object({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
static getProductQRCodeBySlug() {
|
|
5
|
+
static createShortLink() {
|
|
10
6
|
return Joi.object({
|
|
11
|
-
|
|
7
|
+
body: ShareModel.ShortLinkReq().required(),
|
|
12
8
|
}).required();
|
|
13
9
|
}
|
|
14
10
|
|
|
11
|
+
static getApplicationQRCode() {
|
|
12
|
+
return Joi.object({});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
15
|
static getCollectionQRCodeBySlug() {
|
|
16
16
|
return Joi.object({
|
|
17
17
|
slug: Joi.string().allow("").required(),
|
|
18
18
|
}).required();
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
static
|
|
21
|
+
static getOriginalShortLinkByHash() {
|
|
22
22
|
return Joi.object({
|
|
23
|
-
|
|
23
|
+
hash: Joi.string().allow("").required(),
|
|
24
24
|
}).required();
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
static
|
|
27
|
+
static getProductQRCodeBySlug() {
|
|
28
28
|
return Joi.object({
|
|
29
|
-
|
|
29
|
+
slug: Joi.string().allow("").required(),
|
|
30
30
|
}).required();
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,9 +36,9 @@ class ShareValidator {
|
|
|
36
36
|
}).required();
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
static
|
|
39
|
+
static getUrlQRCode() {
|
|
40
40
|
return Joi.object({
|
|
41
|
-
|
|
41
|
+
url: Joi.string().allow("").required(),
|
|
42
42
|
}).required();
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -4,8 +4,8 @@ declare class Theme {
|
|
|
4
4
|
_conf: any;
|
|
5
5
|
_relativeUrls: {
|
|
6
6
|
getAllPages: string;
|
|
7
|
-
getPage: string;
|
|
8
7
|
getAppliedTheme: string;
|
|
8
|
+
getPage: string;
|
|
9
9
|
getThemeForPreview: string;
|
|
10
10
|
};
|
|
11
11
|
_urls: {};
|
|
@@ -20,6 +20,13 @@ declare class Theme {
|
|
|
20
20
|
getAllPages({ themeId }?: {
|
|
21
21
|
themeId: string;
|
|
22
22
|
}): Promise<AllAvailablePageSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* @param {Object} arg - Arg object.
|
|
25
|
+
* @returns {Promise<ThemesSchema>} - Success response
|
|
26
|
+
* @summary: Get the theme currently applied to an application
|
|
27
|
+
* @description: An application has multiple themes, but only one theme can be applied at a time. Use this API to retrieve the theme currently applied to the application.
|
|
28
|
+
*/
|
|
29
|
+
getAppliedTheme({}?: any): Promise<ThemesSchema>;
|
|
23
30
|
/**
|
|
24
31
|
* @param {Object} arg - Arg object.
|
|
25
32
|
* @param {string} arg.themeId - ID of the theme to be retrieved
|
|
@@ -32,13 +39,6 @@ declare class Theme {
|
|
|
32
39
|
themeId: string;
|
|
33
40
|
pageValue: string;
|
|
34
41
|
}): Promise<AvailablePageSchema>;
|
|
35
|
-
/**
|
|
36
|
-
* @param {Object} arg - Arg object.
|
|
37
|
-
* @returns {Promise<ThemesSchema>} - Success response
|
|
38
|
-
* @summary: Get the theme currently applied to an application
|
|
39
|
-
* @description: An application has multiple themes, but only one theme can be applied at a time. Use this API to retrieve the theme currently applied to the application.
|
|
40
|
-
*/
|
|
41
|
-
getAppliedTheme({}?: any): Promise<ThemesSchema>;
|
|
42
42
|
/**
|
|
43
43
|
* @param {Object} arg - Arg object.
|
|
44
44
|
* @param {string} arg.themeId - ID of the theme to be retrieved
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
2
3
|
const constructUrl = require("../constructUrl");
|
|
3
4
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
5
|
const ThemeValidator = require("./ThemeApplicationValidator");
|
|
6
6
|
const ThemeModel = require("./ThemeApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
|
+
const Joi = require("joi");
|
|
8
9
|
|
|
9
10
|
class Theme {
|
|
10
11
|
constructor(_conf) {
|
|
11
12
|
this._conf = _conf;
|
|
12
13
|
this._relativeUrls = {
|
|
13
14
|
getAllPages: "/service/application/theme/v1.0/{theme_id}/page",
|
|
14
|
-
getPage: "/service/application/theme/v1.0/{theme_id}/{page_value}",
|
|
15
15
|
getAppliedTheme: "/service/application/theme/v1.0/applied-theme",
|
|
16
|
+
getPage: "/service/application/theme/v1.0/{theme_id}/{page_value}",
|
|
16
17
|
getThemeForPreview: "/service/application/theme/v1.0/{theme_id}/preview",
|
|
17
18
|
};
|
|
18
19
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
@@ -64,7 +65,7 @@ class Theme {
|
|
|
64
65
|
|
|
65
66
|
const xHeaders = {};
|
|
66
67
|
|
|
67
|
-
const response = await
|
|
68
|
+
const response = await ApplicationAPIClient.execute(
|
|
68
69
|
this._conf,
|
|
69
70
|
"get",
|
|
70
71
|
constructUrl({
|
|
@@ -96,15 +97,13 @@ class Theme {
|
|
|
96
97
|
|
|
97
98
|
/**
|
|
98
99
|
* @param {Object} arg - Arg object.
|
|
99
|
-
* @
|
|
100
|
-
* @
|
|
101
|
-
* @
|
|
102
|
-
* @summary: Get page of a theme
|
|
103
|
-
* @description: Use this API to retrieve a page of a theme.
|
|
100
|
+
* @returns {Promise<ThemesSchema>} - Success response
|
|
101
|
+
* @summary: Get the theme currently applied to an application
|
|
102
|
+
* @description: An application has multiple themes, but only one theme can be applied at a time. Use this API to retrieve the theme currently applied to the application.
|
|
104
103
|
*/
|
|
105
|
-
async
|
|
106
|
-
const { error } = ThemeValidator.
|
|
107
|
-
{
|
|
104
|
+
async getAppliedTheme({} = {}) {
|
|
105
|
+
const { error } = ThemeValidator.getAppliedTheme().validate(
|
|
106
|
+
{},
|
|
108
107
|
{ abortEarly: false, allowUnknown: true }
|
|
109
108
|
);
|
|
110
109
|
if (error) {
|
|
@@ -112,14 +111,14 @@ class Theme {
|
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
// Showing warrnings if extra unknown parameters are found
|
|
115
|
-
const { error: warrning } = ThemeValidator.
|
|
116
|
-
{
|
|
114
|
+
const { error: warrning } = ThemeValidator.getAppliedTheme().validate(
|
|
115
|
+
{},
|
|
117
116
|
{ abortEarly: false, allowUnknown: false }
|
|
118
117
|
);
|
|
119
118
|
if (warrning) {
|
|
120
119
|
Logger({
|
|
121
120
|
level: "WARN",
|
|
122
|
-
message: "Parameter Validation warrnings for
|
|
121
|
+
message: "Parameter Validation warrnings for getAppliedTheme",
|
|
123
122
|
});
|
|
124
123
|
Logger({ level: "WARN", message: warrning });
|
|
125
124
|
}
|
|
@@ -128,21 +127,19 @@ class Theme {
|
|
|
128
127
|
|
|
129
128
|
const xHeaders = {};
|
|
130
129
|
|
|
131
|
-
const response = await
|
|
130
|
+
const response = await ApplicationAPIClient.execute(
|
|
132
131
|
this._conf,
|
|
133
132
|
"get",
|
|
134
133
|
constructUrl({
|
|
135
|
-
url: this._urls["
|
|
136
|
-
params: {
|
|
134
|
+
url: this._urls["getAppliedTheme"],
|
|
135
|
+
params: {},
|
|
137
136
|
}),
|
|
138
137
|
query_params,
|
|
139
138
|
undefined,
|
|
140
139
|
xHeaders
|
|
141
140
|
);
|
|
142
141
|
|
|
143
|
-
const {
|
|
144
|
-
error: res_error,
|
|
145
|
-
} = ThemeModel.AvailablePageSchema().validate(response, {
|
|
142
|
+
const { error: res_error } = ThemeModel.ThemesSchema().validate(response, {
|
|
146
143
|
abortEarly: false,
|
|
147
144
|
allowUnknown: false,
|
|
148
145
|
});
|
|
@@ -150,7 +147,7 @@ class Theme {
|
|
|
150
147
|
if (res_error) {
|
|
151
148
|
Logger({
|
|
152
149
|
level: "WARN",
|
|
153
|
-
message: "Response Validation Warnnings for
|
|
150
|
+
message: "Response Validation Warnnings for getAppliedTheme",
|
|
154
151
|
});
|
|
155
152
|
Logger({ level: "WARN", message: res_error });
|
|
156
153
|
}
|
|
@@ -160,13 +157,15 @@ class Theme {
|
|
|
160
157
|
|
|
161
158
|
/**
|
|
162
159
|
* @param {Object} arg - Arg object.
|
|
163
|
-
* @
|
|
164
|
-
* @
|
|
165
|
-
* @
|
|
160
|
+
* @param {string} arg.themeId - ID of the theme to be retrieved
|
|
161
|
+
* @param {string} arg.pageValue - Value of the page to be retrieved
|
|
162
|
+
* @returns {Promise<AvailablePageSchema>} - Success response
|
|
163
|
+
* @summary: Get page of a theme
|
|
164
|
+
* @description: Use this API to retrieve a page of a theme.
|
|
166
165
|
*/
|
|
167
|
-
async
|
|
168
|
-
const { error } = ThemeValidator.
|
|
169
|
-
{},
|
|
166
|
+
async getPage({ themeId, pageValue } = {}) {
|
|
167
|
+
const { error } = ThemeValidator.getPage().validate(
|
|
168
|
+
{ themeId, pageValue },
|
|
170
169
|
{ abortEarly: false, allowUnknown: true }
|
|
171
170
|
);
|
|
172
171
|
if (error) {
|
|
@@ -174,14 +173,14 @@ class Theme {
|
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
// Showing warrnings if extra unknown parameters are found
|
|
177
|
-
const { error: warrning } = ThemeValidator.
|
|
178
|
-
{},
|
|
176
|
+
const { error: warrning } = ThemeValidator.getPage().validate(
|
|
177
|
+
{ themeId, pageValue },
|
|
179
178
|
{ abortEarly: false, allowUnknown: false }
|
|
180
179
|
);
|
|
181
180
|
if (warrning) {
|
|
182
181
|
Logger({
|
|
183
182
|
level: "WARN",
|
|
184
|
-
message: "Parameter Validation warrnings for
|
|
183
|
+
message: "Parameter Validation warrnings for getPage",
|
|
185
184
|
});
|
|
186
185
|
Logger({ level: "WARN", message: warrning });
|
|
187
186
|
}
|
|
@@ -190,19 +189,21 @@ class Theme {
|
|
|
190
189
|
|
|
191
190
|
const xHeaders = {};
|
|
192
191
|
|
|
193
|
-
const response = await
|
|
192
|
+
const response = await ApplicationAPIClient.execute(
|
|
194
193
|
this._conf,
|
|
195
194
|
"get",
|
|
196
195
|
constructUrl({
|
|
197
|
-
url: this._urls["
|
|
198
|
-
params: {},
|
|
196
|
+
url: this._urls["getPage"],
|
|
197
|
+
params: { themeId, pageValue },
|
|
199
198
|
}),
|
|
200
199
|
query_params,
|
|
201
200
|
undefined,
|
|
202
201
|
xHeaders
|
|
203
202
|
);
|
|
204
203
|
|
|
205
|
-
const {
|
|
204
|
+
const {
|
|
205
|
+
error: res_error,
|
|
206
|
+
} = ThemeModel.AvailablePageSchema().validate(response, {
|
|
206
207
|
abortEarly: false,
|
|
207
208
|
allowUnknown: false,
|
|
208
209
|
});
|
|
@@ -210,7 +211,7 @@ class Theme {
|
|
|
210
211
|
if (res_error) {
|
|
211
212
|
Logger({
|
|
212
213
|
level: "WARN",
|
|
213
|
-
message: "Response Validation Warnnings for
|
|
214
|
+
message: "Response Validation Warnnings for getPage",
|
|
214
215
|
});
|
|
215
216
|
Logger({ level: "WARN", message: res_error });
|
|
216
217
|
}
|
|
@@ -251,7 +252,7 @@ class Theme {
|
|
|
251
252
|
|
|
252
253
|
const xHeaders = {};
|
|
253
254
|
|
|
254
|
-
const response = await
|
|
255
|
+
const response = await ApplicationAPIClient.execute(
|
|
255
256
|
this._conf,
|
|
256
257
|
"get",
|
|
257
258
|
constructUrl({
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
export = ThemeModel;
|
|
2
2
|
declare class ThemeModel {
|
|
3
|
+
static AddThemeRequestSchema(): any;
|
|
4
|
+
static AllAvailablePageSchema(): any;
|
|
5
|
+
static AssetsSchema(): any;
|
|
6
|
+
static AvailablePagePredicate(): any;
|
|
7
|
+
static AvailablePageRoutePredicate(): any;
|
|
3
8
|
static AvailablePageSchema(): any;
|
|
4
|
-
static AvailablePageSectionMetaAttributes(): any;
|
|
5
|
-
static AvailablePageSeo(): any;
|
|
6
9
|
static AvailablePageSchemaSections(): any;
|
|
7
10
|
static AvailablePageScreenPredicate(): any;
|
|
11
|
+
static AvailablePageSectionMetaAttributes(): any;
|
|
12
|
+
static AvailablePageSeo(): any;
|
|
8
13
|
static AvailablePageUserPredicate(): any;
|
|
9
|
-
static
|
|
10
|
-
static AvailablePagePredicate(): any;
|
|
11
|
-
static AllAvailablePageSchema(): any;
|
|
12
|
-
static PaginationSchema(): any;
|
|
13
|
-
static ThemesListingResponseSchema(): any;
|
|
14
|
-
static AddThemeRequestSchema(): any;
|
|
15
|
-
static UpgradableThemeSchema(): any;
|
|
16
|
-
static FontsSchema(): any;
|
|
14
|
+
static availableSectionSchema(): any;
|
|
17
15
|
static BlitzkriegApiErrorSchema(): any;
|
|
18
|
-
static BlitzkriegNotFoundSchema(): any;
|
|
19
16
|
static BlitzkriegInternalServerErrorSchema(): any;
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
static
|
|
23
|
-
static
|
|
24
|
-
static
|
|
25
|
-
static Images(): any;
|
|
26
|
-
static Src(): any;
|
|
27
|
-
static AssetsSchema(): any;
|
|
28
|
-
static UmdJs(): any;
|
|
17
|
+
static BlitzkriegNotFoundSchema(): any;
|
|
18
|
+
static Blocks(): any;
|
|
19
|
+
static BlocksProps(): any;
|
|
20
|
+
static Bold(): any;
|
|
21
|
+
static Colors(): any;
|
|
29
22
|
static CommonJs(): any;
|
|
30
|
-
static Css(): any;
|
|
31
|
-
static Sections(): any;
|
|
32
23
|
static Config(): any;
|
|
33
|
-
static Preset(): any;
|
|
34
|
-
static GlobalSchema(): any;
|
|
35
|
-
static ListSchemaItem(): any;
|
|
36
|
-
static Colors(): any;
|
|
37
|
-
static Custom(): any;
|
|
38
24
|
static ConfigPage(): any;
|
|
25
|
+
static Css(): any;
|
|
26
|
+
static Custom(): any;
|
|
39
27
|
static Font(): any;
|
|
40
|
-
static
|
|
41
|
-
static
|
|
42
|
-
static
|
|
43
|
-
static
|
|
28
|
+
static FontsSchema(): any;
|
|
29
|
+
static FontsSchemaItems(): any;
|
|
30
|
+
static FontsSchemaItemsFiles(): any;
|
|
31
|
+
static GlobalSchema(): any;
|
|
32
|
+
static GlobalSchemaProps(): any;
|
|
33
|
+
static Images(): any;
|
|
34
|
+
static Information(): any;
|
|
44
35
|
static Light(): any;
|
|
36
|
+
static ListSchemaItem(): any;
|
|
37
|
+
static Medium(): any;
|
|
38
|
+
static PaginationSchema(): any;
|
|
39
|
+
static Preset(): any;
|
|
45
40
|
static Regular(): any;
|
|
46
|
-
static
|
|
47
|
-
static
|
|
48
|
-
static
|
|
41
|
+
static Sections(): any;
|
|
42
|
+
static SemiBold(): any;
|
|
43
|
+
static Src(): any;
|
|
44
|
+
static ThemesListingResponseSchema(): any;
|
|
45
|
+
static ThemesSchema(): any;
|
|
46
|
+
static UmdJs(): any;
|
|
47
|
+
static UpgradableThemeSchema(): any;
|
|
48
|
+
static Variants(): any;
|
|
49
49
|
}
|