@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.
Files changed (104) hide show
  1. package/documentation/application/CATALOG.md +371 -371
  2. package/documentation/application/ORDER.md +272 -272
  3. package/documentation/application/PAYMENT.md +269 -269
  4. package/documentation/platform/CATALOG.md +1678 -1664
  5. package/documentation/platform/COMPANYPROFILE.md +201 -201
  6. package/documentation/platform/ORDER.md +1442 -1323
  7. package/documentation/platform/PAYMENT.md +88 -88
  8. package/index.js +7 -1
  9. package/package.json +1 -1
  10. package/sdk/application/Cart/CartApplicationClient.js +302 -0
  11. package/sdk/application/Cart/CartApplicationValidator.js +1 -0
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
  16. package/sdk/application/Common/CommonApplicationClient.js +22 -0
  17. package/sdk/application/Common/CommonApplicationValidator.js +1 -0
  18. package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
  19. package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
  21. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  22. package/sdk/application/Content/ContentApplicationClient.js +215 -0
  23. package/sdk/application/Content/ContentApplicationValidator.js +1 -0
  24. package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
  25. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
  26. package/sdk/application/Lead/LeadApplicationClient.js +81 -0
  27. package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
  29. package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
  30. package/sdk/application/Order/OrderApplicationClient.js +146 -0
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
  32. package/sdk/application/Order/OrderApplicationModel.js +329 -329
  33. package/sdk/application/Order/OrderApplicationValidator.js +1 -0
  34. package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
  35. package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
  36. package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
  37. package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
  38. package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
  39. package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
  40. package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
  41. package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
  42. package/sdk/application/Share/ShareApplicationClient.js +87 -0
  43. package/sdk/application/Share/ShareApplicationValidator.js +1 -0
  44. package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
  45. package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
  46. package/sdk/application/User/UserApplicationClient.js +405 -0
  47. package/sdk/application/User/UserApplicationValidator.js +1 -0
  48. package/sdk/common/AxiosHelper.js +1 -1
  49. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
  52. package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
  53. package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
  54. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
  55. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
  56. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
  58. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
  59. package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
  60. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
  61. package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
  62. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
  63. package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
  64. package/sdk/platform/Common/CommonPlatformClient.js +26 -0
  65. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
  66. package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
  69. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
  70. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
  71. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
  73. package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
  74. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
  75. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
  76. package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
  77. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
  78. package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
  79. package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
  80. package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
  81. package/sdk/platform/Order/OrderPlatformClient.js +674 -15
  82. package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
  83. package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
  84. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
  85. package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
  86. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
  87. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
  88. package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
  89. package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
  90. package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
  91. package/sdk/platform/PlatformApplicationClient.js +2514 -2524
  92. package/sdk/platform/PlatformClient.d.ts +2217 -2243
  93. package/sdk/platform/PlatformClient.js +2514 -2524
  94. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
  95. package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
  96. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
  97. package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
  98. package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
  99. package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
  100. package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
  101. package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
  102. package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
  103. package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
  104. package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
@@ -38,6 +38,23 @@ class Lead {
38
38
  return Promise.reject(new FDKClientValidationError(error));
39
39
  }
40
40
 
41
+ // Showing warrnings if extra unknown parameters are found
42
+ const { error: warrning } = LeadValidator.getTickets().validate(
43
+ {
44
+ items,
45
+ filters,
46
+ q,
47
+ status,
48
+ priority,
49
+ category,
50
+ },
51
+ { abortEarly: false, allowUnknown: false }
52
+ );
53
+ if (warrning) {
54
+ console.log("Parameter Validation warrnings for getTickets");
55
+ console.log(warrning);
56
+ }
57
+
41
58
  const query_params = {};
42
59
  query_params["items"] = items;
43
60
  query_params["filters"] = filters;
@@ -72,6 +89,18 @@ class Lead {
72
89
  return Promise.reject(new FDKClientValidationError(error));
73
90
  }
