@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +11 -11
- package/sdk/application/Cart/CartApplicationClient.js +343 -48
- package/sdk/application/Catalog/CatalogApplicationClient.js +408 -0
- package/sdk/application/Common/CommonApplicationClient.js +21 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +147 -0
- package/sdk/application/Content/ContentApplicationClient.d.ts +20 -0
- package/sdk/application/Content/ContentApplicationClient.js +327 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +43 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +21 -0
- package/sdk/application/Lead/LeadApplicationClient.js +73 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.js +182 -2
- package/sdk/application/Order/OrderApplicationClient.js +202 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -10
- package/sdk/application/Payment/PaymentApplicationClient.js +445 -38
- package/sdk/application/Rewards/RewardsApplicationClient.js +68 -0
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +64 -0
- package/sdk/application/User/UserApplicationClient.js +412 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +13 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +12 -33
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
- package/sdk/platform/Cart/CartPlatformModel.d.ts +14 -28
- package/sdk/platform/Cart/CartPlatformModel.js +7 -13
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +29 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.js +32 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +52 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +411 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +85 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +73 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +90 -1
- package/sdk/platform/Content/ContentPlatformModel.js +104 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +0 -8
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
- package/sdk/platform/Order/OrderPlatformModel.js +2 -43
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +0 -22
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +118 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +53 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +29 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +0 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +74 -816
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -191
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +0 -138
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
- package/sdk/public/Content/ContentPublicClient.js +116 -0
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -55,6 +60,14 @@ class Configuration {
|
|
|
55
60
|
{ requestHeaders } = { requestHeaders: {} },
|
|
56
61
|
{ responseHeaders } = { responseHeaders: false }
|
|
57
62
|
) {
|
|
63
|
+
let invalidInput = [];
|
|
64
|
+
if (invalidInput.length) {
|
|
65
|
+
const error = new Error();
|
|
66
|
+
error.message = "Missing required field";
|
|
67
|
+
error.details = invalidInput;
|
|
68
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
69
|
+
}
|
|
70
|
+
|
|
58
71
|
const query_params = {};
|
|
59
72
|
|
|
60
73
|
const xHeaders = {};
|
|
@@ -100,6 +113,14 @@ class Configuration {
|
|
|
100
113
|
} = { requestHeaders: {} },
|
|
101
114
|
{ responseHeaders } = { responseHeaders: false }
|
|
102
115
|
) {
|
|
116
|
+
let invalidInput = [];
|
|
117
|
+
if (invalidInput.length) {
|
|
118
|
+
const error = new Error();
|
|
119
|
+
error.message = "Missing required field";
|
|
120
|
+
error.details = invalidInput;
|
|
121
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
122
|
+
}
|
|
123
|
+
|
|
103
124
|
const query_params = {};
|
|
104
125
|
query_params["page_no"] = pageNo;
|
|
105
126
|
query_params["page_size"] = pageSize;
|
|
@@ -145,6 +166,14 @@ class Configuration {
|
|
|
145
166
|
},
|
|
146
167
|
{ responseHeaders } = { responseHeaders: false }
|
|
147
168
|
) {
|
|
169
|
+
let invalidInput = [];
|
|
170
|
+
if (invalidInput.length) {
|
|
171
|
+
const error = new Error();
|
|
172
|
+
error.message = "Missing required field";
|
|
173
|
+
error.details = invalidInput;
|
|
174
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
175
|
+
}
|
|
176
|
+
|
|
148
177
|
const query_params = {};
|
|
149
178
|
query_params["order_incent"] = orderIncent;
|
|
150
179
|
query_params["ordering_store"] = orderingStore;
|
|
@@ -185,6 +214,14 @@ class Configuration {
|
|
|
185
214
|
{ requestHeaders } = { requestHeaders: {} },
|
|
186
215
|
{ responseHeaders } = { responseHeaders: false }
|
|
187
216
|
) {
|
|
217
|
+
let invalidInput = [];
|
|
218
|
+
if (invalidInput.length) {
|
|
219
|
+
const error = new Error();
|
|
220
|
+
error.message = "Missing required field";
|
|
221
|
+
error.details = invalidInput;
|
|
222
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
223
|
+
}
|
|
224
|
+
|
|
188
225
|
const query_params = {};
|
|
189
226
|
|
|
190
227
|
const xHeaders = {};
|
|
@@ -222,6 +259,14 @@ class Configuration {
|
|
|
222
259
|
{ requestHeaders } = { requestHeaders: {} },
|
|
223
260
|
{ responseHeaders } = { responseHeaders: false }
|
|
224
261
|
) {
|
|
262
|
+
let invalidInput = [];
|
|
263
|
+
if (invalidInput.length) {
|
|
264
|
+
const error = new Error();
|
|
265
|
+
error.message = "Missing required field";
|
|
266
|
+
error.details = invalidInput;
|
|
267
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
268
|
+
}
|
|
269
|
+
|
|
225
270
|
const query_params = {};
|
|
226
271
|
|
|
227
272
|
const xHeaders = {};
|
|
@@ -259,6 +304,14 @@ class Configuration {
|
|
|
259
304
|
{ requestHeaders } = { requestHeaders: {} },
|
|
260
305
|
{ responseHeaders } = { responseHeaders: false }
|
|
261
306
|
) {
|
|
307
|
+
let invalidInput = [];
|
|
308
|
+
if (invalidInput.length) {
|
|
309
|
+
const error = new Error();
|
|
310
|
+
error.message = "Missing required field";
|
|
311
|
+
error.details = invalidInput;
|
|
312
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
313
|
+
}
|
|
314
|
+
|
|
262
315
|
const query_params = {};
|
|
263
316
|
|
|
264
317
|
const xHeaders = {};
|
|
@@ -296,6 +349,14 @@ class Configuration {
|
|
|
296
349
|
{ requestHeaders } = { requestHeaders: {} },
|
|
297
350
|
{ responseHeaders } = { responseHeaders: false }
|
|
298
351
|
) {
|
|
352
|
+
let invalidInput = [];
|
|
353
|
+
if (invalidInput.length) {
|
|
354
|
+
const error = new Error();
|
|
355
|
+
error.message = "Missing required field";
|
|
356
|
+
error.details = invalidInput;
|
|
357
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
358
|
+
}
|
|
359
|
+
|
|
299
360
|
const query_params = {};
|
|
300
361
|
|
|
301
362
|
const xHeaders = {};
|
|
@@ -333,6 +394,21 @@ class Configuration {
|
|
|
333
394
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
334
395
|
{ responseHeaders } = { responseHeaders: false }
|
|
335
396
|
) {
|
|
397
|
+
let invalidInput = [];
|
|
398
|
+
|
|
399
|
+
if (!id) {
|
|
400
|
+
invalidInput.push({
|
|
401
|
+
message: `The 'id' field is required.`,
|
|
402
|
+
path: ["id"],
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
if (invalidInput.length) {
|
|
406
|
+
const error = new Error();
|
|
407
|
+
error.message = "Missing required field";
|
|
408
|
+
error.details = invalidInput;
|
|
409
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
410
|
+
}
|
|
411
|
+
|
|
336
412
|
const query_params = {};
|
|
337
413
|
|
|
338
414
|
const xHeaders = {};
|
|
@@ -370,6 +446,14 @@ class Configuration {
|
|
|
370
446
|
{ requestHeaders } = { requestHeaders: {} },
|
|
371
447
|
{ responseHeaders } = { responseHeaders: false }
|
|
372
448
|
) {
|
|
449
|
+
let invalidInput = [];
|
|
450
|
+
if (invalidInput.length) {
|
|
451
|
+
const error = new Error();
|
|
452
|
+
error.message = "Missing required field";
|
|
453
|
+
error.details = invalidInput;
|
|
454
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
455
|
+
}
|
|
456
|
+
|
|
373
457
|
const query_params = {};
|
|
374
458
|
|
|
375
459
|
const xHeaders = {};
|
|
@@ -407,6 +491,14 @@ class Configuration {
|
|
|
407
491
|
{ requestHeaders } = { requestHeaders: {} },
|
|
408
492
|
{ responseHeaders } = { responseHeaders: false }
|
|
409
493
|
) {
|
|
494
|
+
let invalidInput = [];
|
|
495
|
+
if (invalidInput.length) {
|
|
496
|
+
const error = new Error();
|
|
497
|
+
error.message = "Missing required field";
|
|
498
|
+
error.details = invalidInput;
|
|
499
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
500
|
+
}
|
|
501
|
+
|
|
410
502
|
const query_params = {};
|
|
411
503
|
|
|
412
504
|
const xHeaders = {};
|
|
@@ -444,6 +536,14 @@ class Configuration {
|
|
|
444
536
|
{ requestHeaders } = { requestHeaders: {} },
|
|
445
537
|
{ responseHeaders } = { responseHeaders: false }
|
|
446
538
|
) {
|
|
539
|
+
let invalidInput = [];
|
|
540
|
+
if (invalidInput.length) {
|
|
541
|
+
const error = new Error();
|
|
542
|
+
error.message = "Missing required field";
|
|
543
|
+
error.details = invalidInput;
|
|
544
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
545
|
+
}
|
|
546
|
+
|
|
447
547
|
const query_params = {};
|
|
448
548
|
|
|
449
549
|
const xHeaders = {};
|
|
@@ -481,6 +581,14 @@ class Configuration {
|
|
|
481
581
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
482
582
|
{ responseHeaders } = { responseHeaders: false }
|
|
483
583
|
) {
|
|
584
|
+
let invalidInput = [];
|
|
585
|
+
if (invalidInput.length) {
|
|
586
|
+
const error = new Error();
|
|
587
|
+
error.message = "Missing required field";
|
|
588
|
+
error.details = invalidInput;
|
|
589
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
590
|
+
}
|
|
591
|
+
|
|
484
592
|
const query_params = {};
|
|
485
593
|
|
|
486
594
|
const xHeaders = {};
|
|
@@ -518,6 +626,14 @@ class Configuration {
|
|
|
518
626
|
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
519
627
|
{ responseHeaders } = { responseHeaders: false }
|
|
520
628
|
) {
|
|
629
|
+
let invalidInput = [];
|
|
630
|
+
if (invalidInput.length) {
|
|
631
|
+
const error = new Error();
|
|
632
|
+
error.message = "Missing required field";
|
|
633
|
+
error.details = invalidInput;
|
|
634
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
635
|
+
}
|
|
636
|
+
|
|
521
637
|
const query_params = {};
|
|
522
638
|
query_params["page_no"] = pageNo;
|
|
523
639
|
query_params["page_size"] = pageSize;
|
|
@@ -558,6 +674,14 @@ class Configuration {
|
|
|
558
674
|
{ requestHeaders } = { requestHeaders: {} },
|
|
559
675
|
{ responseHeaders } = { responseHeaders: false }
|
|
560
676
|
) {
|
|
677
|
+
let invalidInput = [];
|
|
678
|
+
if (invalidInput.length) {
|
|
679
|
+
const error = new Error();
|
|
680
|
+
error.message = "Missing required field";
|
|
681
|
+
error.details = invalidInput;
|
|
682
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
683
|
+
}
|
|
684
|
+
|
|
561
685
|
const query_params = {};
|
|
562
686
|
|
|
563
687
|
const xHeaders = {};
|
|
@@ -595,6 +719,21 @@ class Configuration {
|
|
|
595
719
|
{ storeId, requestHeaders } = { requestHeaders: {} },
|
|
596
720
|
{ responseHeaders } = { responseHeaders: false }
|
|
597
721
|
) {
|
|
722
|
+
let invalidInput = [];
|
|
723
|
+
|
|
724
|
+
if (!storeId) {
|
|
725
|
+
invalidInput.push({
|
|
726
|
+
message: `The 'storeId' field is required.`,
|
|
727
|
+
path: ["storeId"],
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
if (invalidInput.length) {
|
|
731
|
+
const error = new Error();
|
|
732
|
+
error.message = "Missing required field";
|
|
733
|
+
error.details = invalidInput;
|
|
734
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
735
|
+
}
|
|
736
|
+
|
|
598
737
|
const query_params = {};
|
|
599
738
|
|
|
600
739
|
const xHeaders = {};
|
|
@@ -632,6 +771,14 @@ class Configuration {
|
|
|
632
771
|
{ requestHeaders } = { requestHeaders: {} },
|
|
633
772
|
{ responseHeaders } = { responseHeaders: false }
|
|
634
773
|
) {
|
|
774
|
+
let invalidInput = [];
|
|
775
|
+
if (invalidInput.length) {
|
|
776
|
+
const error = new Error();
|
|
777
|
+
error.message = "Missing required field";
|
|
778
|
+
error.details = invalidInput;
|
|
779
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
780
|
+
}
|
|
781
|
+
|
|
635
782
|
const query_params = {};
|
|
636
783
|
|
|
637
784
|
const xHeaders = {};
|
|
@@ -21,6 +21,8 @@ declare class Content {
|
|
|
21
21
|
getPages: string;
|
|
22
22
|
getSEOConfiguration: string;
|
|
23
23
|
getSEOMarkupSchemas: string;
|
|
24
|
+
getSlideshow: string;
|
|
25
|
+
getSlideshows: string;
|
|
24
26
|
getSupportInformation: string;
|
|
25
27
|
getTags: string;
|
|
26
28
|
};
|
|
@@ -188,6 +190,24 @@ declare class Content {
|
|
|
188
190
|
* @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
|
|
189
191
|
*/
|
|
190
192
|
getSEOMarkupSchemas({ pageType, active, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SeoSchemaComponent>;
|
|
193
|
+
/**
|
|
194
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
195
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
196
|
+
* @returns {Promise<SlideshowSchema>} - Success response
|
|
197
|
+
* @name getSlideshow
|
|
198
|
+
* @summary: Get a Slideshow
|
|
199
|
+
* @description: Get a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
|
|
200
|
+
*/
|
|
201
|
+
getSlideshow({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowSchema>;
|
|
202
|
+
/**
|
|
203
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
204
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
205
|
+
* @returns {Promise<SlideshowGetDetails>} - Success response
|
|
206
|
+
* @name getSlideshows
|
|
207
|
+
* @summary: List Slideshows
|
|
208
|
+
* @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
209
|
+
*/
|
|
210
|
+
getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowGetDetails>;
|
|
191
211
|
/**
|
|
192
212
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
193
213
|
* @param {import("../ApplicationAPIClient").Options} - Options
|