@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef DefaultPageSchema
|
|
5
|
+
* @property {string} [path]
|
|
6
|
+
* @property {string} [type]
|
|
7
|
+
* @property {string[]} [sections]
|
|
8
|
+
* @property {string[]} [sections_meta]
|
|
9
|
+
* @property {string} [text]
|
|
10
|
+
* @property {string} [value]
|
|
11
|
+
* @property {DefaultPageProp[]} [props]
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @typedef DefaultPageProp
|
|
16
|
+
* @property {string} [type]
|
|
17
|
+
* @property {string} [id]
|
|
18
|
+
* @property {string} [label]
|
|
19
|
+
* @property {string} [info]
|
|
20
|
+
*/
|
|
21
|
+
|
|
3
22
|
/**
|
|
4
23
|
* @typedef AvailablePageSchema
|
|
5
24
|
* @property {string} [value]
|
|
@@ -14,11 +33,15 @@ const Joi = require("joi");
|
|
|
14
33
|
* @property {string} [_id]
|
|
15
34
|
* @property {string} [created_at] - The creation timestamp of the page
|
|
16
35
|
* @property {string} [updated_at] - The last update timestamp of the page
|
|
36
|
+
* @property {string} [application] - The application id
|
|
17
37
|
*/
|
|
18
38
|
|
|
19
39
|
/**
|
|
20
|
-
* @typedef
|
|
40
|
+
* @typedef ExtensionBinding
|
|
21
41
|
* @property {string} [extension_id]
|
|
42
|
+
* @property {string} [_id]
|
|
43
|
+
* @property {string} [created_at]
|
|
44
|
+
* @property {string} [updated_at]
|
|
22
45
|
* @property {string} [bundle_name]
|
|
23
46
|
* @property {string} [organization_id]
|
|
24
47
|
* @property {ExtensionSection[]} [sections]
|
|
@@ -28,12 +51,12 @@ const Joi = require("joi");
|
|
|
28
51
|
*/
|
|
29
52
|
|
|
30
53
|
/**
|
|
31
|
-
* @typedef
|
|
32
|
-
* @property {
|
|
54
|
+
* @typedef DraftExtensionSectionResponse
|
|
55
|
+
* @property {string} [message]
|
|
33
56
|
*/
|
|
34
57
|
|
|
35
58
|
/**
|
|
36
|
-
* @typedef
|
|
59
|
+
* @typedef SectionsResponse
|
|
37
60
|
* @property {boolean} [acknowledged]
|
|
38
61
|
* @property {number} [matched_count]
|
|
39
62
|
* @property {number} [modified_count]
|
|
@@ -64,7 +87,7 @@ const Joi = require("joi");
|
|
|
64
87
|
*/
|
|
65
88
|
|
|
66
89
|
/**
|
|
67
|
-
* @typedef
|
|
90
|
+
* @typedef PublishExtensionSectionRequest
|
|
68
91
|
* @property {string} [extension_id]
|
|
69
92
|
* @property {string} [bundle_name]
|
|
70
93
|
* @property {string} [organization_id]
|
|
@@ -75,19 +98,19 @@ const Joi = require("joi");
|
|
|
75
98
|
*/
|
|
76
99
|
|
|
77
100
|
/**
|
|
78
|
-
* @typedef
|
|
101
|
+
* @typedef ExtensionPreviewRequest
|
|
79
102
|
* @property {string} [application_id] - Application ID
|
|
80
103
|
* @property {string} [section_preview_hash] - Hash for the section preview
|
|
81
104
|
*/
|
|
82
105
|
|
|
83
106
|
/**
|
|
84
|
-
* @typedef
|
|
107
|
+
* @typedef ExtensionPreviewResponse
|
|
85
108
|
* @property {string} [message]
|
|
86
109
|
*/
|
|
87
110
|
|
|
88
111
|
/**
|
|
89
|
-
* @typedef
|
|
90
|
-
* @property {
|
|
112
|
+
* @typedef PublishExtensionSectionResponse
|
|
113
|
+
* @property {string} [message]
|
|
91
114
|
*/
|
|
92
115
|
|
|
93
116
|
/**
|
|
@@ -101,7 +124,8 @@ const Joi = require("joi");
|
|
|
101
124
|
* @property {string} [description]
|
|
102
125
|
* @property {SEOMetaItem[]} [meta_tags]
|
|
103
126
|
* @property {SEOSitemap} [sitemap]
|
|
104
|
-
* @property {SEObreadcrumb[]} [
|
|
127
|
+
* @property {SEObreadcrumb[]} [breadcrumbs]
|
|
128
|
+
* @property {string} [canonical_url]
|
|
105
129
|
* @property {string} [_id]
|
|
106
130
|
*/
|
|
107
131
|
|
|
@@ -138,6 +162,7 @@ const Joi = require("joi");
|
|
|
138
162
|
|
|
139
163
|
/**
|
|
140
164
|
* @typedef AvailablePageSchemaSections
|
|
165
|
+
* @property {string} [_id] - Unique Id for section.
|
|
141
166
|
* @property {string} [name]
|
|
142
167
|
* @property {string} [label]
|
|
143
168
|
* @property {Object} [props]
|
|
@@ -202,7 +227,7 @@ const Joi = require("joi");
|
|
|
202
227
|
|
|
203
228
|
/**
|
|
204
229
|
* @typedef MarketplaceThemeSchema
|
|
205
|
-
* @property {MarketplaceTheme[]} [
|
|
230
|
+
* @property {MarketplaceTheme[]} [items]
|
|
206
231
|
* @property {PaginationSchema} [page]
|
|
207
232
|
*/
|
|
208
233
|
|
|
@@ -236,6 +261,7 @@ const Joi = require("joi");
|
|
|
236
261
|
* @property {string} [created_at] - Theme creation timestamp
|
|
237
262
|
* @property {string} [updated_at] - Theme update timestamp
|
|
238
263
|
* @property {string} [template_theme_id] - Template theme ID
|
|
264
|
+
* @property {string} [theme_type] - Theme type
|
|
239
265
|
*/
|
|
240
266
|
|
|
241
267
|
/**
|
|
@@ -322,29 +348,13 @@ const Joi = require("joi");
|
|
|
322
348
|
* @property {string} admin_id - The ID of the admin who rejected the theme
|
|
323
349
|
* @property {string} user_id - The ID of the user who submitted the theme
|
|
324
350
|
* @property {string} status - The status of the theme (e.g., rejected)
|
|
325
|
-
* @property {
|
|
351
|
+
* @property {Object} rejection_reasons
|
|
326
352
|
* @property {string} [created_at] - The date and time when the theme rejection
|
|
327
353
|
* reasons object was created
|
|
328
354
|
* @property {string} [updated_at] - The date and time when the theme rejection
|
|
329
355
|
* reasons object was last updated
|
|
330
356
|
*/
|
|
331
357
|
|
|
332
|
-
/**
|
|
333
|
-
* @typedef RejectedMessages
|
|
334
|
-
* @property {ThemeReviewRequestMessage} [theme_file]
|
|
335
|
-
* @property {ThemeReviewRequestMessage} [theme_details]
|
|
336
|
-
* @property {ThemeReviewRequestMessage} [theme_value_proposition]
|
|
337
|
-
* @property {ThemeReviewRequestMessage} [theme_attributes]
|
|
338
|
-
* @property {ThemeReviewRequestMessage} [theme_variations]
|
|
339
|
-
* @property {ThemeReviewRequestMessage} [theme_docs]
|
|
340
|
-
* @property {ThemeReviewRequestMessage} [theme_review]
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @typedef ThemeReviewRequestMessage
|
|
345
|
-
* @property {string} [message] - Message Explaining what the issue is
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
358
|
/**
|
|
349
359
|
* @typedef AllAvailablePageSchema
|
|
350
360
|
* @property {AvailablePageSchema[]} [pages]
|
|
@@ -362,6 +372,7 @@ const Joi = require("joi");
|
|
|
362
372
|
/**
|
|
363
373
|
* @typedef BlitzkriegApiErrorSchema
|
|
364
374
|
* @property {string} [message]
|
|
375
|
+
* @property {string} [level]
|
|
365
376
|
*/
|
|
366
377
|
|
|
367
378
|
/**
|
|
@@ -391,6 +402,7 @@ const Joi = require("joi");
|
|
|
391
402
|
* @property {string} [theme_type]
|
|
392
403
|
* @property {number} [company_id] - The company id in which sales channel exists
|
|
393
404
|
* @property {string} [src]
|
|
405
|
+
* @property {Object[]} [global_sections]
|
|
394
406
|
*/
|
|
395
407
|
|
|
396
408
|
/**
|
|
@@ -571,6 +583,7 @@ const Joi = require("joi");
|
|
|
571
583
|
* @property {Object[]} [blocks] - Blocks
|
|
572
584
|
* @property {string} [name] - Name of the section
|
|
573
585
|
* @property {string} [label] - Label for the section
|
|
586
|
+
* @property {Object} [preset]
|
|
574
587
|
*/
|
|
575
588
|
|
|
576
589
|
/**
|
|
@@ -769,6 +782,29 @@ const Joi = require("joi");
|
|
|
769
782
|
*/
|
|
770
783
|
|
|
771
784
|
class ThemePartnerModel {
|
|
785
|
+
/** @returns {DefaultPageSchema} */
|
|
786
|
+
static DefaultPageSchema() {
|
|
787
|
+
return Joi.object({
|
|
788
|
+
path: Joi.string().allow(""),
|
|
789
|
+
type: Joi.string().allow(""),
|
|
790
|
+
sections: Joi.array().items(Joi.string().allow("")),
|
|
791
|
+
sections_meta: Joi.array().items(Joi.string().allow("")),
|
|
792
|
+
text: Joi.string().allow(""),
|
|
793
|
+
value: Joi.string().allow(""),
|
|
794
|
+
props: Joi.array().items(ThemePartnerModel.DefaultPageProp()),
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/** @returns {DefaultPageProp} */
|
|
799
|
+
static DefaultPageProp() {
|
|
800
|
+
return Joi.object({
|
|
801
|
+
type: Joi.string().allow(""),
|
|
802
|
+
id: Joi.string().allow(""),
|
|
803
|
+
label: Joi.string().allow(""),
|
|
804
|
+
info: Joi.string().allow(""),
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
|
|
772
808
|
/** @returns {AvailablePageSchema} */
|
|
773
809
|
static AvailablePageSchema() {
|
|
774
810
|
return Joi.object({
|
|
@@ -788,13 +824,17 @@ class ThemePartnerModel {
|
|
|
788
824
|
_id: Joi.string().allow(""),
|
|
789
825
|
created_at: Joi.string().allow(""),
|
|
790
826
|
updated_at: Joi.string().allow(""),
|
|
827
|
+
application: Joi.string().allow(""),
|
|
791
828
|
});
|
|
792
829
|
}
|
|
793
830
|
|
|
794
|
-
/** @returns {
|
|
795
|
-
static
|
|
831
|
+
/** @returns {ExtensionBinding} */
|
|
832
|
+
static ExtensionBinding() {
|
|
796
833
|
return Joi.object({
|
|
797
834
|
extension_id: Joi.string().allow(""),
|
|
835
|
+
_id: Joi.string().allow(""),
|
|
836
|
+
created_at: Joi.string().allow(""),
|
|
837
|
+
updated_at: Joi.string().allow(""),
|
|
798
838
|
bundle_name: Joi.string().allow(""),
|
|
799
839
|
organization_id: Joi.string().allow(""),
|
|
800
840
|
sections: Joi.array().items(ThemePartnerModel.ExtensionSection()),
|
|
@@ -804,15 +844,15 @@ class ThemePartnerModel {
|
|
|
804
844
|
});
|
|
805
845
|
}
|
|
806
846
|
|
|
807
|
-
/** @returns {
|
|
808
|
-
static
|
|
847
|
+
/** @returns {DraftExtensionSectionResponse} */
|
|
848
|
+
static DraftExtensionSectionResponse() {
|
|
809
849
|
return Joi.object({
|
|
810
|
-
|
|
850
|
+
message: Joi.string().allow(""),
|
|
811
851
|
});
|
|
812
852
|
}
|
|
813
853
|
|
|
814
|
-
/** @returns {
|
|
815
|
-
static
|
|
854
|
+
/** @returns {SectionsResponse} */
|
|
855
|
+
static SectionsResponse() {
|
|
816
856
|
return Joi.object({
|
|
817
857
|
acknowledged: Joi.boolean(),
|
|
818
858
|
matched_count: Joi.number(),
|
|
@@ -850,8 +890,8 @@ class ThemePartnerModel {
|
|
|
850
890
|
});
|
|
851
891
|
}
|
|
852
892
|
|
|
853
|
-
/** @returns {
|
|
854
|
-
static
|
|
893
|
+
/** @returns {PublishExtensionSectionRequest} */
|
|
894
|
+
static PublishExtensionSectionRequest() {
|
|
855
895
|
return Joi.object({
|
|
856
896
|
extension_id: Joi.string().allow(""),
|
|
857
897
|
bundle_name: Joi.string().allow(""),
|
|
@@ -863,32 +903,32 @@ class ThemePartnerModel {
|
|
|
863
903
|
});
|
|
864
904
|
}
|
|
865
905
|
|
|
866
|
-
/** @returns {
|
|
867
|
-
static
|
|
906
|
+
/** @returns {ExtensionPreviewRequest} */
|
|
907
|
+
static ExtensionPreviewRequest() {
|
|
868
908
|
return Joi.object({
|
|
869
909
|
application_id: Joi.string().allow(""),
|
|
870
910
|
section_preview_hash: Joi.string().allow(""),
|
|
871
911
|
});
|
|
872
912
|
}
|
|
873
913
|
|
|
874
|
-
/** @returns {
|
|
875
|
-
static
|
|
914
|
+
/** @returns {ExtensionPreviewResponse} */
|
|
915
|
+
static ExtensionPreviewResponse() {
|
|
876
916
|
return Joi.object({
|
|
877
917
|
message: Joi.string().allow(""),
|
|
878
918
|
});
|
|
879
919
|
}
|
|
880
920
|
|
|
881
|
-
/** @returns {
|
|
882
|
-
static
|
|
921
|
+
/** @returns {PublishExtensionSectionResponse} */
|
|
922
|
+
static PublishExtensionSectionResponse() {
|
|
883
923
|
return Joi.object({
|
|
884
|
-
|
|
924
|
+
message: Joi.string().allow(""),
|
|
885
925
|
});
|
|
886
926
|
}
|
|
887
927
|
|
|
888
928
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
889
929
|
static AvailablePageSectionMetaAttributes() {
|
|
890
930
|
return Joi.object({
|
|
891
|
-
attributes: Joi.
|
|
931
|
+
attributes: Joi.any(),
|
|
892
932
|
});
|
|
893
933
|
}
|
|
894
934
|
|
|
@@ -899,7 +939,8 @@ class ThemePartnerModel {
|
|
|
899
939
|
description: Joi.string().allow(""),
|
|
900
940
|
meta_tags: Joi.array().items(ThemePartnerModel.SEOMetaItem()),
|
|
901
941
|
sitemap: ThemePartnerModel.SEOSitemap(),
|
|
902
|
-
|
|
942
|
+
breadcrumbs: Joi.array().items(ThemePartnerModel.SEObreadcrumb()),
|
|
943
|
+
canonical_url: Joi.string().allow(""),
|
|
903
944
|
_id: Joi.string().allow(""),
|
|
904
945
|
});
|
|
905
946
|
}
|
|
@@ -948,11 +989,12 @@ class ThemePartnerModel {
|
|
|
948
989
|
/** @returns {AvailablePageSchemaSections} */
|
|
949
990
|
static AvailablePageSchemaSections() {
|
|
950
991
|
return Joi.object({
|
|
992
|
+
_id: Joi.string().allow(""),
|
|
951
993
|
name: Joi.string().allow(""),
|
|
952
994
|
label: Joi.string().allow(""),
|
|
953
|
-
props: Joi.
|
|
995
|
+
props: Joi.any(),
|
|
954
996
|
blocks: Joi.array().items(Joi.any()),
|
|
955
|
-
preset: Joi.
|
|
997
|
+
preset: Joi.any(),
|
|
956
998
|
predicate: ThemePartnerModel.AvailablePagePredicate(),
|
|
957
999
|
__source: ThemePartnerModel.SectionSource(),
|
|
958
1000
|
});
|
|
@@ -1026,7 +1068,7 @@ class ThemePartnerModel {
|
|
|
1026
1068
|
/** @returns {MarketplaceThemeSchema} */
|
|
1027
1069
|
static MarketplaceThemeSchema() {
|
|
1028
1070
|
return Joi.object({
|
|
1029
|
-
|
|
1071
|
+
items: Joi.array().items(ThemePartnerModel.MarketplaceTheme()),
|
|
1030
1072
|
page: ThemePartnerModel.PaginationSchema(),
|
|
1031
1073
|
});
|
|
1032
1074
|
}
|
|
@@ -1062,6 +1104,7 @@ class ThemePartnerModel {
|
|
|
1062
1104
|
created_at: Joi.string().allow(""),
|
|
1063
1105
|
updated_at: Joi.string().allow(""),
|
|
1064
1106
|
template_theme_id: Joi.string().allow(""),
|
|
1107
|
+
theme_type: Joi.string().allow(""),
|
|
1065
1108
|
});
|
|
1066
1109
|
}
|
|
1067
1110
|
|
|
@@ -1174,32 +1217,12 @@ class ThemePartnerModel {
|
|
|
1174
1217
|
admin_id: Joi.string().allow("").required(),
|
|
1175
1218
|
user_id: Joi.string().allow("").required(),
|
|
1176
1219
|
status: Joi.string().allow("").required(),
|
|
1177
|
-
rejection_reasons:
|
|
1220
|
+
rejection_reasons: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1178
1221
|
created_at: Joi.string().allow(""),
|
|
1179
1222
|
updated_at: Joi.string().allow(""),
|
|
1180
1223
|
});
|
|
1181
1224
|
}
|
|
1182
1225
|
|
|
1183
|
-
/** @returns {RejectedMessages} */
|
|
1184
|
-
static RejectedMessages() {
|
|
1185
|
-
return Joi.object({
|
|
1186
|
-
theme_file: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1187
|
-
theme_details: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1188
|
-
theme_value_proposition: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1189
|
-
theme_attributes: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1190
|
-
theme_variations: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1191
|
-
theme_docs: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1192
|
-
theme_review: ThemePartnerModel.ThemeReviewRequestMessage(),
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
/** @returns {ThemeReviewRequestMessage} */
|
|
1197
|
-
static ThemeReviewRequestMessage() {
|
|
1198
|
-
return Joi.object({
|
|
1199
|
-
message: Joi.string().allow(""),
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
1226
|
/** @returns {AllAvailablePageSchema} */
|
|
1204
1227
|
static AllAvailablePageSchema() {
|
|
1205
1228
|
return Joi.object({
|
|
@@ -1222,6 +1245,7 @@ class ThemePartnerModel {
|
|
|
1222
1245
|
static BlitzkriegApiErrorSchema() {
|
|
1223
1246
|
return Joi.object({
|
|
1224
1247
|
message: Joi.string().allow(""),
|
|
1248
|
+
level: Joi.string().allow(""),
|
|
1225
1249
|
});
|
|
1226
1250
|
}
|
|
1227
1251
|
|
|
@@ -1247,7 +1271,7 @@ class ThemePartnerModel {
|
|
|
1247
1271
|
name: Joi.string().allow(""),
|
|
1248
1272
|
template_theme_id: Joi.string().allow(""),
|
|
1249
1273
|
version: Joi.string().allow(""),
|
|
1250
|
-
styles: Joi.
|
|
1274
|
+
styles: Joi.any(),
|
|
1251
1275
|
created_at: Joi.string().allow(""),
|
|
1252
1276
|
updated_at: Joi.string().allow(""),
|
|
1253
1277
|
assets: ThemePartnerModel.Assets(),
|
|
@@ -1255,6 +1279,7 @@ class ThemePartnerModel {
|
|
|
1255
1279
|
theme_type: Joi.string().allow(""),
|
|
1256
1280
|
company_id: Joi.number(),
|
|
1257
1281
|
src: Joi.string().allow(""),
|
|
1282
|
+
global_sections: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
1258
1283
|
});
|
|
1259
1284
|
}
|
|
1260
1285
|
|
|
@@ -1301,7 +1326,7 @@ class ThemePartnerModel {
|
|
|
1301
1326
|
static ThemeConfiguration() {
|
|
1302
1327
|
return Joi.object({
|
|
1303
1328
|
name: Joi.string().allow(""),
|
|
1304
|
-
global_config: Joi.
|
|
1329
|
+
global_config: Joi.any(),
|
|
1305
1330
|
page: Joi.array().items(ThemePartnerModel.ThemeConfigListPage()),
|
|
1306
1331
|
});
|
|
1307
1332
|
}
|
|
@@ -1353,7 +1378,7 @@ class ThemePartnerModel {
|
|
|
1353
1378
|
/** @returns {ThemeConfigListPageSettingsProps} */
|
|
1354
1379
|
static ThemeConfigListPageSettingsProps() {
|
|
1355
1380
|
return Joi.object({
|
|
1356
|
-
props: Joi.
|
|
1381
|
+
props: Joi.any(),
|
|
1357
1382
|
});
|
|
1358
1383
|
}
|
|
1359
1384
|
|
|
@@ -1472,10 +1497,11 @@ class ThemePartnerModel {
|
|
|
1472
1497
|
/** @returns {SectionItem} */
|
|
1473
1498
|
static SectionItem() {
|
|
1474
1499
|
return Joi.object({
|
|
1475
|
-
props: Joi.array().items(Joi.any()),
|
|
1476
|
-
blocks: Joi.array().items(Joi.any()),
|
|
1500
|
+
props: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
1501
|
+
blocks: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
1477
1502
|
name: Joi.string().allow(""),
|
|
1478
1503
|
label: Joi.string().allow(""),
|
|
1504
|
+
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
1479
1505
|
});
|
|
1480
1506
|
}
|
|
1481
1507
|
|
|
@@ -17,11 +17,15 @@ declare class ThemeValidator {
|
|
|
17
17
|
static deleteOrganizationTheme(): any;
|
|
18
18
|
static getLatestVersionOfThemeBySlug(): any;
|
|
19
19
|
static createNewThemeInOrganization(): any;
|
|
20
|
+
static getThemeRejectionReasons(): any;
|
|
20
21
|
static createExtensionSectionDraft(): any;
|
|
22
|
+
static getExtensionbinding(): any;
|
|
21
23
|
static publishExtensionSections(): any;
|
|
22
24
|
static applyExtensionPreview(): any;
|
|
23
25
|
static removeExtensionPreview(): any;
|
|
24
|
-
static getThemeRejectionReasons(): any;
|
|
25
26
|
static getThemeVersions(): any;
|
|
26
27
|
static createTheme(): any;
|
|
28
|
+
static getOrgnaizationDefaultTheme(): any;
|
|
29
|
+
static getSystemPage(): any;
|
|
30
|
+
static getAppliedTheme(): any;
|
|
27
31
|
}
|
|
@@ -80,7 +80,7 @@ class ThemeValidator {
|
|
|
80
80
|
applicationId: Joi.string().allow("").required(),
|
|
81
81
|
themeId: Joi.string().allow("").required(),
|
|
82
82
|
|
|
83
|
-
body: ThemeModel.
|
|
83
|
+
body: ThemeModel.ThemesSchema().required(),
|
|
84
84
|
}).required();
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -139,37 +139,45 @@ class ThemeValidator {
|
|
|
139
139
|
}).required();
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
static getThemeRejectionReasons() {
|
|
143
|
+
return Joi.object({
|
|
144
|
+
themeId: Joi.string().allow("").required(),
|
|
145
|
+
}).required();
|
|
146
|
+
}
|
|
147
|
+
|
|
142
148
|
static createExtensionSectionDraft() {
|
|
143
149
|
return Joi.object({
|
|
144
150
|
extensionId: Joi.string().allow("").required(),
|
|
145
|
-
body: ThemeModel.
|
|
151
|
+
body: ThemeModel.ExtensionBinding().required(),
|
|
146
152
|
}).required();
|
|
147
153
|
}
|
|
148
154
|
|
|
149
|
-
static
|
|
155
|
+
static getExtensionbinding() {
|
|
150
156
|
return Joi.object({
|
|
151
157
|
extensionId: Joi.string().allow("").required(),
|
|
152
|
-
|
|
158
|
+
bundleName: Joi.string().allow("").required(),
|
|
159
|
+
type: Joi.string().allow("").required(),
|
|
153
160
|
}).required();
|
|
154
161
|
}
|
|
155
162
|
|
|
156
|
-
static
|
|
163
|
+
static publishExtensionSections() {
|
|
157
164
|
return Joi.object({
|
|
158
|
-
|
|
159
|
-
body: ThemeModel.
|
|
165
|
+
extensionId: Joi.string().allow("").required(),
|
|
166
|
+
body: ThemeModel.PublishExtensionSectionRequest().required(),
|
|
160
167
|
}).required();
|
|
161
168
|
}
|
|
162
169
|
|
|
163
|
-
static
|
|
170
|
+
static applyExtensionPreview() {
|
|
164
171
|
return Joi.object({
|
|
165
172
|
extensionSectionId: Joi.string().allow("").required(),
|
|
166
|
-
body: ThemeModel.
|
|
173
|
+
body: ThemeModel.ExtensionPreviewRequest().required(),
|
|
167
174
|
}).required();
|
|
168
175
|
}
|
|
169
176
|
|
|
170
|
-
static
|
|
177
|
+
static removeExtensionPreview() {
|
|
171
178
|
return Joi.object({
|
|
172
|
-
|
|
179
|
+
extensionSectionId: Joi.string().allow("").required(),
|
|
180
|
+
body: ThemeModel.ExtensionPreviewRequest().required(),
|
|
173
181
|
}).required();
|
|
174
182
|
}
|
|
175
183
|
|
|
@@ -186,7 +194,29 @@ class ThemeValidator {
|
|
|
186
194
|
companyId: Joi.number().required(),
|
|
187
195
|
applicationId: Joi.string().allow("").required(),
|
|
188
196
|
|
|
189
|
-
body: ThemeModel.
|
|
197
|
+
body: ThemeModel.ThemesSchema().required(),
|
|
198
|
+
}).required();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
static getOrgnaizationDefaultTheme() {
|
|
202
|
+
return Joi.object({
|
|
203
|
+
companyId: Joi.number().required(),
|
|
204
|
+
applicationId: Joi.string().allow("").required(),
|
|
205
|
+
}).required();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static getSystemPage() {
|
|
209
|
+
return Joi.object({
|
|
210
|
+
companyId: Joi.number().required(),
|
|
211
|
+
applicationId: Joi.string().allow("").required(),
|
|
212
|
+
pageValue: Joi.string().allow("").required(),
|
|
213
|
+
}).required();
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static getAppliedTheme() {
|
|
217
|
+
return Joi.object({
|
|
218
|
+
companyId: Joi.number().required(),
|
|
219
|
+
applicationId: Joi.string().allow("").required(),
|
|
190
220
|
}).required();
|
|
191
221
|
}
|
|
192
222
|
}
|
|
@@ -16,94 +16,94 @@ declare class Webhook {
|
|
|
16
16
|
* @param {WebhookPartnerValidator.FetchDeliverySummaryParam} arg - Arg object.
|
|
17
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
18
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
19
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
19
|
+
* @returns {Promise<WebhookPartnerModel.DeliverySummaryResponse>} - Success response
|
|
20
20
|
* @name fetchDeliverySummary
|
|
21
21
|
* @summary: Webhook delivery summary
|
|
22
22
|
* @description: Webhook delivery summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliverySummary/).
|
|
23
23
|
*/
|
|
24
|
-
fetchDeliverySummary({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliverySummaryParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
24
|
+
fetchDeliverySummary({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliverySummaryParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliverySummaryResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* @param {WebhookPartnerValidator.GetDeliveryDetailInsightsParam} arg - Arg object.
|
|
27
27
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
28
28
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
29
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
29
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryDetailsResponse>} - Success response
|
|
30
30
|
* @name getDeliveryDetailInsights
|
|
31
31
|
* @summary: Get the insights of delivery details of the events that was pushed to subscribers
|
|
32
32
|
* @description: Get the delivery details insights - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getDeliveryDetailInsights/).
|
|
33
33
|
*/
|
|
34
|
-
getDeliveryDetailInsights({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetDeliveryDetailInsightsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
34
|
+
getDeliveryDetailInsights({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetDeliveryDetailInsightsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryDetailsResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* @param {WebhookPartnerValidator.FetchDeliveryTsParam} arg - Arg object.
|
|
37
37
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
38
38
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
39
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
39
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryTsResponse>} - Success response
|
|
40
40
|
* @name fetchDeliveryTs
|
|
41
41
|
* @summary: Webhook delivery ts
|
|
42
42
|
* @description: Webhook delivery ts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliveryTs/).
|
|
43
43
|
*/
|
|
44
|
-
fetchDeliveryTs({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliveryTsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
44
|
+
fetchDeliveryTs({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliveryTsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryTsResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* @param {WebhookPartnerValidator.FetchReportFiltersParam} arg - Arg object.
|
|
47
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
48
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
49
|
+
* @returns {Promise<WebhookPartnerModel.FilterReportResponse[]>} - Success response
|
|
50
50
|
* @name fetchReportFilters
|
|
51
51
|
* @summary: Fetch webhook report filters
|
|
52
52
|
* @description: Fetch webhook report filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchReportFilters/).
|
|
53
53
|
*/
|
|
54
|
-
fetchReportFilters({ extensionId, startDate, endDate, pageNo, pageSize, requestHeaders }?: WebhookPartnerValidator.FetchReportFiltersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
54
|
+
fetchReportFilters({ extensionId, startDate, endDate, pageNo, pageSize, requestHeaders }?: WebhookPartnerValidator.FetchReportFiltersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.FilterReportResponse[]>;
|
|
55
55
|
/**
|
|
56
56
|
* @param {WebhookPartnerValidator.CancelReportDownloadParam} arg - Arg object.
|
|
57
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
58
58
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
59
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
59
|
+
* @returns {Promise<WebhookPartnerModel.CancelDownloadResponse>} - Success response
|
|
60
60
|
* @name cancelReportDownload
|
|
61
61
|
* @summary: Cancel report download job
|
|
62
62
|
* @description: Cancel report download job - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/cancelReportDownload/).
|
|
63
63
|
*/
|
|
64
|
-
cancelReportDownload({ extensionId, filename, requestHeaders }?: WebhookPartnerValidator.CancelReportDownloadParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
64
|
+
cancelReportDownload({ extensionId, filename, requestHeaders }?: WebhookPartnerValidator.CancelReportDownloadParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.CancelDownloadResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* @param {WebhookPartnerValidator.GetHistoricalReportsParam} arg - Arg object.
|
|
67
67
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
68
68
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
69
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
69
|
+
* @returns {Promise<WebhookPartnerModel.HistoryResponse>} - Success response
|
|
70
70
|
* @name getHistoricalReports
|
|
71
71
|
* @summary: Get report download history.
|
|
72
72
|
* @description: Retrieve history reports for a specific company based on the provided filters.
|
|
73
73
|
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getHistoricalReports/).
|
|
74
74
|
*/
|
|
75
|
-
getHistoricalReports({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetHistoricalReportsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
75
|
+
getHistoricalReports({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetHistoricalReportsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.HistoryResponse>;
|
|
76
76
|
/**
|
|
77
77
|
* @param {WebhookPartnerValidator.GetInvalidEventListParam} arg - Arg object.
|
|
78
78
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
79
79
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
80
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
80
|
+
* @returns {Promise<WebhookPartnerModel.InvalidEventsResponse[]>} - Success response
|
|
81
81
|
* @name getInvalidEventList
|
|
82
82
|
* @summary: Get invalid event list
|
|
83
83
|
* @description: Get invalid event list.
|
|
84
84
|
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getInvalidEventList/).
|
|
85
85
|
*/
|
|
86
|
-
getInvalidEventList({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetInvalidEventListParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
86
|
+
getInvalidEventList({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetInvalidEventListParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.InvalidEventsResponse[]>;
|
|
87
87
|
/**
|
|
88
88
|
* @param {WebhookPartnerValidator.FetchSubscribersParam} arg - Arg object.
|
|
89
89
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
90
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
91
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
91
|
+
* @returns {Promise<WebhookPartnerModel.SubscriberConfigResponse>} - Success response
|
|
92
92
|
* @name fetchSubscribers
|
|
93
93
|
* @summary: Fetch subscriber by filters
|
|
94
94
|
* @description: Fetch subscriber by filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchSubscribers/).
|
|
95
95
|
*/
|
|
96
|
-
fetchSubscribers({ extensionId, requestHeaders }?: WebhookPartnerValidator.FetchSubscribersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
96
|
+
fetchSubscribers({ extensionId, requestHeaders }?: WebhookPartnerValidator.FetchSubscribersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.SubscriberConfigResponse>;
|
|
97
97
|
/**
|
|
98
98
|
* @param {WebhookPartnerValidator.UpdateSubscriberParam} arg - Arg object.
|
|
99
99
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
100
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
101
|
-
* @returns {Promise<WebhookPartnerModel.
|
|
101
|
+
* @returns {Promise<WebhookPartnerModel.UpdateSubscriberResponse>} - Success response
|
|
102
102
|
* @name updateSubscriber
|
|
103
103
|
* @summary: Update subscriber status by id.
|
|
104
104
|
* @description: Update subscriber status by id.
|
|
105
105
|
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateSubscriber/).
|
|
106
106
|
*/
|
|
107
|
-
updateSubscriber({ extensionId, subscriberId, body, requestHeaders }?: WebhookPartnerValidator.UpdateSubscriberParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.
|
|
107
|
+
updateSubscriber({ extensionId, subscriberId, body, requestHeaders }?: WebhookPartnerValidator.UpdateSubscriberParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.UpdateSubscriberResponse>;
|
|
108
108
|
}
|
|
109
109
|
import WebhookPartnerModel = require("./WebhookPartnerModel");
|