@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.2
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 +16 -16
- package/sdk/application/Cart/CartApplicationClient.js +101 -48
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -16
- package/sdk/application/Catalog/CatalogApplicationClient.js +159 -0
- package/sdk/application/Common/CommonApplicationClient.js +6 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +24 -0
- package/sdk/application/Content/ContentApplicationClient.d.ts +59 -7
- package/sdk/application/Content/ContentApplicationClient.js +290 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +24 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +6 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +42 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.js +69 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +117 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -11
- package/sdk/application/Payment/PaymentApplicationClient.js +15 -39
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +15 -0
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +42 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +36 -0
- package/sdk/application/User/UserApplicationClient.js +6 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -0
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -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 +49 -28
- package/sdk/platform/Cart/CartPlatformModel.js +23 -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 +33 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.js +36 -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 +132 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1104 -122
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +159 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +161 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +220 -5
- package/sdk/platform/Content/ContentPlatformModel.js +214 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +12 -2
- package/sdk/platform/Order/OrderPlatformClient.js +99 -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 +33 -23
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -95
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +78 -701
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -110
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +10 -2
- package/sdk/platform/Share/SharePlatformModel.js +4 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +3 -3
- package/sdk/public/Content/ContentPublicClient.js +28 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +10 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -0
|
@@ -1,6 +1,12 @@
|
|
|
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");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
4
10
|
|
|
5
11
|
class Logistic {
|
|
6
12
|
constructor(_conf) {
|
|
@@ -136,6 +142,15 @@ class Logistic {
|
|
|
136
142
|
{ countryIsoCode, requestHeaders } = { requestHeaders: {} },
|
|
137
143
|
{ responseHeaders } = { responseHeaders: false }
|
|
138
144
|
) {
|
|
145
|
+
const errors = validateRequiredParams(arguments[0], ["countryIsoCode"]);
|
|
146
|
+
if (errors.length > 0) {
|
|
147
|
+
const error = new FDKClientValidationError({
|
|
148
|
+
message: "Missing required field",
|
|
149
|
+
details: errors,
|
|
150
|
+
});
|
|
151
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
152
|
+
}
|
|
153
|
+
|
|
139
154
|
const query_params = {};
|
|
140
155
|
|
|
141
156
|
const xHeaders = {};
|
|
@@ -173,6 +188,18 @@ class Logistic {
|
|
|
173
188
|
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
174
189
|
{ responseHeaders } = { responseHeaders: false }
|
|
175
190
|
) {
|
|
191
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
192
|
+
"companyId",
|
|
193
|
+
"applicationId",
|
|
194
|
+
]);
|
|
195
|
+
if (errors.length > 0) {
|
|
196
|
+
const error = new FDKClientValidationError({
|
|
197
|
+
message: "Missing required field",
|
|
198
|
+
details: errors,
|
|
199
|
+
});
|
|
200
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
201
|
+
}
|
|
202
|
+
|
|
176
203
|
const query_params = {};
|
|
177
204
|
|
|
178
205
|
const xHeaders = {};
|
|
@@ -254,11 +281,19 @@ class Logistic {
|
|
|
254
281
|
pageNo,
|
|
255
282
|
pageSize,
|
|
256
283
|
q,
|
|
257
|
-
sector,
|
|
258
284
|
requestHeaders,
|
|
259
285
|
} = { requestHeaders: {} },
|
|
260
286
|
{ responseHeaders } = { responseHeaders: false }
|
|
261
287
|
) {
|
|
288
|
+
const errors = validateRequiredParams(arguments[0], ["localityType"]);
|
|
289
|
+
if (errors.length > 0) {
|
|
290
|
+
const error = new FDKClientValidationError({
|
|
291
|
+
message: "Missing required field",
|
|
292
|
+
details: errors,
|
|
293
|
+
});
|
|
294
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
295
|
+
}
|
|
296
|
+
|
|
262
297
|
const query_params = {};
|
|
263
298
|
query_params["country"] = country;
|
|
264
299
|
query_params["state"] = state;
|
|
@@ -266,7 +301,6 @@ class Logistic {
|
|
|
266
301
|
query_params["page_no"] = pageNo;
|
|
267
302
|
query_params["page_size"] = pageSize;
|
|
268
303
|
query_params["q"] = q;
|
|
269
|
-
query_params["sector"] = sector;
|
|
270
304
|
|
|
271
305
|
const xHeaders = {};
|
|
272
306
|
|
|
@@ -305,6 +339,18 @@ class Logistic {
|
|
|
305
339
|
},
|
|
306
340
|
{ responseHeaders } = { responseHeaders: false }
|
|
307
341
|
) {
|
|
342
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
343
|
+
"localityType",
|
|
344
|
+
"localityValue",
|
|
345
|
+
]);
|
|
346
|
+
if (errors.length > 0) {
|
|
347
|
+
const error = new FDKClientValidationError({
|
|
348
|
+
message: "Missing required field",
|
|
349
|
+
details: errors,
|
|
350
|
+
});
|
|
351
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
352
|
+
}
|
|
353
|
+
|
|
308
354
|
const query_params = {};
|
|
309
355
|
query_params["country"] = country;
|
|
310
356
|
query_params["state"] = state;
|
|
@@ -439,6 +485,15 @@ class Logistic {
|
|
|
439
485
|
{ pincode, requestHeaders } = { requestHeaders: {} },
|
|
440
486
|
{ responseHeaders } = { responseHeaders: false }
|
|
441
487
|
) {
|
|
488
|
+
const errors = validateRequiredParams(arguments[0], ["pincode"]);
|
|
489
|
+
if (errors.length > 0) {
|
|
490
|
+
const error = new FDKClientValidationError({
|
|
491
|
+
message: "Missing required field",
|
|
492
|
+
details: errors,
|
|
493
|
+
});
|
|
494
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
495
|
+
}
|
|
496
|
+
|
|
442
497
|
const query_params = {};
|
|
443
498
|
|
|
444
499
|
const xHeaders = {};
|
|
@@ -552,6 +607,18 @@ class Logistic {
|
|
|
552
607
|
},
|
|
553
608
|
{ responseHeaders } = { responseHeaders: false }
|
|
554
609
|
) {
|
|
610
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
611
|
+
"countryIsoCode",
|
|
612
|
+
"templateName",
|
|
613
|
+
]);
|
|
614
|
+
if (errors.length > 0) {
|
|
615
|
+
const error = new FDKClientValidationError({
|
|
616
|
+
message: "Missing required field",
|
|
617
|
+
details: errors,
|
|
618
|
+
});
|
|
619
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
620
|
+
}
|
|
621
|
+
|
|
555
622
|
const query_params = {};
|
|
556
623
|
|
|
557
624
|
const xHeaders = {};
|
|
@@ -26,7 +26,7 @@ declare class Order {
|
|
|
26
26
|
* @summary: Get shipment's customer
|
|
27
27
|
* @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
28
28
|
*/
|
|
29
|
-
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerDetailsResponseSchema>;
|
|
29
|
+
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomerDetailsResponseSchema>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
32
32
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -35,7 +35,7 @@ declare class Order {
|
|
|
35
35
|
* @summary: Retrieves invoice for shipment
|
|
36
36
|
* @description: Get invoice corresponding to a specific shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getInvoiceByShipmentId/).
|
|
37
37
|
*/
|
|
38
|
-
getInvoiceByShipmentId({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ResponseGetInvoiceShipment>;
|
|
38
|
+
getInvoiceByShipmentId({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ResponseGetInvoiceShipment>;
|
|
39
39
|
/**
|
|
40
40
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
41
41
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -44,7 +44,7 @@ declare class Order {
|
|
|
44
44
|
* @summary: Get an order
|
|
45
45
|
* @description: Get order details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrderById/).
|
|
46
46
|
*/
|
|
47
|
-
getOrderById({ orderId, allowInactive, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderById>;
|
|
47
|
+
getOrderById({ orderId, allowInactive, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<OrderById>;
|
|
48
48
|
/**
|
|
49
49
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
50
50
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -62,7 +62,7 @@ declare class Order {
|
|
|
62
62
|
* @summary: Retrieves POS order details
|
|
63
63
|
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
64
64
|
*/
|
|
65
|
-
getPosOrderById({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderById>;
|
|
65
|
+
getPosOrderById({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<OrderById>;
|
|
66
66
|
/**
|
|
67
67
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
68
68
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -71,7 +71,7 @@ declare class Order {
|
|
|
71
71
|
* @summary: Retrieve Reasons for Cancellation and Return journey
|
|
72
72
|
* @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
|
|
73
73
|
*/
|
|
74
|
-
getShipmentBagReasons({ shipmentId, bagId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentBagReasons>;
|
|
74
|
+
getShipmentBagReasons({ shipmentId, bagId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentBagReasons>;
|
|
75
75
|
/**
|
|
76
76
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
77
77
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -80,7 +80,7 @@ declare class Order {
|
|
|
80
80
|
* @summary: Get a Shipment
|
|
81
81
|
* @description: Get shipment details such as price breakup, tracking details, store information, etc. using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentById/).
|
|
82
82
|
*/
|
|
83
|
-
getShipmentById({ shipmentId, allowInactive, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentById>;
|
|
83
|
+
getShipmentById({ shipmentId, allowInactive, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentById>;
|
|
84
84
|
/**
|
|
85
85
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
86
86
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -89,7 +89,7 @@ declare class Order {
|
|
|
89
89
|
* @summary: List shipment cancellation reasons
|
|
90
90
|
* @description: Get reasons to perform full or partial cancellation of a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentReasons/).
|
|
91
91
|
*/
|
|
92
|
-
getShipmentReasons({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentReasons>;
|
|
92
|
+
getShipmentReasons({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentReasons>;
|
|
93
93
|
/**
|
|
94
94
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
95
95
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -98,7 +98,7 @@ declare class Order {
|
|
|
98
98
|
* @summary: Send OTP to customer
|
|
99
99
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
100
100
|
*/
|
|
101
|
-
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpToCustomerResponseSchema>;
|
|
101
|
+
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SendOtpToCustomerResponseSchema>;
|
|
102
102
|
/**
|
|
103
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
104
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -107,7 +107,7 @@ declare class Order {
|
|
|
107
107
|
* @summary: Track shipment status
|
|
108
108
|
* @description: Track Shipment by shipment id, for application based on application Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/trackShipment/).
|
|
109
109
|
*/
|
|
110
|
-
trackShipment({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentTrack>;
|
|
110
|
+
trackShipment({ shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentTrack>;
|
|
111
111
|
/**
|
|
112
112
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
113
113
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -116,7 +116,7 @@ declare class Order {
|
|
|
116
116
|
* @summary: Updates shipment status
|
|
117
117
|
* @description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
118
118
|
*/
|
|
119
|
-
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentApplicationStatusResponseSchema>;
|
|
119
|
+
updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentApplicationStatusResponseSchema>;
|
|
120
120
|
/**
|
|
121
121
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
122
122
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -125,5 +125,5 @@ declare class Order {
|
|
|
125
125
|
* @summary: Verifies OTP
|
|
126
126
|
* @description: Verify OTP for getting shipment details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
127
127
|
*/
|
|
128
|
-
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpResponseSchema>;
|
|
128
|
+
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<VerifyOtpResponseSchema>;
|
|
129
129
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
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");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
4
10
|
|
|
5
11
|
class Order {
|
|
6
12
|
constructor(_conf) {
|
|
@@ -57,6 +63,18 @@ class Order {
|
|
|
57
63
|
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
58
64
|
{ responseHeaders } = { responseHeaders: false }
|
|
59
65
|
) {
|
|
66
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
67
|
+
"orderId",
|
|
68
|
+
"shipmentId",
|
|
69
|
+
]);
|
|
70
|
+
if (errors.length > 0) {
|
|
71
|
+
const error = new FDKClientValidationError({
|
|
72
|
+
message: "Missing required field",
|
|
73
|
+
details: errors,
|
|
74
|
+
});
|
|
75
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
76
|
+
}
|
|
77
|
+
|
|
60
78
|
const query_params = {};
|
|
61
79
|
|
|
62
80
|
const xHeaders = {};
|
|
@@ -94,6 +112,15 @@ class Order {
|
|
|
94
112
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
95
113
|
{ responseHeaders } = { responseHeaders: false }
|
|
96
114
|
) {
|
|
115
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
116
|
+
if (errors.length > 0) {
|
|
117
|
+
const error = new FDKClientValidationError({
|
|
118
|
+
message: "Missing required field",
|
|
119
|
+
details: errors,
|
|
120
|
+
});
|
|
121
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
122
|
+
}
|
|
123
|
+
|
|
97
124
|
const query_params = {};
|
|
98
125
|
|
|
99
126
|
const xHeaders = {};
|
|
@@ -131,6 +158,15 @@ class Order {
|
|
|
131
158
|
{ orderId, allowInactive, requestHeaders } = { requestHeaders: {} },
|
|
132
159
|
{ responseHeaders } = { responseHeaders: false }
|
|
133
160
|
) {
|
|
161
|
+
const errors = validateRequiredParams(arguments[0], ["orderId"]);
|
|
162
|
+
if (errors.length > 0) {
|
|
163
|
+
const error = new FDKClientValidationError({
|
|
164
|
+
message: "Missing required field",
|
|
165
|
+
details: errors,
|
|
166
|
+
});
|
|
167
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
168
|
+
}
|
|
169
|
+
|
|
134
170
|
const query_params = {};
|
|
135
171
|
query_params["allow_inactive"] = allowInactive;
|
|
136
172
|
|
|
@@ -226,6 +262,15 @@ class Order {
|
|
|
226
262
|
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
227
263
|
{ responseHeaders } = { responseHeaders: false }
|
|
228
264
|
) {
|
|
265
|
+
const errors = validateRequiredParams(arguments[0], ["orderId"]);
|
|
266
|
+
if (errors.length > 0) {
|
|
267
|
+
const error = new FDKClientValidationError({
|
|
268
|
+
message: "Missing required field",
|
|
269
|
+
details: errors,
|
|
270
|
+
});
|
|
271
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
272
|
+
}
|
|
273
|
+
|
|
229
274
|
const query_params = {};
|
|
230
275
|
|
|
231
276
|
const xHeaders = {};
|
|
@@ -263,6 +308,18 @@ class Order {
|
|
|
263
308
|
{ shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
|
|
264
309
|
{ responseHeaders } = { responseHeaders: false }
|
|
265
310
|
) {
|
|
311
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
312
|
+
"shipmentId",
|
|
313
|
+
"bagId",
|
|
314
|
+
]);
|
|
315
|
+
if (errors.length > 0) {
|
|
316
|
+
const error = new FDKClientValidationError({
|
|
317
|
+
message: "Missing required field",
|
|
318
|
+
details: errors,
|
|
319
|
+
});
|
|
320
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
321
|
+
}
|
|
322
|
+
|
|
266
323
|
const query_params = {};
|
|
267
324
|
|
|
268
325
|
const xHeaders = {};
|
|
@@ -300,6 +357,15 @@ class Order {
|
|
|
300
357
|
{ shipmentId, allowInactive, requestHeaders } = { requestHeaders: {} },
|
|
301
358
|
{ responseHeaders } = { responseHeaders: false }
|
|
302
359
|
) {
|
|
360
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
361
|
+
if (errors.length > 0) {
|
|
362
|
+
const error = new FDKClientValidationError({
|
|
363
|
+
message: "Missing required field",
|
|
364
|
+
details: errors,
|
|
365
|
+
});
|
|
366
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
367
|
+
}
|
|
368
|
+
|
|
303
369
|
const query_params = {};
|
|
304
370
|
query_params["allow_inactive"] = allowInactive;
|
|
305
371
|
|
|
@@ -338,6 +404,15 @@ class Order {
|
|
|
338
404
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
339
405
|
{ responseHeaders } = { responseHeaders: false }
|
|
340
406
|
) {
|
|
407
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
408
|
+
if (errors.length > 0) {
|
|
409
|
+
const error = new FDKClientValidationError({
|
|
410
|
+
message: "Missing required field",
|
|
411
|
+
details: errors,
|
|
412
|
+
});
|
|
413
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
414
|
+
}
|
|
415
|
+
|
|
341
416
|
const query_params = {};
|
|
342
417
|
|
|
343
418
|
const xHeaders = {};
|
|
@@ -375,6 +450,18 @@ class Order {
|
|
|
375
450
|
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
376
451
|
{ responseHeaders } = { responseHeaders: false }
|
|
377
452
|
) {
|
|
453
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
454
|
+
"orderId",
|
|
455
|
+
"shipmentId",
|
|
456
|
+
]);
|
|
457
|
+
if (errors.length > 0) {
|
|
458
|
+
const error = new FDKClientValidationError({
|
|
459
|
+
message: "Missing required field",
|
|
460
|
+
details: errors,
|
|
461
|
+
});
|
|
462
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
463
|
+
}
|
|
464
|
+
|
|
378
465
|
const query_params = {};
|
|
379
466
|
|
|
380
467
|
const xHeaders = {};
|
|
@@ -412,6 +499,15 @@ class Order {
|
|
|
412
499
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
413
500
|
{ responseHeaders } = { responseHeaders: false }
|
|
414
501
|
) {
|
|
502
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
503
|
+
if (errors.length > 0) {
|
|
504
|
+
const error = new FDKClientValidationError({
|
|
505
|
+
message: "Missing required field",
|
|
506
|
+
details: errors,
|
|
507
|
+
});
|
|
508
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
509
|
+
}
|
|
510
|
+
|
|
415
511
|
const query_params = {};
|
|
416
512
|
|
|
417
513
|
const xHeaders = {};
|
|
@@ -449,6 +545,15 @@ class Order {
|
|
|
449
545
|
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
450
546
|
{ responseHeaders } = { responseHeaders: false }
|
|
451
547
|
) {
|
|
548
|
+
const errors = validateRequiredParams(arguments[0], ["shipmentId"]);
|
|
549
|
+
if (errors.length > 0) {
|
|
550
|
+
const error = new FDKClientValidationError({
|
|
551
|
+
message: "Missing required field",
|
|
552
|
+
details: errors,
|
|
553
|
+
});
|
|
554
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
555
|
+
}
|
|
556
|
+
|
|
452
557
|
const query_params = {};
|
|
453
558
|
|
|
454
559
|
const xHeaders = {};
|
|
@@ -486,6 +591,18 @@ class Order {
|
|
|
486
591
|
{ orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
487
592
|
{ responseHeaders } = { responseHeaders: false }
|
|
488
593
|
) {
|
|
594
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
595
|
+
"orderId",
|
|
596
|
+
"shipmentId",
|
|
597
|
+
]);
|
|
598
|
+
if (errors.length > 0) {
|
|
599
|
+
const error = new FDKClientValidationError({
|
|
600
|
+
message: "Missing required field",
|
|
601
|
+
details: errors,
|
|
602
|
+
});
|
|
603
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
604
|
+
}
|
|
605
|
+
|
|
489
606
|
const query_params = {};
|
|
490
607
|
|
|
491
608
|
const xHeaders = {};
|
|
@@ -42,7 +42,6 @@ declare class Payment {
|
|
|
42
42
|
resendOrCancelPayment: string;
|
|
43
43
|
resendPaymentLink: string;
|
|
44
44
|
updateDefaultBeneficiary: string;
|
|
45
|
-
validateCustomerAndCreditSummary: string;
|
|
46
45
|
validateVPA: string;
|
|
47
46
|
verifyAndChargePayment: string;
|
|
48
47
|
verifyCustomerForPayment: string;
|
|
@@ -97,7 +96,7 @@ declare class Payment {
|
|
|
97
96
|
* @summary: Get card details
|
|
98
97
|
* @description: Get details of a specified payment card, including information such as the card type, brand, country, and expiration date. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cardDetails/).
|
|
99
98
|
*/
|
|
100
|
-
cardDetails({ cardInfo, aggregator, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CardDetailsFetchedDetails>;
|
|
99
|
+
cardDetails({ cardInfo, aggregator, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CardDetailsFetchedDetails>;
|
|
101
100
|
/**
|
|
102
101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
103
102
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -404,15 +403,6 @@ declare class Payment {
|
|
|
404
403
|
* @description: Update default beneficiary for the order refund of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/).
|
|
405
404
|
*/
|
|
406
405
|
updateDefaultBeneficiary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SetDefaultBeneficiaryDetails>;
|
|
407
|
-
/**
|
|
408
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
409
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
410
|
-
* @returns {Promise<ValidateCustomerCreditSchema>} - Success response
|
|
411
|
-
* @name validateCustomerAndCreditSummary
|
|
412
|
-
* @summary: Verify payment customer and show credit summary
|
|
413
|
-
* @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
|
|
414
|
-
*/
|
|
415
|
-
validateCustomerAndCreditSummary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateCustomerCreditSchema>;
|
|
416
406
|
/**
|
|
417
407
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
418
408
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -1,6 +1,12 @@
|
|
|
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");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
4
10
|
|
|
5
11
|
class Payment {
|
|
6
12
|
constructor(_conf) {
|
|
@@ -71,8 +77,6 @@ class Payment {
|
|
|
71
77
|
"/service/application/payment/v1.0/resend-payment-link/",
|
|
72
78
|
updateDefaultBeneficiary:
|
|
73
79
|
"/service/application/payment/v1.0/refund/beneficiary/default",
|
|
74
|
-
validateCustomerAndCreditSummary:
|
|
75
|
-
"/service/application/payment/v1.0/payment/validate/customer-credits-v2",
|
|
76
80
|
validateVPA: "/service/application/payment/v1.0/validate-vpa",
|
|
77
81
|
verifyAndChargePayment:
|
|
78
82
|
"/service/application/payment/v1.0/payment/confirm/charge",
|
|
@@ -262,6 +266,15 @@ class Payment {
|
|
|
262
266
|
{ cardInfo, aggregator, requestHeaders } = { requestHeaders: {} },
|
|
263
267
|
{ responseHeaders } = { responseHeaders: false }
|
|
264
268
|
) {
|
|
269
|
+
const errors = validateRequiredParams(arguments[0], ["cardInfo"]);
|
|
270
|
+
if (errors.length > 0) {
|
|
271
|
+
const error = new FDKClientValidationError({
|
|
272
|
+
message: "Missing required field",
|
|
273
|
+
details: errors,
|
|
274
|
+
});
|
|
275
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
276
|
+
}
|
|
277
|
+
|
|
265
278
|
const query_params = {};
|
|
266
279
|
query_params["aggregator"] = aggregator;
|
|
267
280
|
|
|
@@ -1601,43 +1614,6 @@ class Payment {
|
|
|
1601
1614
|
return response;
|
|
1602
1615
|
}
|
|
1603
1616
|
|
|
1604
|
-
/**
|
|
1605
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1606
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1607
|
-
* @returns {Promise<ValidateCustomerCreditSchema>} - Success response
|
|
1608
|
-
* @name validateCustomerAndCreditSummary
|
|
1609
|
-
* @summary: Verify payment customer and show credit summary
|
|
1610
|
-
* @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
|
|
1611
|
-
*/
|
|
1612
|
-
async validateCustomerAndCreditSummary(
|
|
1613
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1614
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1615
|
-
) {
|
|
1616
|
-
const query_params = {};
|
|
1617
|
-
|
|
1618
|
-
const xHeaders = {};
|
|
1619
|
-
|
|
1620
|
-
const response = await ApplicationAPIClient.execute(
|
|
1621
|
-
this._conf,
|
|
1622
|
-
"post",
|
|
1623
|
-
constructUrl({
|
|
1624
|
-
url: this._urls["validateCustomerAndCreditSummary"],
|
|
1625
|
-
params: {},
|
|
1626
|
-
}),
|
|
1627
|
-
query_params,
|
|
1628
|
-
body,
|
|
1629
|
-
{ ...xHeaders, ...requestHeaders },
|
|
1630
|
-
{ responseHeaders }
|
|
1631
|
-
);
|
|
1632
|
-
|
|
1633
|
-
let responseData = response;
|
|
1634
|
-
if (responseHeaders) {
|
|
1635
|
-
responseData = response[0];
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
return response;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
1617
|
/**
|
|
1642
1618
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1643
1619
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -30,7 +30,7 @@ declare class Rewards {
|
|
|
30
30
|
* @summary: Get specific offer
|
|
31
31
|
* @description: Retrieves detailed information about an offer by its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getOfferByName/).
|
|
32
32
|
*/
|
|
33
|
-
getOfferByName({ name, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Offer>;
|
|
33
|
+
getOfferByName({ name, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Offer>;
|
|
34
34
|
/**
|
|
35
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
36
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -1,6 +1,12 @@
|
|
|
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");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
4
10
|
|
|
5
11
|
class Rewards {
|
|
6
12
|
constructor(_conf) {
|
|
@@ -84,6 +90,15 @@ class Rewards {
|
|
|
84
90
|
{ name, requestHeaders } = { requestHeaders: {} },
|
|
85
91
|
{ responseHeaders } = { responseHeaders: false }
|
|
86
92
|
) {
|
|
93
|
+
const errors = validateRequiredParams(arguments[0], ["name"]);
|
|
94
|
+
if (errors.length > 0) {
|
|
95
|
+
const error = new FDKClientValidationError({
|
|
96
|
+
message: "Missing required field",
|
|
97
|
+
details: errors,
|
|
98
|
+
});
|
|
99
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
100
|
+
}
|
|
101
|
+
|
|
87
102
|
const query_params = {};
|
|
88
103
|
|
|
89
104
|
const xHeaders = {};
|
|
@@ -39,7 +39,7 @@ declare class Share {
|
|
|
39
39
|
* @summary: Collection QR code
|
|
40
40
|
* @description: Generates a QR code for a specific product collection using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getCollectionQRCodeBySlug/).
|
|
41
41
|
*/
|
|
42
|
-
getCollectionQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
42
|
+
getCollectionQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<QRCodeResp>;
|
|
43
43
|
/**
|
|
44
44
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
45
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -48,7 +48,7 @@ declare class Share {
|
|
|
48
48
|
* @summary: Original URL
|
|
49
49
|
* @description: Retrieve the original link from a short-link by using a hash value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getOriginalShortLinkByHash/).
|
|
50
50
|
*/
|
|
51
|
-
getOriginalShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShortLinkRes>;
|
|
51
|
+
getOriginalShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShortLinkRes>;
|
|
52
52
|
/**
|
|
53
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -57,7 +57,7 @@ declare class Share {
|
|
|
57
57
|
* @summary: Product QR code
|
|
58
58
|
* @description: Creates a QR code for a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getProductQRCodeBySlug/).
|
|
59
59
|
*/
|
|
60
|
-
getProductQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
60
|
+
getProductQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<QRCodeResp>;
|
|
61
61
|
/**
|
|
62
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
63
63
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -66,7 +66,7 @@ declare class Share {
|
|
|
66
66
|
* @summary: Get short link
|
|
67
67
|
* @description: Retrieves a previously created short link using its hash identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getShortLinkByHash/).
|
|
68
68
|
*/
|
|
69
|
-
getShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShortLinkRes>;
|
|
69
|
+
getShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShortLinkRes>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
72
|
* @param {import("../ApplicationAPIClient").Options} - Options
|