@gofynd/fdk-client-javascript 1.0.2 → 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 +557 -1279
- 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 +14453 -17192
- 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 +3438 -4172
- 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 +3400 -5361
- 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/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- 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 +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- 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 +38 -38
- 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 +26 -26
- 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 +330 -330
- 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 +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -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 +59 -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 +100 -100
- 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 +110 -43
- 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 +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -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 +739 -739
- 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 +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- 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 +112 -112
- 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 +84 -84
- 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 +31 -31
- 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 +581 -581
- 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 +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- 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 +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- 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 +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- 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 +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- 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 +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- 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 +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- 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 +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- 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 +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- 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 +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -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/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- 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 +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- 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 +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- 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 +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- 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 +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- 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 +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- 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 +38 -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 +113 -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/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
export = ContentValidator;
|
|
2
2
|
declare class ContentValidator {
|
|
3
|
-
static
|
|
3
|
+
static addDataLoader(): any;
|
|
4
|
+
static addFaq(): any;
|
|
5
|
+
static addInjectableTag(): any;
|
|
6
|
+
static addPathRedirectionRules(): any;
|
|
4
7
|
static createAnnouncement(): any;
|
|
5
|
-
static getAnnouncementById(): any;
|
|
6
|
-
static updateAnnouncement(): any;
|
|
7
|
-
static updateAnnouncementSchedule(): any;
|
|
8
|
-
static deleteAnnouncement(): any;
|
|
9
8
|
static createBlog(): any;
|
|
10
|
-
static
|
|
11
|
-
static
|
|
9
|
+
static createFaqCategory(): any;
|
|
10
|
+
static createLandingPage(): any;
|
|
11
|
+
static createNavigation(): any;
|
|
12
|
+
static createPage(): any;
|
|
13
|
+
static createPagePreview(): any;
|
|
14
|
+
static createSlideshow(): any;
|
|
15
|
+
static deleteAllInjectableTags(): any;
|
|
16
|
+
static deleteAnnouncement(): any;
|
|
12
17
|
static deleteBlog(): any;
|
|
13
|
-
static getComponentById(): any;
|
|
14
|
-
static addDataLoader(): any;
|
|
15
|
-
static getDataLoaders(): any;
|
|
16
18
|
static deleteDataLoader(): any;
|
|
19
|
+
static deleteFaq(): any;
|
|
20
|
+
static deleteFaqCategory(): any;
|
|
21
|
+
static deleteLandingPage(): any;
|
|
22
|
+
static deleteNavigation(): any;
|
|
23
|
+
static deletePage(): any;
|
|
24
|
+
static deletePathRedirectionRules(): any;
|
|
25
|
+
static deleteSlideshow(): any;
|
|
17
26
|
static editDataLoader(): any;
|
|
18
|
-
static
|
|
19
|
-
static
|
|
27
|
+
static editInjectableTag(): any;
|
|
28
|
+
static generateSEOTitle(): any;
|
|
29
|
+
static getAnnouncementById(): any;
|
|
30
|
+
static getAnnouncementsList(): any;
|
|
31
|
+
static getBlogs(): any;
|
|
32
|
+
static getComponentById(): any;
|
|
33
|
+
static getDataLoaders(): any;
|
|
34
|
+
static getDefaultNavigations(): any;
|
|
35
|
+
static getFaqByIdOrSlug(): any;
|
|
20
36
|
static getFaqCategories(): any;
|
|
21
37
|
static getFaqCategoryBySlugOrId(): any;
|
|
22
|
-
static createFaqCategory(): any;
|
|
23
|
-
static updateFaqCategory(): any;
|
|
24
|
-
static deleteFaqCategory(): any;
|
|
25
38
|
static getFaqsByCategoryIdOrSlug(): any;
|
|
26
|
-
static
|
|
27
|
-
static updateFaq(): any;
|
|
28
|
-
static deleteFaq(): any;
|
|
29
|
-
static getFaqByIdOrSlug(): any;
|
|
30
|
-
static generateSEOTitle(): any;
|
|
39
|
+
static getInjectableTags(): any;
|
|
31
40
|
static getLandingPages(): any;
|
|
32
|
-
static createLandingPage(): any;
|
|
33
|
-
static updateLandingPage(): any;
|
|
34
|
-
static deleteLandingPage(): any;
|
|
35
41
|
static getLegalInformation(): any;
|
|
36
|
-
static updateLegalInformation(): any;
|
|
37
|
-
static getNavigations(): any;
|
|
38
|
-
static createNavigation(): any;
|
|
39
|
-
static getDefaultNavigations(): any;
|
|
40
42
|
static getNavigationBySlug(): any;
|
|
41
|
-
static
|
|
42
|
-
static
|
|
43
|
+
static getNavigations(): any;
|
|
44
|
+
static getPageBySlug(): any;
|
|
43
45
|
static getPageMeta(): any;
|
|
44
46
|
static getPageSpec(): any;
|
|
45
|
-
static
|
|
46
|
-
static updatePagePreview(): any;
|
|
47
|
-
static deletePage(): any;
|
|
48
|
-
static addPathRedirectionRules(): any;
|
|
49
|
-
static getPathRedirectionRules(): any;
|
|
47
|
+
static getPages(): any;
|
|
50
48
|
static getPathRedirectionRule(): any;
|
|
51
|
-
static
|
|
52
|
-
static deletePathRedirectionRules(): any;
|
|
49
|
+
static getPathRedirectionRules(): any;
|
|
53
50
|
static getSEOConfiguration(): any;
|
|
54
|
-
static updateSEOConfiguration(): any;
|
|
55
|
-
static getSlideshows(): any;
|
|
56
|
-
static createSlideshow(): any;
|
|
57
51
|
static getSlideshowBySlug(): any;
|
|
58
|
-
static
|
|
59
|
-
static deleteSlideshow(): any;
|
|
52
|
+
static getSlideshows(): any;
|
|
60
53
|
static getSupportInformation(): any;
|
|
61
|
-
static updateSupportInformation(): any;
|
|
62
|
-
static updateInjectableTag(): any;
|
|
63
|
-
static deleteAllInjectableTags(): any;
|
|
64
|
-
static getInjectableTags(): any;
|
|
65
|
-
static addInjectableTag(): any;
|
|
66
54
|
static removeInjectableTag(): any;
|
|
67
|
-
static
|
|
68
|
-
static
|
|
69
|
-
static
|
|
55
|
+
static resetDataLoader(): any;
|
|
56
|
+
static selectDataLoader(): any;
|
|
57
|
+
static updateAnnouncement(): any;
|
|
58
|
+
static updateAnnouncementSchedule(): any;
|
|
59
|
+
static updateBlog(): any;
|
|
60
|
+
static updateFaq(): any;
|
|
61
|
+
static updateFaqCategory(): any;
|
|
62
|
+
static updateInjectableTag(): any;
|
|
63
|
+
static updateLandingPage(): any;
|
|
64
|
+
static updateLegalInformation(): any;
|
|
65
|
+
static updateNavigation(): any;
|
|
70
66
|
static updatePage(): any;
|
|
71
|
-
static
|
|
67
|
+
static updatePagePreview(): any;
|
|
68
|
+
static updatePathRedirectionRules(): any;
|
|
69
|
+
static updateSEOConfiguration(): any;
|
|
70
|
+
static updateSlideshow(): any;
|
|
71
|
+
static updateSupportInformation(): any;
|
|
72
72
|
}
|
|
@@ -2,234 +2,233 @@ const Joi = require("joi");
|
|
|
2
2
|
const ContentModel = require("./ContentPlatformModel");
|
|
3
3
|
|
|
4
4
|
class ContentValidator {
|
|
5
|
-
static
|
|
5
|
+
static addDataLoader() {
|
|
6
6
|
return Joi.object({
|
|
7
|
-
|
|
8
|
-
pageSize: Joi.number(),
|
|
7
|
+
body: ContentModel.DataLoaderSchema().required(),
|
|
9
8
|
}).required();
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
static
|
|
11
|
+
static addFaq() {
|
|
13
12
|
return Joi.object({
|
|
14
|
-
|
|
13
|
+
categoryId: Joi.string().allow("").required(),
|
|
14
|
+
body: ContentModel.CreateFaqSchema().required(),
|
|
15
15
|
}).required();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
static
|
|
18
|
+
static addInjectableTag() {
|
|
19
19
|
return Joi.object({
|
|
20
|
-
|
|
20
|
+
body: ContentModel.CreateTagRequestSchema().required(),
|
|
21
21
|
}).required();
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
static
|
|
24
|
+
static addPathRedirectionRules() {
|
|
25
25
|
return Joi.object({
|
|
26
|
-
|
|
27
|
-
body: ContentModel.AdminAnnouncementSchema().required(),
|
|
26
|
+
body: ContentModel.PathMappingSchema().required(),
|
|
28
27
|
}).required();
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
static
|
|
30
|
+
static createAnnouncement() {
|
|
32
31
|
return Joi.object({
|
|
33
|
-
|
|
34
|
-
body: ContentModel.ScheduleSchema().required(),
|
|
32
|
+
body: ContentModel.AdminAnnouncementSchema().required(),
|
|
35
33
|
}).required();
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
static
|
|
36
|
+
static createBlog() {
|
|
39
37
|
return Joi.object({
|
|
40
|
-
|
|
38
|
+
body: ContentModel.BlogRequest().required(),
|
|
41
39
|
}).required();
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
static
|
|
42
|
+
static createFaqCategory() {
|
|
45
43
|
return Joi.object({
|
|
46
|
-
body: ContentModel.
|
|
44
|
+
body: ContentModel.CreateFaqCategoryRequestSchema().required(),
|
|
47
45
|
}).required();
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
static
|
|
48
|
+
static createLandingPage() {
|
|
51
49
|
return Joi.object({
|
|
52
|
-
|
|
53
|
-
pageSize: Joi.number(),
|
|
50
|
+
body: ContentModel.LandingPageSchema().required(),
|
|
54
51
|
}).required();
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
static
|
|
54
|
+
static createNavigation() {
|
|
58
55
|
return Joi.object({
|
|
59
|
-
|
|
60
|
-
body: ContentModel.BlogRequest().required(),
|
|
56
|
+
body: ContentModel.NavigationRequest().required(),
|
|
61
57
|
}).required();
|
|
62
58
|
}
|
|
63
59
|
|
|
64
|
-
static
|
|
60
|
+
static createPage() {
|
|
65
61
|
return Joi.object({
|
|
66
|
-
|
|
62
|
+
body: ContentModel.PageRequest().required(),
|
|
67
63
|
}).required();
|
|
68
64
|
}
|
|
69
65
|
|
|
70
|
-
static
|
|
66
|
+
static createPagePreview() {
|
|
71
67
|
return Joi.object({
|
|
72
|
-
|
|
68
|
+
body: ContentModel.PageRequest().required(),
|
|
73
69
|
}).required();
|
|
74
70
|
}
|
|
75
71
|
|
|
76
|
-
static
|
|
72
|
+
static createSlideshow() {
|
|
77
73
|
return Joi.object({
|
|
78
|
-
body: ContentModel.
|
|
74
|
+
body: ContentModel.SlideshowRequest().required(),
|
|
79
75
|
}).required();
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
static
|
|
78
|
+
static deleteAllInjectableTags() {
|
|
83
79
|
return Joi.object({}).required();
|
|
84
80
|
}
|
|
85
81
|
|
|
86
|
-
static
|
|
82
|
+
static deleteAnnouncement() {
|
|
87
83
|
return Joi.object({
|
|
88
|
-
|
|
84
|
+
announcementId: Joi.string().allow("").required(),
|
|
89
85
|
}).required();
|
|
90
86
|
}
|
|
91
87
|
|
|
92
|
-
static
|
|
88
|
+
static deleteBlog() {
|
|
93
89
|
return Joi.object({
|
|
94
|
-
|
|
95
|
-
body: ContentModel.DataLoaderSchema().required(),
|
|
90
|
+
id: Joi.string().allow("").required(),
|
|
96
91
|
}).required();
|
|
97
92
|
}
|
|
98
93
|
|
|
99
|
-
static
|
|
94
|
+
static deleteDataLoader() {
|
|
100
95
|
return Joi.object({
|
|
101
96
|
dataLoaderId: Joi.string().allow("").required(),
|
|
102
97
|
}).required();
|
|
103
98
|
}
|
|
104
99
|
|
|
105
|
-
static
|
|
100
|
+
static deleteFaq() {
|
|
106
101
|
return Joi.object({
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
categoryId: Joi.string().allow("").required(),
|
|
103
|
+
faqId: Joi.string().allow("").required(),
|
|
109
104
|
}).required();
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
static
|
|
113
|
-
return Joi.object({}).required();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
static getFaqCategoryBySlugOrId() {
|
|
107
|
+
static deleteFaqCategory() {
|
|
117
108
|
return Joi.object({
|
|
118
|
-
|
|
109
|
+
id: Joi.string().allow("").required(),
|
|
119
110
|
}).required();
|
|
120
111
|
}
|
|
121
112
|
|
|
122
|
-
static
|
|
113
|
+
static deleteLandingPage() {
|
|
123
114
|
return Joi.object({
|
|
124
|
-
|
|
115
|
+
id: Joi.string().allow("").required(),
|
|
125
116
|
}).required();
|
|
126
117
|
}
|
|
127
118
|
|
|
128
|
-
static
|
|
119
|
+
static deleteNavigation() {
|
|
129
120
|
return Joi.object({
|
|
130
121
|
id: Joi.string().allow("").required(),
|
|
131
|
-
body: ContentModel.UpdateFaqCategoryRequestSchema().required(),
|
|
132
122
|
}).required();
|
|
133
123
|
}
|
|
134
124
|
|
|
135
|
-
static
|
|
125
|
+
static deletePage() {
|
|
136
126
|
return Joi.object({
|
|
137
127
|
id: Joi.string().allow("").required(),
|
|
138
128
|
}).required();
|
|
139
129
|
}
|
|
140
130
|
|
|
141
|
-
static
|
|
131
|
+
static deletePathRedirectionRules() {
|
|
142
132
|
return Joi.object({
|
|
143
|
-
|
|
133
|
+
pathId: Joi.string().allow("").required(),
|
|
144
134
|
}).required();
|
|
145
135
|
}
|
|
146
136
|
|
|
147
|
-
static
|
|
137
|
+
static deleteSlideshow() {
|
|
148
138
|
return Joi.object({
|
|
149
|
-
|
|
150
|
-
body: ContentModel.CreateFaqSchema().required(),
|
|
139
|
+
id: Joi.string().allow("").required(),
|
|
151
140
|
}).required();
|
|
152
141
|
}
|
|
153
142
|
|
|
154
|
-
static
|
|
143
|
+
static editDataLoader() {
|
|
155
144
|
return Joi.object({
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
body: ContentModel.CreateFaqSchema().required(),
|
|
145
|
+
dataLoaderId: Joi.string().allow("").required(),
|
|
146
|
+
body: ContentModel.DataLoaderSchema().required(),
|
|
159
147
|
}).required();
|
|
160
148
|
}
|
|
161
149
|
|
|
162
|
-
static
|
|
150
|
+
static editInjectableTag() {
|
|
163
151
|
return Joi.object({
|
|
164
|
-
|
|
165
|
-
|
|
152
|
+
tagId: Joi.string().allow("").required(),
|
|
153
|
+
body: ContentModel.UpdateHandpickedSchema().required(),
|
|
166
154
|
}).required();
|
|
167
155
|
}
|
|
168
156
|
|
|
169
|
-
static
|
|
157
|
+
static generateSEOTitle() {
|
|
170
158
|
return Joi.object({
|
|
171
|
-
|
|
159
|
+
type: ContentModel.GenerationEntityType().required(),
|
|
160
|
+
body: ContentModel.GenerateSEOContent().required(),
|
|
172
161
|
}).required();
|
|
173
162
|
}
|
|
174
163
|
|
|
175
|
-
static
|
|
164
|
+
static getAnnouncementById() {
|
|
176
165
|
return Joi.object({
|
|
177
|
-
|
|
178
|
-
body: ContentModel.GenerateSEOContent().required(),
|
|
166
|
+
announcementId: Joi.string().allow("").required(),
|
|
179
167
|
}).required();
|
|
180
168
|
}
|
|
181
169
|
|
|
182
|
-
static
|
|
170
|
+
static getAnnouncementsList() {
|
|
183
171
|
return Joi.object({
|
|
184
172
|
pageNo: Joi.number(),
|
|
185
173
|
pageSize: Joi.number(),
|
|
186
174
|
}).required();
|
|
187
175
|
}
|
|
188
176
|
|
|
189
|
-
static
|
|
177
|
+
static getBlogs() {
|
|
190
178
|
return Joi.object({
|
|
191
|
-
|
|
179
|
+
pageNo: Joi.number(),
|
|
180
|
+
pageSize: Joi.number(),
|
|
192
181
|
}).required();
|
|
193
182
|
}
|
|
194
183
|
|
|
195
|
-
static
|
|
184
|
+
static getComponentById() {
|
|
196
185
|
return Joi.object({
|
|
197
|
-
|
|
198
|
-
body: ContentModel.LandingPageSchema().required(),
|
|
186
|
+
slug: Joi.string().allow("").required(),
|
|
199
187
|
}).required();
|
|
200
188
|
}
|
|
201
189
|
|
|
202
|
-
static
|
|
190
|
+
static getDataLoaders() {
|
|
191
|
+
return Joi.object({}).required();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static getDefaultNavigations() {
|
|
195
|
+
return Joi.object({}).required();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static getFaqByIdOrSlug() {
|
|
203
199
|
return Joi.object({
|
|
204
|
-
|
|
200
|
+
idOrSlug: Joi.string().allow("").required(),
|
|
205
201
|
}).required();
|
|
206
202
|
}
|
|
207
203
|
|
|
208
|
-
static
|
|
204
|
+
static getFaqCategories() {
|
|
209
205
|
return Joi.object({}).required();
|
|
210
206
|
}
|
|
211
207
|
|
|
212
|
-
static
|
|
208
|
+
static getFaqCategoryBySlugOrId() {
|
|
213
209
|
return Joi.object({
|
|
214
|
-
|
|
210
|
+
idOrSlug: Joi.string().allow("").required(),
|
|
215
211
|
}).required();
|
|
216
212
|
}
|
|
217
213
|
|
|
218
|
-
static
|
|
214
|
+
static getFaqsByCategoryIdOrSlug() {
|
|
219
215
|
return Joi.object({
|
|
220
|
-
|
|
221
|
-
pageNo: Joi.number(),
|
|
222
|
-
pageSize: Joi.number(),
|
|
216
|
+
idOrSlug: Joi.string().allow("").required(),
|
|
223
217
|
}).required();
|
|
224
218
|
}
|
|
225
219
|
|
|
226
|
-
static
|
|
220
|
+
static getInjectableTags() {
|
|
221
|
+
return Joi.object({}).required();
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
static getLandingPages() {
|
|
227
225
|
return Joi.object({
|
|
228
|
-
|
|
226
|
+
pageNo: Joi.number(),
|
|
227
|
+
pageSize: Joi.number(),
|
|
229
228
|
}).required();
|
|
230
229
|
}
|
|
231
230
|
|
|
232
|
-
static
|
|
231
|
+
static getLegalInformation() {
|
|
233
232
|
return Joi.object({}).required();
|
|
234
233
|
}
|
|
235
234
|
|
|
@@ -240,16 +239,17 @@ class ContentValidator {
|
|
|
240
239
|
}).required();
|
|
241
240
|
}
|
|
242
241
|
|
|
243
|
-
static
|
|
242
|
+
static getNavigations() {
|
|
244
243
|
return Joi.object({
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
devicePlatform: Joi.string().allow("").required(),
|
|
245
|
+
pageNo: Joi.number(),
|
|
246
|
+
pageSize: Joi.number(),
|
|
247
247
|
}).required();
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
static
|
|
250
|
+
static getPageBySlug() {
|
|
251
251
|
return Joi.object({
|
|
252
|
-
|
|
252
|
+
slug: Joi.string().allow("").required(),
|
|
253
253
|
}).required();
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -261,28 +261,16 @@ class ContentValidator {
|
|
|
261
261
|
return Joi.object({}).required();
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
static
|
|
265
|
-
return Joi.object({
|
|
266
|
-
body: ContentModel.PageRequest().required(),
|
|
267
|
-
}).required();
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
static updatePagePreview() {
|
|
271
|
-
return Joi.object({
|
|
272
|
-
slug: Joi.string().allow("").required(),
|
|
273
|
-
body: ContentModel.PagePublishRequest().required(),
|
|
274
|
-
}).required();
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
static deletePage() {
|
|
264
|
+
static getPages() {
|
|
278
265
|
return Joi.object({
|
|
279
|
-
|
|
266
|
+
pageNo: Joi.number(),
|
|
267
|
+
pageSize: Joi.number(),
|
|
280
268
|
}).required();
|
|
281
269
|
}
|
|
282
270
|
|
|
283
|
-
static
|
|
271
|
+
static getPathRedirectionRule() {
|
|
284
272
|
return Joi.object({
|
|
285
|
-
|
|
273
|
+
pathId: Joi.string().allow("").required(),
|
|
286
274
|
}).required();
|
|
287
275
|
}
|
|
288
276
|
|
|
@@ -293,76 +281,81 @@ class ContentValidator {
|
|
|
293
281
|
}).required();
|
|
294
282
|
}
|
|
295
283
|
|
|
296
|
-
static
|
|
297
|
-
return Joi.object({
|
|
298
|
-
pathId: Joi.string().allow("").required(),
|
|
299
|
-
}).required();
|
|
284
|
+
static getSEOConfiguration() {
|
|
285
|
+
return Joi.object({}).required();
|
|
300
286
|
}
|
|
301
287
|
|
|
302
|
-
static
|
|
288
|
+
static getSlideshowBySlug() {
|
|
303
289
|
return Joi.object({
|
|
304
|
-
|
|
305
|
-
|
|
290
|
+
slug: Joi.string().allow("").required(),
|
|
291
|
+
devicePlatform: Joi.string().allow("").required(),
|
|
306
292
|
}).required();
|
|
307
293
|
}
|
|
308
294
|
|
|
309
|
-
static
|
|
295
|
+
static getSlideshows() {
|
|
310
296
|
return Joi.object({
|
|
311
|
-
|
|
297
|
+
devicePlatform: Joi.string().allow("").required(),
|
|
298
|
+
pageNo: Joi.number(),
|
|
299
|
+
pageSize: Joi.number(),
|
|
312
300
|
}).required();
|
|
313
301
|
}
|
|
314
302
|
|
|
315
|
-
static
|
|
303
|
+
static getSupportInformation() {
|
|
316
304
|
return Joi.object({}).required();
|
|
317
305
|
}
|
|
318
306
|
|
|
319
|
-
static
|
|
307
|
+
static removeInjectableTag() {
|
|
320
308
|
return Joi.object({
|
|
321
|
-
body: ContentModel.
|
|
309
|
+
body: ContentModel.RemoveHandpickedSchema().required(),
|
|
322
310
|
}).required();
|
|
323
311
|
}
|
|
324
312
|
|
|
325
|
-
static
|
|
313
|
+
static resetDataLoader() {
|
|
326
314
|
return Joi.object({
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
pageSize: Joi.number(),
|
|
315
|
+
service: Joi.string().allow("").required(),
|
|
316
|
+
operationId: Joi.string().allow("").required(),
|
|
330
317
|
}).required();
|
|
331
318
|
}
|
|
332
319
|
|
|
333
|
-
static
|
|
320
|
+
static selectDataLoader() {
|
|
334
321
|
return Joi.object({
|
|
335
|
-
|
|
322
|
+
dataLoaderId: Joi.string().allow("").required(),
|
|
336
323
|
}).required();
|
|
337
324
|
}
|
|
338
325
|
|
|
339
|
-
static
|
|
326
|
+
static updateAnnouncement() {
|
|
340
327
|
return Joi.object({
|
|
341
|
-
|
|
342
|
-
|
|
328
|
+
announcementId: Joi.string().allow("").required(),
|
|
329
|
+
body: ContentModel.AdminAnnouncementSchema().required(),
|
|
343
330
|
}).required();
|
|
344
331
|
}
|
|
345
332
|
|
|
346
|
-
static
|
|
333
|
+
static updateAnnouncementSchedule() {
|
|
347
334
|
return Joi.object({
|
|
348
|
-
|
|
349
|
-
body: ContentModel.
|
|
335
|
+
announcementId: Joi.string().allow("").required(),
|
|
336
|
+
body: ContentModel.ScheduleSchema().required(),
|
|
350
337
|
}).required();
|
|
351
338
|
}
|
|
352
339
|
|
|
353
|
-
static
|
|
340
|
+
static updateBlog() {
|
|
354
341
|
return Joi.object({
|
|
355
342
|
id: Joi.string().allow("").required(),
|
|
343
|
+
body: ContentModel.BlogRequest().required(),
|
|
356
344
|
}).required();
|
|
357
345
|
}
|
|
358
346
|
|
|
359
|
-
static
|
|
360
|
-
return Joi.object({
|
|
347
|
+
static updateFaq() {
|
|
348
|
+
return Joi.object({
|
|
349
|
+
categoryId: Joi.string().allow("").required(),
|
|
350
|
+
faqId: Joi.string().allow("").required(),
|
|
351
|
+
body: ContentModel.CreateFaqSchema().required(),
|
|
352
|
+
}).required();
|
|
361
353
|
}
|
|
362
354
|
|
|
363
|
-
static
|
|
355
|
+
static updateFaqCategory() {
|
|
364
356
|
return Joi.object({
|
|
365
|
-
|
|
357
|
+
id: Joi.string().allow("").required(),
|
|
358
|
+
body: ContentModel.UpdateFaqCategoryRequestSchema().required(),
|
|
366
359
|
}).required();
|
|
367
360
|
}
|
|
368
361
|
|
|
@@ -372,56 +365,63 @@ class ContentValidator {
|
|
|
372
365
|
}).required();
|
|
373
366
|
}
|
|
374
367
|
|
|
375
|
-
static
|
|
376
|
-
return Joi.object({
|
|
368
|
+
static updateLandingPage() {
|
|
369
|
+
return Joi.object({
|
|
370
|
+
id: Joi.string().allow("").required(),
|
|
371
|
+
body: ContentModel.LandingPageSchema().required(),
|
|
372
|
+
}).required();
|
|
377
373
|
}
|
|
378
374
|
|
|
379
|
-
static
|
|
380
|
-
return Joi.object({
|
|
375
|
+
static updateLegalInformation() {
|
|
376
|
+
return Joi.object({
|
|
377
|
+
body: ContentModel.ApplicationLegal().required(),
|
|
378
|
+
}).required();
|
|
381
379
|
}
|
|
382
380
|
|
|
383
|
-
static
|
|
381
|
+
static updateNavigation() {
|
|
384
382
|
return Joi.object({
|
|
385
|
-
|
|
383
|
+
id: Joi.string().allow("").required(),
|
|
384
|
+
body: ContentModel.NavigationRequest().required(),
|
|
386
385
|
}).required();
|
|
387
386
|
}
|
|
388
387
|
|
|
389
|
-
static
|
|
388
|
+
static updatePage() {
|
|
390
389
|
return Joi.object({
|
|
391
|
-
|
|
390
|
+
id: Joi.string().allow("").required(),
|
|
391
|
+
body: ContentModel.PageSchema().required(),
|
|
392
392
|
}).required();
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
static
|
|
395
|
+
static updatePagePreview() {
|
|
396
396
|
return Joi.object({
|
|
397
|
-
|
|
398
|
-
body: ContentModel.
|
|
397
|
+
slug: Joi.string().allow("").required(),
|
|
398
|
+
body: ContentModel.PagePublishRequest().required(),
|
|
399
399
|
}).required();
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
static
|
|
402
|
+
static updatePathRedirectionRules() {
|
|
403
403
|
return Joi.object({
|
|
404
|
-
|
|
404
|
+
pathId: Joi.string().allow("").required(),
|
|
405
|
+
body: ContentModel.PathMappingSchema().required(),
|
|
405
406
|
}).required();
|
|
406
407
|
}
|
|
407
408
|
|
|
408
|
-
static
|
|
409
|
+
static updateSEOConfiguration() {
|
|
409
410
|
return Joi.object({
|
|
410
|
-
|
|
411
|
-
pageSize: Joi.number(),
|
|
411
|
+
body: ContentModel.SeoComponent().required(),
|
|
412
412
|
}).required();
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
static
|
|
415
|
+
static updateSlideshow() {
|
|
416
416
|
return Joi.object({
|
|
417
417
|
id: Joi.string().allow("").required(),
|
|
418
|
-
body: ContentModel.
|
|
418
|
+
body: ContentModel.SlideshowRequest().required(),
|
|
419
419
|
}).required();
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
static
|
|
422
|
+
static updateSupportInformation() {
|
|
423
423
|
return Joi.object({
|
|
424
|
-
|
|
424
|
+
body: ContentModel.Support().required(),
|
|
425
425
|
}).required();
|
|
426
426
|
}
|
|
427
427
|
}
|