@gofynd/fdk-client-javascript 1.3.4-beta.1 → 1.3.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +18 -1
- package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
- package/sdk/application/User/UserApplicationClient.d.ts +56 -0
- package/sdk/application/User/UserApplicationClient.js +385 -0
- package/sdk/application/User/UserApplicationModel.d.ts +93 -1
- package/sdk/application/User/UserApplicationModel.js +110 -0
- package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
- package/sdk/application/User/UserApplicationValidator.js +68 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/index.d.ts +1 -0
- package/sdk/partner/index.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
- package/sdk/platform/Order/OrderPlatformModel.js +10 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
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.3.4
|
|
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.3.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
|
@@ -383,6 +383,13 @@ export = CatalogApplicationModel;
|
|
|
383
383
|
* @property {string} [subtitle]
|
|
384
384
|
* @property {string} [title]
|
|
385
385
|
*/
|
|
386
|
+
/**
|
|
387
|
+
* @typedef ProductDepartment
|
|
388
|
+
* @property {Media} [logo]
|
|
389
|
+
* @property {string} [name]
|
|
390
|
+
* @property {string} [slug]
|
|
391
|
+
* @property {number} [uid]
|
|
392
|
+
*/
|
|
386
393
|
/**
|
|
387
394
|
* @typedef ProductDetail
|
|
388
395
|
* @property {Object} [_custom_json]
|
|
@@ -394,6 +401,7 @@ export = CatalogApplicationModel;
|
|
|
394
401
|
* @property {ProductCategoryMap} [category_map]
|
|
395
402
|
* @property {string} [color]
|
|
396
403
|
* @property {ProductDetailCustomOrder} [custom_order]
|
|
404
|
+
* @property {ProductDepartment} [department]
|
|
397
405
|
* @property {string} [description]
|
|
398
406
|
* @property {string} [discount]
|
|
399
407
|
* @property {ProductDetailGroupedAttribute[]} [grouped_attributes]
|
|
@@ -967,7 +975,7 @@ export = CatalogApplicationModel;
|
|
|
967
975
|
declare class CatalogApplicationModel {
|
|
968
976
|
}
|
|
969
977
|
declare namespace CatalogApplicationModel {
|
|
970
|
-
export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, DiscountMeta, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizesPrice, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, PromiseSchema, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight };
|
|
978
|
+
export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, DiscountMeta, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDepartment, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizesPrice, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, PromiseSchema, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight };
|
|
971
979
|
}
|
|
972
980
|
/** @returns {ApplicationItemMOQ} */
|
|
973
981
|
declare function ApplicationItemMOQ(): ApplicationItemMOQ;
|
|
@@ -1474,6 +1482,14 @@ type ProductCompareResponse = {
|
|
|
1474
1482
|
subtitle?: string;
|
|
1475
1483
|
title?: string;
|
|
1476
1484
|
};
|
|
1485
|
+
/** @returns {ProductDepartment} */
|
|
1486
|
+
declare function ProductDepartment(): ProductDepartment;
|
|
1487
|
+
type ProductDepartment = {
|
|
1488
|
+
logo?: Media;
|
|
1489
|
+
name?: string;
|
|
1490
|
+
slug?: string;
|
|
1491
|
+
uid?: number;
|
|
1492
|
+
};
|
|
1477
1493
|
/** @returns {ProductDetail} */
|
|
1478
1494
|
declare function ProductDetail(): ProductDetail;
|
|
1479
1495
|
type ProductDetail = {
|
|
@@ -1486,6 +1502,7 @@ type ProductDetail = {
|
|
|
1486
1502
|
category_map?: ProductCategoryMap;
|
|
1487
1503
|
color?: string;
|
|
1488
1504
|
custom_order?: ProductDetailCustomOrder;
|
|
1505
|
+
department?: ProductDepartment;
|
|
1489
1506
|
description?: string;
|
|
1490
1507
|
discount?: string;
|
|
1491
1508
|
grouped_attributes?: ProductDetailGroupedAttribute[];
|
|
@@ -439,6 +439,14 @@ const Joi = require("joi");
|
|
|
439
439
|
* @property {string} [title]
|
|
440
440
|
*/
|
|
441
441
|
|
|
442
|
+
/**
|
|
443
|
+
* @typedef ProductDepartment
|
|
444
|
+
* @property {Media} [logo]
|
|
445
|
+
* @property {string} [name]
|
|
446
|
+
* @property {string} [slug]
|
|
447
|
+
* @property {number} [uid]
|
|
448
|
+
*/
|
|
449
|
+
|
|
442
450
|
/**
|
|
443
451
|
* @typedef ProductDetail
|
|
444
452
|
* @property {Object} [_custom_json]
|
|
@@ -450,6 +458,7 @@ const Joi = require("joi");
|
|
|
450
458
|
* @property {ProductCategoryMap} [category_map]
|
|
451
459
|
* @property {string} [color]
|
|
452
460
|
* @property {ProductDetailCustomOrder} [custom_order]
|
|
461
|
+
* @property {ProductDepartment} [department]
|
|
453
462
|
* @property {string} [description]
|
|
454
463
|
* @property {string} [discount]
|
|
455
464
|
* @property {ProductDetailGroupedAttribute[]} [grouped_attributes]
|
|
@@ -1643,6 +1652,16 @@ class CatalogApplicationModel {
|
|
|
1643
1652
|
});
|
|
1644
1653
|
}
|
|
1645
1654
|
|
|
1655
|
+
/** @returns {ProductDepartment} */
|
|
1656
|
+
static ProductDepartment() {
|
|
1657
|
+
return Joi.object({
|
|
1658
|
+
logo: CatalogApplicationModel.Media(),
|
|
1659
|
+
name: Joi.string().allow(""),
|
|
1660
|
+
slug: Joi.string().allow(""),
|
|
1661
|
+
uid: Joi.number(),
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1646
1665
|
/** @returns {ProductDetail} */
|
|
1647
1666
|
static ProductDetail() {
|
|
1648
1667
|
return Joi.object({
|
|
@@ -1657,6 +1676,7 @@ class CatalogApplicationModel {
|
|
|
1657
1676
|
category_map: CatalogApplicationModel.ProductCategoryMap(),
|
|
1658
1677
|
color: Joi.string().allow(""),
|
|
1659
1678
|
custom_order: CatalogApplicationModel.ProductDetailCustomOrder(),
|
|
1679
|
+
department: CatalogApplicationModel.ProductDepartment(),
|
|
1660
1680
|
description: Joi.string().allow(""),
|
|
1661
1681
|
discount: Joi.string().allow(""),
|
|
1662
1682
|
grouped_attributes: Joi.array().items(
|
|
@@ -13,10 +13,10 @@ class FileStorage {
|
|
|
13
13
|
this._conf = _conf;
|
|
14
14
|
this._relativeUrls = {
|
|
15
15
|
completeUpload:
|
|
16
|
-
"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete
|
|
17
|
-
signUrls: "/service/application/assets/v1.0/sign-urls
|
|
16
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
|
|
17
|
+
signUrls: "/service/application/assets/v1.0/sign-urls",
|
|
18
18
|
startUpload:
|
|
19
|
-
"/service/application/assets/v1.0/namespaces/{namespace}/upload/start
|
|
19
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
|
|
20
20
|
};
|
|
21
21
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
22
22
|
(urls, [method, relativeUrl]) => {
|
|
@@ -10,6 +10,7 @@ export = FileStorageApplicationModel;
|
|
|
10
10
|
* @property {string} _id
|
|
11
11
|
* @property {CDN} cdn
|
|
12
12
|
* @property {string} content_type
|
|
13
|
+
* @property {CreatedBy} [created_by]
|
|
13
14
|
* @property {string} created_on
|
|
14
15
|
* @property {string} file_name
|
|
15
16
|
* @property {string} file_path
|
|
@@ -22,8 +23,12 @@ export = FileStorageApplicationModel;
|
|
|
22
23
|
* @property {Upload} upload
|
|
23
24
|
*/
|
|
24
25
|
/**
|
|
25
|
-
* @typedef
|
|
26
|
-
* @property {string}
|
|
26
|
+
* @typedef CreatedBy
|
|
27
|
+
* @property {string} [username]
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef Params
|
|
31
|
+
* @property {string} [subpath] - The subpath for the file.
|
|
27
32
|
*/
|
|
28
33
|
/**
|
|
29
34
|
* @typedef SignUrlRequest
|
|
@@ -38,7 +43,7 @@ export = FileStorageApplicationModel;
|
|
|
38
43
|
* @typedef StartRequest
|
|
39
44
|
* @property {string} content_type
|
|
40
45
|
* @property {string} file_name
|
|
41
|
-
* @property {
|
|
46
|
+
* @property {Params} [params]
|
|
42
47
|
* @property {number} size
|
|
43
48
|
* @property {string[]} [tags]
|
|
44
49
|
*/
|
|
@@ -69,7 +74,7 @@ export = FileStorageApplicationModel;
|
|
|
69
74
|
declare class FileStorageApplicationModel {
|
|
70
75
|
}
|
|
71
76
|
declare namespace FileStorageApplicationModel {
|
|
72
|
-
export { CDN, CompleteResponse,
|
|
77
|
+
export { CDN, CompleteResponse, CreatedBy, Params, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, Upload, Urls };
|
|
73
78
|
}
|
|
74
79
|
/** @returns {CDN} */
|
|
75
80
|
declare function CDN(): CDN;
|
|
@@ -84,6 +89,7 @@ type CompleteResponse = {
|
|
|
84
89
|
_id: string;
|
|
85
90
|
cdn: CDN;
|
|
86
91
|
content_type: string;
|
|
92
|
+
created_by?: CreatedBy;
|
|
87
93
|
created_on: string;
|
|
88
94
|
file_name: string;
|
|
89
95
|
file_path: string;
|
|
@@ -95,10 +101,18 @@ type CompleteResponse = {
|
|
|
95
101
|
tags?: string[];
|
|
96
102
|
upload: Upload;
|
|
97
103
|
};
|
|
98
|
-
/** @returns {
|
|
99
|
-
declare function
|
|
100
|
-
type
|
|
101
|
-
|
|
104
|
+
/** @returns {CreatedBy} */
|
|
105
|
+
declare function CreatedBy(): CreatedBy;
|
|
106
|
+
type CreatedBy = {
|
|
107
|
+
username?: string;
|
|
108
|
+
};
|
|
109
|
+
/** @returns {Params} */
|
|
110
|
+
declare function Params(): Params;
|
|
111
|
+
type Params = {
|
|
112
|
+
/**
|
|
113
|
+
* - The subpath for the file.
|
|
114
|
+
*/
|
|
115
|
+
subpath?: string;
|
|
102
116
|
};
|
|
103
117
|
/** @returns {SignUrlRequest} */
|
|
104
118
|
declare function SignUrlRequest(): SignUrlRequest;
|
|
@@ -116,7 +130,7 @@ declare function StartRequest(): StartRequest;
|
|
|
116
130
|
type StartRequest = {
|
|
117
131
|
content_type: string;
|
|
118
132
|
file_name: string;
|
|
119
|
-
params?:
|
|
133
|
+
params?: Params;
|
|
120
134
|
size: number;
|
|
121
135
|
tags?: string[];
|
|
122
136
|
};
|
|
@@ -12,6 +12,7 @@ const Joi = require("joi");
|
|
|
12
12
|
* @property {string} _id
|
|
13
13
|
* @property {CDN} cdn
|
|
14
14
|
* @property {string} content_type
|
|
15
|
+
* @property {CreatedBy} [created_by]
|
|
15
16
|
* @property {string} created_on
|
|
16
17
|
* @property {string} file_name
|
|
17
18
|
* @property {string} file_path
|
|
@@ -25,8 +26,13 @@ const Joi = require("joi");
|
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {string}
|
|
29
|
+
* @typedef CreatedBy
|
|
30
|
+
* @property {string} [username]
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef Params
|
|
35
|
+
* @property {string} [subpath] - The subpath for the file.
|
|
30
36
|
*/
|
|
31
37
|
|
|
32
38
|
/**
|
|
@@ -44,7 +50,7 @@ const Joi = require("joi");
|
|
|
44
50
|
* @typedef StartRequest
|
|
45
51
|
* @property {string} content_type
|
|
46
52
|
* @property {string} file_name
|
|
47
|
-
* @property {
|
|
53
|
+
* @property {Params} [params]
|
|
48
54
|
* @property {number} size
|
|
49
55
|
* @property {string[]} [tags]
|
|
50
56
|
*/
|
|
@@ -92,6 +98,7 @@ class FileStorageApplicationModel {
|
|
|
92
98
|
_id: Joi.string().allow("").required(),
|
|
93
99
|
cdn: FileStorageApplicationModel.CDN().required(),
|
|
94
100
|
content_type: Joi.string().allow("").required(),
|
|
101
|
+
created_by: FileStorageApplicationModel.CreatedBy(),
|
|
95
102
|
created_on: Joi.string().allow("").required(),
|
|
96
103
|
file_name: Joi.string().allow("").required(),
|
|
97
104
|
file_path: Joi.string().allow("").required(),
|
|
@@ -105,10 +112,17 @@ class FileStorageApplicationModel {
|
|
|
105
112
|
});
|
|
106
113
|
}
|
|
107
114
|
|
|
108
|
-
/** @returns {
|
|
109
|
-
static
|
|
115
|
+
/** @returns {CreatedBy} */
|
|
116
|
+
static CreatedBy() {
|
|
117
|
+
return Joi.object({
|
|
118
|
+
username: Joi.string().allow(""),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** @returns {Params} */
|
|
123
|
+
static Params() {
|
|
110
124
|
return Joi.object({
|
|
111
|
-
|
|
125
|
+
subpath: Joi.string().allow(""),
|
|
112
126
|
});
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -132,7 +146,7 @@ class FileStorageApplicationModel {
|
|
|
132
146
|
return Joi.object({
|
|
133
147
|
content_type: Joi.string().allow("").required(),
|
|
134
148
|
file_name: Joi.string().allow("").required(),
|
|
135
|
-
params:
|
|
149
|
+
params: FileStorageApplicationModel.Params(),
|
|
136
150
|
size: Joi.number().required(),
|
|
137
151
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
138
152
|
});
|
|
@@ -23,6 +23,9 @@ declare class User {
|
|
|
23
23
|
loginWithToken: string;
|
|
24
24
|
logout: string;
|
|
25
25
|
registerWithForm: string;
|
|
26
|
+
resetForgotPassword: string;
|
|
27
|
+
sendForgotOTPOnEmail: string;
|
|
28
|
+
sendForgotOTPOnMobile: string;
|
|
26
29
|
sendOTPOnEmail: string;
|
|
27
30
|
sendOTPOnMobile: string;
|
|
28
31
|
sendResetPasswordEmail: string;
|
|
@@ -35,8 +38,10 @@ declare class User {
|
|
|
35
38
|
updatePassword: string;
|
|
36
39
|
updateProfile: string;
|
|
37
40
|
verifyEmail: string;
|
|
41
|
+
verifyEmailForgotOTP: string;
|
|
38
42
|
verifyEmailOTP: string;
|
|
39
43
|
verifyMobile: string;
|
|
44
|
+
verifyMobileForgotOTP: string;
|
|
40
45
|
verifyMobileOTP: string;
|
|
41
46
|
};
|
|
42
47
|
_urls: {};
|
|
@@ -241,6 +246,37 @@ declare class User {
|
|
|
241
246
|
* @description: Use this API to perform user registration by sending form data in the request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/registerWithForm/).
|
|
242
247
|
*/
|
|
243
248
|
registerWithForm({ body, platform, requestHeaders }?: UserApplicationValidator.RegisterWithFormParam, { responseHeaders }?: object): Promise<UserApplicationModel.RegisterFormSuccess>;
|
|
249
|
+
/**
|
|
250
|
+
* @param {UserApplicationValidator.ResetForgotPasswordParam} arg - Arg object.
|
|
251
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
252
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
253
|
+
* @returns {Promise<UserApplicationModel.ResetForgotPasswordSuccess>} -
|
|
254
|
+
* Success response
|
|
255
|
+
* @name resetForgotPassword
|
|
256
|
+
* @summary: Reset forgot Password
|
|
257
|
+
* @description: Use this API to reset a password using the code sent on email or SMS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/resetForgotPassword/).
|
|
258
|
+
*/
|
|
259
|
+
resetForgotPassword({ body, requestHeaders }?: UserApplicationValidator.ResetForgotPasswordParam, { responseHeaders }?: object): Promise<UserApplicationModel.ResetForgotPasswordSuccess>;
|
|
260
|
+
/**
|
|
261
|
+
* @param {UserApplicationValidator.SendForgotOTPOnEmailParam} arg - Arg object.
|
|
262
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
263
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
264
|
+
* @returns {Promise<UserApplicationModel.EmailOtpSuccess>} - Success response
|
|
265
|
+
* @name sendForgotOTPOnEmail
|
|
266
|
+
* @summary: Send Forgot OTP on email
|
|
267
|
+
* @description: Use this API to send an Forgot OTP to an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnEmail/).
|
|
268
|
+
*/
|
|
269
|
+
sendForgotOTPOnEmail({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnEmailParam, { responseHeaders }?: object): Promise<UserApplicationModel.EmailOtpSuccess>;
|
|
270
|
+
/**
|
|
271
|
+
* @param {UserApplicationValidator.SendForgotOTPOnMobileParam} arg - Arg object.
|
|
272
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
273
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
274
|
+
* @returns {Promise<UserApplicationModel.OtpSuccess>} - Success response
|
|
275
|
+
* @name sendForgotOTPOnMobile
|
|
276
|
+
* @summary: Send Forgot OTP on mobile
|
|
277
|
+
* @description: Use this API to send an Forgot OTP to a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
|
|
278
|
+
*/
|
|
279
|
+
sendForgotOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.OtpSuccess>;
|
|
244
280
|
/**
|
|
245
281
|
* @param {UserApplicationValidator.SendOTPOnEmailParam} arg - Arg object.
|
|
246
282
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -366,6 +402,16 @@ declare class User {
|
|
|
366
402
|
* @description: Use this API to send a verification code to verify an email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmail/).
|
|
367
403
|
*/
|
|
368
404
|
verifyEmail({ body, requestHeaders }?: UserApplicationValidator.VerifyEmailParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyEmailSuccess>;
|
|
405
|
+
/**
|
|
406
|
+
* @param {UserApplicationValidator.VerifyEmailForgotOTPParam} arg - Arg object.
|
|
407
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
408
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
409
|
+
* @returns {Promise<UserApplicationModel.VerifyForgotOtpSuccess>} - Success response
|
|
410
|
+
* @name verifyEmailForgotOTP
|
|
411
|
+
* @summary: Verify Forgot OTP on email
|
|
412
|
+
* @description: Use this API to verify the Forgot OTP received on an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailForgotOTP/).
|
|
413
|
+
*/
|
|
414
|
+
verifyEmailForgotOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyEmailForgotOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyForgotOtpSuccess>;
|
|
369
415
|
/**
|
|
370
416
|
* @param {UserApplicationValidator.VerifyEmailOTPParam} arg - Arg object.
|
|
371
417
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -386,6 +432,16 @@ declare class User {
|
|
|
386
432
|
* @description: Use this API to send a verification code to verify a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobile/).
|
|
387
433
|
*/
|
|
388
434
|
verifyMobile({ body, requestHeaders }?: UserApplicationValidator.VerifyMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyEmailSuccess>;
|
|
435
|
+
/**
|
|
436
|
+
* @param {UserApplicationValidator.VerifyMobileForgotOTPParam} arg - Arg object.
|
|
437
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
438
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
439
|
+
* @returns {Promise<UserApplicationModel.VerifyForgotOtpSuccess>} - Success response
|
|
440
|
+
* @name verifyMobileForgotOTP
|
|
441
|
+
* @summary: Verify Forgot OTP on mobile
|
|
442
|
+
* @description: Use this API to verify the Forgot OTP received on a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileForgotOTP/).
|
|
443
|
+
*/
|
|
444
|
+
verifyMobileForgotOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyMobileForgotOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyForgotOtpSuccess>;
|
|
389
445
|
/**
|
|
390
446
|
* @param {UserApplicationValidator.VerifyMobileOTPParam} arg - Arg object.
|
|
391
447
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|