@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.4

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 (42) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  4. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  5. package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -1
  6. package/sdk/application/Payment/PaymentApplicationModel.js +19 -0
  7. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  8. package/sdk/application/User/UserApplicationClient.js +4 -7
  9. package/sdk/application/User/UserApplicationModel.d.ts +32 -27
  10. package/sdk/application/User/UserApplicationModel.js +22 -32
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  15. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +34 -1
  16. package/sdk/platform/Catalog/CatalogPlatformModel.js +44 -0
  17. package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
  18. package/sdk/platform/Content/ContentPlatformModel.js +20 -0
  19. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  20. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  21. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  22. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  23. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  24. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  25. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +14 -1
  26. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +16 -0
  27. package/sdk/platform/Order/OrderPlatformModel.d.ts +12 -0
  28. package/sdk/platform/Order/OrderPlatformModel.js +12 -0
  29. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
  30. package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
  31. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  32. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  33. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
  34. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
  35. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  36. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  37. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  38. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  39. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  40. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  41. package/sdk/platform/User/UserPlatformModel.d.ts +83 -13
  42. package/sdk/platform/User/UserPlatformModel.js +82 -12
package/README.md CHANGED
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.2-beta.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.2-beta.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.2-beta.3",
3
+ "version": "1.4.2-beta.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -119,6 +119,7 @@ export = OrderApplicationModel;
119
119
  * @property {number} [refund_amount]
120
120
  * @property {string} [currency_code]
121
121
  * @property {number} [fynd_credits]
122
+ * @property {number} [amount_to_be_collected]
122
123
  */
123
124
  /**
124
125
  * @typedef ItemBrand
@@ -191,6 +192,7 @@ export = OrderApplicationModel;
191
192
  * @property {number} [gst_fee]
192
193
  * @property {number} [refund_amount]
193
194
  * @property {number} [fynd_credits]
195
+ * @property {number} [amount_to_be_collected]
194
196
  */
195
197
  /**
196
198
  * @typedef CurrentStatus
@@ -253,6 +255,7 @@ export = OrderApplicationModel;
253
255
  /**
254
256
  * @typedef Shipments
255
257
  * @property {ShipmentPayment} [payment]
258
+ * @property {ShipmentPayment[]} [payment_info]
256
259
  * @property {string} [order_type]
257
260
  * @property {boolean} [show_download_invoice]
258
261
  * @property {boolean} [can_cancel]
@@ -659,6 +662,7 @@ type Prices = {
659
662
  refund_amount?: number;
660
663
  currency_code?: string;
661
664
  fynd_credits?: number;
665
+ amount_to_be_collected?: number;
662
666
  };
663
667
  /** @returns {ItemBrand} */
664
668
  declare function ItemBrand(): ItemBrand;
@@ -737,6 +741,7 @@ type FinancialBreakup = {
737
741
  gst_fee?: number;
738
742
  refund_amount?: number;
739
743
  fynd_credits?: number;
744
+ amount_to_be_collected?: number;
740
745
  };
741
746
  /** @returns {CurrentStatus} */
742
747
  declare function CurrentStatus(): CurrentStatus;
