@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,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,62 +54,120 @@ 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
|
|
|
74
74
|
/**
|
|
75
75
|
* @typedef CreateUserAttributeDefinition
|
|
76
|
-
* @property {string} [name]
|
|
77
|
-
* @property {string} [slug]
|
|
78
|
-
* @property {string} [description]
|
|
79
|
-
* @property {string} [type]
|
|
80
|
-
* @property {boolean} [multi_value]
|
|
81
|
-
*
|
|
82
|
-
* @property {boolean} [
|
|
83
|
-
*
|
|
84
|
-
* @property {
|
|
85
|
-
*
|
|
86
|
-
* @property {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
76
|
+
* @property {string} [name]
|
|
77
|
+
* @property {string} [slug]
|
|
78
|
+
* @property {string} [description]
|
|
79
|
+
* @property {string} [type]
|
|
80
|
+
* @property {boolean} [multi_value]
|
|
81
|
+
* @property {boolean} [customer_editable]
|
|
82
|
+
* @property {boolean} [encrypted]
|
|
83
|
+
* @property {boolean} [pinned]
|
|
84
|
+
* @property {number} [pin_order]
|
|
85
|
+
* @property {string} [default_value]
|
|
86
|
+
* @property {Object[]} [validations]
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @typedef CreateStoreFrontUsersPayload
|
|
91
|
+
* @property {string} absolute_url - A valid URL linking to the file containing
|
|
92
|
+
* user data to be imported.
|
|
93
|
+
* @property {string} file_format - The format of the file containing the user's
|
|
94
|
+
* data. Supported formats are CSV and XLSX.
|
|
95
|
+
* @property {string} relative_url - A valid relative path to the file within
|
|
96
|
+
* the storage system. This path should not include the base URL or domain and
|
|
97
|
+
* must conform to the storage structure
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @typedef BulkUserExportSchema
|
|
102
|
+
* @property {string} file_format - The format of the file in which you want to
|
|
103
|
+
* export data. Supported formats are CSV and XLSX.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef BulkActionModel
|
|
108
|
+
* @property {string} _id - The Job ID associated with an Import or Export Job
|
|
109
|
+
* @property {string} file_name - The name of the file
|
|
110
|
+
* @property {string} file_format - The format of the uploaded file (e.g., CSV, XLSX).
|
|
111
|
+
* @property {string} action_type - The type of bulk action being performed
|
|
112
|
+
* (e.g., import, export).
|
|
113
|
+
* @property {CreatedBySchema} created_by
|
|
114
|
+
* @property {BulkActionCountSchema} [count]
|
|
115
|
+
* @property {string} [status] - The current status of the bulk action.
|
|
116
|
+
* @property {BulkActionLinkSchema} [links]
|
|
117
|
+
* @property {string} application_id - The unique identifier of the associated
|
|
118
|
+
* application.
|
|
119
|
+
* @property {string} company_id - The unique identifier of the company
|
|
120
|
+
* associated with the bulk action.
|
|
121
|
+
* @property {string} [created_at] - The timestamp when the bulk action was created.
|
|
122
|
+
* @property {string} [updated_at] - The timestamp when the bulk action was last updated.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @typedef CreatedBySchema
|
|
127
|
+
* @property {string} name - The name of the user who initiated the operation.
|
|
128
|
+
* @property {string} user_id - A unique identifier for the user who initiated
|
|
129
|
+
* the operation.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @typedef BulkActionLinkSchema
|
|
134
|
+
* @property {FileLinks} [file]
|
|
135
|
+
* @property {FileLinks} [error]
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef FileLinks
|
|
140
|
+
* @property {string} [absolute_url] - The full URL of the file, including the
|
|
141
|
+
* domain and protocol, allowing direct access to the file from any location.
|
|
142
|
+
* @property {string} [relative_url] - The relative path to the file within the
|
|
143
|
+
* storage system, excluding the base URL or domain. This path is specific to
|
|
144
|
+
* the storage structure.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @typedef BulkActionCountSchema
|
|
149
|
+
* @property {number} [total] - The total number of items to be processed.
|
|
150
|
+
* @property {number} [success] - The number of successfully processed items.
|
|
151
|
+
* @property {number} [error] - The number of items that failed to process.
|
|
94
152
|
*/
|
|
95
153
|
|
|
96
154
|
/**
|
|
97
155
|
* @typedef BlockUserRequestSchema
|
|
98
|
-
* @property {boolean} status
|
|
99
|
-
* @property {string[]} user_id
|
|
100
|
-
* @property {string} reason
|
|
156
|
+
* @property {boolean} [status]
|
|
157
|
+
* @property {string[]} [user_id]
|
|
158
|
+
* @property {string} [reason]
|
|
101
159
|
*/
|
|
102
160
|
|
|
103
161
|
/**
|
|
104
162
|
* @typedef ArchiveUserRequestSchema
|
|
105
|
-
* @property {string} user_id
|
|
163
|
+
* @property {string} [user_id]
|
|
106
164
|
*/
|
|
107
165
|
|
|
108
166
|
/**
|
|
109
167
|
* @typedef UnDeleteUserRequestSchema
|
|
110
|
-
* @property {string} user_id
|
|
111
|
-
* @property {string} reason
|
|
112
|
-
* @property {string} reason_id
|
|
168
|
+
* @property {string} [user_id]
|
|
169
|
+
* @property {string} [reason]
|
|
170
|
+
* @property {string} [reason_id]
|
|
113
171
|
*/
|
|
114
172
|
|
|
115
173
|
/**
|
|
@@ -138,13 +196,19 @@ const Joi = require("joi");
|
|
|
138
196
|
* @property {PaginationSchema} [page]
|
|
139
197
|
*/
|
|
140
198
|
|
|
199
|
+
/**
|
|
200
|
+
* @typedef BulkActionPaginationSchema
|
|
201
|
+
* @property {BulkActionModel[]} [items] - Array of Bulk Action Documents
|
|
202
|
+
* @property {PaginationSchema} [page]
|
|
203
|
+
*/
|
|
204
|
+
|
|
141
205
|
/**
|
|
142
206
|
* @typedef PaginationSchema
|
|
143
|
-
* @property {number} [size]
|
|
144
|
-
* @property {number} [item_total]
|
|
145
|
-
* @property {boolean} [has_next]
|
|
146
|
-
* @property {string} [type]
|
|
147
|
-
* @property {number} [current]
|
|
207
|
+
* @property {number} [size] - The number of items per page.
|
|
208
|
+
* @property {number} [item_total] - The total number of items across all pages.
|
|
209
|
+
* @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
|
|
210
|
+
* @property {string} [type] - The type of pagination used (eg Number).
|
|
211
|
+
* @property {number} [current] - The current page number.
|
|
148
212
|
*/
|
|
149
213
|
|
|
150
214
|
/**
|
|
@@ -189,7 +253,7 @@ const Joi = require("joi");
|
|
|
189
253
|
* @typedef Conditions
|
|
190
254
|
* @property {string} [user_attribute_definition_id]
|
|
191
255
|
* @property {string} [type]
|
|
192
|
-
* @property {
|
|
256
|
+
* @property {string} [value]
|
|
193
257
|
* @property {string} [key]
|
|
194
258
|
*/
|
|
195
259
|
|
|
@@ -202,7 +266,6 @@ const Joi = require("joi");
|
|
|
202
266
|
/**
|
|
203
267
|
* @typedef UserGroupResponseSchema
|
|
204
268
|
* @property {Conditions[]} [conditions]
|
|
205
|
-
* @property {string[]} [blacklisted_users]
|
|
206
269
|
* @property {UserResponseErrorSchema} [error]
|
|
207
270
|
* @property {string} [name]
|
|
208
271
|
* @property {string} [description]
|
|
@@ -228,7 +291,7 @@ const Joi = require("joi");
|
|
|
228
291
|
* @typedef ConditionsSchema
|
|
229
292
|
* @property {string} [user_attribute_definition_id]
|
|
230
293
|
* @property {string} [type]
|
|
231
|
-
* @property {
|
|
294
|
+
* @property {string} [value]
|
|
232
295
|
*/
|
|
233
296
|
|
|
234
297
|
/**
|
|
@@ -238,7 +301,6 @@ const Joi = require("joi");
|
|
|
238
301
|
* @property {string} name
|
|
239
302
|
* @property {string} description
|
|
240
303
|
* @property {string} [file_url]
|
|
241
|
-
* @property {string[]} [blacklisted_users]
|
|
242
304
|
*/
|
|
243
305
|
|
|
244
306
|
/**
|
|
@@ -248,7 +310,7 @@ const Joi = require("joi");
|
|
|
248
310
|
* @property {string} [first_name]
|
|
249
311
|
* @property {string} [last_name]
|
|
250
312
|
* @property {string} [gender]
|
|
251
|
-
* @property {string} username
|
|
313
|
+
* @property {string} [username]
|
|
252
314
|
* @property {Object} [meta]
|
|
253
315
|
* @property {string} [external_id]
|
|
254
316
|
* @property {string} [rr_id]
|
|
@@ -261,9 +323,8 @@ const Joi = require("joi");
|
|
|
261
323
|
|
|
262
324
|
/**
|
|
263
325
|
* @typedef CreateUserSessionRequestSchema
|
|
264
|
-
* @property {string} domain
|
|
265
|
-
* @property {string} user_id
|
|
266
|
-
* @property {number} [max_age]
|
|
326
|
+
* @property {string} [domain]
|
|
327
|
+
* @property {string} [user_id]
|
|
267
328
|
*/
|
|
268
329
|
|
|
269
330
|
/**
|
|
@@ -283,8 +344,6 @@ const Joi = require("joi");
|
|
|
283
344
|
* @property {boolean} [active]
|
|
284
345
|
* @property {boolean} [forgot_password]
|
|
285
346
|
* @property {Login} [login]
|
|
286
|
-
* @property {AccountLockout} [account_lockout]
|
|
287
|
-
* @property {PasswordSettings} [password_settings]
|
|
288
347
|
* @property {boolean} [skip_captcha]
|
|
289
348
|
* @property {string} [name]
|
|
290
349
|
* @property {MetaSchema} [meta]
|
|
@@ -313,45 +372,10 @@ const Joi = require("joi");
|
|
|
313
372
|
* @property {string} [background_color]
|
|
314
373
|
*/
|
|
315
374
|
|
|
316
|
-
/**
|
|
317
|
-
* @typedef PasswordConfigs
|
|
318
|
-
* @property {number} [length]
|
|
319
|
-
* @property {boolean} [require_special_character]
|
|
320
|
-
* @property {boolean} [require_number]
|
|
321
|
-
* @property {boolean} [require_capital_character]
|
|
322
|
-
*/
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @typedef PasswordHistory
|
|
326
|
-
* @property {boolean} [required]
|
|
327
|
-
* @property {number} [count]
|
|
328
|
-
*/
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* @typedef PasswordExpiry
|
|
332
|
-
* @property {boolean} [required]
|
|
333
|
-
* @property {number} [duration]
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @typedef PasswordSettings
|
|
338
|
-
* @property {PasswordConfigs} [configs]
|
|
339
|
-
* @property {PasswordHistory} [history]
|
|
340
|
-
* @property {PasswordExpiry} [expiry]
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @typedef AccountLockout
|
|
345
|
-
* @property {boolean} [enable]
|
|
346
|
-
* @property {number} [attempts]
|
|
347
|
-
* @property {number} [duration]
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
375
|
/**
|
|
351
376
|
* @typedef Login
|
|
352
377
|
* @property {boolean} [password]
|
|
353
378
|
* @property {boolean} [otp]
|
|
354
|
-
* @property {string} [via]
|
|
355
379
|
*/
|
|
356
380
|
|
|
357
381
|
/**
|
|
@@ -367,16 +391,10 @@ const Joi = require("joi");
|
|
|
367
391
|
* @property {boolean} [apple]
|
|
368
392
|
*/
|
|
369
393
|
|
|
370
|
-
/**
|
|
371
|
-
* @typedef PlatformPassword
|
|
372
|
-
* @property {boolean} [is_required]
|
|
373
|
-
*/
|
|
374
|
-
|
|
375
394
|
/**
|
|
376
395
|
* @typedef RequiredFields
|
|
377
396
|
* @property {PlatformEmail} [email]
|
|
378
397
|
* @property {PlatformMobile} [mobile]
|
|
379
|
-
* @property {PlatformPassword} [password]
|
|
380
398
|
*/
|
|
381
399
|
|
|
382
400
|
/**
|
|
@@ -395,7 +413,6 @@ const Joi = require("joi");
|
|
|
395
413
|
* @typedef RegisterRequiredFields
|
|
396
414
|
* @property {RegisterRequiredFieldsEmail} [email]
|
|
397
415
|
* @property {RegisterRequiredFieldsMobile} [mobile]
|
|
398
|
-
* @property {PlatformPassword} [password]
|
|
399
416
|
*/
|
|
400
417
|
|
|
401
418
|
/**
|
|
@@ -420,7 +437,7 @@ const Joi = require("joi");
|
|
|
420
437
|
/**
|
|
421
438
|
* @typedef SocialTokens
|
|
422
439
|
* @property {Facebook} [facebook]
|
|
423
|
-
* @property {Accountkit} [
|
|
440
|
+
* @property {Accountkit} [account_kit]
|
|
424
441
|
* @property {Google} [google]
|
|
425
442
|
*/
|
|
426
443
|
|
|
@@ -436,6 +453,21 @@ const Joi = require("joi");
|
|
|
436
453
|
* @property {string} [consent_text]
|
|
437
454
|
*/
|
|
438
455
|
|
|
456
|
+
/**
|
|
457
|
+
* @typedef GetUserTimeline
|
|
458
|
+
* @property {string} [delete_on] - Denotes the date on which the user will be deleted
|
|
459
|
+
* @property {UserTimeline[]} [timeline] - List of user timeline events
|
|
460
|
+
*/
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @typedef UserTimeline
|
|
464
|
+
* @property {string} [date] - Denotes the date at which this event occured
|
|
465
|
+
* @property {string} [title] - Title of the timeline event
|
|
466
|
+
* @property {string} [type] - Type of the event, indicating its status
|
|
467
|
+
* @property {boolean} [visible] - Indicates whether the event should be shown on the UI
|
|
468
|
+
* @property {string} [sub_title] - Additional information about the event
|
|
469
|
+
*/
|
|
470
|
+
|
|
439
471
|
/**
|
|
440
472
|
* @typedef Facebook
|
|
441
473
|
* @property {string} [app_id]
|
|
@@ -483,15 +515,11 @@ const Joi = require("joi");
|
|
|
483
515
|
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
484
516
|
* type json. Array of user data. Must have `action` field and one of
|
|
485
517
|
* `phone_number`, `email` or `user_id` field in object
|
|
486
|
-
* @property {string[]} [whitelisted_users] - List of user ids to be whitelisted
|
|
487
|
-
* from user group
|
|
488
|
-
* @property {string[]} [blacklisted_users] - List of user ids to be blacklisted
|
|
489
|
-
* from user group
|
|
490
518
|
*/
|
|
491
519
|
|
|
492
520
|
/**
|
|
493
521
|
* @typedef UserGroupUpdateData
|
|
494
|
-
* @property {string} [user_id] - Must be valid
|
|
522
|
+
* @property {string} [user_id] - Must be valid ID of existing user
|
|
495
523
|
* @property {string} [phone_number] - Phone number of registered user
|
|
496
524
|
* @property {string} [email] - Email of registered user
|
|
497
525
|
* @property {string} action
|
|
@@ -526,18 +554,10 @@ const Joi = require("joi");
|
|
|
526
554
|
* @property {string} [country_code]
|
|
527
555
|
*/
|
|
528
556
|
|
|
529
|
-
/**
|
|
530
|
-
* @typedef UserPasswordHistory
|
|
531
|
-
* @property {string} [salt]
|
|
532
|
-
* @property {string} [hash]
|
|
533
|
-
*/
|
|
534
|
-
|
|
535
557
|
/**
|
|
536
558
|
* @typedef UserSchema
|
|
537
559
|
* @property {string} [application_id]
|
|
538
560
|
* @property {string} [user_id]
|
|
539
|
-
* @property {string} [password_last_modified]
|
|
540
|
-
* @property {UserPasswordHistory[]} [password_history]
|
|
541
561
|
* @property {string} [first_name]
|
|
542
562
|
* @property {Object} [meta]
|
|
543
563
|
* @property {string} [last_name]
|
|
@@ -578,6 +598,7 @@ const Joi = require("joi");
|
|
|
578
598
|
* @property {string} [rr_id]
|
|
579
599
|
* @property {boolean} [archive]
|
|
580
600
|
* @property {string} [status]
|
|
601
|
+
* @property {string} [deleted_on]
|
|
581
602
|
*/
|
|
582
603
|
|
|
583
604
|
/**
|
|
@@ -598,8 +619,8 @@ const Joi = require("joi");
|
|
|
598
619
|
*/
|
|
599
620
|
|
|
600
621
|
class UserPlatformModel {
|
|
601
|
-
/** @returns {
|
|
602
|
-
static
|
|
622
|
+
/** @returns {SuccessMessage} */
|
|
623
|
+
static SuccessMessage() {
|
|
603
624
|
return Joi.object({
|
|
604
625
|
success: Joi.string().allow(""),
|
|
605
626
|
});
|
|
@@ -627,8 +648,8 @@ class UserPlatformModel {
|
|
|
627
648
|
});
|
|
628
649
|
}
|
|
629
650
|
|
|
630
|
-
/** @returns {
|
|
631
|
-
static
|
|
651
|
+
/** @returns {UserAttributeDefinitionDetails} */
|
|
652
|
+
static UserAttributeDefinitionDetails() {
|
|
632
653
|
return Joi.object({
|
|
633
654
|
_id: Joi.string().allow(""),
|
|
634
655
|
name: Joi.string().allow(""),
|
|
@@ -660,25 +681,25 @@ class UserPlatformModel {
|
|
|
660
681
|
});
|
|
661
682
|
}
|
|
662
683
|
|
|
663
|
-
/** @returns {
|
|
664
|
-
static
|
|
684
|
+
/** @returns {UserAttribute} */
|
|
685
|
+
static UserAttribute() {
|
|
665
686
|
return Joi.object({
|
|
666
687
|
_id: Joi.string().allow(""),
|
|
667
688
|
name: Joi.string().allow(""),
|
|
668
689
|
user_id: Joi.string().allow(""),
|
|
669
690
|
application_id: Joi.string().allow(""),
|
|
670
691
|
type: Joi.string().allow(""),
|
|
671
|
-
|
|
672
|
-
attribute: Joi.any(),
|
|
692
|
+
customer_overridden: Joi.boolean(),
|
|
693
|
+
attribute: Joi.object().pattern(/\S/, Joi.any()),
|
|
673
694
|
updated_by: Joi.string().allow(""),
|
|
674
695
|
});
|
|
675
696
|
}
|
|
676
697
|
|
|
677
|
-
/** @returns {
|
|
678
|
-
static
|
|
698
|
+
/** @returns {CreateUserAttribute} */
|
|
699
|
+
static CreateUserAttribute() {
|
|
679
700
|
return Joi.object({
|
|
680
|
-
|
|
681
|
-
attribute: Joi.any(),
|
|
701
|
+
customer_overridden: Joi.boolean(),
|
|
702
|
+
attribute: Joi.object().pattern(/\S/, Joi.any()),
|
|
682
703
|
});
|
|
683
704
|
}
|
|
684
705
|
|
|
@@ -694,33 +715,100 @@ class UserPlatformModel {
|
|
|
694
715
|
encrypted: Joi.boolean(),
|
|
695
716
|
pinned: Joi.boolean(),
|
|
696
717
|
pin_order: Joi.number(),
|
|
697
|
-
default_value: Joi.
|
|
718
|
+
default_value: Joi.string().allow(""),
|
|
698
719
|
validations: Joi.array().items(Joi.any()),
|
|
699
720
|
});
|
|
700
721
|
}
|
|
701
722
|
|
|
723
|
+
/** @returns {CreateStoreFrontUsersPayload} */
|
|
724
|
+
static CreateStoreFrontUsersPayload() {
|
|
725
|
+
return Joi.object({
|
|
726
|
+
absolute_url: Joi.string().allow("").required(),
|
|
727
|
+
file_format: Joi.string().allow("").required(),
|
|
728
|
+
relative_url: Joi.string().allow("").required(),
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** @returns {BulkUserExportSchema} */
|
|
733
|
+
static BulkUserExportSchema() {
|
|
734
|
+
return Joi.object({
|
|
735
|
+
file_format: Joi.string().allow("").required(),
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/** @returns {BulkActionModel} */
|
|
740
|
+
static BulkActionModel() {
|
|
741
|
+
return Joi.object({
|
|
742
|
+
_id: Joi.string().allow("").required(),
|
|
743
|
+
file_name: Joi.string().allow("").required(),
|
|
744
|
+
file_format: Joi.string().allow("").required(),
|
|
745
|
+
action_type: Joi.string().allow("").required(),
|
|
746
|
+
created_by: UserPlatformModel.CreatedBySchema().required(),
|
|
747
|
+
count: UserPlatformModel.BulkActionCountSchema(),
|
|
748
|
+
status: Joi.string().allow(""),
|
|
749
|
+
links: UserPlatformModel.BulkActionLinkSchema(),
|
|
750
|
+
application_id: Joi.string().allow("").required(),
|
|
751
|
+
company_id: Joi.string().allow("").required(),
|
|
752
|
+
created_at: Joi.string().allow(""),
|
|
753
|
+
updated_at: Joi.string().allow(""),
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** @returns {CreatedBySchema} */
|
|
758
|
+
static CreatedBySchema() {
|
|
759
|
+
return Joi.object({
|
|
760
|
+
name: Joi.string().allow("").required(),
|
|
761
|
+
user_id: Joi.string().allow("").required(),
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/** @returns {BulkActionLinkSchema} */
|
|
766
|
+
static BulkActionLinkSchema() {
|
|
767
|
+
return Joi.object({
|
|
768
|
+
file: UserPlatformModel.FileLinks(),
|
|
769
|
+
error: UserPlatformModel.FileLinks(),
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/** @returns {FileLinks} */
|
|
774
|
+
static FileLinks() {
|
|
775
|
+
return Joi.object({
|
|
776
|
+
absolute_url: Joi.string().allow(""),
|
|
777
|
+
relative_url: Joi.string().allow(""),
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/** @returns {BulkActionCountSchema} */
|
|
782
|
+
static BulkActionCountSchema() {
|
|
783
|
+
return Joi.object({
|
|
784
|
+
total: Joi.number(),
|
|
785
|
+
success: Joi.number(),
|
|
786
|
+
error: Joi.number(),
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
|
|
702
790
|
/** @returns {BlockUserRequestSchema} */
|
|
703
791
|
static BlockUserRequestSchema() {
|
|
704
792
|
return Joi.object({
|
|
705
|
-
status: Joi.boolean()
|
|
706
|
-
user_id: Joi.array().items(Joi.string().allow(""))
|
|
707
|
-
reason: Joi.string().allow("")
|
|
793
|
+
status: Joi.boolean(),
|
|
794
|
+
user_id: Joi.array().items(Joi.string().allow("")),
|
|
795
|
+
reason: Joi.string().allow(""),
|
|
708
796
|
});
|
|
709
797
|
}
|
|
710
798
|
|
|
711
799
|
/** @returns {ArchiveUserRequestSchema} */
|
|
712
800
|
static ArchiveUserRequestSchema() {
|
|
713
801
|
return Joi.object({
|
|
714
|
-
user_id: Joi.string().allow("")
|
|
802
|
+
user_id: Joi.string().allow(""),
|
|
715
803
|
});
|
|
716
804
|
}
|
|
717
805
|
|
|
718
806
|
/** @returns {UnDeleteUserRequestSchema} */
|
|
719
807
|
static UnDeleteUserRequestSchema() {
|
|
720
808
|
return Joi.object({
|
|
721
|
-
user_id: Joi.string().allow("")
|
|
722
|
-
reason: Joi.string().allow("")
|
|
723
|
-
reason_id: Joi.string().allow("")
|
|
809
|
+
user_id: Joi.string().allow(""),
|
|
810
|
+
reason: Joi.string().allow(""),
|
|
811
|
+
reason_id: Joi.string().allow(""),
|
|
724
812
|
});
|
|
725
813
|
}
|
|
726
814
|
|
|
@@ -760,6 +848,14 @@ class UserPlatformModel {
|
|
|
760
848
|
});
|
|
761
849
|
}
|
|
762
850
|
|
|
851
|
+
/** @returns {BulkActionPaginationSchema} */
|
|
852
|
+
static BulkActionPaginationSchema() {
|
|
853
|
+
return Joi.object({
|
|
854
|
+
items: Joi.array().items(UserPlatformModel.BulkActionModel()),
|
|
855
|
+
page: UserPlatformModel.PaginationSchema(),
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
|
|
763
859
|
/** @returns {PaginationSchema} */
|
|
764
860
|
static PaginationSchema() {
|
|
765
861
|
return Joi.object({
|
|
@@ -802,7 +898,7 @@ class UserPlatformModel {
|
|
|
802
898
|
info: Joi.string().allow(""),
|
|
803
899
|
request_id: Joi.string().allow(""),
|
|
804
900
|
error: Joi.string().allow(""),
|
|
805
|
-
meta: Joi.any(),
|
|
901
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
806
902
|
authenticated: Joi.boolean(),
|
|
807
903
|
});
|
|
808
904
|
}
|
|
@@ -824,7 +920,7 @@ class UserPlatformModel {
|
|
|
824
920
|
return Joi.object({
|
|
825
921
|
user_attribute_definition_id: Joi.string().allow(""),
|
|
826
922
|
type: Joi.string().allow(""),
|
|
827
|
-
value: Joi.
|
|
923
|
+
value: Joi.string().allow(""),
|
|
828
924
|
key: Joi.string().allow(""),
|
|
829
925
|
});
|
|
830
926
|
}
|
|
@@ -841,7 +937,6 @@ class UserPlatformModel {
|
|
|
841
937
|
static UserGroupResponseSchema() {
|
|
842
938
|
return Joi.object({
|
|
843
939
|
conditions: Joi.array().items(UserPlatformModel.Conditions()),
|
|
844
|
-
blacklisted_users: Joi.array().items(Joi.string().allow("")),
|
|
845
940
|
error: UserPlatformModel.UserResponseErrorSchema(),
|
|
846
941
|
name: Joi.string().allow(""),
|
|
847
942
|
description: Joi.string().allow(""),
|
|
@@ -871,7 +966,7 @@ class UserPlatformModel {
|
|
|
871
966
|
return Joi.object({
|
|
872
967
|
user_attribute_definition_id: Joi.string().allow(""),
|
|
873
968
|
type: Joi.string().allow(""),
|
|
874
|
-
value: Joi.
|
|
969
|
+
value: Joi.string().allow(""),
|
|
875
970
|
});
|
|
876
971
|
}
|
|
877
972
|
|
|
@@ -883,7 +978,6 @@ class UserPlatformModel {
|
|
|
883
978
|
name: Joi.string().allow("").required(),
|
|
884
979
|
description: Joi.string().allow("").required(),
|
|
885
980
|
file_url: Joi.string().allow(""),
|
|
886
|
-
blacklisted_users: Joi.array().items(Joi.string().allow("")),
|
|
887
981
|
});
|
|
888
982
|
}
|
|
889
983
|
|
|
@@ -895,8 +989,8 @@ class UserPlatformModel {
|
|
|
895
989
|
first_name: Joi.string().allow(""),
|
|
896
990
|
last_name: Joi.string().allow(""),
|
|
897
991
|
gender: Joi.string().allow(""),
|
|
898
|
-
username: Joi.string().allow("")
|
|
899
|
-
meta: Joi.any(),
|
|
992
|
+
username: Joi.string().allow(""),
|
|
993
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
900
994
|
external_id: Joi.string().allow(""),
|
|
901
995
|
rr_id: Joi.string().allow(""),
|
|
902
996
|
});
|
|
@@ -912,9 +1006,8 @@ class UserPlatformModel {
|
|
|
912
1006
|
/** @returns {CreateUserSessionRequestSchema} */
|
|
913
1007
|
static CreateUserSessionRequestSchema() {
|
|
914
1008
|
return Joi.object({
|
|
915
|
-
domain: Joi.string().allow("")
|
|
916
|
-
user_id: Joi.string().allow("")
|
|
917
|
-
max_age: Joi.number(),
|
|
1009
|
+
domain: Joi.string().allow(""),
|
|
1010
|
+
user_id: Joi.string().allow(""),
|
|
918
1011
|
});
|
|
919
1012
|
}
|
|
920
1013
|
|
|
@@ -938,8 +1031,6 @@ class UserPlatformModel {
|
|
|
938
1031
|
active: Joi.boolean(),
|
|
939
1032
|
forgot_password: Joi.boolean(),
|
|
940
1033
|
login: UserPlatformModel.Login(),
|
|
941
|
-
account_lockout: UserPlatformModel.AccountLockout(),
|
|
942
|
-
password_settings: UserPlatformModel.PasswordSettings(),
|
|
943
1034
|
skip_captcha: Joi.boolean(),
|
|
944
1035
|
name: Joi.string().allow(""),
|
|
945
1036
|
meta: UserPlatformModel.MetaSchema(),
|
|
@@ -953,8 +1044,8 @@ class UserPlatformModel {
|
|
|
953
1044
|
social_tokens: UserPlatformModel.SocialTokens(),
|
|
954
1045
|
created_at: Joi.string().allow(""),
|
|
955
1046
|
register: Joi.boolean(),
|
|
956
|
-
mobile_image: Joi.string().allow("")
|
|
957
|
-
desktop_image: Joi.string().allow("")
|
|
1047
|
+
mobile_image: Joi.string().allow(""),
|
|
1048
|
+
desktop_image: Joi.string().allow(""),
|
|
958
1049
|
delete_account_day: Joi.number(),
|
|
959
1050
|
delete_account_reasons: Joi.array().items(
|
|
960
1051
|
UserPlatformModel.DeleteAccountReasons()
|
|
@@ -973,56 +1064,11 @@ class UserPlatformModel {
|
|
|
973
1064
|
});
|
|
974
1065
|
}
|
|
975
1066
|
|
|
976
|
-
/** @returns {PasswordConfigs} */
|
|
977
|
-
static PasswordConfigs() {
|
|
978
|
-
return Joi.object({
|
|
979
|
-
length: Joi.number(),
|
|
980
|
-
require_special_character: Joi.boolean(),
|
|
981
|
-
require_number: Joi.boolean(),
|
|
982
|
-
require_capital_character: Joi.boolean(),
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
/** @returns {PasswordHistory} */
|
|
987
|
-
static PasswordHistory() {
|
|
988
|
-
return Joi.object({
|
|
989
|
-
required: Joi.boolean(),
|
|
990
|
-
count: Joi.number(),
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
/** @returns {PasswordExpiry} */
|
|
995
|
-
static PasswordExpiry() {
|
|
996
|
-
return Joi.object({
|
|
997
|
-
required: Joi.boolean(),
|
|
998
|
-
duration: Joi.number(),
|
|
999
|
-
});
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
/** @returns {PasswordSettings} */
|
|
1003
|
-
static PasswordSettings() {
|
|
1004
|
-
return Joi.object({
|
|
1005
|
-
configs: UserPlatformModel.PasswordConfigs(),
|
|
1006
|
-
history: UserPlatformModel.PasswordHistory(),
|
|
1007
|
-
expiry: UserPlatformModel.PasswordExpiry(),
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
/** @returns {AccountLockout} */
|
|
1012
|
-
static AccountLockout() {
|
|
1013
|
-
return Joi.object({
|
|
1014
|
-
enable: Joi.boolean(),
|
|
1015
|
-
attempts: Joi.number(),
|
|
1016
|
-
duration: Joi.number(),
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
1067
|
/** @returns {Login} */
|
|
1021
1068
|
static Login() {
|
|
1022
1069
|
return Joi.object({
|
|
1023
1070
|
password: Joi.boolean(),
|
|
1024
1071
|
otp: Joi.boolean(),
|
|
1025
|
-
via: Joi.string().allow(""),
|
|
1026
1072
|
});
|
|
1027
1073
|
}
|
|
1028
1074
|
|
|
@@ -1043,19 +1089,11 @@ class UserPlatformModel {
|
|
|
1043
1089
|
});
|
|
1044
1090
|
}
|
|
1045
1091
|
|
|
1046
|
-
/** @returns {PlatformPassword} */
|
|
1047
|
-
static PlatformPassword() {
|
|
1048
|
-
return Joi.object({
|
|
1049
|
-
is_required: Joi.boolean(),
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
1092
|
/** @returns {RequiredFields} */
|
|
1054
1093
|
static RequiredFields() {
|
|
1055
1094
|
return Joi.object({
|
|
1056
1095
|
email: UserPlatformModel.PlatformEmail(),
|
|
1057
1096
|
mobile: UserPlatformModel.PlatformMobile(),
|
|
1058
|
-
password: UserPlatformModel.PlatformPassword(),
|
|
1059
1097
|
});
|
|
1060
1098
|
}
|
|
1061
1099
|
|
|
@@ -1080,7 +1118,6 @@ class UserPlatformModel {
|
|
|
1080
1118
|
return Joi.object({
|
|
1081
1119
|
email: UserPlatformModel.RegisterRequiredFieldsEmail(),
|
|
1082
1120
|
mobile: UserPlatformModel.RegisterRequiredFieldsMobile(),
|
|
1083
|
-
password: UserPlatformModel.PlatformPassword(),
|
|
1084
1121
|
});
|
|
1085
1122
|
}
|
|
1086
1123
|
|
|
@@ -1113,7 +1150,7 @@ class UserPlatformModel {
|
|
|
1113
1150
|
static SocialTokens() {
|
|
1114
1151
|
return Joi.object({
|
|
1115
1152
|
facebook: UserPlatformModel.Facebook(),
|
|
1116
|
-
|
|
1153
|
+
account_kit: UserPlatformModel.Accountkit(),
|
|
1117
1154
|
google: UserPlatformModel.Google(),
|
|
1118
1155
|
});
|
|
1119
1156
|
}
|
|
@@ -1134,6 +1171,25 @@ class UserPlatformModel {
|
|
|
1134
1171
|
});
|
|
1135
1172
|
}
|
|
1136
1173
|
|
|
1174
|
+
/** @returns {GetUserTimeline} */
|
|
1175
|
+
static GetUserTimeline() {
|
|
1176
|
+
return Joi.object({
|
|
1177
|
+
delete_on: Joi.string().allow(""),
|
|
1178
|
+
timeline: Joi.array().items(UserPlatformModel.UserTimeline()),
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/** @returns {UserTimeline} */
|
|
1183
|
+
static UserTimeline() {
|
|
1184
|
+
return Joi.object({
|
|
1185
|
+
date: Joi.string().allow(""),
|
|
1186
|
+
title: Joi.string().allow(""),
|
|
1187
|
+
type: Joi.string().allow(""),
|
|
1188
|
+
visible: Joi.boolean(),
|
|
1189
|
+
sub_title: Joi.string().allow("").allow(null),
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1137
1193
|
/** @returns {Facebook} */
|
|
1138
1194
|
static Facebook() {
|
|
1139
1195
|
return Joi.object({
|
|
@@ -1186,8 +1242,6 @@ class UserPlatformModel {
|
|
|
1186
1242
|
description: Joi.string().allow(""),
|
|
1187
1243
|
file_url: Joi.string().allow(""),
|
|
1188
1244
|
user_data: Joi.array().items(UserPlatformModel.UserGroupUpdateData()),
|
|
1189
|
-
whitelisted_users: Joi.array().items(Joi.string().allow("")),
|
|
1190
|
-
blacklisted_users: Joi.array().items(Joi.string().allow("")),
|
|
1191
1245
|
});
|
|
1192
1246
|
}
|
|
1193
1247
|
|
|
@@ -1209,7 +1263,7 @@ class UserPlatformModel {
|
|
|
1209
1263
|
gender: Joi.string().allow(""),
|
|
1210
1264
|
external_id: Joi.string().allow(""),
|
|
1211
1265
|
rr_id: Joi.string().allow(""),
|
|
1212
|
-
meta: Joi.any(),
|
|
1266
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1213
1267
|
phone_numbers: Joi.array().items(UserPlatformModel.UserPhoneNumbers()),
|
|
1214
1268
|
emails: Joi.array().items(UserPlatformModel.UserEmails()),
|
|
1215
1269
|
});
|
|
@@ -1236,29 +1290,17 @@ class UserPlatformModel {
|
|
|
1236
1290
|
});
|
|
1237
1291
|
}
|
|
1238
1292
|
|
|
1239
|
-
/** @returns {UserPasswordHistory} */
|
|
1240
|
-
static UserPasswordHistory() {
|
|
1241
|
-
return Joi.object({
|
|
1242
|
-
salt: Joi.string().allow(""),
|
|
1243
|
-
hash: Joi.string().allow(""),
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
1293
|
/** @returns {UserSchema} */
|
|
1248
1294
|
static UserSchema() {
|
|
1249
1295
|
return Joi.object({
|
|
1250
1296
|
application_id: Joi.string().allow(""),
|
|
1251
1297
|
user_id: Joi.string().allow(""),
|
|
1252
|
-
password_last_modified: Joi.string().allow(""),
|
|
1253
|
-
password_history: Joi.array().items(
|
|
1254
|
-
UserPlatformModel.UserPasswordHistory()
|
|
1255
|
-
),
|
|
1256
1298
|
first_name: Joi.string().allow(""),
|
|
1257
|
-
meta: Joi.any(),
|
|
1299
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1258
1300
|
last_name: Joi.string().allow(""),
|
|
1259
1301
|
phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
|
|
1260
1302
|
emails: Joi.array().items(UserPlatformModel.Email()),
|
|
1261
|
-
gender: Joi.string().allow("")
|
|
1303
|
+
gender: Joi.string().allow(""),
|
|
1262
1304
|
dob: Joi.string().allow(""),
|
|
1263
1305
|
active: Joi.boolean(),
|
|
1264
1306
|
profile_pic_url: Joi.string().allow(""),
|
|
@@ -1278,11 +1320,11 @@ class UserPlatformModel {
|
|
|
1278
1320
|
application_id: Joi.string().allow(""),
|
|
1279
1321
|
user_id: Joi.string().allow(""),
|
|
1280
1322
|
first_name: Joi.string().allow(""),
|
|
1281
|
-
meta: Joi.any(),
|
|
1323
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1282
1324
|
last_name: Joi.string().allow(""),
|
|
1283
1325
|
phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
|
|
1284
1326
|
emails: Joi.array().items(UserPlatformModel.Email()),
|
|
1285
|
-
gender: Joi.string().allow("")
|
|
1327
|
+
gender: Joi.string().allow(""),
|
|
1286
1328
|
dob: Joi.string().allow(""),
|
|
1287
1329
|
active: Joi.boolean(),
|
|
1288
1330
|
profile_pic_url: Joi.string().allow(""),
|
|
@@ -1295,6 +1337,7 @@ class UserPlatformModel {
|
|
|
1295
1337
|
rr_id: Joi.string().allow(""),
|
|
1296
1338
|
archive: Joi.boolean(),
|
|
1297
1339
|
status: Joi.string().allow(""),
|
|
1340
|
+
deleted_on: Joi.string().allow(""),
|
|
1298
1341
|
});
|
|
1299
1342
|
}
|
|
1300
1343
|
|