@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
|
@@ -12,17 +12,15 @@ class Inventory {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @param {Object} arg - Arg object.
|
|
15
|
-
* @param {
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @description: REST Endpoint that returns all job configs for a company
|
|
15
|
+
* @param {JobConfigDTO} arg.body
|
|
16
|
+
* @returns {Promise<ResponseEnvelopeString>} - Success response
|
|
17
|
+
* @summary: Creates A New Job Config
|
|
18
|
+
* @description: REST Endpoint that creates a new job config
|
|
20
19
|
*/
|
|
21
|
-
async
|
|
22
|
-
const { error } = InventoryValidator.
|
|
20
|
+
async createJob({ body } = {}) {
|
|
21
|
+
const { error } = InventoryValidator.createJob().validate(
|
|
23
22
|
{
|
|
24
|
-
|
|
25
|
-
pageSize,
|
|
23
|
+
body,
|
|
26
24
|
},
|
|
27
25
|
{ abortEarly: false, allowUnknown: true }
|
|
28
26
|
);
|
|
@@ -31,47 +29,44 @@ class Inventory {
|
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
// Showing warrnings if extra unknown parameters are found
|
|
34
|
-
const { error: warrning } = InventoryValidator.
|
|
32
|
+
const { error: warrning } = InventoryValidator.createJob().validate(
|
|
35
33
|
{
|
|
36
|
-
|
|
37
|
-
pageSize,
|
|
34
|
+
body,
|
|
38
35
|
},
|
|
39
36
|
{ abortEarly: false, allowUnknown: false }
|
|
40
37
|
);
|
|
41
38
|
if (warrning) {
|
|
42
39
|
Logger({
|
|
43
40
|
level: "WARN",
|
|
44
|
-
message: "Parameter Validation warrnings for
|
|
41
|
+
message: "Parameter Validation warrnings for createJob",
|
|
45
42
|
});
|
|
46
43
|
Logger({ level: "WARN", message: warrning });
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
const query_params = {};
|
|
50
|
-
query_params["page_no"] = pageNo;
|
|
51
|
-
query_params["page_size"] = pageSize;
|
|
52
47
|
|
|
53
48
|
const xHeaders = {};
|
|
54
49
|
|
|
55
50
|
const response = await PlatformAPIClient.execute(
|
|
56
51
|
this.config,
|
|
57
|
-
"
|
|
52
|
+
"post",
|
|
58
53
|
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
|
|
59
54
|
query_params,
|
|
60
|
-
|
|
55
|
+
body,
|
|
61
56
|
xHeaders
|
|
62
57
|
);
|
|
63
58
|
|
|
64
59
|
const {
|
|
65
60
|
error: res_error,
|
|
66
|
-
} = InventoryModel.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
);
|
|
61
|
+
} = InventoryModel.ResponseEnvelopeString().validate(response, {
|
|
62
|
+
abortEarly: false,
|
|
63
|
+
allowUnknown: false,
|
|
64
|
+
});
|
|
70
65
|
|
|
71
66
|
if (res_error) {
|
|
72
67
|
Logger({
|
|
73
68
|
level: "WARN",
|
|
74
|
-
message: "Response Validation Warnnings for
|
|
69
|
+
message: "Response Validation Warnnings for createJob",
|
|
75
70
|
});
|
|
76
71
|
Logger({ level: "WARN", message: res_error });
|
|
77
72
|
}
|
|
@@ -81,15 +76,15 @@ class Inventory {
|
|
|
81
76
|
|
|
82
77
|
/**
|
|
83
78
|
* @param {Object} arg - Arg object.
|
|
84
|
-
* @param {
|
|
79
|
+
* @param {string} arg.integrationId - IntegrationId
|
|
85
80
|
* @returns {Promise<ResponseEnvelopeString>} - Success response
|
|
86
|
-
* @summary:
|
|
87
|
-
* @description: REST Endpoint that
|
|
81
|
+
* @summary: Disable Job Config
|
|
82
|
+
* @description: REST Endpoint that disables Inventory Job Config
|
|
88
83
|
*/
|
|
89
|
-
async
|
|
90
|
-
const { error } = InventoryValidator.
|
|
84
|
+
async disable({ integrationId } = {}) {
|
|
85
|
+
const { error } = InventoryValidator.disable().validate(
|
|
91
86
|
{
|
|
92
|
-
|
|
87
|
+
integrationId,
|
|
93
88
|
},
|
|
94
89
|
{ abortEarly: false, allowUnknown: true }
|
|
95
90
|
);
|
|
@@ -98,16 +93,16 @@ class Inventory {
|
|
|
98
93
|
}
|
|
99
94
|
|
|
100
95
|
// Showing warrnings if extra unknown parameters are found
|
|
101
|
-
const { error: warrning } = InventoryValidator.
|
|
96
|
+
const { error: warrning } = InventoryValidator.disable().validate(
|
|
102
97
|
{
|
|
103
|
-
|
|
98
|
+
integrationId,
|
|
104
99
|
},
|
|
105
100
|
{ abortEarly: false, allowUnknown: false }
|
|
106
101
|
);
|
|
107
102
|
if (warrning) {
|
|
108
103
|
Logger({
|
|
109
104
|
level: "WARN",
|
|
110
|
-
message: "Parameter Validation warrnings for
|
|
105
|
+
message: "Parameter Validation warrnings for disable",
|
|
111
106
|
});
|
|
112
107
|
Logger({ level: "WARN", message: warrning });
|
|
113
108
|
}
|
|
@@ -118,10 +113,10 @@ class Inventory {
|
|
|
118
113
|
|
|
119
114
|
const response = await PlatformAPIClient.execute(
|
|
120
115
|
this.config,
|
|
121
|
-
"
|
|
122
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
|
|
116
|
+
"get",
|
|
117
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/disable/integration/${integrationId}`,
|
|
123
118
|
query_params,
|
|
124
|
-
|
|
119
|
+
undefined,
|
|
125
120
|
xHeaders
|
|
126
121
|
);
|
|
127
122
|
|
|
@@ -135,7 +130,7 @@ class Inventory {
|
|
|
135
130
|
if (res_error) {
|
|
136
131
|
Logger({
|
|
137
132
|
level: "WARN",
|
|
138
|
-
message: "Response Validation Warnnings for
|
|
133
|
+
message: "Response Validation Warnnings for disable",
|
|
139
134
|
});
|
|
140
135
|
Logger({ level: "WARN", message: res_error });
|
|
141
136
|
}
|
|
@@ -145,16 +140,14 @@ class Inventory {
|
|
|
145
140
|
|
|
146
141
|
/**
|
|
147
142
|
* @param {Object} arg - Arg object.
|
|
148
|
-
* @
|
|
149
|
-
*
|
|
150
|
-
* @summary:
|
|
151
|
-
* @description: REST Endpoint that
|
|
143
|
+
* @returns {Promise<ResponseEnvelopeListSlingshotConfigurationDetail>} -
|
|
144
|
+
* Success response
|
|
145
|
+
* @summary: Get Slingshot Configuration Of A Company
|
|
146
|
+
* @description: REST Endpoint that returns all configuration detail of a company
|
|
152
147
|
*/
|
|
153
|
-
async
|
|
154
|
-
const { error } = InventoryValidator.
|
|
155
|
-
{
|
|
156
|
-
body,
|
|
157
|
-
},
|
|
148
|
+
async getConfigByCompany({} = {}) {
|
|
149
|
+
const { error } = InventoryValidator.getConfigByCompany().validate(
|
|
150
|
+
{},
|
|
158
151
|
{ abortEarly: false, allowUnknown: true }
|
|
159
152
|
);
|
|
160
153
|
if (error) {
|
|
@@ -162,16 +155,16 @@ class Inventory {
|
|
|
162
155
|
}
|
|
163
156
|
|
|
164
157
|
// Showing warrnings if extra unknown parameters are found
|
|
165
|
-
const {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
},
|
|
158
|
+
const {
|
|
159
|
+
error: warrning,
|
|
160
|
+
} = InventoryValidator.getConfigByCompany().validate(
|
|
161
|
+
{},
|
|
169
162
|
{ abortEarly: false, allowUnknown: false }
|
|
170
163
|
);
|
|
171
164
|
if (warrning) {
|
|
172
165
|
Logger({
|
|
173
166
|
level: "WARN",
|
|
174
|
-
message: "Parameter Validation warrnings for
|
|
167
|
+
message: "Parameter Validation warrnings for getConfigByCompany",
|
|
175
168
|
});
|
|
176
169
|
Logger({ level: "WARN", message: warrning });
|
|
177
170
|
}
|
|
@@ -182,24 +175,24 @@ class Inventory {
|
|
|
182
175
|
|
|
183
176
|
const response = await PlatformAPIClient.execute(
|
|
184
177
|
this.config,
|
|
185
|
-
"
|
|
186
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/
|
|
178
|
+
"get",
|
|
179
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/slingshot`,
|
|
187
180
|
query_params,
|
|
188
|
-
|
|
181
|
+
undefined,
|
|
189
182
|
xHeaders
|
|
190
183
|
);
|
|
191
184
|
|
|
192
185
|
const {
|
|
193
186
|
error: res_error,
|
|
194
|
-
} = InventoryModel.
|
|
195
|
-
|
|
196
|
-
allowUnknown: false
|
|
197
|
-
|
|
187
|
+
} = InventoryModel.ResponseEnvelopeListSlingshotConfigurationDetail().validate(
|
|
188
|
+
response,
|
|
189
|
+
{ abortEarly: false, allowUnknown: false }
|
|
190
|
+
);
|
|
198
191
|
|
|
199
192
|
if (res_error) {
|
|
200
193
|
Logger({
|
|
201
194
|
level: "WARN",
|
|
202
|
-
message: "Response Validation Warnnings for
|
|
195
|
+
message: "Response Validation Warnnings for getConfigByCompany",
|
|
203
196
|
});
|
|
204
197
|
Logger({ level: "WARN", message: res_error });
|
|
205
198
|
}
|
|
@@ -209,15 +202,15 @@ class Inventory {
|
|
|
209
202
|
|
|
210
203
|
/**
|
|
211
204
|
* @param {Object} arg - Arg object.
|
|
212
|
-
* @param {
|
|
213
|
-
* @returns {Promise<
|
|
214
|
-
* @summary: Get
|
|
215
|
-
* @description: REST Endpoint that returns
|
|
205
|
+
* @param {string} arg.code - Job Code
|
|
206
|
+
* @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
|
|
207
|
+
* @summary: Get Job Config By Code
|
|
208
|
+
* @description: REST Endpoint that returns job config by code
|
|
216
209
|
*/
|
|
217
|
-
async
|
|
218
|
-
const { error } = InventoryValidator.
|
|
210
|
+
async getJobByCode({ code } = {}) {
|
|
211
|
+
const { error } = InventoryValidator.getJobByCode().validate(
|
|
219
212
|
{
|
|
220
|
-
|
|
213
|
+
code,
|
|
221
214
|
},
|
|
222
215
|
{ abortEarly: false, allowUnknown: true }
|
|
223
216
|
);
|
|
@@ -226,16 +219,16 @@ class Inventory {
|
|
|
226
219
|
}
|
|
227
220
|
|
|
228
221
|
// Showing warrnings if extra unknown parameters are found
|
|
229
|
-
const { error: warrning } = InventoryValidator.
|
|
222
|
+
const { error: warrning } = InventoryValidator.getJobByCode().validate(
|
|
230
223
|
{
|
|
231
|
-
|
|
224
|
+
code,
|
|
232
225
|
},
|
|
233
226
|
{ abortEarly: false, allowUnknown: false }
|
|
234
227
|
);
|
|
235
228
|
if (warrning) {
|
|
236
229
|
Logger({
|
|
237
230
|
level: "WARN",
|
|
238
|
-
message: "Parameter Validation warrnings for
|
|
231
|
+
message: "Parameter Validation warrnings for getJobByCode",
|
|
239
232
|
});
|
|
240
233
|
Logger({ level: "WARN", message: warrning });
|
|
241
234
|
}
|
|
@@ -246,16 +239,16 @@ class Inventory {
|
|
|
246
239
|
|
|
247
240
|
const response = await PlatformAPIClient.execute(
|
|
248
241
|
this.config,
|
|
249
|
-
"
|
|
250
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/
|
|
242
|
+
"get",
|
|
243
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}`,
|
|
251
244
|
query_params,
|
|
252
|
-
|
|
245
|
+
undefined,
|
|
253
246
|
xHeaders
|
|
254
247
|
);
|
|
255
248
|
|
|
256
249
|
const {
|
|
257
250
|
error: res_error,
|
|
258
|
-
} = InventoryModel.
|
|
251
|
+
} = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
|
|
259
252
|
abortEarly: false,
|
|
260
253
|
allowUnknown: false,
|
|
261
254
|
});
|
|
@@ -263,7 +256,7 @@ class Inventory {
|
|
|
263
256
|
if (res_error) {
|
|
264
257
|
Logger({
|
|
265
258
|
level: "WARN",
|
|
266
|
-
message: "Response Validation Warnnings for
|
|
259
|
+
message: "Response Validation Warnnings for getJobByCode",
|
|
267
260
|
});
|
|
268
261
|
Logger({ level: "WARN", message: res_error });
|
|
269
262
|
}
|
|
@@ -273,14 +266,26 @@ class Inventory {
|
|
|
273
266
|
|
|
274
267
|
/**
|
|
275
268
|
* @param {Object} arg - Arg object.
|
|
276
|
-
* @
|
|
277
|
-
*
|
|
278
|
-
* @
|
|
279
|
-
* @
|
|
269
|
+
* @param {string} arg.integrationId - Integration Id
|
|
270
|
+
* @param {number} [arg.pageNo] - Page Number
|
|
271
|
+
* @param {number} [arg.pageSize] - Page Size
|
|
272
|
+
* @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
|
|
273
|
+
* @summary: Get Job Configs By Company And Integration
|
|
274
|
+
* @description: REST Endpoint that returns all job configs by company And integration
|
|
280
275
|
*/
|
|
281
|
-
async
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
async getJobByCompanyAndIntegration({
|
|
277
|
+
integrationId,
|
|
278
|
+
pageNo,
|
|
279
|
+
pageSize,
|
|
280
|
+
} = {}) {
|
|
281
|
+
const {
|
|
282
|
+
error,
|
|
283
|
+
} = InventoryValidator.getJobByCompanyAndIntegration().validate(
|
|
284
|
+
{
|
|
285
|
+
integrationId,
|
|
286
|
+
pageNo,
|
|
287
|
+
pageSize,
|
|
288
|
+
},
|
|
284
289
|
{ abortEarly: false, allowUnknown: true }
|
|
285
290
|
);
|
|
286
291
|
if (error) {
|
|
@@ -290,26 +295,33 @@ class Inventory {
|
|
|
290
295
|
// Showing warrnings if extra unknown parameters are found
|
|
291
296
|
const {
|
|
292
297
|
error: warrning,
|
|
293
|
-
} = InventoryValidator.
|
|
294
|
-
{
|
|
298
|
+
} = InventoryValidator.getJobByCompanyAndIntegration().validate(
|
|
299
|
+
{
|
|
300
|
+
integrationId,
|
|
301
|
+
pageNo,
|
|
302
|
+
pageSize,
|
|
303
|
+
},
|
|
295
304
|
{ abortEarly: false, allowUnknown: false }
|
|
296
305
|
);
|
|
297
306
|
if (warrning) {
|
|
298
307
|
Logger({
|
|
299
308
|
level: "WARN",
|
|
300
|
-
message:
|
|
309
|
+
message:
|
|
310
|
+
"Parameter Validation warrnings for getJobByCompanyAndIntegration",
|
|
301
311
|
});
|
|
302
312
|
Logger({ level: "WARN", message: warrning });
|
|
303
313
|
}
|
|
304
314
|
|
|
305
315
|
const query_params = {};
|
|
316
|
+
query_params["page_no"] = pageNo;
|
|
317
|
+
query_params["page_size"] = pageSize;
|
|
306
318
|
|
|
307
319
|
const xHeaders = {};
|
|
308
320
|
|
|
309
321
|
const response = await PlatformAPIClient.execute(
|
|
310
322
|
this.config,
|
|
311
323
|
"get",
|
|
312
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/
|
|
324
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/integration/${integrationId}`,
|
|
313
325
|
query_params,
|
|
314
326
|
undefined,
|
|
315
327
|
xHeaders
|
|
@@ -317,15 +329,16 @@ class Inventory {
|
|
|
317
329
|
|
|
318
330
|
const {
|
|
319
331
|
error: res_error,
|
|
320
|
-
} = InventoryModel.
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
);
|
|
332
|
+
} = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
|
|
333
|
+
abortEarly: false,
|
|
334
|
+
allowUnknown: false,
|
|
335
|
+
});
|
|
324
336
|
|
|
325
337
|
if (res_error) {
|
|
326
338
|
Logger({
|
|
327
339
|
level: "WARN",
|
|
328
|
-
message:
|
|
340
|
+
message:
|
|
341
|
+
"Response Validation Warnnings for getJobByCompanyAndIntegration",
|
|
329
342
|
});
|
|
330
343
|
Logger({ level: "WARN", message: res_error });
|
|
331
344
|
}
|
|
@@ -335,15 +348,23 @@ class Inventory {
|
|
|
335
348
|
|
|
336
349
|
/**
|
|
337
350
|
* @param {Object} arg - Arg object.
|
|
338
|
-
* @param {
|
|
339
|
-
* @
|
|
340
|
-
* @
|
|
341
|
-
* @
|
|
351
|
+
* @param {string} arg.code - Code
|
|
352
|
+
* @param {number} [arg.pageNo] - Page Number
|
|
353
|
+
* @param {number} [arg.pageSize] - Page Size
|
|
354
|
+
* @param {string} [arg.status] - Status
|
|
355
|
+
* @param {string} [arg.date] - From Date
|
|
356
|
+
* @returns {Promise<ResponseEnvelopeJobMetricsDto>} - Success response
|
|
357
|
+
* @summary: Get Job Metrics
|
|
358
|
+
* @description: REST Endpoint that returns Inventory Run History For A Job Code
|
|
342
359
|
*/
|
|
343
|
-
async
|
|
344
|
-
const { error } = InventoryValidator.
|
|
360
|
+
async getJobCodeMetrics({ code, pageNo, pageSize, status, date } = {}) {
|
|
361
|
+
const { error } = InventoryValidator.getJobCodeMetrics().validate(
|
|
345
362
|
{
|
|
346
|
-
|
|
363
|
+
code,
|
|
364
|
+
pageNo,
|
|
365
|
+
pageSize,
|
|
366
|
+
status,
|
|
367
|
+
date,
|
|
347
368
|
},
|
|
348
369
|
{ abortEarly: false, allowUnknown: true }
|
|
349
370
|
);
|
|
@@ -352,28 +373,36 @@ class Inventory {
|
|
|
352
373
|
}
|
|
353
374
|
|
|
354
375
|
// Showing warrnings if extra unknown parameters are found
|
|
355
|
-
const { error: warrning } = InventoryValidator.
|
|
376
|
+
const { error: warrning } = InventoryValidator.getJobCodeMetrics().validate(
|
|
356
377
|
{
|
|
357
|
-
|
|
378
|
+
code,
|
|
379
|
+
pageNo,
|
|
380
|
+
pageSize,
|
|
381
|
+
status,
|
|
382
|
+
date,
|
|
358
383
|
},
|
|
359
384
|
{ abortEarly: false, allowUnknown: false }
|
|
360
385
|
);
|
|
361
386
|
if (warrning) {
|
|
362
387
|
Logger({
|
|
363
388
|
level: "WARN",
|
|
364
|
-
message: "Parameter Validation warrnings for
|
|
389
|
+
message: "Parameter Validation warrnings for getJobCodeMetrics",
|
|
365
390
|
});
|
|
366
391
|
Logger({ level: "WARN", message: warrning });
|
|
367
392
|
}
|
|
368
393
|
|
|
369
394
|
const query_params = {};
|
|
395
|
+
query_params["page_no"] = pageNo;
|
|
396
|
+
query_params["page_size"] = pageSize;
|
|
397
|
+
query_params["status"] = status;
|
|
398
|
+
query_params["date"] = date;
|
|
370
399
|
|
|
371
400
|
const xHeaders = {};
|
|
372
401
|
|
|
373
402
|
const response = await PlatformAPIClient.execute(
|
|
374
403
|
this.config,
|
|
375
404
|
"get",
|
|
376
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/
|
|
405
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}/metrics`,
|
|
377
406
|
query_params,
|
|
378
407
|
undefined,
|
|
379
408
|
xHeaders
|
|
@@ -381,7 +410,7 @@ class Inventory {
|
|
|
381
410
|
|
|
382
411
|
const {
|
|
383
412
|
error: res_error,
|
|
384
|
-
} = InventoryModel.
|
|
413
|
+
} = InventoryModel.ResponseEnvelopeJobMetricsDto().validate(response, {
|
|
385
414
|
abortEarly: false,
|
|
386
415
|
allowUnknown: false,
|
|
387
416
|
});
|
|
@@ -389,7 +418,7 @@ class Inventory {
|
|
|
389
418
|
if (res_error) {
|
|
390
419
|
Logger({
|
|
391
420
|
level: "WARN",
|
|
392
|
-
message: "Response Validation Warnnings for
|
|
421
|
+
message: "Response Validation Warnnings for getJobCodeMetrics",
|
|
393
422
|
});
|
|
394
423
|
Logger({ level: "WARN", message: res_error });
|
|
395
424
|
}
|
|
@@ -402,18 +431,18 @@ class Inventory {
|
|
|
402
431
|
* @param {string} arg.integrationId - Integration Id
|
|
403
432
|
* @param {number} [arg.pageNo] - Page Number
|
|
404
433
|
* @param {number} [arg.pageSize] - Page Size
|
|
405
|
-
* @returns {Promise<
|
|
406
|
-
* @summary: Get Job
|
|
407
|
-
* @description: REST Endpoint that returns all job
|
|
434
|
+
* @returns {Promise<ResponseEnvelopeListJobConfigListDTO>} - Success response
|
|
435
|
+
* @summary: Get Job Codes By Company And Integration
|
|
436
|
+
* @description: REST Endpoint that returns all job codes by company And integration
|
|
408
437
|
*/
|
|
409
|
-
async
|
|
438
|
+
async getJobCodesByCompanyAndIntegration({
|
|
410
439
|
integrationId,
|
|
411
440
|
pageNo,
|
|
412
441
|
pageSize,
|
|
413
442
|
} = {}) {
|
|
414
443
|
const {
|
|
415
444
|
error,
|
|
416
|
-
} = InventoryValidator.
|
|
445
|
+
} = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
|
|
417
446
|
{
|
|
418
447
|
integrationId,
|
|
419
448
|
pageNo,
|
|
@@ -428,7 +457,7 @@ class Inventory {
|
|
|
428
457
|
// Showing warrnings if extra unknown parameters are found
|
|
429
458
|
const {
|
|
430
459
|
error: warrning,
|
|
431
|
-
} = InventoryValidator.
|
|
460
|
+
} = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
|
|
432
461
|
{
|
|
433
462
|
integrationId,
|
|
434
463
|
pageNo,
|
|
@@ -440,7 +469,7 @@ class Inventory {
|
|
|
440
469
|
Logger({
|
|
441
470
|
level: "WARN",
|
|
442
471
|
message:
|
|
443
|
-
"Parameter Validation warrnings for
|
|
472
|
+
"Parameter Validation warrnings for getJobCodesByCompanyAndIntegration",
|
|
444
473
|
});
|
|
445
474
|
Logger({ level: "WARN", message: warrning });
|
|
446
475
|
}
|
|
@@ -454,7 +483,7 @@ class Inventory {
|
|
|
454
483
|
const response = await PlatformAPIClient.execute(
|
|
455
484
|
this.config,
|
|
456
485
|
"get",
|
|
457
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/integration/${integrationId}`,
|
|
486
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/integration/${integrationId}`,
|
|
458
487
|
query_params,
|
|
459
488
|
undefined,
|
|
460
489
|
xHeaders
|
|
@@ -462,16 +491,16 @@ class Inventory {
|
|
|
462
491
|
|
|
463
492
|
const {
|
|
464
493
|
error: res_error,
|
|
465
|
-
} = InventoryModel.
|
|
466
|
-
|
|
467
|
-
allowUnknown: false
|
|
468
|
-
|
|
494
|
+
} = InventoryModel.ResponseEnvelopeListJobConfigListDTO().validate(
|
|
495
|
+
response,
|
|
496
|
+
{ abortEarly: false, allowUnknown: false }
|
|
497
|
+
);
|
|
469
498
|
|
|
470
499
|
if (res_error) {
|
|
471
500
|
Logger({
|
|
472
501
|
level: "WARN",
|
|
473
502
|
message:
|
|
474
|
-
"Response Validation Warnnings for
|
|
503
|
+
"Response Validation Warnnings for getJobCodesByCompanyAndIntegration",
|
|
475
504
|
});
|
|
476
505
|
Logger({ level: "WARN", message: res_error });
|
|
477
506
|
}
|
|
@@ -481,16 +510,13 @@ class Inventory {
|
|
|
481
510
|
|
|
482
511
|
/**
|
|
483
512
|
* @param {Object} arg - Arg object.
|
|
484
|
-
* @
|
|
485
|
-
* @
|
|
486
|
-
* @
|
|
487
|
-
* @description: REST Endpoint that disables Inventory Job Config
|
|
513
|
+
* @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
|
|
514
|
+
* @summary: Get Job Configs Defaults
|
|
515
|
+
* @description: REST Endpoint that returns default fields job configs by company And integration
|
|
488
516
|
*/
|
|
489
|
-
async
|
|
490
|
-
const { error } = InventoryValidator.
|
|
491
|
-
{
|
|
492
|
-
integrationId,
|
|
493
|
-
},
|
|
517
|
+
async getJobConfigDefaults({} = {}) {
|
|
518
|
+
const { error } = InventoryValidator.getJobConfigDefaults().validate(
|
|
519
|
+
{},
|
|
494
520
|
{ abortEarly: false, allowUnknown: true }
|
|
495
521
|
);
|
|
496
522
|
if (error) {
|
|
@@ -498,16 +524,16 @@ class Inventory {
|
|
|
498
524
|
}
|
|
499
525
|
|
|
500
526
|
// Showing warrnings if extra unknown parameters are found
|
|
501
|
-
const {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
},
|
|
527
|
+
const {
|
|
528
|
+
error: warrning,
|
|
529
|
+
} = InventoryValidator.getJobConfigDefaults().validate(
|
|
530
|
+
{},
|
|
505
531
|
{ abortEarly: false, allowUnknown: false }
|
|
506
532
|
);
|
|
507
533
|
if (warrning) {
|
|
508
534
|
Logger({
|
|
509
535
|
level: "WARN",
|
|
510
|
-
message: "Parameter Validation warrnings for
|
|
536
|
+
message: "Parameter Validation warrnings for getJobConfigDefaults",
|
|
511
537
|
});
|
|
512
538
|
Logger({ level: "WARN", message: warrning });
|
|
513
539
|
}
|
|
@@ -519,7 +545,7 @@ class Inventory {
|
|
|
519
545
|
const response = await PlatformAPIClient.execute(
|
|
520
546
|
this.config,
|
|
521
547
|
"get",
|
|
522
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/
|
|
548
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/defaults`,
|
|
523
549
|
query_params,
|
|
524
550
|
undefined,
|
|
525
551
|
xHeaders
|
|
@@ -527,7 +553,7 @@ class Inventory {
|
|
|
527
553
|
|
|
528
554
|
const {
|
|
529
555
|
error: res_error,
|
|
530
|
-
} = InventoryModel.
|
|
556
|
+
} = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
|
|
531
557
|
abortEarly: false,
|
|
532
558
|
allowUnknown: false,
|
|
533
559
|
});
|
|
@@ -535,7 +561,7 @@ class Inventory {
|
|
|
535
561
|
if (res_error) {
|
|
536
562
|
Logger({
|
|
537
563
|
level: "WARN",
|
|
538
|
-
message: "Response Validation Warnnings for
|
|
564
|
+
message: "Response Validation Warnnings for getJobConfigDefaults",
|
|
539
565
|
});
|
|
540
566
|
Logger({ level: "WARN", message: res_error });
|
|
541
567
|
}
|
|
@@ -545,13 +571,16 @@ class Inventory {
|
|
|
545
571
|
|
|
546
572
|
/**
|
|
547
573
|
* @param {Object} arg - Arg object.
|
|
548
|
-
* @
|
|
549
|
-
* @
|
|
550
|
-
* @
|
|
574
|
+
* @param {number} arg.jobId - Job Id
|
|
575
|
+
* @returns {Promise<ResponseEnvelopeListJobStepsDTO>} - Success response
|
|
576
|
+
* @summary: Get Job Code Steps
|
|
577
|
+
* @description: REST Endpoint that returns Inventory Job Steps
|
|
551
578
|
*/
|
|
552
|
-
async
|
|
553
|
-
const { error } = InventoryValidator.
|
|
554
|
-
{
|
|
579
|
+
async getJobSteps({ jobId } = {}) {
|
|
580
|
+
const { error } = InventoryValidator.getJobSteps().validate(
|
|
581
|
+
{
|
|
582
|
+
jobId,
|
|
583
|
+
},
|
|
555
584
|
{ abortEarly: false, allowUnknown: true }
|
|
556
585
|
);
|
|
557
586
|
if (error) {
|
|
@@ -559,16 +588,16 @@ class Inventory {
|
|
|
559
588
|
}
|
|
560
589
|
|
|
561
590
|
// Showing warrnings if extra unknown parameters are found
|
|
562
|
-
const {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
591
|
+
const { error: warrning } = InventoryValidator.getJobSteps().validate(
|
|
592
|
+
{
|
|
593
|
+
jobId,
|
|
594
|
+
},
|
|
566
595
|
{ abortEarly: false, allowUnknown: false }
|
|
567
596
|
);
|
|
568
597
|
if (warrning) {
|
|
569
598
|
Logger({
|
|
570
599
|
level: "WARN",
|
|
571
|
-
message: "Parameter Validation warrnings for
|
|
600
|
+
message: "Parameter Validation warrnings for getJobSteps",
|
|
572
601
|
});
|
|
573
602
|
Logger({ level: "WARN", message: warrning });
|
|
574
603
|
}
|
|
@@ -580,7 +609,7 @@ class Inventory {
|
|
|
580
609
|
const response = await PlatformAPIClient.execute(
|
|
581
610
|
this.config,
|
|
582
611
|
"get",
|
|
583
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/
|
|
612
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/steps/${jobId}`,
|
|
584
613
|
query_params,
|
|
585
614
|
undefined,
|
|
586
615
|
xHeaders
|
|
@@ -588,7 +617,7 @@ class Inventory {
|
|
|
588
617
|
|
|
589
618
|
const {
|
|
590
619
|
error: res_error,
|
|
591
|
-
} = InventoryModel.
|
|
620
|
+
} = InventoryModel.ResponseEnvelopeListJobStepsDTO().validate(response, {
|
|
592
621
|
abortEarly: false,
|
|
593
622
|
allowUnknown: false,
|
|
594
623
|
});
|
|
@@ -596,7 +625,7 @@ class Inventory {
|
|
|
596
625
|
if (res_error) {
|
|
597
626
|
Logger({
|
|
598
627
|
level: "WARN",
|
|
599
|
-
message: "Response Validation Warnnings for
|
|
628
|
+
message: "Response Validation Warnnings for getJobSteps",
|
|
600
629
|
});
|
|
601
630
|
Logger({ level: "WARN", message: res_error });
|
|
602
631
|
}
|
|
@@ -606,15 +635,17 @@ class Inventory {
|
|
|
606
635
|
|
|
607
636
|
/**
|
|
608
637
|
* @param {Object} arg - Arg object.
|
|
609
|
-
* @param {
|
|
610
|
-
* @
|
|
611
|
-
* @
|
|
612
|
-
* @
|
|
638
|
+
* @param {number} [arg.pageNo] - Page Number
|
|
639
|
+
* @param {number} [arg.pageSize] - Page Size
|
|
640
|
+
* @returns {Promise<ResponseEnvelopeListJobConfigRawDTO>} - Success response
|
|
641
|
+
* @summary: Get Job Configs For A Company
|
|
642
|
+
* @description: REST Endpoint that returns all job configs for a company
|
|
613
643
|
*/
|
|
614
|
-
async
|
|
615
|
-
const { error } = InventoryValidator.
|
|
644
|
+
async getJobsByCompany({ pageNo, pageSize } = {}) {
|
|
645
|
+
const { error } = InventoryValidator.getJobsByCompany().validate(
|
|
616
646
|
{
|
|
617
|
-
|
|
647
|
+
pageNo,
|
|
648
|
+
pageSize,
|
|
618
649
|
},
|
|
619
650
|
{ abortEarly: false, allowUnknown: true }
|
|
620
651
|
);
|
|
@@ -623,28 +654,31 @@ class Inventory {
|
|
|
623
654
|
}
|
|
624
655
|
|
|
625
656
|
// Showing warrnings if extra unknown parameters are found
|
|
626
|
-
const { error: warrning } = InventoryValidator.
|
|
657
|
+
const { error: warrning } = InventoryValidator.getJobsByCompany().validate(
|
|
627
658
|
{
|
|
628
|
-
|
|
659
|
+
pageNo,
|
|
660
|
+
pageSize,
|
|
629
661
|
},
|
|
630
662
|
{ abortEarly: false, allowUnknown: false }
|
|
631
663
|
);
|
|
632
664
|
if (warrning) {
|
|
633
665
|
Logger({
|
|
634
666
|
level: "WARN",
|
|
635
|
-
message: "Parameter Validation warrnings for
|
|
667
|
+
message: "Parameter Validation warrnings for getJobsByCompany",
|
|
636
668
|
});
|
|
637
669
|
Logger({ level: "WARN", message: warrning });
|
|
638
670
|
}
|
|
639
671
|
|
|
640
672
|
const query_params = {};
|
|
673
|
+
query_params["page_no"] = pageNo;
|
|
674
|
+
query_params["page_size"] = pageSize;
|
|
641
675
|
|
|
642
676
|
const xHeaders = {};
|
|
643
677
|
|
|
644
678
|
const response = await PlatformAPIClient.execute(
|
|
645
679
|
this.config,
|
|
646
680
|
"get",
|
|
647
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs
|
|
681
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
|
|
648
682
|
query_params,
|
|
649
683
|
undefined,
|
|
650
684
|
xHeaders
|
|
@@ -652,15 +686,15 @@ class Inventory {
|
|
|
652
686
|
|
|
653
687
|
const {
|
|
654
688
|
error: res_error,
|
|
655
|
-
} = InventoryModel.
|
|
656
|
-
|
|
657
|
-
allowUnknown: false
|
|
658
|
-
|
|
689
|
+
} = InventoryModel.ResponseEnvelopeListJobConfigRawDTO().validate(
|
|
690
|
+
response,
|
|
691
|
+
{ abortEarly: false, allowUnknown: false }
|
|
692
|
+
);
|
|
659
693
|
|
|
660
694
|
if (res_error) {
|
|
661
695
|
Logger({
|
|
662
696
|
level: "WARN",
|
|
663
|
-
message: "Response Validation Warnnings for
|
|
697
|
+
message: "Response Validation Warnnings for getJobsByCompany",
|
|
664
698
|
});
|
|
665
699
|
Logger({ level: "WARN", message: res_error });
|
|
666
700
|
}
|
|
@@ -670,23 +704,15 @@ class Inventory {
|
|
|
670
704
|
|
|
671
705
|
/**
|
|
672
706
|
* @param {Object} arg - Arg object.
|
|
673
|
-
* @param {
|
|
674
|
-
* @
|
|
675
|
-
* @
|
|
676
|
-
* @
|
|
677
|
-
* @param {string} [arg.date] - From Date
|
|
678
|
-
* @returns {Promise<ResponseEnvelopeJobMetricsDto>} - Success response
|
|
679
|
-
* @summary: Get Job Metrics
|
|
680
|
-
* @description: REST Endpoint that returns Inventory Run History For A Job Code
|
|
707
|
+
* @param {SuppressStorePayload} arg.body
|
|
708
|
+
* @returns {Promise<ResponseEnvelopeKafkaResponse>} - Success response
|
|
709
|
+
* @summary: Get Slingshot Configuration Of A Company
|
|
710
|
+
* @description: REST Endpoint that returns all configuration detail of a company
|
|
681
711
|
*/
|
|
682
|
-
async
|
|
683
|
-
const { error } = InventoryValidator.
|
|
712
|
+
async suppressStores({ body } = {}) {
|
|
713
|
+
const { error } = InventoryValidator.suppressStores().validate(
|
|
684
714
|
{
|
|
685
|
-
|
|
686
|
-
pageNo,
|
|
687
|
-
pageSize,
|
|
688
|
-
status,
|
|
689
|
-
date,
|
|
715
|
+
body,
|
|
690
716
|
},
|
|
691
717
|
{ abortEarly: false, allowUnknown: true }
|
|
692
718
|
);
|
|
@@ -695,44 +721,36 @@ class Inventory {
|
|
|
695
721
|
}
|
|
696
722
|
|
|
697
723
|
// Showing warrnings if extra unknown parameters are found
|
|
698
|
-
const { error: warrning } = InventoryValidator.
|
|
724
|
+
const { error: warrning } = InventoryValidator.suppressStores().validate(
|
|
699
725
|
{
|
|
700
|
-
|
|
701
|
-
pageNo,
|
|
702
|
-
pageSize,
|
|
703
|
-
status,
|
|
704
|
-
date,
|
|
726
|
+
body,
|
|
705
727
|
},
|
|
706
728
|
{ abortEarly: false, allowUnknown: false }
|
|
707
729
|
);
|
|
708
730
|
if (warrning) {
|
|
709
731
|
Logger({
|
|
710
732
|
level: "WARN",
|
|
711
|
-
message: "Parameter Validation warrnings for
|
|
733
|
+
message: "Parameter Validation warrnings for suppressStores",
|
|
712
734
|
});
|
|
713
735
|
Logger({ level: "WARN", message: warrning });
|
|
714
736
|
}
|
|
715
737
|
|
|
716
738
|
const query_params = {};
|
|
717
|
-
query_params["page_no"] = pageNo;
|
|
718
|
-
query_params["page_size"] = pageSize;
|
|
719
|
-
query_params["status"] = status;
|
|
720
|
-
query_params["date"] = date;
|
|
721
739
|
|
|
722
740
|
const xHeaders = {};
|
|
723
741
|
|
|
724
742
|
const response = await PlatformAPIClient.execute(
|
|
725
743
|
this.config,
|
|
726
|
-
"
|
|
727
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/
|
|
744
|
+
"post",
|
|
745
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/kafka/suppressStore`,
|
|
728
746
|
query_params,
|
|
729
|
-
|
|
747
|
+
body,
|
|
730
748
|
xHeaders
|
|
731
749
|
);
|
|
732
750
|
|
|
733
751
|
const {
|
|
734
752
|
error: res_error,
|
|
735
|
-
} = InventoryModel.
|
|
753
|
+
} = InventoryModel.ResponseEnvelopeKafkaResponse().validate(response, {
|
|
736
754
|
abortEarly: false,
|
|
737
755
|
allowUnknown: false,
|
|
738
756
|
});
|
|
@@ -740,7 +758,7 @@ class Inventory {
|
|
|
740
758
|
if (res_error) {
|
|
741
759
|
Logger({
|
|
742
760
|
level: "WARN",
|
|
743
|
-
message: "Response Validation Warnnings for
|
|
761
|
+
message: "Response Validation Warnnings for suppressStores",
|
|
744
762
|
});
|
|
745
763
|
Logger({ level: "WARN", message: res_error });
|
|
746
764
|
}
|
|
@@ -750,25 +768,15 @@ class Inventory {
|
|
|
750
768
|
|
|
751
769
|
/**
|
|
752
770
|
* @param {Object} arg - Arg object.
|
|
753
|
-
* @param {
|
|
754
|
-
* @
|
|
755
|
-
* @
|
|
756
|
-
* @
|
|
757
|
-
* @summary: Get Job Codes By Company And Integration
|
|
758
|
-
* @description: REST Endpoint that returns all job codes by company And integration
|
|
771
|
+
* @param {JobConfigDTO} arg.body
|
|
772
|
+
* @returns {Promise<ResponseEnvelopeString>} - Success response
|
|
773
|
+
* @summary: Updates An Existing Job Config
|
|
774
|
+
* @description: REST Endpoint that updates a job config
|
|
759
775
|
*/
|
|
760
|
-
async
|
|
761
|
-
|
|
762
|
-
pageNo,
|
|
763
|
-
pageSize,
|
|
764
|
-
} = {}) {
|
|
765
|
-
const {
|
|
766
|
-
error,
|
|
767
|
-
} = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
|
|
776
|
+
async updateJob({ body } = {}) {
|
|
777
|
+
const { error } = InventoryValidator.updateJob().validate(
|
|
768
778
|
{
|
|
769
|
-
|
|
770
|
-
pageNo,
|
|
771
|
-
pageSize,
|
|
779
|
+
body,
|
|
772
780
|
},
|
|
773
781
|
{ abortEarly: false, allowUnknown: true }
|
|
774
782
|
);
|
|
@@ -777,52 +785,44 @@ class Inventory {
|
|
|
777
785
|
}
|
|
778
786
|
|
|
779
787
|
// Showing warrnings if extra unknown parameters are found
|
|
780
|
-
const {
|
|
781
|
-
error: warrning,
|
|
782
|
-
} = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
|
|
788
|
+
const { error: warrning } = InventoryValidator.updateJob().validate(
|
|
783
789
|
{
|
|
784
|
-
|
|
785
|
-
pageNo,
|
|
786
|
-
pageSize,
|
|
790
|
+
body,
|
|
787
791
|
},
|
|
788
792
|
{ abortEarly: false, allowUnknown: false }
|
|
789
793
|
);
|
|
790
794
|
if (warrning) {
|
|
791
795
|
Logger({
|
|
792
796
|
level: "WARN",
|
|
793
|
-
message:
|
|
794
|
-
"Parameter Validation warrnings for getJobCodesByCompanyAndIntegration",
|
|
797
|
+
message: "Parameter Validation warrnings for updateJob",
|
|
795
798
|
});
|
|
796
799
|
Logger({ level: "WARN", message: warrning });
|
|
797
800
|
}
|
|
798
801
|
|
|
799
802
|
const query_params = {};
|
|
800
|
-
query_params["page_no"] = pageNo;
|
|
801
|
-
query_params["page_size"] = pageSize;
|
|
802
803
|
|
|
803
804
|
const xHeaders = {};
|
|
804
805
|
|
|
805
806
|
const response = await PlatformAPIClient.execute(
|
|
806
807
|
this.config,
|
|
807
|
-
"
|
|
808
|
-
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs
|
|
808
|
+
"put",
|
|
809
|
+
`/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
|
|
809
810
|
query_params,
|
|
810
|
-
|
|
811
|
+
body,
|
|
811
812
|
xHeaders
|
|
812
813
|
);
|
|
813
814
|
|
|
814
815
|
const {
|
|
815
816
|
error: res_error,
|
|
816
|
-
} = InventoryModel.
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
);
|
|
817
|
+
} = InventoryModel.ResponseEnvelopeString().validate(response, {
|
|
818
|
+
abortEarly: false,
|
|
819
|
+
allowUnknown: false,
|
|
820
|
+
});
|
|
820
821
|
|
|
821
822
|
if (res_error) {
|
|
822
823
|
Logger({
|
|
823
824
|
level: "WARN",
|
|
824
|
-
message:
|
|
825
|
-
"Response Validation Warnnings for getJobCodesByCompanyAndIntegration",
|
|
825
|
+
message: "Response Validation Warnnings for updateJob",
|
|
826
826
|
});
|
|
827
827
|
Logger({ level: "WARN", message: res_error });
|
|
828
828
|
}
|