@gofynd/fdk-client-javascript 1.0.2 → 1.0.4
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 +31 -2
- package/index.d.ts +4 -4
- package/index.js +9 -10
- package/package.json +14 -14
- package/sdk/APIClient.d.ts +11 -0
- package/sdk/APIClient.js +35 -0
- package/sdk/Client.d.ts +6 -0
- package/sdk/Client.js +17 -0
- package/sdk/Config.d.ts +9 -0
- package/sdk/Config.js +17 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +595 -594
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +490 -885
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +43 -42
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +216 -215
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +468 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +109 -108
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
- package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +247 -246
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +361 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +94 -93
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +619 -618
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +18 -7
- package/sdk/constructUrl.d.ts +5 -0
- package/sdk/constructUrl.js +13 -0
- package/sdk/index.d.ts +3 -0
- package/sdk/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +40 -51
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +485 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7972 -7888
- package/sdk/platform/PlatformClient.js +8678 -10107
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -7339
- package/documentation/application/CATALOG.md +0 -9597
- package/documentation/application/COMMON.md +0 -452
- package/documentation/application/COMMUNICATION.md +0 -467
- package/documentation/application/CONFIGURATION.md +0 -2906
- package/documentation/application/CONTENT.md +0 -3351
- package/documentation/application/FILESTORAGE.md +0 -578
- package/documentation/application/LEAD.md +0 -1895
- package/documentation/application/LOGISTIC.md +0 -765
- package/documentation/application/ORDER.md +0 -3432
- package/documentation/application/PAYMENT.md +0 -5221
- package/documentation/application/POSCART.md +0 -7938
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -708
- package/documentation/application/SHARE.md +0 -733
- package/documentation/application/THEME.md +0 -5800
- package/documentation/application/USER.md +0 -4335
- package/documentation/platform/ANALYTICS.md +0 -1154
- package/documentation/platform/AUDITTRAIL.md +0 -576
- package/documentation/platform/BILLING.md +0 -2400
- package/documentation/platform/CART.md +0 -5559
- package/documentation/platform/CATALOG.md +0 -23261
- package/documentation/platform/COMMON.md +0 -452
- package/documentation/platform/COMMUNICATION.md +0 -5718
- package/documentation/platform/COMPANYPROFILE.md +0 -2031
- package/documentation/platform/CONFIGURATION.md +0 -7339
- package/documentation/platform/CONTENT.md +0 -9098
- package/documentation/platform/DISCOUNT.md +0 -863
- package/documentation/platform/FILESTORAGE.md +0 -1081
- package/documentation/platform/INVENTORY.md +0 -1779
- package/documentation/platform/LEAD.md +0 -4740
- package/documentation/platform/ORDER.md +0 -8486
- package/documentation/platform/PARTNER.md +0 -220
- package/documentation/platform/PAYMENT.md +0 -3448
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -1083
- package/documentation/platform/SHARE.md +0 -606
- package/documentation/platform/THEME.md +0 -35729
- package/documentation/platform/USER.md +0 -2319
- package/documentation/platform/WEBHOOK.md +0 -591
- package/documentation/public/CONFIGURATION.md +0 -452
- package/documentation/public/INVENTORY.md +0 -690
- package/documentation/public/WEBHOOK.md +0 -352
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -47
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,997 +1,748 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class UserModel {
|
|
4
|
-
static
|
|
4
|
+
static Accountkit() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
user_id: Joi.array().items(Joi.string().allow("")),
|
|
9
|
-
|
|
10
|
-
reason: Joi.string().allow(""),
|
|
6
|
+
app_id: Joi.string().allow(""),
|
|
11
7
|
});
|
|
12
8
|
}
|
|
13
|
-
|
|
14
9
|
static ArchiveUserRequestSchema() {
|
|
15
10
|
return Joi.object({
|
|
16
11
|
user_id: Joi.string().allow(""),
|
|
17
12
|
});
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
static DeleteApplicationUserRequestSchema() {
|
|
21
|
-
return Joi.object({
|
|
22
|
-
user_id: Joi.string().allow(""),
|
|
23
|
-
|
|
24
|
-
reason: Joi.string().allow(""),
|
|
25
|
-
|
|
26
|
-
reason_id: Joi.string().allow(""),
|
|
27
|
-
|
|
28
|
-
request_id: Joi.string().allow(""),
|
|
29
|
-
|
|
30
|
-
otp: Joi.string().allow(""),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
static UnDeleteUserRequestSchema() {
|
|
14
|
+
static ArchiveUserSuccess() {
|
|
35
15
|
return Joi.object({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
reason: Joi.string().allow(""),
|
|
39
|
-
|
|
40
|
-
reason_id: Joi.string().allow(""),
|
|
16
|
+
success: Joi.boolean(),
|
|
41
17
|
});
|
|
42
18
|
}
|
|
43
|
-
|
|
44
|
-
static EditEmailRequestSchema() {
|
|
19
|
+
static AuthenticationApiErrorSchema() {
|
|
45
20
|
return Joi.object({
|
|
46
|
-
|
|
21
|
+
message: Joi.string().allow(""),
|
|
47
22
|
});
|
|
48
23
|
}
|
|
49
|
-
|
|
50
|
-
static SendVerificationLinkMobileRequestSchema() {
|
|
24
|
+
static AuthenticationInternalServerErrorSchema() {
|
|
51
25
|
return Joi.object({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
active: Joi.boolean(),
|
|
55
|
-
|
|
56
|
-
country_code: Joi.string().allow(""),
|
|
57
|
-
|
|
58
|
-
phone: Joi.string().allow(""),
|
|
59
|
-
|
|
60
|
-
primary: Joi.boolean(),
|
|
26
|
+
message: Joi.string().allow(""),
|
|
61
27
|
});
|
|
62
28
|
}
|
|
63
|
-
|
|
64
|
-
static EditMobileRequestSchema() {
|
|
29
|
+
static AuthSuccess() {
|
|
65
30
|
return Joi.object({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
31
|
+
register_token: Joi.string().allow(""),
|
|
32
|
+
user: UserModel.UserSchema(),
|
|
33
|
+
user_exists: Joi.boolean(),
|
|
69
34
|
});
|
|
70
35
|
}
|
|
71
|
-
|
|
72
|
-
static EditProfileRequestSchema() {
|
|
36
|
+
static AuthSuccessUser() {
|
|
73
37
|
return Joi.object({
|
|
38
|
+
active: Joi.boolean(),
|
|
39
|
+
debug: UserModel.AuthSuccessUserDebug(),
|
|
40
|
+
emails: UserModel.AuthSuccessUserEmails(),
|
|
74
41
|
first_name: Joi.string().allow(""),
|
|
75
|
-
|
|
76
42
|
last_name: Joi.string().allow(""),
|
|
77
|
-
|
|
78
|
-
mobile: UserModel.EditProfileMobileSchema(),
|
|
79
|
-
|
|
80
|
-
country_code: Joi.string().allow(""),
|
|
81
|
-
|
|
82
|
-
email: Joi.string().allow(""),
|
|
83
|
-
|
|
84
|
-
gender: Joi.string().allow(""),
|
|
85
|
-
|
|
86
|
-
dob: Joi.string().allow(""),
|
|
87
|
-
|
|
88
|
-
profile_pic_url: Joi.string().allow(""),
|
|
89
|
-
|
|
90
|
-
android_hash: Joi.string().allow(""),
|
|
91
|
-
|
|
92
|
-
sender: Joi.string().allow(""),
|
|
93
|
-
|
|
94
|
-
register_token: Joi.string().allow(""),
|
|
95
43
|
});
|
|
96
44
|
}
|
|
97
|
-
|
|
98
|
-
static EditProfileMobileSchema() {
|
|
45
|
+
static AuthSuccessUserDebug() {
|
|
99
46
|
return Joi.object({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
country_code: Joi.string().allow(""),
|
|
47
|
+
platform: Joi.string().allow(""),
|
|
103
48
|
});
|
|
104
49
|
}
|
|
105
|
-
|
|
106
|
-
static SendEmailOtpRequestSchema() {
|
|
50
|
+
static AuthSuccessUserEmails() {
|
|
107
51
|
return Joi.object({
|
|
52
|
+
active: Joi.boolean(),
|
|
108
53
|
email: Joi.string().allow(""),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
token: Joi.string().allow(""),
|
|
113
|
-
|
|
114
|
-
register_token: Joi.string().allow(""),
|
|
54
|
+
primary: Joi.boolean(),
|
|
55
|
+
verified: Joi.boolean(),
|
|
115
56
|
});
|
|
116
57
|
}
|
|
117
|
-
|
|
118
|
-
static VerifyEmailOtpRequestSchema() {
|
|
58
|
+
static BlockUserRequestSchema() {
|
|
119
59
|
return Joi.object({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
register_token: Joi.string().allow(""),
|
|
125
|
-
|
|
126
|
-
otp: Joi.string().allow(""),
|
|
60
|
+
reason: Joi.string().allow(""),
|
|
61
|
+
status: Joi.boolean(),
|
|
62
|
+
user_id: Joi.array().items(Joi.string().allow("")),
|
|
127
63
|
});
|
|
128
64
|
}
|
|
129
|
-
|
|
130
|
-
static VerifyOtpRequestSchema() {
|
|
65
|
+
static BlockUserSuccess() {
|
|
131
66
|
return Joi.object({
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
register_token: Joi.string().allow(""),
|
|
135
|
-
|
|
136
|
-
otp: Joi.string().allow(""),
|
|
67
|
+
success: Joi.boolean(),
|
|
137
68
|
});
|
|
138
69
|
}
|
|
139
|
-
|
|
140
|
-
static SendMobileOtpRequestSchema() {
|
|
70
|
+
static CodeRequestBodySchema() {
|
|
141
71
|
return Joi.object({
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
country_code: Joi.string().allow(""),
|
|
145
|
-
|
|
146
|
-
action: Joi.string().allow(""),
|
|
147
|
-
|
|
148
|
-
token: Joi.string().allow(""),
|
|
149
|
-
|
|
150
|
-
android_hash: Joi.string().allow(""),
|
|
151
|
-
|
|
152
|
-
force: Joi.string().allow(""),
|
|
153
|
-
|
|
154
|
-
captcha_code: Joi.string().allow(""),
|
|
72
|
+
code: Joi.string().allow(""),
|
|
155
73
|
});
|
|
156
74
|
}
|
|
157
|
-
|
|
158
|
-
static UpdatePasswordRequestSchema() {
|
|
75
|
+
static CreateUserGroupSchema() {
|
|
159
76
|
return Joi.object({
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
77
|
+
description: Joi.string().allow("").required(),
|
|
78
|
+
file_url: Joi.string().allow("").required(),
|
|
79
|
+
name: Joi.string().allow("").required(),
|
|
163
80
|
});
|
|
164
81
|
}
|
|
165
|
-
|
|
166
|
-
static FormRegisterRequestSchema() {
|
|
82
|
+
static CreateUserRequestSchema() {
|
|
167
83
|
return Joi.object({
|
|
84
|
+
email: Joi.string().allow(""),
|
|
168
85
|
first_name: Joi.string().allow(""),
|
|
169
|
-
|
|
170
|
-
last_name: Joi.string().allow(""),
|
|
171
|
-
|
|
172
86
|
gender: Joi.string().allow(""),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
phone: UserModel.FormRegisterRequestSchemaPhone(),
|
|
179
|
-
|
|
180
|
-
register_token: Joi.string().allow(""),
|
|
87
|
+
last_name: Joi.string().allow(""),
|
|
88
|
+
meta: Joi.any(),
|
|
89
|
+
phone_number: Joi.string().allow("").required(),
|
|
90
|
+
username: Joi.string().allow("").required(),
|
|
181
91
|
});
|
|
182
92
|
}
|
|
183
|
-
|
|
184
|
-
static TokenRequestBodySchema() {
|
|
93
|
+
static CreateUserResponseSchema() {
|
|
185
94
|
return Joi.object({
|
|
186
|
-
|
|
95
|
+
user: UserModel.UserSchema(),
|
|
187
96
|
});
|
|
188
97
|
}
|
|
189
|
-
|
|
190
|
-
static ForgotPasswordRequestSchema() {
|
|
98
|
+
static CreateUserSessionRequestSchema() {
|
|
191
99
|
return Joi.object({
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
100
|
+
domain: Joi.string().allow(""),
|
|
101
|
+
max_age: Joi.number(),
|
|
102
|
+
user_id: Joi.string().allow(""),
|
|
195
103
|
});
|
|
196
104
|
}
|
|
197
|
-
|
|
198
|
-
static CodeRequestBodySchema() {
|
|
105
|
+
static CreateUserSessionResponseSchema() {
|
|
199
106
|
return Joi.object({
|
|
200
|
-
|
|
107
|
+
cookie: Joi.any(),
|
|
108
|
+
domain: Joi.string().allow(""),
|
|
109
|
+
http_only: Joi.boolean(),
|
|
110
|
+
max_age: Joi.number(),
|
|
111
|
+
secure: Joi.boolean(),
|
|
201
112
|
});
|
|
202
113
|
}
|
|
203
|
-
|
|
204
|
-
static SendResetPasswordEmailRequestSchema() {
|
|
114
|
+
static CustomerListResponseSchema() {
|
|
205
115
|
return Joi.object({
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
captcha_code: Joi.string().allow(""),
|
|
116
|
+
items: Joi.array().items(UserModel.UserSchema()),
|
|
117
|
+
page: UserModel.PaginationSchema(),
|
|
209
118
|
});
|
|
210
119
|
}
|
|
211
|
-
|
|
212
|
-
static SendResetPasswordMobileRequestSchema() {
|
|
120
|
+
static DeleteAccountConsent() {
|
|
213
121
|
return Joi.object({
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
mobile: Joi.string().allow(""),
|
|
217
|
-
|
|
218
|
-
captcha_code: Joi.string().allow(""),
|
|
122
|
+
consent_text: Joi.string().allow(""),
|
|
219
123
|
});
|
|
220
124
|
}
|
|
221
|
-
|
|
222
|
-
static PasswordLoginRequestSchema() {
|
|
125
|
+
static DeleteAccountReasons() {
|
|
223
126
|
return Joi.object({
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
username: Joi.string().allow(""),
|
|
127
|
+
reason_id: Joi.string().allow(""),
|
|
128
|
+
reason_text: Joi.string().allow(""),
|
|
129
|
+
show_text_area: Joi.boolean(),
|
|
229
130
|
});
|
|
230
131
|
}
|
|
231
|
-
|
|
232
|
-
static SendOtpRequestSchema() {
|
|
132
|
+
static DeleteApplicationUserRequestSchema() {
|
|
233
133
|
return Joi.object({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
android_hash: Joi.string().allow(""),
|
|
134
|
+
otp: Joi.string().allow(""),
|
|
135
|
+
reason: Joi.string().allow(""),
|
|
136
|
+
reason_id: Joi.string().allow(""),
|
|
137
|
+
request_id: Joi.string().allow(""),
|
|
138
|
+
user_id: Joi.string().allow(""),
|
|
241
139
|
});
|
|
242
140
|
}
|
|
243
|
-
|
|
244
|
-
static OAuthRequestSchema() {
|
|
141
|
+
static DeleteUserSuccess() {
|
|
245
142
|
return Joi.object({
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
oauth2: UserModel.OAuthRequestSchemaOauth2(),
|
|
249
|
-
|
|
250
|
-
profile: UserModel.OAuthRequestSchemaProfile(),
|
|
143
|
+
success: Joi.boolean(),
|
|
251
144
|
});
|
|
252
145
|
}
|
|
253
|
-
|
|
254
|
-
static OAuthRequestAppleSchema() {
|
|
146
|
+
static EditEmailRequestSchema() {
|
|
255
147
|
return Joi.object({
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
oauth: UserModel.OAuthRequestAppleSchemaOauth(),
|
|
259
|
-
|
|
260
|
-
profile: UserModel.OAuthRequestAppleSchemaProfile(),
|
|
148
|
+
email: Joi.string().allow(""),
|
|
261
149
|
});
|
|
262
150
|
}
|
|
263
|
-
|
|
264
|
-
static UserObjectSchema() {
|
|
151
|
+
static EditMobileRequestSchema() {
|
|
265
152
|
return Joi.object({
|
|
266
|
-
|
|
153
|
+
country_code: Joi.string().allow(""),
|
|
154
|
+
phone: Joi.string().allow(""),
|
|
267
155
|
});
|
|
268
156
|
}
|
|
269
|
-
|
|
270
|
-
static AuthSuccess() {
|
|
157
|
+
static EditProfileMobileSchema() {
|
|
271
158
|
return Joi.object({
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
user_exists: Joi.boolean(),
|
|
275
|
-
|
|
276
|
-
user: UserModel.UserSchema(),
|
|
159
|
+
country_code: Joi.string().allow(""),
|
|
160
|
+
phone: Joi.string().allow(""),
|
|
277
161
|
});
|
|
278
162
|
}
|
|
279
|
-
|
|
280
|
-
static SendOtpResponse() {
|
|
163
|
+
static EditProfileRequestSchema() {
|
|
281
164
|
return Joi.object({
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
resend_token: Joi.string().allow(""),
|
|
285
|
-
|
|
286
|
-
success: Joi.boolean(),
|
|
287
|
-
|
|
288
|
-
request_id: Joi.string().allow(""),
|
|
289
|
-
|
|
290
|
-
message: Joi.string().allow(""),
|
|
291
|
-
|
|
292
|
-
mobile: Joi.string().allow(""),
|
|
293
|
-
|
|
165
|
+
android_hash: Joi.string().allow(""),
|
|
294
166
|
country_code: Joi.string().allow(""),
|
|
295
|
-
|
|
167
|
+
dob: Joi.string().allow(""),
|
|
296
168
|
email: Joi.string().allow(""),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
169
|
+
first_name: Joi.string().allow(""),
|
|
170
|
+
gender: Joi.string().allow(""),
|
|
171
|
+
last_name: Joi.string().allow(""),
|
|
172
|
+
mobile: UserModel.EditProfileMobileSchema(),
|
|
173
|
+
profile_pic_url: Joi.string().allow(""),
|
|
300
174
|
register_token: Joi.string().allow(""),
|
|
301
|
-
|
|
302
|
-
verify_email_otp: Joi.boolean(),
|
|
303
|
-
|
|
304
|
-
verify_mobile_otp: Joi.boolean(),
|
|
305
|
-
|
|
306
|
-
user_exists: Joi.boolean(),
|
|
175
|
+
sender: Joi.string().allow(""),
|
|
307
176
|
});
|
|
308
177
|
}
|
|
309
|
-
|
|
310
|
-
static ProfileEditSuccess() {
|
|
178
|
+
static Email() {
|
|
311
179
|
return Joi.object({
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
register_token: Joi.string().allow(""),
|
|
315
|
-
|
|
316
|
-
resend_email_token: Joi.string().allow(""),
|
|
317
|
-
|
|
318
|
-
user_exists: Joi.boolean(),
|
|
319
|
-
|
|
320
|
-
verify_email_link: Joi.boolean(),
|
|
321
|
-
|
|
322
|
-
verify_email_otp: Joi.boolean(),
|
|
323
|
-
|
|
324
|
-
verify_mobile_otp: Joi.boolean(),
|
|
325
|
-
|
|
180
|
+
active: Joi.boolean(),
|
|
326
181
|
email: Joi.string().allow(""),
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
182
|
+
primary: Joi.boolean(),
|
|
183
|
+
verified: Joi.boolean(),
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
static EmailOtpSuccess() {
|
|
187
|
+
return Joi.object({
|
|
334
188
|
success: Joi.boolean(),
|
|
335
|
-
|
|
336
|
-
message: Joi.string().allow(""),
|
|
337
|
-
|
|
338
|
-
resend_timer: Joi.number(),
|
|
339
|
-
|
|
340
|
-
resend_token: Joi.string().allow(""),
|
|
341
189
|
});
|
|
342
190
|
}
|
|
343
|
-
|
|
344
|
-
static LoginSuccess() {
|
|
191
|
+
static Facebook() {
|
|
345
192
|
return Joi.object({
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
request_id: Joi.string().allow(""),
|
|
349
|
-
|
|
350
|
-
register_token: Joi.string().allow(""),
|
|
193
|
+
app_id: Joi.string().allow(""),
|
|
351
194
|
});
|
|
352
195
|
}
|
|
353
|
-
|
|
354
|
-
static VerifyOtpSuccess() {
|
|
196
|
+
static FlashCard() {
|
|
355
197
|
return Joi.object({
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
register_token: Joi.string().allow(""),
|
|
198
|
+
background_color: Joi.string().allow(""),
|
|
199
|
+
text: Joi.string().allow(""),
|
|
200
|
+
text_color: Joi.string().allow(""),
|
|
361
201
|
});
|
|
362
202
|
}
|
|
363
|
-
|
|
364
|
-
static ResetPasswordSuccess() {
|
|
203
|
+
static ForgotPasswordRequestSchema() {
|
|
365
204
|
return Joi.object({
|
|
366
|
-
|
|
205
|
+
code: Joi.string().allow(""),
|
|
206
|
+
password: Joi.string().allow(""),
|
|
367
207
|
});
|
|
368
208
|
}
|
|
369
|
-
|
|
370
|
-
static RegisterFormSuccess() {
|
|
209
|
+
static FormRegisterRequestSchema() {
|
|
371
210
|
return Joi.object({
|
|
372
211
|
email: Joi.string().allow(""),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
resend_email_token: Joi.string().allow(""),
|
|
379
|
-
|
|
212
|
+
first_name: Joi.string().allow(""),
|
|
213
|
+
gender: Joi.string().allow(""),
|
|
214
|
+
last_name: Joi.string().allow(""),
|
|
215
|
+
password: Joi.string().allow(""),
|
|
216
|
+
phone: UserModel.FormRegisterRequestSchemaPhone(),
|
|
380
217
|
register_token: Joi.string().allow(""),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
message: Joi.string().allow(""),
|
|
387
|
-
|
|
388
|
-
mobile: Joi.string().allow(""),
|
|
389
|
-
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
static FormRegisterRequestSchemaPhone() {
|
|
221
|
+
return Joi.object({
|
|
390
222
|
country_code: Joi.string().allow(""),
|
|
391
|
-
|
|
392
|
-
verify_email_otp: Joi.boolean(),
|
|
393
|
-
|
|
394
|
-
verify_mobile_otp: Joi.boolean(),
|
|
395
|
-
|
|
396
|
-
user_exists: Joi.boolean(),
|
|
223
|
+
mobile: Joi.string().allow(""),
|
|
397
224
|
});
|
|
398
225
|
}
|
|
399
|
-
|
|
400
|
-
static VerifyEmailSuccess() {
|
|
226
|
+
static Google() {
|
|
401
227
|
return Joi.object({
|
|
402
|
-
|
|
228
|
+
app_id: Joi.string().allow(""),
|
|
403
229
|
});
|
|
404
230
|
}
|
|
405
|
-
|
|
406
231
|
static HasPasswordSuccess() {
|
|
407
232
|
return Joi.object({
|
|
408
233
|
result: Joi.boolean(),
|
|
409
234
|
});
|
|
410
235
|
}
|
|
411
|
-
|
|
412
|
-
static LogoutSuccess() {
|
|
236
|
+
static Login() {
|
|
413
237
|
return Joi.object({
|
|
414
|
-
|
|
238
|
+
otp: Joi.boolean(),
|
|
239
|
+
password: Joi.boolean(),
|
|
415
240
|
});
|
|
416
241
|
}
|
|
417
|
-
|
|
418
|
-
static BlockUserSuccess() {
|
|
242
|
+
static LoginSuccess() {
|
|
419
243
|
return Joi.object({
|
|
420
|
-
|
|
244
|
+
register_token: Joi.string().allow(""),
|
|
245
|
+
request_id: Joi.string().allow(""),
|
|
246
|
+
user: UserModel.UserSchema(),
|
|
421
247
|
});
|
|
422
248
|
}
|
|
423
|
-
|
|
424
|
-
static ArchiveUserSuccess() {
|
|
249
|
+
static LogoutSuccess() {
|
|
425
250
|
return Joi.object({
|
|
426
|
-
|
|
251
|
+
logout: Joi.boolean(),
|
|
427
252
|
});
|
|
428
253
|
}
|
|
429
|
-
|
|
430
|
-
static DeleteUserSuccess() {
|
|
254
|
+
static LookAndFeel() {
|
|
431
255
|
return Joi.object({
|
|
432
|
-
|
|
256
|
+
background_color: Joi.string().allow(""),
|
|
257
|
+
card_position: Joi.string().allow(""),
|
|
433
258
|
});
|
|
434
259
|
}
|
|
435
|
-
|
|
436
|
-
static UnDeleteUserSuccess() {
|
|
260
|
+
static MetaSchema() {
|
|
437
261
|
return Joi.object({
|
|
438
|
-
|
|
262
|
+
fynd_default: Joi.boolean(),
|
|
439
263
|
});
|
|
440
264
|
}
|
|
441
|
-
|
|
442
|
-
static OtpSuccess() {
|
|
265
|
+
static NotFoundSchema() {
|
|
443
266
|
return Joi.object({
|
|
444
|
-
resend_timer: Joi.number(),
|
|
445
|
-
|
|
446
|
-
resend_token: Joi.string().allow(""),
|
|
447
|
-
|
|
448
|
-
register_token: Joi.string().allow(""),
|
|
449
|
-
|
|
450
|
-
success: Joi.boolean(),
|
|
451
|
-
|
|
452
|
-
request_id: Joi.string().allow(""),
|
|
453
|
-
|
|
454
267
|
message: Joi.string().allow(""),
|
|
455
|
-
|
|
456
|
-
mobile: Joi.string().allow(""),
|
|
457
|
-
|
|
458
|
-
country_code: Joi.string().allow(""),
|
|
459
268
|
});
|
|
460
269
|
}
|
|
461
|
-
|
|
462
|
-
static EmailOtpSuccess() {
|
|
270
|
+
static OAuthRequestAppleSchema() {
|
|
463
271
|
return Joi.object({
|
|
464
|
-
|
|
272
|
+
oauth: UserModel.OAuthRequestAppleSchemaOauth(),
|
|
273
|
+
profile: UserModel.OAuthRequestAppleSchemaProfile(),
|
|
274
|
+
user_identifier: Joi.string().allow(""),
|
|
465
275
|
});
|
|
466
276
|
}
|
|
467
|
-
|
|
468
|
-
static SessionListSuccess() {
|
|
277
|
+
static OAuthRequestAppleSchemaOauth() {
|
|
469
278
|
return Joi.object({
|
|
470
|
-
|
|
279
|
+
identity_token: Joi.string().allow(""),
|
|
471
280
|
});
|
|
472
281
|
}
|
|
473
|
-
|
|
474
|
-
static VerifyMobileOTPSuccess() {
|
|
282
|
+
static OAuthRequestAppleSchemaProfile() {
|
|
475
283
|
return Joi.object({
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
284
|
+
first_name: Joi.string().allow(""),
|
|
285
|
+
full_name: Joi.string().allow(""),
|
|
286
|
+
last_name: Joi.string().allow(""),
|
|
479
287
|
});
|
|
480
288
|
}
|
|
481
|
-
|
|
482
|
-
static VerifyEmailOTPSuccess() {
|
|
289
|
+
static OAuthRequestSchema() {
|
|
483
290
|
return Joi.object({
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
291
|
+
is_signed_in: Joi.boolean(),
|
|
292
|
+
oauth2: UserModel.OAuthRequestSchemaOauth2(),
|
|
293
|
+
profile: UserModel.OAuthRequestSchemaProfile(),
|
|
487
294
|
});
|
|
488
295
|
}
|
|
489
|
-
|
|
490
|
-
static SendMobileVerifyLinkSuccess() {
|
|
296
|
+
static OAuthRequestSchemaOauth2() {
|
|
491
297
|
return Joi.object({
|
|
492
|
-
|
|
298
|
+
access_token: Joi.string().allow(""),
|
|
299
|
+
expiry: Joi.number(),
|
|
300
|
+
refresh_token: Joi.string().allow(""),
|
|
493
301
|
});
|
|
494
302
|
}
|
|
495
|
-
|
|
496
|
-
static SendEmailVerifyLinkSuccess() {
|
|
303
|
+
static OAuthRequestSchemaProfile() {
|
|
497
304
|
return Joi.object({
|
|
498
|
-
|
|
305
|
+
email: Joi.string().allow(""),
|
|
306
|
+
first_name: Joi.string().allow(""),
|
|
307
|
+
full_name: Joi.string().allow(""),
|
|
308
|
+
id: Joi.string().allow(""),
|
|
309
|
+
image: Joi.string().allow(""),
|
|
310
|
+
last_name: Joi.string().allow(""),
|
|
499
311
|
});
|
|
500
312
|
}
|
|
501
|
-
|
|
502
|
-
static UserSearchResponseSchema() {
|
|
313
|
+
static OtpSuccess() {
|
|
503
314
|
return Joi.object({
|
|
504
|
-
|
|
315
|
+
country_code: Joi.string().allow(""),
|
|
316
|
+
message: Joi.string().allow(""),
|
|
317
|
+
mobile: Joi.string().allow(""),
|
|
318
|
+
register_token: Joi.string().allow(""),
|
|
319
|
+
request_id: Joi.string().allow(""),
|
|
320
|
+
resend_timer: Joi.number(),
|
|
321
|
+
resend_token: Joi.string().allow(""),
|
|
322
|
+
success: Joi.boolean(),
|
|
505
323
|
});
|
|
506
324
|
}
|
|
507
|
-
|
|
508
|
-
static CustomerListResponseSchema() {
|
|
325
|
+
static PaginationSchema() {
|
|
509
326
|
return Joi.object({
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
page: UserModel.PaginationSchema(),
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
static PaginationSchema() {
|
|
517
|
-
return Joi.object({
|
|
518
|
-
size: Joi.number(),
|
|
519
|
-
|
|
520
|
-
item_total: Joi.number(),
|
|
521
|
-
|
|
327
|
+
current: Joi.number(),
|
|
522
328
|
has_next: Joi.boolean(),
|
|
523
|
-
|
|
329
|
+
item_total: Joi.number(),
|
|
330
|
+
size: Joi.number(),
|
|
524
331
|
type: Joi.string().allow(""),
|
|
525
|
-
|
|
526
|
-
current: Joi.number(),
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
static SessionListResponseSchema() {
|
|
531
|
-
return Joi.object({
|
|
532
|
-
items: Joi.array().items(Joi.string().allow("")),
|
|
533
332
|
});
|
|
534
333
|
}
|
|
535
|
-
|
|
536
|
-
static SessionDeleteResponseSchema() {
|
|
334
|
+
static PasswordLoginRequestSchema() {
|
|
537
335
|
return Joi.object({
|
|
538
|
-
|
|
336
|
+
captcha_code: Joi.string().allow(""),
|
|
337
|
+
password: Joi.string().allow(""),
|
|
338
|
+
username: Joi.string().allow(""),
|
|
539
339
|
});
|
|
540
340
|
}
|
|
541
|
-
|
|
542
|
-
static UnauthorizedSchema() {
|
|
341
|
+
static PhoneNumber() {
|
|
543
342
|
return Joi.object({
|
|
544
|
-
|
|
343
|
+
active: Joi.boolean(),
|
|
344
|
+
country_code: Joi.number(),
|
|
345
|
+
phone: Joi.string().allow(""),
|
|
346
|
+
primary: Joi.boolean(),
|
|
347
|
+
verified: Joi.boolean(),
|
|
545
348
|
});
|
|
546
349
|
}
|
|
547
|
-
|
|
548
|
-
static UnauthenticatedSchema() {
|
|
350
|
+
static PlatformEmail() {
|
|
549
351
|
return Joi.object({
|
|
550
|
-
|
|
352
|
+
is_required: Joi.boolean(),
|
|
353
|
+
level: Joi.string().allow(""),
|
|
551
354
|
});
|
|
552
355
|
}
|
|
553
|
-
|
|
554
|
-
static NotFoundSchema() {
|
|
356
|
+
static PlatformMobile() {
|
|
555
357
|
return Joi.object({
|
|
556
|
-
|
|
358
|
+
is_required: Joi.boolean(),
|
|
359
|
+
level: Joi.string().allow(""),
|
|
557
360
|
});
|
|
558
361
|
}
|
|
559
|
-
|
|
560
|
-
static AuthenticationInternalServerErrorSchema() {
|
|
362
|
+
static PlatformSchema() {
|
|
561
363
|
return Joi.object({
|
|
562
|
-
|
|
364
|
+
_id: Joi.string().allow(""),
|
|
365
|
+
active: Joi.boolean(),
|
|
366
|
+
created_at: Joi.string().allow(""),
|
|
367
|
+
delete_account_consent: Joi.any(),
|
|
368
|
+
delete_account_day: Joi.number(),
|
|
369
|
+
delete_account_reasons: Joi.array().items(
|
|
370
|
+
UserModel.DeleteAccountReasons()
|
|
371
|
+
),
|
|
372
|
+
desktop_image: Joi.string().allow(""),
|
|
373
|
+
display: Joi.string().allow(""),
|
|
374
|
+
flash_card: UserModel.FlashCard(),
|
|
375
|
+
forgot_password: Joi.boolean(),
|
|
376
|
+
login: UserModel.Login(),
|
|
377
|
+
look_and_feel: UserModel.LookAndFeel(),
|
|
378
|
+
meta: UserModel.MetaSchema(),
|
|
379
|
+
mobile_image: Joi.string().allow(""),
|
|
380
|
+
name: Joi.string().allow(""),
|
|
381
|
+
register: Joi.boolean(),
|
|
382
|
+
register_required_fields: UserModel.RegisterRequiredFields(),
|
|
383
|
+
required_fields: UserModel.RequiredFields(),
|
|
384
|
+
session_config: Joi.any(),
|
|
385
|
+
skip_captcha: Joi.boolean(),
|
|
386
|
+
skip_login: Joi.boolean(),
|
|
387
|
+
social: UserModel.Social(),
|
|
388
|
+
social_tokens: UserModel.SocialTokens(),
|
|
389
|
+
subtext: Joi.string().allow(""),
|
|
390
|
+
updated_at: Joi.string().allow(""),
|
|
563
391
|
});
|
|
564
392
|
}
|
|
565
|
-
|
|
566
|
-
static AuthenticationApiErrorSchema() {
|
|
393
|
+
static ProfileEditSuccess() {
|
|
567
394
|
return Joi.object({
|
|
395
|
+
country_code: Joi.string().allow(""),
|
|
396
|
+
email: Joi.string().allow(""),
|
|
568
397
|
message: Joi.string().allow(""),
|
|
398
|
+
mobile: Joi.string().allow(""),
|
|
399
|
+
register_token: Joi.string().allow(""),
|
|
400
|
+
request_id: Joi.string().allow(""),
|
|
401
|
+
resend_email_token: Joi.string().allow(""),
|
|
402
|
+
resend_timer: Joi.number(),
|
|
403
|
+
resend_token: Joi.string().allow(""),
|
|
404
|
+
success: Joi.boolean(),
|
|
405
|
+
user: UserModel.UserSchema(),
|
|
406
|
+
user_exists: Joi.boolean(),
|
|
407
|
+
verify_email_link: Joi.boolean(),
|
|
408
|
+
verify_email_otp: Joi.boolean(),
|
|
409
|
+
verify_mobile_otp: Joi.boolean(),
|
|
569
410
|
});
|
|
570
411
|
}
|
|
571
|
-
|
|
572
412
|
static ProfileEditSuccessSchema() {
|
|
573
413
|
return Joi.object({
|
|
574
414
|
email: Joi.string().allow(""),
|
|
575
|
-
|
|
576
|
-
verify_email_otp: Joi.boolean(),
|
|
577
|
-
|
|
578
|
-
verify_email_link: Joi.boolean(),
|
|
579
|
-
|
|
580
|
-
verify_mobile_otp: Joi.boolean(),
|
|
581
|
-
|
|
582
|
-
user: Joi.string().allow(""),
|
|
583
|
-
|
|
584
415
|
register_token: Joi.string().allow(""),
|
|
585
|
-
|
|
416
|
+
user: Joi.string().allow(""),
|
|
586
417
|
user_exists: Joi.boolean(),
|
|
418
|
+
verify_email_link: Joi.boolean(),
|
|
419
|
+
verify_email_otp: Joi.boolean(),
|
|
420
|
+
verify_mobile_otp: Joi.boolean(),
|
|
587
421
|
});
|
|
588
422
|
}
|
|
589
|
-
|
|
590
|
-
static FormRegisterRequestSchemaPhone() {
|
|
423
|
+
static RegisterFormSuccess() {
|
|
591
424
|
return Joi.object({
|
|
592
425
|
country_code: Joi.string().allow(""),
|
|
593
|
-
|
|
426
|
+
email: Joi.string().allow(""),
|
|
427
|
+
message: Joi.string().allow(""),
|
|
594
428
|
mobile: Joi.string().allow(""),
|
|
429
|
+
register_token: Joi.string().allow(""),
|
|
430
|
+
request_id: Joi.string().allow(""),
|
|
431
|
+
resend_email_token: Joi.string().allow(""),
|
|
432
|
+
resend_timer: Joi.number(),
|
|
433
|
+
resend_token: Joi.string().allow(""),
|
|
434
|
+
success: Joi.boolean(),
|
|
435
|
+
user_exists: Joi.boolean(),
|
|
436
|
+
verify_email_otp: Joi.boolean(),
|
|
437
|
+
verify_mobile_otp: Joi.boolean(),
|
|
595
438
|
});
|
|
596
439
|
}
|
|
597
|
-
|
|
598
|
-
static OAuthRequestSchemaOauth2() {
|
|
440
|
+
static RegisterRequiredFields() {
|
|
599
441
|
return Joi.object({
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
expiry: Joi.number(),
|
|
603
|
-
|
|
604
|
-
refresh_token: Joi.string().allow(""),
|
|
442
|
+
email: UserModel.RegisterRequiredFieldsEmail(),
|
|
443
|
+
mobile: UserModel.RegisterRequiredFieldsMobile(),
|
|
605
444
|
});
|
|
606
445
|
}
|
|
607
|
-
|
|
608
|
-
static OAuthRequestSchemaProfile() {
|
|
446
|
+
static RegisterRequiredFieldsEmail() {
|
|
609
447
|
return Joi.object({
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
image: Joi.string().allow(""),
|
|
613
|
-
|
|
614
|
-
id: Joi.string().allow(""),
|
|
615
|
-
|
|
616
|
-
email: Joi.string().allow(""),
|
|
617
|
-
|
|
618
|
-
full_name: Joi.string().allow(""),
|
|
619
|
-
|
|
620
|
-
first_name: Joi.string().allow(""),
|
|
448
|
+
is_required: Joi.boolean(),
|
|
449
|
+
level: Joi.string().allow(""),
|
|
621
450
|
});
|
|
622
451
|
}
|
|
623
|
-
|
|
624
|
-
static OAuthRequestAppleSchemaOauth() {
|
|
452
|
+
static RegisterRequiredFieldsMobile() {
|
|
625
453
|
return Joi.object({
|
|
626
|
-
|
|
454
|
+
is_required: Joi.boolean(),
|
|
455
|
+
level: Joi.string().allow(""),
|
|
627
456
|
});
|
|
628
457
|
}
|
|
629
|
-
|
|
630
|
-
static OAuthRequestAppleSchemaProfile() {
|
|
458
|
+
static RequiredFields() {
|
|
631
459
|
return Joi.object({
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
full_name: Joi.string().allow(""),
|
|
635
|
-
|
|
636
|
-
first_name: Joi.string().allow(""),
|
|
460
|
+
email: UserModel.PlatformEmail(),
|
|
461
|
+
mobile: UserModel.PlatformMobile(),
|
|
637
462
|
});
|
|
638
463
|
}
|
|
639
|
-
|
|
640
|
-
static AuthSuccessUser() {
|
|
464
|
+
static ResetPasswordSuccess() {
|
|
641
465
|
return Joi.object({
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
last_name: Joi.string().allow(""),
|
|
645
|
-
|
|
646
|
-
debug: UserModel.AuthSuccessUserDebug(),
|
|
647
|
-
|
|
648
|
-
active: Joi.boolean(),
|
|
649
|
-
|
|
650
|
-
emails: UserModel.AuthSuccessUserEmails(),
|
|
466
|
+
status: Joi.string().allow(""),
|
|
651
467
|
});
|
|
652
468
|
}
|
|
653
|
-
|
|
654
|
-
static AuthSuccessUserDebug() {
|
|
469
|
+
static SendEmailOtpRequestSchema() {
|
|
655
470
|
return Joi.object({
|
|
656
|
-
|
|
471
|
+
action: Joi.string().allow(""),
|
|
472
|
+
email: Joi.string().allow(""),
|
|
473
|
+
register_token: Joi.string().allow(""),
|
|
474
|
+
token: Joi.string().allow(""),
|
|
657
475
|
});
|
|
658
476
|
}
|
|
659
|
-
|
|
660
|
-
static AuthSuccessUserEmails() {
|
|
477
|
+
static SendEmailVerifyLinkSuccess() {
|
|
661
478
|
return Joi.object({
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
verified: Joi.boolean(),
|
|
665
|
-
|
|
666
|
-
primary: Joi.boolean(),
|
|
667
|
-
|
|
668
|
-
active: Joi.boolean(),
|
|
479
|
+
verify_email_link: Joi.boolean(),
|
|
669
480
|
});
|
|
670
481
|
}
|
|
671
|
-
|
|
672
|
-
static CreateUserRequestSchema() {
|
|
482
|
+
static SendMobileOtpRequestSchema() {
|
|
673
483
|
return Joi.object({
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
gender: Joi.string().allow(""),
|
|
683
|
-
|
|
684
|
-
username: Joi.string().allow("").required(),
|
|
685
|
-
|
|
686
|
-
meta: Joi.any(),
|
|
484
|
+
action: Joi.string().allow(""),
|
|
485
|
+
android_hash: Joi.string().allow(""),
|
|
486
|
+
captcha_code: Joi.string().allow(""),
|
|
487
|
+
country_code: Joi.string().allow(""),
|
|
488
|
+
force: Joi.string().allow(""),
|
|
489
|
+
mobile: Joi.string().allow(""),
|
|
490
|
+
token: Joi.string().allow(""),
|
|
687
491
|
});
|
|
688
492
|
}
|
|
689
|
-
|
|
690
|
-
static CreateUserResponseSchema() {
|
|
493
|
+
static SendMobileVerifyLinkSuccess() {
|
|
691
494
|
return Joi.object({
|
|
692
|
-
|
|
495
|
+
verify_mobile_link: Joi.boolean(),
|
|
693
496
|
});
|
|
694
497
|
}
|
|
695
|
-
|
|
696
|
-
static CreateUserSessionRequestSchema() {
|
|
498
|
+
static SendOtpRequestSchema() {
|
|
697
499
|
return Joi.object({
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
user_id: Joi.string().allow(""),
|
|
500
|
+
android_hash: Joi.string().allow(""),
|
|
501
|
+
captcha_code: Joi.string().allow(""),
|
|
502
|
+
country_code: Joi.string().allow(""),
|
|
503
|
+
mobile: Joi.string().allow(""),
|
|
703
504
|
});
|
|
704
505
|
}
|
|
705
|
-
|
|
706
|
-
static CreateUserSessionResponseSchema() {
|
|
506
|
+
static SendOtpResponse() {
|
|
707
507
|
return Joi.object({
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
508
|
+
country_code: Joi.string().allow(""),
|
|
509
|
+
email: Joi.string().allow(""),
|
|
510
|
+
message: Joi.string().allow(""),
|
|
511
|
+
mobile: Joi.string().allow(""),
|
|
512
|
+
register_token: Joi.string().allow(""),
|
|
513
|
+
request_id: Joi.string().allow(""),
|
|
514
|
+
resend_email_token: Joi.string().allow(""),
|
|
515
|
+
resend_timer: Joi.number(),
|
|
516
|
+
resend_token: Joi.string().allow(""),
|
|
517
|
+
success: Joi.boolean(),
|
|
518
|
+
user_exists: Joi.boolean(),
|
|
519
|
+
verify_email_otp: Joi.boolean(),
|
|
520
|
+
verify_mobile_otp: Joi.boolean(),
|
|
717
521
|
});
|
|
718
522
|
}
|
|
719
|
-
|
|
720
|
-
|
|
523
|
+
static SendResetPasswordEmailRequestSchema() {
|
|
524
|
+
return Joi.object({
|
|
525
|
+
captcha_code: Joi.string().allow(""),
|
|
526
|
+
email: Joi.string().allow(""),
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
static SendResetPasswordMobileRequestSchema() {
|
|
530
|
+
return Joi.object({
|
|
531
|
+
captcha_code: Joi.string().allow(""),
|
|
532
|
+
country_code: Joi.string().allow(""),
|
|
533
|
+
mobile: Joi.string().allow(""),
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
static SendVerificationLinkMobileRequestSchema() {
|
|
721
537
|
return Joi.object({
|
|
722
|
-
display: Joi.string().allow(""),
|
|
723
|
-
|
|
724
|
-
look_and_feel: UserModel.LookAndFeel(),
|
|
725
|
-
|
|
726
|
-
updated_at: Joi.string().allow(""),
|
|
727
|
-
|
|
728
538
|
active: Joi.boolean(),
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
skip_captcha: Joi.boolean(),
|
|
735
|
-
|
|
736
|
-
name: Joi.string().allow(""),
|
|
737
|
-
|
|
738
|
-
meta: UserModel.MetaSchema(),
|
|
739
|
-
|
|
740
|
-
_id: Joi.string().allow(""),
|
|
741
|
-
|
|
742
|
-
social: UserModel.Social(),
|
|
743
|
-
|
|
744
|
-
required_fields: UserModel.RequiredFields(),
|
|
745
|
-
|
|
746
|
-
register_required_fields: UserModel.RegisterRequiredFields(),
|
|
747
|
-
|
|
748
|
-
skip_login: Joi.boolean(),
|
|
749
|
-
|
|
750
|
-
flash_card: UserModel.FlashCard(),
|
|
751
|
-
|
|
752
|
-
subtext: Joi.string().allow(""),
|
|
753
|
-
|
|
754
|
-
social_tokens: UserModel.SocialTokens(),
|
|
755
|
-
|
|
756
|
-
created_at: Joi.string().allow(""),
|
|
757
|
-
|
|
758
|
-
register: Joi.boolean(),
|
|
759
|
-
|
|
760
|
-
mobile_image: Joi.string().allow(""),
|
|
761
|
-
|
|
762
|
-
desktop_image: Joi.string().allow(""),
|
|
763
|
-
|
|
764
|
-
delete_account_day: Joi.number(),
|
|
765
|
-
|
|
766
|
-
delete_account_reasons: Joi.array().items(
|
|
767
|
-
UserModel.DeleteAccountReasons()
|
|
768
|
-
),
|
|
769
|
-
|
|
770
|
-
delete_account_consent: Joi.any(),
|
|
771
|
-
|
|
772
|
-
session_config: Joi.any(),
|
|
539
|
+
country_code: Joi.string().allow(""),
|
|
540
|
+
phone: Joi.string().allow(""),
|
|
541
|
+
primary: Joi.boolean(),
|
|
542
|
+
verified: Joi.boolean(),
|
|
773
543
|
});
|
|
774
544
|
}
|
|
775
|
-
|
|
776
|
-
static LookAndFeel() {
|
|
545
|
+
static SessionDeleteResponseSchema() {
|
|
777
546
|
return Joi.object({
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
background_color: Joi.string().allow(""),
|
|
547
|
+
items: Joi.array().items(Joi.string().allow("")),
|
|
781
548
|
});
|
|
782
549
|
}
|
|
783
|
-
|
|
784
|
-
static Login() {
|
|
550
|
+
static SessionExpiry() {
|
|
785
551
|
return Joi.object({
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
552
|
+
duration: Joi.number(),
|
|
553
|
+
is_rolling: Joi.boolean(),
|
|
554
|
+
type: Joi.string().allow(""),
|
|
789
555
|
});
|
|
790
556
|
}
|
|
791
|
-
|
|
792
|
-
static MetaSchema() {
|
|
557
|
+
static SessionListResponseInfo() {
|
|
793
558
|
return Joi.object({
|
|
794
|
-
|
|
559
|
+
domain: Joi.string().allow(""),
|
|
560
|
+
expire_in: Joi.string().allow(""),
|
|
561
|
+
ip: Joi.string().allow(""),
|
|
562
|
+
session_id: Joi.string().allow(""),
|
|
563
|
+
user_agent: Joi.string().allow(""),
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
static SessionListResponseSchema() {
|
|
567
|
+
return Joi.object({
|
|
568
|
+
items: Joi.array().items(UserModel.SessionListResponseInfo()),
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
static SessionListSuccess() {
|
|
572
|
+
return Joi.object({
|
|
573
|
+
sessions: Joi.array().items(Joi.string().allow("")),
|
|
795
574
|
});
|
|
796
575
|
}
|
|
797
|
-
|
|
798
576
|
static Social() {
|
|
799
577
|
return Joi.object({
|
|
800
578
|
account_kit: Joi.boolean(),
|
|
801
|
-
|
|
579
|
+
apple: Joi.boolean(),
|
|
802
580
|
facebook: Joi.boolean(),
|
|
803
|
-
|
|
804
581
|
google: Joi.boolean(),
|
|
805
|
-
|
|
806
|
-
apple: Joi.boolean(),
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
static RequiredFields() {
|
|
811
|
-
return Joi.object({
|
|
812
|
-
email: UserModel.PlatformEmail(),
|
|
813
|
-
|
|
814
|
-
mobile: UserModel.PlatformMobile(),
|
|
815
582
|
});
|
|
816
583
|
}
|
|
817
|
-
|
|
818
|
-
static PlatformEmail() {
|
|
584
|
+
static SocialTokens() {
|
|
819
585
|
return Joi.object({
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
586
|
+
account_kit: UserModel.Accountkit(),
|
|
587
|
+
facebook: UserModel.Facebook(),
|
|
588
|
+
google: UserModel.Google(),
|
|
823
589
|
});
|
|
824
590
|
}
|
|
825
|
-
|
|
826
|
-
static PlatformMobile() {
|
|
591
|
+
static TokenRequestBodySchema() {
|
|
827
592
|
return Joi.object({
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
level: Joi.string().allow(""),
|
|
593
|
+
token: Joi.string().allow(""),
|
|
831
594
|
});
|
|
832
595
|
}
|
|
833
|
-
|
|
834
|
-
static RegisterRequiredFields() {
|
|
596
|
+
static UnauthenticatedSchema() {
|
|
835
597
|
return Joi.object({
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
mobile: UserModel.RegisterRequiredFieldsMobile(),
|
|
598
|
+
authenticated: Joi.boolean(),
|
|
839
599
|
});
|
|
840
600
|
}
|
|
841
|
-
|
|
842
|
-
static RegisterRequiredFieldsEmail() {
|
|
601
|
+
static UnauthorizedSchema() {
|
|
843
602
|
return Joi.object({
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
level: Joi.string().allow(""),
|
|
603
|
+
message: Joi.string().allow(""),
|
|
847
604
|
});
|
|
848
605
|
}
|
|
849
|
-
|
|
850
|
-
static RegisterRequiredFieldsMobile() {
|
|
606
|
+
static UnDeleteUserRequestSchema() {
|
|
851
607
|
return Joi.object({
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
608
|
+
reason: Joi.string().allow(""),
|
|
609
|
+
reason_id: Joi.string().allow(""),
|
|
610
|
+
user_id: Joi.string().allow(""),
|
|
855
611
|
});
|
|
856
612
|
}
|
|
857
|
-
|
|
858
|
-
static FlashCard() {
|
|
613
|
+
static UnDeleteUserSuccess() {
|
|
859
614
|
return Joi.object({
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
text_color: Joi.string().allow(""),
|
|
863
|
-
|
|
864
|
-
background_color: Joi.string().allow(""),
|
|
615
|
+
success: Joi.boolean(),
|
|
865
616
|
});
|
|
866
617
|
}
|
|
867
|
-
|
|
868
|
-
static SocialTokens() {
|
|
618
|
+
static UpdatePasswordRequestSchema() {
|
|
869
619
|
return Joi.object({
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
account_kit: UserModel.Accountkit(),
|
|
873
|
-
|
|
874
|
-
google: UserModel.Google(),
|
|
620
|
+
new_password: Joi.string().allow(""),
|
|
621
|
+
old_password: Joi.string().allow(""),
|
|
875
622
|
});
|
|
876
623
|
}
|
|
877
|
-
|
|
878
|
-
static DeleteAccountReasons() {
|
|
624
|
+
static UpdateUserGroupSchema() {
|
|
879
625
|
return Joi.object({
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
show_text_area: Joi.boolean(),
|
|
626
|
+
description: Joi.string().allow(""),
|
|
627
|
+
file_url: Joi.string().allow(""),
|
|
628
|
+
name: Joi.string().allow(""),
|
|
885
629
|
});
|
|
886
630
|
}
|
|
887
|
-
|
|
888
|
-
static DeleteAccountConsent() {
|
|
631
|
+
static UpdateUserRequestSchema() {
|
|
889
632
|
return Joi.object({
|
|
890
|
-
|
|
633
|
+
emails: Joi.array().items(UserModel.UserEmails()),
|
|
634
|
+
external_id: Joi.string().allow(""),
|
|
635
|
+
first_name: Joi.string().allow(""),
|
|
636
|
+
gender: Joi.string().allow(""),
|
|
637
|
+
last_name: Joi.string().allow(""),
|
|
638
|
+
meta: Joi.any(),
|
|
639
|
+
phone_numbers: Joi.array().items(UserModel.UserPhoneNumbers()),
|
|
891
640
|
});
|
|
892
641
|
}
|
|
893
|
-
|
|
894
|
-
static Facebook() {
|
|
642
|
+
static UserEmails() {
|
|
895
643
|
return Joi.object({
|
|
896
|
-
|
|
644
|
+
active: Joi.boolean(),
|
|
645
|
+
email: Joi.string().allow(""),
|
|
646
|
+
primary: Joi.boolean(),
|
|
647
|
+
verified: Joi.boolean(),
|
|
897
648
|
});
|
|
898
649
|
}
|
|
899
|
-
|
|
900
|
-
static Accountkit() {
|
|
650
|
+
static UserGroupListResponseSchema() {
|
|
901
651
|
return Joi.object({
|
|
902
|
-
|
|
652
|
+
items: Joi.array().items(UserModel.UserGroupResponseSchema()),
|
|
653
|
+
page: UserModel.PaginationSchema(),
|
|
903
654
|
});
|
|
904
655
|
}
|
|
905
|
-
|
|
906
|
-
static Google() {
|
|
656
|
+
static UserGroupResponseSchema() {
|
|
907
657
|
return Joi.object({
|
|
908
|
-
|
|
658
|
+
__v: Joi.number(),
|
|
659
|
+
_id: Joi.string().allow(""),
|
|
660
|
+
application_id: Joi.string().allow(""),
|
|
661
|
+
created_at: Joi.string().allow(""),
|
|
662
|
+
description: Joi.string().allow(""),
|
|
663
|
+
file_url: Joi.string().allow(""),
|
|
664
|
+
modified_at: Joi.string().allow(""),
|
|
665
|
+
name: Joi.string().allow(""),
|
|
666
|
+
status: Joi.string().allow(""),
|
|
667
|
+
uid: Joi.number(),
|
|
909
668
|
});
|
|
910
669
|
}
|
|
911
|
-
|
|
912
|
-
static SessionExpiry() {
|
|
670
|
+
static UserObjectSchema() {
|
|
913
671
|
return Joi.object({
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
type: Joi.string().allow(""),
|
|
917
|
-
|
|
918
|
-
is_rolling: Joi.boolean(),
|
|
672
|
+
user: UserModel.UserSchema(),
|
|
919
673
|
});
|
|
920
674
|
}
|
|
921
|
-
|
|
922
|
-
static UpdateUserRequestSchema() {
|
|
675
|
+
static UserPhoneNumbers() {
|
|
923
676
|
return Joi.object({
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
external_id: Joi.string().allow(""),
|
|
931
|
-
|
|
932
|
-
meta: Joi.any(),
|
|
677
|
+
active: Joi.boolean(),
|
|
678
|
+
country_code: Joi.string().allow(""),
|
|
679
|
+
phone: Joi.string().allow(""),
|
|
680
|
+
primary: Joi.boolean(),
|
|
681
|
+
verified: Joi.boolean(),
|
|
933
682
|
});
|
|
934
683
|
}
|
|
935
|
-
|
|
936
684
|
static UserSchema() {
|
|
937
685
|
return Joi.object({
|
|
686
|
+
_id: Joi.string().allow(""),
|
|
687
|
+
account_type: Joi.string().allow(""),
|
|
688
|
+
active: Joi.boolean(),
|
|
938
689
|
application_id: Joi.string().allow(""),
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
690
|
+
created_at: Joi.string().allow(""),
|
|
691
|
+
dob: Joi.string().allow(""),
|
|
692
|
+
emails: Joi.array().items(UserModel.Email()),
|
|
942
693
|
first_name: Joi.string().allow(""),
|
|
943
|
-
|
|
944
|
-
meta: Joi.any(),
|
|
945
|
-
|
|
694
|
+
gender: Joi.string().allow(""),
|
|
946
695
|
last_name: Joi.string().allow(""),
|
|
947
|
-
|
|
696
|
+
meta: Joi.any(),
|
|
948
697
|
phone_numbers: Joi.array().items(UserModel.PhoneNumber()),
|
|
949
|
-
|
|
950
|
-
emails: Joi.array().items(UserModel.Email()),
|
|
951
|
-
|
|
952
|
-
gender: Joi.string().allow(""),
|
|
953
|
-
|
|
954
|
-
dob: Joi.string().allow(""),
|
|
955
|
-
|
|
956
|
-
active: Joi.boolean(),
|
|
957
|
-
|
|
958
698
|
profile_pic_url: Joi.string().allow(""),
|
|
959
|
-
|
|
960
|
-
username: Joi.string().allow(""),
|
|
961
|
-
|
|
962
|
-
account_type: Joi.string().allow(""),
|
|
963
|
-
|
|
964
|
-
_id: Joi.string().allow(""),
|
|
965
|
-
|
|
966
|
-
created_at: Joi.string().allow(""),
|
|
967
|
-
|
|
968
699
|
updated_at: Joi.string().allow(""),
|
|
700
|
+
user_id: Joi.string().allow(""),
|
|
701
|
+
username: Joi.string().allow(""),
|
|
969
702
|
});
|
|
970
703
|
}
|
|
971
|
-
|
|
972
|
-
static PhoneNumber() {
|
|
704
|
+
static UserSearchResponseSchema() {
|
|
973
705
|
return Joi.object({
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
primary: Joi.boolean(),
|
|
977
|
-
|
|
978
|
-
verified: Joi.boolean(),
|
|
979
|
-
|
|
980
|
-
phone: Joi.string().allow(""),
|
|
981
|
-
|
|
982
|
-
country_code: Joi.number(),
|
|
706
|
+
users: Joi.array().items(UserModel.UserSchema()),
|
|
983
707
|
});
|
|
984
708
|
}
|
|
985
|
-
|
|
986
|
-
static Email() {
|
|
709
|
+
static VerifyEmailOtpRequestSchema() {
|
|
987
710
|
return Joi.object({
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
verified: Joi.boolean(),
|
|
991
|
-
|
|
711
|
+
action: Joi.string().allow(""),
|
|
992
712
|
email: Joi.string().allow(""),
|
|
993
|
-
|
|
994
|
-
|
|
713
|
+
otp: Joi.string().allow(""),
|
|
714
|
+
register_token: Joi.string().allow(""),
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
static VerifyEmailOTPSuccess() {
|
|
718
|
+
return Joi.object({
|
|
719
|
+
user: UserModel.UserSchema(),
|
|
720
|
+
verify_email_link: Joi.boolean(),
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
static VerifyEmailSuccess() {
|
|
724
|
+
return Joi.object({
|
|
725
|
+
message: Joi.string().allow(""),
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
static VerifyMobileOTPSuccess() {
|
|
729
|
+
return Joi.object({
|
|
730
|
+
user: UserModel.UserSchema(),
|
|
731
|
+
verify_mobile_link: Joi.boolean(),
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
static VerifyOtpRequestSchema() {
|
|
735
|
+
return Joi.object({
|
|
736
|
+
otp: Joi.string().allow(""),
|
|
737
|
+
register_token: Joi.string().allow(""),
|
|
738
|
+
request_id: Joi.string().allow(""),
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
static VerifyOtpSuccess() {
|
|
742
|
+
return Joi.object({
|
|
743
|
+
register_token: Joi.string().allow(""),
|
|
744
|
+
user: UserModel.UserSchema(),
|
|
745
|
+
user_exists: Joi.boolean(),
|
|
995
746
|
});
|
|
996
747
|
}
|
|
997
748
|
}
|