@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
|
@@ -44,6 +44,17 @@ class Common {
|
|
|
44
44
|
if (error) {
|
|
45
45
|
return Promise.reject(new FDKClientValidationError(error));
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
// Showing warrnings if extra unknown parameters are found
|
|
49
|
+
const { error: warrning } = CommonValidator.searchApplication().validate(
|
|
50
|
+
{ authorization, query },
|
|
51
|
+
{ abortEarly: false, allowUnknown: false }
|
|
52
|
+
);
|
|
53
|
+
if (warrning) {
|
|
54
|
+
console.log("Parameter Validation warrnings for searchApplication");
|
|
55
|
+
console.log(warrning);
|
|
56
|
+
}
|
|
57
|
+
|
|
47
58
|
const query_params = {};
|
|
48
59
|
query_params["query"] = query;
|
|
49
60
|
|
|
@@ -82,6 +93,17 @@ class Common {
|
|
|
82
93
|
if (error) {
|
|
83
94
|
return Promise.reject(new FDKClientValidationError(error));
|
|
84
95
|
}
|
|
96
|
+
|
|
97
|
+
// Showing warrnings if extra unknown parameters are found
|
|
98
|
+
const { error: warrning } = CommonValidator.getLocations().validate(
|
|
99
|
+
{ locationType, id },
|
|
100
|
+
{ abortEarly: false, allowUnknown: false }
|
|
101
|
+
);
|
|
102
|
+
if (warrning) {
|
|
103
|
+
console.log("Parameter Validation warrnings for getLocations");
|
|
104
|
+
console.log(warrning);
|
|
105
|
+
}
|
|
106
|
+
|
|
85
107
|
const query_params = {};
|
|
86
108
|
query_params["location_type"] = locationType;
|
|
87
109
|
query_params["id"] = id;
|
|
@@ -44,6 +44,19 @@ class Communication {
|
|
|
44
44
|
if (error) {
|
|
45
45
|
return Promise.reject(new FDKClientValidationError(error));
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
// Showing warrnings if extra unknown parameters are found
|
|
49
|
+
const {
|
|
50
|
+
error: warrning,
|
|
51
|
+
} = CommunicationValidator.getCommunicationConsent().validate(
|
|
52
|
+
{},
|
|
53
|
+
{ abortEarly: false, allowUnknown: false }
|
|
54
|
+
);
|
|
55
|
+
if (warrning) {
|
|
56
|
+
console.log("Parameter Validation warrnings for getCommunicationConsent");
|
|
57
|
+
console.log(warrning);
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
const query_params = {};
|
|
48
61
|
|
|
49
62
|
const xHeaders = {};
|
|
@@ -78,6 +91,21 @@ class Communication {
|
|
|
78
91
|
if (error) {
|
|
79
92
|
return Promise.reject(new FDKClientValidationError(error));
|
|
80
93
|
}
|
|
94
|
+
|
|
95
|
+
// Showing warrnings if extra unknown parameters are found
|
|
96
|
+
const {
|
|
97
|
+
error: warrning,
|
|
98
|
+
} = CommunicationValidator.upsertCommunicationConsent().validate(
|
|
99
|
+
{ body },
|
|
100
|
+
{ abortEarly: false, allowUnknown: false }
|
|
101
|
+
);
|
|
102
|
+
if (warrning) {
|
|
103
|
+
console.log(
|
|
104
|
+
"Parameter Validation warrnings for upsertCommunicationConsent"
|
|
105
|
+
);
|
|
106
|
+
console.log(warrning);
|
|
107
|
+
}
|
|
108
|
+
|
|
81
109
|
const query_params = {};
|
|
82
110
|
|
|
83
111
|
const xHeaders = {};
|
|
@@ -110,6 +138,19 @@ class Communication {
|
|
|
110
138
|
if (error) {
|
|
111
139
|
return Promise.reject(new FDKClientValidationError(error));
|
|
112
140
|
}
|
|
141
|
+
|
|
142
|
+
// Showing warrnings if extra unknown parameters are found
|
|
143
|
+
const {
|
|
144
|
+
error: warrning,
|
|
145
|
+
} = CommunicationValidator.upsertAppPushtoken().validate(
|
|
146
|
+
{ body },
|
|
147
|
+
{ abortEarly: false, allowUnknown: false }
|
|
148
|
+
);
|
|
149
|
+
if (warrning) {
|
|
150
|
+
console.log("Parameter Validation warrnings for upsertAppPushtoken");
|
|
151
|
+
console.log(warrning);
|
|
152
|
+
}
|
|
153
|
+
|
|
113
154
|
const query_params = {};
|
|
114
155
|
|
|
115
156
|
const xHeaders = {};
|
|
@@ -59,6 +59,19 @@ class Configuration {
|
|
|
59
59
|
if (error) {
|
|
60
60
|
return Promise.reject(new FDKClientValidationError(error));
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
// Showing warrnings if extra unknown parameters are found
|
|
64
|
+
const {
|
|
65
|
+
error: warrning,
|
|
66
|
+
} = ConfigurationValidator.getApplication().validate(
|
|
67
|
+
{},
|
|
68
|
+
{ abortEarly: false, allowUnknown: false }
|
|
69
|
+
);
|
|
70
|
+
if (warrning) {
|
|
71
|
+
console.log("Parameter Validation warrnings for getApplication");
|
|
72
|
+
console.log(warrning);
|
|
73
|
+
}
|
|
74
|
+
|
|
62
75
|
const query_params = {};
|
|
63
76
|
|
|
64
77
|
const xHeaders = {};
|
|
@@ -90,6 +103,17 @@ class Configuration {
|
|
|
90
103
|
if (error) {
|
|
91
104
|
return Promise.reject(new FDKClientValidationError(error));
|
|
92
105
|
}
|
|
106
|
+
|
|
107
|
+
// Showing warrnings if extra unknown parameters are found
|
|
108
|
+
const { error: warrning } = ConfigurationValidator.getOwnerInfo().validate(
|
|
109
|
+
{},
|
|
110
|
+
{ abortEarly: false, allowUnknown: false }
|
|
111
|
+
);
|
|
112
|
+
if (warrning) {
|
|
113
|
+
console.log("Parameter Validation warrnings for getOwnerInfo");
|
|
114
|
+
console.log(warrning);
|
|
115
|
+
}
|
|
116
|
+
|
|
93
117
|
const query_params = {};
|
|
94
118
|
|
|
95
119
|
const xHeaders = {};
|
|
@@ -121,6 +145,19 @@ class Configuration {
|
|
|
121
145
|
if (error) {
|
|
122
146
|
return Promise.reject(new FDKClientValidationError(error));
|
|
123
147
|
}
|
|
148
|
+
|
|
149
|
+
// Showing warrnings if extra unknown parameters are found
|
|
150
|
+
const {
|
|
151
|
+
error: warrning,
|
|
152
|
+
} = ConfigurationValidator.getBasicDetails().validate(
|
|
153
|
+
{},
|
|
154
|
+
{ abortEarly: false, allowUnknown: false }
|
|
155
|
+
);
|
|
156
|
+
if (warrning) {
|
|
157
|
+
console.log("Parameter Validation warrnings for getBasicDetails");
|
|
158
|
+
console.log(warrning);
|
|
159
|
+
}
|
|
160
|
+
|
|
124
161
|
const query_params = {};
|
|
125
162
|
|
|
126
163
|
const xHeaders = {};
|
|
@@ -152,6 +189,19 @@ class Configuration {
|
|
|
152
189
|
if (error) {
|
|
153
190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
154
191
|
}
|
|
192
|
+
|
|
193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
194
|
+
const {
|
|
195
|
+
error: warrning,
|
|
196
|
+
} = ConfigurationValidator.getIntegrationTokens().validate(
|
|
197
|
+
{},
|
|
198
|
+
{ abortEarly: false, allowUnknown: false }
|
|
199
|
+
);
|
|
200
|
+
if (warrning) {
|
|
201
|
+
console.log("Parameter Validation warrnings for getIntegrationTokens");
|
|
202
|
+
console.log(warrning);
|
|
203
|
+
}
|
|
204
|
+
|
|
155
205
|
const query_params = {};
|
|
156
206
|
|
|
157
207
|
const xHeaders = {};
|
|
@@ -188,6 +238,19 @@ class Configuration {
|
|
|
188
238
|
if (error) {
|
|
189
239
|
return Promise.reject(new FDKClientValidationError(error));
|
|
190
240
|
}
|
|
241
|
+
|
|
242
|
+
// Showing warrnings if extra unknown parameters are found
|
|
243
|
+
const {
|
|
244
|
+
error: warrning,
|
|
245
|
+
} = ConfigurationValidator.getOrderingStores().validate(
|
|
246
|
+
{ pageNo, pageSize, q },
|
|
247
|
+
{ abortEarly: false, allowUnknown: false }
|
|
248
|
+
);
|
|
249
|
+
if (warrning) {
|
|
250
|
+
console.log("Parameter Validation warrnings for getOrderingStores");
|
|
251
|
+
console.log(warrning);
|
|
252
|
+
}
|
|
253
|
+
|
|
191
254
|
const query_params = {};
|
|
192
255
|
query_params["page_no"] = pageNo;
|
|
193
256
|
query_params["page_size"] = pageSize;
|
|
@@ -252,6 +315,19 @@ class Configuration {
|
|
|
252
315
|
if (error) {
|
|
253
316
|
return Promise.reject(new FDKClientValidationError(error));
|
|
254
317
|
}
|
|
318
|
+
|
|
319
|
+
// Showing warrnings if extra unknown parameters are found
|
|
320
|
+
const {
|
|
321
|
+
error: warrning,
|
|
322
|
+
} = ConfigurationValidator.getStoreDetailById().validate(
|
|
323
|
+
{ storeId },
|
|
324
|
+
{ abortEarly: false, allowUnknown: false }
|
|
325
|
+
);
|
|
326
|
+
if (warrning) {
|
|
327
|
+
console.log("Parameter Validation warrnings for getStoreDetailById");
|
|
328
|
+
console.log(warrning);
|
|
329
|
+
}
|
|
330
|
+
|
|
255
331
|
const query_params = {};
|
|
256
332
|
|
|
257
333
|
const xHeaders = {};
|
|
@@ -283,6 +359,17 @@ class Configuration {
|
|
|
283
359
|
if (error) {
|
|
284
360
|
return Promise.reject(new FDKClientValidationError(error));
|
|
285
361
|
}
|
|
362
|
+
|
|
363
|
+
// Showing warrnings if extra unknown parameters are found
|
|
364
|
+
const { error: warrning } = ConfigurationValidator.getFeatures().validate(
|
|
365
|
+
{},
|
|
366
|
+
{ abortEarly: false, allowUnknown: false }
|
|
367
|
+
);
|
|
368
|
+
if (warrning) {
|
|
369
|
+
console.log("Parameter Validation warrnings for getFeatures");
|
|
370
|
+
console.log(warrning);
|
|
371
|
+
}
|
|
372
|
+
|
|
286
373
|
const query_params = {};
|
|
287
374
|
|
|
288
375
|
const xHeaders = {};
|
|
@@ -314,6 +401,19 @@ class Configuration {
|
|
|
314
401
|
if (error) {
|
|
315
402
|
return Promise.reject(new FDKClientValidationError(error));
|
|
316
403
|
}
|
|
404
|
+
|
|
405
|
+
// Showing warrnings if extra unknown parameters are found
|
|
406
|
+
const {
|
|
407
|
+
error: warrning,
|
|
408
|
+
} = ConfigurationValidator.getContactInfo().validate(
|
|
409
|
+
{},
|
|
410
|
+
{ abortEarly: false, allowUnknown: false }
|
|
411
|
+
);
|
|
412
|
+
if (warrning) {
|
|
413
|
+
console.log("Parameter Validation warrnings for getContactInfo");
|
|
414
|
+
console.log(warrning);
|
|
415
|
+
}
|
|
416
|
+
|
|
317
417
|
const query_params = {};
|
|
318
418
|
|
|
319
419
|
const xHeaders = {};
|
|
@@ -345,6 +445,17 @@ class Configuration {
|
|
|
345
445
|
if (error) {
|
|
346
446
|
return Promise.reject(new FDKClientValidationError(error));
|
|
347
447
|
}
|
|
448
|
+
|
|
449
|
+
// Showing warrnings if extra unknown parameters are found
|
|
450
|
+
const { error: warrning } = ConfigurationValidator.getCurrencies().validate(
|
|
451
|
+
{},
|
|
452
|
+
{ abortEarly: false, allowUnknown: false }
|
|
453
|
+
);
|
|
454
|
+
if (warrning) {
|
|
455
|
+
console.log("Parameter Validation warrnings for getCurrencies");
|
|
456
|
+
console.log(warrning);
|
|
457
|
+
}
|
|
458
|
+
|
|
348
459
|
const query_params = {};
|
|
349
460
|
|
|
350
461
|
const xHeaders = {};
|
|
@@ -377,6 +488,19 @@ class Configuration {
|
|
|
377
488
|
if (error) {
|
|
378
489
|
return Promise.reject(new FDKClientValidationError(error));
|
|
379
490
|
}
|
|
491
|
+
|
|
492
|
+
// Showing warrnings if extra unknown parameters are found
|
|
493
|
+
const {
|
|
494
|
+
error: warrning,
|
|
495
|
+
} = ConfigurationValidator.getCurrencyById().validate(
|
|
496
|
+
{ id },
|
|
497
|
+
{ abortEarly: false, allowUnknown: false }
|
|
498
|
+
);
|
|
499
|
+
if (warrning) {
|
|
500
|
+
console.log("Parameter Validation warrnings for getCurrencyById");
|
|
501
|
+
console.log(warrning);
|
|
502
|
+
}
|
|
503
|
+
|
|
380
504
|
const query_params = {};
|
|
381
505
|
|
|
382
506
|
const xHeaders = {};
|
|
@@ -408,6 +532,19 @@ class Configuration {
|
|
|
408
532
|
if (error) {
|
|
409
533
|
return Promise.reject(new FDKClientValidationError(error));
|
|
410
534
|
}
|
|
535
|
+
|
|
536
|
+
// Showing warrnings if extra unknown parameters are found
|
|
537
|
+
const {
|
|
538
|
+
error: warrning,
|
|
539
|
+
} = ConfigurationValidator.getAppCurrencies().validate(
|
|
540
|
+
{},
|
|
541
|
+
{ abortEarly: false, allowUnknown: false }
|
|
542
|
+
);
|
|
543
|
+
if (warrning) {
|
|
544
|
+
console.log("Parameter Validation warrnings for getAppCurrencies");
|
|
545
|
+
console.log(warrning);
|
|
546
|
+
}
|
|
547
|
+
|
|
411
548
|
const query_params = {};
|
|
412
549
|
|
|
413
550
|
const xHeaders = {};
|
|
@@ -439,6 +576,17 @@ class Configuration {
|
|
|
439
576
|
if (error) {
|
|
440
577
|
return Promise.reject(new FDKClientValidationError(error));
|
|
441
578
|
}
|
|
579
|
+
|
|
580
|
+
// Showing warrnings if extra unknown parameters are found
|
|
581
|
+
const { error: warrning } = ConfigurationValidator.getLanguages().validate(
|
|
582
|
+
{},
|
|
583
|
+
{ abortEarly: false, allowUnknown: false }
|
|
584
|
+
);
|
|
585
|
+
if (warrning) {
|
|
586
|
+
console.log("Parameter Validation warrnings for getLanguages");
|
|
587
|
+
console.log(warrning);
|
|
588
|
+
}
|
|
589
|
+
|
|
442
590
|
const query_params = {};
|
|
443
591
|
|
|
444
592
|
const xHeaders = {};
|
|
@@ -471,6 +619,19 @@ class Configuration {
|
|
|
471
619
|
if (error) {
|
|
472
620
|
return Promise.reject(new FDKClientValidationError(error));
|
|
473
621
|
}
|
|
622
|
+
|
|
623
|
+
// Showing warrnings if extra unknown parameters are found
|
|
624
|
+
const {
|
|
625
|
+
error: warrning,
|
|
626
|
+
} = ConfigurationValidator.getOrderingStoreCookie().validate(
|
|
627
|
+
{ body },
|
|
628
|
+
{ abortEarly: false, allowUnknown: false }
|
|
629
|
+
);
|
|
630
|
+
if (warrning) {
|
|
631
|
+
console.log("Parameter Validation warrnings for getOrderingStoreCookie");
|
|
632
|
+
console.log(warrning);
|
|
633
|
+
}
|
|
634
|
+
|
|
474
635
|
const query_params = {};
|
|
475
636
|
|
|
476
637
|
const xHeaders = {};
|
|
@@ -504,6 +665,21 @@ class Configuration {
|
|
|
504
665
|
if (error) {
|
|
505
666
|
return Promise.reject(new FDKClientValidationError(error));
|
|
506
667
|
}
|
|
668
|
+
|
|
669
|
+
// Showing warrnings if extra unknown parameters are found
|
|
670
|
+
const {
|
|
671
|
+
error: warrning,
|
|
672
|
+
} = ConfigurationValidator.removeOrderingStoreCookie().validate(
|
|
673
|
+
{},
|
|
674
|
+
{ abortEarly: false, allowUnknown: false }
|
|
675
|
+
);
|
|
676
|
+
if (warrning) {
|
|
677
|
+
console.log(
|
|
678
|
+
"Parameter Validation warrnings for removeOrderingStoreCookie"
|
|
679
|
+
);
|
|
680
|
+
console.log(warrning);
|
|
681
|
+
}
|
|
682
|
+
|
|
507
683
|
const query_params = {};
|
|
508
684
|
|
|
509
685
|
const xHeaders = {};
|
|
@@ -543,6 +719,19 @@ class Configuration {
|
|
|
543
719
|
if (error) {
|
|
544
720
|
return Promise.reject(new FDKClientValidationError(error));
|
|
545
721
|
}
|
|
722
|
+
|
|
723
|
+
// Showing warrnings if extra unknown parameters are found
|
|
724
|
+
const {
|
|
725
|
+
error: warrning,
|
|
726
|
+
} = ConfigurationValidator.getAppStaffList().validate(
|
|
727
|
+
{ pageNo, pageSize, orderIncent, orderingStore, user },
|
|
728
|
+
{ abortEarly: false, allowUnknown: false }
|
|
729
|
+
);
|
|
730
|
+
if (warrning) {
|
|
731
|
+
console.log("Parameter Validation warrnings for getAppStaffList");
|
|
732
|
+
console.log(warrning);
|
|
733
|
+
}
|
|
734
|
+
|
|
546
735
|
const query_params = {};
|
|
547
736
|
query_params["page_no"] = pageNo;
|
|
548
737
|
query_params["page_size"] = pageSize;
|
|
@@ -625,6 +814,17 @@ class Configuration {
|
|
|
625
814
|
if (error) {
|
|
626
815
|
return Promise.reject(new FDKClientValidationError(error));
|
|
627
816
|
}
|
|
817
|
+
|
|
818
|
+
// Showing warrnings if extra unknown parameters are found
|
|
819
|
+
const { error: warrning } = ConfigurationValidator.getAppStaffs().validate(
|
|
820
|
+
{ orderIncent, orderingStore, user },
|
|
821
|
+
{ abortEarly: false, allowUnknown: false }
|
|
822
|
+
);
|
|
823
|
+
if (warrning) {
|
|
824
|
+
console.log("Parameter Validation warrnings for getAppStaffs");
|
|
825
|
+
console.log(warrning);
|
|
826
|
+
}
|
|
827
|
+
|
|
628
828
|
const query_params = {};
|
|
629
829
|
query_params["order_incent"] = orderIncent;
|
|
630
830
|
query_params["ordering_store"] = orderingStore;
|