@gofynd/fdk-client-javascript 3.16.3 → 3.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
  6. package/sdk/application/Cart/CartApplicationClient.js +176 -0
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
  9. package/sdk/application/Content/ContentApplicationClient.d.ts +21 -1
  10. package/sdk/application/Content/ContentApplicationClient.js +93 -2
  11. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -21
  12. package/sdk/application/Logistic/LogisticApplicationClient.js +34 -83
  13. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
  14. package/sdk/application/Order/OrderApplicationClient.js +50 -0
  15. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  16. package/sdk/application/Payment/PaymentApplicationClient.js +5 -4
  17. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +84 -0
  18. package/sdk/partner/Logistics/LogisticsPartnerClient.js +712 -0
  19. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +237 -1
  20. package/sdk/partner/Logistics/LogisticsPartnerModel.js +157 -0
  21. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +8 -0
  22. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +70 -0
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +74 -12
  24. package/sdk/platform/Cart/CartPlatformApplicationClient.js +637 -36
  25. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
  26. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
  27. package/sdk/platform/Cart/CartPlatformModel.d.ts +952 -5
  28. package/sdk/platform/Cart/CartPlatformModel.js +598 -2
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +125 -5
  30. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +831 -41
  31. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
  32. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
  33. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -16
  34. package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -85
  35. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1025 -159
  36. package/sdk/platform/Catalog/CatalogPlatformModel.js +840 -165
  37. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +8 -10
  38. package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -12
  39. package/sdk/platform/Common/CommonPlatformModel.d.ts +18 -1
  40. package/sdk/platform/Common/CommonPlatformModel.js +14 -0
  41. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -73
  42. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -462
  43. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +7 -45
  44. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +4 -55
  45. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -2
  46. package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -2
  47. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +14 -0
  48. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -0
  49. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
  50. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
  51. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
  52. package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
  53. package/sdk/platform/Order/OrderPlatformClient.d.ts +27 -19
  54. package/sdk/platform/Order/OrderPlatformClient.js +176 -108
  55. package/sdk/platform/Order/OrderPlatformModel.d.ts +359 -45
  56. package/sdk/platform/Order/OrderPlatformModel.js +218 -44
  57. package/sdk/platform/Order/OrderPlatformValidator.d.ts +40 -43
  58. package/sdk/platform/Order/OrderPlatformValidator.js +35 -30
  59. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
  60. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
  61. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
  62. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
  63. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +376 -11
  64. package/sdk/platform/Payment/PaymentPlatformModel.js +243 -10
  65. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  66. package/sdk/platform/PlatformApplicationClient.js +0 -4
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -13
  68. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -82
  69. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -10
  70. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -12
  71. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +212 -28
  72. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +133 -13
  73. package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
  74. package/sdk/platform/User/UserPlatformModel.js +4 -4
  75. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
  76. package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
  77. package/sdk/platform/index.d.ts +0 -1
  78. package/sdk/platform/index.js +0 -2
  79. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +27 -1
  80. package/sdk/public/Configuration/ConfigurationPublicModel.js +19 -0
  81. package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
  82. package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  85. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  86. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  87. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  88. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  89. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -387
  90. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -410
