@gofynd/fdk-client-javascript 1.6.3 → 2.0.0

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 (146) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
  4. package/sdk/application/Cart/CartApplicationClient.js +26 -268
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
  7. package/sdk/application/Common/CommonApplicationClient.js +1 -16
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +222 -191
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  15. package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +21 -52
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +68 -153
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
  23. package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +21 -75
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
  30. package/sdk/application/User/UserApplicationClient.js +1 -407
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
  32. package/sdk/common/Utility.d.ts +1 -1
  33. package/sdk/common/Utility.js +4 -4
  34. package/sdk/common/Validator.d.ts +1 -0
  35. package/sdk/common/Validator.js +20 -0
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
  38. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
  40. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
  41. package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
  42. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
  46. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +64 -1
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +36 -0
  49. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
  51. package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
  52. package/sdk/platform/Cart/CartPlatformModel.js +38 -5
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
  57. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  58. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
  63. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
  65. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
  67. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
  74. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
  75. package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
  76. package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
  77. package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
  78. package/sdk/platform/Content/ContentPlatformModel.js +717 -34
  79. package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
  80. package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
  81. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
  82. package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
  83. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
  84. package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
  85. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
  86. package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
  87. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
  88. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
  89. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
  90. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
  91. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
  92. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
  93. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
  94. package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
  95. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  98. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  99. package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
  100. package/sdk/platform/Order/OrderPlatformClient.js +397 -0
  101. package/sdk/platform/Order/OrderPlatformModel.d.ts +66 -10
  102. package/sdk/platform/Order/OrderPlatformModel.js +39 -7
  103. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  104. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  105. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
  106. package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
  107. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
  108. package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
  109. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
  110. package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
  114. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
  115. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
  117. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
  118. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
  119. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
  121. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  122. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  123. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +73 -0
  124. package/sdk/platform/User/UserPlatformApplicationClient.js +543 -0
  125. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +129 -1
  126. package/sdk/platform/User/UserPlatformApplicationValidator.js +97 -0
  127. package/sdk/platform/User/UserPlatformModel.d.ts +269 -6
  128. package/sdk/platform/User/UserPlatformModel.js +187 -5
  129. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +64 -1
  130. package/sdk/platform/Webhook/WebhookPlatformModel.js +36 -0
  131. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  132. package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
  133. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
  134. package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
  135. package/sdk/public/Content/ContentPublicClient.js +261 -104
  136. package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
  137. package/sdk/public/Content/ContentPublicModel.js +102 -0
  138. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
  139. package/sdk/public/Content/ContentPublicValidator.js +26 -0
  140. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  142. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  143. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  144. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  145. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
