@gofynd/fdk-client-javascript 0.1.35 → 0.1.36

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 (109) hide show
  1. package/README.md +1 -1
  2. package/documentation/application/CART.md +256 -239
  3. package/documentation/application/CATALOG.md +413 -409
  4. package/documentation/application/COMMON.md +4 -0
  5. package/documentation/application/COMMUNICATION.md +4 -0
  6. package/documentation/application/CONFIGURATION.md +4 -0
  7. package/documentation/application/CONTENT.md +7 -20
  8. package/documentation/application/FILESTORAGE.md +85 -0
  9. package/documentation/application/LEAD.md +6 -2
  10. package/documentation/application/LOGISTIC.md +4 -0
  11. package/documentation/application/ORDER.md +307 -303
  12. package/documentation/application/PAYMENT.md +445 -259
  13. package/documentation/application/POSCART.md +317 -300
  14. package/documentation/application/REWARDS.md +153 -160
  15. package/documentation/application/SHARE.md +4 -0
  16. package/documentation/application/THEME.md +4 -0
  17. package/documentation/application/USER.md +4 -0
  18. package/documentation/platform/ANALYTICS.md +4 -0
  19. package/documentation/platform/AUDITTRAIL.md +4 -0
  20. package/documentation/platform/BILLING.md +4 -0
  21. package/documentation/platform/CART.md +480 -463
  22. package/documentation/platform/CATALOG.md +3895 -2942
  23. package/documentation/platform/COMMON.md +4 -0
  24. package/documentation/platform/COMMUNICATION.md +4 -0
  25. package/documentation/platform/COMPANYPROFILE.md +224 -193
  26. package/documentation/platform/CONFIGURATION.md +4 -0
  27. package/documentation/platform/CONTENT.md +8 -21
  28. package/documentation/platform/DISCOUNT.md +4 -0
  29. package/documentation/platform/FILESTORAGE.md +85 -0
  30. package/documentation/platform/INVENTORY.md +4 -0
  31. package/documentation/platform/LEAD.md +6 -2
  32. package/documentation/platform/ORDER.md +6298 -1448
  33. package/documentation/platform/PARTNER.md +12 -8
  34. package/documentation/platform/PAYMENT.md +107 -103
  35. package/documentation/platform/README.md +2 -2
  36. package/documentation/platform/REWARDS.md +219 -152
  37. package/documentation/platform/SHARE.md +4 -0
  38. package/documentation/platform/THEME.md +4 -0
  39. package/documentation/platform/USER.md +4 -0
  40. package/documentation/platform/WEBHOOK.md +4 -0
  41. package/documentation/public/CONFIGURATION.md +4 -0
  42. package/documentation/public/INVENTORY.md +4 -0
  43. package/documentation/public/WEBHOOK.md +4 -0
  44. package/package.json +1 -1
  45. package/sdk/application/ApplicationModels.d.ts +77 -73
  46. package/sdk/application/ApplicationModels.js +1751 -1725
  47. package/sdk/application/client/CartApplicationClient.d.ts +36 -36
  48. package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
  49. package/sdk/application/client/CatalogApplicationClient.js +16 -16
  50. package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
  51. package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
  52. package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
  53. package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
  54. package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
  55. package/sdk/application/client/FileStorageApplicationClient.js +2 -0
  56. package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
  57. package/sdk/application/client/LogisticApplicationClient.d.ts +5 -5
  58. package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
  59. package/sdk/application/client/OrderApplicationClient.js +1 -1
  60. package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
  61. package/sdk/application/client/PaymentApplicationClient.js +66 -0
  62. package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
  63. package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
  64. package/sdk/application/client/RewardsApplicationClient.js +77 -77
  65. package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
  66. package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
  67. package/sdk/application/client/UserApplicationClient.d.ts +63 -63
  68. package/sdk/application/models/CatalogValidator.d.ts +1 -1
  69. package/sdk/application/models/CatalogValidator.js +2 -2
  70. package/sdk/application/models/PaymentValidator.d.ts +2 -0
  71. package/sdk/application/models/PaymentValidator.js +12 -0
  72. package/sdk/application/models/RewardsValidator.d.ts +3 -3
  73. package/sdk/application/models/RewardsValidator.js +12 -12
  74. package/sdk/common/AxiosHelper.js +1 -1
  75. package/sdk/common/Constant.d.ts +9 -0
  76. package/sdk/common/Constant.js +11 -0
  77. package/sdk/platform/PlatformApplicationClient.d.ts +8600 -7286
  78. package/sdk/platform/PlatformApplicationClient.js +4338 -3678
  79. package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
  80. package/sdk/platform/PlatformApplicationModels.js +5561 -4301
  81. package/sdk/platform/PlatformClient.d.ts +3448 -2801
  82. package/sdk/platform/PlatformClient.js +3903 -3108
  83. package/sdk/platform/PlatformModels.d.ts +352 -278
  84. package/sdk/platform/PlatformModels.js +5230 -3942
  85. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
  86. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
  87. package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
  88. package/sdk/platform/client/CatalogPlatformClient.d.ts +209 -150
  89. package/sdk/platform/client/CatalogPlatformClient.js +441 -294
  90. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
  91. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
  92. package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
  93. package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
  94. package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
  95. package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
  96. package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
  97. package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
  98. package/sdk/platform/client/OrderPlatformClient.js +1551 -247
  99. package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
  100. package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
  101. package/sdk/platform/models/CatalogValidator.d.ts +24 -21
  102. package/sdk/platform/models/CatalogValidator.js +103 -72
  103. package/sdk/platform/models/OrderValidator.d.ts +43 -11
  104. package/sdk/platform/models/OrderValidator.js +312 -51
  105. package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
  106. package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
  107. package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
  108. package/tests/common/schema/action-url.json +15 -0
  109. package/tests/common/schema/url-action.json +16 -0