74
91
 
92
+ // Showing warrnings if extra unknown parameters are found
93
+ const { error: warrning } = LeadValidator.getTicket().validate(
94
+ {
95
+ id,
96
+ },
97
+ { abortEarly: false, allowUnknown: false }
98
+ );
99
+ if (warrning) {
100
+ console.log("Parameter Validation warrnings for getTicket");
101
+ console.log(warrning);
102
+ }
103
+
75
104
  const query_params = {};
76
105
 
77
106
  return PlatformAPIClient.execute(
@@ -102,6 +131,19 @@ class Lead {
102
131
  return Promise.reject(new FDKClientValidationError(error));
103
132
  }
104
133
 
134
+ // Showing warrnings if extra unknown parameters are found
135
+ const { error: warrning } = LeadValidator.editTicket().validate(
136
+ {
137
+ id,
138
+ body,
139
+ },
140
+ { abortEarly: false, allowUnknown: false }
141
+ );
142
+ if (warrning) {
143
+ console.log("Parameter Validation warrnings for editTicket");
144
+ console.log(warrning);
145
+ }
146
+
105
147
  const query_params = {};
106
148
 
107
149
  return PlatformAPIClient.execute(
@@ -132,6 +174,19 @@ class Lead {
132
174
  return Promise.reject(new FDKClientValidationError(error));
133
175
  }
134
176
 
177
+ // Showing warrnings if extra unknown parameters are found
178
+ const { error: warrning } = LeadValidator.createHistory().validate(
179
+ {
180
+ id,
181
+ body,
182
+ },
183
+ { abortEarly: false, allowUnknown: false }
184
+ );
185
+ if (warrning) {
186
+ console.log("Parameter Validation warrnings for createHistory");
187
+ console.log(warrning);
188
+ }
189
+
135
190
  const query_params = {};
136
191
 
137
192
  return PlatformAPIClient.execute(
@@ -160,6 +215,18 @@ class Lead {
160
215
  return Promise.reject(new FDKClientValidationError(error));
161
216
  }
162
217
 
218
+ // Showing warrnings if extra unknown parameters are found
219
+ const { error: warrning } = LeadValidator.getTicketHistory().validate(
220
+ {
221
+ id,
222
+ },
223
+ { abortEarly: false, allowUnknown: false }
224
+ );
225
+ if (warrning) {
226
+ console.log("Parameter Validation warrnings for getTicketHistory");
227
+ console.log(warrning);
228
+ }
229
+
163
230
  const query_params = {};
164
231
 
165
232
  return PlatformAPIClient.execute(
@@ -188,6 +255,18 @@ class Lead {
188
255
  return Promise.reject(new FDKClientValidationError(error));
189
256
  }
190
257
 
258
+ // Showing warrnings if extra unknown parameters are found
259
+ const { error: warrning } = LeadValidator.getCustomForm().validate(
260
+ {
261
+ slug,
262
+ },
263
+ { abortEarly: false, allowUnknown: false }
264
+ );
265
+ if (warrning) {
266
+ console.log("Parameter Validation warrnings for getCustomForm");
267
+ console.log(warrning);
268
+ }
269
+
191
270
  const query_params = {};
192
271
 
193
272
  return PlatformAPIClient.execute(
@@ -218,6 +297,19 @@ class Lead {
218
297
  return Promise.reject(new FDKClientValidationError(error));
219
298
  }
220
299
 
300
+ // Showing warrnings if extra unknown parameters are found
301
+ const { error: warrning } = LeadValidator.editCustomForm().validate(
302
+ {
303
+ slug,
304
+ body,
305
+ },
306
+ { abortEarly: false, allowUnknown: false }
307
+ );
308
+ if (warrning) {
309
+ console.log("Parameter Validation warrnings for editCustomForm");
310
+ console.log(warrning);
311
+ }
312
+
221
313
  const query_params = {};
222
314
 
223
315
  return PlatformAPIClient.execute(
@@ -243,6 +335,16 @@ class Lead {
243
335
  return Promise.reject(new FDKClientValidationError(error));
244
336
  }
245
337
 
338
+ // Showing warrnings if extra unknown parameters are found
339
+ const { error: warrning } = LeadValidator.getCustomForms().validate(
340
+ {},
341
+ { abortEarly: false, allowUnknown: false }
342
+ );
343
+ if (warrning) {
344
+ console.log("Parameter Validation warrnings for getCustomForms");
345
+ console.log(warrning);
346
+ }
347
+
246
348
  const query_params = {};
247
349
 
248
350
  return PlatformAPIClient.execute(
@@ -271,6 +373,18 @@ class Lead {
271
373
  return Promise.reject(new FDKClientValidationError(error));
272
374
  }
273
375
 
376
+ // Showing warrnings if extra unknown parameters are found
377
+ const { error: warrning } = LeadValidator.createCustomForm().validate(
378
+ {
379
+ body,
380
+ },
381
+ { abortEarly: false, allowUnknown: false }
382
+ );
383
+ if (warrning) {
384
+ console.log("Parameter Validation warrnings for createCustomForm");
385
+ console.log(warrning);
386
+ }
387
+
274
388
  const query_params = {};
275
389
 
276
390
  return PlatformAPIClient.execute(
@@ -299,6 +413,18 @@ class Lead {
299
413
  return Promise.reject(new FDKClientValidationError(error));
300
414
  }
301
415
 
416
+ // Showing warrnings if extra unknown parameters are found
417
+ const { error: warrning } = LeadValidator.getTokenForVideoRoom().validate(
418
+ {
419
+ uniqueName,
420
+ },
421
+ { abortEarly: false, allowUnknown: false }
422
+ );
423
+ if (warrning) {
424
+ console.log("Parameter Validation warrnings for getTokenForVideoRoom");
425
+ console.log(warrning);
426
+ }
427
+
302
428
  const query_params = {};
303
429
 
304
430
  return PlatformAPIClient.execute(
@@ -327,6 +453,18 @@ class Lead {
327
453
  return Promise.reject(new FDKClientValidationError(error));
328
454
  }
329
455
 
456
+ // Showing warrnings if extra unknown parameters are found
457
+ const { error: warrning } = LeadValidator.getVideoParticipants().validate(
458
+ {
459
+ uniqueName,
460
+ },
461
+ { abortEarly: false, allowUnknown: false }
462
+ );
463
+ if (warrning) {
464
+ console.log("Parameter Validation warrnings for getVideoParticipants");
465
+ console.log(warrning);
466
+ }
467
+
330
468
  const query_params = {};
331
469
 
332
470
  return PlatformAPIClient.execute(
@@ -355,6 +493,18 @@ class Lead {
355
493
  return Promise.reject(new FDKClientValidationError(error));
356
494
  }
357
495
 
496
+ // Showing warrnings if extra unknown parameters are found
497
+ const { error: warrning } = LeadValidator.openVideoRoom().validate(
498
+ {
499
+ body,
500
+ },
501
+ { abortEarly: false, allowUnknown: false }
502
+ );
503
+ if (warrning) {
504
+ console.log("Parameter Validation warrnings for openVideoRoom");
505
+ console.log(warrning);
506
+ }
507
+
358
508
  const query_params = {};
359
509
 
360
510
  return PlatformAPIClient.execute(
@@ -383,6 +533,18 @@ class Lead {
383
533
  return Promise.reject(new FDKClientValidationError(error));
384
534
  }
385
535
 
536
+ // Showing warrnings if extra unknown parameters are found
537
+ const { error: warrning } = LeadValidator.closeVideoRoom().validate(
538
+ {
539
+ uniqueName,
540
+ },
541
+ { abortEarly: false, allowUnknown: false }
542
+ );
543
+ if (warrning) {
544
+ console.log("Parameter Validation warrnings for closeVideoRoom");
545
+ console.log(warrning);
546
+ }
547
+
386
548
  const query_params = {};
387
549
 
388
550
  return PlatformAPIClient.execute(
@@ -51,6 +51,25 @@ class Lead {
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 } = LeadValidator.getTickets().validate(
56
+ {
57
+ items,
58
+ filters,
59
+ q,
60
+ status,
61
+ priority,
62
+ category,
63
+ pageNo,
64
+ pageSize,
65
+ },
66
+ { abortEarly: false, allowUnknown: false }
67
+ );
68
+ if (warrning) {
69
+ console.log("Parameter Validation warrnings for getTickets");
70
+ console.log(warrning);
71
+ }
72
+
54
73
  const query_params = {};
55
74
  query_params["items"] = items;
56
75
  query_params["filters"] = filters;
@@ -139,6 +158,18 @@ class Lead {
139
158
  return Promise.reject(new FDKClientValidationError(error));
140
159
  }
141
160
 
161
+ // Showing warrnings if extra unknown parameters are found
162
+ const { error: warrning } = LeadValidator.createTicket().validate(
163
+ {
164
+ body,
165
+ },
166
+ { abortEarly: false, allowUnknown: false }
167
+ );
168
+ if (warrning) {
169
+ console.log("Parameter Validation warrnings for createTicket");
170
+ console.log(warrning);
171
+ }
172
+
142
173
  const query_params = {};
143
174
 
144
175
  const xHeaders = {};
@@ -170,6 +201,18 @@ class Lead {
170
201
  return Promise.reject(new FDKClientValidationError(error));
171
202
  }
172
203
 
204
+ // Showing warrnings if extra unknown parameters are found
205
+ const { error: warrning } = LeadValidator.getTicket().validate(
206
+ {
207
+ id,
208
+ },
209
+ { abortEarly: false, allowUnknown: false }
210
+ );
211
+ if (warrning) {
212
+ console.log("Parameter Validation warrnings for getTicket");
213
+ console.log(warrning);
214
+ }
215
+
173
216
  const query_params = {};
174
217
 
175
218
  const xHeaders = {};
@@ -203,6 +246,19 @@ class Lead {
203
246
  return Promise.reject(new FDKClientValidationError(error));
204
247
  }
205
248
 
249
+ // Showing warrnings if extra unknown parameters are found
250
+ const { error: warrning } = LeadValidator.editTicket().validate(
251
+ {
252
+ id,
253
+ body,
254
+ },
255
+ { abortEarly: false, allowUnknown: false }
256
+ );
257
+ if (warrning) {
258
+ console.log("Parameter Validation warrnings for editTicket");
259
+ console.log(warrning);
260
+ }
261
+
206
262
  const query_params = {};
207
263
 
208
264
  const xHeaders = {};
@@ -236,6 +292,19 @@ class Lead {
236
292
  return Promise.reject(new FDKClientValidationError(error));
237
293
  }
238
294
 
295
+ // Showing warrnings if extra unknown parameters are found
296
+ const { error: warrning } = LeadValidator.createHistory().validate(
297
+ {
298
+ id,
299
+ body,
300
+ },
301
+ { abortEarly: false, allowUnknown: false }
302
+ );
303
+ if (warrning) {
304
+ console.log("Parameter Validation warrnings for createHistory");
305
+ console.log(warrning);
306
+ }
307
+
239
308
  const query_params = {};
240
309
 
241
310
  const xHeaders = {};
@@ -267,6 +336,18 @@ class Lead {
267
336
  return Promise.reject(new FDKClientValidationError(error));
268
337
  }
269
338
 
339
+ // Showing warrnings if extra unknown parameters are found
340
+ const { error: warrning } = LeadValidator.getTicketHistory().validate(
341
+ {
342
+ id,
343
+ },
344
+ { abortEarly: false, allowUnknown: false }
345
+ );
346
+ if (warrning) {
347
+ console.log("Parameter Validation warrnings for getTicketHistory");
348
+ console.log(warrning);
349
+ }
350
+
270
351
  const query_params = {};
271
352
 
272
353
  const xHeaders = {};
@@ -298,6 +379,18 @@ class Lead {
298
379
  return Promise.reject(new FDKClientValidationError(error));
299
380
  }
300
381
 
382
+ // Showing warrnings if extra unknown parameters are found
383
+ const { error: warrning } = LeadValidator.getFeedbacks().validate(
384
+ {
385
+ id,
386
+ },
387
+ { abortEarly: false, allowUnknown: false }
388
+ );
389
+ if (warrning) {
390
+ console.log("Parameter Validation warrnings for getFeedbacks");
391
+ console.log(warrning);
392
+ }
393
+
301
394
  const query_params = {};
302
395
 
303
396
  const xHeaders = {};
@@ -331,6 +424,19 @@ class Lead {
331
424
  return Promise.reject(new FDKClientValidationError(error));
332
425
  }
333
426
 
427
+ // Showing warrnings if extra unknown parameters are found
428
+ const { error: warrning } = LeadValidator.submitFeedback().validate(
429
+ {
430
+ id,
431
+ body,
432
+ },
433
+ { abortEarly: false, allowUnknown: false }
434
+ );
435
+ if (warrning) {
436
+ console.log("Parameter Validation warrnings for submitFeedback");
437
+ console.log(warrning);
438
+ }
439
+
334
440
  const query_params = {};
335
441
 
336
442
  const xHeaders = {};
@@ -362,6 +468,18 @@ class Lead {
362
468
  return Promise.reject(new FDKClientValidationError(error));
363
469
  }
364
470
 
471
+ // Showing warrnings if extra unknown parameters are found
472
+ const { error: warrning } = LeadValidator.getTokenForVideoRoom().validate(
473
+ {
474
+ uniqueName,
475
+ },
476
+ { abortEarly: false, allowUnknown: false }
477
+ );
478
+ if (warrning) {
479
+ console.log("Parameter Validation warrnings for getTokenForVideoRoom");
480
+ console.log(warrning);
481
+ }
482
+
365
483
  const query_params = {};
366
484
 
367
485
  const xHeaders = {};
@@ -393,6 +511,18 @@ class Lead {
393
511
  return Promise.reject(new FDKClientValidationError(error));
394
512
  }
395
513
 
514
+ // Showing warrnings if extra unknown parameters are found
515
+ const { error: warrning } = LeadValidator.getVideoParticipants().validate(
516
+ {
517
+ uniqueName,
518
+ },
519
+ { abortEarly: false, allowUnknown: false }
520
+ );
521
+ if (warrning) {
522
+ console.log("Parameter Validation warrnings for getVideoParticipants");
523
+ console.log(warrning);
524
+ }
525
+
396
526
  const query_params = {};
397
527
 
398
528
  const xHeaders = {};
@@ -421,6 +551,16 @@ class Lead {
421
551
  return Promise.reject(new FDKClientValidationError(error));
422
552
  }
423
553
 
554
+ // Showing warrnings if extra unknown parameters are found
555
+ const { error: warrning } = LeadValidator.getGeneralConfig().validate(
556
+ {},
557
+ { abortEarly: false, allowUnknown: false }
558
+ );
559
+ if (warrning) {
560
+ console.log("Parameter Validation warrnings for getGeneralConfig");
561
+ console.log(warrning);
562
+ }
563
+
424
564
  const query_params = {};
425
565
 
426
566
  const xHeaders = {};
@@ -67,6 +67,33 @@ class Order {
67
67
  return Promise.reject(new FDKClientValidationError(error));
68
68
  }
69
69
 
70
+ // Showing warrnings if extra unknown parameters are found
71
+ const {
72
+ error: warrning,
73
+ } = OrderValidator.getApplicationShipments().validate(
74
+ {
75
+ lane,
76
+ searchType,
77
+ searchId,
78
+ fromDate,
79
+ toDate,
80
+ dpIds,
81
+ orderingCompanyId,
82
+ stores,
83
+ salesChannel,
84
+ requestByExt,
85
+ pageNo,
86
+ pageSize,
87
+ customerId,
88
+ isPrioritySort,
89
+ },
90
+ { abortEarly: false, allowUnknown: false }
91
+ );
92
+ if (warrning) {
93
+ console.log("Parameter Validation warrnings for getApplicationShipments");
94
+ console.log(warrning);
95
+ }
96
+
70
97
  const query_params = {};
71
98
  query_params["lane"] = lane;
72
99
  query_params["search_type"] = searchType;
@@ -109,6 +136,22 @@ class Order {
109
136
  return Promise.reject(new FDKClientValidationError(error));
110
137
  }
111
138
 
139
+ // Showing warrnings if extra unknown parameters are found
140
+ const {
141
+ error: warrning,
142
+ } = OrderValidator.getAppOrderShipmentDetails().validate(
143
+ {
144
+ orderId,
145
+ },
146
+ { abortEarly: false, allowUnknown: false }
147
+ );
148
+ if (warrning) {
149
+ console.log(
150
+ "Parameter Validation warrnings for getAppOrderShipmentDetails"
151
+ );
152
+ console.log(warrning);
153
+ }
154
+
112
155
  const query_params = {};
113
156
  query_params["order_id"] = orderId;
114
157
 
@@ -138,6 +181,18 @@ class Order {
138
181
  return Promise.reject(new FDKClientValidationError(error));
139
182
  }
140
183
 
184
+ // Showing warrnings if extra unknown parameters are found
185
+ const { error: warrning } = OrderValidator.trackPlatformShipment().validate(
186
+ {
187
+ shipmentId,
188
+ },
189
+ { abortEarly: false, allowUnknown: false }
190
+ );
191
+ if (warrning) {
192
+ console.log("Parameter Validation warrnings for trackPlatformShipment");
193
+ console.log(warrning);
194
+ }
195
+
141
196
  const query_params = {};
142
197
 
143
198
  return PlatformAPIClient.execute(
@@ -489,6 +489,15 @@ declare class Order {
489
489
  shipmentId?: number;
490
490
  bagId?: number;
491
491
  }): Promise<any>;
492
+ /**
493
+ * @param {Object} arg - Arg object.
494
+ * @param {PostShipmentHistory} arg.body
495
+ * @summary:
496
+ * @description:
497
+ */
498
+ postShipmentHistory({ body }?: {
499
+ body: PostShipmentHistory;
500
+ }): Promise<any>;
492
501
  /**
493
502
  * @param {Object} arg - Arg object.
494
503
  * @param {SendSmsPayload} arg.body
@@ -525,6 +534,12 @@ declare class Order {
525
534
  createOrder({ body }?: {
526
535
  body: CreateOrderAPI;
527
536
  }): Promise<any>;
537
+ /**
538
+ * @param {Object} arg - Arg object.
539
+ * @summary:
540
+ * @description: getChannelConfig
541
+ */
542
+ getChannelConfig({}?: any): Promise<any>;
528
543
  /**
529
544
  * @param {Object} arg - Arg object.
530
545
  * @param {CreateChannelConfigData} arg.body
@@ -534,12 +549,6 @@ declare class Order {
534
549
  createChannelConfig({ body }?: {
535
550
  body: CreateChannelConfigData;
536
551
  }): Promise<any>;
537
- /**
538
- * @param {Object} arg - Arg object.
539
- * @summary:
540
- * @description: getChannelConfig
541
- */
542
- getChannelConfig({}?: any): Promise<any>;
543
552
  /**
544
553
  * @param {Object} arg - Arg object.
545
554
  * @param {UploadConsent} arg.body