@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,54 +1,238 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef Application
|
|
5
|
+
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
6
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
7
|
+
* of the sales channel
|
|
8
|
+
* @property {string} [app_type] - It shows whether application is live or in
|
|
9
|
+
* development mode
|
|
10
|
+
* @property {ApplicationAuth} [auth]
|
|
11
|
+
* @property {SecureUrl} [banner]
|
|
12
|
+
* @property {number} [cache_ttl] - An integer value that specifies the number
|
|
13
|
+
* of seconds until the key expires
|
|
14
|
+
* @property {string} [channel_type] - It indicates different channel types like
|
|
15
|
+
* store, website-and-mobile-apps. Default value is store.
|
|
16
|
+
* @property {number} [company_id] - Numeric ID allotted to a business account
|
|
17
|
+
* where the sales channel exists
|
|
18
|
+
* @property {ApplicationCors} [cors]
|
|
19
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
|
|
20
|
+
* @property {string} [description] - It contains detailed information about the
|
|
21
|
+
* sales channel
|
|
22
|
+
* @property {Domain} [domain]
|
|
23
|
+
* @property {Domain[]} [domains]
|
|
24
|
+
* @property {SecureUrl} [favicon]
|
|
25
|
+
* @property {boolean} [is_active] - Indicates whether a sales channel is active
|
|
26
|
+
* or not active
|
|
27
|
+
* @property {boolean} [is_internal] - Indicates whether a sales channel is
|
|
28
|
+
* internal or not
|
|
29
|
+
* @property {SecureUrl} [logo]
|
|
30
|
+
* @property {ApplicationMeta[]} [meta]
|
|
31
|
+
* @property {SecureUrl} [mobile_logo]
|
|
32
|
+
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
33
|
+
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
34
|
+
* of owner who owns the application
|
|
35
|
+
* @property {ApplicationRedirections[]} [redirections]
|
|
36
|
+
* @property {string} [slug]
|
|
37
|
+
* @property {string} [token] - Randomly generated fixed-length string for sales
|
|
38
|
+
* channel. It is required and auto-generated.
|
|
39
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
|
|
40
|
+
* @property {ApplicationWebsite} [website]
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef ApplicationAuth
|
|
45
|
+
* @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef ApplicationCors
|
|
50
|
+
* @property {string[]} [domains]
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef ApplicationMeta
|
|
55
|
+
* @property {string} [name] - Indicates the name of application meta
|
|
56
|
+
* @property {string} [value] - Value related to application meta name
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @typedef ApplicationRedirections
|
|
61
|
+
* @property {string} [redirect_from] - Old domain URL of the sales channel
|
|
62
|
+
* @property {string} [redirect_to] - New domain URL of the sales channel. Users
|
|
63
|
+
* will be automatically redirected from old domain to new domain.
|
|
64
|
+
* @property {string} [type] - It shows domain redirection type. Permanent
|
|
65
|
+
* redirection is for long time period redirection, and temporary redirection
|
|
66
|
+
* for a short time period.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @typedef ApplicationResponse
|
|
71
|
+
* @property {Application} [application]
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef ApplicationWebsite
|
|
76
|
+
* @property {string} [basepath] - Base path for the current sales channel website
|
|
77
|
+
* @property {boolean} [enabled] - Shows whether sales channel website URL is
|
|
78
|
+
* enabled or not
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @typedef BadRequest
|
|
83
|
+
* @property {string} [message] - Failure message (in a string format)
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @typedef Currency
|
|
88
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
89
|
+
* of the current sales channel supported currency
|
|
90
|
+
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
91
|
+
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
92
|
+
* currency creation
|
|
93
|
+
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
94
|
+
* currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
|
|
95
|
+
* value of a currency.
|
|
96
|
+
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
97
|
+
* sales channel
|
|
98
|
+
* @property {string} [name] - Name of the currency, e.g. Indian Rupee
|
|
99
|
+
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
100
|
+
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
101
|
+
* currency updation
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @typedef Domain
|
|
106
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
107
|
+
* of the domain
|
|
108
|
+
* @property {boolean} [is_predefined] - Domain is hosting domain or not
|
|
109
|
+
* @property {boolean} [is_primary] - Indicates domain is primary or not.
|
|
110
|
+
* Primary domain is the default/main domain.
|
|
111
|
+
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
112
|
+
* @property {string} [name]
|
|
113
|
+
* @property {boolean} [verified] - Indicates domain is verified or not. TXT and
|
|
114
|
+
* A records should propagate correctly.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @typedef LocationCountry
|
|
119
|
+
* @property {number} [__v]
|
|
120
|
+
* @property {string} [_id]
|
|
121
|
+
* @property {string} [capital]
|
|
122
|
+
* @property {string} [country_code]
|
|
123
|
+
* @property {string} [currency]
|
|
124
|
+
* @property {LocationDefaultCurrency} [default_currency]
|
|
125
|
+
* @property {LocationDefaultLanguage} [default_language]
|
|
126
|
+
* @property {string} [iso2]
|
|
127
|
+
* @property {string} [iso3]
|
|
128
|
+
* @property {string} [latitude]
|
|
129
|
+
* @property {string} [longitude]
|
|
130
|
+
* @property {string} [name]
|
|
131
|
+
* @property {string} [parent]
|
|
132
|
+
* @property {string} [phone_code]
|
|
133
|
+
* @property {string} [state_code]
|
|
134
|
+
* @property {string} [type]
|
|
135
|
+
* @property {number} [uid]
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef LocationDefaultCurrency
|
|
140
|
+
* @property {string} [code]
|
|
141
|
+
* @property {string} [name]
|
|
142
|
+
* @property {string} [symbol]
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @typedef LocationDefaultLanguage
|
|
147
|
+
* @property {string} [code]
|
|
148
|
+
* @property {string} [name]
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @typedef Locations
|
|
153
|
+
* @property {Object[]} [items]
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @typedef NotFound
|
|
158
|
+
* @property {string} [message] - Response message for not found
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @typedef Page
|
|
163
|
+
* @property {number} [current] - Current page number
|
|
164
|
+
* @property {boolean} [has_next] - Next page is present or not
|
|
165
|
+
* @property {boolean} [has_previous] - Previous page is present or not
|
|
166
|
+
* @property {number} [item_total] - Total number of items to retrieve
|
|
167
|
+
* @property {string} [next_id] - Next page ID
|
|
168
|
+
* @property {number} [size] - The number of items to retrieve in each page.
|
|
169
|
+
* Default value is 10.
|
|
170
|
+
* @property {string} type - Page type
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @typedef SecureUrl
|
|
175
|
+
* @property {string} [secure_url] - Hosted URL of the image
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
class ConfigurationPublicModel {
|
|
179
|
+
/** @returns {Application} */
|
|
4
180
|
static Application() {
|
|
5
181
|
return Joi.object({
|
|
6
182
|
__v: Joi.number(),
|
|
7
183
|
_id: Joi.string().allow(""),
|
|
8
184
|
app_type: Joi.string().allow(""),
|
|
9
|
-
auth:
|
|
10
|
-
banner:
|
|
185
|
+
auth: ConfigurationPublicModel.ApplicationAuth(),
|
|
186
|
+
banner: ConfigurationPublicModel.SecureUrl(),
|
|
11
187
|
cache_ttl: Joi.number(),
|
|
12
188
|
channel_type: Joi.string().allow(""),
|
|
13
189
|
company_id: Joi.number(),
|
|
14
|
-
cors:
|
|
190
|
+
cors: ConfigurationPublicModel.ApplicationCors(),
|
|
15
191
|
created_at: Joi.string().allow(""),
|
|
16
192
|
description: Joi.string().allow(""),
|
|
17
|
-
domain:
|
|
18
|
-
domains: Joi.array().items(
|
|
19
|
-
favicon:
|
|
193
|
+
domain: ConfigurationPublicModel.Domain(),
|
|
194
|
+
domains: Joi.array().items(ConfigurationPublicModel.Domain()),
|
|
195
|
+
favicon: ConfigurationPublicModel.SecureUrl(),
|
|
20
196
|
is_active: Joi.boolean(),
|
|
21
197
|
is_internal: Joi.boolean(),
|
|
22
|
-
logo:
|
|
23
|
-
meta: Joi.array().items(
|
|
24
|
-
mobile_logo:
|
|
198
|
+
logo: ConfigurationPublicModel.SecureUrl(),
|
|
199
|
+
meta: Joi.array().items(ConfigurationPublicModel.ApplicationMeta()),
|
|
200
|
+
mobile_logo: ConfigurationPublicModel.SecureUrl(),
|
|
25
201
|
name: Joi.string().allow(""),
|
|
26
202
|
owner: Joi.string().allow(""),
|
|
27
203
|
redirections: Joi.array().items(
|
|
28
|
-
|
|
204
|
+
ConfigurationPublicModel.ApplicationRedirections()
|
|
29
205
|
),
|
|
30
206
|
slug: Joi.string().allow(""),
|
|
31
207
|
token: Joi.string().allow(""),
|
|
32
208
|
updated_at: Joi.string().allow(""),
|
|
33
|
-
website:
|
|
209
|
+
website: ConfigurationPublicModel.ApplicationWebsite(),
|
|
34
210
|
});
|
|
35
211
|
}
|
|
212
|
+
|
|
213
|
+
/** @returns {ApplicationAuth} */
|
|
36
214
|
static ApplicationAuth() {
|
|
37
215
|
return Joi.object({
|
|
38
216
|
enabled: Joi.boolean(),
|
|
39
217
|
});
|
|
40
218
|
}
|
|
219
|
+
|
|
220
|
+
/** @returns {ApplicationCors} */
|
|
41
221
|
static ApplicationCors() {
|
|
42
222
|
return Joi.object({
|
|
43
223
|
domains: Joi.array().items(Joi.string().allow("")),
|
|
44
224
|
});
|
|
45
225
|
}
|
|
226
|
+
|
|
227
|
+
/** @returns {ApplicationMeta} */
|
|
46
228
|
static ApplicationMeta() {
|
|
47
229
|
return Joi.object({
|
|
48
230
|
name: Joi.string().allow(""),
|
|
49
231
|
value: Joi.string().allow(""),
|
|
50
232
|
});
|
|
51
233
|
}
|
|
234
|
+
|
|
235
|
+
/** @returns {ApplicationRedirections} */
|
|
52
236
|
static ApplicationRedirections() {
|
|
53
237
|
return Joi.object({
|
|
54
238
|
redirect_from: Joi.string().allow(""),
|
|
@@ -56,22 +240,30 @@ class ConfigurationModel {
|
|
|
56
240
|
type: Joi.string().allow(""),
|
|
57
241
|
});
|
|
58
242
|
}
|
|
243
|
+
|
|
244
|
+
/** @returns {ApplicationResponse} */
|
|
59
245
|
static ApplicationResponse() {
|
|
60
246
|
return Joi.object({
|
|
61
|
-
application:
|
|
247
|
+
application: ConfigurationPublicModel.Application(),
|
|
62
248
|
});
|
|
63
249
|
}
|
|
250
|
+
|
|
251
|
+
/** @returns {ApplicationWebsite} */
|
|
64
252
|
static ApplicationWebsite() {
|
|
65
253
|
return Joi.object({
|
|
66
254
|
basepath: Joi.string().allow(""),
|
|
67
255
|
enabled: Joi.boolean(),
|
|
68
256
|
});
|
|
69
257
|
}
|
|
258
|
+
|
|
259
|
+
/** @returns {BadRequest} */
|
|
70
260
|
static BadRequest() {
|
|
71
261
|
return Joi.object({
|
|
72
262
|
message: Joi.string().allow(""),
|
|
73
263
|
});
|
|
74
264
|
}
|
|
265
|
+
|
|
266
|
+
/** @returns {Currency} */
|
|
75
267
|
static Currency() {
|
|
76
268
|
return Joi.object({
|
|
77
269
|
_id: Joi.string().allow(""),
|
|
@@ -84,6 +276,8 @@ class ConfigurationModel {
|
|
|
84
276
|
updated_at: Joi.string().allow(""),
|
|
85
277
|
});
|
|
86
278
|
}
|
|
279
|
+
|
|
280
|
+
/** @returns {Domain} */
|
|
87
281
|
static Domain() {
|
|
88
282
|
return Joi.object({
|
|
89
283
|
_id: Joi.string().allow(""),
|
|
@@ -94,6 +288,8 @@ class ConfigurationModel {
|
|
|
94
288
|
verified: Joi.boolean(),
|
|
95
289
|
});
|
|
96
290
|
}
|
|
291
|
+
|
|
292
|
+
/** @returns {LocationCountry} */
|
|
97
293
|
static LocationCountry() {
|
|
98
294
|
return Joi.object({
|
|
99
295
|
__v: Joi.number(),
|
|
@@ -101,8 +297,8 @@ class ConfigurationModel {
|
|
|
101
297
|
capital: Joi.string().allow(""),
|
|
102
298
|
country_code: Joi.string().allow(""),
|
|
103
299
|
currency: Joi.string().allow(""),
|
|
104
|
-
default_currency:
|
|
105
|
-
default_language:
|
|
300
|
+
default_currency: ConfigurationPublicModel.LocationDefaultCurrency(),
|
|
301
|
+
default_language: ConfigurationPublicModel.LocationDefaultLanguage(),
|
|
106
302
|
iso2: Joi.string().allow(""),
|
|
107
303
|
iso3: Joi.string().allow(""),
|
|
108
304
|
latitude: Joi.string().allow(""),
|
|
@@ -115,6 +311,8 @@ class ConfigurationModel {
|
|
|
115
311
|
uid: Joi.number(),
|
|
116
312
|
});
|
|
117
313
|
}
|
|
314
|
+
|
|
315
|
+
/** @returns {LocationDefaultCurrency} */
|
|
118
316
|
static LocationDefaultCurrency() {
|
|
119
317
|
return Joi.object({
|
|
120
318
|
code: Joi.string().allow(""),
|
|
@@ -122,22 +320,30 @@ class ConfigurationModel {
|
|
|
122
320
|
symbol: Joi.string().allow(""),
|
|
123
321
|
});
|
|
124
322
|
}
|
|
323
|
+
|
|
324
|
+
/** @returns {LocationDefaultLanguage} */
|
|
125
325
|
static LocationDefaultLanguage() {
|
|
126
326
|
return Joi.object({
|
|
127
327
|
code: Joi.string().allow(""),
|
|
128
328
|
name: Joi.string().allow(""),
|
|
129
329
|
});
|
|
130
330
|
}
|
|
331
|
+
|
|
332
|
+
/** @returns {Locations} */
|
|
131
333
|
static Locations() {
|
|
132
334
|
return Joi.object({
|
|
133
335
|
items: Joi.array().items(Joi.any()),
|
|
134
336
|
});
|
|
135
337
|
}
|
|
338
|
+
|
|
339
|
+
/** @returns {NotFound} */
|
|
136
340
|
static NotFound() {
|
|
137
341
|
return Joi.object({
|
|
138
342
|
message: Joi.string().allow(""),
|
|
139
343
|
});
|
|
140
344
|
}
|
|
345
|
+
|
|
346
|
+
/** @returns {Page} */
|
|
141
347
|
static Page() {
|
|
142
348
|
return Joi.object({
|
|
143
349
|
current: Joi.number(),
|
|
@@ -149,10 +355,12 @@ class ConfigurationModel {
|
|
|
149
355
|
type: Joi.string().allow("").required(),
|
|
150
356
|
});
|
|
151
357
|
}
|
|
358
|
+
|
|
359
|
+
/** @returns {SecureUrl} */
|
|
152
360
|
static SecureUrl() {
|
|
153
361
|
return Joi.object({
|
|
154
362
|
secure_url: Joi.string().allow(""),
|
|
155
363
|
});
|
|
156
364
|
}
|
|
157
365
|
}
|
|
158
|
-
module.exports =
|
|
366
|
+
module.exports = ConfigurationPublicModel;
|
|
@@ -1,5 +1,43 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export = ConfigurationPublicValidator;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef GetLocationsParam
|
|
4
|
+
* @property {string} [locationType] - Provide location type to query on.
|
|
5
|
+
* Possible values : country, state, city
|
|
6
|
+
* @property {string} [id] - Field is optional when location_type is country. If
|
|
7
|
+
* querying for state, provide id of country. If querying for city, provide id
|
|
8
|
+
* of state.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef SearchApplicationParam
|
|
12
|
+
* @property {string} [authorization]
|
|
13
|
+
* @property {string} [query] - Provide application name
|
|
14
|
+
*/
|
|
15
|
+
declare class ConfigurationPublicValidator {
|
|
16
|
+
/** @returns {GetLocationsParam} */
|
|
17
|
+
static getLocations(): GetLocationsParam;
|
|
18
|
+
/** @returns {SearchApplicationParam} */
|
|
19
|
+
static searchApplication(): SearchApplicationParam;
|
|
5
20
|
}
|
|
21
|
+
declare namespace ConfigurationPublicValidator {
|
|
22
|
+
export { GetLocationsParam, SearchApplicationParam };
|
|
23
|
+
}
|
|
24
|
+
type GetLocationsParam = {
|
|
25
|
+
/**
|
|
26
|
+
* - Provide location type to query on.
|
|
27
|
+
* Possible values : country, state, city
|
|
28
|
+
*/
|
|
29
|
+
locationType?: string;
|
|
30
|
+
/**
|
|
31
|
+
* - Field is optional when location_type is country. If
|
|
32
|
+
* querying for state, provide id of country. If querying for city, provide id
|
|
33
|
+
* of state.
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
};
|
|
37
|
+
type SearchApplicationParam = {
|
|
38
|
+
authorization?: string;
|
|
39
|
+
/**
|
|
40
|
+
* - Provide application name
|
|
41
|
+
*/
|
|
42
|
+
query?: string;
|
|
43
|
+
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const ConfigurationPublicModel = require("./ConfigurationPublicModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef GetLocationsParam
|
|
7
|
+
* @property {string} [locationType] - Provide location type to query on.
|
|
8
|
+
* Possible values : country, state, city
|
|
9
|
+
* @property {string} [id] - Field is optional when location_type is country. If
|
|
10
|
+
* querying for state, provide id of country. If querying for city, provide id
|
|
11
|
+
* of state.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @typedef SearchApplicationParam
|
|
16
|
+
* @property {string} [authorization]
|
|
17
|
+
* @property {string} [query] - Provide application name
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
class ConfigurationPublicValidator {
|
|
21
|
+
/** @returns {GetLocationsParam} */
|
|
5
22
|
static getLocations() {
|
|
6
23
|
return Joi.object({
|
|
7
24
|
locationType: Joi.string().allow(""),
|
|
@@ -9,6 +26,7 @@ class ConfigurationValidator {
|
|
|
9
26
|
});
|
|
10
27
|
}
|
|
11
28
|
|
|
29
|
+
/** @returns {SearchApplicationParam} */
|
|
12
30
|
static searchApplication() {
|
|
13
31
|
return Joi.object({
|
|
14
32
|
authorization: Joi.string().allow(""),
|
|
@@ -17,4 +35,4 @@ class ConfigurationValidator {
|
|
|
17
35
|
}
|
|
18
36
|
}
|
|
19
37
|
|
|
20
|
-
module.exports =
|
|
38
|
+
module.exports = ConfigurationPublicValidator;
|
|
@@ -13,69 +13,69 @@ declare class Inventory {
|
|
|
13
13
|
_urls: {};
|
|
14
14
|
updateUrls(urls: any): void;
|
|
15
15
|
/**
|
|
16
|
-
* @param {
|
|
17
|
-
* @param {
|
|
18
|
-
* @
|
|
19
|
-
*
|
|
16
|
+
* @param {InventoryPublicValidator.GetApiKeyParam} arg - Arg object.
|
|
17
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
18
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeApikeyModel>} -
|
|
19
|
+
* Success response
|
|
20
|
+
* @name getApiKey
|
|
20
21
|
* @summary: Get apikey for Company to call other Slingshot Configuration APIs
|
|
21
|
-
* @description: REST Endpoint that returns apikey by username by password
|
|
22
|
+
* @description: REST Endpoint that returns apikey by username by password - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getApiKey/).
|
|
22
23
|
*/
|
|
23
|
-
getApiKey({ userName, password }?: {
|
|
24
|
-
userName: string;
|
|
25
|
-
password: string;
|
|
26
|
-
}): Promise<ResponseEnvelopeApikeyModel>;
|
|
24
|
+
getApiKey({ userName, password }?: InventoryPublicValidator.GetApiKeyParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeApikeyModel>;
|
|
27
25
|
/**
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
30
|
-
* @returns {Promise<ResponseEnvelopeSlingshotConfigurationDetail>}
|
|
26
|
+
* @param {InventoryPublicValidator.GetConfigByApiKeyParam} arg - Arg object.
|
|
27
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
28
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeSlingshotConfigurationDetail>}
|
|
29
|
+
* - Success response
|
|
30
|
+
*
|
|
31
|
+
* @name getConfigByApiKey
|
|
31
32
|
* @summary: Get Slingshot Configuration Of A Company using API key
|
|
32
|
-
* @description: REST Endpoint that returns all configuration detail of a company
|
|
33
|
+
* @description: REST Endpoint that returns all configuration detail of a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getConfigByApiKey/).
|
|
33
34
|
*/
|
|
34
|
-
getConfigByApiKey({ apikey }?: {
|
|
35
|
-
apikey: string;
|
|
36
|
-
}): Promise<ResponseEnvelopeSlingshotConfigurationDetail>;
|
|
35
|
+
getConfigByApiKey({ apikey }?: InventoryPublicValidator.GetConfigByApiKeyParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeSlingshotConfigurationDetail>;
|
|
37
36
|
/**
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
* @returns {Promise<ResponseEnvelopeJobConfigDTO>} -
|
|
37
|
+
* @param {InventoryPublicValidator.GetJobByCodeParam} arg - Arg object.
|
|
38
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
39
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeJobConfigDTO>} -
|
|
40
|
+
* Success response
|
|
41
|
+
* @name getJobByCode
|
|
41
42
|
* @summary: Get Job Config By Code
|
|
42
|
-
* @description: REST Endpoint that returns job config by code
|
|
43
|
+
* @description: REST Endpoint that returns job config by code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobByCode/).
|
|
43
44
|
*/
|
|
44
|
-
getJobByCode({ code }?: {
|
|
45
|
-
code: string;
|
|
46
|
-
}): Promise<ResponseEnvelopeJobConfigDTO>;
|
|
45
|
+
getJobByCode({ code }?: InventoryPublicValidator.GetJobByCodeParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeJobConfigDTO>;
|
|
47
46
|
/**
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {
|
|
50
|
-
* @
|
|
51
|
-
* @
|
|
47
|
+
* @param {InventoryPublicValidator.GetJobCodesMetricsParam} arg - Arg object.
|
|
48
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
49
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeObject>} - Success response
|
|
50
|
+
* @name getJobCodesMetrics
|
|
52
51
|
* @summary: Find all the JobCodes from Metrics Collection based on the field Values
|
|
53
|
-
* @description: Endpoint to return all JobCodes present in Metrics Collection
|
|
52
|
+
* @description: Endpoint to return all JobCodes present in Metrics Collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobCodesMetrics/).
|
|
54
53
|
*/
|
|
55
|
-
getJobCodesMetrics({ dailyJob, jobCode }?: {
|
|
56
|
-
dailyJob?: boolean;
|
|
57
|
-
jobCode?: string;
|
|
58
|
-
}): Promise<ResponseEnvelopeObject>;
|
|
54
|
+
getJobCodesMetrics({ dailyJob, jobCode }?: InventoryPublicValidator.GetJobCodesMetricsParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeObject>;
|
|
59
55
|
/**
|
|
60
|
-
* @param {
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @
|
|
56
|
+
* @param {InventoryPublicValidator.GetJobConfigByIntegrationTypeParam} arg
|
|
57
|
+
* - Arg object.
|
|
58
|
+
*
|
|
59
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
60
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeListJobConfigDTO>}
|
|
61
|
+
* - Success response
|
|
62
|
+
*
|
|
63
|
+
* @name getJobConfigByIntegrationType
|
|
64
64
|
* @summary: Get Job Configs By Integration Type
|
|
65
|
-
* @description: REST Endpoint that returns all job Configs by Integration Type
|
|
65
|
+
* @description: REST Endpoint that returns all job Configs by Integration Type - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobConfigByIntegrationType/).
|
|
66
66
|
*/
|
|
67
|
-
getJobConfigByIntegrationType({ integrationType, disable }?: {
|
|
68
|
-
integrationType: string;
|
|
69
|
-
disable?: boolean;
|
|
70
|
-
}): Promise<ResponseEnvelopeListJobConfigDTO>;
|
|
67
|
+
getJobConfigByIntegrationType({ integrationType, disable }?: InventoryPublicValidator.GetJobConfigByIntegrationTypeParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeListJobConfigDTO>;
|
|
71
68
|
/**
|
|
72
|
-
* @param {
|
|
73
|
-
* @param {
|
|
74
|
-
* @returns {Promise<ResponseEnvelopeEmailJobMetrics>}
|
|
69
|
+
* @param {InventoryPublicValidator.SaveJobCodesMetricsParam} arg - Arg object.
|
|
70
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
71
|
+
* @returns {Promise<InventoryPublicModel.ResponseEnvelopeEmailJobMetrics>}
|
|
72
|
+
* - Success response
|
|
73
|
+
*
|
|
74
|
+
* @name saveJobCodesMetrics
|
|
75
75
|
* @summary: Save JobCode Metrics
|
|
76
|
-
* @description: Endpoint to save JobCode Metrics
|
|
76
|
+
* @description: Endpoint to save JobCode Metrics - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/saveJobCodesMetrics/).
|
|
77
77
|
*/
|
|
78
|
-
saveJobCodesMetrics({ body }?: {
|
|
79
|
-
body: EmailJobMetrics;
|
|
80
|
-
}): Promise<ResponseEnvelopeEmailJobMetrics>;
|
|
78
|
+
saveJobCodesMetrics({ body }?: InventoryPublicValidator.SaveJobCodesMetricsParam, { headers }?: any): Promise<InventoryPublicModel.ResponseEnvelopeEmailJobMetrics>;
|
|
81
79
|
}
|
|
80
|
+
import InventoryPublicValidator = require("./InventoryPublicValidator");
|
|
81
|
+
import InventoryPublicModel = require("./InventoryPublicModel");
|