@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,24 +1,5 @@
|
|
|
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
|
-
|
|
22
3
|
/**
|
|
23
4
|
* @typedef AvailablePageSchema
|
|
24
5
|
* @property {string} [value]
|
|
@@ -33,15 +14,11 @@ const Joi = require("joi");
|
|
|
33
14
|
* @property {string} [_id]
|
|
34
15
|
* @property {string} [created_at] - The creation timestamp of the page
|
|
35
16
|
* @property {string} [updated_at] - The last update timestamp of the page
|
|
36
|
-
* @property {string} [application] - The application id
|
|
37
17
|
*/
|
|
38
18
|
|
|
39
19
|
/**
|
|
40
|
-
* @typedef
|
|
20
|
+
* @typedef DraftExtensionSection
|
|
41
21
|
* @property {string} [extension_id]
|
|
42
|
-
* @property {string} [_id]
|
|
43
|
-
* @property {string} [created_at]
|
|
44
|
-
* @property {string} [updated_at]
|
|
45
22
|
* @property {string} [bundle_name]
|
|
46
23
|
* @property {string} [organization_id]
|
|
47
24
|
* @property {ExtensionSection[]} [sections]
|
|
@@ -51,12 +28,12 @@ const Joi = require("joi");
|
|
|
51
28
|
*/
|
|
52
29
|
|
|
53
30
|
/**
|
|
54
|
-
* @typedef
|
|
55
|
-
* @property {
|
|
31
|
+
* @typedef ExtensionSectionDraft
|
|
32
|
+
* @property {Sections} [sections]
|
|
56
33
|
*/
|
|
57
34
|
|
|
58
35
|
/**
|
|
59
|
-
* @typedef
|
|
36
|
+
* @typedef Sections
|
|
60
37
|
* @property {boolean} [acknowledged]
|
|
61
38
|
* @property {number} [matched_count]
|
|
62
39
|
* @property {number} [modified_count]
|
|
@@ -87,7 +64,7 @@ const Joi = require("joi");
|
|
|
87
64
|
*/
|
|
88
65
|
|
|
89
66
|
/**
|
|
90
|
-
* @typedef
|
|
67
|
+
* @typedef PublishExtensionSection
|
|
91
68
|
* @property {string} [extension_id]
|
|
92
69
|
* @property {string} [bundle_name]
|
|
93
70
|
* @property {string} [organization_id]
|
|
@@ -98,19 +75,19 @@ const Joi = require("joi");
|
|
|
98
75
|
*/
|
|
99
76
|
|
|
100
77
|
/**
|
|
101
|
-
* @typedef
|
|
78
|
+
* @typedef PreviewExtension
|
|
102
79
|
* @property {string} [application_id] - Application ID
|
|
103
80
|
* @property {string} [section_preview_hash] - Hash for the section preview
|
|
104
81
|
*/
|
|
105
82
|
|
|
106
83
|
/**
|
|
107
|
-
* @typedef
|
|
84
|
+
* @typedef ExtensionPreview
|
|
108
85
|
* @property {string} [message]
|
|
109
86
|
*/
|
|
110
87
|
|
|
111
88
|
/**
|
|
112
|
-
* @typedef
|
|
113
|
-
* @property {
|
|
89
|
+
* @typedef ExtensionSectionPublish
|
|
90
|
+
* @property {Sections} [sections]
|
|
114
91
|
*/
|
|
115
92
|
|
|
116
93
|
/**
|
|
@@ -124,8 +101,7 @@ const Joi = require("joi");
|
|
|
124
101
|
* @property {string} [description]
|
|
125
102
|
* @property {SEOMetaItem[]} [meta_tags]
|
|
126
103
|
* @property {SEOSitemap} [sitemap]
|
|
127
|
-
* @property {SEObreadcrumb[]} [
|
|
128
|
-
* @property {string} [canonical_url]
|
|
104
|
+
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
129
105
|
* @property {string} [_id]
|
|
130
106
|
*/
|
|
131
107
|
|
|
@@ -162,7 +138,6 @@ const Joi = require("joi");
|
|
|
162
138
|
|
|
163
139
|
/**
|
|
164
140
|
* @typedef AvailablePageSchemaSections
|
|
165
|
-
* @property {string} [_id] - Unique Id for section.
|
|
166
141
|
* @property {string} [name]
|
|
167
142
|
* @property {string} [label]
|
|
168
143
|
* @property {Object} [props]
|
|
@@ -227,7 +202,7 @@ const Joi = require("joi");
|
|
|
227
202
|
|
|
228
203
|
/**
|
|
229
204
|
* @typedef MarketplaceThemeSchema
|
|
230
|
-
* @property {MarketplaceTheme[]} [
|
|
205
|
+
* @property {MarketplaceTheme[]} [themes]
|
|
231
206
|
* @property {PaginationSchema} [page]
|
|
232
207
|
*/
|
|
233
208
|
|
|
@@ -261,7 +236,6 @@ const Joi = require("joi");
|
|
|
261
236
|
* @property {string} [created_at] - Theme creation timestamp
|
|
262
237
|
* @property {string} [updated_at] - Theme update timestamp
|
|
263
238
|
* @property {string} [template_theme_id] - Template theme ID
|
|
264
|
-
* @property {string} [theme_type] - Theme type
|
|
265
239
|
*/
|
|
266
240
|
|
|
267
241
|
/**
|
|
@@ -348,13 +322,29 @@ const Joi = require("joi");
|
|
|
348
322
|
* @property {string} admin_id - The ID of the admin who rejected the theme
|
|
349
323
|
* @property {string} user_id - The ID of the user who submitted the theme
|
|
350
324
|
* @property {string} status - The status of the theme (e.g., rejected)
|
|
351
|
-
* @property {
|
|
325
|
+
* @property {RejectedMessages} rejection_reasons
|
|
352
326
|
* @property {string} [created_at] - The date and time when the theme rejection
|
|
353
327
|
* reasons object was created
|
|
354
328
|
* @property {string} [updated_at] - The date and time when the theme rejection
|
|
355
329
|
* reasons object was last updated
|
|
356
330
|
*/
|
|
357
331
|
|
|
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
|
+
|
|
358
348
|
/**
|
|
359
349
|
* @typedef AllAvailablePageSchema
|
|
360
350
|
* @property {AvailablePageSchema[]} [pages]
|
|
@@ -372,7 +362,6 @@ const Joi = require("joi");
|
|
|
372
362
|
/**
|
|
373
363
|
* @typedef BlitzkriegApiErrorSchema
|
|
374
364
|
* @property {string} [message]
|
|
375
|
-
* @property {string} [level]
|
|
376
365
|
*/
|
|
377
366
|
|
|
378
367
|
/**
|
|
@@ -402,7 +391,6 @@ const Joi = require("joi");
|
|
|
402
391
|
* @property {string} [theme_type]
|
|
403
392
|
* @property {number} [company_id] - The company id in which sales channel exists
|
|
404
393
|
* @property {string} [src]
|
|
405
|
-
* @property {Object[]} [global_sections]
|
|
406
394
|
*/
|
|
407
395
|
|
|
408
396
|
/**
|
|
@@ -583,7 +571,6 @@ const Joi = require("joi");
|
|
|
583
571
|
* @property {Object[]} [blocks] - Blocks
|
|
584
572
|
* @property {string} [name] - Name of the section
|
|
585
573
|
* @property {string} [label] - Label for the section
|
|
586
|
-
* @property {Object} [preset]
|
|
587
574
|
*/
|
|
588
575
|
|
|
589
576
|
/**
|
|
@@ -782,29 +769,6 @@ const Joi = require("joi");
|
|
|
782
769
|
*/
|
|
783
770
|
|
|
784
771
|
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
|
-
|
|
808
772
|
/** @returns {AvailablePageSchema} */
|
|
809
773
|
static AvailablePageSchema() {
|
|
810
774
|
return Joi.object({
|
|
@@ -824,17 +788,13 @@ class ThemePartnerModel {
|
|
|
824
788
|
_id: Joi.string().allow(""),
|
|
825
789
|
created_at: Joi.string().allow(""),
|
|
826
790
|
updated_at: Joi.string().allow(""),
|
|
827
|
-
application: Joi.string().allow(""),
|
|
828
791
|
});
|
|
829
792
|
}
|
|
830
793
|
|
|
831
|
-
/** @returns {
|
|
832
|
-
static
|
|
794
|
+
/** @returns {DraftExtensionSection} */
|
|
795
|
+
static DraftExtensionSection() {
|
|
833
796
|
return Joi.object({
|
|
834
797
|
extension_id: Joi.string().allow(""),
|
|
835
|
-
_id: Joi.string().allow(""),
|
|
836
|
-
created_at: Joi.string().allow(""),
|
|
837
|
-
updated_at: Joi.string().allow(""),
|
|
838
798
|
bundle_name: Joi.string().allow(""),
|
|
839
799
|
organization_id: Joi.string().allow(""),
|
|
840
800
|
sections: Joi.array().items(ThemePartnerModel.ExtensionSection()),
|
|
@@ -844,15 +804,15 @@ class ThemePartnerModel {
|
|
|
844
804
|
});
|
|
845
805
|
}
|
|
846
806
|
|
|
847
|
-
/** @returns {
|
|
848
|
-
static
|
|
807
|
+
/** @returns {ExtensionSectionDraft} */
|
|
808
|
+
static ExtensionSectionDraft() {
|
|
849
809
|
return Joi.object({
|
|
850
|
-
|
|
810
|
+
sections: ThemePartnerModel.Sections(),
|
|
851
811
|
});
|
|
852
812
|
}
|
|
853
813
|
|
|
854
|
-
/** @returns {
|
|
855
|
-
static
|
|
814
|
+
/** @returns {Sections} */
|
|
815
|
+
static Sections() {
|
|
856
816
|
return Joi.object({
|
|
857
817
|
acknowledged: Joi.boolean(),
|
|
858
818
|
matched_count: Joi.number(),
|
|
@@ -890,8 +850,8 @@ class ThemePartnerModel {
|
|
|
890
850
|
});
|
|
891
851
|
}
|
|
892
852
|
|
|
893
|
-
/** @returns {
|
|
894
|
-
static
|
|
853
|
+
/** @returns {PublishExtensionSection} */
|
|
854
|
+
static PublishExtensionSection() {
|
|
895
855
|
return Joi.object({
|
|
896
856
|
extension_id: Joi.string().allow(""),
|
|
897
857
|
bundle_name: Joi.string().allow(""),
|
|
@@ -903,32 +863,32 @@ class ThemePartnerModel {
|
|
|
903
863
|
});
|
|
904
864
|
}
|
|
905
865
|
|
|
906
|
-
/** @returns {
|
|
907
|
-
static
|
|
866
|
+
/** @returns {PreviewExtension} */
|
|
867
|
+
static PreviewExtension() {
|
|
908
868
|
return Joi.object({
|
|
909
869
|
application_id: Joi.string().allow(""),
|
|
910
870
|
section_preview_hash: Joi.string().allow(""),
|
|
911
871
|
});
|
|
912
872
|
}
|
|
913
873
|
|
|
914
|
-
/** @returns {
|
|
915
|
-
static
|
|
874
|
+
/** @returns {ExtensionPreview} */
|
|
875
|
+
static ExtensionPreview() {
|
|
916
876
|
return Joi.object({
|
|
917
877
|
message: Joi.string().allow(""),
|
|
918
878
|
});
|
|
919
879
|
}
|
|
920
880
|
|
|
921
|
-
/** @returns {
|
|
922
|
-
static
|
|
881
|
+
/** @returns {ExtensionSectionPublish} */
|
|
882
|
+
static ExtensionSectionPublish() {
|
|
923
883
|
return Joi.object({
|
|
924
|
-
|
|
884
|
+
sections: ThemePartnerModel.Sections(),
|
|
925
885
|
});
|
|
926
886
|
}
|
|
927
887
|
|
|
928
888
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
929
889
|
static AvailablePageSectionMetaAttributes() {
|
|
930
890
|
return Joi.object({
|
|
931
|
-
attributes: Joi.any(),
|
|
891
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
932
892
|
});
|
|
933
893
|
}
|
|
934
894
|
|
|
@@ -939,8 +899,7 @@ class ThemePartnerModel {
|
|
|
939
899
|
description: Joi.string().allow(""),
|
|
940
900
|
meta_tags: Joi.array().items(ThemePartnerModel.SEOMetaItem()),
|
|
941
901
|
sitemap: ThemePartnerModel.SEOSitemap(),
|
|
942
|
-
|
|
943
|
-
canonical_url: Joi.string().allow(""),
|
|
902
|
+
breadcrumb: Joi.array().items(ThemePartnerModel.SEObreadcrumb()),
|
|
944
903
|
_id: Joi.string().allow(""),
|
|
945
904
|
});
|
|
946
905
|
}
|
|
@@ -989,12 +948,11 @@ class ThemePartnerModel {
|
|
|
989
948
|
/** @returns {AvailablePageSchemaSections} */
|
|
990
949
|
static AvailablePageSchemaSections() {
|
|
991
950
|
return Joi.object({
|
|
992
|
-
_id: Joi.string().allow(""),
|
|
993
951
|
name: Joi.string().allow(""),
|
|
994
952
|
label: Joi.string().allow(""),
|
|
995
|
-
props: Joi.any(),
|
|
953
|
+
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
996
954
|
blocks: Joi.array().items(Joi.any()),
|
|
997
|
-
preset: Joi.any(),
|
|
955
|
+
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
998
956
|
predicate: ThemePartnerModel.AvailablePagePredicate(),
|
|
999
957
|
__source: ThemePartnerModel.SectionSource(),
|
|
1000
958
|
});
|
|
@@ -1068,7 +1026,7 @@ class ThemePartnerModel {
|
|
|
1068
1026
|
/** @returns {MarketplaceThemeSchema} */
|
|
1069
1027
|
static MarketplaceThemeSchema() {
|
|
1070
1028
|
return Joi.object({
|
|
1071
|
-
|
|
1029
|
+
themes: Joi.array().items(ThemePartnerModel.MarketplaceTheme()),
|
|
1072
1030
|
page: ThemePartnerModel.PaginationSchema(),
|
|
1073
1031
|
});
|
|
1074
1032
|
}
|
|
@@ -1104,7 +1062,6 @@ class ThemePartnerModel {
|
|
|
1104
1062
|
created_at: Joi.string().allow(""),
|
|
1105
1063
|
updated_at: Joi.string().allow(""),
|
|
1106
1064
|
template_theme_id: Joi.string().allow(""),
|
|
1107
|
-
theme_type: Joi.string().allow(""),
|
|
1108
1065
|
});
|
|
1109
1066
|
}
|
|
1110
1067
|
|
|
@@ -1217,12 +1174,32 @@ class ThemePartnerModel {
|
|
|
1217
1174
|
admin_id: Joi.string().allow("").required(),
|
|
1218
1175
|
user_id: Joi.string().allow("").required(),
|
|
1219
1176
|
status: Joi.string().allow("").required(),
|
|
1220
|
-
rejection_reasons:
|
|
1177
|
+
rejection_reasons: ThemePartnerModel.RejectedMessages().required(),
|
|
1221
1178
|
created_at: Joi.string().allow(""),
|
|
1222
1179
|
updated_at: Joi.string().allow(""),
|
|
1223
1180
|
});
|
|
1224
1181
|
}
|
|
1225
1182
|
|
|
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
|
+
|
|
1226
1203
|
/** @returns {AllAvailablePageSchema} */
|
|
1227
1204
|
static AllAvailablePageSchema() {
|
|
1228
1205
|
return Joi.object({
|
|
@@ -1245,7 +1222,6 @@ class ThemePartnerModel {
|
|
|
1245
1222
|
static BlitzkriegApiErrorSchema() {
|
|
1246
1223
|
return Joi.object({
|
|
1247
1224
|
message: Joi.string().allow(""),
|
|
1248
|
-
level: Joi.string().allow(""),
|
|
1249
1225
|
});
|
|
1250
1226
|
}
|
|
1251
1227
|
|
|
@@ -1271,7 +1247,7 @@ class ThemePartnerModel {
|
|
|
1271
1247
|
name: Joi.string().allow(""),
|
|
1272
1248
|
template_theme_id: Joi.string().allow(""),
|
|
1273
1249
|
version: Joi.string().allow(""),
|
|
1274
|
-
styles: Joi.any(),
|
|
1250
|
+
styles: Joi.object().pattern(/\S/, Joi.any()),
|
|
1275
1251
|
created_at: Joi.string().allow(""),
|
|
1276
1252
|
updated_at: Joi.string().allow(""),
|
|
1277
1253
|
assets: ThemePartnerModel.Assets(),
|
|
@@ -1279,7 +1255,6 @@ class ThemePartnerModel {
|
|
|
1279
1255
|
theme_type: Joi.string().allow(""),
|
|
1280
1256
|
company_id: Joi.number(),
|
|
1281
1257
|
src: Joi.string().allow(""),
|
|
1282
|
-
global_sections: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
1283
1258
|
});
|
|
1284
1259
|
}
|
|
1285
1260
|
|
|
@@ -1326,7 +1301,7 @@ class ThemePartnerModel {
|
|
|
1326
1301
|
static ThemeConfiguration() {
|
|
1327
1302
|
return Joi.object({
|
|
1328
1303
|
name: Joi.string().allow(""),
|
|
1329
|
-
global_config: Joi.any(),
|
|
1304
|
+
global_config: Joi.object().pattern(/\S/, Joi.any()),
|
|
1330
1305
|
page: Joi.array().items(ThemePartnerModel.ThemeConfigListPage()),
|
|
1331
1306
|
});
|
|
1332
1307
|
}
|
|
@@ -1378,7 +1353,7 @@ class ThemePartnerModel {
|
|
|
1378
1353
|
/** @returns {ThemeConfigListPageSettingsProps} */
|
|
1379
1354
|
static ThemeConfigListPageSettingsProps() {
|
|
1380
1355
|
return Joi.object({
|
|
1381
|
-
props: Joi.any(),
|
|
1356
|
+
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
1382
1357
|
});
|
|
1383
1358
|
}
|
|
1384
1359
|
|
|
@@ -1497,11 +1472,10 @@ class ThemePartnerModel {
|
|
|
1497
1472
|
/** @returns {SectionItem} */
|
|
1498
1473
|
static SectionItem() {
|
|
1499
1474
|
return Joi.object({
|
|
1500
|
-
props: Joi.array().items(Joi.
|
|
1501
|
-
blocks: Joi.array().items(Joi.
|
|
1475
|
+
props: Joi.array().items(Joi.any()),
|
|
1476
|
+
blocks: Joi.array().items(Joi.any()),
|
|
1502
1477
|
name: Joi.string().allow(""),
|
|
1503
1478
|
label: Joi.string().allow(""),
|
|
1504
|
-
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
1505
1479
|
});
|
|
1506
1480
|
}
|
|
1507
1481
|
|
|
@@ -17,15 +17,11 @@ declare class ThemeValidator {
|
|
|
17
17
|
static deleteOrganizationTheme(): any;
|
|
18
18
|
static getLatestVersionOfThemeBySlug(): any;
|
|
19
19
|
static createNewThemeInOrganization(): any;
|
|
20
|
-
static getThemeRejectionReasons(): any;
|
|
21
20
|
static createExtensionSectionDraft(): any;
|
|
22
|
-
static getExtensionbinding(): any;
|
|
23
21
|
static publishExtensionSections(): any;
|
|
24
22
|
static applyExtensionPreview(): any;
|
|
25
23
|
static removeExtensionPreview(): any;
|
|
24
|
+
static getThemeRejectionReasons(): any;
|
|
26
25
|
static getThemeVersions(): any;
|
|
27
26
|
static createTheme(): any;
|
|
28
|
-
static getOrgnaizationDefaultTheme(): any;
|
|
29
|
-
static getSystemPage(): any;
|
|
30
|
-
static getAppliedTheme(): any;
|
|
31
27
|
}
|
|
@@ -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.UpdateThemeRequestBody().required(),
|
|
84
84
|
}).required();
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -139,45 +139,37 @@ 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
|
-
|
|
148
142
|
static createExtensionSectionDraft() {
|
|
149
143
|
return Joi.object({
|
|
150
144
|
extensionId: Joi.string().allow("").required(),
|
|
151
|
-
body: ThemeModel.
|
|
152
|
-
}).required();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
static getExtensionbinding() {
|
|
156
|
-
return Joi.object({
|
|
157
|
-
extensionId: Joi.string().allow("").required(),
|
|
158
|
-
bundleName: Joi.string().allow("").required(),
|
|
159
|
-
type: Joi.string().allow("").required(),
|
|
145
|
+
body: ThemeModel.DraftExtensionSection().required(),
|
|
160
146
|
}).required();
|
|
161
147
|
}
|
|
162
148
|
|
|
163
149
|
static publishExtensionSections() {
|
|
164
150
|
return Joi.object({
|
|
165
151
|
extensionId: Joi.string().allow("").required(),
|
|
166
|
-
body: ThemeModel.
|
|
152
|
+
body: ThemeModel.PublishExtensionSection().required(),
|
|
167
153
|
}).required();
|
|
168
154
|
}
|
|
169
155
|
|
|
170
156
|
static applyExtensionPreview() {
|
|
171
157
|
return Joi.object({
|
|
172
158
|
extensionSectionId: Joi.string().allow("").required(),
|
|
173
|
-
body: ThemeModel.
|
|
159
|
+
body: ThemeModel.PreviewExtension().required(),
|
|
174
160
|
}).required();
|
|
175
161
|
}
|
|
176
162
|
|
|
177
163
|
static removeExtensionPreview() {
|
|
178
164
|
return Joi.object({
|
|
179
165
|
extensionSectionId: Joi.string().allow("").required(),
|
|
180
|
-
body: ThemeModel.
|
|
166
|
+
body: ThemeModel.PreviewExtension().required(),
|
|
167
|
+
}).required();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
static getThemeRejectionReasons() {
|
|
171
|
+
return Joi.object({
|
|
172
|
+
themeId: Joi.string().allow("").required(),
|
|
181
173
|
}).required();
|
|
182
174
|
}
|
|
183
175
|
|
|
@@ -194,29 +186,7 @@ class ThemeValidator {
|
|
|
194
186
|
companyId: Joi.number().required(),
|
|
195
187
|
applicationId: Joi.string().allow("").required(),
|
|
196
188
|
|
|
197
|
-
body: ThemeModel.
|
|
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(),
|
|
189
|
+
body: ThemeModel.CreateNewTheme().required(),
|
|
220
190
|
}).required();
|
|
221
191
|
}
|
|
222
192
|
}
|
|
@@ -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.DeliverySummaryResult>} - 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.DeliverySummaryResult>;
|
|
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.DeliveryDetailsResult>} - 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.DeliveryDetailsResult>;
|
|
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.DeliveryTsResult>} - 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.DeliveryTsResult>;
|
|
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.FilterReportResult[]>} - 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.FilterReportResult[]>;
|
|
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.CancelDownloadResult>} - 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.CancelDownloadResult>;
|
|
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.HistoryResult>} - 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.HistoryResult>;
|
|
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.InvalidEventsResult[]>} - 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.InvalidEventsResult[]>;
|
|
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.SubscriberConfigDetails>} - 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.SubscriberConfigDetails>;
|
|
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.SubscriberUpdateResult>} - 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.SubscriberUpdateResult>;
|
|
108
108
|
}
|
|
109
109
|
import WebhookPartnerModel = require("./WebhookPartnerModel");
|