@@ -51,8 +51,8 @@ declare class User {
51
51
  */
52
52
  loginWithFacebook({ body, platform }?: {
53
53
  platform?: string;
54
- body: any;
55
- }): Promise<any>;
54
+ body: OAuthRequestSchema;
55
+ }): Promise<AuthSuccess>;
56
56
  /**
57
57
  * @param {Object} arg - Arg object.
58
58
  * @param {string} [arg.platform] - ID of the application
@@ -63,8 +63,8 @@ declare class User {
63
63
  */
64
64
  loginWithGoogle({ body, platform }?: {
65
65
  platform?: string;
66
- body: any;
67
- }): Promise<any>;
66
+ body: OAuthRequestSchema;
67
+ }): Promise<AuthSuccess>;
68
68
  /**
69
69
  * @param {Object} arg - Arg object.
70
70
  * @param {string} [arg.platform] - ID of the application
@@ -75,8 +75,8 @@ declare class User {
75
75
  */
76
76
  loginWithGoogleAndroid({ body, platform }?: {
77
77
  platform?: string;
78
- body: any;
79
- }): Promise<any>;
78
+ body: OAuthRequestSchema;
79
+ }): Promise<AuthSuccess>;
80
80
  /**
81
81
  * @param {Object} arg - Arg object.
82
82
  * @param {string} [arg.platform] - ID of the application
@@ -87,8 +87,8 @@ declare class User {
87
87
  */
88
88
  loginWithGoogleIOS({ body, platform }?: {
89
89
  platform?: string;
90
- body: any;
91
- }): Promise<any>;
90
+ body: OAuthRequestSchema;
91
+ }): Promise<AuthSuccess>;
92
92
  /**
93
93
  * @param {Object} arg - Arg object.
94
94
  * @param {string} [arg.platform] - ID of the application
@@ -99,8 +99,8 @@ declare class User {
99
99
  */
100
100
  loginWithAppleIOS({ body, platform }?: {
101
101
  platform?: string;
102
- body: any;
103
- }): Promise<any>;
102
+ body: OAuthRequestAppleSchema;
103
+ }): Promise<AuthSuccess>;
104
104
  /**
105
105
  * @param {Object} arg - Arg object.
106
106
  * @param {string} [arg.platform] - ID of the application
@@ -111,8 +111,8 @@ declare class User {
111
111
  */