@@ -6,6 +6,7 @@ const {
6
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
7
7
  const constructUrl = require("../constructUrl");
8
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
9
10
 
10
11
  class Finance {
11
12
  constructor(_conf) {
@@ -44,14 +45,6 @@ class Finance {
44
45
  { body, requestHeaders } = { requestHeaders: {} },
45
46
  { responseHeaders } = { responseHeaders: false }
46
47
  ) {
47
- let invalidInput = [];
48
- if (invalidInput.length) {
49
- const error = new Error();
50
- error.message = "Missing required field";
51
- error.details = invalidInput;
52
- return Promise.reject(new FDKClientValidationError(error));
53
- }
54
-
55
48
  const query_params = {};
56
49
 
57
50
  const xHeaders = {};
@@ -89,14 +82,6 @@ class Finance {
89
82
  { body, requestHeaders } = { requestHeaders: {} },
90
83
  { responseHeaders } = { responseHeaders: false }
91
84
  ) {
92
- let invalidInput = [];
93
- if (invalidInput.length) {
94
- const error = new Error();
95
- error.message = "Missing required field";
96
- error.details = invalidInput;
97
- return Promise.reject(new FDKClientValidationError(error));
98
- }
99
-
100
85
  const query_params = {};
101
86
 
102
87
  const xHeaders = {};
@@ -19,7 +19,7 @@ declare class Lead {
19
19
  * @summary: Log ticket history
20
20
  * @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
21
21
  */
22
- createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TicketHistory>;
22
+ createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<TicketHistory>;
23
23
  /**
24
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
25
25
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -37,7 +37,7 @@ declare class Lead {
37
37
  * @summary: Get custom form
38
38
  * @description: Get a customizable form template for data collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getCustomForm/).
39
39
  */
40
- getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomForm>;
40
+ getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomForm>;
41
41
  /**
42
42
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
43
43
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -46,7 +46,7 @@ declare class Lead {
46
46
  * @summary: Get a support ticket
47
47
  * @description: Get details of a specific customer support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getTicket/).
48
48
  */
49
- getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Ticket>;
49
+ getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Ticket>;
50
50
  /**
51
51
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
52
52
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -55,5 +55,5 @@ declare class Lead {
55
55
  * @summary: Submits form data
56
56
  * @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
57
57
  */
58
- submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SubmitCustomFormDetails>;
58
+ submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SubmitCustomFormDetails>;
59
59
  }
@@ -6,6 +6,7 @@ const {
6
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
7
7
  const constructUrl = require("../constructUrl");
8
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
9
10
 
10
11
  class Lead {
11
12
  constructor(_conf) {
@@ -45,18 +46,12 @@ class Lead {
45
46
  { id, body, requestHeaders } = { requestHeaders: {} },
46
47
  { responseHeaders } = { responseHeaders: false }
47
48
  ) {
48
- let invalidInput = [];
49
-
50
- if (!id) {
51
- invalidInput.push({
52
- message: `The 'id' field is required.`,
53
- path: ["id"],
49
+ const errors = validateRequiredParams(arguments[0], ["id"]);
50
+ if (errors.length > 0) {
51
+ const error = new FDKClientValidationError({
52
+ message: "Missing required field",
53
+ details: errors,
54
54
  });
55
- }
56
- if (invalidInput.length) {
57
- const error = new Error();
58
- error.message = "Missing required field";
59
- error.details = invalidInput;
60
55
  return Promise.reject(new FDKClientValidationError(error));
61
56
  }
62
57
 
@@ -97,14 +92,6 @@ class Lead {
97
92
  { body, requestHeaders } = { requestHeaders: {} },
98
93
  { responseHeaders } = { responseHeaders: false }
99
94
  ) {
100
- let invalidInput = [];
101
- if (invalidInput.length) {
102
- const error = new Error();
103
- error.message = "Missing required field";
104
- error.details = invalidInput;
105
- return Promise.reject(new FDKClientValidationError(error));
106
- }
107
-
108
95
  const query_params = {};
109
96
 
110
97
  const xHeaders = {};
@@ -142,18 +129,12 @@ class Lead {
142
129
  { slug, requestHeaders } = { requestHeaders: {} },
143
130
  { responseHeaders } = { responseHeaders: false }
144
131
  ) {
145
- let invalidInput = [];
146
-
147
- if (!slug) {
148
- invalidInput.push({
149
- message: `The 'slug' field is required.`,
150
- path: ["slug"],
132
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
133
+ if (errors.length > 0) {
134
+ const error = new FDKClientValidationError({
135
+ message: "Missing required field",
136
+ details: errors,
151
137
  });
152
- }
153
- if (invalidInput.length) {
154
- const error = new Error();
155
- error.message = "Missing required field";
156
- error.details = invalidInput;
157
138
  return Promise.reject(new FDKClientValidationError(error));
158
139
  }
159
140
 
@@ -194,18 +175,12 @@ class Lead {
194
175
  { id, requestHeaders } = { requestHeaders: {} },
195
176
  { responseHeaders } = { responseHeaders: false }
196
177
  ) {
197
- let invalidInput = [];
198
-
199
- if (!id) {
200
- invalidInput.push({
201
- message: `The 'id' field is required.`,
202
- path: ["id"],
178
+ const errors = validateRequiredParams(arguments[0], ["id"]);
179
+ if (errors.length > 0) {
180
+ const error = new FDKClientValidationError({
181
+ message: "Missing required field",
182
+ details: errors,
203
183
  });
204
- }
205
- if (invalidInput.length) {
206
- const error = new Error();
207
- error.message = "Missing required field";
208
- error.details = invalidInput;
209
184
  return Promise.reject(new FDKClientValidationError(error));
210
185
  }
211
186
 
@@ -246,18 +221,12 @@ class Lead {
246
221
  { slug, body, requestHeaders } = { requestHeaders: {} },
247
222
  { responseHeaders } = { responseHeaders: false }
248
223
  ) {
249
- let invalidInput = [];
250
-
251
- if (!slug) {
252
- invalidInput.push({
253
- message: `The 'slug' field is required.`,
254
- path: ["slug"],
224
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
225
+ if (errors.length > 0) {
226
+ const error = new FDKClientValidationError({
227
+ message: "Missing required field",
228
+ details: errors,
255
229
  });
256
- }
257
- if (invalidInput.length) {
258
- const error = new Error();
259
- error.message = "Missing required field";
260
- error.details = invalidInput;
261
230
  return Promise.reject(new FDKClientValidationError(error));
262
231
  }
263
232
 
@@ -10,11 +10,7 @@ declare class Logistic {
10
10
  getDeliveryPromise: string;
11
11
  getLocalities: string;
12
12
  getLocality: string;
13
- getLocations: string;
14
- getOptimalLocations: string;
15
13
  getPincodeCity: string;
16
- getPincodeZones: string;
17
- getTatProduct: string;
18
14
  validateAddress: string;
19
15
  };
20
16
  _urls: {};
@@ -22,12 +18,12 @@ declare class Logistic {
22
18
  /**
23
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
24
20
  * @param {import("../ApplicationAPIClient").Options} - Options
25
- * @returns {Promise<CountryListResult>} - Success response
21
+ * @returns {Promise<CountryResult>} - Success response
26
22
  * @name getAllCountries
27
23
  * @summary: Get deliverable countries
28
24
  * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
29
25
  */
30
- getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryListResult>;
26
+ getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryResult>;
31
27
  /**
32
28
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
33
29
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -45,16 +41,16 @@ declare class Logistic {
45
41
  * @summary: Get country details
46
42
  * @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
47
43
  */
48
- getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountry>;
44
+ getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetCountry>;
49
45
  /**
50
46
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
51
47
  * @param {import("../ApplicationAPIClient").Options} - Options
52
48
  * @returns {Promise<ShipmentCourierPartnerResult>} - Success response
53
49
  * @name getCourierPartners
54
- * @summary: Serviceable Courier Partners.
50
+ * @summary: Serviceable Courier Partners
55
51
  * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
56
52
  */
57
- getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentCourierPartnerResult>;
53
+ getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentCourierPartnerResult>;
58
54
  /**
59
55
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
60
56
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -63,70 +59,34 @@ declare class Logistic {
63
59
  * @summary: Get delivery promise
64
60
  * @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
65
61
  */
66
- getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
62
+ getDeliveryPromise({ xLocationDetail, xApplicationData, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
67
63
  /**
68
64
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
69
65
  * @param {import("../ApplicationAPIClient").Options} - Options
70
- * @returns {Promise<GetLocalities>} - Success response
66
+ * @returns {Promise<GetLocalitiesApp>} - Success response
71
67
  * @name getLocalities
72
- * @summary: Get localities
73
- * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
68
+ * @summary: Get Localities
69
+ * @description: Get Localities data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
74
70
  */
75
- getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
71
+ getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalitiesApp>;
76
72
  /**
77
73
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
78
74
  * @param {import("../ApplicationAPIClient").Options} - Options
79
- * @returns {Promise<GetLocality>} - Success response
75
+ * @returns {Promise<GetLocalityApp>} - Success response
80
76
  * @name getLocality
81
- * @summary: Get locality detail
77
+ * @summary: Get Locality API
82
78
  * @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
83
79
  */
84
- getLocality({ localityType, localityValue, country, state, city, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocality>;
80
+ getLocality({ localityType, localityValue, country, state, city, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalityApp>;
85
81
  /**
86
82
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
87
83
  * @param {import("../ApplicationAPIClient").Options} - Options
88
- * @returns {Promise<GetStoreResult>} - Success response
89
- * @name getLocations
90
- * @summary: Get available selling locations
91
- * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
92
- */
93
- getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetStoreResult>;
94
- /**
95
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
96
- * @param {import("../ApplicationAPIClient").Options} - Options
97
- * @returns {Promise<ReAssignStoreResult>} - Success response
98
- * @name getOptimalLocations
99
- * @summary: Get selling locations
100
- * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
101
- */
102
- getOptimalLocations({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ReAssignStoreResult>;
103
- /**
104
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
105
- * @param {import("../ApplicationAPIClient").Options} - Options
106
- * @returns {Promise<PincodeDetails>} - Success response
84
+ * @returns {Promise<PincodeDetailsResult>} - Success response
107
85
  * @name getPincodeCity
108
86
  * @summary: Get pincode details
109
87
  * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
110
88
  */
111
- getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PincodeDetails>;
112
- /**
113
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
114
- * @param {import("../ApplicationAPIClient").Options} - Options
115
- * @returns {Promise<GetZoneFromPincodeViewResult>} - Success response
116
- * @name getPincodeZones
117
- * @summary: Get zones
118
- * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
119
- */
120
- getPincodeZones({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetZoneFromPincodeViewResult>;
121
- /**
122
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
123
- * @param {import("../ApplicationAPIClient").Options} - Options
124
- * @returns {Promise<TATViewResult>} - Success response
125
- * @name getTatProduct
126
- * @summary: Get product's turnaround time
127
- * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
128
- */
129
- getTatProduct({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TATViewResult>;
89
+ getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<PincodeDetailsResult>;
130
90
  /**
131
91
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
132
92
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -135,5 +95,5 @@ declare class Logistic {
135
95
  * @summary: Validate address
136
96
  * @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
137
97
  */
138
- validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateAddressDetails>;
98
+ validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ValidateAddressDetails>;
139
99
  }