@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -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 +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -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 +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -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 +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -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 +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -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 +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -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 +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -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 +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -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 +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -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 +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -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 +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -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 +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -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 +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -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 +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -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 +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -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 +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -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 +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- 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 +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -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/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,32 +1,303 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export = ConfigurationPlatformApplicationValidator;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef AddDomainParam
|
|
4
|
+
* @property {ConfigurationPlatformModel.DomainAddRequest} body
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef ChangeDomainTypeParam
|
|
8
|
+
* @property {ConfigurationPlatformModel.UpdateDomainTypeRequest} body
|
|
9
|
+
*/
|
|
10
|
+
/** @typedef GetAppApiTokensParam */
|
|
11
|
+
/** @typedef GetAppBasicDetailsParam */
|
|
12
|
+
/**
|
|
13
|
+
* @typedef GetAppCompaniesParam
|
|
14
|
+
* @property {number} [uid] - UID of companies to be fetched
|
|
15
|
+
* @property {number} [pageNo] - The current page number to navigate through the
|
|
16
|
+
* given set of results. Default value is 1.
|
|
17
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
18
|
+
* Default value is 10.
|
|
19
|
+
*/
|
|
20
|
+
/** @typedef GetAppContactInfoParam */
|
|
21
|
+
/** @typedef GetAppCurrencyConfigParam */
|
|
22
|
+
/** @typedef GetAppFeaturesParam */
|
|
23
|
+
/**
|
|
24
|
+
* @typedef GetAppStoresParam
|
|
25
|
+
* @property {number} [pageNo] - The current page number to navigate through the
|
|
26
|
+
* given set of results. Default value is 1.
|
|
27
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
28
|
+
* Default value is 10.
|
|
29
|
+
*/
|
|
30
|
+
/** @typedef GetAppSupportedCurrencyParam */
|
|
31
|
+
/** @typedef GetApplicationByIdParam */
|
|
32
|
+
/**
|
|
33
|
+
* @typedef GetBuildConfigParam
|
|
34
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
35
|
+
* app is built, e.g. android, ios.
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @typedef GetDomainStatusParam
|
|
39
|
+
* @property {ConfigurationPlatformModel.DomainStatusRequest} body
|
|
40
|
+
*/
|
|
41
|
+
/** @typedef GetDomainsParam */
|
|
42
|
+
/** @typedef GetInventoryConfigParam */
|
|
43
|
+
/**
|
|
44
|
+
* @typedef GetOrderingStoresByFilterParam
|
|
45
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
46
|
+
* set of results. Default value is 1.
|
|
47
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
48
|
+
* Default value is 10.
|
|
49
|
+
* @property {ConfigurationPlatformModel.FilterOrderingStoreRequest} body
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @typedef GetPreviousVersionsParam
|
|
53
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
54
|
+
* app is built, e.g. android, ios.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* @typedef GetStaffOrderingStoresParam
|
|
58
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
59
|
+
* set of results. Default value is 1.
|
|
60
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
61
|
+
* Default value is 10.
|
|
62
|
+
* @property {string} [q] - Store code or name of the ordering store.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @typedef ModifyAppFeaturesParam
|
|
66
|
+
* @property {ConfigurationPlatformModel.AppFeatureRequest} body
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* @typedef PartiallyUpdateInventoryConfigParam
|
|
70
|
+
* @property {ConfigurationPlatformModel.AppInventoryPartialUpdate} body
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* @typedef RemoveDomainByIdParam
|
|
74
|
+
* @property {string} id - The unique identifier (24-digit Mongo Object ID) of the domain
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* @typedef UpdateAppApiTokensParam
|
|
78
|
+
* @property {ConfigurationPlatformModel.TokenResponse} body
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* @typedef UpdateAppBasicDetailsParam
|
|
82
|
+
* @property {ConfigurationPlatformModel.ApplicationDetail} body
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* @typedef UpdateAppContactInfoParam
|
|
86
|
+
* @property {ConfigurationPlatformModel.ApplicationInformation} body
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* @typedef UpdateAppCurrencyConfigParam
|
|
90
|
+
* @property {ConfigurationPlatformModel.AppSupportedCurrency} body
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* @typedef UpdateAppFeaturesParam
|
|
94
|
+
* @property {ConfigurationPlatformModel.AppFeatureRequest} body
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* @typedef UpdateBuildConfigParam
|
|
98
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
99
|
+
* app is built, e.g. android, ios.
|
|
100
|
+
* @property {ConfigurationPlatformModel.MobileAppConfigRequest} body
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @typedef UpdateInventoryConfigParam
|
|
104
|
+
* @property {ConfigurationPlatformModel.ApplicationInventory} body
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* @typedef UpdateOrderingStoreConfigParam
|
|
108
|
+
* @property {ConfigurationPlatformModel.OrderingStoreConfig} body
|
|
109
|
+
*/
|
|
110
|
+
declare class ConfigurationPlatformApplicationValidator {
|
|
111
|
+
/** @returns {AddDomainParam} */
|
|
112
|
+
static addDomain(): AddDomainParam;
|
|
113
|
+
/** @returns {ChangeDomainTypeParam} */
|
|
114
|
+
static changeDomainType(): ChangeDomainTypeParam;
|
|
115
|
+
/** @returns {GetAppApiTokensParam} */
|
|
5
116
|
static getAppApiTokens(): any;
|
|
117
|
+
/** @returns {GetAppBasicDetailsParam} */
|
|
6
118
|
static getAppBasicDetails(): any;
|
|
7
|
-
|
|
119
|
+
/** @returns {GetAppCompaniesParam} */
|
|
120
|
+
static getAppCompanies(): GetAppCompaniesParam;
|
|
121
|
+
/** @returns {GetAppContactInfoParam} */
|
|
8
122
|
static getAppContactInfo(): any;
|
|
123
|
+
/** @returns {GetAppCurrencyConfigParam} */
|
|
9
124
|
static getAppCurrencyConfig(): any;
|
|
125
|
+
/** @returns {GetAppFeaturesParam} */
|
|
10
126
|
static getAppFeatures(): any;
|
|
11
|
-
|
|
127
|
+
/** @returns {GetAppStoresParam} */
|
|
128
|
+
static getAppStores(): GetAppStoresParam;
|
|
129
|
+
/** @returns {GetAppSupportedCurrencyParam} */
|
|
12
130
|
static getAppSupportedCurrency(): any;
|
|
131
|
+
/** @returns {GetApplicationByIdParam} */
|
|
13
132
|
static getApplicationById(): any;
|
|
14
|
-
|
|
15
|
-
static
|
|
133
|
+
/** @returns {GetBuildConfigParam} */
|
|
134
|
+
static getBuildConfig(): GetBuildConfigParam;
|
|
135
|
+
/** @returns {GetDomainStatusParam} */
|
|
136
|
+
static getDomainStatus(): GetDomainStatusParam;
|
|
137
|
+
/** @returns {GetDomainsParam} */
|
|
16
138
|
static getDomains(): any;
|
|
139
|
+
/** @returns {GetInventoryConfigParam} */
|
|
17
140
|
static getInventoryConfig(): any;
|
|
18
|
-
|
|
19
|
-
static
|
|
20
|
-
|
|
21
|
-
static
|
|
22
|
-
|
|
23
|
-
static
|
|
24
|
-
|
|
25
|
-
static
|
|
26
|
-
|
|
27
|
-
static
|
|
28
|
-
|
|
29
|
-
static
|
|
30
|
-
|
|
31
|
-
static
|
|
141
|
+
/** @returns {GetOrderingStoresByFilterParam} */
|
|
142
|
+
static getOrderingStoresByFilter(): GetOrderingStoresByFilterParam;
|
|
143
|
+
/** @returns {GetPreviousVersionsParam} */
|
|
144
|
+
static getPreviousVersions(): GetPreviousVersionsParam;
|
|
145
|
+
/** @returns {GetStaffOrderingStoresParam} */
|
|
146
|
+
static getStaffOrderingStores(): GetStaffOrderingStoresParam;
|
|
147
|
+
/** @returns {ModifyAppFeaturesParam} */
|
|
148
|
+
static modifyAppFeatures(): ModifyAppFeaturesParam;
|
|
149
|
+
/** @returns {PartiallyUpdateInventoryConfigParam} */
|
|
150
|
+
static partiallyUpdateInventoryConfig(): PartiallyUpdateInventoryConfigParam;
|
|
151
|
+
/** @returns {RemoveDomainByIdParam} */
|
|
152
|
+
static removeDomainById(): RemoveDomainByIdParam;
|
|
153
|
+
/** @returns {UpdateAppApiTokensParam} */
|
|
154
|
+
static updateAppApiTokens(): UpdateAppApiTokensParam;
|
|
155
|
+
/** @returns {UpdateAppBasicDetailsParam} */
|
|
156
|
+
static updateAppBasicDetails(): UpdateAppBasicDetailsParam;
|
|
157
|
+
/** @returns {UpdateAppContactInfoParam} */
|
|
158
|
+
static updateAppContactInfo(): UpdateAppContactInfoParam;
|
|
159
|
+
/** @returns {UpdateAppCurrencyConfigParam} */
|
|
160
|
+
static updateAppCurrencyConfig(): UpdateAppCurrencyConfigParam;
|
|
161
|
+
/** @returns {UpdateAppFeaturesParam} */
|
|
162
|
+
static updateAppFeatures(): UpdateAppFeaturesParam;
|
|
163
|
+
/** @returns {UpdateBuildConfigParam} */
|
|
164
|
+
static updateBuildConfig(): UpdateBuildConfigParam;
|
|
165
|
+
/** @returns {UpdateInventoryConfigParam} */
|
|
166
|
+
static updateInventoryConfig(): UpdateInventoryConfigParam;
|
|
167
|
+
/** @returns {UpdateOrderingStoreConfigParam} */
|
|
168
|
+
static updateOrderingStoreConfig(): UpdateOrderingStoreConfigParam;
|
|
32
169
|
}
|
|
170
|
+
declare namespace ConfigurationPlatformApplicationValidator {
|
|
171
|
+
export { AddDomainParam, ChangeDomainTypeParam, GetAppApiTokensParam, GetAppBasicDetailsParam, GetAppCompaniesParam, GetAppContactInfoParam, GetAppCurrencyConfigParam, GetAppFeaturesParam, GetAppStoresParam, GetAppSupportedCurrencyParam, GetApplicationByIdParam, GetBuildConfigParam, GetDomainStatusParam, GetDomainsParam, GetInventoryConfigParam, GetOrderingStoresByFilterParam, GetPreviousVersionsParam, GetStaffOrderingStoresParam, ModifyAppFeaturesParam, PartiallyUpdateInventoryConfigParam, RemoveDomainByIdParam, UpdateAppApiTokensParam, UpdateAppBasicDetailsParam, UpdateAppContactInfoParam, UpdateAppCurrencyConfigParam, UpdateAppFeaturesParam, UpdateBuildConfigParam, UpdateInventoryConfigParam, UpdateOrderingStoreConfigParam };
|
|
172
|
+
}
|
|
173
|
+
type AddDomainParam = {
|
|
174
|
+
body: ConfigurationPlatformModel.DomainAddRequest;
|
|
175
|
+
};
|
|
176
|
+
type ChangeDomainTypeParam = {
|
|
177
|
+
body: ConfigurationPlatformModel.UpdateDomainTypeRequest;
|
|
178
|
+
};
|
|
179
|
+
type GetAppCompaniesParam = {
|
|
180
|
+
/**
|
|
181
|
+
* - UID of companies to be fetched
|
|
182
|
+
*/
|
|
183
|
+
uid?: number;
|
|
184
|
+
/**
|
|
185
|
+
* - The current page number to navigate through the
|
|
186
|
+
* given set of results. Default value is 1.
|
|
187
|
+
*/
|
|
188
|
+
pageNo?: number;
|
|
189
|
+
/**
|
|
190
|
+
* - The number of items to retrieve in each page.
|
|
191
|
+
* Default value is 10.
|
|
192
|
+
*/
|
|
193
|
+
pageSize?: number;
|
|
194
|
+
};
|
|
195
|
+
type GetAppStoresParam = {
|
|
196
|
+
/**
|
|
197
|
+
* - The current page number to navigate through the
|
|
198
|
+
* given set of results. Default value is 1.
|
|
199
|
+
*/
|
|
200
|
+
pageNo?: number;
|
|
201
|
+
/**
|
|
202
|
+
* - The number of items to retrieve in each page.
|
|
203
|
+
* Default value is 10.
|
|
204
|
+
*/
|
|
205
|
+
pageSize?: number;
|
|
206
|
+
};
|
|
207
|
+
type GetBuildConfigParam = {
|
|
208
|
+
/**
|
|
209
|
+
* - The device platform for which the mobile
|
|
210
|
+
* app is built, e.g. android, ios.
|
|
211
|
+
*/
|
|
212
|
+
platformType: string;
|
|
213
|
+
};
|
|
214
|
+
type GetDomainStatusParam = {
|
|
215
|
+
body: ConfigurationPlatformModel.DomainStatusRequest;
|
|
216
|
+
};
|
|
217
|
+
type GetOrderingStoresByFilterParam = {
|
|
218
|
+
/**
|
|
219
|
+
* - The page number to navigate through the given
|
|
220
|
+
* set of results. Default value is 1.
|
|
221
|
+
*/
|
|
222
|
+
pageNo?: number;
|
|
223
|
+
/**
|
|
224
|
+
* - The number of items to retrieve in each page.
|
|
225
|
+
* Default value is 10.
|
|
226
|
+
*/
|
|
227
|
+
pageSize?: number;
|
|
228
|
+
body: ConfigurationPlatformModel.FilterOrderingStoreRequest;
|
|
229
|
+
};
|
|
230
|
+
type GetPreviousVersionsParam = {
|
|
231
|
+
/**
|
|
232
|
+
* - The device platform for which the mobile
|
|
233
|
+
* app is built, e.g. android, ios.
|
|
234
|
+
*/
|
|
235
|
+
platformType: string;
|
|
236
|
+
};
|
|
237
|
+
type GetStaffOrderingStoresParam = {
|
|
238
|
+
/**
|
|
239
|
+
* - The page number to navigate through the given
|
|
240
|
+
* set of results. Default value is 1.
|
|
241
|
+
*/
|
|
242
|
+
pageNo?: number;
|
|
243
|
+
/**
|
|
244
|
+
* - The number of items to retrieve in each page.
|
|
245
|
+
* Default value is 10.
|
|
246
|
+
*/
|
|
247
|
+
pageSize?: number;
|
|
248
|
+
/**
|
|
249
|
+
* - Store code or name of the ordering store.
|
|
250
|
+
*/
|
|
251
|
+
q?: string;
|
|
252
|
+
};
|
|
253
|
+
type ModifyAppFeaturesParam = {
|
|
254
|
+
body: ConfigurationPlatformModel.AppFeatureRequest;
|
|
255
|
+
};
|
|
256
|
+
type PartiallyUpdateInventoryConfigParam = {
|
|
257
|
+
body: ConfigurationPlatformModel.AppInventoryPartialUpdate;
|
|
258
|
+
};
|
|
259
|
+
type RemoveDomainByIdParam = {
|
|
260
|
+
/**
|
|
261
|
+
* - The unique identifier (24-digit Mongo Object ID) of the domain
|
|
262
|
+
*/
|
|
263
|
+
id: string;
|
|
264
|
+
};
|
|
265
|
+
type UpdateAppApiTokensParam = {
|
|
266
|
+
body: ConfigurationPlatformModel.TokenResponse;
|
|
267
|
+
};
|
|
268
|
+
type UpdateAppBasicDetailsParam = {
|
|
269
|
+
body: ConfigurationPlatformModel.ApplicationDetail;
|
|
270
|
+
};
|
|
271
|
+
type UpdateAppContactInfoParam = {
|
|
272
|
+
body: ConfigurationPlatformModel.ApplicationInformation;
|
|
273
|
+
};
|
|
274
|
+
type UpdateAppCurrencyConfigParam = {
|
|
275
|
+
body: ConfigurationPlatformModel.AppSupportedCurrency;
|
|
276
|
+
};
|
|
277
|
+
type UpdateAppFeaturesParam = {
|
|
278
|
+
body: ConfigurationPlatformModel.AppFeatureRequest;
|
|
279
|
+
};
|
|
280
|
+
type UpdateBuildConfigParam = {
|
|
281
|
+
/**
|
|
282
|
+
* - The device platform for which the mobile
|
|
283
|
+
* app is built, e.g. android, ios.
|
|
284
|
+
*/
|
|
285
|
+
platformType: string;
|
|
286
|
+
body: ConfigurationPlatformModel.MobileAppConfigRequest;
|
|
287
|
+
};
|
|
288
|
+
type UpdateInventoryConfigParam = {
|
|
289
|
+
body: ConfigurationPlatformModel.ApplicationInventory;
|
|
290
|
+
};
|
|
291
|
+
type UpdateOrderingStoreConfigParam = {
|
|
292
|
+
body: ConfigurationPlatformModel.OrderingStoreConfig;
|
|
293
|
+
};
|
|
294
|
+
type GetAppApiTokensParam = any;
|
|
295
|
+
type GetAppBasicDetailsParam = any;
|
|
296
|
+
type GetAppContactInfoParam = any;
|
|
297
|
+
type GetAppCurrencyConfigParam = any;
|
|
298
|
+
type GetAppFeaturesParam = any;
|
|
299
|
+
type GetAppSupportedCurrencyParam = any;
|
|
300
|
+
type GetApplicationByIdParam = any;
|
|
301
|
+
type GetDomainsParam = any;
|
|
302
|
+
type GetInventoryConfigParam = any;
|
|
303
|
+
import ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
@@ -1,27 +1,170 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddDomainParam
|
|
7
|
+
* @property {ConfigurationPlatformModel.DomainAddRequest} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef ChangeDomainTypeParam
|
|
12
|
+
* @property {ConfigurationPlatformModel.UpdateDomainTypeRequest} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** @typedef GetAppApiTokensParam */
|
|
16
|
+
|
|
17
|
+
/** @typedef GetAppBasicDetailsParam */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @typedef GetAppCompaniesParam
|
|
21
|
+
* @property {number} [uid] - UID of companies to be fetched
|
|
22
|
+
* @property {number} [pageNo] - The current page number to navigate through the
|
|
23
|
+
* given set of results. Default value is 1.
|
|
24
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
25
|
+
* Default value is 10.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/** @typedef GetAppContactInfoParam */
|
|
29
|
+
|
|
30
|
+
/** @typedef GetAppCurrencyConfigParam */
|
|
31
|
+
|
|
32
|
+
/** @typedef GetAppFeaturesParam */
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef GetAppStoresParam
|
|
36
|
+
* @property {number} [pageNo] - The current page number to navigate through the
|
|
37
|
+
* given set of results. Default value is 1.
|
|
38
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
39
|
+
* Default value is 10.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/** @typedef GetAppSupportedCurrencyParam */
|
|
43
|
+
|
|
44
|
+
/** @typedef GetApplicationByIdParam */
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef GetBuildConfigParam
|
|
48
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
49
|
+
* app is built, e.g. android, ios.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef GetDomainStatusParam
|
|
54
|
+
* @property {ConfigurationPlatformModel.DomainStatusRequest} body
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/** @typedef GetDomainsParam */
|
|
58
|
+
|
|
59
|
+
/** @typedef GetInventoryConfigParam */
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef GetOrderingStoresByFilterParam
|
|
63
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
64
|
+
* set of results. Default value is 1.
|
|
65
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
66
|
+
* Default value is 10.
|
|
67
|
+
* @property {ConfigurationPlatformModel.FilterOrderingStoreRequest} body
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef GetPreviousVersionsParam
|
|
72
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
73
|
+
* app is built, e.g. android, ios.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @typedef GetStaffOrderingStoresParam
|
|
78
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
79
|
+
* set of results. Default value is 1.
|
|
80
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
81
|
+
* Default value is 10.
|
|
82
|
+
* @property {string} [q] - Store code or name of the ordering store.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @typedef ModifyAppFeaturesParam
|
|
87
|
+
* @property {ConfigurationPlatformModel.AppFeatureRequest} body
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @typedef PartiallyUpdateInventoryConfigParam
|
|
92
|
+
* @property {ConfigurationPlatformModel.AppInventoryPartialUpdate} body
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @typedef RemoveDomainByIdParam
|
|
97
|
+
* @property {string} id - The unique identifier (24-digit Mongo Object ID) of the domain
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @typedef UpdateAppApiTokensParam
|
|
102
|
+
* @property {ConfigurationPlatformModel.TokenResponse} body
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @typedef UpdateAppBasicDetailsParam
|
|
107
|
+
* @property {ConfigurationPlatformModel.ApplicationDetail} body
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @typedef UpdateAppContactInfoParam
|
|
112
|
+
* @property {ConfigurationPlatformModel.ApplicationInformation} body
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @typedef UpdateAppCurrencyConfigParam
|
|
117
|
+
* @property {ConfigurationPlatformModel.AppSupportedCurrency} body
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @typedef UpdateAppFeaturesParam
|
|
122
|
+
* @property {ConfigurationPlatformModel.AppFeatureRequest} body
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @typedef UpdateBuildConfigParam
|
|
127
|
+
* @property {string} platformType - The device platform for which the mobile
|
|
128
|
+
* app is built, e.g. android, ios.
|
|
129
|
+
* @property {ConfigurationPlatformModel.MobileAppConfigRequest} body
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @typedef UpdateInventoryConfigParam
|
|
134
|
+
* @property {ConfigurationPlatformModel.ApplicationInventory} body
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @typedef UpdateOrderingStoreConfigParam
|
|
139
|
+
* @property {ConfigurationPlatformModel.OrderingStoreConfig} body
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
class ConfigurationPlatformApplicationValidator {
|
|
143
|
+
/** @returns {AddDomainParam} */
|
|
5
144
|
static addDomain() {
|
|
6
145
|
return Joi.object({
|
|
7
|
-
body:
|
|
146
|
+
body: ConfigurationPlatformModel.DomainAddRequest().required(),
|
|
8
147
|
}).required();
|
|
9
148
|
}
|
|
10
149
|
|
|
150
|
+
/** @returns {ChangeDomainTypeParam} */
|
|
11
151
|
static changeDomainType() {
|
|
12
152
|
return Joi.object({
|
|
13
|
-
body:
|
|
153
|
+
body: ConfigurationPlatformModel.UpdateDomainTypeRequest().required(),
|
|
14
154
|
}).required();
|
|
15
155
|
}
|
|
16
156
|
|
|
157
|
+
/** @returns {GetAppApiTokensParam} */
|
|
17
158
|
static getAppApiTokens() {
|
|
18
159
|
return Joi.object({}).required();
|
|
19
160
|
}
|
|
20
161
|
|
|
162
|
+
/** @returns {GetAppBasicDetailsParam} */
|
|
21
163
|
static getAppBasicDetails() {
|
|
22
164
|
return Joi.object({}).required();
|
|
23
165
|
}
|
|
24
166
|
|
|
167
|
+
/** @returns {GetAppCompaniesParam} */
|
|
25
168
|
static getAppCompanies() {
|
|
26
169
|
return Joi.object({
|
|
27
170
|
uid: Joi.number(),
|
|
@@ -30,18 +173,22 @@ class ConfigurationValidator {
|
|
|
30
173
|
}).required();
|
|
31
174
|
}
|
|
32
175
|
|
|
176
|
+
/** @returns {GetAppContactInfoParam} */
|
|
33
177
|
static getAppContactInfo() {
|
|
34
178
|
return Joi.object({}).required();
|
|
35
179
|
}
|
|
36
180
|
|
|
181
|
+
/** @returns {GetAppCurrencyConfigParam} */
|
|
37
182
|
static getAppCurrencyConfig() {
|
|
38
183
|
return Joi.object({}).required();
|
|
39
184
|
}
|
|
40
185
|
|
|
186
|
+
/** @returns {GetAppFeaturesParam} */
|
|
41
187
|
static getAppFeatures() {
|
|
42
188
|
return Joi.object({}).required();
|
|
43
189
|
}
|
|
44
190
|
|
|
191
|
+
/** @returns {GetAppStoresParam} */
|
|
45
192
|
static getAppStores() {
|
|
46
193
|
return Joi.object({
|
|
47
194
|
pageNo: Joi.number(),
|
|
@@ -49,48 +196,57 @@ class ConfigurationValidator {
|
|
|
49
196
|
}).required();
|
|
50
197
|
}
|
|
51
198
|
|
|
199
|
+
/** @returns {GetAppSupportedCurrencyParam} */
|
|
52
200
|
static getAppSupportedCurrency() {
|
|
53
201
|
return Joi.object({}).required();
|
|
54
202
|
}
|
|
55
203
|
|
|
204
|
+
/** @returns {GetApplicationByIdParam} */
|
|
56
205
|
static getApplicationById() {
|
|
57
206
|
return Joi.object({}).required();
|
|
58
207
|
}
|
|
59
208
|
|
|
209
|
+
/** @returns {GetBuildConfigParam} */
|
|
60
210
|
static getBuildConfig() {
|
|
61
211
|
return Joi.object({
|
|
62
212
|
platformType: Joi.string().allow("").required(),
|
|
63
213
|
}).required();
|
|
64
214
|
}
|
|
65
215
|
|
|
216
|
+
/** @returns {GetDomainStatusParam} */
|
|
66
217
|
static getDomainStatus() {
|
|
67
218
|
return Joi.object({
|
|
68
|
-
body:
|
|
219
|
+
body: ConfigurationPlatformModel.DomainStatusRequest().required(),
|
|
69
220
|
}).required();
|
|
70
221
|
}
|
|
71
222
|
|
|
223
|
+
/** @returns {GetDomainsParam} */
|
|
72
224
|
static getDomains() {
|
|
73
225
|
return Joi.object({}).required();
|
|
74
226
|
}
|
|
75
227
|
|
|
228
|
+
/** @returns {GetInventoryConfigParam} */
|
|
76
229
|
static getInventoryConfig() {
|
|
77
230
|
return Joi.object({}).required();
|
|
78
231
|
}
|
|
79
232
|
|
|
233
|
+
/** @returns {GetOrderingStoresByFilterParam} */
|
|
80
234
|
static getOrderingStoresByFilter() {
|
|
81
235
|
return Joi.object({
|
|
82
236
|
pageNo: Joi.number(),
|
|
83
237
|
pageSize: Joi.number(),
|
|
84
|
-
body:
|
|
238
|
+
body: ConfigurationPlatformModel.FilterOrderingStoreRequest().required(),
|
|
85
239
|
}).required();
|
|
86
240
|
}
|
|
87
241
|
|
|
242
|
+
/** @returns {GetPreviousVersionsParam} */
|
|
88
243
|
static getPreviousVersions() {
|
|
89
244
|
return Joi.object({
|
|
90
245
|
platformType: Joi.string().allow("").required(),
|
|
91
246
|
}).required();
|
|
92
247
|
}
|
|
93
248
|
|
|
249
|
+
/** @returns {GetStaffOrderingStoresParam} */
|
|
94
250
|
static getStaffOrderingStores() {
|
|
95
251
|
return Joi.object({
|
|
96
252
|
pageNo: Joi.number(),
|
|
@@ -99,72 +255,83 @@ class ConfigurationValidator {
|
|
|
99
255
|
}).required();
|
|
100
256
|
}
|
|
101
257
|
|
|
258
|
+
/** @returns {ModifyAppFeaturesParam} */
|
|
102
259
|
static modifyAppFeatures() {
|
|
103
260
|
return Joi.object({
|
|
104
|
-
body:
|
|
261
|
+
body: ConfigurationPlatformModel.AppFeatureRequest().required(),
|
|
105
262
|
}).required();
|
|
106
263
|
}
|
|
107
264
|
|
|
265
|
+
/** @returns {PartiallyUpdateInventoryConfigParam} */
|
|
108
266
|
static partiallyUpdateInventoryConfig() {
|
|
109
267
|
return Joi.object({
|
|
110
|
-
body:
|
|
268
|
+
body: ConfigurationPlatformModel.AppInventoryPartialUpdate().required(),
|
|
111
269
|
}).required();
|
|
112
270
|
}
|
|
113
271
|
|
|
272
|
+
/** @returns {RemoveDomainByIdParam} */
|
|
114
273
|
static removeDomainById() {
|
|
115
274
|
return Joi.object({
|
|
116
275
|
id: Joi.string().allow("").required(),
|
|
117
276
|
}).required();
|
|
118
277
|
}
|
|
119
278
|
|
|
279
|
+
/** @returns {UpdateAppApiTokensParam} */
|
|
120
280
|
static updateAppApiTokens() {
|
|
121
281
|
return Joi.object({
|
|
122
|
-
body:
|
|
282
|
+
body: ConfigurationPlatformModel.TokenResponse().required(),
|
|
123
283
|
}).required();
|
|
124
284
|
}
|
|
125
285
|
|
|
286
|
+
/** @returns {UpdateAppBasicDetailsParam} */
|
|
126
287
|
static updateAppBasicDetails() {
|
|
127
288
|
return Joi.object({
|
|
128
|
-
body:
|
|
289
|
+
body: ConfigurationPlatformModel.ApplicationDetail().required(),
|
|
129
290
|
}).required();
|
|
130
291
|
}
|
|
131
292
|
|
|
293
|
+
/** @returns {UpdateAppContactInfoParam} */
|
|
132
294
|
static updateAppContactInfo() {
|
|
133
295
|
return Joi.object({
|
|
134
|
-
body:
|
|
296
|
+
body: ConfigurationPlatformModel.ApplicationInformation().required(),
|
|
135
297
|
}).required();
|
|
136
298
|
}
|
|
137
299
|
|
|
300
|
+
/** @returns {UpdateAppCurrencyConfigParam} */
|
|
138
301
|
static updateAppCurrencyConfig() {
|
|
139
302
|
return Joi.object({
|
|
140
|
-
body:
|
|
303
|
+
body: ConfigurationPlatformModel.AppSupportedCurrency().required(),
|
|
141
304
|
}).required();
|
|
142
305
|
}
|
|
143
306
|
|
|
307
|
+
/** @returns {UpdateAppFeaturesParam} */
|
|
144
308
|
static updateAppFeatures() {
|
|
145
309
|
return Joi.object({
|
|
146
|
-
body:
|
|
310
|
+
body: ConfigurationPlatformModel.AppFeatureRequest().required(),
|
|
147
311
|
}).required();
|
|
148
312
|
}
|
|
149
313
|
|
|
314
|
+
/** @returns {UpdateBuildConfigParam} */
|
|
150
315
|
static updateBuildConfig() {
|
|
151
316
|
return Joi.object({
|
|
152
317
|
platformType: Joi.string().allow("").required(),
|
|
153
|
-
body:
|
|
318
|
+
body: ConfigurationPlatformModel.MobileAppConfigRequest().required(),
|
|
154
319
|
}).required();
|
|
155
320
|
}
|
|
156
321
|
|
|
322
|
+
/** @returns {UpdateInventoryConfigParam} */
|
|
157
323
|
static updateInventoryConfig() {
|
|
158
324
|
return Joi.object({
|
|
159
|
-
body:
|
|
325
|
+
body: ConfigurationPlatformModel.ApplicationInventory().required(),
|
|
160
326
|
}).required();
|
|
161
327
|
}
|
|
162
328
|
|
|
329
|
+
/** @returns {UpdateOrderingStoreConfigParam} */
|
|
163
330
|
static updateOrderingStoreConfig() {
|
|
164
331
|
return Joi.object({
|
|
165
|
-
body:
|
|
332
|
+
body: ConfigurationPlatformModel.OrderingStoreConfig().required(),
|
|
166
333
|
}).required();
|
|
167
334
|
}
|
|
168
335
|
}
|
|
169
336
|
|
|
170
|
-
module.exports =
|
|
337
|
+
module.exports = ConfigurationPlatformApplicationValidator;
|