112
112
  loginWithOTP({ body, platform }?: {
113
113
  platform?: string;
114
- body: any;
115
- }): Promise<any>;
114
+ body: SendOtpRequestSchema;
115
+ }): Promise<SendOtpResponse>;
116
116
  /**
117
117
  * @param {Object} arg - Arg object.
118
118
  * @param {PasswordLoginRequestSchema} arg.body
@@ -121,8 +121,8 @@ declare class User {
121
121
  * @description: Use this API to login or register using an email address and password.
122
122
  */
123
123
  loginWithEmailAndPassword({ body }?: {
124
- body: any;
125
- }): Promise<any>;
124
+ body: PasswordLoginRequestSchema;
125
+ }): Promise<LoginSuccess>;
126
126
  /**
127
127
  * @param {Object} arg - Arg object.
128
128
  * @param {string} [arg.platform] - ID of the application
@@ -133,8 +133,8 @@ declare class User {
133
133
  */
134
134
  sendResetPasswordEmail({ body, platform }?: {
135
135
  platform?: string;
136
- body: any;
137
- }): Promise<any>;
136
+ body: SendResetPasswordEmailRequestSchema;
137
+ }): Promise<ResetPasswordSuccess>;
138
138
  /**
139
139
  * @param {Object} arg - Arg object.
140
140
  * @param {string} [arg.platform] - ID of the application
@@ -145,8 +145,8 @@ declare class User {
145
145
  */
146
146
  sendResetPasswordMobile({ body, platform }?: {
147
147
  platform?: string;
148
- body: any;
149
- }): Promise<any>;
148
+ body: SendResetPasswordMobileRequestSchema;
149
+ }): Promise<ResetPasswordSuccess>;
150
150
  /**
151
151
  * @param {Object} arg - Arg object.
152
152
  * @param {ForgotPasswordRequestSchema} arg.body
@@ -155,8 +155,8 @@ declare class User {
155
155
  * @description: Use this API to reset a password using the code sent on email or SMS.
156
156
  */
157
157
  forgotPassword({ body }?: {
158
- body: any;
159
- }): Promise<any>;
158
+ body: ForgotPasswordRequestSchema;
159
+ }): Promise<LoginSuccess>;
160
160
  /**
161
161
  * @param {Object} arg - Arg object.
162
162
  * @param {CodeRequestBodySchema} arg.body
@@ -165,8 +165,8 @@ declare class User {
165
165
  * @description: Use this API to send code to reset password.
166
166
  */
167
167
  sendResetToken({ body }?: {
168
- body: any;
169
- }): Promise<any>;
168
+ body: CodeRequestBodySchema;
169
+ }): Promise<ResetPasswordSuccess>;
170
170
  /**
171
171
  * @param {Object} arg - Arg object.
172
172
  * @param {TokenRequestBodySchema} arg.body
@@ -175,8 +175,8 @@ declare class User {
175
175
  * @description: Use this API to login or register using a token for authentication.
176
176
  */
177
177
  loginWithToken({ body }?: {
178
- body: any;
179
- }): Promise<any>;
178
+ body: TokenRequestBodySchema;
179
+ }): Promise<LoginSuccess>;
180
180
  /**
181
181
  * @param {Object} arg - Arg object.
182
182
  * @param {string} [arg.platform] - ID of the application
@@ -187,8 +187,8 @@ declare class User {
187
187
  */
188
188
  registerWithForm({ body, platform }?: {
189
189
  platform?: string;
190
- body: any;
191
- }): Promise<any>;
190
+ body: FormRegisterRequestSchema;
191
+ }): Promise<RegisterFormSuccess>;
192
192
  /**
193
193
  * @param {Object} arg - Arg object.
194
194
  * @param {CodeRequestBodySchema} arg.body
@@ -197,8 +197,8 @@ declare class User {
197
197
  * @description: Use this API to send a verification code to verify an email.
198
198
  */
