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