@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
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 +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -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 +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- 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 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -154,7 +154,16 @@ const Joi = require("joi");
|
|
|
154
154
|
* @property {Object[]} [blocks]
|
|
155
155
|
* @property {Object} [preset]
|
|
156
156
|
* @property {AvailablePagePredicate} [predicate]
|
|
157
|
-
* @property {
|
|
157
|
+
* @property {SectionSource} [__source]
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @typedef SectionSource
|
|
162
|
+
* @property {string} [id] - The source id specifying the source of the section.
|
|
163
|
+
* @property {string} [bundle_name] - This is the extension binding name
|
|
164
|
+
* containing this section.
|
|
165
|
+
* @property {string} [type] - This is source type. It will either be
|
|
166
|
+
* themeBundle or extension.
|
|
158
167
|
*/
|
|
159
168
|
|
|
160
169
|
/**
|
|
@@ -271,7 +280,7 @@ const Joi = require("joi");
|
|
|
271
280
|
*/
|
|
272
281
|
|
|
273
282
|
/**
|
|
274
|
-
* @typedef
|
|
283
|
+
* @typedef ThemeUpgradable
|
|
275
284
|
* @property {boolean} [upgrade] - Indicates if the theme is upgradable or not
|
|
276
285
|
* @property {ThemeVersions} [versions]
|
|
277
286
|
* @property {string} [message] - A message describing the theme upgrade status
|
|
@@ -586,7 +595,7 @@ const Joi = require("joi");
|
|
|
586
595
|
*/
|
|
587
596
|
|
|
588
597
|
/**
|
|
589
|
-
* @typedef
|
|
598
|
+
* @typedef DummyTheme
|
|
590
599
|
* @property {string} [message]
|
|
591
600
|
*/
|
|
592
601
|
|
|
@@ -665,7 +674,8 @@ const Joi = require("joi");
|
|
|
665
674
|
* | "register"
|
|
666
675
|
* | "shipping-policy"
|
|
667
676
|
* | "return-policy"
|
|
668
|
-
* | "order-status"
|
|
677
|
+
* | "order-status"
|
|
678
|
+
* | "locate-us"} PageType
|
|
669
679
|
*/
|
|
670
680
|
|
|
671
681
|
class ThemePlatformModel {
|
|
@@ -796,7 +806,7 @@ class ThemePlatformModel {
|
|
|
796
806
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
797
807
|
static AvailablePageSectionMetaAttributes() {
|
|
798
808
|
return Joi.object({
|
|
799
|
-
attributes: Joi.any(),
|
|
809
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
800
810
|
});
|
|
801
811
|
}
|
|
802
812
|
|
|
@@ -858,11 +868,20 @@ class ThemePlatformModel {
|
|
|
858
868
|
return Joi.object({
|
|
859
869
|
name: Joi.string().allow(""),
|
|
860
870
|
label: Joi.string().allow(""),
|
|
861
|
-
props: Joi.any(),
|
|
871
|
+
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
862
872
|
blocks: Joi.array().items(Joi.any()),
|
|
863
|
-
preset: Joi.any(),
|
|
873
|
+
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
864
874
|
predicate: ThemePlatformModel.AvailablePagePredicate(),
|
|
865
|
-
|
|
875
|
+
__source: ThemePlatformModel.SectionSource(),
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/** @returns {SectionSource} */
|
|
880
|
+
static SectionSource() {
|
|
881
|
+
return Joi.object({
|
|
882
|
+
id: Joi.string().allow(""),
|
|
883
|
+
bundle_name: Joi.string().allow(""),
|
|
884
|
+
type: Joi.string().allow(""),
|
|
866
885
|
});
|
|
867
886
|
}
|
|
868
887
|
|
|
@@ -900,7 +919,7 @@ class ThemePlatformModel {
|
|
|
900
919
|
return Joi.object({
|
|
901
920
|
selected: Joi.string().allow(""),
|
|
902
921
|
exact_url: Joi.string().allow(""),
|
|
903
|
-
query: Joi.any(),
|
|
922
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
904
923
|
});
|
|
905
924
|
}
|
|
906
925
|
|
|
@@ -996,7 +1015,7 @@ class ThemePlatformModel {
|
|
|
996
1015
|
name: Joi.string().allow(""),
|
|
997
1016
|
template_theme_id: Joi.string().allow(""),
|
|
998
1017
|
version: Joi.string().allow(""),
|
|
999
|
-
styles: Joi.any(),
|
|
1018
|
+
styles: Joi.object().pattern(/\S/, Joi.any()),
|
|
1000
1019
|
created_at: Joi.string().allow(""),
|
|
1001
1020
|
updated_at: Joi.string().allow(""),
|
|
1002
1021
|
assets: ThemePlatformModel.Assets(),
|
|
@@ -1007,8 +1026,8 @@ class ThemePlatformModel {
|
|
|
1007
1026
|
});
|
|
1008
1027
|
}
|
|
1009
1028
|
|
|
1010
|
-
/** @returns {
|
|
1011
|
-
static
|
|
1029
|
+
/** @returns {ThemeUpgradable} */
|
|
1030
|
+
static ThemeUpgradable() {
|
|
1012
1031
|
return Joi.object({
|
|
1013
1032
|
upgrade: Joi.boolean(),
|
|
1014
1033
|
versions: ThemePlatformModel.ThemeVersions(),
|
|
@@ -1074,7 +1093,7 @@ class ThemePlatformModel {
|
|
|
1074
1093
|
static ThemeConfiguration() {
|
|
1075
1094
|
return Joi.object({
|
|
1076
1095
|
name: Joi.string().allow(""),
|
|
1077
|
-
global_config: Joi.any(),
|
|
1096
|
+
global_config: Joi.object().pattern(/\S/, Joi.any()),
|
|
1078
1097
|
page: Joi.array().items(ThemePlatformModel.ThemeConfigListPage()),
|
|
1079
1098
|
});
|
|
1080
1099
|
}
|
|
@@ -1126,7 +1145,7 @@ class ThemePlatformModel {
|
|
|
1126
1145
|
/** @returns {ThemeConfigListPageSettingsProps} */
|
|
1127
1146
|
static ThemeConfigListPageSettingsProps() {
|
|
1128
1147
|
return Joi.object({
|
|
1129
|
-
props: Joi.any(),
|
|
1148
|
+
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
1130
1149
|
});
|
|
1131
1150
|
}
|
|
1132
1151
|
|
|
@@ -1405,8 +1424,8 @@ class ThemePlatformModel {
|
|
|
1405
1424
|
});
|
|
1406
1425
|
}
|
|
1407
1426
|
|
|
1408
|
-
/** @returns {
|
|
1409
|
-
static
|
|
1427
|
+
/** @returns {DummyTheme} */
|
|
1428
|
+
static DummyTheme() {
|
|
1410
1429
|
return Joi.object({
|
|
1411
1430
|
message: Joi.string().allow(""),
|
|
1412
1431
|
});
|
|
@@ -1551,7 +1570,9 @@ class ThemePlatformModel {
|
|
|
1551
1570
|
|
|
1552
1571
|
"return-policy",
|
|
1553
1572
|
|
|
1554
|
-
"order-status"
|
|
1573
|
+
"order-status",
|
|
1574
|
+
|
|
1575
|
+
"locate-us"
|
|
1555
1576
|
);
|
|
1556
1577
|
}
|
|
1557
1578
|
}
|
|
@@ -39,13 +39,13 @@ declare class User {
|
|
|
39
39
|
*
|
|
40
40
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
41
41
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
42
|
-
* @returns {Promise<UserPlatformModel.
|
|
42
|
+
* @returns {Promise<UserPlatformModel.UserAttributeDefinitionDetails>} -
|
|
43
43
|
* Success response
|
|
44
44
|
* @name createUserAttributeDefinition
|
|
45
45
|
* @summary: Create a User Attribute Definition
|
|
46
46
|
* @description: Create a new User Attribute Definition - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/createUserAttributeDefinition/).
|
|
47
47
|
*/
|
|
48
|
-
createUserAttributeDefinition({ body, requestHeaders }?: UserPlatformApplicationValidator.CreateUserAttributeDefinitionParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
48
|
+
createUserAttributeDefinition({ body, requestHeaders }?: UserPlatformApplicationValidator.CreateUserAttributeDefinitionParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserAttributeDefinitionDetails>;
|
|
49
49
|
/**
|
|
50
50
|
* @param {UserPlatformApplicationValidator.CreateUserGroupParam} arg - Arg object
|
|
51
51
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -95,24 +95,24 @@ declare class User {
|
|
|
95
95
|
* @param {UserPlatformApplicationValidator.DeleteUserAttributeParam} arg - Arg object
|
|
96
96
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
97
97
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<UserPlatformModel.
|
|
98
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
99
99
|
* @name deleteUserAttribute
|
|
100
100
|
* @summary: Delete User Attribute
|
|
101
101
|
* @description: Delete User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttribute/).
|
|
102
102
|
*/
|
|
103
|
-
deleteUserAttribute({ attributeDefId, userId, requestHeaders }?: UserPlatformApplicationValidator.DeleteUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
103
|
+
deleteUserAttribute({ attributeDefId, userId, requestHeaders }?: UserPlatformApplicationValidator.DeleteUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.SuccessMessage>;
|
|
104
104
|
/**
|
|
105
105
|
* @param {UserPlatformApplicationValidator.DeleteUserAttributeDefinitionByIdParam} arg
|
|
106
106
|
* - Arg object
|
|
107
107
|
*
|
|
108
108
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
109
109
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
110
|
-
* @returns {Promise<UserPlatformModel.
|
|
110
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
111
111
|
* @name deleteUserAttributeDefinitionById
|
|
112
112
|
* @summary: Delete User Attribute Definition
|
|
113
113
|
* @description: Delete a user attribute definition by its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttributeDefinitionById/).
|
|
114
114
|
*/
|
|
115
|
-
deleteUserAttributeDefinitionById({ attributeDefId, requestHeaders }?: UserPlatformApplicationValidator.DeleteUserAttributeDefinitionByIdParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
115
|
+
deleteUserAttributeDefinitionById({ attributeDefId, requestHeaders }?: UserPlatformApplicationValidator.DeleteUserAttributeDefinitionByIdParam, { responseHeaders }?: object): Promise<UserPlatformModel.SuccessMessage>;
|
|
116
116
|
/**
|
|
117
117
|
* @param {UserPlatformApplicationValidator.GetActiveSessionsParam} arg - Arg object
|
|
118
118
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -147,24 +147,24 @@ declare class User {
|
|
|
147
147
|
* @param {UserPlatformApplicationValidator.GetUserAttributeParam} arg - Arg object
|
|
148
148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
149
149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
150
|
-
* @returns {Promise<UserPlatformModel.
|
|
150
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
151
151
|
* @name getUserAttribute
|
|
152
152
|
* @summary: Get User Attribute
|
|
153
153
|
* @description: Get User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttribute/).
|
|
154
154
|
*/
|
|
155
|
-
getUserAttribute({ attributeDefId, userId, requestHeaders }?: UserPlatformApplicationValidator.GetUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
155
|
+
getUserAttribute({ attributeDefId, userId, requestHeaders }?: UserPlatformApplicationValidator.GetUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserAttribute>;
|
|
156
156
|
/**
|
|
157
157
|
* @param {UserPlatformApplicationValidator.GetUserAttributeByIdParam} arg
|
|
158
158
|
* - Arg object
|
|
159
159
|
*
|
|
160
160
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
161
161
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
162
|
-
* @returns {Promise<UserPlatformModel.
|
|
162
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
163
163
|
* @name getUserAttributeById
|
|
164
164
|
* @summary: Get User Attribute
|
|
165
165
|
* @description: Retrieve User Attribute details by ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttributeById/).
|
|
166
166
|
*/
|
|
167
|
-
getUserAttributeById({ attributeId, requestHeaders }?: UserPlatformApplicationValidator.GetUserAttributeByIdParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
167
|
+
getUserAttributeById({ attributeId, requestHeaders }?: UserPlatformApplicationValidator.GetUserAttributeByIdParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserAttribute>;
|
|
168
168
|
/**
|
|
169
169
|
* @param {UserPlatformApplicationValidator.GetUserAttributeDefinitionByIdParam} arg
|
|
170
170
|
* - Arg object
|
|
@@ -268,12 +268,12 @@ declare class User {
|
|
|
268
268
|
* @param {UserPlatformApplicationValidator.UpdateUserAttributeParam} arg - Arg object
|
|
269
269
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
270
270
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
271
|
-
* @returns {Promise<UserPlatformModel.
|
|
271
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
272
272
|
* @name updateUserAttribute
|
|
273
273
|
* @summary: Update Or Create User Attribute
|
|
274
274
|
* @description: Update Or Create User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserAttribute/).
|
|
275
275
|
*/
|
|
276
|
-
updateUserAttribute({ attributeDefId, userId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.
|
|
276
|
+
updateUserAttribute({ attributeDefId, userId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserAttributeParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserAttribute>;
|
|
277
277
|
/**
|
|
278
278
|
* @param {UserPlatformApplicationValidator.UpdateUserAttributeDefinitionParam} arg
|
|
279
279
|
* - Arg object
|
|
@@ -254,7 +254,7 @@ class User {
|
|
|
254
254
|
*
|
|
255
255
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
256
256
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
257
|
-
* @returns {Promise<UserPlatformModel.
|
|
257
|
+
* @returns {Promise<UserPlatformModel.UserAttributeDefinitionDetails>} -
|
|
258
258
|
* Success response
|
|
259
259
|
* @name createUserAttributeDefinition
|
|
260
260
|
* @summary: Create a User Attribute Definition
|
|
@@ -311,7 +311,7 @@ class User {
|
|
|
311
311
|
|
|
312
312
|
const {
|
|
313
313
|
error: res_error,
|
|
314
|
-
} = UserPlatformModel.
|
|
314
|
+
} = UserPlatformModel.UserAttributeDefinitionDetails().validate(
|
|
315
315
|
responseData,
|
|
316
316
|
{ abortEarly: false, allowUnknown: true }
|
|
317
317
|
);
|
|
@@ -664,7 +664,7 @@ class User {
|
|
|
664
664
|
* @param {UserPlatformApplicationValidator.DeleteUserAttributeParam} arg - Arg object
|
|
665
665
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
666
666
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
667
|
-
* @returns {Promise<UserPlatformModel.
|
|
667
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
668
668
|
* @name deleteUserAttribute
|
|
669
669
|
* @summary: Delete User Attribute
|
|
670
670
|
* @description: Delete User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttribute/).
|
|
@@ -716,7 +716,7 @@ class User {
|
|
|
716
716
|
|
|
717
717
|
const {
|
|
718
718
|
error: res_error,
|
|
719
|
-
} = UserPlatformModel.
|
|
719
|
+
} = UserPlatformModel.SuccessMessage().validate(responseData, {
|
|
720
720
|
abortEarly: false,
|
|
721
721
|
allowUnknown: true,
|
|
722
722
|
});
|
|
@@ -741,7 +741,7 @@ class User {
|
|
|
741
741
|
*
|
|
742
742
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
743
743
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
744
|
-
* @returns {Promise<UserPlatformModel.
|
|
744
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
745
745
|
* @name deleteUserAttributeDefinitionById
|
|
746
746
|
* @summary: Delete User Attribute Definition
|
|
747
747
|
* @description: Delete a user attribute definition by its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttributeDefinitionById/).
|
|
@@ -793,7 +793,7 @@ class User {
|
|
|
793
793
|
|
|
794
794
|
const {
|
|
795
795
|
error: res_error,
|
|
796
|
-
} = UserPlatformModel.
|
|
796
|
+
} = UserPlatformModel.SuccessMessage().validate(responseData, {
|
|
797
797
|
abortEarly: false,
|
|
798
798
|
allowUnknown: true,
|
|
799
799
|
});
|
|
@@ -1055,7 +1055,7 @@ class User {
|
|
|
1055
1055
|
* @param {UserPlatformApplicationValidator.GetUserAttributeParam} arg - Arg object
|
|
1056
1056
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1057
1057
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1058
|
-
* @returns {Promise<UserPlatformModel.
|
|
1058
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
1059
1059
|
* @name getUserAttribute
|
|
1060
1060
|
* @summary: Get User Attribute
|
|
1061
1061
|
* @description: Get User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttribute/).
|
|
@@ -1107,7 +1107,7 @@ class User {
|
|
|
1107
1107
|
|
|
1108
1108
|
const {
|
|
1109
1109
|
error: res_error,
|
|
1110
|
-
} = UserPlatformModel.
|
|
1110
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
1111
1111
|
abortEarly: false,
|
|
1112
1112
|
allowUnknown: true,
|
|
1113
1113
|
});
|
|
@@ -1132,7 +1132,7 @@ class User {
|
|
|
1132
1132
|
*
|
|
1133
1133
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1134
1134
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1135
|
-
* @returns {Promise<UserPlatformModel.
|
|
1135
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
1136
1136
|
* @name getUserAttributeById
|
|
1137
1137
|
* @summary: Get User Attribute
|
|
1138
1138
|
* @description: Retrieve User Attribute details by ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttributeById/).
|
|
@@ -1184,7 +1184,7 @@ class User {
|
|
|
1184
1184
|
|
|
1185
1185
|
const {
|
|
1186
1186
|
error: res_error,
|
|
1187
|
-
} = UserPlatformModel.
|
|
1187
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
1188
1188
|
abortEarly: false,
|
|
1189
1189
|
allowUnknown: true,
|
|
1190
1190
|
});
|
|
@@ -1987,7 +1987,7 @@ class User {
|
|
|
1987
1987
|
* @param {UserPlatformApplicationValidator.UpdateUserAttributeParam} arg - Arg object
|
|
1988
1988
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1989
1989
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1990
|
-
* @returns {Promise<UserPlatformModel.
|
|
1990
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
1991
1991
|
* @name updateUserAttribute
|
|
1992
1992
|
* @summary: Update Or Create User Attribute
|
|
1993
1993
|
* @description: Update Or Create User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserAttribute/).
|
|
@@ -2049,7 +2049,7 @@ class User {
|
|
|
2049
2049
|
|
|
2050
2050
|
const {
|
|
2051
2051
|
error: res_error,
|
|
2052
|
-
} = UserPlatformModel.
|
|
2052
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
2053
2053
|
abortEarly: false,
|
|
2054
2054
|
allowUnknown: true,
|
|
2055
2055
|
});
|
|
@@ -133,7 +133,7 @@ export = UserPlatformApplicationValidator;
|
|
|
133
133
|
* @property {string} attributeDefId - The unique identifier of the attribute
|
|
134
134
|
* definition to update.
|
|
135
135
|
* @property {string} userId - The unique identifier of the user to update.
|
|
136
|
-
* @property {UserPlatformModel.
|
|
136
|
+
* @property {UserPlatformModel.CreateUserAttribute} body
|
|
137
137
|
*/
|
|
138
138
|
/**
|
|
139
139
|
* @typedef UpdateUserAttributeDefinitionParam
|
|
@@ -447,7 +447,7 @@ type UpdateUserAttributeParam = {
|
|
|
447
447
|
* - The unique identifier of the user to update.
|
|
448
448
|
*/
|
|
449
449
|
userId: string;
|
|
450
|
-
body: UserPlatformModel.
|
|
450
|
+
body: UserPlatformModel.CreateUserAttribute;
|
|
451
451
|
};
|
|
452
452
|
type UpdateUserAttributeDefinitionParam = {
|
|
453
453
|
/**
|
|
@@ -160,7 +160,7 @@ const UserPlatformModel = require("./UserPlatformModel");
|
|
|
160
160
|
* @property {string} attributeDefId - The unique identifier of the attribute
|
|
161
161
|
* definition to update.
|
|
162
162
|
* @property {string} userId - The unique identifier of the user to update.
|
|
163
|
-
* @property {UserPlatformModel.
|
|
163
|
+
* @property {UserPlatformModel.CreateUserAttribute} body
|
|
164
164
|
*/
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -383,7 +383,7 @@ class UserPlatformApplicationValidator {
|
|
|
383
383
|
attributeDefId: Joi.string().allow("").required(),
|
|
384
384
|
userId: Joi.string().allow("").required(),
|
|
385
385
|
|
|
386
|
-
body: UserPlatformModel.
|
|
386
|
+
body: UserPlatformModel.CreateUserAttribute().required(),
|
|
387
387
|
}).required();
|
|
388
388
|
}
|
|
389
389
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = UserPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef SuccessMessage
|
|
4
4
|
* @property {string} [success]
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
@@ -23,7 +23,7 @@ export = UserPlatformModel;
|
|
|
23
23
|
* @property {number} [__v] - The version number of the attribute.
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
|
-
* @typedef
|
|
26
|
+
* @typedef UserAttributeDefinitionDetails
|
|
27
27
|
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
28
28
|
* @property {string} [name] - The attribute name.
|
|
29
29
|
* @property {string} [slug] - The attribute key.
|
|
@@ -49,19 +49,19 @@ export = UserPlatformModel;
|
|
|
49
49
|
* @property {Object} [value] - The validation value.
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
|
-
* @typedef
|
|
52
|
+
* @typedef UserAttribute
|
|
53
53
|
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
54
54
|
* @property {string} [name] - The name of user attribute definition.
|
|
55
55
|
* @property {string} [user_id] - The unique identifier for the user.
|
|
56
56
|
* @property {string} [application_id] - The application ID.
|
|
57
57
|
* @property {string} [type] - The attribute type.
|
|
58
|
-
* @property {boolean} [
|
|
58
|
+
* @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
|
|
59
59
|
* @property {Object} [attribute]
|
|
60
60
|
* @property {string} [updated_by]
|
|
61
61
|
*/
|
|
62
62
|
/**
|
|
63
|
-
* @typedef
|
|
64
|
-
* @property {boolean} [
|
|
63
|
+
* @typedef CreateUserAttribute
|
|
64
|
+
* @property {boolean} [customer_overridden]
|
|
65
65
|
* @property {Object} [attribute]
|
|
66
66
|
*/
|
|
67
67
|
/**
|
|
@@ -473,11 +473,11 @@ export = UserPlatformModel;
|
|
|
473
473
|
declare class UserPlatformModel {
|
|
474
474
|
}
|
|
475
475
|
declare namespace UserPlatformModel {
|
|
476
|
-
export {
|
|
476
|
+
export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
|
|
477
477
|
}
|
|
478
|
-
/** @returns {
|
|
479
|
-
declare function
|
|
480
|
-
type
|
|
478
|
+
/** @returns {SuccessMessage} */
|
|
479
|
+
declare function SuccessMessage(): SuccessMessage;
|
|
480
|
+
type SuccessMessage = {
|
|
481
481
|
success?: string;
|
|
482
482
|
};
|
|
483
483
|
/** @returns {UserAttributeDefinition} */
|
|
@@ -545,9 +545,9 @@ type UserAttributeDefinition = {
|
|
|
545
545
|
*/
|
|
546
546
|
__v?: number;
|
|
547
547
|
};
|
|
548
|
-
/** @returns {
|
|
549
|
-
declare function
|
|
550
|
-
type
|
|
548
|
+
/** @returns {UserAttributeDefinitionDetails} */
|
|
549
|
+
declare function UserAttributeDefinitionDetails(): UserAttributeDefinitionDetails;
|
|
550
|
+
type UserAttributeDefinitionDetails = {
|
|
551
551
|
/**
|
|
552
552
|
* - The unique identifier for the attribute definition.
|
|
553
553
|
*/
|
|
@@ -627,9 +627,9 @@ type UserAttributeDefinitionValidation = {
|
|
|
627
627
|
*/
|
|
628
628
|
value?: any;
|
|
629
629
|
};
|
|
630
|
-
/** @returns {
|
|
631
|
-
declare function
|
|
632
|
-
type
|
|
630
|
+
/** @returns {UserAttribute} */
|
|
631
|
+
declare function UserAttribute(): UserAttribute;
|
|
632
|
+
type UserAttribute = {
|
|
633
633
|
/**
|
|
634
634
|
* - The unique identifier for the attribute definition.
|
|
635
635
|
*/
|
|
@@ -653,14 +653,14 @@ type UserAttributeResponse = {
|
|
|
653
653
|
/**
|
|
654
654
|
* - Whether the attribute is customer-editable.
|
|
655
655
|
*/
|
|
656
|
-
|
|
656
|
+
customer_overridden?: boolean;
|
|
657
657
|
attribute?: any;
|
|
658
658
|
updated_by?: string;
|
|
659
659
|
};
|
|
660
|
-
/** @returns {
|
|
661
|
-
declare function
|
|
662
|
-
type
|
|
663
|
-
|
|
660
|
+
/** @returns {CreateUserAttribute} */
|
|
661
|
+
declare function CreateUserAttribute(): CreateUserAttribute;
|
|
662
|
+
type CreateUserAttribute = {
|
|
663
|
+
customer_overridden?: boolean;
|
|
664
664
|
attribute?: any;
|
|
665
665
|
};
|
|
666
666
|
/** @returns {CreateUserAttributeDefinition} */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef SuccessMessage
|
|
5
5
|
* @property {string} [success]
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const Joi = require("joi");
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @typedef
|
|
29
|
+
* @typedef UserAttributeDefinitionDetails
|
|
30
30
|
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
31
31
|
* @property {string} [name] - The attribute name.
|
|
32
32
|
* @property {string} [slug] - The attribute key.
|
|
@@ -54,20 +54,20 @@ const Joi = require("joi");
|
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* @typedef
|
|
57
|
+
* @typedef UserAttribute
|
|
58
58
|
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
59
59
|
* @property {string} [name] - The name of user attribute definition.
|
|
60
60
|
* @property {string} [user_id] - The unique identifier for the user.
|
|
61
61
|
* @property {string} [application_id] - The application ID.
|
|
62
62
|
* @property {string} [type] - The attribute type.
|
|
63
|
-
* @property {boolean} [
|
|
63
|
+
* @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
|
|
64
64
|
* @property {Object} [attribute]
|
|
65
65
|
* @property {string} [updated_by]
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* @typedef
|
|
70
|
-
* @property {boolean} [
|
|
69
|
+
* @typedef CreateUserAttribute
|
|
70
|
+
* @property {boolean} [customer_overridden]
|
|
71
71
|
* @property {Object} [attribute]
|
|
72
72
|
*/
|
|
73
73
|
|
|
@@ -532,8 +532,8 @@ const Joi = require("joi");
|
|
|
532
532
|
*/
|
|
533
533
|
|
|
534
534
|
class UserPlatformModel {
|
|
535
|
-
/** @returns {
|
|
536
|
-
static
|
|
535
|
+
/** @returns {SuccessMessage} */
|
|
536
|
+
static SuccessMessage() {
|
|
537
537
|
return Joi.object({
|
|
538
538
|
success: Joi.string().allow(""),
|
|
539
539
|
});
|
|
@@ -561,8 +561,8 @@ class UserPlatformModel {
|
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
/** @returns {
|
|
565
|
-
static
|
|
564
|
+
/** @returns {UserAttributeDefinitionDetails} */
|
|
565
|
+
static UserAttributeDefinitionDetails() {
|
|
566
566
|
return Joi.object({
|
|
567
567
|
_id: Joi.string().allow(""),
|
|
568
568
|
name: Joi.string().allow(""),
|
|
@@ -594,25 +594,25 @@ class UserPlatformModel {
|
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
/** @returns {
|
|
598
|
-
static
|
|
597
|
+
/** @returns {UserAttribute} */
|
|
598
|
+
static UserAttribute() {
|
|
599
599
|
return Joi.object({
|
|
600
600
|
_id: Joi.string().allow(""),
|
|
601
601
|
name: Joi.string().allow(""),
|
|
602
602
|
user_id: Joi.string().allow(""),
|
|
603
603
|
application_id: Joi.string().allow(""),
|
|
604
604
|
type: Joi.string().allow(""),
|
|
605
|
-
|
|
606
|
-
attribute: Joi.any(),
|
|
605
|
+
customer_overridden: Joi.boolean(),
|
|
606
|
+
attribute: Joi.object().pattern(/\S/, Joi.any()),
|
|
607
607
|
updated_by: Joi.string().allow(""),
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
/** @returns {
|
|
612
|
-
static
|
|
611
|
+
/** @returns {CreateUserAttribute} */
|
|
612
|
+
static CreateUserAttribute() {
|
|
613
613
|
return Joi.object({
|
|
614
|
-
|
|
615
|
-
attribute: Joi.any(),
|
|
614
|
+
customer_overridden: Joi.boolean(),
|
|
615
|
+
attribute: Joi.object().pattern(/\S/, Joi.any()),
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
|
|
@@ -736,7 +736,7 @@ class UserPlatformModel {
|
|
|
736
736
|
info: Joi.string().allow(""),
|
|
737
737
|
request_id: Joi.string().allow(""),
|
|
738
738
|
error: Joi.string().allow(""),
|
|
739
|
-
meta: Joi.any(),
|
|
739
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
740
740
|
authenticated: Joi.boolean(),
|
|
741
741
|
});
|
|
742
742
|
}
|
|
@@ -828,7 +828,7 @@ class UserPlatformModel {
|
|
|
828
828
|
last_name: Joi.string().allow(""),
|
|
829
829
|
gender: Joi.string().allow(""),
|
|
830
830
|
username: Joi.string().allow("").required(),
|
|
831
|
-
meta: Joi.any(),
|
|
831
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
832
832
|
external_id: Joi.string().allow(""),
|
|
833
833
|
rr_id: Joi.string().allow(""),
|
|
834
834
|
});
|
|
@@ -1082,7 +1082,7 @@ class UserPlatformModel {
|
|
|
1082
1082
|
gender: Joi.string().allow(""),
|
|
1083
1083
|
external_id: Joi.string().allow(""),
|
|
1084
1084
|
rr_id: Joi.string().allow(""),
|
|
1085
|
-
meta: Joi.any(),
|
|
1085
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1086
1086
|
phone_numbers: Joi.array().items(UserPlatformModel.UserPhoneNumbers()),
|
|
1087
1087
|
emails: Joi.array().items(UserPlatformModel.UserEmails()),
|
|
1088
1088
|
});
|
|
@@ -1115,7 +1115,7 @@ class UserPlatformModel {
|
|
|
1115
1115
|
application_id: Joi.string().allow(""),
|
|
1116
1116
|
user_id: Joi.string().allow(""),
|
|
1117
1117
|
first_name: Joi.string().allow(""),
|
|
1118
|
-
meta: Joi.any(),
|
|
1118
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1119
1119
|
last_name: Joi.string().allow(""),
|
|
1120
1120
|
phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
|
|
1121
1121
|
emails: Joi.array().items(UserPlatformModel.Email()),
|
|
@@ -1139,7 +1139,7 @@ class UserPlatformModel {
|
|
|
1139
1139
|
application_id: Joi.string().allow(""),
|
|
1140
1140
|
user_id: Joi.string().allow(""),
|
|
1141
1141
|
first_name: Joi.string().allow(""),
|
|
1142
|
-
meta: Joi.any(),
|
|
1142
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1143
1143
|
last_name: Joi.string().allow(""),
|
|
1144
1144
|
phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
|
|
1145
1145
|
emails: Joi.array().items(UserPlatformModel.Email()),
|