199
199
  verifyEmail({ body }?: {
200
- body: any;
201
- }): Promise<any>;
200
+ body: CodeRequestBodySchema;
201
+ }): Promise<VerifyEmailSuccess>;
202
202
  /**
203
203
  * @param {Object} arg - Arg object.
204
204
  * @param {CodeRequestBodySchema} arg.body
@@ -207,15 +207,15 @@ declare class User {
207
207
  * @description: Use this API to send a verification code to verify a mobile number.
208
208
  */
209
209
  verifyMobile({ body }?: {
210
- body: any;
211
- }): Promise<any>;
210
+ body: CodeRequestBodySchema;
211
+ }): Promise<VerifyEmailSuccess>;
212
212
  /**
213
213
  * @param {Object} arg - Arg object.
214
214
  * @returns {Promise<HasPasswordSuccess>} - Success response
215
215
  * @summary: Check password
216
216
  * @description: Use this API to check if user has created a password for login.
217
217
  */
218
- hasPassword({}?: any): Promise<any>;
218
+ hasPassword({}?: any): Promise<HasPasswordSuccess>;
219
219
  /**
220
220
  * @param {Object} arg - Arg object.
221
221
  * @param {UpdatePasswordRequestSchema} arg.body
@@ -224,8 +224,8 @@ declare class User {
224
224
  * @description: Use this API to update the password.
225
225
  */
226
226
  updatePassword({ body }?: {
227
- body: any;
228
- }): Promise<any>;
227
+ body: UpdatePasswordRequestSchema;
228
+ }): Promise<VerifyEmailSuccess>;
229
229
  /**
230
230
  * @param {Object} arg - Arg object.
231
231
  * @param {DeleteApplicationUserRequestSchema} arg.body
@@ -234,15 +234,15 @@ declare class User {
234
234
  * @description: verify otp and delete user
235
235
  */
236
236
  deleteUser({ body }?: {
237
- body: any;
238
- }): Promise<any>;
237
+ body: DeleteApplicationUserRequestSchema;
238
+ }): Promise<DeleteUserSuccess>;
239
239
  /**
240
240
  * @param {Object} arg - Arg object.
241
241
  * @returns {Promise<LogoutSuccess>} - Success response
242
242
  * @summary: Logs out currently logged in user
243
243
  * @description: Use this API to check to logout a user from the app.
244
244
  */
245
- logout({}?: any): Promise<any>;
245
+ logout({}?: any): Promise<LogoutSuccess>;
246
246
  /**
247
247
  * @param {Object} arg - Arg object.
248
248
  * @param {string} [arg.platform] - ID of the application
@@ -253,8 +253,8 @@ declare class User {
253
253
  */
254
254
  sendOTPOnMobile({ body, platform }?: {
255
255
  platform?: string;
256
- body: any;
257
- }): Promise<any>;
256
+ body: SendMobileOtpRequestSchema;
257
+ }): Promise<OtpSuccess>;
258
258
  /**
259
259
  * @param {Object} arg - Arg object.
260
260
  * @param {string} [arg.platform] - ID of the application
@@ -265,8 +265,8 @@ declare class User {
265
265
  */
266
266
  verifyMobileOTP({ body, platform }?: {
267
267
  platform?: string;
268
- body: any;
269
- }): Promise<any>;
268
+ body: VerifyOtpRequestSchema;
269
+ }): Promise<VerifyOtpSuccess>;
270
270
  /**
271
271
  * @param {Object} arg - Arg object.
272
272
  * @param {string} [arg.platform] - ID of the application
@@ -277,8 +277,8 @@ declare class User {
277
277
  */
278
278
  sendOTPOnEmail({ body, platform }?: {
279
279
  platform?: string;
280
- body: any;
281
- }): Promise<any>;
280
+ body: SendEmailOtpRequestSchema;
281
+ }): Promise<EmailOtpSuccess>;
282
282
  /**
283
283
  * @param {Object} arg - Arg object.
284
284
  * @param {string} [arg.platform] - ID of the application
@@ -289,22 +289,22 @@ declare class User {
289
289
  */
