@gofynd/fdk-client-javascript 1.0.2 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +557 -1279
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +14453 -17192
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3438 -4172
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3400 -5361
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +38 -38
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +100 -100
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +84 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +581 -581
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,1177 +1,710 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class InventoryModel {
|
|
4
|
-
static
|
|
4
|
+
static ArchiveConfig() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
period_threshold: Joi.number(),
|
|
11
|
-
|
|
12
|
-
period_threshold_type: Joi.string().allow(""),
|
|
13
|
-
|
|
14
|
-
period_type_list: Joi.array().items(InventoryModel.GenericDTO()),
|
|
6
|
+
archive: Joi.boolean(),
|
|
7
|
+
archive_dir: Joi.string().allow(""),
|
|
8
|
+
delete: Joi.boolean(),
|
|
15
9
|
});
|
|
16
10
|
}
|
|
17
|
-
|
|
18
|
-
static GenericDTO() {
|
|
11
|
+
static Audit() {
|
|
19
12
|
return Joi.object({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
created_by: Joi.string().allow(""),
|
|
14
|
+
created_on: Joi.string().allow(""),
|
|
15
|
+
modified_by: Joi.string().allow(""),
|
|
16
|
+
modified_on: Joi.string().allow(""),
|
|
23
17
|
});
|
|
24
18
|
}
|
|
25
|
-
|
|
26
|
-
static JobConfigDTO() {
|
|
19
|
+
static AWSS3config() {
|
|
27
20
|
return Joi.object({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
alias: Joi.string().allow(""),
|
|
21
|
+
access_key: Joi.string().allow(""),
|
|
22
|
+
archive: Joi.boolean(),
|
|
23
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
24
|
+
archive_path: Joi.string().allow(""),
|
|
25
|
+
bucket: Joi.string().allow(""),
|
|
26
|
+
delete: Joi.boolean(),
|
|
27
|
+
dir: Joi.string().allow(""),
|
|
28
|
+
file_regex: Joi.string().allow(""),
|
|
29
|
+
local_file_path: Joi.string().allow(""),
|
|
30
|
+
region: Joi.string().allow(""),
|
|
31
|
+
secret_key: Joi.string().allow(""),
|
|
32
|
+
unzip: Joi.boolean(),
|
|
33
|
+
zip_format: Joi.string().allow(""),
|
|
43
34
|
});
|
|
44
35
|
}
|
|
45
|
-
|
|
46
|
-
static TaskDTO() {
|
|
36
|
+
static CatalogMasterConfig() {
|
|
47
37
|
return Joi.object({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
group_list: Joi.array().items(InventoryModel.GenericDTO()),
|
|
38
|
+
source_slug: Joi.string().allow(""),
|
|
51
39
|
});
|
|
52
40
|
}
|
|
53
|
-
|
|
54
|
-
static Page() {
|
|
41
|
+
static CompanyConfig() {
|
|
55
42
|
return Joi.object({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
has_next: Joi.boolean(),
|
|
63
|
-
|
|
64
|
-
current: Joi.number(),
|
|
65
|
-
|
|
66
|
-
type: Joi.string().allow("").required(),
|
|
67
|
-
|
|
68
|
-
size: Joi.number(),
|
|
43
|
+
company_id: Joi.number(),
|
|
44
|
+
delete_quantity_threshold: Joi.number(),
|
|
45
|
+
exclude_steps: Joi.array().items(Joi.number()),
|
|
46
|
+
hidden_closet_keys: Joi.array().items(Joi.string().allow("")),
|
|
47
|
+
open_tags: Joi.object().pattern(/\S/, Joi.any()),
|
|
48
|
+
tax_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
69
49
|
});
|
|
70
50
|
}
|
|
71
|
-
|
|
72
|
-
static ResponseEnvelopeString() {
|
|
51
|
+
static DataTresholdDTO() {
|
|
73
52
|
return Joi.object({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
exception: Joi.string().allow(""),
|
|
81
|
-
|
|
82
|
-
message: Joi.string().allow(""),
|
|
83
|
-
|
|
84
|
-
total_time_taken_in_millis: Joi.number(),
|
|
85
|
-
|
|
86
|
-
http_status: Joi.string().allow(""),
|
|
87
|
-
|
|
88
|
-
items: Joi.string().allow(""),
|
|
89
|
-
|
|
90
|
-
payload: Joi.string().allow(""),
|
|
91
|
-
|
|
92
|
-
trace_id: Joi.string().allow(""),
|
|
93
|
-
|
|
94
|
-
page: InventoryModel.Page(),
|
|
53
|
+
min_price: Joi.number(),
|
|
54
|
+
period_threshold: Joi.number(),
|
|
55
|
+
period_threshold_type: Joi.string().allow(""),
|
|
56
|
+
period_type_list: Joi.array().items(InventoryModel.GenericDTO()),
|
|
57
|
+
safe_stock: Joi.number(),
|
|
95
58
|
});
|
|
96
59
|
}
|
|
97
|
-
|
|
98
|
-
static KafkaMetaModel() {
|
|
60
|
+
static DBConfig() {
|
|
99
61
|
return Joi.object({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
62
|
+
dbname: Joi.string().allow(""),
|
|
63
|
+
driver_class: Joi.string().allow(""),
|
|
64
|
+
host: Joi.string().allow(""),
|
|
65
|
+
jdbc_url: Joi.string().allow(""),
|
|
66
|
+
optional_properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
67
|
+
password: Joi.string().allow(""),
|
|
68
|
+
port: Joi.number(),
|
|
69
|
+
procedure: Joi.boolean(),
|
|
70
|
+
query: Joi.string().allow(""),
|
|
71
|
+
username: Joi.string().allow(""),
|
|
72
|
+
vendor: Joi.string().allow(""),
|
|
111
73
|
});
|
|
112
74
|
}
|
|
113
|
-
|
|
114
|
-
static SuppressStoreModel() {
|
|
75
|
+
static DBConnectionProfile() {
|
|
115
76
|
return Joi.object({
|
|
116
|
-
|
|
77
|
+
inventory: Joi.string().allow(""),
|
|
117
78
|
});
|
|
118
79
|
}
|
|
119
|
-
|
|
120
|
-
static SuppressStorePayload() {
|
|
80
|
+
static DBParamConfig() {
|
|
121
81
|
return Joi.object({
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
meta: InventoryModel.KafkaMetaModel(),
|
|
82
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
125
83
|
});
|
|
126
84
|
}
|
|
127
|
-
|
|
128
|
-
static KafkaResponse() {
|
|
85
|
+
static DefaultHeadersDTO() {
|
|
129
86
|
return Joi.object({
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
87
|
+
intf_article_id: InventoryModel.PropBeanDTO(),
|
|
88
|
+
price_effective: InventoryModel.PropBeanDTO(),
|
|
89
|
+
quantity: InventoryModel.PropBeanDTO(),
|
|
90
|
+
store: InventoryModel.PropBeanDTO(),
|
|
133
91
|
});
|
|
134
92
|
}
|
|
135
|
-
|
|
136
|
-
static ResponseEnvelopeKafkaResponse() {
|
|
93
|
+
static DocMappingConfig() {
|
|
137
94
|
return Joi.object({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
exception: Joi.string().allow(""),
|
|
145
|
-
|
|
146
|
-
message: Joi.string().allow(""),
|
|
147
|
-
|
|
148
|
-
total_time_taken_in_millis: Joi.number(),
|
|
149
|
-
|
|
150
|
-
http_status: Joi.string().allow(""),
|
|
151
|
-
|
|
152
|
-
items: InventoryModel.KafkaResponse(),
|
|
153
|
-
|
|
154
|
-
payload: InventoryModel.KafkaResponse(),
|
|
155
|
-
|
|
156
|
-
trace_id: Joi.string().allow(""),
|
|
157
|
-
|
|
158
|
-
page: InventoryModel.Page(),
|
|
95
|
+
default_headers: InventoryModel.DefaultHeadersDTO(),
|
|
96
|
+
junk_data_threshold_count: Joi.number(),
|
|
97
|
+
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
98
|
+
properties: Joi.object().pattern(/\S/, Joi.any()),
|
|
99
|
+
unwind_field: Joi.string().allow(""),
|
|
159
100
|
});
|
|
160
101
|
}
|
|
161
|
-
|
|
162
|
-
static GCompany() {
|
|
102
|
+
static EmailConfig() {
|
|
163
103
|
return Joi.object({
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
104
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
105
|
+
attachment_mandate: Joi.boolean(),
|
|
106
|
+
attachment_regex: Joi.string().allow(""),
|
|
107
|
+
body_content_regex: Joi.string().allow(""),
|
|
108
|
+
content_type: Joi.string().allow(""),
|
|
109
|
+
downloadable_link: Joi.boolean(),
|
|
110
|
+
filter_based_on_recepients: Joi.boolean(),
|
|
111
|
+
filter_files_after_extraction: Joi.boolean(),
|
|
112
|
+
folder_name_hierarchies: Joi.array().items(Joi.string().allow("")),
|
|
113
|
+
host: Joi.string().allow(""),
|
|
114
|
+
local_dir: Joi.string().allow(""),
|
|
115
|
+
password: Joi.string().allow(""),
|
|
116
|
+
password_protected: Joi.boolean(),
|
|
117
|
+
pcol: Joi.string().allow(""),
|
|
118
|
+
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
119
|
+
read_all_unread_mails: Joi.boolean(),
|
|
120
|
+
read_from_content: Joi.boolean(),
|
|
121
|
+
recepient: Joi.string().allow(""),
|
|
122
|
+
sender_address: Joi.string().allow(""),
|
|
123
|
+
subject_line_regex: Joi.string().allow(""),
|
|
124
|
+
unzip: Joi.boolean(),
|
|
125
|
+
username: Joi.string().allow(""),
|
|
126
|
+
zip_format: Joi.string().allow(""),
|
|
181
127
|
});
|
|
182
128
|
}
|
|
183
|
-
|
|
184
|
-
static GStore() {
|
|
129
|
+
static FileConfig() {
|
|
185
130
|
return Joi.object({
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
131
|
+
charset: Joi.string().allow(""),
|
|
132
|
+
data_start_index: Joi.number(),
|
|
133
|
+
default_headers: InventoryModel.DefaultHeadersDTO(),
|
|
134
|
+
delimiter: Joi.string().allow(""),
|
|
135
|
+
escape_char: Joi.string().allow(""),
|
|
136
|
+
file_has_header: Joi.boolean(),
|
|
137
|
+
file_type: Joi.string().allow(""),
|
|
138
|
+
header_array: Joi.array().items(Joi.string().allow("")),
|
|
139
|
+
header_index: Joi.number(),
|
|
140
|
+
junk_data_threshold_count: Joi.number(),
|
|
141
|
+
line_validity_check: Joi.boolean(),
|
|
142
|
+
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
143
|
+
properties: Joi.object().pattern(/\S/, Joi.any()),
|
|
144
|
+
quote_char: Joi.string().allow(""),
|
|
145
|
+
read_all_sheets: Joi.boolean(),
|
|
146
|
+
sheet_names: Joi.array().items(Joi.string().allow("")),
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
static FTPConfig() {
|
|
150
|
+
return Joi.object({
|
|
151
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
152
|
+
file_regex: Joi.string().allow(""),
|
|
153
|
+
host: Joi.string().allow(""),
|
|
154
|
+
interval: Joi.number(),
|
|
155
|
+
local_dir: Joi.string().allow(""),
|
|
156
|
+
password: Joi.string().allow(""),
|
|
157
|
+
port: Joi.number(),
|
|
158
|
+
read_all_files: Joi.boolean(),
|
|
159
|
+
remote_dir: Joi.string().allow(""),
|
|
160
|
+
retries: Joi.number(),
|
|
161
|
+
unzip: Joi.boolean(),
|
|
162
|
+
username: Joi.string().allow(""),
|
|
163
|
+
zip_file_regex: Joi.string().allow(""),
|
|
164
|
+
zip_format: Joi.string().allow(""),
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
static GCompany() {
|
|
209
168
|
return Joi.object({
|
|
210
169
|
_id: Joi.string().allow(""),
|
|
211
|
-
|
|
170
|
+
integration: Joi.string().allow(""),
|
|
171
|
+
level: Joi.string().allow(""),
|
|
212
172
|
name: Joi.string().allow(""),
|
|
213
|
-
|
|
214
|
-
|
|
173
|
+
opted: Joi.boolean(),
|
|
174
|
+
permissions: Joi.array().items(Joi.string().allow("")),
|
|
175
|
+
stores: Joi.array().items(InventoryModel.GStore()),
|
|
176
|
+
token: Joi.string().allow(""),
|
|
177
|
+
uid: Joi.number(),
|
|
215
178
|
});
|
|
216
179
|
}
|
|
217
|
-
|
|
218
|
-
static ResponseEnvelopeListSlingshotConfigurationDetail() {
|
|
180
|
+
static GenericDTO() {
|
|
219
181
|
return Joi.object({
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
status: Joi.number(),
|
|
223
|
-
|
|
224
|
-
error: Joi.string().allow(""),
|
|
225
|
-
|
|
226
|
-
exception: Joi.string().allow(""),
|
|
227
|
-
|
|
228
|
-
message: Joi.string().allow(""),
|
|
229
|
-
|
|
230
|
-
total_time_taken_in_millis: Joi.number(),
|
|
231
|
-
|
|
232
|
-
http_status: Joi.string().allow(""),
|
|
233
|
-
|
|
234
|
-
items: Joi.array().items(InventoryModel.SlingshotConfigurationDetail()),
|
|
235
|
-
|
|
236
|
-
payload: Joi.array().items(InventoryModel.SlingshotConfigurationDetail()),
|
|
237
|
-
|
|
238
|
-
trace_id: Joi.string().allow(""),
|
|
239
|
-
|
|
240
|
-
page: InventoryModel.Page(),
|
|
182
|
+
text: Joi.string().allow(""),
|
|
183
|
+
value: Joi.any(),
|
|
241
184
|
});
|
|
242
185
|
}
|
|
243
|
-
|
|
244
|
-
static SlingshotConfigurationDetail() {
|
|
186
|
+
static GoogleSpreadSheetConfig() {
|
|
245
187
|
return Joi.object({
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
188
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
189
|
+
client_secret_location: Joi.string().allow(""),
|
|
190
|
+
cred_storage_directory: Joi.string().allow(""),
|
|
191
|
+
local_dir: Joi.string().allow(""),
|
|
192
|
+
range: Joi.string().allow(""),
|
|
193
|
+
sheet_id: Joi.string().allow(""),
|
|
249
194
|
});
|
|
250
195
|
}
|
|
251
|
-
|
|
252
|
-
static SlingshotIntegration() {
|
|
196
|
+
static GStore() {
|
|
253
197
|
return Joi.object({
|
|
254
198
|
_id: Joi.string().allow(""),
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
199
|
+
code: Joi.string().allow(""),
|
|
200
|
+
data: InventoryModel.StoreData(),
|
|
201
|
+
integration: Joi.string().allow(""),
|
|
202
|
+
level: Joi.string().allow(""),
|
|
258
203
|
name: Joi.string().allow(""),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
204
|
+
opted: Joi.boolean(),
|
|
205
|
+
permissions: Joi.array().items(Joi.string().allow("")),
|
|
206
|
+
token: Joi.string().allow(""),
|
|
207
|
+
uid: Joi.number(),
|
|
263
208
|
});
|
|
264
209
|
}
|
|
265
|
-
|
|
266
|
-
static StoreData() {
|
|
210
|
+
static HttpConfig() {
|
|
267
211
|
return Joi.object({
|
|
268
|
-
|
|
212
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
213
|
+
hosturl: Joi.string().allow(""),
|
|
214
|
+
http_method: Joi.string().allow(""),
|
|
215
|
+
local_path: Joi.string().allow(""),
|
|
216
|
+
password: Joi.string().allow(""),
|
|
217
|
+
request_params: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
218
|
+
request_payload: Joi.string().allow(""),
|
|
219
|
+
username: Joi.string().allow(""),
|
|
269
220
|
});
|
|
270
221
|
}
|
|
271
|
-
|
|
272
|
-
static AWSS3config() {
|
|
222
|
+
static JobConfig() {
|
|
273
223
|
return Joi.object({
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
224
|
+
_id: Joi.number(),
|
|
225
|
+
aggregator_types: Joi.array().items(Joi.string().allow("")),
|
|
226
|
+
alias: Joi.string().allow(""),
|
|
227
|
+
audit: InventoryModel.Audit(),
|
|
228
|
+
catalog_master_config: InventoryModel.CatalogMasterConfig(),
|
|
229
|
+
company_config: Joi.array().items(InventoryModel.CompanyConfig()),
|
|
230
|
+
company_ids: Joi.array().items(Joi.number()),
|
|
231
|
+
cron_expression: Joi.string().allow(""),
|
|
232
|
+
db_connection_profile: InventoryModel.DBConnectionProfile(),
|
|
233
|
+
delete_quantity_threshold: Joi.number(),
|
|
234
|
+
dependent_job_codes: Joi.array().items(Joi.string().allow("")),
|
|
235
|
+
disable: Joi.boolean(),
|
|
236
|
+
immediate_first_run: Joi.boolean(),
|
|
237
|
+
integration_type: Joi.string().allow(""),
|
|
238
|
+
job_code: Joi.string().allow(""),
|
|
239
|
+
min_price: Joi.number(),
|
|
240
|
+
open_tags: Joi.object().pattern(/\S/, Joi.any()),
|
|
241
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
242
|
+
period_threshold: Joi.number(),
|
|
243
|
+
period_threshold_type: Joi.string().allow(""),
|
|
244
|
+
priority: Joi.string().allow(""),
|
|
245
|
+
process_config: InventoryModel.ProcessConfig(),
|
|
246
|
+
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
247
|
+
store_config: Joi.array().items(InventoryModel.StoreConfig()),
|
|
248
|
+
store_filter: InventoryModel.StoreFilter(),
|
|
249
|
+
sync_delay: Joi.number(),
|
|
250
|
+
task_type: Joi.string().allow(""),
|
|
251
|
+
tax_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
252
|
+
version: Joi.number(),
|
|
299
253
|
});
|
|
300
254
|
}
|
|
301
|
-
|
|
302
|
-
static ArchiveConfig() {
|
|
255
|
+
static JobConfigDTO() {
|
|
303
256
|
return Joi.object({
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
257
|
+
alias: Joi.string().allow(""),
|
|
258
|
+
company_id: Joi.number().required(),
|
|
259
|
+
company_name: Joi.string().allow(""),
|
|
260
|
+
integration: Joi.string().allow("").required(),
|
|
261
|
+
integration_data: Joi.object().pattern(/\S/, Joi.any()),
|
|
262
|
+
job_code: Joi.string().allow(""),
|
|
263
|
+
task_details: InventoryModel.TaskDTO(),
|
|
264
|
+
threshold_details: InventoryModel.DataTresholdDTO(),
|
|
309
265
|
});
|
|
310
266
|
}
|
|
311
|
-
|
|
312
|
-
static Audit() {
|
|
267
|
+
static JobConfigListDTO() {
|
|
313
268
|
return Joi.object({
|
|
269
|
+
active: Joi.boolean(),
|
|
270
|
+
alias: Joi.string().allow(""),
|
|
271
|
+
code: Joi.string().allow(""),
|
|
314
272
|
created_by: Joi.string().allow(""),
|
|
315
|
-
|
|
316
|
-
modified_by: Joi.string().allow(""),
|
|
317
|
-
|
|
318
273
|
created_on: Joi.string().allow(""),
|
|
319
|
-
|
|
274
|
+
modified_by: Joi.string().allow(""),
|
|
320
275
|
modified_on: Joi.string().allow(""),
|
|
276
|
+
type: Joi.string().allow(""),
|
|
321
277
|
});
|
|
322
278
|
}
|
|
323
|
-
|
|
324
|
-
static CatalogMasterConfig() {
|
|
279
|
+
static JobConfigRawDTO() {
|
|
325
280
|
return Joi.object({
|
|
326
|
-
|
|
281
|
+
company_id: Joi.number().required(),
|
|
282
|
+
company_name: Joi.string().allow("").required(),
|
|
283
|
+
data: InventoryModel.JobConfig(),
|
|
284
|
+
integration: Joi.string().allow("").required(),
|
|
327
285
|
});
|
|
328
286
|
}
|
|
329
|
-
|
|
330
|
-
static CompanyConfig() {
|
|
287
|
+
static JobHistoryDto() {
|
|
331
288
|
return Joi.object({
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
289
|
+
error_type: Joi.string().allow(""),
|
|
290
|
+
filename: Joi.array().items(Joi.string().allow("")),
|
|
291
|
+
job_code: Joi.string().allow(""),
|
|
292
|
+
job_id: Joi.number(),
|
|
293
|
+
message: Joi.string().allow(""),
|
|
294
|
+
processed_on: Joi.string().allow(""),
|
|
295
|
+
status: Joi.string().allow(""),
|
|
296
|
+
total_added_count: Joi.number(),
|
|
297
|
+
total_initial_count: Joi.number(),
|
|
298
|
+
total_suppressed_count: Joi.number(),
|
|
299
|
+
total_updated_count: Joi.number(),
|
|
343
300
|
});
|
|
344
301
|
}
|
|
345
|
-
|
|
346
|
-
static DBConfig() {
|
|
302
|
+
static JobMetricsDto() {
|
|
347
303
|
return Joi.object({
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
password: Joi.string().allow(""),
|
|
357
|
-
|
|
358
|
-
dbname: Joi.string().allow(""),
|
|
359
|
-
|
|
360
|
-
query: Joi.string().allow(""),
|
|
361
|
-
|
|
362
|
-
procedure: Joi.boolean(),
|
|
363
|
-
|
|
364
|
-
driver_class: Joi.string().allow(""),
|
|
365
|
-
|
|
366
|
-
jdbc_url: Joi.string().allow(""),
|
|
367
|
-
|
|
368
|
-
optional_properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
304
|
+
is_run_more_than_usual: Joi.string().allow(""),
|
|
305
|
+
job_code: Joi.string().allow(""),
|
|
306
|
+
job_history: Joi.array().items(InventoryModel.JobHistoryDto()),
|
|
307
|
+
total_failure_count: Joi.number(),
|
|
308
|
+
total_job_runs: Joi.number(),
|
|
309
|
+
total_success_count: Joi.number(),
|
|
310
|
+
total_suppressed_count: Joi.number(),
|
|
311
|
+
total_warning_count: Joi.number(),
|
|
369
312
|
});
|
|
370
313
|
}
|
|
371
|
-
|
|
372
|
-
static DBConnectionProfile() {
|
|
314
|
+
static JobStepsDTO() {
|
|
373
315
|
return Joi.object({
|
|
374
|
-
|
|
316
|
+
deleted_count: Joi.number(),
|
|
317
|
+
end_count: Joi.number(),
|
|
318
|
+
processed_at: Joi.string().allow(""),
|
|
319
|
+
processed_start_time: Joi.string().allow(""),
|
|
320
|
+
start_count: Joi.number(),
|
|
321
|
+
step_execution_time: Joi.number(),
|
|
322
|
+
step_name: Joi.string().allow(""),
|
|
323
|
+
type: Joi.string().allow(""),
|
|
375
324
|
});
|
|
376
325
|
}
|
|
377
|
-
|
|
378
|
-
static DBParamConfig() {
|
|
326
|
+
static JsonDocConfig() {
|
|
379
327
|
return Joi.object({
|
|
380
|
-
|
|
328
|
+
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
381
329
|
});
|
|
382
330
|
}
|
|
383
|
-
|
|
384
|
-
static DefaultHeadersDTO() {
|
|
331
|
+
static KafkaMetaModel() {
|
|
385
332
|
return Joi.object({
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
quantity: InventoryModel.PropBeanDTO(),
|
|
333
|
+
action: Joi.string().allow(""),
|
|
334
|
+
batch_id: Joi.number(),
|
|
335
|
+
created_on: Joi.string().allow(""),
|
|
336
|
+
created_timestamp: Joi.number(),
|
|
337
|
+
job_type: Joi.string().allow(""),
|
|
338
|
+
trace: Joi.array().items(Joi.string().allow("")),
|
|
393
339
|
});
|
|
394
340
|
}
|
|
395
|
-
|
|
396
|
-
static DocMappingConfig() {
|
|
341
|
+
static KafkaResponse() {
|
|
397
342
|
return Joi.object({
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
junk_data_threshold_count: Joi.number(),
|
|
401
|
-
|
|
402
|
-
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
403
|
-
|
|
404
|
-
unwind_field: Joi.string().allow(""),
|
|
405
|
-
|
|
406
|
-
default_headers: InventoryModel.DefaultHeadersDTO(),
|
|
343
|
+
offset: Joi.number(),
|
|
344
|
+
partition: Joi.number(),
|
|
407
345
|
});
|
|
408
346
|
}
|
|
409
|
-
|
|
410
|
-
static EmailConfig() {
|
|
347
|
+
static LocalFileConfig() {
|
|
411
348
|
return Joi.object({
|
|
412
|
-
recepient: Joi.string().allow(""),
|
|
413
|
-
|
|
414
|
-
host: Joi.string().allow(""),
|
|
415
|
-
|
|
416
|
-
username: Joi.string().allow(""),
|
|
417
|
-
|
|
418
|
-
password: Joi.string().allow(""),
|
|
419
|
-
|
|
420
|
-
unzip: Joi.boolean(),
|
|
421
|
-
|
|
422
|
-
read_from_content: Joi.boolean(),
|
|
423
|
-
|
|
424
|
-
filter_based_on_recepients: Joi.boolean(),
|
|
425
|
-
|
|
426
|
-
pcol: Joi.string().allow(""),
|
|
427
|
-
|
|
428
|
-
subject_line_regex: Joi.string().allow(""),
|
|
429
|
-
|
|
430
|
-
sender_address: Joi.string().allow(""),
|
|
431
|
-
|
|
432
|
-
local_dir: Joi.string().allow(""),
|
|
433
|
-
|
|
434
|
-
folder_name_hierarchies: Joi.array().items(Joi.string().allow("")),
|
|
435
|
-
|
|
436
|
-
attachment_regex: Joi.string().allow(""),
|
|
437
|
-
|
|
438
|
-
body_content_regex: Joi.string().allow(""),
|
|
439
|
-
|
|
440
|
-
password_protected: Joi.boolean(),
|
|
441
|
-
|
|
442
|
-
zip_format: Joi.string().allow(""),
|
|
443
|
-
|
|
444
|
-
attachment_mandate: Joi.boolean(),
|
|
445
|
-
|
|
446
|
-
filter_files_after_extraction: Joi.boolean(),
|
|
447
|
-
|
|
448
349
|
archive_config: InventoryModel.ArchiveConfig(),
|
|
449
|
-
|
|
450
|
-
read_all_unread_mails: Joi.boolean(),
|
|
451
|
-
|
|
452
|
-
content_type: Joi.string().allow(""),
|
|
453
|
-
|
|
454
|
-
downloadable_link: Joi.boolean(),
|
|
455
|
-
|
|
456
|
-
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
static FTPConfig() {
|
|
461
|
-
return Joi.object({
|
|
462
|
-
host: Joi.string().allow(""),
|
|
463
|
-
|
|
464
|
-
port: Joi.number(),
|
|
465
|
-
|
|
466
|
-
username: Joi.string().allow(""),
|
|
467
|
-
|
|
468
|
-
password: Joi.string().allow(""),
|
|
469
|
-
|
|
470
|
-
unzip: Joi.boolean(),
|
|
471
|
-
|
|
472
|
-
retries: Joi.number(),
|
|
473
|
-
|
|
350
|
+
file_regex: Joi.string().allow(""),
|
|
474
351
|
interval: Joi.number(),
|
|
475
|
-
|
|
476
352
|
local_dir: Joi.string().allow(""),
|
|
477
|
-
|
|
478
|
-
remote_dir: Joi.string().allow(""),
|
|
479
|
-
|
|
480
|
-
zip_file_regex: Joi.string().allow(""),
|
|
481
|
-
|
|
482
|
-
archive_config: InventoryModel.ArchiveConfig(),
|
|
483
|
-
|
|
484
|
-
file_regex: Joi.string().allow(""),
|
|
485
|
-
|
|
486
|
-
zip_format: Joi.string().allow(""),
|
|
487
|
-
|
|
488
353
|
read_all_files: Joi.boolean(),
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
static FileConfig() {
|
|
493
|
-
return Joi.object({
|
|
494
|
-
delimiter: Joi.string().allow(""),
|
|
495
|
-
|
|
496
|
-
charset: Joi.string().allow(""),
|
|
497
|
-
|
|
498
|
-
properties: Joi.object().pattern(/\S/, Joi.any()),
|
|
499
|
-
|
|
500
|
-
file_has_header: Joi.boolean(),
|
|
501
|
-
|
|
502
|
-
header_index: Joi.number(),
|
|
503
|
-
|
|
504
|
-
header_array: Joi.array().items(Joi.string().allow("")),
|
|
505
|
-
|
|
506
|
-
data_start_index: Joi.number(),
|
|
507
|
-
|
|
508
|
-
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
509
|
-
|
|
510
|
-
junk_data_threshold_count: Joi.number(),
|
|
511
|
-
|
|
512
|
-
file_type: Joi.string().allow(""),
|
|
513
|
-
|
|
514
|
-
line_validity_check: Joi.boolean(),
|
|
515
|
-
|
|
516
|
-
sheet_names: Joi.array().items(Joi.string().allow("")),
|
|
517
|
-
|
|
518
|
-
read_all_sheets: Joi.boolean(),
|
|
519
|
-
|
|
520
|
-
quote_char: Joi.string().allow(""),
|
|
521
|
-
|
|
522
|
-
escape_char: Joi.string().allow(""),
|
|
523
|
-
|
|
524
|
-
default_headers: InventoryModel.DefaultHeadersDTO(),
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
static GoogleSpreadSheetConfig() {
|
|
529
|
-
return Joi.object({
|
|
530
|
-
range: Joi.string().allow(""),
|
|
531
|
-
|
|
532
|
-
sheet_id: Joi.string().allow(""),
|
|
533
|
-
|
|
534
|
-
client_secret_location: Joi.string().allow(""),
|
|
535
|
-
|
|
536
|
-
cred_storage_directory: Joi.string().allow(""),
|
|
537
|
-
|
|
538
|
-
local_dir: Joi.string().allow(""),
|
|
539
|
-
|
|
540
|
-
archive_config: InventoryModel.ArchiveConfig(),
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
static HttpConfig() {
|
|
545
|
-
return Joi.object({
|
|
546
|
-
hosturl: Joi.string().allow(""),
|
|
547
|
-
|
|
548
|
-
username: Joi.string().allow(""),
|
|
549
|
-
|
|
550
|
-
password: Joi.string().allow(""),
|
|
551
|
-
|
|
552
|
-
request_params: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
553
|
-
|
|
554
|
-
http_method: Joi.string().allow(""),
|
|
555
|
-
|
|
556
|
-
request_payload: Joi.string().allow(""),
|
|
557
|
-
|
|
558
|
-
local_path: Joi.string().allow(""),
|
|
559
|
-
|
|
560
|
-
archive_config: InventoryModel.ArchiveConfig(),
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
static JobConfig() {
|
|
565
|
-
return Joi.object({
|
|
566
|
-
_id: Joi.number(),
|
|
567
|
-
|
|
568
|
-
job_code: Joi.string().allow(""),
|
|
569
|
-
|
|
570
|
-
task_type: Joi.string().allow(""),
|
|
571
|
-
|
|
572
|
-
sync_delay: Joi.number(),
|
|
573
|
-
|
|
574
|
-
cron_expression: Joi.string().allow(""),
|
|
575
|
-
|
|
576
|
-
store_filter: InventoryModel.StoreFilter(),
|
|
577
|
-
|
|
578
|
-
process_config: InventoryModel.ProcessConfig(),
|
|
579
|
-
|
|
580
|
-
store_config: Joi.array().items(InventoryModel.StoreConfig()),
|
|
581
|
-
|
|
582
|
-
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
583
|
-
|
|
584
|
-
immediate_first_run: Joi.boolean(),
|
|
585
|
-
|
|
586
|
-
disable: Joi.boolean(),
|
|
587
|
-
|
|
588
|
-
dependent_job_codes: Joi.array().items(Joi.string().allow("")),
|
|
589
|
-
|
|
590
|
-
company_config: Joi.array().items(InventoryModel.CompanyConfig()),
|
|
591
|
-
|
|
592
|
-
company_ids: Joi.array().items(Joi.number()),
|
|
593
|
-
|
|
594
|
-
tax_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
595
|
-
|
|
596
|
-
priority: Joi.string().allow(""),
|
|
597
|
-
|
|
598
|
-
period_threshold: Joi.number(),
|
|
599
|
-
|
|
600
|
-
period_threshold_type: Joi.string().allow(""),
|
|
601
|
-
|
|
602
|
-
db_connection_profile: InventoryModel.DBConnectionProfile(),
|
|
603
|
-
|
|
604
|
-
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
605
|
-
|
|
606
|
-
open_tags: Joi.object().pattern(/\S/, Joi.any()),
|
|
607
|
-
|
|
608
|
-
delete_quantity_threshold: Joi.number(),
|
|
609
|
-
|
|
610
|
-
catalog_master_config: InventoryModel.CatalogMasterConfig(),
|
|
611
|
-
|
|
612
|
-
aggregator_types: Joi.array().items(Joi.string().allow("")),
|
|
613
|
-
|
|
614
|
-
integration_type: Joi.string().allow(""),
|
|
615
|
-
|
|
616
|
-
min_price: Joi.number(),
|
|
617
|
-
|
|
618
|
-
audit: InventoryModel.Audit(),
|
|
619
|
-
|
|
620
|
-
version: Joi.number(),
|
|
621
|
-
|
|
622
|
-
alias: Joi.string().allow(""),
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
static JobConfigRawDTO() {
|
|
627
|
-
return Joi.object({
|
|
628
|
-
company_name: Joi.string().allow("").required(),
|
|
629
|
-
|
|
630
|
-
integration: Joi.string().allow("").required(),
|
|
631
|
-
|
|
632
|
-
company_id: Joi.number().required(),
|
|
633
|
-
|
|
634
|
-
data: InventoryModel.JobConfig(),
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
static JsonDocConfig() {
|
|
639
|
-
return Joi.object({
|
|
640
|
-
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
static LocalFileConfig() {
|
|
645
|
-
return Joi.object({
|
|
646
354
|
retries: Joi.number(),
|
|
647
|
-
|
|
648
|
-
interval: Joi.number(),
|
|
649
|
-
|
|
650
|
-
local_dir: Joi.string().allow(""),
|
|
651
|
-
|
|
652
|
-
working_dir: Joi.string().allow(""),
|
|
653
|
-
|
|
654
355
|
unzip: Joi.boolean(),
|
|
655
|
-
|
|
356
|
+
working_dir: Joi.string().allow(""),
|
|
656
357
|
zip_file_regex: Joi.string().allow(""),
|
|
657
|
-
|
|
658
|
-
file_regex: Joi.string().allow(""),
|
|
659
|
-
|
|
660
358
|
zip_format: Joi.string().allow(""),
|
|
661
|
-
|
|
662
|
-
archive_config: InventoryModel.ArchiveConfig(),
|
|
663
|
-
|
|
664
|
-
read_all_files: Joi.boolean(),
|
|
665
359
|
});
|
|
666
360
|
}
|
|
667
|
-
|
|
361
|
+
static Metum() {
|
|
362
|
+
return Joi.object({
|
|
363
|
+
_id: Joi.string().allow(""),
|
|
364
|
+
name: Joi.string().allow(""),
|
|
365
|
+
value: Joi.string().allow(""),
|
|
366
|
+
});
|
|
367
|
+
}
|
|
668
368
|
static MongoDocConfig() {
|
|
669
369
|
return Joi.object({
|
|
370
|
+
aggregate_pipeline: Joi.array().items(
|
|
371
|
+
Joi.object().pattern(/\S/, Joi.any())
|
|
372
|
+
),
|
|
670
373
|
collection_name: Joi.string().allow(""),
|
|
671
|
-
|
|
672
374
|
find_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
673
|
-
|
|
674
375
|
projection_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
675
|
-
|
|
676
376
|
prop_bean_configs: Joi.array().items(InventoryModel.PropBeanConfig()),
|
|
677
|
-
|
|
678
|
-
aggregate_pipeline: Joi.array().items(
|
|
679
|
-
Joi.object().pattern(/\S/, Joi.any())
|
|
680
|
-
),
|
|
681
|
-
|
|
682
377
|
skip_save: Joi.boolean(),
|
|
683
378
|
});
|
|
684
379
|
}
|
|
685
|
-
|
|
686
380
|
static OAuthConfig() {
|
|
687
381
|
return Joi.object({
|
|
688
|
-
limit: Joi.number(),
|
|
689
|
-
|
|
690
|
-
pages: Joi.number(),
|
|
691
|
-
|
|
692
|
-
interval: Joi.number(),
|
|
693
|
-
|
|
694
382
|
consumer_key: Joi.string().allow(""),
|
|
695
|
-
|
|
696
383
|
consumer_secret: Joi.string().allow(""),
|
|
697
|
-
|
|
384
|
+
function_name: Joi.string().allow(""),
|
|
385
|
+
interval: Joi.number(),
|
|
386
|
+
limit: Joi.number(),
|
|
387
|
+
pages: Joi.number(),
|
|
388
|
+
rest_base_url: Joi.string().allow(""),
|
|
389
|
+
rest_url: Joi.string().allow(""),
|
|
698
390
|
token: Joi.string().allow(""),
|
|
699
|
-
|
|
700
391
|
token_secret: Joi.string().allow(""),
|
|
701
|
-
|
|
702
|
-
rest_url: Joi.string().allow(""),
|
|
703
|
-
|
|
704
|
-
rest_base_url: Joi.string().allow(""),
|
|
705
|
-
|
|
706
|
-
function_name: Joi.string().allow(""),
|
|
707
392
|
});
|
|
708
393
|
}
|
|
709
|
-
|
|
394
|
+
static Page() {
|
|
395
|
+
return Joi.object({
|
|
396
|
+
current: Joi.number(),
|
|
397
|
+
has_next: Joi.boolean(),
|
|
398
|
+
has_previous: Joi.boolean(),
|
|
399
|
+
item_total: Joi.number(),
|
|
400
|
+
next_id: Joi.string().allow(""),
|
|
401
|
+
size: Joi.number(),
|
|
402
|
+
type: Joi.string().allow("").required(),
|
|
403
|
+
});
|
|
404
|
+
}
|
|
710
405
|
static ProcessConfig() {
|
|
711
406
|
return Joi.object({
|
|
407
|
+
aws_s3_config: InventoryModel.AWSS3config(),
|
|
712
408
|
db_config: InventoryModel.DBConfig(),
|
|
713
|
-
|
|
714
409
|
db_param_config: InventoryModel.DBParamConfig(),
|
|
715
|
-
|
|
716
|
-
sftp_config: InventoryModel.SFTPConfig(),
|
|
717
|
-
|
|
718
|
-
aws_s3_config: InventoryModel.AWSS3config(),
|
|
719
|
-
|
|
720
|
-
mongo_doc_config: InventoryModel.MongoDocConfig(),
|
|
721
|
-
|
|
722
|
-
ftp_config: InventoryModel.FTPConfig(),
|
|
723
|
-
|
|
410
|
+
doc_mapping_config: InventoryModel.DocMappingConfig(),
|
|
724
411
|
email_config: InventoryModel.EmailConfig(),
|
|
725
|
-
|
|
726
412
|
file_config: InventoryModel.FileConfig(),
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
doc_mapping_config: InventoryModel.DocMappingConfig(),
|
|
731
|
-
|
|
732
|
-
task_step_config: InventoryModel.TaskStepConfig(),
|
|
733
|
-
|
|
413
|
+
ftp_config: InventoryModel.FTPConfig(),
|
|
414
|
+
google_spreadsheet_config: InventoryModel.GoogleSpreadSheetConfig(),
|
|
734
415
|
http_config: InventoryModel.HttpConfig(),
|
|
735
|
-
|
|
416
|
+
json_doc_config: InventoryModel.JsonDocConfig(),
|
|
736
417
|
local_file_config: InventoryModel.LocalFileConfig(),
|
|
737
|
-
|
|
418
|
+
mongo_doc_config: InventoryModel.MongoDocConfig(),
|
|
738
419
|
oauth_config: InventoryModel.OAuthConfig(),
|
|
739
|
-
|
|
740
|
-
|
|
420
|
+
sftp_config: InventoryModel.SFTPConfig(),
|
|
421
|
+
task_step_config: InventoryModel.TaskStepConfig(),
|
|
741
422
|
});
|
|
742
423
|
}
|
|
743
|
-
|
|
744
424
|
static PropBeanConfig() {
|
|
745
425
|
return Joi.object({
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
send: InventoryModel.Send(),
|
|
751
|
-
|
|
752
|
-
validations: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
753
|
-
|
|
754
|
-
values: Joi.array().items(Joi.string().allow("")),
|
|
755
|
-
|
|
756
|
-
include: Joi.boolean(),
|
|
757
|
-
|
|
758
|
-
source_field: Joi.string().allow(""),
|
|
759
|
-
|
|
760
|
-
source_fields: Joi.array().items(Joi.string().allow("")),
|
|
761
|
-
|
|
762
|
-
destination_field: Joi.string().allow(""),
|
|
763
|
-
|
|
426
|
+
all_param_function_name: Joi.string().allow(""),
|
|
427
|
+
concat_str: Joi.string().allow(""),
|
|
428
|
+
const_value: Joi.any(),
|
|
764
429
|
data_type: Joi.string().allow(""),
|
|
765
|
-
|
|
766
430
|
default_value: Joi.any(),
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
concat_str: Joi.string().allow(""),
|
|
771
|
-
|
|
431
|
+
destination_field: Joi.string().allow(""),
|
|
432
|
+
enrich_from_master: Joi.boolean(),
|
|
772
433
|
function_name: Joi.string().allow(""),
|
|
773
|
-
|
|
774
|
-
transformer_name: Joi.string().allow(""),
|
|
775
|
-
|
|
776
|
-
all_param_function_name: Joi.string().allow(""),
|
|
777
|
-
|
|
778
|
-
sub_separator: Joi.string().allow(""),
|
|
779
|
-
|
|
780
|
-
index_field: Joi.string().allow(""),
|
|
781
|
-
|
|
782
|
-
ignore_if_not_exists: Joi.boolean(),
|
|
783
|
-
|
|
784
434
|
identifier_type: Joi.string().allow(""),
|
|
785
|
-
|
|
435
|
+
ignore_if_not_exists: Joi.boolean(),
|
|
436
|
+
include: Joi.boolean(),
|
|
437
|
+
index_field: Joi.string().allow(""),
|
|
438
|
+
optional: Joi.boolean(),
|
|
786
439
|
projection_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
787
|
-
|
|
788
|
-
|
|
440
|
+
required: Joi.boolean(),
|
|
441
|
+
send: InventoryModel.Send(),
|
|
442
|
+
source_field: Joi.string().allow(""),
|
|
443
|
+
source_fields: Joi.array().items(Joi.string().allow("")),
|
|
444
|
+
sub_separator: Joi.string().allow(""),
|
|
445
|
+
transformer_name: Joi.string().allow(""),
|
|
446
|
+
validations: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
447
|
+
values: Joi.array().items(Joi.string().allow("")),
|
|
789
448
|
});
|
|
790
449
|
}
|
|
791
|
-
|
|
792
450
|
static PropBeanDTO() {
|
|
793
451
|
return Joi.object({
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
include: Joi.boolean(),
|
|
799
|
-
|
|
800
|
-
source_field: Joi.string().allow(""),
|
|
801
|
-
|
|
802
|
-
source_fields: Joi.array().items(Joi.string().allow("")),
|
|
803
|
-
|
|
804
|
-
destination_field: Joi.string().allow(""),
|
|
805
|
-
|
|
452
|
+
all_param_function_name: Joi.string().allow(""),
|
|
453
|
+
concat_str: Joi.string().allow(""),
|
|
454
|
+
const_value: Joi.any(),
|
|
806
455
|
data_type: Joi.string().allow(""),
|
|
807
|
-
|
|
808
456
|
default_value: Joi.any(),
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
concat_str: Joi.string().allow(""),
|
|
813
|
-
|
|
457
|
+
destination_field: Joi.string().allow(""),
|
|
458
|
+
enrich_from_master: Joi.boolean(),
|
|
814
459
|
function_name: Joi.string().allow(""),
|
|
815
|
-
|
|
816
|
-
transformer_name: Joi.string().allow(""),
|
|
817
|
-
|
|
818
|
-
all_param_function_name: Joi.string().allow(""),
|
|
819
|
-
|
|
820
|
-
sub_separator: Joi.string().allow(""),
|
|
821
|
-
|
|
822
|
-
index_field: Joi.string().allow(""),
|
|
823
|
-
|
|
824
|
-
ignore_if_not_exists: Joi.boolean(),
|
|
825
|
-
|
|
826
460
|
identifier_type: Joi.string().allow(""),
|
|
827
|
-
|
|
461
|
+
ignore_if_not_exists: Joi.boolean(),
|
|
462
|
+
include: Joi.boolean(),
|
|
463
|
+
index_field: Joi.string().allow(""),
|
|
464
|
+
optional: Joi.boolean(),
|
|
828
465
|
projection_query: Joi.object().pattern(/\S/, Joi.any()),
|
|
829
|
-
|
|
830
|
-
|
|
466
|
+
required: Joi.boolean(),
|
|
467
|
+
source_field: Joi.string().allow(""),
|
|
468
|
+
source_fields: Joi.array().items(Joi.string().allow("")),
|
|
469
|
+
sub_separator: Joi.string().allow(""),
|
|
470
|
+
transformer_name: Joi.string().allow(""),
|
|
831
471
|
});
|
|
832
472
|
}
|
|
833
|
-
|
|
834
|
-
static ResponseEnvelopeListJobConfigRawDTO() {
|
|
473
|
+
static ResponseEnvelopeJobConfigDTO() {
|
|
835
474
|
return Joi.object({
|
|
836
|
-
timestamp: Joi.string().allow(""),
|
|
837
|
-
|
|
838
|
-
status: Joi.number(),
|
|
839
|
-
|
|
840
475
|
error: Joi.string().allow(""),
|
|
841
|
-
|
|
842
476
|
exception: Joi.string().allow(""),
|
|
843
|
-
|
|
477
|
+
http_status: Joi.string().allow(""),
|
|
478
|
+
items: InventoryModel.JobConfigDTO(),
|
|
844
479
|
message: Joi.string().allow(""),
|
|
845
|
-
|
|
480
|
+
page: InventoryModel.Page(),
|
|
481
|
+
payload: InventoryModel.JobConfigDTO(),
|
|
482
|
+
status: Joi.number(),
|
|
483
|
+
timestamp: Joi.string().allow(""),
|
|
846
484
|
total_time_taken_in_millis: Joi.number(),
|
|
847
|
-
|
|
848
|
-
http_status: Joi.string().allow(""),
|
|
849
|
-
|
|
850
|
-
items: Joi.array().items(InventoryModel.JobConfigRawDTO()),
|
|
851
|
-
|
|
852
|
-
payload: Joi.array().items(InventoryModel.JobConfigRawDTO()),
|
|
853
|
-
|
|
854
485
|
trace_id: Joi.string().allow(""),
|
|
855
|
-
|
|
856
|
-
page: InventoryModel.Page(),
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
static SFTPConfig() {
|
|
861
|
-
return Joi.object({
|
|
862
|
-
host: Joi.string().allow(""),
|
|
863
|
-
|
|
864
|
-
port: Joi.number(),
|
|
865
|
-
|
|
866
|
-
username: Joi.string().allow(""),
|
|
867
|
-
|
|
868
|
-
password: Joi.string().allow(""),
|
|
869
|
-
|
|
870
|
-
unzip: Joi.boolean(),
|
|
871
|
-
|
|
872
|
-
retries: Joi.number(),
|
|
873
|
-
|
|
874
|
-
interval: Joi.number(),
|
|
875
|
-
|
|
876
|
-
private_key_path: Joi.string().allow(""),
|
|
877
|
-
|
|
878
|
-
strict_host_key_checking: Joi.boolean(),
|
|
879
|
-
|
|
880
|
-
local_dir: Joi.string().allow(""),
|
|
881
|
-
|
|
882
|
-
remote_dir: Joi.string().allow(""),
|
|
883
|
-
|
|
884
|
-
password_protected: Joi.boolean(),
|
|
885
|
-
|
|
886
|
-
zip_file_regex: Joi.string().allow(""),
|
|
887
|
-
|
|
888
|
-
file_regex: Joi.string().allow(""),
|
|
889
|
-
|
|
890
|
-
zip_format: Joi.string().allow(""),
|
|
891
|
-
|
|
892
|
-
archive_config: InventoryModel.ArchiveConfig(),
|
|
893
|
-
|
|
894
|
-
read_all_files: Joi.boolean(),
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
static Send() {
|
|
899
|
-
return Joi.object({
|
|
900
|
-
raw: Joi.boolean(),
|
|
901
|
-
|
|
902
|
-
processed: Joi.boolean(),
|
|
903
486
|
});
|
|
904
487
|
}
|
|
905
|
-
|
|
906
|
-
static StoreConfig() {
|
|
907
|
-
return Joi.object({
|
|
908
|
-
job_code: Joi.string().allow(""),
|
|
909
|
-
|
|
910
|
-
storeid: Joi.string().allow(""),
|
|
911
|
-
|
|
912
|
-
store_alias: Joi.string().allow(""),
|
|
913
|
-
|
|
914
|
-
store_file_regex: Joi.string().allow(""),
|
|
915
|
-
|
|
916
|
-
store_file_name: Joi.string().allow(""),
|
|
917
|
-
|
|
918
|
-
process_config: InventoryModel.ProcessConfig(),
|
|
919
|
-
|
|
920
|
-
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
static StoreFilter() {
|
|
488
|
+
static ResponseEnvelopeJobMetricsDto() {
|
|
925
489
|
return Joi.object({
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
490
|
+
error: Joi.string().allow(""),
|
|
491
|
+
exception: Joi.string().allow(""),
|
|
492
|
+
http_status: Joi.string().allow(""),
|
|
493
|
+
items: InventoryModel.JobMetricsDto(),
|
|
494
|
+
message: Joi.string().allow(""),
|
|
495
|
+
page: InventoryModel.Page(),
|
|
496
|
+
payload: InventoryModel.JobMetricsDto(),
|
|
497
|
+
status: Joi.number(),
|
|
498
|
+
timestamp: Joi.string().allow(""),
|
|
499
|
+
total_time_taken_in_millis: Joi.number(),
|
|
500
|
+
trace_id: Joi.string().allow(""),
|
|
931
501
|
});
|
|
932
502
|
}
|
|
933
|
-
|
|
934
|
-
static TaskConfig() {
|
|
503
|
+
static ResponseEnvelopeKafkaResponse() {
|
|
935
504
|
return Joi.object({
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
505
|
+
error: Joi.string().allow(""),
|
|
506
|
+
exception: Joi.string().allow(""),
|
|
507
|
+
http_status: Joi.string().allow(""),
|
|
508
|
+
items: InventoryModel.KafkaResponse(),
|
|
509
|
+
message: Joi.string().allow(""),
|
|
510
|
+
page: InventoryModel.Page(),
|
|
511
|
+
payload: InventoryModel.KafkaResponse(),
|
|
512
|
+
status: Joi.number(),
|
|
513
|
+
timestamp: Joi.string().allow(""),
|
|
514
|
+
total_time_taken_in_millis: Joi.number(),
|
|
515
|
+
trace_id: Joi.string().allow(""),
|
|
941
516
|
});
|
|
942
517
|
}
|
|
943
|
-
|
|
944
|
-
static TaskParam() {
|
|
518
|
+
static ResponseEnvelopeListJobConfigDTO() {
|
|
945
519
|
return Joi.object({
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
520
|
+
error: Joi.string().allow(""),
|
|
521
|
+
exception: Joi.string().allow(""),
|
|
522
|
+
http_status: Joi.string().allow(""),
|
|
523
|
+
items: Joi.array().items(InventoryModel.JobConfigDTO()),
|
|
524
|
+
message: Joi.string().allow(""),
|
|
525
|
+
page: InventoryModel.Page(),
|
|
526
|
+
payload: Joi.array().items(InventoryModel.JobConfigDTO()),
|
|
527
|
+
status: Joi.number(),
|
|
528
|
+
timestamp: Joi.string().allow(""),
|
|
529
|
+
total_time_taken_in_millis: Joi.number(),
|
|
530
|
+
trace_id: Joi.string().allow(""),
|
|
949
531
|
});
|
|
950
532
|
}
|
|
951
|
-
|
|
952
|
-
static TaskStepConfig() {
|
|
533
|
+
static ResponseEnvelopeListJobConfigListDTO() {
|
|
953
534
|
return Joi.object({
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
535
|
+
error: Joi.string().allow(""),
|
|
536
|
+
exception: Joi.string().allow(""),
|
|
537
|
+
http_status: Joi.string().allow(""),
|
|
538
|
+
items: Joi.array().items(InventoryModel.JobConfigListDTO()),
|
|
539
|
+
message: Joi.string().allow(""),
|
|
540
|
+
page: InventoryModel.Page(),
|
|
541
|
+
payload: Joi.array().items(InventoryModel.JobConfigListDTO()),
|
|
542
|
+
status: Joi.number(),
|
|
543
|
+
timestamp: Joi.string().allow(""),
|
|
544
|
+
total_time_taken_in_millis: Joi.number(),
|
|
545
|
+
trace_id: Joi.string().allow(""),
|
|
959
546
|
});
|
|
960
547
|
}
|
|
961
|
-
|
|
962
|
-
static JobStepsDTO() {
|
|
548
|
+
static ResponseEnvelopeListJobConfigRawDTO() {
|
|
963
549
|
return Joi.object({
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
processed_start_time: Joi.string().allow(""),
|
|
977
|
-
|
|
978
|
-
processed_at: Joi.string().allow(""),
|
|
550
|
+
error: Joi.string().allow(""),
|
|
551
|
+
exception: Joi.string().allow(""),
|
|
552
|
+
http_status: Joi.string().allow(""),
|
|
553
|
+
items: Joi.array().items(InventoryModel.JobConfigRawDTO()),
|
|
554
|
+
message: Joi.string().allow(""),
|
|
555
|
+
page: InventoryModel.Page(),
|
|
556
|
+
payload: Joi.array().items(InventoryModel.JobConfigRawDTO()),
|
|
557
|
+
status: Joi.number(),
|
|
558
|
+
timestamp: Joi.string().allow(""),
|
|
559
|
+
total_time_taken_in_millis: Joi.number(),
|
|
560
|
+
trace_id: Joi.string().allow(""),
|
|
979
561
|
});
|
|
980
562
|
}
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
return Joi.object({
|
|
984
|
-
timestamp: Joi.string().allow(""),
|
|
985
|
-
|
|
986
|
-
status: Joi.number(),
|
|
987
|
-
|
|
563
|
+
static ResponseEnvelopeListJobStepsDTO() {
|
|
564
|
+
return Joi.object({
|
|
988
565
|
error: Joi.string().allow(""),
|
|
989
|
-
|
|
990
566
|
exception: Joi.string().allow(""),
|
|
991
|
-
|
|
992
|
-
message: Joi.string().allow(""),
|
|
993
|
-
|
|
994
|
-
total_time_taken_in_millis: Joi.number(),
|
|
995
|
-
|
|
996
567
|
http_status: Joi.string().allow(""),
|
|
997
|
-
|
|
998
568
|
items: Joi.array().items(InventoryModel.JobStepsDTO()),
|
|
999
|
-
|
|
569
|
+
message: Joi.string().allow(""),
|
|
570
|
+
page: InventoryModel.Page(),
|
|
1000
571
|
payload: Joi.array().items(InventoryModel.JobStepsDTO()),
|
|
1001
|
-
|
|
572
|
+
status: Joi.number(),
|
|
573
|
+
timestamp: Joi.string().allow(""),
|
|
574
|
+
total_time_taken_in_millis: Joi.number(),
|
|
1002
575
|
trace_id: Joi.string().allow(""),
|
|
1003
|
-
|
|
1004
|
-
page: InventoryModel.Page(),
|
|
1005
576
|
});
|
|
1006
577
|
}
|
|
1007
|
-
|
|
1008
|
-
static ResponseEnvelopeListJobConfigDTO() {
|
|
578
|
+
static ResponseEnvelopeListSlingshotConfigurationDetail() {
|
|
1009
579
|
return Joi.object({
|
|
1010
|
-
timestamp: Joi.string().allow(""),
|
|
1011
|
-
|
|
1012
|
-
status: Joi.number(),
|
|
1013
|
-
|
|
1014
580
|
error: Joi.string().allow(""),
|
|
1015
|
-
|
|
1016
581
|
exception: Joi.string().allow(""),
|
|
1017
|
-
|
|
582
|
+
http_status: Joi.string().allow(""),
|
|
583
|
+
items: Joi.array().items(InventoryModel.SlingshotConfigurationDetail()),
|
|
1018
584
|
message: Joi.string().allow(""),
|
|
1019
|
-
|
|
585
|
+
page: InventoryModel.Page(),
|
|
586
|
+
payload: Joi.array().items(InventoryModel.SlingshotConfigurationDetail()),
|
|
587
|
+
status: Joi.number(),
|
|
588
|
+
timestamp: Joi.string().allow(""),
|
|
1020
589
|
total_time_taken_in_millis: Joi.number(),
|
|
1021
|
-
|
|
1022
|
-
http_status: Joi.string().allow(""),
|
|
1023
|
-
|
|
1024
|
-
items: Joi.array().items(InventoryModel.JobConfigDTO()),
|
|
1025
|
-
|
|
1026
|
-
payload: Joi.array().items(InventoryModel.JobConfigDTO()),
|
|
1027
|
-
|
|
1028
590
|
trace_id: Joi.string().allow(""),
|
|
1029
|
-
|
|
1030
|
-
page: InventoryModel.Page(),
|
|
1031
591
|
});
|
|
1032
592
|
}
|
|
1033
|
-
|
|
1034
|
-
static ResponseEnvelopeJobConfigDTO() {
|
|
593
|
+
static ResponseEnvelopeString() {
|
|
1035
594
|
return Joi.object({
|
|
1036
|
-
timestamp: Joi.string().allow(""),
|
|
1037
|
-
|
|
1038
|
-
status: Joi.number(),
|
|
1039
|
-
|
|
1040
595
|
error: Joi.string().allow(""),
|
|
1041
|
-
|
|
1042
596
|
exception: Joi.string().allow(""),
|
|
1043
|
-
|
|
597
|
+
http_status: Joi.string().allow(""),
|
|
598
|
+
items: Joi.string().allow(""),
|
|
1044
599
|
message: Joi.string().allow(""),
|
|
1045
|
-
|
|
600
|
+
page: InventoryModel.Page(),
|
|
601
|
+
payload: Joi.string().allow(""),
|
|
602
|
+
status: Joi.number(),
|
|
603
|
+
timestamp: Joi.string().allow(""),
|
|
1046
604
|
total_time_taken_in_millis: Joi.number(),
|
|
1047
|
-
|
|
1048
|
-
http_status: Joi.string().allow(""),
|
|
1049
|
-
|
|
1050
|
-
items: InventoryModel.JobConfigDTO(),
|
|
1051
|
-
|
|
1052
|
-
payload: InventoryModel.JobConfigDTO(),
|
|
1053
|
-
|
|
1054
605
|
trace_id: Joi.string().allow(""),
|
|
1055
|
-
|
|
1056
|
-
page: InventoryModel.Page(),
|
|
1057
606
|
});
|
|
1058
607
|
}
|
|
1059
|
-
|
|
1060
|
-
static JobHistoryDto() {
|
|
608
|
+
static Send() {
|
|
1061
609
|
return Joi.object({
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
total_updated_count: Joi.number(),
|
|
1065
|
-
|
|
1066
|
-
total_suppressed_count: Joi.number(),
|
|
1067
|
-
|
|
1068
|
-
total_initial_count: Joi.number(),
|
|
1069
|
-
|
|
1070
|
-
job_id: Joi.number(),
|
|
1071
|
-
|
|
1072
|
-
status: Joi.string().allow(""),
|
|
1073
|
-
|
|
1074
|
-
job_code: Joi.string().allow(""),
|
|
1075
|
-
|
|
1076
|
-
processed_on: Joi.string().allow(""),
|
|
1077
|
-
|
|
1078
|
-
filename: Joi.array().items(Joi.string().allow("")),
|
|
1079
|
-
|
|
1080
|
-
error_type: Joi.string().allow(""),
|
|
1081
|
-
|
|
1082
|
-
message: Joi.string().allow(""),
|
|
610
|
+
processed: Joi.boolean(),
|
|
611
|
+
raw: Joi.boolean(),
|
|
1083
612
|
});
|
|
1084
613
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
614
|
+
static SFTPConfig() {
|
|
615
|
+
return Joi.object({
|
|
616
|
+
archive_config: InventoryModel.ArchiveConfig(),
|
|
617
|
+
file_regex: Joi.string().allow(""),
|
|
618
|
+
host: Joi.string().allow(""),
|
|
619
|
+
interval: Joi.number(),
|
|
620
|
+
local_dir: Joi.string().allow(""),
|
|
621
|
+
password: Joi.string().allow(""),
|
|
622
|
+
password_protected: Joi.boolean(),
|
|
623
|
+
port: Joi.number(),
|
|
624
|
+
private_key_path: Joi.string().allow(""),
|
|
625
|
+
read_all_files: Joi.boolean(),
|
|
626
|
+
remote_dir: Joi.string().allow(""),
|
|
627
|
+
retries: Joi.number(),
|
|
628
|
+
strict_host_key_checking: Joi.boolean(),
|
|
629
|
+
unzip: Joi.boolean(),
|
|
630
|
+
username: Joi.string().allow(""),
|
|
631
|
+
zip_file_regex: Joi.string().allow(""),
|
|
632
|
+
zip_format: Joi.string().allow(""),
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
static SlingshotConfigurationDetail() {
|
|
636
|
+
return Joi.object({
|
|
637
|
+
companies: Joi.array().items(InventoryModel.GCompany()),
|
|
638
|
+
integration: InventoryModel.SlingshotIntegration(),
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
static SlingshotIntegration() {
|
|
642
|
+
return Joi.object({
|
|
643
|
+
_id: Joi.string().allow(""),
|
|
644
|
+
description: Joi.string().allow(""),
|
|
645
|
+
meta: Joi.array().items(InventoryModel.Metum()),
|
|
646
|
+
name: Joi.string().allow(""),
|
|
647
|
+
slug: Joi.string().allow(""),
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
static StoreConfig() {
|
|
1087
651
|
return Joi.object({
|
|
1088
652
|
job_code: Joi.string().allow(""),
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
total_failure_count: Joi.number(),
|
|
1097
|
-
|
|
1098
|
-
total_warning_count: Joi.number(),
|
|
1099
|
-
|
|
1100
|
-
total_suppressed_count: Joi.number(),
|
|
1101
|
-
|
|
1102
|
-
total_job_runs: Joi.number(),
|
|
653
|
+
process_config: InventoryModel.ProcessConfig(),
|
|
654
|
+
properties: Joi.object().pattern(/\S/, Joi.string().allow("")),
|
|
655
|
+
store_alias: Joi.string().allow(""),
|
|
656
|
+
store_file_name: Joi.string().allow(""),
|
|
657
|
+
store_file_regex: Joi.string().allow(""),
|
|
658
|
+
storeid: Joi.string().allow(""),
|
|
1103
659
|
});
|
|
1104
660
|
}
|
|
1105
|
-
|
|
1106
|
-
static ResponseEnvelopeJobMetricsDto() {
|
|
661
|
+
static StoreData() {
|
|
1107
662
|
return Joi.object({
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
status: Joi.number(),
|
|
1111
|
-
|
|
1112
|
-
error: Joi.string().allow(""),
|
|
1113
|
-
|
|
1114
|
-
exception: Joi.string().allow(""),
|
|
1115
|
-
|
|
1116
|
-
message: Joi.string().allow(""),
|
|
1117
|
-
|
|
1118
|
-
total_time_taken_in_millis: Joi.number(),
|
|
1119
|
-
|
|
1120
|
-
http_status: Joi.string().allow(""),
|
|
1121
|
-
|
|
1122
|
-
items: InventoryModel.JobMetricsDto(),
|
|
1123
|
-
|
|
1124
|
-
payload: InventoryModel.JobMetricsDto(),
|
|
1125
|
-
|
|
1126
|
-
trace_id: Joi.string().allow(""),
|
|
1127
|
-
|
|
1128
|
-
page: InventoryModel.Page(),
|
|
663
|
+
location_id: Joi.string().allow(""),
|
|
1129
664
|
});
|
|
1130
665
|
}
|
|
1131
|
-
|
|
1132
|
-
static JobConfigListDTO() {
|
|
666
|
+
static StoreFilter() {
|
|
1133
667
|
return Joi.object({
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
modified_by: Joi.string().allow(""),
|
|
1139
|
-
|
|
1140
|
-
created_by: Joi.string().allow(""),
|
|
1141
|
-
|
|
1142
|
-
modified_on: Joi.string().allow(""),
|
|
1143
|
-
|
|
1144
|
-
created_on: Joi.string().allow(""),
|
|
1145
|
-
|
|
1146
|
-
active: Joi.boolean(),
|
|
1147
|
-
|
|
1148
|
-
type: Joi.string().allow(""),
|
|
668
|
+
exclude_tags: Joi.array().items(Joi.string().allow("")),
|
|
669
|
+
include_tags: Joi.array().items(Joi.string().allow("")),
|
|
670
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
1149
671
|
});
|
|
1150
672
|
}
|
|
1151
|
-
|
|
1152
|
-
static ResponseEnvelopeListJobConfigListDTO() {
|
|
673
|
+
static SuppressStoreModel() {
|
|
1153
674
|
return Joi.object({
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
675
|
+
stores: Joi.array().items(Joi.number()),
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
static SuppressStorePayload() {
|
|
679
|
+
return Joi.object({
|
|
680
|
+
meta: InventoryModel.KafkaMetaModel(),
|
|
681
|
+
payload: Joi.array().items(InventoryModel.SuppressStoreModel()),
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
static TaskConfig() {
|
|
685
|
+
return Joi.object({
|
|
686
|
+
name: Joi.string().allow(""),
|
|
687
|
+
task_config_id: Joi.number(),
|
|
688
|
+
task_params: Joi.array().items(InventoryModel.TaskParam()),
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
static TaskDTO() {
|
|
692
|
+
return Joi.object({
|
|
693
|
+
group_list: Joi.array().items(InventoryModel.GenericDTO()),
|
|
694
|
+
type: Joi.number(),
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
static TaskParam() {
|
|
698
|
+
return Joi.object({
|
|
699
|
+
name: Joi.string().allow(""),
|
|
700
|
+
value: Joi.any(),
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
static TaskStepConfig() {
|
|
704
|
+
return Joi.object({
|
|
705
|
+
task_config_group_ids: Joi.array().items(Joi.number()),
|
|
706
|
+
task_config_ids: Joi.array().items(Joi.number()),
|
|
707
|
+
task_configs: Joi.array().items(InventoryModel.TaskConfig()),
|
|
1175
708
|
});
|
|
1176
709
|
}
|
|
1177
710
|
}
|