@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
|
@@ -3,30 +3,25 @@ declare class Common {
|
|
|
3
3
|
constructor(config: any);
|
|
4
4
|
config: any;
|
|
5
5
|
/**
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
*
|
|
11
|
-
* city, provide id of state.
|
|
12
|
-
* @returns {Promise<Locations>} - Success response
|
|
6
|
+
* @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
|
|
7
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
|
+
* @returns {Promise<CommonPlatformModel.Locations>} - Success response
|
|
10
|
+
* @name getLocations
|
|
13
11
|
* @summary: Get countries, states, cities
|
|
14
|
-
* @description:
|
|
12
|
+
* @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
15
13
|
*/
|
|
16
|
-
getLocations({ locationType, id }?: {
|
|
17
|
-
locationType?: string;
|
|
18
|
-
id?: string;
|
|
19
|
-
}): Promise<Locations>;
|
|
14
|
+
getLocations({ locationType, id, requestHeaders }?: CommonPlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CommonPlatformModel.Locations>;
|
|
20
15
|
/**
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
24
|
-
* @returns {Promise<ApplicationResponse>} - Success response
|
|
16
|
+
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
17
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
|
+
* @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
|
|
20
|
+
* @name searchApplication
|
|
25
21
|
* @summary: Search Application
|
|
26
|
-
* @description: Provide application name or domain url
|
|
22
|
+
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
27
23
|
*/
|
|
28
|
-
searchApplication({ authorization, query }?: {
|
|
29
|
-
authorization?: string;
|
|
30
|
-
query?: string;
|
|
31
|
-
}): Promise<ApplicationResponse>;
|
|
24
|
+
searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonPlatformModel.ApplicationResponse>;
|
|
32
25
|
}
|
|
26
|
+
import CommonPlatformValidator = require("./CommonPlatformValidator");
|
|
27
|
+
import CommonPlatformModel = require("./CommonPlatformModel");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const CommonPlatformValidator = require("./CommonPlatformValidator");
|
|
5
|
+
const CommonPlatformModel = require("./CommonPlatformModel");
|
|
6
6
|
const { Logger } = require("./../../common/Logger");
|
|
7
7
|
const Joi = require("joi");
|
|
8
8
|
|
|
@@ -12,18 +12,19 @@ class Common {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @param {
|
|
16
|
-
* @param {
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
19
|
-
*
|
|
20
|
-
* city, provide id of state.
|
|
21
|
-
* @returns {Promise<Locations>} - Success response
|
|
15
|
+
* @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
|
|
16
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
17
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
18
|
+
* @returns {Promise<CommonPlatformModel.Locations>} - Success response
|
|
19
|
+
* @name getLocations
|
|
22
20
|
* @summary: Get countries, states, cities
|
|
23
|
-
* @description:
|
|
21
|
+
* @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
24
22
|
*/
|
|
25
|
-
async getLocations(
|
|
26
|
-
|
|
23
|
+
async getLocations(
|
|
24
|
+
{ locationType, id, requestHeaders } = { requestHeaders: {} },
|
|
25
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
26
|
+
) {
|
|
27
|
+
const { error } = CommonPlatformValidator.getLocations().validate(
|
|
27
28
|
{ locationType, id },
|
|
28
29
|
{ abortEarly: false, allowUnknown: true }
|
|
29
30
|
);
|
|
@@ -32,16 +33,15 @@ class Common {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
// Showing warrnings if extra unknown parameters are found
|
|
35
|
-
const { error: warrning } =
|
|
36
|
+
const { error: warrning } = CommonPlatformValidator.getLocations().validate(
|
|
36
37
|
{ locationType, id },
|
|
37
38
|
{ abortEarly: false, allowUnknown: false }
|
|
38
39
|
);
|
|
39
40
|
if (warrning) {
|
|
40
41
|
Logger({
|
|
41
42
|
level: "WARN",
|
|
42
|
-
message:
|
|
43
|
+
message: `Parameter Validation warrnings for platform > Common > getLocations \n ${warrning}`,
|
|
43
44
|
});
|
|
44
|
-
Logger({ level: "WARN", message: warrning });
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const query_params = {};
|
|
@@ -56,10 +56,18 @@ class Common {
|
|
|
56
56
|
`/service/common/configuration/v1.0/location`,
|
|
57
57
|
query_params,
|
|
58
58
|
undefined,
|
|
59
|
-
xHeaders
|
|
59
|
+
{ ...xHeaders, ...requestHeaders },
|
|
60
|
+
{ responseHeaders }
|
|
60
61
|
);
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
let responseData = response;
|
|
64
|
+
if (responseHeaders) {
|
|
65
|
+
responseData = response[0];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const {
|
|
69
|
+
error: res_error,
|
|
70
|
+
} = CommonPlatformModel.Locations().validate(responseData, {
|
|
63
71
|
abortEarly: false,
|
|
64
72
|
allowUnknown: false,
|
|
65
73
|
});
|
|
@@ -67,24 +75,27 @@ class Common {
|
|
|
67
75
|
if (res_error) {
|
|
68
76
|
Logger({
|
|
69
77
|
level: "WARN",
|
|
70
|
-
message:
|
|
78
|
+
message: `Response Validation Warnnings for platform > Common > getLocations \n ${res_error}`,
|
|
71
79
|
});
|
|
72
|
-
Logger({ level: "WARN", message: res_error });
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
return response;
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
/**
|
|
79
|
-
* @param {
|
|
80
|
-
* @param {
|
|
81
|
-
* @param {
|
|
82
|
-
* @returns {Promise<ApplicationResponse>} - Success response
|
|
86
|
+
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
87
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
88
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
89
|
+
* @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
|
|
90
|
+
* @name searchApplication
|
|
83
91
|
* @summary: Search Application
|
|
84
|
-
* @description: Provide application name or domain url
|
|
92
|
+
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
85
93
|
*/
|
|
86
|
-
async searchApplication(
|
|
87
|
-
|
|
94
|
+
async searchApplication(
|
|
95
|
+
{ authorization, query, requestHeaders } = { requestHeaders: {} },
|
|
96
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
97
|
+
) {
|
|
98
|
+
const { error } = CommonPlatformValidator.searchApplication().validate(
|
|
88
99
|
{ authorization, query },
|
|
89
100
|
{ abortEarly: false, allowUnknown: true }
|
|
90
101
|
);
|
|
@@ -93,16 +104,17 @@ class Common {
|
|
|
93
104
|
}
|
|
94
105
|
|
|
95
106
|
// Showing warrnings if extra unknown parameters are found
|
|
96
|
-
const {
|
|
107
|
+
const {
|
|
108
|
+
error: warrning,
|
|
109
|
+
} = CommonPlatformValidator.searchApplication().validate(
|
|
97
110
|
{ authorization, query },
|
|
98
111
|
{ abortEarly: false, allowUnknown: false }
|
|
99
112
|
);
|
|
100
113
|
if (warrning) {
|
|
101
114
|
Logger({
|
|
102
115
|
level: "WARN",
|
|
103
|
-
message:
|
|
116
|
+
message: `Parameter Validation warrnings for platform > Common > searchApplication \n ${warrning}`,
|
|
104
117
|
});
|
|
105
|
-
Logger({ level: "WARN", message: warrning });
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
const query_params = {};
|
|
@@ -117,12 +129,18 @@ class Common {
|
|
|
117
129
|
`/service/common/configuration/v1.0/application/search-application`,
|
|
118
130
|
query_params,
|
|
119
131
|
undefined,
|
|
120
|
-
xHeaders
|
|
132
|
+
{ ...xHeaders, ...requestHeaders },
|
|
133
|
+
{ responseHeaders }
|
|
121
134
|
);
|
|
122
135
|
|
|
136
|
+
let responseData = response;
|
|
137
|
+
if (responseHeaders) {
|
|
138
|
+
responseData = response[0];
|
|
139
|
+
}
|
|
140
|
+
|
|
123
141
|
const {
|
|
124
142
|
error: res_error,
|
|
125
|
-
} =
|
|
143
|
+
} = CommonPlatformModel.ApplicationResponse().validate(responseData, {
|
|
126
144
|
abortEarly: false,
|
|
127
145
|
allowUnknown: false,
|
|
128
146
|
});
|
|
@@ -130,9 +148,8 @@ class Common {
|
|
|
130
148
|
if (res_error) {
|
|
131
149
|
Logger({
|
|
132
150
|
level: "WARN",
|
|
133
|
-
message:
|
|
151
|
+
message: `Response Validation Warnnings for platform > Common > searchApplication \n ${res_error}`,
|
|
134
152
|
});
|
|
135
|
-
Logger({ level: "WARN", message: res_error });
|
|
136
153
|
}
|
|
137
154
|
|
|
138
155
|
return response;
|
|
@@ -1,20 +1,424 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
export = CommonPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Application
|
|
4
|
+
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
5
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
6
|
+
* of the sales channel
|
|
7
|
+
* @property {string} [app_type] - It shows whether application is live or in
|
|
8
|
+
* development mode
|
|
9
|
+
* @property {ApplicationAuth} [auth]
|
|
10
|
+
* @property {SecureUrl} [banner]
|
|
11
|
+
* @property {number} [cache_ttl] - An integer value that specifies the number
|
|
12
|
+
* of seconds until the key expires
|
|
13
|
+
* @property {string} [channel_type] - It indicates different channel types like
|
|
14
|
+
* store, website-and-mobile-apps. Default value is store.
|
|
15
|
+
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
16
|
+
* where the sales channel exists
|
|
17
|
+
* @property {ApplicationCors} [cors]
|
|
18
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
|
|
19
|
+
* @property {string} [description] - It contains detailed information about the
|
|
20
|
+
* sales channel
|
|
21
|
+
* @property {Domain} [domain]
|
|
22
|
+
* @property {Domain[]} [domains]
|
|
23
|
+
* @property {SecureUrl} [favicon]
|
|
24
|
+
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
25
|
+
* or not active
|
|
26
|
+
* @property {boolean} [is_internal] - Indicates whether a sales channel is
|
|
27
|
+
* internal or not
|
|
28
|
+
* @property {SecureUrl} [logo]
|
|
29
|
+
* @property {ApplicationMeta[]} [meta]
|
|
30
|
+
* @property {SecureUrl} [mobile_logo]
|
|
31
|
+
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
32
|
+
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
33
|
+
* of owner who owns the application
|
|
34
|
+
* @property {ApplicationRedirections[]} [redirections]
|
|
35
|
+
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
36
|
+
* channel. It is required and auto-generated.
|
|
37
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
|
|
38
|
+
* @property {ApplicationWebsite} [website]
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* @typedef ApplicationAuth
|
|
42
|
+
* @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* @typedef ApplicationCors
|
|
46
|
+
* @property {string[]} [domains]
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* @typedef ApplicationMeta
|
|
50
|
+
* @property {string} [name] - Indicates the name of application meta
|
|
51
|
+
* @property {string} [value] - Value related to application meta name
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* @typedef ApplicationRedirections
|
|
55
|
+
* @property {string} [redirect_from] - Old domain URL of the sales channel
|
|
56
|
+
* @property {string} [redirect_to] - New domain URL of the sales channel. Users
|
|
57
|
+
* will be automatically redirected from old domain to new domain.
|
|
58
|
+
* @property {string} [type] - It shows domain redirection type. Permanent
|
|
59
|
+
* redirection is for long time period redirection, and temporary redirection
|
|
60
|
+
* for a short time period.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @typedef ApplicationResponse
|
|
64
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
65
|
+
* of the current sales channel supported currency
|
|
66
|
+
* @property {Application} [application]
|
|
67
|
+
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
68
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
69
|
+
* currency creation
|
|
70
|
+
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
71
|
+
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
72
|
+
* value of a currency.
|
|
73
|
+
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
74
|
+
* sales channel
|
|
75
|
+
* @property {string} [name] - Name of the currency, e.g. Indian Rupee
|
|
76
|
+
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
77
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
78
|
+
* currency updation
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* @typedef ApplicationWebsite
|
|
82
|
+
* @property {string} [basepath] - Base path for the current sales channel website
|
|
83
|
+
* @property {boolean} [enabled] - Shows whether sales channel website URL is
|
|
84
|
+
* enabled or not
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* @typedef BadRequest
|
|
88
|
+
* @property {string} [message] - Failure message (in a string format)
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* @typedef Domain
|
|
92
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
93
|
+
* of the domain
|
|
94
|
+
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
95
|
+
* @property {boolean} [is_primary] - Indicates domain is primary or not.
|
|
96
|
+
* Primary domain is the default/main domain.
|
|
97
|
+
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
98
|
+
* @property {string} [name]
|
|
99
|
+
* @property {boolean} [verified] - Indicates domain is verified or not. TXT and
|
|
100
|
+
* A records should propagate correctly.
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @typedef LocationCountry
|
|
104
|
+
* @property {number} [__v]
|
|
105
|
+
* @property {string} [_id]
|
|
106
|
+
* @property {string} [capital]
|
|
107
|
+
* @property {string} [country_code]
|
|
108
|
+
* @property {string} [currency]
|
|
109
|
+
* @property {LocationDefaultCurrency} [default_currency]
|
|
110
|
+
* @property {LocationDefaultLanguage} [default_language]
|
|
111
|
+
* @property {string} [iso2]
|
|
112
|
+
* @property {string} [iso3]
|
|
113
|
+
* @property {string} [latitude]
|
|
114
|
+
* @property {string} [longitude]
|
|
115
|
+
* @property {string} [name]
|
|
116
|
+
* @property {string} [parent]
|
|
117
|
+
* @property {string} [phone_code]
|
|
118
|
+
* @property {string} [state_code]
|
|
119
|
+
* @property {string} [type]
|
|
120
|
+
* @property {number} [uid]
|
|
121
|
+
*/
|
|
122
|
+
/**
|
|
123
|
+
* @typedef LocationDefaultCurrency
|
|
124
|
+
* @property {string} [code]
|
|
125
|
+
* @property {string} [name]
|
|
126
|
+
* @property {string} [symbol]
|
|
127
|
+
*/
|
|
128
|
+
/**
|
|
129
|
+
* @typedef LocationDefaultLanguage
|
|
130
|
+
* @property {string} [code]
|
|
131
|
+
* @property {string} [name]
|
|
132
|
+
*/
|
|
133
|
+
/**
|
|
134
|
+
* @typedef Locations
|
|
135
|
+
* @property {LocationCountry[]} [items] - Object Containing Country Locations Details
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @typedef NotFound
|
|
139
|
+
* @property {string} [message] - Response message for not found
|
|
140
|
+
*/
|
|
141
|
+
/**
|
|
142
|
+
* @typedef SecureUrl
|
|
143
|
+
* @property {string} [secure_url] - Hosted URL of the image
|
|
144
|
+
*/
|
|
145
|
+
declare class CommonPlatformModel {
|
|
20
146
|
}
|
|
147
|
+
declare namespace CommonPlatformModel {
|
|
148
|
+
export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
|
|
149
|
+
}
|
|
150
|
+
/** @returns {Application} */
|
|
151
|
+
declare function Application(): Application;
|
|
152
|
+
type Application = {
|
|
153
|
+
/**
|
|
154
|
+
* - Version key for tracking revisions. Default value is zero.
|
|
155
|
+
*/
|
|
156
|
+
__v?: number;
|
|
157
|
+
/**
|
|
158
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
159
|
+
* of the sales channel
|
|
160
|
+
*/
|
|
161
|
+
_id?: string;
|
|
162
|
+
/**
|
|
163
|
+
* - It shows whether application is live or in
|
|
164
|
+
* development mode
|
|
165
|
+
*/
|
|
166
|
+
app_type?: string;
|
|
167
|
+
auth?: ApplicationAuth;
|
|
168
|
+
banner?: SecureUrl;
|
|
169
|
+
/**
|
|
170
|
+
* - An integer value that specifies the number
|
|
171
|
+
* of seconds until the key expires
|
|
172
|
+
*/
|
|
173
|
+
cache_ttl?: number;
|
|
174
|
+
/**
|
|
175
|
+
* - It indicates different channel types like
|
|
176
|
+
* store, website-and-mobile-apps. Default value is store.
|
|
177
|
+
*/
|
|
178
|
+
channel_type?: string;
|
|
179
|
+
/**
|
|
180
|
+
* - Numeric ID allotted to a business account
|
|
181
|
+
* where the sales channel exists
|
|
182
|
+
*/
|
|
183
|
+
company_id?: number;
|
|
184
|
+
cors?: ApplicationCors;
|
|
185
|
+
/**
|
|
186
|
+
* - ISO 8601 timestamp of sales channel creation
|
|
187
|
+
*/
|
|
188
|
+
created_at?: string;
|
|
189
|
+
/**
|
|
190
|
+
* - It contains detailed information about the
|
|
191
|
+
* sales channel
|
|
192
|
+
*/
|
|
193
|
+
description?: string;
|
|
194
|
+
domain?: Domain;
|
|
195
|
+
domains?: Domain[];
|
|
196
|
+
favicon?: SecureUrl;
|
|
197
|
+
/**
|
|
198
|
+
* - Indicates whether a sales channel is active
|
|
199
|
+
* or not active
|
|
200
|
+
*/
|
|
201
|
+
is_active?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* - Indicates whether a sales channel is
|
|
204
|
+
* internal or not
|
|
205
|
+
*/
|
|
206
|
+
is_internal?: boolean;
|
|
207
|
+
logo?: SecureUrl;
|
|
208
|
+
meta?: ApplicationMeta[];
|
|
209
|
+
mobile_logo?: SecureUrl;
|
|
210
|
+
/**
|
|
211
|
+
* - Name of the sales channel, e.g. Zenz Fashion
|
|
212
|
+
*/
|
|
213
|
+
name?: string;
|
|
214
|
+
/**
|
|
215
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
216
|
+
* of owner who owns the application
|
|
217
|
+
*/
|
|
218
|
+
owner?: string;
|
|
219
|
+
redirections?: ApplicationRedirections[];
|
|
220
|
+
/**
|
|
221
|
+
* - Randomly generated fixed-length string for sales
|
|
222
|
+
* channel. It is required and auto-generated.
|
|
223
|
+
*/
|
|
224
|
+
token?: string;
|
|
225
|
+
/**
|
|
226
|
+
* - ISO 8601 timestamp of sales channel updation
|
|
227
|
+
*/
|
|
228
|
+
updated_at?: string;
|
|
229
|
+
website?: ApplicationWebsite;
|
|
230
|
+
};
|
|
231
|
+
/** @returns {ApplicationAuth} */
|
|
232
|
+
declare function ApplicationAuth(): ApplicationAuth;
|
|
233
|
+
type ApplicationAuth = {
|
|
234
|
+
/**
|
|
235
|
+
* - Shows sales channel auth is enabled or not enabled.
|
|
236
|
+
*/
|
|
237
|
+
enabled?: boolean;
|
|
238
|
+
};
|
|
239
|
+
/** @returns {ApplicationCors} */
|
|
240
|
+
declare function ApplicationCors(): ApplicationCors;
|
|
241
|
+
type ApplicationCors = {
|
|
242
|
+
domains?: string[];
|
|
243
|
+
};
|
|
244
|
+
/** @returns {ApplicationMeta} */
|
|
245
|
+
declare function ApplicationMeta(): ApplicationMeta;
|
|
246
|
+
type ApplicationMeta = {
|
|
247
|
+
/**
|
|
248
|
+
* - Indicates the name of application meta
|
|
249
|
+
*/
|
|
250
|
+
name?: string;
|
|
251
|
+
/**
|
|
252
|
+
* - Value related to application meta name
|
|
253
|
+
*/
|
|
254
|
+
value?: string;
|
|
255
|
+
};
|
|
256
|
+
/** @returns {ApplicationRedirections} */
|
|
257
|
+
declare function ApplicationRedirections(): ApplicationRedirections;
|
|
258
|
+
type ApplicationRedirections = {
|
|
259
|
+
/**
|
|
260
|
+
* - Old domain URL of the sales channel
|
|
261
|
+
*/
|
|
262
|
+
redirect_from?: string;
|
|
263
|
+
/**
|
|
264
|
+
* - New domain URL of the sales channel. Users
|
|
265
|
+
* will be automatically redirected from old domain to new domain.
|
|
266
|
+
*/
|
|
267
|
+
redirect_to?: string;
|
|
268
|
+
/**
|
|
269
|
+
* - It shows domain redirection type. Permanent
|
|
270
|
+
* redirection is for long time period redirection, and temporary redirection
|
|
271
|
+
* for a short time period.
|
|
272
|
+
*/
|
|
273
|
+
type?: string;
|
|
274
|
+
};
|
|
275
|
+
/** @returns {ApplicationResponse} */
|
|
276
|
+
declare function ApplicationResponse(): ApplicationResponse;
|
|
277
|
+
type ApplicationResponse = {
|
|
278
|
+
/**
|
|
279
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
280
|
+
* of the current sales channel supported currency
|
|
281
|
+
*/
|
|
282
|
+
_id?: string;
|
|
283
|
+
application?: Application;
|
|
284
|
+
/**
|
|
285
|
+
* - 3-character currency code, e.g. INR, USD, EUR.
|
|
286
|
+
*/
|
|
287
|
+
code?: string;
|
|
288
|
+
/**
|
|
289
|
+
* - ISO 8601 timestamp of sales channel support
|
|
290
|
+
* currency creation
|
|
291
|
+
*/
|
|
292
|
+
created_at?: string;
|
|
293
|
+
/**
|
|
294
|
+
* - Acceptable decimal limits for a given
|
|
295
|
+
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
296
|
+
* value of a currency.
|
|
297
|
+
*/
|
|
298
|
+
decimal_digits?: number;
|
|
299
|
+
/**
|
|
300
|
+
* - Shows currency is enabled or not in current
|
|
301
|
+
* sales channel
|
|
302
|
+
*/
|
|
303
|
+
is_active?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* - Name of the currency, e.g. Indian Rupee
|
|
306
|
+
*/
|
|
307
|
+
name?: string;
|
|
308
|
+
/**
|
|
309
|
+
* - Unique symbol for identifying the currency, e.g. ₹
|
|
310
|
+
*/
|
|
311
|
+
symbol?: string;
|
|
312
|
+
/**
|
|
313
|
+
* - ISO 8601 timestamp of sales channel support
|
|
314
|
+
* currency updation
|
|
315
|
+
*/
|
|
316
|
+
updated_at?: string;
|
|
317
|
+
};
|
|
318
|
+
/** @returns {ApplicationWebsite} */
|
|
319
|
+
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
320
|
+
type ApplicationWebsite = {
|
|
321
|
+
/**
|
|
322
|
+
* - Base path for the current sales channel website
|
|
323
|
+
*/
|
|
324
|
+
basepath?: string;
|
|
325
|
+
/**
|
|
326
|
+
* - Shows whether sales channel website URL is
|
|
327
|
+
* enabled or not
|
|
328
|
+
*/
|
|
329
|
+
enabled?: boolean;
|
|
330
|
+
};
|
|
331
|
+
/** @returns {BadRequest} */
|
|
332
|
+
declare function BadRequest(): BadRequest;
|
|
333
|
+
type BadRequest = {
|
|
334
|
+
/**
|
|
335
|
+
* - Failure message (in a string format)
|
|
336
|
+
*/
|
|
337
|
+
message?: string;
|
|
338
|
+
};
|
|
339
|
+
/** @returns {Domain} */
|
|
340
|
+
declare function Domain(): Domain;
|
|
341
|
+
type Domain = {
|
|
342
|
+
/**
|
|
343
|
+
* - The unique identifier (24-digit Mongo Object ID)
|
|
344
|
+
* of the domain
|
|
345
|
+
*/
|
|
346
|
+
_id?: string;
|
|
347
|
+
/**
|
|
348
|
+
* - Domain is hosting domain or not
|
|
349
|
+
*/
|
|
350
|
+
is_predefined?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* - Indicates domain is primary or not.
|
|
353
|
+
* Primary domain is the default/main domain.
|
|
354
|
+
*/
|
|
355
|
+
is_primary?: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* - Shortlink is present or not for the domain
|
|
358
|
+
*/
|
|
359
|
+
is_shortlink?: boolean;
|
|
360
|
+
name?: string;
|
|
361
|
+
/**
|
|
362
|
+
* - Indicates domain is verified or not. TXT and
|
|
363
|
+
* A records should propagate correctly.
|
|
364
|
+
*/
|
|
365
|
+
verified?: boolean;
|
|
366
|
+
};
|
|
367
|
+
/** @returns {LocationCountry} */
|
|
368
|
+
declare function LocationCountry(): LocationCountry;
|
|
369
|
+
type LocationCountry = {
|
|
370
|
+
__v?: number;
|
|
371
|
+
_id?: string;
|
|
372
|
+
capital?: string;
|
|
373
|
+
country_code?: string;
|
|
374
|
+
currency?: string;
|
|
375
|
+
default_currency?: LocationDefaultCurrency;
|
|
376
|
+
default_language?: LocationDefaultLanguage;
|
|
377
|
+
iso2?: string;
|
|
378
|
+
iso3?: string;
|
|
379
|
+
latitude?: string;
|
|
380
|
+
longitude?: string;
|
|
381
|
+
name?: string;
|
|
382
|
+
parent?: string;
|
|
383
|
+
phone_code?: string;
|
|
384
|
+
state_code?: string;
|
|
385
|
+
type?: string;
|
|
386
|
+
uid?: number;
|
|
387
|
+
};
|
|
388
|
+
/** @returns {LocationDefaultCurrency} */
|
|
389
|
+
declare function LocationDefaultCurrency(): LocationDefaultCurrency;
|
|
390
|
+
type LocationDefaultCurrency = {
|
|
391
|
+
code?: string;
|
|
392
|
+
name?: string;
|
|
393
|
+
symbol?: string;
|
|
394
|
+
};
|
|
395
|
+
/** @returns {LocationDefaultLanguage} */
|
|
396
|
+
declare function LocationDefaultLanguage(): LocationDefaultLanguage;
|
|
397
|
+
type LocationDefaultLanguage = {
|
|
398
|
+
code?: string;
|
|
399
|
+
name?: string;
|
|
400
|
+
};
|
|
401
|
+
/** @returns {Locations} */
|
|
402
|
+
declare function Locations(): Locations;
|
|
403
|
+
type Locations = {
|
|
404
|
+
/**
|
|
405
|
+
* - Object Containing Country Locations Details
|
|
406
|
+
*/
|
|
407
|
+
items?: LocationCountry[];
|
|
408
|
+
};
|
|
409
|
+
/** @returns {NotFound} */
|
|
410
|
+
declare function NotFound(): NotFound;
|
|
411
|
+
type NotFound = {
|
|
412
|
+
/**
|
|
413
|
+
* - Response message for not found
|
|
414
|
+
*/
|
|
415
|
+
message?: string;
|
|
416
|
+
};
|
|
417
|
+
/** @returns {SecureUrl} */
|
|
418
|
+
declare function SecureUrl(): SecureUrl;
|
|
419
|
+
type SecureUrl = {
|
|
420
|
+
/**
|
|
421
|
+
* - Hosted URL of the image
|
|
422
|
+
*/
|
|
423
|
+
secure_url?: string;
|
|
424
|
+
};
|