290
290
  verifyEmailOTP({ body, platform }?: {
291
291
  platform?: string;
292
- body: any;
293
- }): Promise<any>;
292
+ body: VerifyEmailOtpRequestSchema;
293
+ }): Promise<VerifyOtpSuccess>;
294
294
  /**
295
295
  * @param {Object} arg - Arg object.
296
296
  * @returns {Promise<UserObjectSchema>} - Success response
297
297
  * @summary: Get logged in user
298
298
  * @description: Use this API to get the details of a logged in user.
299
299
  */
300
- getLoggedInUser({}?: any): Promise<any>;
300
+ getLoggedInUser({}?: any): Promise<UserObjectSchema>;
301
301
  /**
302
302
  * @param {Object} arg - Arg object.
303
303
  * @returns {Promise<SessionListSuccess>} - Success response
304
304
  * @summary: Get list of sessions
305
305
  * @description: Use this API to retrieve all active sessions of a user.
306
306
  */
307
- getListOfActiveSessions({}?: any): Promise<any>;
307
+ getListOfActiveSessions({}?: any): Promise<SessionListSuccess>;
308
308
  /**
309
309
  * @param {Object} arg - Arg object.
310
310
  * @param {string} [arg.name] - Name of the application, e.g. Fynd
@@ -314,7 +314,7 @@ declare class User {
314
314
  */
315
315
  getPlatformConfig({ name }?: {
316
316
  name?: string;
317
- }): Promise<any>;
317
+ }): Promise<PlatformSchema>;
318
318
  /**
319
319
  * @param {Object} arg - Arg object.
320
320
  * @param {string} [arg.platform] - ID of the application
@@ -325,8 +325,8 @@ declare class User {
325
325
  */
326
326
  updateProfile({ body, platform }?: {
327
327
  platform?: string;
328
- body: any;
329
- }): Promise<any>;
328
+ body: EditProfileRequestSchema;
329
+ }): Promise<ProfileEditSuccess>;
330
330
  /**
331
331
  * @param {Object} arg - Arg object.
332
332
  * @param {string} [arg.platform] - ID of the application
@@ -337,8 +337,8 @@ declare class User {
337
337
  */
338
338
  addMobileNumber({ body, platform }?: {
339
339
  platform?: string;
340
- body: any;
341
- }): Promise<any>;
340
+ body: EditMobileRequestSchema;
341
+ }): Promise<VerifyMobileOTPSuccess>;
342
342
  /**
343
343
  * @param {Object} arg - Arg object.
344
344
  * @param {string} [arg.platform] - ID of the application
@@ -363,7 +363,7 @@ declare class User {
363
363
  verified: boolean;
364
364
  countryCode: string;
365
365
  phone: string;
366
- }): Promise<any>;
366
+ }): Promise<LoginSuccess>;
367
367
  /**
368
368
  * @param {Object} arg - Arg object.
369
369
  * @param {SendVerificationLinkMobileRequestSchema} arg.body
@@ -372,8 +372,8 @@ declare class User {
372
372
  * @description: Use this API to set a mobile number as primary. Primary number is a verified number used for all future communications.
373
373
  */
374
374
  setMobileNumberAsPrimary({ body }?: {
375
- body: any;
376
- }): Promise<any>;
375
+ body: SendVerificationLinkMobileRequestSchema;
376
+ }): Promise<LoginSuccess>;
377
377
  /**
378
378
  * @param {Object} arg - Arg object.
379
379
  * @param {string} [arg.platform] - ID of the application
@@ -384,8 +384,8 @@ declare class User {
384
384
  */
385
385
  sendVerificationLinkToMobile({ body, platform }?: {
386
386
  platform?: string;
387
- body: any;
388
- }): Promise<any>;
387
+ body: SendVerificationLinkMobileRequestSchema;
388
+ }): Promise<SendMobileVerifyLinkSuccess>;
389
389
  /**
390
390
  * @param {Object} arg - Arg object.
391
391
  * @param {string} [arg.platform] - ID of the application
@@ -396,8 +396,8 @@ declare class User {
396
396
  */
