@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,6 +1,711 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef ArchiveConfig
|
|
5
|
+
* @property {boolean} [archive]
|
|
6
|
+
* @property {string} [archive_dir]
|
|
7
|
+
* @property {boolean} [delete]
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef Audit
|
|
12
|
+
* @property {string} [created_by]
|
|
13
|
+
* @property {string} [created_on]
|
|
14
|
+
* @property {string} [modified_by]
|
|
15
|
+
* @property {string} [modified_on]
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef AWSS3config
|
|
20
|
+
* @property {string} [access_key]
|
|
21
|
+
* @property {boolean} [archive]
|
|
22
|
+
* @property {ArchiveConfig} [archive_config]
|
|
23
|
+
* @property {string} [archive_path]
|
|
24
|
+
* @property {string} [bucket]
|
|
25
|
+
* @property {boolean} [delete]
|
|
26
|
+
* @property {string} [dir]
|
|
27
|
+
* @property {string} [file_regex]
|
|
28
|
+
* @property {string} [local_file_path]
|
|
29
|
+
* @property {string} [region]
|
|
30
|
+
* @property {string} [secret_key]
|
|
31
|
+
* @property {boolean} [unzip]
|
|
32
|
+
* @property {string} [zip_format]
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef CatalogMasterConfig
|
|
37
|
+
* @property {string} [source_slug]
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef CompanyConfig
|
|
42
|
+
* @property {number} [company_id]
|
|
43
|
+
* @property {number} [delete_quantity_threshold]
|
|
44
|
+
* @property {number[]} [exclude_steps]
|
|
45
|
+
* @property {string[]} [hidden_closet_keys]
|
|
46
|
+
* @property {Object} [open_tags]
|
|
47
|
+
* @property {string[]} [tax_identifiers]
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @typedef DataTresholdDTO
|
|
52
|
+
* @property {number} [min_price]
|
|
53
|
+
* @property {number} [period_threshold]
|
|
54
|
+
* @property {string} [period_threshold_type]
|
|
55
|
+
* @property {GenericDTO[]} [period_type_list]
|
|
56
|
+
* @property {number} [safe_stock]
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @typedef DBConfig
|
|
61
|
+
* @property {string} [dbname]
|
|
62
|
+
* @property {string} [driver_class]
|
|
63
|
+
* @property {string} [host]
|
|
64
|
+
* @property {string} [jdbc_url]
|
|
65
|
+
* @property {Object} [optional_properties]
|
|
66
|
+
* @property {string} [password]
|
|
67
|
+
* @property {number} [port]
|
|
68
|
+
* @property {boolean} [procedure]
|
|
69
|
+
* @property {string} [query]
|
|
70
|
+
* @property {string} [username]
|
|
71
|
+
* @property {string} [vendor]
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef DBConnectionProfile
|
|
76
|
+
* @property {string} [inventory]
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @typedef DBParamConfig
|
|
81
|
+
* @property {Object} [params]
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @typedef DefaultHeadersDTO
|
|
86
|
+
* @property {PropBeanDTO} [intf_article_id]
|
|
87
|
+
* @property {PropBeanDTO} [price_effective]
|
|
88
|
+
* @property {PropBeanDTO} [quantity]
|
|
89
|
+
* @property {PropBeanDTO} [store]
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @typedef DocMappingConfig
|
|
94
|
+
* @property {DefaultHeadersDTO} [default_headers]
|
|
95
|
+
* @property {number} [junk_data_threshold_count]
|
|
96
|
+
* @property {PropBeanConfig[]} [prop_bean_configs]
|
|
97
|
+
* @property {Object} [properties]
|
|
98
|
+
* @property {string} [unwind_field]
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef EmailConfig
|
|
103
|
+
* @property {ArchiveConfig} [archive_config]
|
|
104
|
+
* @property {boolean} [attachment_mandate]
|
|
105
|
+
* @property {string} [attachment_regex]
|
|
106
|
+
* @property {string} [body_content_regex]
|
|
107
|
+
* @property {string} [content_type]
|
|
108
|
+
* @property {boolean} [downloadable_link]
|
|
109
|
+
* @property {boolean} [filter_based_on_recepients]
|
|
110
|
+
* @property {boolean} [filter_files_after_extraction]
|
|
111
|
+
* @property {string[]} [folder_name_hierarchies]
|
|
112
|
+
* @property {string} [host]
|
|
113
|
+
* @property {string} [local_dir]
|
|
114
|
+
* @property {string} [password]
|
|
115
|
+
* @property {boolean} [password_protected]
|
|
116
|
+
* @property {string} [pcol]
|
|
117
|
+
* @property {Object} [properties]
|
|
118
|
+
* @property {boolean} [read_all_unread_mails]
|
|
119
|
+
* @property {boolean} [read_from_content]
|
|
120
|
+
* @property {string} [recepient]
|
|
121
|
+
* @property {string} [sender_address]
|
|
122
|
+
* @property {string} [subject_line_regex]
|
|
123
|
+
* @property {boolean} [unzip]
|
|
124
|
+
* @property {string} [username]
|
|
125
|
+
* @property {string} [zip_format]
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @typedef FileConfig
|
|
130
|
+
* @property {string} [charset]
|
|
131
|
+
* @property {number} [data_start_index]
|
|
132
|
+
* @property {DefaultHeadersDTO} [default_headers]
|
|
133
|
+
* @property {string} [delimiter]
|
|
134
|
+
* @property {string} [escape_char]
|
|
135
|
+
* @property {boolean} [file_has_header]
|
|
136
|
+
* @property {string} [file_type]
|
|
137
|
+
* @property {string[]} [header_array]
|
|
138
|
+
* @property {number} [header_index]
|
|
139
|
+
* @property {number} [junk_data_threshold_count]
|
|
140
|
+
* @property {boolean} [line_validity_check]
|
|
141
|
+
* @property {PropBeanConfig[]} [prop_bean_configs]
|
|
142
|
+
* @property {Object} [properties]
|
|
143
|
+
* @property {string} [quote_char]
|
|
144
|
+
* @property {boolean} [read_all_sheets]
|
|
145
|
+
* @property {string[]} [sheet_names]
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @typedef FTPConfig
|
|
150
|
+
* @property {ArchiveConfig} [archive_config]
|
|
151
|
+
* @property {string} [file_regex]
|
|
152
|
+
* @property {string} [host]
|
|
153
|
+
* @property {number} [interval]
|
|
154
|
+
* @property {string} [local_dir]
|
|
155
|
+
* @property {string} [password]
|
|
156
|
+
* @property {number} [port]
|
|
157
|
+
* @property {boolean} [read_all_files]
|
|
158
|
+
* @property {string} [remote_dir]
|
|
159
|
+
* @property {number} [retries]
|
|
160
|
+
* @property {boolean} [unzip]
|
|
161
|
+
* @property {string} [username]
|
|
162
|
+
* @property {string} [zip_file_regex]
|
|
163
|
+
* @property {string} [zip_format]
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef GCompany
|
|
168
|
+
* @property {string} [_id]
|
|
169
|
+
* @property {string} [integration]
|
|
170
|
+
* @property {string} [level]
|
|
171
|
+
* @property {string} [name]
|
|
172
|
+
* @property {boolean} [opted]
|
|
173
|
+
* @property {string[]} [permissions]
|
|
174
|
+
* @property {GStore[]} [stores]
|
|
175
|
+
* @property {string} [token]
|
|
176
|
+
* @property {number} [uid]
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @typedef GenericDTO
|
|
181
|
+
* @property {string} [text]
|
|
182
|
+
* @property {Object} [value]
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @typedef GoogleSpreadSheetConfig
|
|
187
|
+
* @property {ArchiveConfig} [archive_config]
|
|
188
|
+
* @property {string} [client_secret_location]
|
|
189
|
+
* @property {string} [cred_storage_directory]
|
|
190
|
+
* @property {string} [local_dir]
|
|
191
|
+
* @property {string} [range]
|
|
192
|
+
* @property {string} [sheet_id]
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @typedef GStore
|
|
197
|
+
* @property {string} [_id]
|
|
198
|
+
* @property {string} [code]
|
|
199
|
+
* @property {StoreData} [data]
|
|
200
|
+
* @property {string} [integration]
|
|
201
|
+
* @property {string} [level]
|
|
202
|
+
* @property {string} [name]
|
|
203
|
+
* @property {boolean} [opted]
|
|
204
|
+
* @property {string[]} [permissions]
|
|
205
|
+
* @property {string} [token]
|
|
206
|
+
* @property {number} [uid]
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @typedef HttpConfig
|
|
211
|
+
* @property {ArchiveConfig} [archive_config]
|
|
212
|
+
* @property {string} [hosturl]
|
|
213
|
+
* @property {string} [http_method]
|
|
214
|
+
* @property {string} [local_path]
|
|
215
|
+
* @property {string} [password]
|
|
216
|
+
* @property {Object} [request_params]
|
|
217
|
+
* @property {string} [request_payload]
|
|
218
|
+
* @property {string} [username]
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @typedef JobConfig
|
|
223
|
+
* @property {number} [_id]
|
|
224
|
+
* @property {string[]} [aggregator_types]
|
|
225
|
+
* @property {string} [alias]
|
|
226
|
+
* @property {Audit} [audit]
|
|
227
|
+
* @property {CatalogMasterConfig} [catalog_master_config]
|
|
228
|
+
* @property {CompanyConfig[]} [company_config]
|
|
229
|
+
* @property {number[]} [company_ids]
|
|
230
|
+
* @property {string} [cron_expression]
|
|
231
|
+
* @property {DBConnectionProfile} [db_connection_profile]
|
|
232
|
+
* @property {number} [delete_quantity_threshold]
|
|
233
|
+
* @property {string[]} [dependent_job_codes]
|
|
234
|
+
* @property {boolean} [disable]
|
|
235
|
+
* @property {boolean} [immediate_first_run]
|
|
236
|
+
* @property {string} [integration_type]
|
|
237
|
+
* @property {string} [job_code]
|
|
238
|
+
* @property {number} [min_price]
|
|
239
|
+
* @property {Object} [open_tags]
|
|
240
|
+
* @property {Object} [params]
|
|
241
|
+
* @property {number} [period_threshold]
|
|
242
|
+
* @property {string} [period_threshold_type]
|
|
243
|
+
* @property {string} [priority]
|
|
244
|
+
* @property {ProcessConfig} [process_config]
|
|
245
|
+
* @property {Object} [properties]
|
|
246
|
+
* @property {StoreConfig[]} [store_config]
|
|
247
|
+
* @property {StoreFilter} [store_filter]
|
|
248
|
+
* @property {number} [sync_delay]
|
|
249
|
+
* @property {string} [task_type]
|
|
250
|
+
* @property {string[]} [tax_identifiers]
|
|
251
|
+
* @property {number} [version]
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @typedef JobConfigDTO
|
|
256
|
+
* @property {string} [alias]
|
|
257
|
+
* @property {number} company_id
|
|
258
|
+
* @property {string} [company_name]
|
|
259
|
+
* @property {string} integration
|
|
260
|
+
* @property {Object} [integration_data]
|
|
261
|
+
* @property {string} [job_code]
|
|
262
|
+
* @property {TaskDTO} [task_details]
|
|
263
|
+
* @property {DataTresholdDTO} [threshold_details]
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @typedef JobConfigListDTO
|
|
268
|
+
* @property {boolean} [active]
|
|
269
|
+
* @property {string} [alias]
|
|
270
|
+
* @property {string} [code]
|
|
271
|
+
* @property {string} [created_by]
|
|
272
|
+
* @property {string} [created_on]
|
|
273
|
+
* @property {string} [modified_by]
|
|
274
|
+
* @property {string} [modified_on]
|
|
275
|
+
* @property {string} [type]
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @typedef JobConfigRawDTO
|
|
280
|
+
* @property {number} company_id
|
|
281
|
+
* @property {string} company_name
|
|
282
|
+
* @property {JobConfig} [data]
|
|
283
|
+
* @property {string} integration
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @typedef JobHistoryDto
|
|
288
|
+
* @property {string} [error_type]
|
|
289
|
+
* @property {string[]} [filename]
|
|
290
|
+
* @property {string} [job_code]
|
|
291
|
+
* @property {number} [job_id]
|
|
292
|
+
* @property {string} [message]
|
|
293
|
+
* @property {string} [processed_on]
|
|
294
|
+
* @property {string} [status]
|
|
295
|
+
* @property {number} [total_added_count]
|
|
296
|
+
* @property {number} [total_initial_count]
|
|
297
|
+
* @property {number} [total_suppressed_count]
|
|
298
|
+
* @property {number} [total_updated_count]
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @typedef JobMetricsDto
|
|
303
|
+
* @property {string} [is_run_more_than_usual]
|
|
304
|
+
* @property {string} [job_code]
|
|
305
|
+
* @property {JobHistoryDto[]} [job_history]
|
|
306
|
+
* @property {number} [total_failure_count]
|
|
307
|
+
* @property {number} [total_job_runs]
|
|
308
|
+
* @property {number} [total_success_count]
|
|
309
|
+
* @property {number} [total_suppressed_count]
|
|
310
|
+
* @property {number} [total_warning_count]
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @typedef JobStepsDTO
|
|
315
|
+
* @property {number} [deleted_count]
|
|
316
|
+
* @property {number} [end_count]
|
|
317
|
+
* @property {string} [processed_at]
|
|
318
|
+
* @property {string} [processed_start_time]
|
|
319
|
+
* @property {number} [start_count]
|
|
320
|
+
* @property {number} [step_execution_time]
|
|
321
|
+
* @property {string} [step_name]
|
|
322
|
+
* @property {string} [type]
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @typedef JsonDocConfig
|
|
327
|
+
* @property {PropBeanConfig[]} [prop_bean_configs]
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @typedef KafkaMetaModel
|
|
332
|
+
* @property {string} [action]
|
|
333
|
+
* @property {number} [batch_id]
|
|
334
|
+
* @property {string} [created_on]
|
|
335
|
+
* @property {number} [created_timestamp]
|
|
336
|
+
* @property {string} [job_type]
|
|
337
|
+
* @property {string[]} [trace]
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @typedef KafkaResponse
|
|
342
|
+
* @property {number} [offset]
|
|
343
|
+
* @property {number} [partition]
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @typedef LocalFileConfig
|
|
348
|
+
* @property {ArchiveConfig} [archive_config]
|
|
349
|
+
* @property {string} [file_regex]
|
|
350
|
+
* @property {number} [interval]
|
|
351
|
+
* @property {string} [local_dir]
|
|
352
|
+
* @property {boolean} [read_all_files]
|
|
353
|
+
* @property {number} [retries]
|
|
354
|
+
* @property {boolean} [unzip]
|
|
355
|
+
* @property {string} [working_dir]
|
|
356
|
+
* @property {string} [zip_file_regex]
|
|
357
|
+
* @property {string} [zip_format]
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @typedef Metum
|
|
362
|
+
* @property {string} [_id]
|
|
363
|
+
* @property {string} [name]
|
|
364
|
+
* @property {string} [value]
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @typedef MongoDocConfig
|
|
369
|
+
* @property {Object[]} [aggregate_pipeline]
|
|
370
|
+
* @property {string} [collection_name]
|
|
371
|
+
* @property {Object} [find_query]
|
|
372
|
+
* @property {Object} [projection_query]
|
|
373
|
+
* @property {PropBeanConfig[]} [prop_bean_configs]
|
|
374
|
+
* @property {boolean} [skip_save]
|
|
375
|
+
*/
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @typedef OAuthConfig
|
|
379
|
+
* @property {string} [consumer_key]
|
|
380
|
+
* @property {string} [consumer_secret]
|
|
381
|
+
* @property {string} [function_name]
|
|
382
|
+
* @property {number} [interval]
|
|
383
|
+
* @property {number} [limit]
|
|
384
|
+
* @property {number} [pages]
|
|
385
|
+
* @property {string} [rest_base_url]
|
|
386
|
+
* @property {string} [rest_url]
|
|
387
|
+
* @property {string} [token]
|
|
388
|
+
* @property {string} [token_secret]
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @typedef Page
|
|
393
|
+
* @property {number} [current]
|
|
394
|
+
* @property {boolean} [has_next]
|
|
395
|
+
* @property {boolean} [has_previous]
|
|
396
|
+
* @property {number} [item_total]
|
|
397
|
+
* @property {string} [next_id]
|
|
398
|
+
* @property {number} [size]
|
|
399
|
+
* @property {string} type
|
|
400
|
+
*/
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @typedef ProcessConfig
|
|
404
|
+
* @property {AWSS3config} [aws_s3_config]
|
|
405
|
+
* @property {DBConfig} [db_config]
|
|
406
|
+
* @property {DBParamConfig} [db_param_config]
|
|
407
|
+
* @property {DocMappingConfig} [doc_mapping_config]
|
|
408
|
+
* @property {EmailConfig} [email_config]
|
|
409
|
+
* @property {FileConfig} [file_config]
|
|
410
|
+
* @property {FTPConfig} [ftp_config]
|
|
411
|
+
* @property {GoogleSpreadSheetConfig} [google_spreadsheet_config]
|
|
412
|
+
* @property {HttpConfig} [http_config]
|
|
413
|
+
* @property {JsonDocConfig} [json_doc_config]
|
|
414
|
+
* @property {LocalFileConfig} [local_file_config]
|
|
415
|
+
* @property {MongoDocConfig} [mongo_doc_config]
|
|
416
|
+
* @property {OAuthConfig} [oauth_config]
|
|
417
|
+
* @property {SFTPConfig} [sftp_config]
|
|
418
|
+
* @property {TaskStepConfig} [task_step_config]
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @typedef PropBeanConfig
|
|
423
|
+
* @property {string} [all_param_function_name]
|
|
424
|
+
* @property {string} [concat_str]
|
|
425
|
+
* @property {Object} [const_value]
|
|
426
|
+
* @property {string} [data_type]
|
|
427
|
+
* @property {Object} [default_value]
|
|
428
|
+
* @property {string} [destination_field]
|
|
429
|
+
* @property {boolean} [enrich_from_master]
|
|
430
|
+
* @property {string} [function_name]
|
|
431
|
+
* @property {string} [identifier_type]
|
|
432
|
+
* @property {boolean} [ignore_if_not_exists]
|
|
433
|
+
* @property {boolean} [include]
|
|
434
|
+
* @property {string} [index_field]
|
|
435
|
+
* @property {boolean} [optional]
|
|
436
|
+
* @property {Object} [projection_query]
|
|
437
|
+
* @property {boolean} [required]
|
|
438
|
+
* @property {Send} [send]
|
|
439
|
+
* @property {string} [source_field]
|
|
440
|
+
* @property {string[]} [source_fields]
|
|
441
|
+
* @property {string} [sub_separator]
|
|
442
|
+
* @property {string} [transformer_name]
|
|
443
|
+
* @property {Object[]} [validations]
|
|
444
|
+
* @property {string[]} [values]
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @typedef PropBeanDTO
|
|
449
|
+
* @property {string} [all_param_function_name]
|
|
450
|
+
* @property {string} [concat_str]
|
|
451
|
+
* @property {Object} [const_value]
|
|
452
|
+
* @property {string} [data_type]
|
|
453
|
+
* @property {Object} [default_value]
|
|
454
|
+
* @property {string} [destination_field]
|
|
455
|
+
* @property {boolean} [enrich_from_master]
|
|
456
|
+
* @property {string} [function_name]
|
|
457
|
+
* @property {string} [identifier_type]
|
|
458
|
+
* @property {boolean} [ignore_if_not_exists]
|
|
459
|
+
* @property {boolean} [include]
|
|
460
|
+
* @property {string} [index_field]
|
|
461
|
+
* @property {boolean} [optional]
|
|
462
|
+
* @property {Object} [projection_query]
|
|
463
|
+
* @property {boolean} [required]
|
|
464
|
+
* @property {string} [source_field]
|
|
465
|
+
* @property {string[]} [source_fields]
|
|
466
|
+
* @property {string} [sub_separator]
|
|
467
|
+
* @property {string} [transformer_name]
|
|
468
|
+
*/
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* @typedef ResponseEnvelopeJobConfigDTO
|
|
472
|
+
* @property {string} [error]
|
|
473
|
+
* @property {string} [exception]
|
|
474
|
+
* @property {string} [http_status]
|
|
475
|
+
* @property {JobConfigDTO} [items]
|
|
476
|
+
* @property {string} [message]
|
|
477
|
+
* @property {Page} [page]
|
|
478
|
+
* @property {JobConfigDTO} [payload]
|
|
479
|
+
* @property {number} [status]
|
|
480
|
+
* @property {string} [timestamp]
|
|
481
|
+
* @property {number} [total_time_taken_in_millis]
|
|
482
|
+
* @property {string} [trace_id]
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @typedef ResponseEnvelopeJobMetricsDto
|
|
487
|
+
* @property {string} [error]
|
|
488
|
+
* @property {string} [exception]
|
|
489
|
+
* @property {string} [http_status]
|
|
490
|
+
* @property {JobMetricsDto} [items]
|
|
491
|
+
* @property {string} [message]
|
|
492
|
+
* @property {Page} [page]
|
|
493
|
+
* @property {JobMetricsDto} [payload]
|
|
494
|
+
* @property {number} [status]
|
|
495
|
+
* @property {string} [timestamp]
|
|
496
|
+
* @property {number} [total_time_taken_in_millis]
|
|
497
|
+
* @property {string} [trace_id]
|
|
498
|
+
*/
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @typedef ResponseEnvelopeKafkaResponse
|
|
502
|
+
* @property {string} [error]
|
|
503
|
+
* @property {string} [exception]
|
|
504
|
+
* @property {string} [http_status]
|
|
505
|
+
* @property {KafkaResponse} [items]
|
|
506
|
+
* @property {string} [message]
|
|
507
|
+
* @property {Page} [page]
|
|
508
|
+
* @property {KafkaResponse} [payload]
|
|
509
|
+
* @property {number} [status]
|
|
510
|
+
* @property {string} [timestamp]
|
|
511
|
+
* @property {number} [total_time_taken_in_millis]
|
|
512
|
+
* @property {string} [trace_id]
|
|
513
|
+
*/
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @typedef ResponseEnvelopeListJobConfigDTO
|
|
517
|
+
* @property {string} [error]
|
|
518
|
+
* @property {string} [exception]
|
|
519
|
+
* @property {string} [http_status]
|
|
520
|
+
* @property {JobConfigDTO[]} [items]
|
|
521
|
+
* @property {string} [message]
|
|
522
|
+
* @property {Page} [page]
|
|
523
|
+
* @property {JobConfigDTO[]} [payload]
|
|
524
|
+
* @property {number} [status]
|
|
525
|
+
* @property {string} [timestamp]
|
|
526
|
+
* @property {number} [total_time_taken_in_millis]
|
|
527
|
+
* @property {string} [trace_id]
|
|
528
|
+
*/
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @typedef ResponseEnvelopeListJobConfigListDTO
|
|
532
|
+
* @property {string} [error]
|
|
533
|
+
* @property {string} [exception]
|
|
534
|
+
* @property {string} [http_status]
|
|
535
|
+
* @property {JobConfigListDTO[]} [items]
|
|
536
|
+
* @property {string} [message]
|
|
537
|
+
* @property {Page} [page]
|
|
538
|
+
* @property {JobConfigListDTO[]} [payload]
|
|
539
|
+
* @property {number} [status]
|
|
540
|
+
* @property {string} [timestamp]
|
|
541
|
+
* @property {number} [total_time_taken_in_millis]
|
|
542
|
+
* @property {string} [trace_id]
|
|
543
|
+
*/
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @typedef ResponseEnvelopeListJobConfigRawDTO
|
|
547
|
+
* @property {string} [error]
|
|
548
|
+
* @property {string} [exception]
|
|
549
|
+
* @property {string} [http_status]
|
|
550
|
+
* @property {JobConfigRawDTO[]} [items]
|
|
551
|
+
* @property {string} [message]
|
|
552
|
+
* @property {Page} [page]
|
|
553
|
+
* @property {JobConfigRawDTO[]} [payload]
|
|
554
|
+
* @property {number} [status]
|
|
555
|
+
* @property {string} [timestamp]
|
|
556
|
+
* @property {number} [total_time_taken_in_millis]
|
|
557
|
+
* @property {string} [trace_id]
|
|
558
|
+
*/
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @typedef ResponseEnvelopeListJobStepsDTO
|
|
562
|
+
* @property {string} [error]
|
|
563
|
+
* @property {string} [exception]
|
|
564
|
+
* @property {string} [http_status]
|
|
565
|
+
* @property {JobStepsDTO[]} [items]
|
|
566
|
+
* @property {string} [message]
|
|
567
|
+
* @property {Page} [page]
|
|
568
|
+
* @property {JobStepsDTO[]} [payload]
|
|
569
|
+
* @property {number} [status]
|
|
570
|
+
* @property {string} [timestamp]
|
|
571
|
+
* @property {number} [total_time_taken_in_millis]
|
|
572
|
+
* @property {string} [trace_id]
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @typedef ResponseEnvelopeListSlingshotConfigurationDetail
|
|
577
|
+
* @property {string} [error]
|
|
578
|
+
* @property {string} [exception]
|
|
579
|
+
* @property {string} [http_status]
|
|
580
|
+
* @property {SlingshotConfigurationDetail[]} [items]
|
|
581
|
+
* @property {string} [message]
|
|
582
|
+
* @property {Page} [page]
|
|
583
|
+
* @property {SlingshotConfigurationDetail[]} [payload]
|
|
584
|
+
* @property {number} [status]
|
|
585
|
+
* @property {string} [timestamp]
|
|
586
|
+
* @property {number} [total_time_taken_in_millis]
|
|
587
|
+
* @property {string} [trace_id]
|
|
588
|
+
*/
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @typedef ResponseEnvelopeString
|
|
592
|
+
* @property {string} [error]
|
|
593
|
+
* @property {string} [exception]
|
|
594
|
+
* @property {string} [http_status]
|
|
595
|
+
* @property {string} [items]
|
|
596
|
+
* @property {string} [message]
|
|
597
|
+
* @property {Page} [page]
|
|
598
|
+
* @property {string} [payload]
|
|
599
|
+
* @property {number} [status]
|
|
600
|
+
* @property {string} [timestamp]
|
|
601
|
+
* @property {number} [total_time_taken_in_millis]
|
|
602
|
+
* @property {string} [trace_id]
|
|
603
|
+
*/
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @typedef Send
|
|
607
|
+
* @property {boolean} [processed]
|
|
608
|
+
* @property {boolean} [raw]
|
|
609
|
+
*/
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @typedef SFTPConfig
|
|
613
|
+
* @property {ArchiveConfig} [archive_config]
|
|
614
|
+
* @property {string} [file_regex]
|
|
615
|
+
* @property {string} [host]
|
|
616
|
+
* @property {number} [interval]
|
|
617
|
+
* @property {string} [local_dir]
|
|
618
|
+
* @property {string} [password]
|
|
619
|
+
* @property {boolean} [password_protected]
|
|
620
|
+
* @property {number} [port]
|
|
621
|
+
* @property {string} [private_key_path]
|
|
622
|
+
* @property {boolean} [read_all_files]
|
|
623
|
+
* @property {string} [remote_dir]
|
|
624
|
+
* @property {number} [retries]
|
|
625
|
+
* @property {boolean} [strict_host_key_checking]
|
|
626
|
+
* @property {boolean} [unzip]
|
|
627
|
+
* @property {string} [username]
|
|
628
|
+
* @property {string} [zip_file_regex]
|
|
629
|
+
* @property {string} [zip_format]
|
|
630
|
+
*/
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* @typedef SlingshotConfigurationDetail
|
|
634
|
+
* @property {GCompany[]} [companies]
|
|
635
|
+
* @property {SlingshotIntegration} [integration]
|
|
636
|
+
*/
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @typedef SlingshotIntegration
|
|
640
|
+
* @property {string} [_id]
|
|
641
|
+
* @property {string} [description]
|
|
642
|
+
* @property {Metum[]} [meta]
|
|
643
|
+
* @property {string} [name]
|
|
644
|
+
* @property {string} [slug]
|
|
645
|
+
*/
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @typedef StoreConfig
|
|
649
|
+
* @property {string} [job_code]
|
|
650
|
+
* @property {ProcessConfig} [process_config]
|
|
651
|
+
* @property {Object} [properties]
|
|
652
|
+
* @property {string} [store_alias]
|
|
653
|
+
* @property {string} [store_file_name]
|
|
654
|
+
* @property {string} [store_file_regex]
|
|
655
|
+
* @property {string} [storeid]
|
|
656
|
+
*/
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* @typedef StoreData
|
|
660
|
+
* @property {string} [location_id]
|
|
661
|
+
*/
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @typedef StoreFilter
|
|
665
|
+
* @property {string[]} [exclude_tags]
|
|
666
|
+
* @property {string[]} [include_tags]
|
|
667
|
+
* @property {Object} [query]
|
|
668
|
+
*/
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* @typedef SuppressStoreModel
|
|
672
|
+
* @property {number[]} [stores]
|
|
673
|
+
*/
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @typedef SuppressStorePayload
|
|
677
|
+
* @property {KafkaMetaModel} [meta]
|
|
678
|
+
* @property {SuppressStoreModel[]} [payload]
|
|
679
|
+
*/
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @typedef TaskConfig
|
|
683
|
+
* @property {string} [name]
|
|
684
|
+
* @property {number} [task_config_id]
|
|
685
|
+
* @property {TaskParam[]} [task_params]
|
|
686
|
+
*/
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* @typedef TaskDTO
|
|
690
|
+
* @property {GenericDTO[]} [group_list]
|
|
691
|
+
* @property {number} [type]
|
|
692
|
+
*/
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* @typedef TaskParam
|
|
696
|
+
* @property {string} [name]
|
|
697
|
+
* @property {Object} [value]
|
|
698
|
+
*/
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @typedef TaskStepConfig
|
|
702
|
+
* @property {number[]} [task_config_group_ids]
|
|
703
|
+
* @property {number[]} [task_config_ids]
|
|
704
|
+
* @property {TaskConfig[]} [task_configs]
|
|
705
|
+
*/
|
|
706
|
+
|
|
707
|
+
class InventoryPlatformModel {
|
|
708
|
+
/** @returns {ArchiveConfig} */
|
|
4
709
|
static ArchiveConfig() {
|
|
5
710
|
return Joi.object({
|
|
6
711
|
archive: Joi.boolean(),
|
|
@@ -8,6 +713,8 @@ class InventoryModel {
|
|
|
8
713
|
delete: Joi.boolean(),
|
|
9
714
|
});
|
|
10
715
|
}
|
|
716
|
+
|
|
717
|
+
/** @returns {Audit} */
|
|
11
718
|
static Audit() {
|
|
12
719
|
return Joi.object({
|
|
13
720
|
created_by: Joi.string().allow(""),
|
|
@@ -16,11 +723,13 @@ class InventoryModel {
|
|
|
16
723
|
modified_on: Joi.string().allow(""),
|
|
17
724
|
});
|
|
18
725
|
}
|
|
726
|
+
|
|
727
|
+
/** @returns {AWSS3config} */
|
|
19
728
|
static AWSS3config() {
|
|
20
729
|
return Joi.object({
|
|
21
730
|
access_key: Joi.string().allow(""),
|
|
22
731
|
archive: Joi.boolean(),
|
|
23
|
-
archive_config:
|
|
732
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
24
733
|
archive_path: Joi.string().allow(""),
|
|
25
734
|
bucket: Joi.string().allow(""),
|
|
26
735
|
delete: Joi.boolean(),
|
|
@@ -33,11 +742,15 @@ class InventoryModel {
|
|
|
33
742
|
zip_format: Joi.string().allow(""),
|
|
34
743
|
});
|
|
35
744
|
}
|
|
745
|
+
|
|
746
|
+
/** @returns {CatalogMasterConfig} */
|
|
36
747
|
static CatalogMasterConfig() {
|
|
37
748
|
return Joi.object({
|
|
38
749
|
source_slug: Joi.string().allow(""),
|
|
39
750
|
});
|
|
40
751
|
}
|
|
752
|
+
|
|
753
|
+
/** @returns {CompanyConfig} */
|
|
41
754
|
static CompanyConfig() {
|
|
42
755
|
return Joi.object({
|
|
43
756
|
company_id: Joi.number(),
|
|
@@ -48,15 +761,19 @@ class InventoryModel {
|
|
|
48
761
|
tax_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
49
762
|
});
|
|
50
763
|
}
|
|
764
|
+
|
|
765
|
+
/** @returns {DataTresholdDTO} */
|
|
51
766
|
static DataTresholdDTO() {
|
|
52
767
|
return Joi.object({
|
|
53
768
|
min_price: Joi.number(),
|
|
54
769
|
period_threshold: Joi.number(),
|
|
55
770
|
period_threshold_type: Joi.string().allow(""),
|
|
56
|
-
period_type_list: Joi.array().items(
|
|
771
|
+
period_type_list: Joi.array().items(InventoryPlatformModel.GenericDTO()),
|
|
57
772
|
safe_stock: Joi.number(),
|
|
58
773
|
});
|
|
59
774
|
}
|
|
775
|
+
|
|
776
|
+
/** @returns {DBConfig} */
|
|
60
777
|
static DBConfig() {
|
|
61
778
|
return Joi.object({
|
|
62
779
|
dbname: Joi.string().allow(""),
|
|
@@ -72,36 +789,48 @@ class InventoryModel {
|
|
|
72
789
|
vendor: Joi.string().allow(""),
|
|
73
790
|
});
|
|
74
791
|
}
|
|
792
|
+
|
|
793
|
+
/** @returns {DBConnectionProfile} */
|
|
75
794
|
static DBConnectionProfile() {
|
|
76
795
|
return Joi.object({
|
|
77
796
|
inventory: Joi.string().allow(""),
|
|
78
797
|
});
|
|
79
798
|
}
|
|
799
|
+
|
|
800
|
+
/** @returns {DBParamConfig} */
|
|
80
801
|
static DBParamConfig() {
|
|
81
802
|
return Joi.object({
|
|
82
803
|
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
83
804
|
});
|
|
84
805
|
}
|
|
806
|
+
|
|
807
|
+
/** @returns {DefaultHeadersDTO} */
|
|
85
808
|
static DefaultHeadersDTO() {
|
|
86
809
|
return Joi.object({
|
|
87
|
-
intf_article_id:
|
|
88
|
-
price_effective:
|
|
89
|
-
quantity:
|
|
90
|
-
store:
|
|
810
|
+
intf_article_id: InventoryPlatformModel.PropBeanDTO(),
|
|
811
|
+
price_effective: InventoryPlatformModel.PropBeanDTO(),
|
|
812
|
+
quantity: InventoryPlatformModel.PropBeanDTO(),
|
|
813
|
+
store: InventoryPlatformModel.PropBeanDTO(),
|
|
91
814
|
});
|
|
92
815
|
}
|
|
816
|
+
|
|
817
|
+
/** @returns {DocMappingConfig} */
|
|
93
818
|
static DocMappingConfig() {
|
|
94
819
|
return Joi.object({
|
|
95
|
-
default_headers:
|
|
820
|
+
default_headers: InventoryPlatformModel.DefaultHeadersDTO(),
|
|
96
821
|
junk_data_threshold_count: Joi.number(),
|
|
97
|
-
prop_bean_configs: Joi.array().items(
|
|
822
|
+
prop_bean_configs: Joi.array().items(
|
|
823
|
+
InventoryPlatformModel.PropBeanConfig()
|
|
824
|
+
),
|
|
98
825
|
properties: Joi.object().pattern(/\S/, Joi.any()),
|
|
99
826
|
unwind_field: Joi.string().allow(""),
|
|
100
827
|
});
|
|
101
828
|
}
|
|
829
|
+
|
|
830
|
+
/** @returns {EmailConfig} */
|
|
102
831
|
static EmailConfig() {
|
|
103
832
|
return Joi.object({
|
|
104
|
-
archive_config:
|
|
833
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
105
834
|
attachment_mandate: Joi.boolean(),
|
|
106
835
|
attachment_regex: Joi.string().allow(""),
|
|
107
836
|
body_content_regex: Joi.string().allow(""),
|
|
@@ -126,11 +855,13 @@ class InventoryModel {
|
|
|
126
855
|
zip_format: Joi.string().allow(""),
|
|
127
856
|
});
|
|
128
857
|
}
|
|
858
|
+
|
|
859
|
+
/** @returns {FileConfig} */
|
|
129
860
|
static FileConfig() {
|
|
130
861
|
return Joi.object({
|
|
131
862
|
charset: Joi.string().allow(""),
|
|
132
863
|
data_start_index: Joi.number(),
|
|
133
|
-
default_headers:
|
|
864
|
+
default_headers: InventoryPlatformModel.DefaultHeadersDTO(),
|
|
134
865
|
delimiter: Joi.string().allow(""),
|
|
135
866
|
escape_char: Joi.string().allow(""),
|
|
136
867
|
file_has_header: Joi.boolean(),
|
|
@@ -139,16 +870,20 @@ class InventoryModel {
|
|
|
139
870
|
header_index: Joi.number(),
|
|
140
871
|
junk_data_threshold_count: Joi.number(),
|
|
141
872
|
line_validity_check: Joi.boolean(),
|
|
142
|
-
prop_bean_configs: Joi.array().items(
|
|
873
|
+
prop_bean_configs: Joi.array().items(
|
|
874
|
+
InventoryPlatformModel.PropBeanConfig()
|
|
875
|
+
),
|
|
143
876
|
properties: Joi.object().pattern(/\S/, Joi.any()),
|
|
144
877
|
quote_char: Joi.string().allow(""),
|
|
145
878
|
read_all_sheets: Joi.boolean(),
|
|
146
879
|
sheet_names: Joi.array().items(Joi.string().allow("")),
|
|
147
880
|
});
|
|
148
881
|
}
|
|
882
|
+
|
|
883
|
+
/** @returns {FTPConfig} */
|
|
149
884
|
static FTPConfig() {
|
|
150
885
|
return Joi.object({
|
|
151
|
-
archive_config:
|
|
886
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
152
887
|
file_regex: Joi.string().allow(""),
|
|
153
888
|
host: Joi.string().allow(""),
|
|
154
889
|
interval: Joi.number(),
|
|
@@ -164,6 +899,8 @@ class InventoryModel {
|
|
|
164
899
|
zip_format: Joi.string().allow(""),
|
|
165
900
|
});
|
|
166
901
|
}
|
|
902
|
+
|
|
903
|
+
/** @returns {GCompany} */
|
|
167
904
|
static GCompany() {
|
|
168
905
|
return Joi.object({
|
|
169
906
|
_id: Joi.string().allow(""),
|
|
@@ -172,20 +909,24 @@ class InventoryModel {
|
|
|
172
909
|
name: Joi.string().allow(""),
|
|
173
910
|
opted: Joi.boolean(),
|
|
174
911
|
permissions: Joi.array().items(Joi.string().allow("")),
|
|
175
|
-
stores: Joi.array().items(
|
|
912
|
+
stores: Joi.array().items(InventoryPlatformModel.GStore()),
|
|
176
913
|
token: Joi.string().allow(""),
|
|
177
914
|
uid: Joi.number(),
|
|
178
915
|
});
|
|
179
916
|
}
|
|
917
|
+
|
|
918
|
+
/** @returns {GenericDTO} */
|
|
180
919
|
static GenericDTO() {
|
|
181
920
|
return Joi.object({
|
|
182
921
|
text: Joi.string().allow(""),
|
|
183
922
|
value: Joi.any(),
|
|
184
923
|
});
|
|
185
924
|
}
|
|
925
|
+
|
|
926
|
+
/** @returns {GoogleSpreadSheetConfig} */
|
|
186
927
|
static GoogleSpreadSheetConfig() {
|
|
187
928
|
return Joi.object({
|
|
188
|
-
archive_config:
|
|
929
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
189
930
|
client_secret_location: Joi.string().allow(""),
|
|
190
931
|
cred_storage_directory: Joi.string().allow(""),
|
|
191
932
|
local_dir: Joi.string().allow(""),
|
|
@@ -193,11 +934,13 @@ class InventoryModel {
|
|
|
193
934
|
sheet_id: Joi.string().allow(""),
|
|
194
935
|
});
|
|
195
936
|
}
|
|
937
|
+
|
|
938
|
+
/** @returns {GStore} */
|
|
196
939
|
static GStore() {
|
|
197
940
|
return Joi.object({
|
|
198
941
|
_id: Joi.string().allow(""),
|
|
199
942
|
code: Joi.string().allow(""),
|
|
200
|
-
data:
|
|
943
|
+
data: InventoryPlatformModel.StoreData(),
|
|
201
944
|
integration: Joi.string().allow(""),
|
|
202
945
|
level: Joi.string().allow(""),
|
|
203
946
|
name: Joi.string().allow(""),
|
|
@@ -207,9 +950,11 @@ class InventoryModel {
|
|
|
207
950
|
uid: Joi.number(),
|
|
208
951
|
});
|
|
209
952
|
}
|
|
953
|
+
|
|
954
|
+
/** @returns {HttpConfig} */
|
|
210
955
|
static HttpConfig() {
|
|
211
956
|
return Joi.object({
|
|
212
|
-
archive_config:
|
|
957
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
213
958
|
hosturl: Joi.string().allow(""),
|
|
214
959
|
http_method: Joi.string().allow(""),
|
|
215
960
|
local_path: Joi.string().allow(""),
|
|
@@ -219,17 +964,19 @@ class InventoryModel {
|
|
|
219
964
|
username: Joi.string().allow(""),
|
|
220
965
|
});
|
|
221
966
|
}
|
|
967
|
+
|
|
968
|
+
/** @returns {JobConfig} */
|
|
222
969
|
static JobConfig() {
|
|
223
970
|
return Joi.object({
|
|
224
971
|
_id: Joi.number(),
|
|
225
972
|
aggregator_types: Joi.array().items(Joi.string().allow("")),
|
|
226
973
|
alias: Joi.string().allow(""),
|
|
227
|
-
audit:
|
|
228
|
-
catalog_master_config:
|
|
229
|
-
company_config: Joi.array().items(
|
|
974
|
+
audit: InventoryPlatformModel.Audit(),
|
|
975
|
+
catalog_master_config: InventoryPlatformModel.CatalogMasterConfig(),
|
|
976
|
+
company_config: Joi.array().items(InventoryPlatformModel.CompanyConfig()),
|
|
230
977
|
company_ids: Joi.array().items(Joi.number()),
|
|
231
978
|
cron_expression: Joi.string().allow(""),
|
|
232
|
-
db_connection_profile:
|
|
979
|
+
db_connection_profile: InventoryPlatformModel.DBConnectionProfile(),
|
|
233
980
|
delete_quantity_threshold: Joi.number(),
|
|
234
981
|
dependent_job_codes: Joi.array().items(Joi.string().allow("")),
|
|
235
982
|
disable: Joi.boolean(),
|
|
@@ -242,16 +989,18 @@ class InventoryModel {
|
|
|
242
989
|
period_threshold: Joi.number(),
|
|
243
990
|
period_threshold_type: Joi.string().allow(""),
|
|
244
991
|
priority: Joi.string().allow(""),
|
|
245
|
-
process_config:
|
|
992
|
+
process_config: InventoryPlatformModel.ProcessConfig(),
|
|
246
993
|
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
247
|
-
store_config: Joi.array().items(
|
|
248
|
-
store_filter:
|
|
994
|
+
store_config: Joi.array().items(InventoryPlatformModel.StoreConfig()),
|
|
995
|
+
store_filter: InventoryPlatformModel.StoreFilter(),
|
|
249
996
|
sync_delay: Joi.number(),
|
|
250
997
|
task_type: Joi.string().allow(""),
|
|
251
998
|
tax_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
252
999
|
version: Joi.number(),
|
|
253
1000
|
});
|
|
254
1001
|
}
|
|
1002
|
+
|
|
1003
|
+
/** @returns {JobConfigDTO} */
|
|
255
1004
|
static JobConfigDTO() {
|
|
256
1005
|
return Joi.object({
|
|
257
1006
|
alias: Joi.string().allow(""),
|
|
@@ -260,10 +1009,12 @@ class InventoryModel {
|
|
|
260
1009
|
integration: Joi.string().allow("").required(),
|
|
261
1010
|
integration_data: Joi.object().pattern(/\S/, Joi.any()),
|
|
262
1011
|
job_code: Joi.string().allow(""),
|
|
263
|
-
task_details:
|
|
264
|
-
threshold_details:
|
|
1012
|
+
task_details: InventoryPlatformModel.TaskDTO(),
|
|
1013
|
+
threshold_details: InventoryPlatformModel.DataTresholdDTO(),
|
|
265
1014
|
});
|
|
266
1015
|
}
|
|
1016
|
+
|
|
1017
|
+
/** @returns {JobConfigListDTO} */
|
|
267
1018
|
static JobConfigListDTO() {
|
|
268
1019
|
return Joi.object({
|
|
269
1020
|
active: Joi.boolean(),
|
|
@@ -276,14 +1027,18 @@ class InventoryModel {
|
|
|
276
1027
|
type: Joi.string().allow(""),
|
|
277
1028
|
});
|
|
278
1029
|
}
|
|
1030
|
+
|
|
1031
|
+
/** @returns {JobConfigRawDTO} */
|
|
279
1032
|
static JobConfigRawDTO() {
|
|
280
1033
|
return Joi.object({
|
|
281
1034
|
company_id: Joi.number().required(),
|
|
282
1035
|
company_name: Joi.string().allow("").required(),
|
|
283
|
-
data:
|
|
1036
|
+
data: InventoryPlatformModel.JobConfig(),
|
|
284
1037
|
integration: Joi.string().allow("").required(),
|
|
285
1038
|
});
|
|
286
1039
|
}
|
|
1040
|
+
|
|
1041
|
+
/** @returns {JobHistoryDto} */
|
|
287
1042
|
static JobHistoryDto() {
|
|
288
1043
|
return Joi.object({
|
|
289
1044
|
error_type: Joi.string().allow(""),
|
|
@@ -299,11 +1054,13 @@ class InventoryModel {
|
|
|
299
1054
|
total_updated_count: Joi.number(),
|
|
300
1055
|
});
|
|
301
1056
|
}
|
|
1057
|
+
|
|
1058
|
+
/** @returns {JobMetricsDto} */
|
|
302
1059
|
static JobMetricsDto() {
|
|
303
1060
|
return Joi.object({
|
|
304
1061
|
is_run_more_than_usual: Joi.string().allow(""),
|
|
305
1062
|
job_code: Joi.string().allow(""),
|
|
306
|
-
job_history: Joi.array().items(
|
|
1063
|
+
job_history: Joi.array().items(InventoryPlatformModel.JobHistoryDto()),
|
|
307
1064
|
total_failure_count: Joi.number(),
|
|
308
1065
|
total_job_runs: Joi.number(),
|
|
309
1066
|
total_success_count: Joi.number(),
|
|
@@ -311,6 +1068,8 @@ class InventoryModel {
|
|
|
311
1068
|
total_warning_count: Joi.number(),
|
|
312
1069
|
});
|
|
313
1070
|
}
|
|
1071
|
+
|
|
1072
|
+
/** @returns {JobStepsDTO} */
|
|
314
1073
|
static JobStepsDTO() {
|
|
315
1074
|
return Joi.object({
|
|
316
1075
|
deleted_count: Joi.number(),
|
|
@@ -323,11 +1082,17 @@ class InventoryModel {
|
|
|
323
1082
|
type: Joi.string().allow(""),
|
|
324
1083
|
});
|
|
325
1084
|
}
|
|
1085
|
+
|
|
1086
|
+
/** @returns {JsonDocConfig} */
|
|
326
1087
|
static JsonDocConfig() {
|
|
327
1088
|
return Joi.object({
|
|
328
|
-
prop_bean_configs: Joi.array().items(
|
|
1089
|
+
prop_bean_configs: Joi.array().items(
|
|
1090
|
+
InventoryPlatformModel.PropBeanConfig()
|
|
1091
|
+
),
|
|
329
1092
|
});
|
|
330
1093
|
}
|
|
1094
|
+
|
|
1095
|
+
/** @returns {KafkaMetaModel} */
|
|
331
1096
|
static KafkaMetaModel() {
|
|
332
1097
|
return Joi.object({
|
|
333
1098
|
action: Joi.string().allow(""),
|
|
@@ -338,15 +1103,19 @@ class InventoryModel {
|
|
|
338
1103
|
trace: Joi.array().items(Joi.string().allow("")),
|
|
339
1104
|
});
|
|
340
1105
|
}
|
|
1106
|
+
|
|
1107
|
+
/** @returns {KafkaResponse} */
|
|
341
1108
|
static KafkaResponse() {
|
|
342
1109
|
return Joi.object({
|
|
343
1110
|
offset: Joi.number(),
|
|
344
1111
|
partition: Joi.number(),
|
|
345
1112
|
});
|
|
346
1113
|
}
|
|
1114
|
+
|
|
1115
|
+
/** @returns {LocalFileConfig} */
|
|
347
1116
|
static LocalFileConfig() {
|
|
348
1117
|
return Joi.object({
|
|
349
|
-
archive_config:
|
|
1118
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
350
1119
|
file_regex: Joi.string().allow(""),
|
|
351
1120
|
interval: Joi.number(),
|
|
352
1121
|
local_dir: Joi.string().allow(""),
|
|
@@ -358,6 +1127,8 @@ class InventoryModel {
|
|
|
358
1127
|
zip_format: Joi.string().allow(""),
|
|
359
1128
|
});
|
|
360
1129
|
}
|
|
1130
|
+
|
|
1131
|
+
/** @returns {Metum} */
|
|
361
1132
|
static Metum() {
|
|
362
1133
|
return Joi.object({
|
|
363
1134
|
_id: Joi.string().allow(""),
|
|
@@ -365,6 +1136,8 @@ class InventoryModel {
|
|
|
365
1136
|
value: Joi.string().allow(""),
|
|
366
1137
|
});
|
|
367
1138
|
}
|
|
1139
|
+
|
|
1140
|
+
/** @returns {MongoDocConfig} */
|
|
368
1141
|
static MongoDocConfig() {
|
|
369
1142
|
return Joi.object({
|
|
370
1143
|
aggregate_pipeline: Joi.array().items(
|
|
@@ -373,10 +1146,14 @@ class InventoryModel {
|
|
|
373
1146
|
collection_name: Joi.string().allow(""),
|
|
374
1147
|
find_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
375
1148
|
projection_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
376
|
-
prop_bean_configs: Joi.array().items(
|
|
1149
|
+
prop_bean_configs: Joi.array().items(
|
|
1150
|
+
InventoryPlatformModel.PropBeanConfig()
|
|
1151
|
+
),
|
|
377
1152
|
skip_save: Joi.boolean(),
|
|
378
1153
|
});
|
|
379
1154
|
}
|
|
1155
|
+
|
|
1156
|
+
/** @returns {OAuthConfig} */
|
|
380
1157
|
static OAuthConfig() {
|
|
381
1158
|
return Joi.object({
|
|
382
1159
|
consumer_key: Joi.string().allow(""),
|
|
@@ -391,6 +1168,8 @@ class InventoryModel {
|
|
|
391
1168
|
token_secret: Joi.string().allow(""),
|
|
392
1169
|
});
|
|
393
1170
|
}
|
|
1171
|
+
|
|
1172
|
+
/** @returns {Page} */
|
|
394
1173
|
static Page() {
|
|
395
1174
|
return Joi.object({
|
|
396
1175
|
current: Joi.number(),
|
|
@@ -402,25 +1181,29 @@ class InventoryModel {
|
|
|
402
1181
|
type: Joi.string().allow("").required(),
|
|
403
1182
|
});
|
|
404
1183
|
}
|
|
1184
|
+
|
|
1185
|
+
/** @returns {ProcessConfig} */
|
|
405
1186
|
static ProcessConfig() {
|
|
406
1187
|
return Joi.object({
|
|
407
|
-
aws_s3_config:
|
|
408
|
-
db_config:
|
|
409
|
-
db_param_config:
|
|
410
|
-
doc_mapping_config:
|
|
411
|
-
email_config:
|
|
412
|
-
file_config:
|
|
413
|
-
ftp_config:
|
|
414
|
-
google_spreadsheet_config:
|
|
415
|
-
http_config:
|
|
416
|
-
json_doc_config:
|
|
417
|
-
local_file_config:
|
|
418
|
-
mongo_doc_config:
|
|
419
|
-
oauth_config:
|
|
420
|
-
sftp_config:
|
|
421
|
-
task_step_config:
|
|
1188
|
+
aws_s3_config: InventoryPlatformModel.AWSS3config(),
|
|
1189
|
+
db_config: InventoryPlatformModel.DBConfig(),
|
|
1190
|
+
db_param_config: InventoryPlatformModel.DBParamConfig(),
|
|
1191
|
+
doc_mapping_config: InventoryPlatformModel.DocMappingConfig(),
|
|
1192
|
+
email_config: InventoryPlatformModel.EmailConfig(),
|
|
1193
|
+
file_config: InventoryPlatformModel.FileConfig(),
|
|
1194
|
+
ftp_config: InventoryPlatformModel.FTPConfig(),
|
|
1195
|
+
google_spreadsheet_config: InventoryPlatformModel.GoogleSpreadSheetConfig(),
|
|
1196
|
+
http_config: InventoryPlatformModel.HttpConfig(),
|
|
1197
|
+
json_doc_config: InventoryPlatformModel.JsonDocConfig(),
|
|
1198
|
+
local_file_config: InventoryPlatformModel.LocalFileConfig(),
|
|
1199
|
+
mongo_doc_config: InventoryPlatformModel.MongoDocConfig(),
|
|
1200
|
+
oauth_config: InventoryPlatformModel.OAuthConfig(),
|
|
1201
|
+
sftp_config: InventoryPlatformModel.SFTPConfig(),
|
|
1202
|
+
task_step_config: InventoryPlatformModel.TaskStepConfig(),
|
|
422
1203
|
});
|
|
423
1204
|
}
|
|
1205
|
+
|
|
1206
|
+
/** @returns {PropBeanConfig} */
|
|
424
1207
|
static PropBeanConfig() {
|
|
425
1208
|
return Joi.object({
|
|
426
1209
|
all_param_function_name: Joi.string().allow(""),
|
|
@@ -438,7 +1221,7 @@ class InventoryModel {
|
|
|
438
1221
|
optional: Joi.boolean(),
|
|
439
1222
|
projection_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
440
1223
|
required: Joi.boolean(),
|
|
441
|
-
send:
|
|
1224
|
+
send: InventoryPlatformModel.Send(),
|
|
442
1225
|
source_field: Joi.string().allow(""),
|
|
443
1226
|
source_fields: Joi.array().items(Joi.string().allow("")),
|
|
444
1227
|
sub_separator: Joi.string().allow(""),
|
|
@@ -447,6 +1230,8 @@ class InventoryModel {
|
|
|
447
1230
|
values: Joi.array().items(Joi.string().allow("")),
|
|
448
1231
|
});
|
|
449
1232
|
}
|
|
1233
|
+
|
|
1234
|
+
/** @returns {PropBeanDTO} */
|
|
450
1235
|
static PropBeanDTO() {
|
|
451
1236
|
return Joi.object({
|
|
452
1237
|
all_param_function_name: Joi.string().allow(""),
|
|
@@ -470,126 +1255,148 @@ class InventoryModel {
|
|
|
470
1255
|
transformer_name: Joi.string().allow(""),
|
|
471
1256
|
});
|
|
472
1257
|
}
|
|
1258
|
+
|
|
1259
|
+
/** @returns {ResponseEnvelopeJobConfigDTO} */
|
|
473
1260
|
static ResponseEnvelopeJobConfigDTO() {
|
|
474
1261
|
return Joi.object({
|
|
475
1262
|
error: Joi.string().allow(""),
|
|
476
1263
|
exception: Joi.string().allow(""),
|
|
477
1264
|
http_status: Joi.string().allow(""),
|
|
478
|
-
items:
|
|
1265
|
+
items: InventoryPlatformModel.JobConfigDTO(),
|
|
479
1266
|
message: Joi.string().allow(""),
|
|
480
|
-
page:
|
|
481
|
-
payload:
|
|
1267
|
+
page: InventoryPlatformModel.Page(),
|
|
1268
|
+
payload: InventoryPlatformModel.JobConfigDTO(),
|
|
482
1269
|
status: Joi.number(),
|
|
483
1270
|
timestamp: Joi.string().allow(""),
|
|
484
1271
|
total_time_taken_in_millis: Joi.number(),
|
|
485
1272
|
trace_id: Joi.string().allow(""),
|
|
486
1273
|
});
|
|
487
1274
|
}
|
|
1275
|
+
|
|
1276
|
+
/** @returns {ResponseEnvelopeJobMetricsDto} */
|
|
488
1277
|
static ResponseEnvelopeJobMetricsDto() {
|
|
489
1278
|
return Joi.object({
|
|
490
1279
|
error: Joi.string().allow(""),
|
|
491
1280
|
exception: Joi.string().allow(""),
|
|
492
1281
|
http_status: Joi.string().allow(""),
|
|
493
|
-
items:
|
|
1282
|
+
items: InventoryPlatformModel.JobMetricsDto(),
|
|
494
1283
|
message: Joi.string().allow(""),
|
|
495
|
-
page:
|
|
496
|
-
payload:
|
|
1284
|
+
page: InventoryPlatformModel.Page(),
|
|
1285
|
+
payload: InventoryPlatformModel.JobMetricsDto(),
|
|
497
1286
|
status: Joi.number(),
|
|
498
1287
|
timestamp: Joi.string().allow(""),
|
|
499
1288
|
total_time_taken_in_millis: Joi.number(),
|
|
500
1289
|
trace_id: Joi.string().allow(""),
|
|
501
1290
|
});
|
|
502
1291
|
}
|
|
1292
|
+
|
|
1293
|
+
/** @returns {ResponseEnvelopeKafkaResponse} */
|
|
503
1294
|
static ResponseEnvelopeKafkaResponse() {
|
|
504
1295
|
return Joi.object({
|
|
505
1296
|
error: Joi.string().allow(""),
|
|
506
1297
|
exception: Joi.string().allow(""),
|
|
507
1298
|
http_status: Joi.string().allow(""),
|
|
508
|
-
items:
|
|
1299
|
+
items: InventoryPlatformModel.KafkaResponse(),
|
|
509
1300
|
message: Joi.string().allow(""),
|
|
510
|
-
page:
|
|
511
|
-
payload:
|
|
1301
|
+
page: InventoryPlatformModel.Page(),
|
|
1302
|
+
payload: InventoryPlatformModel.KafkaResponse(),
|
|
512
1303
|
status: Joi.number(),
|
|
513
1304
|
timestamp: Joi.string().allow(""),
|
|
514
1305
|
total_time_taken_in_millis: Joi.number(),
|
|
515
1306
|
trace_id: Joi.string().allow(""),
|
|
516
1307
|
});
|
|
517
1308
|
}
|
|
1309
|
+
|
|
1310
|
+
/** @returns {ResponseEnvelopeListJobConfigDTO} */
|
|
518
1311
|
static ResponseEnvelopeListJobConfigDTO() {
|
|
519
1312
|
return Joi.object({
|
|
520
1313
|
error: Joi.string().allow(""),
|
|
521
1314
|
exception: Joi.string().allow(""),
|
|
522
1315
|
http_status: Joi.string().allow(""),
|
|
523
|
-
items: Joi.array().items(
|
|
1316
|
+
items: Joi.array().items(InventoryPlatformModel.JobConfigDTO()),
|
|
524
1317
|
message: Joi.string().allow(""),
|
|
525
|
-
page:
|
|
526
|
-
payload: Joi.array().items(
|
|
1318
|
+
page: InventoryPlatformModel.Page(),
|
|
1319
|
+
payload: Joi.array().items(InventoryPlatformModel.JobConfigDTO()),
|
|
527
1320
|
status: Joi.number(),
|
|
528
1321
|
timestamp: Joi.string().allow(""),
|
|
529
1322
|
total_time_taken_in_millis: Joi.number(),
|
|
530
1323
|
trace_id: Joi.string().allow(""),
|
|
531
1324
|
});
|
|
532
1325
|
}
|
|
1326
|
+
|
|
1327
|
+
/** @returns {ResponseEnvelopeListJobConfigListDTO} */
|
|
533
1328
|
static ResponseEnvelopeListJobConfigListDTO() {
|
|
534
1329
|
return Joi.object({
|
|
535
1330
|
error: Joi.string().allow(""),
|
|
536
1331
|
exception: Joi.string().allow(""),
|
|
537
1332
|
http_status: Joi.string().allow(""),
|
|
538
|
-
items: Joi.array().items(
|
|
1333
|
+
items: Joi.array().items(InventoryPlatformModel.JobConfigListDTO()),
|
|
539
1334
|
message: Joi.string().allow(""),
|
|
540
|
-
page:
|
|
541
|
-
payload: Joi.array().items(
|
|
1335
|
+
page: InventoryPlatformModel.Page(),
|
|
1336
|
+
payload: Joi.array().items(InventoryPlatformModel.JobConfigListDTO()),
|
|
542
1337
|
status: Joi.number(),
|
|
543
1338
|
timestamp: Joi.string().allow(""),
|
|
544
1339
|
total_time_taken_in_millis: Joi.number(),
|
|
545
1340
|
trace_id: Joi.string().allow(""),
|
|
546
1341
|
});
|
|
547
1342
|
}
|
|
1343
|
+
|
|
1344
|
+
/** @returns {ResponseEnvelopeListJobConfigRawDTO} */
|
|
548
1345
|
static ResponseEnvelopeListJobConfigRawDTO() {
|
|
549
1346
|
return Joi.object({
|
|
550
1347
|
error: Joi.string().allow(""),
|
|
551
1348
|
exception: Joi.string().allow(""),
|
|
552
1349
|
http_status: Joi.string().allow(""),
|
|
553
|
-
items: Joi.array().items(
|
|
1350
|
+
items: Joi.array().items(InventoryPlatformModel.JobConfigRawDTO()),
|
|
554
1351
|
message: Joi.string().allow(""),
|
|
555
|
-
page:
|
|
556
|
-
payload: Joi.array().items(
|
|
1352
|
+
page: InventoryPlatformModel.Page(),
|
|
1353
|
+
payload: Joi.array().items(InventoryPlatformModel.JobConfigRawDTO()),
|
|
557
1354
|
status: Joi.number(),
|
|
558
1355
|
timestamp: Joi.string().allow(""),
|
|
559
1356
|
total_time_taken_in_millis: Joi.number(),
|
|
560
1357
|
trace_id: Joi.string().allow(""),
|
|
561
1358
|
});
|
|
562
1359
|
}
|
|
1360
|
+
|
|
1361
|
+
/** @returns {ResponseEnvelopeListJobStepsDTO} */
|
|
563
1362
|
static ResponseEnvelopeListJobStepsDTO() {
|
|
564
1363
|
return Joi.object({
|
|
565
1364
|
error: Joi.string().allow(""),
|
|
566
1365
|
exception: Joi.string().allow(""),
|
|
567
1366
|
http_status: Joi.string().allow(""),
|
|
568
|
-
items: Joi.array().items(
|
|
1367
|
+
items: Joi.array().items(InventoryPlatformModel.JobStepsDTO()),
|
|
569
1368
|
message: Joi.string().allow(""),
|
|
570
|
-
page:
|
|
571
|
-
payload: Joi.array().items(
|
|
1369
|
+
page: InventoryPlatformModel.Page(),
|
|
1370
|
+
payload: Joi.array().items(InventoryPlatformModel.JobStepsDTO()),
|
|
572
1371
|
status: Joi.number(),
|
|
573
1372
|
timestamp: Joi.string().allow(""),
|
|
574
1373
|
total_time_taken_in_millis: Joi.number(),
|
|
575
1374
|
trace_id: Joi.string().allow(""),
|
|
576
1375
|
});
|
|
577
1376
|
}
|
|
1377
|
+
|
|
1378
|
+
/** @returns {ResponseEnvelopeListSlingshotConfigurationDetail} */
|
|
578
1379
|
static ResponseEnvelopeListSlingshotConfigurationDetail() {
|
|
579
1380
|
return Joi.object({
|
|
580
1381
|
error: Joi.string().allow(""),
|
|
581
1382
|
exception: Joi.string().allow(""),
|
|
582
1383
|
http_status: Joi.string().allow(""),
|
|
583
|
-
items: Joi.array().items(
|
|
1384
|
+
items: Joi.array().items(
|
|
1385
|
+
InventoryPlatformModel.SlingshotConfigurationDetail()
|
|
1386
|
+
),
|
|
584
1387
|
message: Joi.string().allow(""),
|
|
585
|
-
page:
|
|
586
|
-
payload: Joi.array().items(
|
|
1388
|
+
page: InventoryPlatformModel.Page(),
|
|
1389
|
+
payload: Joi.array().items(
|
|
1390
|
+
InventoryPlatformModel.SlingshotConfigurationDetail()
|
|
1391
|
+
),
|
|
587
1392
|
status: Joi.number(),
|
|
588
1393
|
timestamp: Joi.string().allow(""),
|
|
589
1394
|
total_time_taken_in_millis: Joi.number(),
|
|
590
1395
|
trace_id: Joi.string().allow(""),
|
|
591
1396
|
});
|
|
592
1397
|
}
|
|
1398
|
+
|
|
1399
|
+
/** @returns {ResponseEnvelopeString} */
|
|
593
1400
|
static ResponseEnvelopeString() {
|
|
594
1401
|
return Joi.object({
|
|
595
1402
|
error: Joi.string().allow(""),
|
|
@@ -597,7 +1404,7 @@ class InventoryModel {
|
|
|
597
1404
|
http_status: Joi.string().allow(""),
|
|
598
1405
|
items: Joi.string().allow(""),
|
|
599
1406
|
message: Joi.string().allow(""),
|
|
600
|
-
page:
|
|
1407
|
+
page: InventoryPlatformModel.Page(),
|
|
601
1408
|
payload: Joi.string().allow(""),
|
|
602
1409
|
status: Joi.number(),
|
|
603
1410
|
timestamp: Joi.string().allow(""),
|
|
@@ -605,15 +1412,19 @@ class InventoryModel {
|
|
|
605
1412
|
trace_id: Joi.string().allow(""),
|
|
606
1413
|
});
|
|
607
1414
|
}
|
|
1415
|
+
|
|
1416
|
+
/** @returns {Send} */
|
|
608
1417
|
static Send() {
|
|
609
1418
|
return Joi.object({
|
|
610
1419
|
processed: Joi.boolean(),
|
|
611
1420
|
raw: Joi.boolean(),
|
|
612
1421
|
});
|
|
613
1422
|
}
|
|
1423
|
+
|
|
1424
|
+
/** @returns {SFTPConfig} */
|
|
614
1425
|
static SFTPConfig() {
|
|
615
1426
|
return Joi.object({
|
|
616
|
-
archive_config:
|
|
1427
|
+
archive_config: InventoryPlatformModel.ArchiveConfig(),
|
|
617
1428
|
file_regex: Joi.string().allow(""),
|
|
618
1429
|
host: Joi.string().allow(""),
|
|
619
1430
|
interval: Joi.number(),
|
|
@@ -632,25 +1443,31 @@ class InventoryModel {
|
|
|
632
1443
|
zip_format: Joi.string().allow(""),
|
|
633
1444
|
});
|
|
634
1445
|
}
|
|
1446
|
+
|
|
1447
|
+
/** @returns {SlingshotConfigurationDetail} */
|
|
635
1448
|
static SlingshotConfigurationDetail() {
|
|
636
1449
|
return Joi.object({
|
|
637
|
-
companies: Joi.array().items(
|
|
638
|
-
integration:
|
|
1450
|
+
companies: Joi.array().items(InventoryPlatformModel.GCompany()),
|
|
1451
|
+
integration: InventoryPlatformModel.SlingshotIntegration(),
|
|
639
1452
|
});
|
|
640
1453
|
}
|
|
1454
|
+
|
|
1455
|
+
/** @returns {SlingshotIntegration} */
|
|
641
1456
|
static SlingshotIntegration() {
|
|
642
1457
|
return Joi.object({
|
|
643
1458
|
_id: Joi.string().allow(""),
|
|
644
1459
|
description: Joi.string().allow(""),
|
|
645
|
-
meta: Joi.array().items(
|
|
1460
|
+
meta: Joi.array().items(InventoryPlatformModel.Metum()),
|
|
646
1461
|
name: Joi.string().allow(""),
|
|
647
1462
|
slug: Joi.string().allow(""),
|
|
648
1463
|
});
|
|
649
1464
|
}
|
|
1465
|
+
|
|
1466
|
+
/** @returns {StoreConfig} */
|
|
650
1467
|
static StoreConfig() {
|
|
651
1468
|
return Joi.object({
|
|
652
1469
|
job_code: Joi.string().allow(""),
|
|
653
|
-
process_config:
|
|
1470
|
+
process_config: InventoryPlatformModel.ProcessConfig(),
|
|
654
1471
|
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
655
1472
|
store_alias: Joi.string().allow(""),
|
|
656
1473
|
store_file_name: Joi.string().allow(""),
|
|
@@ -658,11 +1475,15 @@ class InventoryModel {
|
|
|
658
1475
|
storeid: Joi.string().allow(""),
|
|
659
1476
|
});
|
|
660
1477
|
}
|
|
1478
|
+
|
|
1479
|
+
/** @returns {StoreData} */
|
|
661
1480
|
static StoreData() {
|
|
662
1481
|
return Joi.object({
|
|
663
1482
|
location_id: Joi.string().allow(""),
|
|
664
1483
|
});
|
|
665
1484
|
}
|
|
1485
|
+
|
|
1486
|
+
/** @returns {StoreFilter} */
|
|
666
1487
|
static StoreFilter() {
|
|
667
1488
|
return Joi.object({
|
|
668
1489
|
exclude_tags: Joi.array().items(Joi.string().allow("")),
|
|
@@ -670,42 +1491,54 @@ class InventoryModel {
|
|
|
670
1491
|
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
671
1492
|
});
|
|
672
1493
|
}
|
|
1494
|
+
|
|
1495
|
+
/** @returns {SuppressStoreModel} */
|
|
673
1496
|
static SuppressStoreModel() {
|
|
674
1497
|
return Joi.object({
|
|
675
1498
|
stores: Joi.array().items(Joi.number()),
|
|
676
1499
|
});
|
|
677
1500
|
}
|
|
1501
|
+
|
|
1502
|
+
/** @returns {SuppressStorePayload} */
|
|
678
1503
|
static SuppressStorePayload() {
|
|
679
1504
|
return Joi.object({
|
|
680
|
-
meta:
|
|
681
|
-
payload: Joi.array().items(
|
|
1505
|
+
meta: InventoryPlatformModel.KafkaMetaModel(),
|
|
1506
|
+
payload: Joi.array().items(InventoryPlatformModel.SuppressStoreModel()),
|
|
682
1507
|
});
|
|
683
1508
|
}
|
|
1509
|
+
|
|
1510
|
+
/** @returns {TaskConfig} */
|
|
684
1511
|
static TaskConfig() {
|
|
685
1512
|
return Joi.object({
|
|
686
1513
|
name: Joi.string().allow(""),
|
|
687
1514
|
task_config_id: Joi.number(),
|
|
688
|
-
task_params: Joi.array().items(
|
|
1515
|
+
task_params: Joi.array().items(InventoryPlatformModel.TaskParam()),
|
|
689
1516
|
});
|
|
690
1517
|
}
|
|
1518
|
+
|
|
1519
|
+
/** @returns {TaskDTO} */
|
|
691
1520
|
static TaskDTO() {
|
|
692
1521
|
return Joi.object({
|
|
693
|
-
group_list: Joi.array().items(
|
|
1522
|
+
group_list: Joi.array().items(InventoryPlatformModel.GenericDTO()),
|
|
694
1523
|
type: Joi.number(),
|
|
695
1524
|
});
|
|
696
1525
|
}
|
|
1526
|
+
|
|
1527
|
+
/** @returns {TaskParam} */
|
|
697
1528
|
static TaskParam() {
|
|
698
1529
|
return Joi.object({
|
|
699
1530
|
name: Joi.string().allow(""),
|
|
700
1531
|
value: Joi.any(),
|
|
701
1532
|
});
|
|
702
1533
|
}
|
|
1534
|
+
|
|
1535
|
+
/** @returns {TaskStepConfig} */
|
|
703
1536
|
static TaskStepConfig() {
|
|
704
1537
|
return Joi.object({
|
|
705
1538
|
task_config_group_ids: Joi.array().items(Joi.number()),
|
|
706
1539
|
task_config_ids: Joi.array().items(Joi.number()),
|
|
707
|
-
task_configs: Joi.array().items(
|
|
1540
|
+
task_configs: Joi.array().items(InventoryPlatformModel.TaskConfig()),
|
|
708
1541
|
});
|
|
709
1542
|
}
|
|
710
1543
|
}
|
|
711
|
-
module.exports =
|
|
1544
|
+
module.exports = InventoryPlatformModel;
|