@@ -804,6 +809,7 @@ type DeliveryAddress = {
804
809
  declare function Shipments(): Shipments;
805
810
  type Shipments = {
806
811
  payment?: ShipmentPayment;
812
+ payment_info?: ShipmentPayment[];
807
813
  order_type?: string;
808
814
  show_download_invoice?: boolean;
809
815
  can_cancel?: boolean;
@@ -133,6 +133,7 @@ const Joi = require("joi");
133
133
  * @property {number} [refund_amount]
134
134
  * @property {string} [currency_code]
135
135
  * @property {number} [fynd_credits]
136
+ * @property {number} [amount_to_be_collected]
136
137
  */
137
138
 
138
139
  /**
@@ -211,6 +212,7 @@ const Joi = require("joi");
211
212
  * @property {number} [gst_fee]
212
213
  * @property {number} [refund_amount]
213
214
  * @property {number} [fynd_credits]
215
+ * @property {number} [amount_to_be_collected]
214
216
  */
215
217
 
216
218
  /**
@@ -278,6 +280,7 @@ const Joi = require("joi");
278
280
  /**
279
281
  * @typedef Shipments
280
282
  * @property {ShipmentPayment} [payment]
283
+ * @property {ShipmentPayment[]} [payment_info]
281
284
  * @property {string} [order_type]
282
285
  * @property {boolean} [show_download_invoice]
283
286
  * @property {boolean} [can_cancel]
@@ -748,6 +751,7 @@ class OrderApplicationModel {
748
751
  refund_amount: Joi.number(),
749
752
  currency_code: Joi.string().allow(""),
750
753
  fynd_credits: Joi.number(),
754
+ amount_to_be_collected: Joi.number(),
751
755
  });
752
756
  }
753
757
 
@@ -840,6 +844,7 @@ class OrderApplicationModel {
840
844
  gst_fee: Joi.number(),
841
845
  refund_amount: Joi.number(),
842
846
  fynd_credits: Joi.number(),
847
+ amount_to_be_collected: Joi.number(),
843
848
  });
844
849
  }
845
850
 
@@ -919,6 +924,7 @@ class OrderApplicationModel {
919
924
  static Shipments() {
920
925
  return Joi.object({
921
926
  payment: OrderApplicationModel.ShipmentPayment(),
927
+ payment_info: Joi.array().items(OrderApplicationModel.ShipmentPayment()),
922
928
  order_type: Joi.string().allow("").allow(null),
923
929
  show_download_invoice: Joi.boolean(),
924
930
  can_cancel: Joi.boolean(),
@@ -267,6 +267,13 @@ export = PaymentApplicationModel;
267
267
  * @property {string} [payment_flow] - Payment_flow
268
268
  * @property {string} [api_link] - Api_link
269
269
  */
270
+ /**
271
+ * @typedef PaymentDefaultSelection
272
+ * @property {string} [mode] - Default Selection Payment Mode
273
+ * @property {string} [identifier] - Identifier for Payment Mode
274
+ * @property {boolean} [skip] - Decide if the default payment mode will skip the
275
+ * payment options page altogether or just be preferred on the Frontend
276
+ */
270
277
  /**
271
278
  * @typedef PaymentFlow
272
279
  * @property {AggregatorRoute} [bqr_razorpay]
@@ -288,6 +295,7 @@ export = PaymentApplicationModel;
288
295
  * @typedef PaymentOptionAndFlow
289
296
  * @property {RootPaymentMode} payment_option
290
297
  * @property {PaymentFlow} payment_flows
298
+ * @property {PaymentDefaultSelection} [payment_default_selection]
291
299
  */
292
300
  /**
293
301
  * @typedef AdvanceObject
@@ -915,7 +923,7 @@ export = PaymentApplicationModel;
915
923
  declare class PaymentApplicationModel {
916
924
  }
917
925
  declare namespace PaymentApplicationModel {
918
- export { AggregatorConfigDetail, AggregatorsConfigDetailResponse, ErrorCodeAndDescription, HttpErrorCodeAndResponse, AttachCardRequest, AttachCardsResponse, CardPaymentGateway, ActiveCardPaymentGatewayResponse, Card, ListCardsResponse, DeletehCardRequest, DeleteCardsResponse, ValidateCustomerRequest, ValidateCustomerResponse, ChargeCustomerRequest, ChargeCustomerResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, IntentAppErrorList, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, AggregatorRoute, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, WalletLinkRequestSchema, WalletVerifyRequestSchema, WalletDelinkRequestSchema, WalletResponseSchema, RupifiBannerData, RupifiBannerResponse, EpaylaterBannerData, EpaylaterBannerResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, renderHTMLRequest, renderHTMLResponse, ValidateVPARequest, ValidateUPI, ValidateVPAResponse, CardDetails, CardDetailsResponse, TransferItemsDetails, TransferModeDetails, TransferModeResponse, UpdateRefundTransferModeRequest, UpdateRefundTransferModeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, NotFoundResourceError, IfscCodeResponse, ErrorCodeDescription, AddBeneficiaryViaOtpVerificationRequest, AddBeneficiaryViaOtpVerificationResponse, WrongOtpError, BeneficiaryModeDetails, AddBeneficiaryDetailsRequest, RefundAccountResponse, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, WalletOtpRequest, WalletOtpResponse, SetDefaultBeneficiaryRequest, SetDefaultBeneficiaryResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, PollingPaymentLinkResponse, PaymentMethodsMeta, CreateOrderUserPaymentMethods, CreateOrderUserRequest, CreateOrderUserData, CreateOrderUserResponse, BalanceDetails, CreditSummary, CustomerCreditSummaryResponse, RedirectURL, RedirectToAggregatorResponse, CreditDetail, CheckCreditResponse, KYCAddress, UserPersonalInfoInDetails, MarketplaceInfo, BusinessDetails, DeviceDetails, CustomerOnboardingRequest, OnboardSummary, CustomerOnboardingResponse, OutstandingOrderDetailsResponse, PaidOrderDetailsResponse, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse };
926
+ export { AggregatorConfigDetail, AggregatorsConfigDetailResponse, ErrorCodeAndDescription, HttpErrorCodeAndResponse, AttachCardRequest, AttachCardsResponse, CardPaymentGateway, ActiveCardPaymentGatewayResponse, Card, ListCardsResponse, DeletehCardRequest, DeleteCardsResponse, ValidateCustomerRequest, ValidateCustomerResponse, ChargeCustomerRequest, ChargeCustomerResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, IntentAppErrorList, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, WalletLinkRequestSchema, WalletVerifyRequestSchema, WalletDelinkRequestSchema, WalletResponseSchema, RupifiBannerData, RupifiBannerResponse, EpaylaterBannerData, EpaylaterBannerResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, renderHTMLRequest, renderHTMLResponse, ValidateVPARequest, ValidateUPI, ValidateVPAResponse, CardDetails, CardDetailsResponse, TransferItemsDetails, TransferModeDetails, TransferModeResponse, UpdateRefundTransferModeRequest, UpdateRefundTransferModeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, NotFoundResourceError, IfscCodeResponse, ErrorCodeDescription, AddBeneficiaryViaOtpVerificationRequest, AddBeneficiaryViaOtpVerificationResponse, WrongOtpError, BeneficiaryModeDetails, AddBeneficiaryDetailsRequest, RefundAccountResponse, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, WalletOtpRequest, WalletOtpResponse, SetDefaultBeneficiaryRequest, SetDefaultBeneficiaryResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, PollingPaymentLinkResponse, PaymentMethodsMeta, CreateOrderUserPaymentMethods, CreateOrderUserRequest, CreateOrderUserData, CreateOrderUserResponse, BalanceDetails, CreditSummary, CustomerCreditSummaryResponse, RedirectURL, RedirectToAggregatorResponse, CreditDetail, CheckCreditResponse, KYCAddress, UserPersonalInfoInDetails, MarketplaceInfo, BusinessDetails, DeviceDetails, CustomerOnboardingRequest, OnboardSummary, CustomerOnboardingResponse, OutstandingOrderDetailsResponse, PaidOrderDetailsResponse, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse };
919
927
  }
920
928
  /** @returns {AggregatorConfigDetail} */
921
929
  declare function AggregatorConfigDetail(): AggregatorConfigDetail;
@@ -1724,6 +1732,23 @@ type AggregatorRoute = {
1724
1732
  */
1725
1733
  api_link?: string;
1726
1734
  };
1735
+ /** @returns {PaymentDefaultSelection} */
1736
+ declare function PaymentDefaultSelection(): PaymentDefaultSelection;
1737
+ type PaymentDefaultSelection = {
1738
+ /**
1739
+ * - Default Selection Payment Mode
1740
+ */
1741
+ mode?: string;
1742
+ /**
1743
+ * - Identifier for Payment Mode
1744
+ */
1745
+ identifier?: string;
1746
+ /**
1747
+ * - Decide if the default payment mode will skip the
1748
+ * payment options page altogether or just be preferred on the Frontend
1749
+ */
1750
+ skip?: boolean;
1751
+ };
1727
1752
  /** @returns {PaymentFlow} */
1728
1753
  declare function PaymentFlow(): PaymentFlow;
1729
1754
  type PaymentFlow = {
@@ -1747,6 +1772,7 @@ declare function PaymentOptionAndFlow(): PaymentOptionAndFlow;
1747
1772
  type PaymentOptionAndFlow = {
1748
1773
  payment_option: RootPaymentMode;
1749
1774
  payment_flows: PaymentFlow;
1775
+ payment_default_selection?: PaymentDefaultSelection;
1750
1776
  };
1751
1777
  /** @returns {AdvanceObject} */
1752
1778
  declare function AdvanceObject(): AdvanceObject;
@@ -294,6 +294,14 @@ const Joi = require("joi");
294
294
  * @property {string} [api_link] - Api_link
295
295
  */
296
296
 
297
+ /**
298
+ * @typedef PaymentDefaultSelection
299
+ * @property {string} [mode] - Default Selection Payment Mode
300
+ * @property {string} [identifier] - Identifier for Payment Mode
301
+ * @property {boolean} [skip] - Decide if the default payment mode will skip the
302
+ * payment options page altogether or just be preferred on the Frontend
303
+ */
304
+
297
305
  /**
298
306
  * @typedef PaymentFlow
299
307
  * @property {AggregatorRoute} [bqr_razorpay]
@@ -316,6 +324,7 @@ const Joi = require("joi");
316
324
  * @typedef PaymentOptionAndFlow
317
325
  * @property {RootPaymentMode} payment_option
318
326
  * @property {PaymentFlow} payment_flows
327
+ * @property {PaymentDefaultSelection} [payment_default_selection]
319
328
  */
320
329
 
321
330
  /**
@@ -1367,6 +1376,15 @@ class PaymentApplicationModel {
1367
1376
  });
1368
1377
  }
1369
1378
 
1379
+ /** @returns {PaymentDefaultSelection} */
1380
+ static PaymentDefaultSelection() {
1381
+ return Joi.object({
1382
+ mode: Joi.string().allow("").allow(null),
1383
+ identifier: Joi.string().allow("").allow(null),
1384
+ skip: Joi.boolean().allow(null),
1385
+ });
1386
+ }
1387
+
1370
1388
  /** @returns {PaymentFlow} */
1371
1389
  static PaymentFlow() {
1372
1390
  return Joi.object({
@@ -1392,6 +1410,7 @@ class PaymentApplicationModel {
1392
1410
  return Joi.object({
1393
1411
  payment_option: PaymentApplicationModel.RootPaymentMode().required(),
1394
1412
  payment_flows: PaymentApplicationModel.PaymentFlow().required(),
1413
+ payment_default_selection: PaymentApplicationModel.PaymentDefaultSelection(),
1395
1414
  });
1396
1415
  }
1397
1416
 
@@ -324,12 +324,12 @@ declare class User {
324
324
  * @param {UserApplicationValidator.SendResetPasswordMobileParam} arg - Arg object.
325
325
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
326
326
  * @param {import("../ApplicationAPIClient").Options} - Options
327
- * @returns {Promise<UserApplicationModel.ResetPasswordSuccess>} - Success response
327
+ * @returns {Promise<any>} - Success response
328
328
  * @name sendResetPasswordMobile
329
329
  * @summary: Reset Password
330
330
  * @description: Use this API to reset a password using the link sent on mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/).
331
331
  */
332
- sendResetPasswordMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendResetPasswordMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.ResetPasswordSuccess>;
332
+ sendResetPasswordMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendResetPasswordMobileParam, { responseHeaders }?: object): Promise<any>;
333
333
  /**
334
334
  * @param {UserApplicationValidator.SendResetTokenParam} arg - Arg object.
335
335
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2248,7 +2248,7 @@ class User {
2248
2248
  * @param {UserApplicationValidator.SendResetPasswordMobileParam} arg - Arg object.
2249
2249
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2250
2250
  * @param {import("../ApplicationAPIClient").Options} - Options
2251
- * @returns {Promise<UserApplicationModel.ResetPasswordSuccess>} - Success response
2251
+ * @returns {Promise<any>} - Success response
2252
2252
  * @name sendResetPasswordMobile
2253
2253
  * @summary: Reset Password
2254
2254
  * @description: Use this API to reset a password using the link sent on mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/).
@@ -2304,12 +2304,9 @@ class User {
2304
2304
  responseData = response[0];
2305
2305
  }
2306
2306
 
2307
- const {
2308
- error: res_error,
2309
- } = UserApplicationModel.ResetPasswordSuccess().validate(responseData, {
2310
- abortEarly: false,
2311
- allowUnknown: true,
2312
- });
2307
+ const { error: res_error } = Joi.string()
2308
+ .allow("")
2309
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
2313
2310
 
2314
2311
  if (res_error) {
2315
2312
  if (this._conf.options.strictResponseCheck === true) {
@@ -34,6 +34,7 @@ export = UserApplicationModel;
34
34
  */
35
35
  /**
36
36
  * @typedef EditProfileRequestSchema
37
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
37
38
  * @property {string} [first_name]
38
39
  * @property {string} [last_name]
39
40
  * @property {EditProfileMobileSchema} [mobile]
@@ -89,6 +90,7 @@ export = UserApplicationModel;
89
90
  */
90
91
  /**
91
92
  * @typedef SendMobileOtpRequestSchema
93
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
92
94
  * @property {string} [mobile]
93
95
  * @property {string} [country_code]
94
96
  * @property {string} [action]
@@ -148,6 +150,7 @@ export = UserApplicationModel;
148
150
  */
149
151
  /**
150
152
  * @typedef SendOtpRequestSchema
153
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
151
154
  * @property {string} [country_code]
152
155
  * @property {string} [mobile]
153
156
  * @property {string} [android_hash]
@@ -259,7 +262,7 @@ export = UserApplicationModel;
259
262
  */
260
263
  /**
261
264
  * @typedef HasPasswordSuccess
262
- * @property {boolean} [result]
265
+ * @property {number} [result]
263
266
  */
264
267
  /**
265
268
  * @typedef LogoutSuccess
@@ -283,6 +286,7 @@ export = UserApplicationModel;
283
286
  /**
284
287
  * @typedef EmailOtpSuccess
285
288
  * @property {boolean} [success]
289
+ * @property {string} [resend_email_token]
286
290
  */
287
291
  /**
288
292
  * @typedef SessionListSuccess
@@ -306,21 +310,15 @@ export = UserApplicationModel;
306
310
  * @typedef SendEmailVerifyLinkSuccess
307
311
  * @property {boolean} [verify_email_link]
308
312
  */
309
- /**
310
- * @typedef AuthenticationInternalServerErrorSchema
311
- * @property {string} [message]
312
- */
313
- /**
314
- * @typedef AuthenticationApiErrorSchema
315
- * @property {string} [message]
316
- */
317
313
  /**
318
314
  * @typedef APIError
319
315
  * @property {string} [code]
320
316
  * @property {string} [message]
321
317
  * @property {string} [info] - Error code description link
322
318
  * @property {string} [request_id]
319
+ * @property {string} [error]
323
320
  * @property {Object} [meta]
321
+ * @property {boolean} [authenticated]
324
322
  */
325
323
  /**
326
324
  * @typedef FormRegisterRequestSchemaPhone
@@ -377,8 +375,9 @@ export = UserApplicationModel;
377
375
  * @property {string} [desktop_image]
378
376
  * @property {number} [delete_account_day]
379
377
  * @property {DeleteAccountReasons[]} [delete_account_reasons]
380
- * @property {Object} [delete_account_consent]
381
- * @property {Object} [session_config]
378
+ * @property {DeleteAccountConsent} [delete_account_consent]
379
+ * @property {SessionExpiry} [session_config]
380
+ * @property {number} [__v]
382
381
  */
383
382
  /**
384
383
  * @typedef LookAndFeel
@@ -440,7 +439,7 @@ export = UserApplicationModel;
440
439
  /**
441
440
  * @typedef SocialTokens
442
441
  * @property {Facebook} [facebook]
443
- * @property {Accountkit} [account_kit]
442
+ * @property {Accountkit} [accountkit]
444
443
  * @property {Google} [google]
445
444
  */
446
445
  /**
@@ -508,7 +507,7 @@ export = UserApplicationModel;
508
507
  declare class UserApplicationModel {
509
508
  }
510
509
  declare namespace UserApplicationModel {
511
- export { UpdateUserAttributesRequest, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsResponse, SendOtpResponse, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, OtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, AuthenticationInternalServerErrorSchema, AuthenticationApiErrorSchema, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
510
+ export { UpdateUserAttributesRequest, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsResponse, SendOtpResponse, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, OtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
512
511
  }
513
512
  /** @returns {UpdateUserAttributesRequest} */
514
513
  declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
@@ -552,6 +551,10 @@ type EditMobileRequestSchema = {
552
551
  /** @returns {EditProfileRequestSchema} */
553
552
  declare function EditProfileRequestSchema(): EditProfileRequestSchema;
554
553
  type EditProfileRequestSchema = {
554
+ /**
555
+ * - Set to true if you want to encrypt the OTP.
556
+ */
557
+ encrypt_otp?: boolean;
555
558
  first_name?: string;
556
559
  last_name?: string;
557
560
  mobile?: EditProfileMobileSchema;
@@ -615,6 +618,10 @@ type VerifyMobileForgotOtpRequestSchema = {
615
618
  /** @returns {SendMobileOtpRequestSchema} */
616
619
  declare function SendMobileOtpRequestSchema(): SendMobileOtpRequestSchema;
617
620
  type SendMobileOtpRequestSchema = {
621
+ /**
622
+ * - Set to true if you want to encrypt the OTP.
623
+ */
624
+ encrypt_otp?: boolean;
618
625
  mobile?: string;
619
626
  country_code?: string;
620
627
  action?: string;
@@ -684,6 +691,10 @@ type PasswordLoginRequestSchema = {
684
691
  /** @returns {SendOtpRequestSchema} */
685
692
  declare function SendOtpRequestSchema(): SendOtpRequestSchema;
686
693
  type SendOtpRequestSchema = {
694
+ /**
695
+ * - Set to true if you want to encrypt the OTP.
696
+ */
697
+ encrypt_otp?: boolean;
687
698
  country_code?: string;
688
699
  mobile?: string;
689
700
  android_hash?: string;
@@ -810,7 +821,7 @@ type VerifyEmailSuccess = {
810
821
  /** @returns {HasPasswordSuccess} */
811
822
  declare function HasPasswordSuccess(): HasPasswordSuccess;
812
823
  type HasPasswordSuccess = {
813
- result?: boolean;
824
+ result?: number;
814
825
  };
815
826
  /** @returns {LogoutSuccess} */
816
827
  declare function LogoutSuccess(): LogoutSuccess;
@@ -838,6 +849,7 @@ type OtpSuccess = {
838
849
  declare function EmailOtpSuccess(): EmailOtpSuccess;
839
850
  type EmailOtpSuccess = {
840
851
  success?: boolean;
852
+ resend_email_token?: string;
841
853
  };
842
854
  /** @returns {SessionListSuccess} */
843
855
  declare function SessionListSuccess(): SessionListSuccess;
@@ -866,16 +878,6 @@ declare function SendEmailVerifyLinkSuccess(): SendEmailVerifyLinkSuccess;
866
878
  type SendEmailVerifyLinkSuccess = {
867
879
  verify_email_link?: boolean;
868
880
  };
869
- /** @returns {AuthenticationInternalServerErrorSchema} */
870
- declare function AuthenticationInternalServerErrorSchema(): AuthenticationInternalServerErrorSchema;
871
- type AuthenticationInternalServerErrorSchema = {
872
- message?: string;
873
- };
874
- /** @returns {AuthenticationApiErrorSchema} */
875
- declare function AuthenticationApiErrorSchema(): AuthenticationApiErrorSchema;
876
- type AuthenticationApiErrorSchema = {
877
- message?: string;
878
- };
879
881
  /** @returns {APIError} */
880
882
  declare function APIError(): APIError;
881
883
  type APIError = {
@@ -886,7 +888,9 @@ type APIError = {
886
888
  */
887
889
  info?: string;
888
890
  request_id?: string;
891
+ error?: string;
889
892
  meta?: any;
893
+ authenticated?: boolean;
890
894
  };
891
895
  /** @returns {FormRegisterRequestSchemaPhone} */
892
896
  declare function FormRegisterRequestSchemaPhone(): FormRegisterRequestSchemaPhone;
@@ -949,8 +953,9 @@ type PlatformSchema = {
949
953
  desktop_image?: string;
950
954
  delete_account_day?: number;
951
955
  delete_account_reasons?: DeleteAccountReasons[];
952
- delete_account_consent?: any;
953
- session_config?: any;
956
+ delete_account_consent?: DeleteAccountConsent;
957
+ session_config?: SessionExpiry;
958
+ __v?: number;
954
959
  };
955
960
  /** @returns {LookAndFeel} */
956
961
  declare function LookAndFeel(): LookAndFeel;
@@ -1024,7 +1029,7 @@ type FlashCard = {
1024
1029
  declare function SocialTokens(): SocialTokens;
1025
1030
  type SocialTokens = {
1026
1031
  facebook?: Facebook;
1027
- account_kit?: Accountkit;
1032
+ accountkit?: Accountkit;
1028
1033
  google?: Google;
1029
1034
  };
1030
1035
  /** @returns {DeleteAccountReasons} */
@@ -41,6 +41,7 @@ const Joi = require("joi");
41
41
 
42
42
  /**
43
43
  * @typedef EditProfileRequestSchema
44
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
44
45
  * @property {string} [first_name]
45
46
  * @property {string} [last_name]
46
47
  * @property {EditProfileMobileSchema} [mobile]
@@ -104,6 +105,7 @@ const Joi = require("joi");
104
105
 
105
106
  /**
106
107
  * @typedef SendMobileOtpRequestSchema
108
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
107
109
  * @property {string} [mobile]
108
110
  * @property {string} [country_code]
109
111
  * @property {string} [action]
@@ -173,6 +175,7 @@ const Joi = require("joi");
173
175
 
174
176
  /**
175
177
  * @typedef SendOtpRequestSchema
178
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
176
179
  * @property {string} [country_code]
177
180
  * @property {string} [mobile]
178
181
  * @property {string} [android_hash]
@@ -299,7 +302,7 @@ const Joi = require("joi");
299
302
 
300
303
  /**
301
304
  * @typedef HasPasswordSuccess
302
- * @property {boolean} [result]
305
+ * @property {number} [result]
303
306
  */
304
307
 
305
308
  /**
@@ -327,6 +330,7 @@ const Joi = require("joi");
327
330
  /**
328
331
  * @typedef EmailOtpSuccess
329
332
  * @property {boolean} [success]
333
+ * @property {string} [resend_email_token]
330
334
  */
331
335
 
332
336
  /**
@@ -356,23 +360,15 @@ const Joi = require("joi");
356
360
  * @property {boolean} [verify_email_link]
357
361
  */
358
362
 
359
- /**
360
- * @typedef AuthenticationInternalServerErrorSchema
361
- * @property {string} [message]
362
- */
363
-
364
- /**
365
- * @typedef AuthenticationApiErrorSchema
366
- * @property {string} [message]
367
- */
368
-
369
363
  /**
370
364
  * @typedef APIError
371
365
  * @property {string} [code]
372
366
  * @property {string} [message]
373
367
  * @property {string} [info] - Error code description link
374
368
  * @property {string} [request_id]
369
+ * @property {string} [error]
375
370
  * @property {Object} [meta]
371
+ * @property {boolean} [authenticated]
376
372
  */
377
373
 
378
374
  /**
@@ -435,8 +431,9 @@ const Joi = require("joi");
435
431
  * @property {string} [desktop_image]
436
432
  * @property {number} [delete_account_day]
437
433
  * @property {DeleteAccountReasons[]} [delete_account_reasons]
438
- * @property {Object} [delete_account_consent]
439
- * @property {Object} [session_config]
434
+ * @property {DeleteAccountConsent} [delete_account_consent]
435
+ * @property {SessionExpiry} [session_config]
436
+ * @property {number} [__v]
440
437
  */
441
438
 
442
439
  /**
@@ -510,7 +507,7 @@ const Joi = require("joi");
510
507
  /**
511
508
  * @typedef SocialTokens
512
509
  * @property {Facebook} [facebook]
513
- * @property {Accountkit} [account_kit]
510
+ * @property {Accountkit} [accountkit]
514
511
  * @property {Google} [google]
515
512
  */
516
513
 
@@ -640,6 +637,7 @@ class UserApplicationModel {
640
637
  /** @returns {EditProfileRequestSchema} */
641
638
  static EditProfileRequestSchema() {
642
639
  return Joi.object({
640
+ encrypt_otp: Joi.boolean(),
643
641
  first_name: Joi.string().allow(""),
644
642
  last_name: Joi.string().allow(""),
645
643
  mobile: UserApplicationModel.EditProfileMobileSchema(),
@@ -719,6 +717,7 @@ class UserApplicationModel {
719
717
  /** @returns {SendMobileOtpRequestSchema} */
720
718
  static SendMobileOtpRequestSchema() {
721
719
  return Joi.object({
720
+ encrypt_otp: Joi.boolean(),
722
721
  mobile: Joi.string().allow(""),
723
722
  country_code: Joi.string().allow(""),
724
723
  action: Joi.string().allow(""),
@@ -808,6 +807,7 @@ class UserApplicationModel {
808
807
  /** @returns {SendOtpRequestSchema} */
809
808
  static SendOtpRequestSchema() {
810
809
  return Joi.object({
810
+ encrypt_otp: Joi.boolean(),
811
811
  country_code: Joi.string().allow(""),
812
812
  mobile: Joi.string().allow(""),
813
813
  android_hash: Joi.string().allow(""),
@@ -964,7 +964,7 @@ class UserApplicationModel {
964
964
  /** @returns {HasPasswordSuccess} */
965
965
  static HasPasswordSuccess() {
966
966
  return Joi.object({
967
- result: Joi.boolean(),
967
+ result: Joi.number(),
968
968
  });
969
969
  }
970
970
 
@@ -1000,6 +1000,7 @@ class UserApplicationModel {
1000
1000
  static EmailOtpSuccess() {
1001
1001
  return Joi.object({
1002
1002
  success: Joi.boolean(),
1003
+ resend_email_token: Joi.string().allow(""),
1003
1004
  });
1004
1005
  }
1005
1006
 
@@ -1040,20 +1041,6 @@ class UserApplicationModel {
1040
1041
  });
1041
1042
  }
1042
1043
 
1043
- /** @returns {AuthenticationInternalServerErrorSchema} */
1044
- static AuthenticationInternalServerErrorSchema() {
1045
- return Joi.object({
1046
- message: Joi.string().allow(""),
1047
- });
1048
- }
1049
-
1050
- /** @returns {AuthenticationApiErrorSchema} */
1051
- static AuthenticationApiErrorSchema() {
1052
- return Joi.object({
1053
- message: Joi.string().allow(""),
1054
- });
1055
- }
1056
-
1057
1044
  /** @returns {APIError} */
1058
1045
  static APIError() {
1059
1046
  return Joi.object({
@@ -1061,7 +1048,9 @@ class UserApplicationModel {
1061
1048
  message: Joi.string().allow(""),
1062
1049
  info: Joi.string().allow(""),
1063
1050
  request_id: Joi.string().allow(""),
1051
+ error: Joi.string().allow(""),
1064
1052
  meta: Joi.any(),
1053
+ authenticated: Joi.boolean(),
1065
1054
  });
1066
1055
  }
1067
1056
 
@@ -1138,8 +1127,9 @@ class UserApplicationModel {
1138
1127
  delete_account_reasons: Joi.array().items(
1139
1128
  UserApplicationModel.DeleteAccountReasons()
1140
1129
  ),
1141
- delete_account_consent: Joi.any(),
1142
- session_config: Joi.any(),
1130
+ delete_account_consent: UserApplicationModel.DeleteAccountConsent(),
1131
+ session_config: UserApplicationModel.SessionExpiry(),
1132
+ __v: Joi.number(),
1143
1133
  });
1144
1134
  }
1145
1135
 
@@ -1237,7 +1227,7 @@ class UserApplicationModel {
1237
1227
  static SocialTokens() {
1238
1228
  return Joi.object({
1239
1229
  facebook: UserApplicationModel.Facebook(),
1240
- account_kit: UserApplicationModel.Accountkit(),
1230
+ accountkit: UserApplicationModel.Accountkit(),
1241
1231
  google: UserApplicationModel.Google(),
1242
1232
  });
1243
1233
  }
@@ -546,6 +546,32 @@ declare class Catalog {
546
546
  pageSize?: number;
547
547
  q?: string;
548
548
  }): Paginator<CatalogPlatformModel.ApplicationDepartmentListingResponse>;
549
+ /**
550
+ * @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg
551
+ * - Arg object
552
+ *
553
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
554
+ * @param {import("../PlatformAPIClient").Options} - Options
555
+ * @returns {Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>} -
556
+ * Success response
557
+ * @name getApplicationFilterKeys
558
+ * @summary: Get filters keys of the filter options.
559
+ * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/).
560
+ */
561
+ getApplicationFilterKeys({ c, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>;
562
+ /**
563
+ * @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg
564
+ * - Arg object
565
+ *
566
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
567
+ * @param {import("../PlatformAPIClient").Options} - Options
568
+ * @returns {Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>} -
569
+ * Success response
570
+ * @name getApplicationFilterValues
571
+ * @summary: Get values of the selected value for the filter options.
572
+ * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
573
+ */
574
+ getApplicationFilterValues({ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>;
549
575
  /**
550
576
  * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
551
577
  * - Arg object