397
397
  addEmail({ body, platform }?: {
398
398
  platform?: string;
399
- body: any;
400
- }): Promise<any>;
399
+ body: EditEmailRequestSchema;
400
+ }): Promise<VerifyEmailOTPSuccess>;
401
401
  /**
402
402
  * @param {Object} arg - Arg object.
403
403
  * @param {string} [arg.platform] - ID of the application
@@ -420,7 +420,7 @@ declare class User {
420
420
  primary: boolean;
421
421
  verified: boolean;
422
422
  email: string;
423
- }): Promise<any>;
423
+ }): Promise<LoginSuccess>;
424
424
  /**
425
425
  * @param {Object} arg - Arg object.
426
426
  * @param {EditEmailRequestSchema} arg.body
@@ -429,8 +429,8 @@ declare class User {
429
429
  * @description: Use this API to set an email address as primary. Primary email ID is a email address used for all future communications.
430
430
  */
431
431
  setEmailAsPrimary({ body }?: {
432
- body: any;
433
- }): Promise<any>;
432
+ body: EditEmailRequestSchema;
433
+ }): Promise<LoginSuccess>;
434
434
  /**
435
435
  * @param {Object} arg - Arg object.
436
436
  * @param {string} [arg.platform] - ID of the application
@@ -441,6 +441,6 @@ declare class User {
441
441
  */
442
442
  sendVerificationLinkToEmail({ body, platform }?: {
443
443
  platform?: string;
444
- body: any;
445
- }): Promise<any>;
444
+ body: EditEmailRequestSchema;
445
+ }): Promise<SendEmailVerifyLinkSuccess>;
446
446
  }
@@ -20,8 +20,8 @@ declare class CatalogValidator {
20
20
  static getCollectionItemsBySlug(): any;
21
21
  static getCollectionDetailBySlug(): any;
22
22
  static getFollowedListing(): any;
23
- static unfollowById(): any;
24
23
  static followById(): any;
24
+ static unfollowById(): any;
25
25
  static getFollowerCountById(): any;
26
26
  static getFollowIds(): any;
27
27
  static getStores(): any;
@@ -146,14 +146,14 @@ class CatalogValidator {
146
146
  }).required();
147
147
  }
148
148
 