@@ -1,315 +0,0 @@
1
- const {
2
- FDKClientValidationError,
3
- FDKResponseValidationError,
4
- } = require("../../common/FDKError");
5
-
6
- const ApplicationAPIClient = require("../ApplicationAPIClient");
7
- const constructUrl = require("../constructUrl");
8
- const Paginator = require("../../common/Paginator");
9
- const { validateRequiredParams } = require("../../common/Validator");
10
-
11
- class Rewards {
12
- constructor(_conf) {
13
- this._conf = _conf;
14
- this._relativeUrls = {
15
- catalogueOrder:
16
- "/service/application/rewards/v1.0/catalogue/offer/order/",
17
- getOfferByName: "/service/application/rewards/v1.0/offers/{name}/",
18
- getOrderDiscount:
19
- "/service/application/rewards/v1.0/user/offer/order-discount/",
20
- getUserPoints: "/service/application/rewards/v1.0/user/points/",
21
- getUserPointsHistory:
22
- "/service/application/rewards/v1.0/user/points/history/",
23
- getUserReferralDetails:
24
- "/service/application/rewards/v1.0/user/referral/",
25
- redeemReferralCode:
26
- "/service/application/rewards/v1.0/user/referral/redeem/",
27
- };
28
- this._urls = Object.entries(this._relativeUrls).reduce(
29
- (urls, [method, relativeUrl]) => {
30
- urls[method] = `${_conf.domain}${relativeUrl}`;
31
- return urls;
32
- },
33
- {}
34
- );
35
- }
36
-
37
- updateUrls(urls) {
38
- this._urls = {
39
- ...this._urls,
40
- ...urls,
41
- };
42
- }
43
-
44
- /**
45
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
46
- * @param {import("../ApplicationAPIClient").Options} - Options
47
- * @returns {Promise<CatalogueOrderDetails>} - Success response
48
- * @name catalogueOrder
49
- * @summary: Order from catalogue
50
- * @description: Place a reward on order items available in the catalogue. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/catalogueOrder/).
51
- */
52
- async catalogueOrder(
53
- { body, requestHeaders } = { requestHeaders: {} },
54
- { responseHeaders } = { responseHeaders: false }
55
- ) {
56
- const query_params = {};
57
-
58
- const xHeaders = {};
59
-
60
- const response = await ApplicationAPIClient.execute(
61
- this._conf,
62
- "post",
63
- constructUrl({
64
- url: this._urls["catalogueOrder"],
65
- params: {},
66
- }),
67
- query_params,
68
- body,
69
- { ...xHeaders, ...requestHeaders },
70
- { responseHeaders }
71
- );
72
-
73
- let responseData = response;
74
- if (responseHeaders) {
75
- responseData = response[0];
76
- }
77
-
78
- return response;
79
- }
80
-
81
- /**
82
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
83
- * @param {import("../ApplicationAPIClient").Options} - Options
84
- * @returns {Promise<Offer>} - Success response
85
- * @name getOfferByName
86
- * @summary: Get specific offer
87
- * @description: Retrieves detailed information about an offer by its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/getOfferByName/).
88
- */
89
- async getOfferByName(
90
- { name, requestHeaders } = { requestHeaders: {} },
91
- { responseHeaders } = { responseHeaders: false }
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
-
102
- const query_params = {};
103
-
104
- const xHeaders = {};
105
-
106
- const response = await ApplicationAPIClient.execute(
107
- this._conf,
108
- "get",
109
- constructUrl({
110
- url: this._urls["getOfferByName"],
111
- params: { name },
112
- }),
113
- query_params,
114
- undefined,
115
- { ...xHeaders, ...requestHeaders },
116
- { responseHeaders }
117
- );
118
-
119
- let responseData = response;
120
- if (responseHeaders) {
121
- responseData = response[0];
122
- }
123
-
124
- return response;
125
- }
126
-
127
- /**
128
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
129
- * @param {import("../ApplicationAPIClient").Options} - Options
130
- * @returns {Promise<OrderDiscountDetails>} - Success response
131
- * @name getOrderDiscount
132
- * @summary: Order discount
133
- * @description: Retrieve the discount applied to a specific order. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/getOrderDiscount/).
134
- */
135
- async getOrderDiscount(
136
- { body, requestHeaders } = { requestHeaders: {} },
137
- { responseHeaders } = { responseHeaders: false }
138
- ) {
139
- const query_params = {};
140
-
141
- const xHeaders = {};
142
-
143
- const response = await ApplicationAPIClient.execute(
144
- this._conf,
145
- "post",
146
- constructUrl({
147
- url: this._urls["getOrderDiscount"],
148
- params: {},
149
- }),
150
- query_params,
151
- body,
152
- { ...xHeaders, ...requestHeaders },
153
- { responseHeaders }
154
- );
155
-
156
- let responseData = response;
157
- if (responseHeaders) {
158
- responseData = response[0];
159
- }
160
-
161
- return response;
162
- }
163
-
164
- /**
165
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
166
- * @param {import("../ApplicationAPIClient").Options} - Options
167
- * @returns {Promise<PointsDetails>} - Success response
168
- * @name getUserPoints
169
- * @summary: Current points
170
- * @description: Retrieves the current reward points balance for the user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/getUserPoints/).
171
- */
172
- async getUserPoints(
173
- { requestHeaders } = { requestHeaders: {} },
174
- { responseHeaders } = { responseHeaders: false }
175
- ) {
176
- const query_params = {};
177
-
178
- const xHeaders = {};
179
-
180
- const response = await ApplicationAPIClient.execute(
181
- this._conf,
182
- "get",
183
- constructUrl({
184
- url: this._urls["getUserPoints"],
185
- params: {},
186
- }),
187
- query_params,
188
- undefined,
189
- { ...xHeaders, ...requestHeaders },
190
- { responseHeaders }
191
- );
192
-
193
- let responseData = response;
194
- if (responseHeaders) {
195
- responseData = response[0];
196
- }
197
-
198
- return response;
199
- }
200
-
201
- /**
202
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
203
- * @param {import("../ApplicationAPIClient").Options} - Options
204
- * @returns {Promise<PointsHistoryDetails>} - Success response
205
- * @name getUserPointsHistory
206
- * @summary: Points history
207
- * @description: Gets the historical data of points earned or spent by the user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/getUserPointsHistory/).
208
- */
209
- async getUserPointsHistory(
210
- { pageId, pageSize, requestHeaders } = { requestHeaders: {} },
211
- { responseHeaders } = { responseHeaders: false }
212
- ) {
213
- const query_params = {};
214
- query_params["page_id"] = pageId;
215
- query_params["page_size"] = pageSize;
216
-
217
- const xHeaders = {};
218
-
219
- const response = await ApplicationAPIClient.execute(
220
- this._conf,
221
- "get",
222
- constructUrl({
223
- url: this._urls["getUserPointsHistory"],
224
- params: {},
225
- }),
226
- query_params,
227
- undefined,
228
- { ...xHeaders, ...requestHeaders },
229
- { responseHeaders }
230
- );
231
-
232
- let responseData = response;
233
- if (responseHeaders) {
234
- responseData = response[0];
235
- }
236
-
237
- return response;
238
- }
239
-
240
- /**
241
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
242
- * @param {import("../ApplicationAPIClient").Options} - Options
243
- * @returns {Promise<ReferralDetails>} - Success response
244
- * @name getUserReferralDetails
245
- * @summary: Referral details
246
- * @description: Gets the details of the user’s referral status and codes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/getUserReferralDetails/).
247
- */
248
- async getUserReferralDetails(
249
- { requestHeaders } = { requestHeaders: {} },
250
- { responseHeaders } = { responseHeaders: false }
251
- ) {
252
- const query_params = {};
253
-
254
- const xHeaders = {};
255
-
256
- const response = await ApplicationAPIClient.execute(
257
- this._conf,
258
- "get",
259
- constructUrl({
260
- url: this._urls["getUserReferralDetails"],
261
- params: {},
262
- }),
263
- query_params,
264
- undefined,
265
- { ...xHeaders, ...requestHeaders },
266
- { responseHeaders }
267
- );
268
-
269
- let responseData = response;
270
- if (responseHeaders) {
271
- responseData = response[0];
272
- }
273
-
274
- return response;
275
- }
276
-
277
- /**
278
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
279
- * @param {import("../ApplicationAPIClient").Options} - Options
280
- * @returns {Promise<RedeemReferralCodeDetails>} - Success response
281
- * @name redeemReferralCode
282
- * @summary: Redeem code
283
- * @description: Applies a referral code to earn or redeem rewards. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/rewards/redeemReferralCode/).
284
- */
285
- async redeemReferralCode(
286
- { body, requestHeaders } = { requestHeaders: {} },
287
- { responseHeaders } = { responseHeaders: false }
288
- ) {
289
- const query_params = {};
290
-
291
- const xHeaders = {};
292
-
293
- const response = await ApplicationAPIClient.execute(
294
- this._conf,
295
- "post",
296
- constructUrl({
297
- url: this._urls["redeemReferralCode"],
298
- params: {},
299
- }),
300
- query_params,
301
- body,
302
- { ...xHeaders, ...requestHeaders },
303
- { responseHeaders }
304
- );
305
-
306
- let responseData = response;
307
- if (responseHeaders) {
308
- responseData = response[0];
309
- }
310
-
311
- return response;
312
- }
313
- }
314
-
315
- module.exports = Rewards;
@@ -1,136 +0,0 @@
1
- export = Rewards;
2
- declare class Rewards {
3
- constructor(config: any, applicationId: any);
4
- config: any;
5
- applicationId: any;
6
- /**
7
- * @param {RewardsPlatformApplicationValidator.GetGiveawayByIdParam} arg - Arg object
8
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
9
- * @param {import("../PlatformAPIClient").Options} - Options
10
- * @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
11
- * @name getGiveawayById
12
- * @summary: Get a giveaway
13
- * @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getGiveawayById/).
14
- */
15
- getGiveawayById({ id, requestHeaders }?: RewardsPlatformApplicationValidator.GetGiveawayByIdParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
16
- /**
17
- * @param {RewardsPlatformApplicationValidator.GetOfferByNameParam} arg - Arg object
18
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
19
- * @param {import("../PlatformAPIClient").Options} - Options
20
- * @returns {Promise<RewardsPlatformModel.Offer>} - Success response
21
- * @name getOfferByName
22
- * @summary: Get offer by name
23
- * @description: Retrieve an offer by its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getOfferByName/).
24
- */
25
- getOfferByName({ name, requestHeaders }?: RewardsPlatformApplicationValidator.GetOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
26
- /**
27
- * @param {RewardsPlatformApplicationValidator.GetRewardsConfigurationParam} arg
28
- * - Arg object
29
- *
30
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
31
- * @param {import("../PlatformAPIClient").Options} - Options
32
- * @returns {Promise<RewardsPlatformModel.ConfigurationRes>} - Success response
33
- * @name getRewardsConfiguration
34
- * @summary: Get rewards configuration
35
- * @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getRewardsConfiguration/).
36
- */
37
- getRewardsConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.ConfigurationRes>;
38
- /**
39
- * @param {RewardsPlatformApplicationValidator.GetUserDetailsParam} arg - Arg object
40
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
41
- * @param {import("../PlatformAPIClient").Options} - Options
42
- * @returns {Promise<RewardsPlatformModel.UserRes>} - Success response
43
- * @name getUserDetails
44
- * @summary: Get a user
45
- * @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserDetails/).
46
- */
47
- getUserDetails({ userId, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserDetailsParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.UserRes>;
48
- /**
49
- * @param {RewardsPlatformApplicationValidator.GetUserPointsHistoryParam} arg
50
- * - Arg object
51
- *
52
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
53
- * @param {import("../PlatformAPIClient").Options} - Options
54
- * @returns {Promise<RewardsPlatformModel.HistoryRes>} - Success response
55
- * @name getUserPointsHistory
56
- * @summary: Get reward user points history
57
- * @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserPointsHistory/).
58
- */
59
- getUserPointsHistory({ userId, pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserPointsHistoryParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.HistoryRes>;
60
- /**
61
- * @param {RewardsPlatformApplicationValidator.SaveGiveAwayParam} arg - Arg object
62
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
63
- * @param {import("../PlatformAPIClient").Options} - Options
64
- * @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
65
- * @name saveGiveAway
66
- * @summary: Create a giveaway
67
- * @description: Store and manage details of a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/saveGiveAway/).
68
- */
69
- saveGiveAway({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SaveGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
70
- /**
71
- * @param {RewardsPlatformApplicationValidator.SetRewardsConfigurationParam} arg
72
- * - Arg object
73
- *
74
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
75
- * @param {import("../PlatformAPIClient").Options} - Options
76
- * @returns {Promise<RewardsPlatformModel.SetConfigurationRes>} - Success response
77
- * @name setRewardsConfiguration
78
- * @summary: Set rewards configuration
79
- * @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/setRewardsConfiguration/).
80
- */
81
- setRewardsConfiguration({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SetRewardsConfigurationParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.SetConfigurationRes>;
82
- /**
83
- * @param {RewardsPlatformApplicationValidator.ShowGiveawaysParam} arg - Arg object
84
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
85
- * @param {import("../PlatformAPIClient").Options} - Options
86
- * @returns {Promise<RewardsPlatformModel.ListGiveaway>} - Success response
87
- * @name showGiveaways
88
- * @summary: List giveaways
89
- * @description: Retrieve and display available giveaways. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showGiveaways/).
90
- */
91
- showGiveaways({ pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.ShowGiveawaysParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.ListGiveaway>;
92
- /**
93
- * @param {RewardsPlatformApplicationValidator.ShowOffersParam} arg - Arg object
94
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
95
- * @param {import("../PlatformAPIClient").Options} - Options
96
- * @returns {Promise<RewardsPlatformModel.Offer[]>} - Success response
97
- * @name showOffers
98
- * @summary: List offers
99
- * @description: Display available offers for users. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showOffers/).
100
- */
101
- showOffers({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer[]>;
102
- /**
103
- * @param {RewardsPlatformApplicationValidator.UpdateGiveAwayParam} arg - Arg object
104
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
105
- * @param {import("../PlatformAPIClient").Options} - Options
106
- * @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
107
- * @name updateGiveAway
108
- * @summary: Update a giveaway
109
- * @description: Modify and update information about a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateGiveAway/).
110
- */
111
- updateGiveAway({ id, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
112
- /**
113
- * @param {RewardsPlatformApplicationValidator.UpdateOfferByNameParam} arg
114
- * - Arg object
115
- *
116
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
117
- * @param {import("../PlatformAPIClient").Options} - Options
118
- * @returns {Promise<RewardsPlatformModel.Offer>} - Success response
119
- * @name updateOfferByName
120
- * @summary: Update offer by name
121
- * @description: Modify and manage an offer using its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateOfferByName/).
122
- */
123
- updateOfferByName({ name, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
124
- /**
125
- * @param {RewardsPlatformApplicationValidator.UpdateUserStatusParam} arg - Arg object
126
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
127
- * @param {import("../PlatformAPIClient").Options} - Options
128
- * @returns {Promise<RewardsPlatformModel.AppUser>} - Success response
129
- * @name updateUserStatus
130
- * @summary: Update user status
131
- * @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateUserStatus/).
132
- */
133
- updateUserStatus({ userId, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateUserStatusParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.AppUser>;
134
- }
135
- import RewardsPlatformApplicationValidator = require("./RewardsPlatformApplicationValidator");
136
- import RewardsPlatformModel = require("./RewardsPlatformModel");