@gofynd/fdk-client-javascript 1.0.0 → 1.0.1
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/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -51,6 +51,26 @@ class Discount {
|
|
|
51
51
|
return Promise.reject(new FDKClientValidationError(error));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
// Showing warrnings if extra unknown parameters are found
|
|
55
|
+
const { error: warrning } = DiscountValidator.getDiscounts().validate(
|
|
56
|
+
{
|
|
57
|
+
view,
|
|
58
|
+
q,
|
|
59
|
+
pageNo,
|
|
60
|
+
pageSize,
|
|
61
|
+
archived,
|
|
62
|
+
month,
|
|
63
|
+
year,
|
|
64
|
+
type,
|
|
65
|
+
appIds,
|
|
66
|
+
},
|
|
67
|
+
{ abortEarly: false, allowUnknown: false }
|
|
68
|
+
);
|
|
69
|
+
if (warrning) {
|
|
70
|
+
console.log("Parameter Validation warrnings for getDiscounts");
|
|
71
|
+
console.log(warrning);
|
|
72
|
+
}
|
|
73
|
+
|
|
54
74
|
const query_params = {};
|
|
55
75
|
query_params["view"] = view;
|
|
56
76
|
query_params["q"] = q;
|
|
@@ -91,6 +111,18 @@ class Discount {
|
|
|
91
111
|
return Promise.reject(new FDKClientValidationError(error));
|
|
92
112
|
}
|
|
93
113
|
|
|
114
|
+
// Showing warrnings if extra unknown parameters are found
|
|
115
|
+
const { error: warrning } = DiscountValidator.createDiscount().validate(
|
|
116
|
+
{
|
|
117
|
+
body,
|
|
118
|
+
},
|
|
119
|
+
{ abortEarly: false, allowUnknown: false }
|
|
120
|
+
);
|
|
121
|
+
if (warrning) {
|
|
122
|
+
console.log("Parameter Validation warrnings for createDiscount");
|
|
123
|
+
console.log(warrning);
|
|
124
|
+
}
|
|
125
|
+
|
|
94
126
|
const query_params = {};
|
|
95
127
|
|
|
96
128
|
const xHeaders = {};
|
|
@@ -122,6 +154,18 @@ class Discount {
|
|
|
122
154
|
return Promise.reject(new FDKClientValidationError(error));
|
|
123
155
|
}
|
|
124
156
|
|
|
157
|
+
// Showing warrnings if extra unknown parameters are found
|
|
158
|
+
const { error: warrning } = DiscountValidator.getDiscount().validate(
|
|
159
|
+
{
|
|
160
|
+
id,
|
|
161
|
+
},
|
|
162
|
+
{ abortEarly: false, allowUnknown: false }
|
|
163
|
+
);
|
|
164
|
+
if (warrning) {
|
|
165
|
+
console.log("Parameter Validation warrnings for getDiscount");
|
|
166
|
+
console.log(warrning);
|
|
167
|
+
}
|
|
168
|
+
|
|
125
169
|
const query_params = {};
|
|
126
170
|
|
|
127
171
|
const xHeaders = {};
|
|
@@ -155,6 +199,19 @@ class Discount {
|
|
|
155
199
|
return Promise.reject(new FDKClientValidationError(error));
|
|
156
200
|
}
|
|
157
201
|
|
|
202
|
+
// Showing warrnings if extra unknown parameters are found
|
|
203
|
+
const { error: warrning } = DiscountValidator.updateDiscount().validate(
|
|
204
|
+
{
|
|
205
|
+
id,
|
|
206
|
+
body,
|
|
207
|
+
},
|
|
208
|
+
{ abortEarly: false, allowUnknown: false }
|
|
209
|
+
);
|
|
210
|
+
if (warrning) {
|
|
211
|
+
console.log("Parameter Validation warrnings for updateDiscount");
|
|
212
|
+
console.log(warrning);
|
|
213
|
+
}
|
|
214
|
+
|
|
158
215
|
const query_params = {};
|
|
159
216
|
|
|
160
217
|
const xHeaders = {};
|
|
@@ -188,6 +245,21 @@ class Discount {
|
|
|
188
245
|
return Promise.reject(new FDKClientValidationError(error));
|
|
189
246
|
}
|
|
190
247
|
|
|
248
|
+
// Showing warrnings if extra unknown parameters are found
|
|
249
|
+
const {
|
|
250
|
+
error: warrning,
|
|
251
|
+
} = DiscountValidator.upsertDiscountItems().validate(
|
|
252
|
+
{
|
|
253
|
+
id,
|
|
254
|
+
body,
|
|
255
|
+
},
|
|
256
|
+
{ abortEarly: false, allowUnknown: false }
|
|
257
|
+
);
|
|
258
|
+
if (warrning) {
|
|
259
|
+
console.log("Parameter Validation warrnings for upsertDiscountItems");
|
|
260
|
+
console.log(warrning);
|
|
261
|
+
}
|
|
262
|
+
|
|
191
263
|
const query_params = {};
|
|
192
264
|
|
|
193
265
|
const xHeaders = {};
|
|
@@ -221,6 +293,21 @@ class Discount {
|
|
|
221
293
|
return Promise.reject(new FDKClientValidationError(error));
|
|
222
294
|
}
|
|
223
295
|
|
|
296
|
+
// Showing warrnings if extra unknown parameters are found
|
|
297
|
+
const {
|
|
298
|
+
error: warrning,
|
|
299
|
+
} = DiscountValidator.validateDiscountFile().validate(
|
|
300
|
+
{
|
|
301
|
+
body,
|
|
302
|
+
discount,
|
|
303
|
+
},
|
|
304
|
+
{ abortEarly: false, allowUnknown: false }
|
|
305
|
+
);
|
|
306
|
+
if (warrning) {
|
|
307
|
+
console.log("Parameter Validation warrnings for validateDiscountFile");
|
|
308
|
+
console.log(warrning);
|
|
309
|
+
}
|
|
310
|
+
|
|
224
311
|
const query_params = {};
|
|
225
312
|
query_params["discount"] = discount;
|
|
226
313
|
|
|
@@ -255,6 +342,21 @@ class Discount {
|
|
|
255
342
|
return Promise.reject(new FDKClientValidationError(error));
|
|
256
343
|
}
|
|
257
344
|
|
|
345
|
+
// Showing warrnings if extra unknown parameters are found
|
|
346
|
+
const {
|
|
347
|
+
error: warrning,
|
|
348
|
+
} = DiscountValidator.downloadDiscountFile().validate(
|
|
349
|
+
{
|
|
350
|
+
type,
|
|
351
|
+
body,
|
|
352
|
+
},
|
|
353
|
+
{ abortEarly: false, allowUnknown: false }
|
|
354
|
+
);
|
|
355
|
+
if (warrning) {
|
|
356
|
+
console.log("Parameter Validation warrnings for downloadDiscountFile");
|
|
357
|
+
console.log(warrning);
|
|
358
|
+
}
|
|
359
|
+
|
|
258
360
|
const query_params = {};
|
|
259
361
|
|
|
260
362
|
const xHeaders = {};
|
|
@@ -286,6 +388,18 @@ class Discount {
|
|
|
286
388
|
return Promise.reject(new FDKClientValidationError(error));
|
|
287
389
|
}
|
|
288
390
|
|
|
391
|
+
// Showing warrnings if extra unknown parameters are found
|
|
392
|
+
const { error: warrning } = DiscountValidator.getValidationJob().validate(
|
|
393
|
+
{
|
|
394
|
+
id,
|
|
395
|
+
},
|
|
396
|
+
{ abortEarly: false, allowUnknown: false }
|
|
397
|
+
);
|
|
398
|
+
if (warrning) {
|
|
399
|
+
console.log("Parameter Validation warrnings for getValidationJob");
|
|
400
|
+
console.log(warrning);
|
|
401
|
+
}
|
|
402
|
+
|
|
289
403
|
const query_params = {};
|
|
290
404
|
|
|
291
405
|
const xHeaders = {};
|
|
@@ -317,6 +431,20 @@ class Discount {
|
|
|
317
431
|
return Promise.reject(new FDKClientValidationError(error));
|
|
318
432
|
}
|
|
319
433
|
|
|
434
|
+
// Showing warrnings if extra unknown parameters are found
|
|
435
|
+
const {
|
|
436
|
+
error: warrning,
|
|
437
|
+
} = DiscountValidator.cancelValidationJob().validate(
|
|
438
|
+
{
|
|
439
|
+
id,
|
|
440
|
+
},
|
|
441
|
+
{ abortEarly: false, allowUnknown: false }
|
|
442
|
+
);
|
|
443
|
+
if (warrning) {
|
|
444
|
+
console.log("Parameter Validation warrnings for cancelValidationJob");
|
|
445
|
+
console.log(warrning);
|
|
446
|
+
}
|
|
447
|
+
|
|
320
448
|
const query_params = {};
|
|
321
449
|
|
|
322
450
|
const xHeaders = {};
|
|
@@ -348,6 +476,18 @@ class Discount {
|
|
|
348
476
|
return Promise.reject(new FDKClientValidationError(error));
|
|
349
477
|
}
|
|
350
478
|
|
|
479
|
+
// Showing warrnings if extra unknown parameters are found
|
|
480
|
+
const { error: warrning } = DiscountValidator.getDownloadJob().validate(
|
|
481
|
+
{
|
|
482
|
+
id,
|
|
483
|
+
},
|
|
484
|
+
{ abortEarly: false, allowUnknown: false }
|
|
485
|
+
);
|
|
486
|
+
if (warrning) {
|
|
487
|
+
console.log("Parameter Validation warrnings for getDownloadJob");
|
|
488
|
+
console.log(warrning);
|
|
489
|
+
}
|
|
490
|
+
|
|
351
491
|
const query_params = {};
|
|
352
492
|
|
|
353
493
|
const xHeaders = {};
|
|
@@ -379,6 +519,18 @@ class Discount {
|
|
|
379
519
|
return Promise.reject(new FDKClientValidationError(error));
|
|
380
520
|
}
|
|
381
521
|
|
|
522
|
+
// Showing warrnings if extra unknown parameters are found
|
|
523
|
+
const { error: warrning } = DiscountValidator.cancelDownloadJob().validate(
|
|
524
|
+
{
|
|
525
|
+
id,
|
|
526
|
+
},
|
|
527
|
+
{ abortEarly: false, allowUnknown: false }
|
|
528
|
+
);
|
|
529
|
+
if (warrning) {
|
|
530
|
+
console.log("Parameter Validation warrnings for cancelDownloadJob");
|
|
531
|
+
console.log(warrning);
|
|
532
|
+
}
|
|
533
|
+
|
|
382
534
|
const query_params = {};
|
|
383
535
|
|
|
384
536
|
const xHeaders = {};
|
|
@@ -45,6 +45,19 @@ class FileStorage {
|
|
|
45
45
|
return Promise.reject(new FDKClientValidationError(error));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
// Showing warrnings if extra unknown parameters are found
|
|
49
|
+
const { error: warrning } = FileStorageValidator.appStartUpload().validate(
|
|
50
|
+
{
|
|
51
|
+
namespace,
|
|
52
|
+
body,
|
|
53
|
+
},
|
|
54
|
+
{ abortEarly: false, allowUnknown: false }
|
|
55
|
+
);
|
|
56
|
+
if (warrning) {
|
|
57
|
+
console.log("Parameter Validation warrnings for appStartUpload");
|
|
58
|
+
console.log(warrning);
|
|
59
|
+
}
|
|
60
|
+
|
|
48
61
|
const query_params = {};
|
|
49
62
|
|
|
50
63
|
return PlatformAPIClient.execute(
|
|
@@ -92,6 +105,21 @@ class FileStorage {
|
|
|
92
105
|
return Promise.reject(new FDKClientValidationError(error));
|
|
93
106
|
}
|
|
94
107
|
|
|
108
|
+
// Showing warrnings if extra unknown parameters are found
|
|
109
|
+
const {
|
|
110
|
+
error: warrning,
|
|
111
|
+
} = FileStorageValidator.appCompleteUpload().validate(
|
|
112
|
+
{
|
|
113
|
+
namespace,
|
|
114
|
+
body,
|
|
115
|
+
},
|
|
116
|
+
{ abortEarly: false, allowUnknown: false }
|
|
117
|
+
);
|
|
118
|
+
if (warrning) {
|
|
119
|
+
console.log("Parameter Validation warrnings for appCompleteUpload");
|
|
120
|
+
console.log(warrning);
|
|
121
|
+
}
|
|
122
|
+
|
|
95
123
|
const query_params = {};
|
|
96
124
|
|
|
97
125
|
return PlatformAPIClient.execute(
|
|
@@ -122,6 +150,19 @@ class FileStorage {
|
|
|
122
150
|
return Promise.reject(new FDKClientValidationError(error));
|
|
123
151
|
}
|
|
124
152
|
|
|
153
|
+
// Showing warrnings if extra unknown parameters are found
|
|
154
|
+
const { error: warrning } = FileStorageValidator.appCopyFiles().validate(
|
|
155
|
+
{
|
|
156
|
+
body,
|
|
157
|
+
sync,
|
|
158
|
+
},
|
|
159
|
+
{ abortEarly: false, allowUnknown: false }
|
|
160
|
+
);
|
|
161
|
+
if (warrning) {
|
|
162
|
+
console.log("Parameter Validation warrnings for appCopyFiles");
|
|
163
|
+
console.log(warrning);
|
|
164
|
+
}
|
|
165
|
+
|
|
125
166
|
const query_params = {};
|
|
126
167
|
query_params["sync"] = sync;
|
|
127
168
|
|
|
@@ -153,6 +194,19 @@ class FileStorage {
|
|
|
153
194
|
return Promise.reject(new FDKClientValidationError(error));
|
|
154
195
|
}
|
|
155
196
|
|
|
197
|
+
// Showing warrnings if extra unknown parameters are found
|
|
198
|
+
const { error: warrning } = FileStorageValidator.browse().validate(
|
|
199
|
+
{
|
|
200
|
+
namespace,
|
|
201
|
+
pageNo,
|
|
202
|
+
},
|
|
203
|
+
{ abortEarly: false, allowUnknown: false }
|
|
204
|
+
);
|
|
205
|
+
if (warrning) {
|
|
206
|
+
console.log("Parameter Validation warrnings for browse");
|
|
207
|
+
console.log(warrning);
|
|
208
|
+
}
|
|
209
|
+
|
|
156
210
|
const query_params = {};
|
|
157
211
|
query_params["page_no"] = pageNo;
|
|
158
212
|
|
|
@@ -43,6 +43,19 @@ class FileStorage {
|
|
|
43
43
|
return Promise.reject(new FDKClientValidationError(error));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
// Showing warrnings if extra unknown parameters are found
|
|
47
|
+
const { error: warrning } = FileStorageValidator.startUpload().validate(
|
|
48
|
+
{
|
|
49
|
+
namespace,
|
|
50
|
+
body,
|
|
51
|
+
},
|
|
52
|
+
{ abortEarly: false, allowUnknown: false }
|
|
53
|
+
);
|
|
54
|
+
if (warrning) {
|
|
55
|
+
console.log("Parameter Validation warrnings for startUpload");
|
|
56
|
+
console.log(warrning);
|
|
57
|
+
}
|
|
58
|
+
|
|
46
59
|
const query_params = {};
|
|
47
60
|
|
|
48
61
|
const xHeaders = {};
|
|
@@ -93,6 +106,19 @@ class FileStorage {
|
|
|
93
106
|
return Promise.reject(new FDKClientValidationError(error));
|
|
94
107
|
}
|
|
95
108
|
|
|
109
|
+
// Showing warrnings if extra unknown parameters are found
|
|
110
|
+
const { error: warrning } = FileStorageValidator.completeUpload().validate(
|
|
111
|
+
{
|
|
112
|
+
namespace,
|
|
113
|
+
body,
|
|
114
|
+
},
|
|
115
|
+
{ abortEarly: false, allowUnknown: false }
|
|
116
|
+
);
|
|
117
|
+
if (warrning) {
|
|
118
|
+
console.log("Parameter Validation warrnings for completeUpload");
|
|
119
|
+
console.log(warrning);
|
|
120
|
+
}
|
|
121
|
+
|
|
96
122
|
const query_params = {};
|
|
97
123
|
|
|
98
124
|
const xHeaders = {};
|
|
@@ -124,6 +150,18 @@ class FileStorage {
|
|
|
124
150
|
return Promise.reject(new FDKClientValidationError(error));
|
|
125
151
|
}
|
|
126
152
|
|
|
153
|
+
// Showing warrnings if extra unknown parameters are found
|
|
154
|
+
const { error: warrning } = FileStorageValidator.getSignUrls().validate(
|
|
155
|
+
{
|
|
156
|
+
body,
|
|
157
|
+
},
|
|
158
|
+
{ abortEarly: false, allowUnknown: false }
|
|
159
|
+
);
|
|
160
|
+
if (warrning) {
|
|
161
|
+
console.log("Parameter Validation warrnings for getSignUrls");
|
|
162
|
+
console.log(warrning);
|
|
163
|
+
}
|
|
164
|
+
|
|
127
165
|
const query_params = {};
|
|
128
166
|
|
|
129
167
|
const xHeaders = {};
|
|
@@ -157,6 +195,19 @@ class FileStorage {
|
|
|
157
195
|
return Promise.reject(new FDKClientValidationError(error));
|
|
158
196
|
}
|
|
159
197
|
|
|
198
|
+
// Showing warrnings if extra unknown parameters are found
|
|
199
|
+
const { error: warrning } = FileStorageValidator.copyFiles().validate(
|
|
200
|
+
{
|
|
201
|
+
body,
|
|
202
|
+
sync,
|
|
203
|
+
},
|
|
204
|
+
{ abortEarly: false, allowUnknown: false }
|
|
205
|
+
);
|
|
206
|
+
if (warrning) {
|
|
207
|
+
console.log("Parameter Validation warrnings for copyFiles");
|
|
208
|
+
console.log(warrning);
|
|
209
|
+
}
|
|
210
|
+
|
|
160
211
|
const query_params = {};
|
|
161
212
|
query_params["sync"] = sync;
|
|
162
213
|
|
|
@@ -191,6 +242,19 @@ class FileStorage {
|
|
|
191
242
|
return Promise.reject(new FDKClientValidationError(error));
|
|
192
243
|
}
|
|
193
244
|
|
|
245
|
+
// Showing warrnings if extra unknown parameters are found
|
|
246
|
+
const { error: warrning } = FileStorageValidator.browse().validate(
|
|
247
|
+
{
|
|
248
|
+
namespace,
|
|
249
|
+
pageNo,
|
|
250
|
+
},
|
|
251
|
+
{ abortEarly: false, allowUnknown: false }
|
|
252
|
+
);
|
|
253
|
+
if (warrning) {
|
|
254
|
+
console.log("Parameter Validation warrnings for browse");
|
|
255
|
+
console.log(warrning);
|
|
256
|
+
}
|
|
257
|
+
|
|
194
258
|
const query_params = {};
|
|
195
259
|
query_params["page_no"] = pageNo;
|
|
196
260
|
|
|
@@ -249,6 +313,18 @@ class FileStorage {
|
|
|
249
313
|
return Promise.reject(new FDKClientValidationError(error));
|
|
250
314
|
}
|
|
251
315
|
|
|
316
|
+
// Showing warrnings if extra unknown parameters are found
|
|
317
|
+
const { error: warrning } = FileStorageValidator.proxy().validate(
|
|
318
|
+
{
|
|
319
|
+
url,
|
|
320
|
+
},
|
|
321
|
+
{ abortEarly: false, allowUnknown: false }
|
|
322
|
+
);
|
|
323
|
+
if (warrning) {
|
|
324
|
+
console.log("Parameter Validation warrnings for proxy");
|
|
325
|
+
console.log(warrning);
|
|
326
|
+
}
|
|
327
|
+
|
|
252
328
|
const query_params = {};
|
|
253
329
|
query_params["url"] = url;
|
|
254
330
|
|
|
@@ -26,6 +26,19 @@ class Inventory {
|
|
|
26
26
|
return Promise.reject(new FDKClientValidationError(error));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Showing warrnings if extra unknown parameters are found
|
|
30
|
+
const { error: warrning } = InventoryValidator.getJobsByCompany().validate(
|
|
31
|
+
{
|
|
32
|
+
pageNo,
|
|
33
|
+
pageSize,
|
|
34
|
+
},
|
|
35
|
+
{ abortEarly: false, allowUnknown: false }
|
|
36
|
+
);
|
|
37
|
+
if (warrning) {
|
|
38
|
+
console.log("Parameter Validation warrnings for getJobsByCompany");
|
|
39
|
+
console.log(warrning);
|
|
40
|
+
}
|
|
41
|
+
|
|
29
42
|
const query_params = {};
|
|
30
43
|
query_params["page_no"] = pageNo;
|
|
31
44
|
query_params["page_size"] = pageSize;
|
|
@@ -59,6 +72,18 @@ class Inventory {
|
|
|
59
72
|
return Promise.reject(new FDKClientValidationError(error));
|
|
60
73
|
}
|
|
61
74
|
|
|
75
|
+
// Showing warrnings if extra unknown parameters are found
|
|
76
|
+
const { error: warrning } = InventoryValidator.updateJob().validate(
|
|
77
|
+
{
|
|
78
|
+
body,
|
|
79
|
+
},
|
|
80
|
+
{ abortEarly: false, allowUnknown: false }
|
|
81
|
+
);
|
|
82
|
+
if (warrning) {
|
|
83
|
+
console.log("Parameter Validation warrnings for updateJob");
|
|
84
|
+
console.log(warrning);
|
|
85
|
+
}
|
|
86
|
+
|
|
62
87
|
const query_params = {};
|
|
63
88
|
|
|
64
89
|
const xHeaders = {};
|
|
@@ -90,6 +115,18 @@ class Inventory {
|
|
|
90
115
|
return Promise.reject(new FDKClientValidationError(error));
|
|
91
116
|
}
|
|
92
117
|
|
|
118
|
+
// Showing warrnings if extra unknown parameters are found
|
|
119
|
+
const { error: warrning } = InventoryValidator.createJob().validate(
|
|
120
|
+
{
|
|
121
|
+
body,
|
|
122
|
+
},
|
|
123
|
+
{ abortEarly: false, allowUnknown: false }
|
|
124
|
+
);
|
|
125
|
+
if (warrning) {
|
|
126
|
+
console.log("Parameter Validation warrnings for createJob");
|
|
127
|
+
console.log(warrning);
|
|
128
|
+
}
|
|
129
|
+
|
|
93
130
|
const query_params = {};
|
|
94
131
|
|
|
95
132
|
const xHeaders = {};
|
|
@@ -121,6 +158,18 @@ class Inventory {
|
|
|
121
158
|
return Promise.reject(new FDKClientValidationError(error));
|
|
122
159
|
}
|
|
123
160
|
|
|
161
|
+
// Showing warrnings if extra unknown parameters are found
|
|
162
|
+
const { error: warrning } = InventoryValidator.suppressStores().validate(
|
|
163
|
+
{
|
|
164
|
+
body,
|
|
165
|
+
},
|
|
166
|
+
{ abortEarly: false, allowUnknown: false }
|
|
167
|
+
);
|
|
168
|
+
if (warrning) {
|
|
169
|
+
console.log("Parameter Validation warrnings for suppressStores");
|
|
170
|
+
console.log(warrning);
|
|
171
|
+
}
|
|
172
|
+
|
|
124
173
|
const query_params = {};
|
|
125
174
|
|
|
126
175
|
const xHeaders = {};
|
|
@@ -149,6 +198,18 @@ class Inventory {
|
|
|
149
198
|
return Promise.reject(new FDKClientValidationError(error));
|
|
150
199
|
}
|
|
151
200
|
|
|
201
|
+
// Showing warrnings if extra unknown parameters are found
|
|
202
|
+
const {
|
|
203
|
+
error: warrning,
|
|
204
|
+
} = InventoryValidator.getConfigByCompany().validate(
|
|
205
|
+
{},
|
|
206
|
+
{ abortEarly: false, allowUnknown: false }
|
|
207
|
+
);
|
|
208
|
+
if (warrning) {
|
|
209
|
+
console.log("Parameter Validation warrnings for getConfigByCompany");
|
|
210
|
+
console.log(warrning);
|
|
211
|
+
}
|
|
212
|
+
|
|
152
213
|
const query_params = {};
|
|
153
214
|
|
|
154
215
|
const xHeaders = {};
|
|
@@ -180,6 +241,18 @@ class Inventory {
|
|
|
180
241
|
return Promise.reject(new FDKClientValidationError(error));
|
|
181
242
|
}
|
|
182
243
|
|
|
244
|
+
// Showing warrnings if extra unknown parameters are found
|
|
245
|
+
const { error: warrning } = InventoryValidator.getJobSteps().validate(
|
|
246
|
+
{
|
|
247
|
+
jobId,
|
|
248
|
+
},
|
|
249
|
+
{ abortEarly: false, allowUnknown: false }
|
|
250
|
+
);
|
|
251
|
+
if (warrning) {
|
|
252
|
+
console.log("Parameter Validation warrnings for getJobSteps");
|
|
253
|
+
console.log(warrning);
|
|
254
|
+
}
|
|
255
|
+
|
|
183
256
|
const query_params = {};
|
|
184
257
|
|
|
185
258
|
const xHeaders = {};
|
|
@@ -217,6 +290,24 @@ class Inventory {
|
|
|
217
290
|
return Promise.reject(new FDKClientValidationError(error));
|
|
218
291
|
}
|
|
219
292
|
|
|
293
|
+
// Showing warrnings if extra unknown parameters are found
|
|
294
|
+
const {
|
|
295
|
+
error: warrning,
|
|
296
|
+
} = InventoryValidator.getJobByCompanyAndIntegration().validate(
|
|
297
|
+
{
|
|
298
|
+
integrationId,
|
|
299
|
+
pageNo,
|
|
300
|
+
pageSize,
|
|
301
|
+
},
|
|
302
|
+
{ abortEarly: false, allowUnknown: false }
|
|
303
|
+
);
|
|
304
|
+
if (warrning) {
|
|
305
|
+
console.log(
|
|
306
|
+
"Parameter Validation warrnings for getJobByCompanyAndIntegration"
|
|
307
|
+
);
|
|
308
|
+
console.log(warrning);
|
|
309
|
+
}
|
|
310
|
+
|
|
220
311
|
const query_params = {};
|
|
221
312
|
query_params["page_no"] = pageNo;
|
|
222
313
|
query_params["page_size"] = pageSize;
|
|
@@ -250,6 +341,18 @@ class Inventory {
|
|
|
250
341
|
return Promise.reject(new FDKClientValidationError(error));
|
|
251
342
|
}
|
|
252
343
|
|
|
344
|
+
// Showing warrnings if extra unknown parameters are found
|
|
345
|
+
const { error: warrning } = InventoryValidator.disable().validate(
|
|
346
|
+
{
|
|
347
|
+
integrationId,
|
|
348
|
+
},
|
|
349
|
+
{ abortEarly: false, allowUnknown: false }
|
|
350
|
+
);
|
|
351
|
+
if (warrning) {
|
|
352
|
+
console.log("Parameter Validation warrnings for disable");
|
|
353
|
+
console.log(warrning);
|
|
354
|
+
}
|
|
355
|
+
|
|
253
356
|
const query_params = {};
|
|
254
357
|
|
|
255
358
|
const xHeaders = {};
|
|
@@ -278,6 +381,18 @@ class Inventory {
|
|
|
278
381
|
return Promise.reject(new FDKClientValidationError(error));
|
|
279
382
|
}
|
|
280
383
|
|
|
384
|
+
// Showing warrnings if extra unknown parameters are found
|
|
385
|
+
const {
|
|
386
|
+
error: warrning,
|
|
387
|
+
} = InventoryValidator.getJobConfigDefaults().validate(
|
|
388
|
+
{},
|
|
389
|
+
{ abortEarly: false, allowUnknown: false }
|
|
390
|
+
);
|
|
391
|
+
if (warrning) {
|
|
392
|
+
console.log("Parameter Validation warrnings for getJobConfigDefaults");
|
|
393
|
+
console.log(warrning);
|
|
394
|
+
}
|
|
395
|
+
|
|
281
396
|
const query_params = {};
|
|
282
397
|
|
|
283
398
|
const xHeaders = {};
|
|
@@ -309,6 +424,18 @@ class Inventory {
|
|
|
309
424
|
return Promise.reject(new FDKClientValidationError(error));
|
|
310
425
|
}
|
|
311
426
|
|
|
427
|
+
// Showing warrnings if extra unknown parameters are found
|
|
428
|
+
const { error: warrning } = InventoryValidator.getJobByCode().validate(
|
|
429
|
+
{
|
|
430
|
+
code,
|
|
431
|
+
},
|
|
432
|
+
{ abortEarly: false, allowUnknown: false }
|
|
433
|
+
);
|
|
434
|
+
if (warrning) {
|
|
435
|
+
console.log("Parameter Validation warrnings for getJobByCode");
|
|
436
|
+
console.log(warrning);
|
|
437
|
+
}
|
|
438
|
+
|
|
312
439
|
const query_params = {};
|
|
313
440
|
|
|
314
441
|
const xHeaders = {};
|
|
@@ -348,6 +475,22 @@ class Inventory {
|
|
|
348
475
|
return Promise.reject(new FDKClientValidationError(error));
|
|
349
476
|
}
|
|
350
477
|
|
|
478
|
+
// Showing warrnings if extra unknown parameters are found
|
|
479
|
+
const { error: warrning } = InventoryValidator.getJobCodeMetrics().validate(
|
|
480
|
+
{
|
|
481
|
+
code,
|
|
482
|
+
pageNo,
|
|
483
|
+
pageSize,
|
|
484
|
+
status,
|
|
485
|
+
date,
|
|
486
|
+
},
|
|
487
|
+
{ abortEarly: false, allowUnknown: false }
|
|
488
|
+
);
|
|
489
|
+
if (warrning) {
|
|
490
|
+
console.log("Parameter Validation warrnings for getJobCodeMetrics");
|
|
491
|
+
console.log(warrning);
|
|
492
|
+
}
|
|
493
|
+
|
|
351
494
|
const query_params = {};
|
|
352
495
|
query_params["page_no"] = pageNo;
|
|
353
496
|
query_params["page_size"] = pageSize;
|
|
@@ -389,6 +532,24 @@ class Inventory {
|
|
|
389
532
|
return Promise.reject(new FDKClientValidationError(error));
|
|
390
533
|
}
|
|
391
534
|
|
|
535
|
+
// Showing warrnings if extra unknown parameters are found
|
|
536
|
+
const {
|
|
537
|
+
error: warrning,
|
|
538
|
+
} = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
|
|
539
|
+
{
|
|
540
|
+
integrationId,
|
|
541
|
+
pageNo,
|
|
542
|
+
pageSize,
|
|
543
|
+
},
|
|
544
|
+
{ abortEarly: false, allowUnknown: false }
|
|
545
|
+
);
|
|
546
|
+
if (warrning) {
|
|
547
|
+
console.log(
|
|
548
|
+
"Parameter Validation warrnings for getJobCodesByCompanyAndIntegration"
|
|
549
|
+
);
|
|
550
|
+
console.log(warrning);
|
|
551
|
+
}
|
|
552
|
+
|
|
392
553
|
const query_params = {};
|
|
393
554
|
query_params["page_no"] = pageNo;
|
|
394
555
|
query_params["page_size"] = pageSize;
|