149
- static unfollowById() {
149
+ static followById() {
150
150
  return Joi.object({
151
151
  collectionType: Joi.string().allow("").required(),
152
152
  collectionId: Joi.string().allow("").required(),
153
153
  }).required();
154
154
  }
155
155
 
156
- static followById() {
156
+ static unfollowById() {
157
157
  return Joi.object({
158
158
  collectionType: Joi.string().allow("").required(),
159
159
  collectionId: Joi.string().allow("").required(),
@@ -14,6 +14,8 @@ declare class PaymentValidator {
14
14
  static getRupifiBannerDetails(): any;
15
15
  static getEpaylaterBannerDetails(): any;
16
16
  static resendOrCancelPayment(): any;
17
+ static renderHTML(): any;
18
+ static validateVPA(): any;
17
19
  static getActiveRefundTransferModes(): any;
18
20
  static enableOrDisableRefundTransferMode(): any;
19
21
  static getUserBeneficiariesDetail(): any;
@@ -95,6 +95,18 @@ class PaymentValidator {
95
95
  }).required();
96
96
  }
97
97
 
98
+ static renderHTML() {
99
+ return Joi.object({
100
+ body: Validator.renderHTMLRequest().required(),
101
+ }).required();
102
+ }
103
+
104
+ static validateVPA() {
105
+ return Joi.object({
106
+ body: Validator.ValidateVPARequest().required(),
107
+ }).required();
108
+ }
109
+
98
110
  static getActiveRefundTransferModes() {
99
111
  return Joi.object({});
100
112
  }
@@ -1,10 +1,10 @@
1
1
  export = RewardsValidator;
2
2
  declare class RewardsValidator {
3
- static getPointsOnProduct(): any;
4
3
  static getOfferByName(): any;
5
- static getOrderDiscount(): any;
6
- static getUserPoints(): any;
4
+ static catalogueOrder(): any;
7
5
  static getUserPointsHistory(): any;
6
+ static getUserPoints(): any;
8
7
  static getUserReferralDetails(): any;
8
+ static getOrderDiscount(): any;
9
9
  static redeemReferralCode(): any;
10
10
  }
@@ -1,28 +1,18 @@
1
1
  const Joi = require("joi");
2
2
  const { Validator } = require("../ApplicationModels");
3
3
  class RewardsValidator {
4
- static getPointsOnProduct() {
5
- return Joi.object({
6
- body: Validator.CatalogueOrderRequest().required(),
7
- }).required();
8
- }
9
-
10
4
  static getOfferByName() {
11
5
  return Joi.object({
12
6
  name: Joi.string().allow("").required(),
13
7
  }).required();
14
8
  }
15
9
 
16
- static getOrderDiscount() {
10
+ static catalogueOrder() {
17
11
  return Joi.object({
18
- body: Validator.OrderDiscountRequest().required(),
12
+ body: Validator.CatalogueOrderRequest().required(),
19
13
  }).required();
20
14
  }
21
15
 
22
- static getUserPoints() {
23
- return Joi.object({});
24
- }
25
-
26
16
  static getUserPointsHistory() {
27
17
  return Joi.object({
28
18
  pageId: Joi.string().allow(""),
@@ -30,10 +20,20 @@ class RewardsValidator {
30
20
  });
31
21
  }
32
22
 
23
+ static getUserPoints() {
24
+ return Joi.object({});
25
+ }
26
+
33
27
  static getUserReferralDetails() {
34
28
  return Joi.object({});
35
29
  }
36
30
 
31
+ static getOrderDiscount() {
32
+ return Joi.object({
33
+ body: Validator.OrderDiscountRequest().required(),
34
+ }).required();
35
+ }
36
+
37
37
  static redeemReferralCode() {
38
38
  return Joi.object({
39
39
  body: Validator.RedeemReferralCodeRequest().required(),
@@ -37,7 +37,7 @@ function requestInterceptorFn() {
37
37
  }
38
38
  const { host, pathname, search } = new URL(url);
39
39
  const { data, headers, method, params } = config;
40
- headers["x-fp-sdk-version"] = "0.1.35";
40
+ headers["x-fp-sdk-version"] = "0.1.36";
41
41
  let querySearchObj = querystring.parse(search);
42
42
  querySearchObj = { ...querySearchObj, ...params };
43
43
  let queryParam = "";
@@ -25,6 +25,7 @@ export namespace AVAILABLE_PAGE_TYPE {
25
25
  const PRODUCT_REQUEST: string;
26
26
  const PRODUCTS: string;
27
27
  const PROFILE: string;
28
+ const PROFILE_ORDER_SHIPMENT: string;
28
29
  const PROFILE_BASIC: string;
29
30
  const PROFILE_COMPANY: string;
30
31
  const PROFILE_EMAILS: string;
@@ -195,6 +196,14 @@ export const NAVIGATORS: {
195
196
  name: string;
196
197
  link: string;
197
198
  };
199
+ "profile-order-shipment": {
200
+ name: string;
201
+ link: string;
202
+ params: {
203
+ key: string;
204
+ required: boolean;
205
+ }[];
206
+ };
198
207
  "profile-basic": {
199
208
  name: string;
200
209
  link: string;
@@ -25,6 +25,7 @@ const AVAILABLE_PAGE_TYPE = {
25
25
  PRODUCT_REQUEST: "product-request",
26
26
  PRODUCTS: "products",
27
27
  PROFILE: "profile",
28
+ PROFILE_ORDER_SHIPMENT: "profile-order-shipment",
28
29
  PROFILE_BASIC: "profile-basic",
29
30
  PROFILE_COMPANY: "profile-company",
30
31
  PROFILE_EMAILS: "profile-emails",
@@ -220,6 +221,16 @@ const NAVIGATORS = {
220
221
  name: "Profile",
221
222
  link: "/profile",
222
223
  },
224
+ "profile-order-shipment": {
225
+ name: "profile orders shipment",
226
+ link: "/profile/orders/shipment/:shipmentid",
227
+ params: [
228
+ {
229
+ key: "shipmentid",
230
+ required: true,
231
+ },
232
+ ],
233
+ },
223
234
  "profile-basic": {
224
235
  name: "Basic Profile",
225
236
  link: "/profile/details",