@gofynd/fdk-client-javascript 1.0.1 → 1.0.2
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/documentation/application/CART.md +251 -251
- package/documentation/application/CATALOG.md +414 -414
- package/documentation/application/CONTENT.md +15 -1
- package/documentation/application/ORDER.md +290 -290
- package/documentation/application/PAYMENT.md +255 -255
- package/documentation/application/POSCART.md +297 -297
- package/documentation/platform/CART.md +499 -499
- package/documentation/platform/CATALOG.md +3088 -2702
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/CONTENT.md +123 -1
- package/documentation/platform/ORDER.md +1233 -1158
- package/documentation/platform/PARTNER.md +7 -7
- package/documentation/platform/PAYMENT.md +83 -83
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +619 -108
- package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationModel.js +335 -335
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +730 -134
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +21 -21
- package/sdk/application/Catalog/CatalogApplicationModel.js +547 -547
- package/sdk/application/Common/CommonApplicationClient.js +48 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +75 -14
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +392 -66
- package/sdk/application/Content/ContentApplicationClient.js +444 -76
- package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +11 -1
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -12
- package/sdk/application/Lead/LeadApplicationClient.js +164 -30
- package/sdk/application/Logistic/LogisticApplicationClient.js +98 -16
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +287 -54
- package/sdk/application/Order/OrderApplicationModel.d.ts +19 -19
- package/sdk/application/Order/OrderApplicationModel.js +357 -357
- package/sdk/application/Payment/PaymentApplicationClient.js +961 -186
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +352 -352
- package/sdk/application/PosCart/PosCartApplicationClient.js +645 -114
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
- package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
- package/sdk/application/Rewards/RewardsApplicationClient.js +168 -28
- package/sdk/application/Share/ShareApplicationClient.js +157 -32
- package/sdk/application/Theme/ThemeApplicationClient.js +94 -16
- package/sdk/application/User/UserApplicationClient.js +806 -148
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +191 -34
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +103 -16
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +299 -54
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +409 -72
- package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
- package/sdk/platform/Cart/CartPlatformModel.js +617 -617
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +167 -114
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1562 -453
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +39 -39
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +314 -196
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2459 -718
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +103 -94
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2063 -1797
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +17 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +95 -76
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
- package/sdk/platform/Common/CommonPlatformClient.js +51 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1000 -168
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +335 -54
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +10 -10
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +278 -278
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +702 -118
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +457 -82
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1724 -284
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
- package/sdk/platform/Content/ContentPlatformModel.js +43 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
- package/sdk/platform/Discount/DiscountPlatformClient.js +270 -44
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +102 -16
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +150 -24
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
- package/sdk/platform/Inventory/InventoryPlatformClient.js +316 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +311 -52
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +266 -44
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +78 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -43
- package/sdk/platform/Order/OrderPlatformClient.js +1062 -180
- package/sdk/platform/Order/OrderPlatformModel.d.ts +64 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1481 -1425
- package/sdk/platform/Order/OrderPlatformValidator.js +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +287 -56
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
- package/sdk/platform/Payment/PaymentPlatformClient.js +263 -48
- package/sdk/platform/Payment/PaymentPlatformModel.js +122 -122
- package/sdk/platform/PlatformApplicationClient.d.ts +2959 -2787
- package/sdk/platform/PlatformApplicationClient.js +3420 -3212
- package/sdk/platform/PlatformClient.d.ts +2959 -2787
- package/sdk/platform/PlatformClient.js +3420 -3212
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +308 -54
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +94 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +571 -96
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +296 -48
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +157 -30
- package/sdk/public/Configuration/ConfigurationPublicClient.js +51 -8
- package/sdk/public/Inventory/InventoryPublicClient.js +149 -26
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
|
@@ -7,107 +7,118 @@ declare class Rewards {
|
|
|
7
7
|
* @param {Object} arg - Arg object.
|
|
8
8
|
* @param {string} arg.pageId - Pagination page id
|
|
9
9
|
* @param {number} arg.pageSize - Pagination page size
|
|
10
|
+
* @returns {Promise<GiveawayResponse>} - Success response
|
|
10
11
|
* @summary: List of giveaways of the current application.
|
|
11
12
|
* @description: List of giveaways of the current application.
|
|
12
13
|
*/
|
|
13
14
|
showGiveaways({ pageId, pageSize }?: {
|
|
14
15
|
pageId: string;
|
|
15
16
|
pageSize: number;
|
|
16
|
-
}): Promise<
|
|
17
|
+
}): Promise<GiveawayResponse>;
|
|
17
18
|
/**
|
|
18
19
|
* @param {Object} arg - Arg object.
|
|
19
20
|
* @param {Giveaway} arg.body
|
|
21
|
+
* @returns {Promise<Giveaway>} - Success response
|
|
20
22
|
* @summary: List of giveaways of the current application.
|
|
21
23
|
* @description: Adds a new giveaway.
|
|
22
24
|
*/
|
|
23
25
|
saveGiveAway({ body }?: {
|
|
24
26
|
body: Giveaway;
|
|
25
|
-
}): Promise<
|
|
27
|
+
}): Promise<Giveaway>;
|
|
26
28
|
/**
|
|
27
29
|
* @param {Object} arg - Arg object.
|
|
28
30
|
* @param {string} arg.id - Giveaway ID
|
|
31
|
+
* @returns {Promise<Giveaway>} - Success response
|
|
29
32
|
* @summary: Get giveaway by ID.
|
|
30
33
|
* @description: Get giveaway by ID.
|
|
31
34
|
*/
|
|
32
35
|
getGiveawayById({ id }?: {
|
|
33
36
|
id: string;
|
|
34
|
-
}): Promise<
|
|
37
|
+
}): Promise<Giveaway>;
|
|
35
38
|
/**
|
|
36
39
|
* @param {Object} arg - Arg object.
|
|
37
40
|
* @param {string} arg.id - Giveaway ID
|
|
38
41
|
* @param {Giveaway} arg.body
|
|
42
|
+
* @returns {Promise<Giveaway>} - Success response
|
|
39
43
|
* @summary: Updates the giveaway by it's ID.
|
|
40
44
|
* @description: Updates the giveaway by it's ID.
|
|
41
45
|
*/
|
|
42
46
|
updateGiveAway({ id, body }?: {
|
|
43
47
|
id: string;
|
|
44
48
|
body: Giveaway;
|
|
45
|
-
}): Promise<
|
|
49
|
+
}): Promise<Giveaway>;
|
|
46
50
|
/**
|
|
47
51
|
* @param {Object} arg - Arg object.
|
|
48
52
|
* @param {string} arg.audienceId - Audience id
|
|
53
|
+
* @returns {Promise<GiveawayAudience>} - Success response
|
|
49
54
|
* @summary: Get the Giveaway audience status
|
|
50
55
|
* @description: Get giveaway audience status
|
|
51
56
|
*/
|
|
52
57
|
getGiveawayAudienceStatus({ audienceId }?: {
|
|
53
58
|
audienceId: string;
|
|
54
|
-
}): Promise<
|
|
59
|
+
}): Promise<GiveawayAudience>;
|
|
55
60
|
/**
|
|
56
61
|
* @param {Object} arg - Arg object.
|
|
62
|
+
* @returns {Promise<Offer[]>} - Success response
|
|
57
63
|
* @summary: List of offers of the current application.
|
|
58
64
|
* @description: List of offers of the current application.
|
|
59
65
|
*/
|
|
60
|
-
showOffers({}?: any): Promise<
|
|
66
|
+
showOffers({}?: any): Promise<Offer[]>;
|
|
61
67
|
/**
|
|
62
68
|
* @param {Object} arg - Arg object.
|
|
63
69
|
* @param {string} arg.name - The name given to the offer.
|
|
64
70
|
* @param {string} arg.cookie - User's session cookie. This cookie is set in
|
|
65
71
|
* browser cookie when logged-in to fynd's authentication system i.e.
|
|
66
72
|
* `Grimlock` or by using grimlock-backend SDK for backend implementation.
|
|
73
|
+
* @returns {Promise<Offer>} - Success response
|
|
67
74
|
* @summary: Get offer by name
|
|
68
75
|
* @description: Use this API to get the offer details and configuration by entering the name of the offer.
|
|
69
76
|
*/
|
|
70
77
|
getOfferByName({ name, cookie }?: {
|
|
71
78
|
name: string;
|
|
72
79
|
cookie: string;
|
|
73
|
-
}): Promise<
|
|
80
|
+
}): Promise<Offer>;
|
|
74
81
|
/**
|
|
75
82
|
* @param {Object} arg - Arg object.
|
|
76
83
|
* @param {string} arg.name - The name given to the offer.
|
|
77
84
|
* @param {Offer} arg.body
|
|
85
|
+
* @returns {Promise<Offer>} - Success response
|
|
78
86
|
* @summary: Update offer by name
|
|
79
87
|
* @description: Use this API to update the offer details
|
|
80
88
|
*/
|
|
81
89
|
updateOfferByName({ name, body }?: {
|
|
82
90
|
name: string;
|
|
83
91
|
body: Offer;
|
|
84
|
-
}): Promise<
|
|
92
|
+
}): Promise<Offer>;
|
|
85
93
|
/**
|
|
86
94
|
* @param {Object} arg - Arg object.
|
|
87
95
|
* @param {string} arg.userId - User id
|
|
88
96
|
* @param {AppUser} arg.body
|
|
97
|
+
* @returns {Promise<AppUser>} - Success response
|
|
89
98
|
* @summary: Update user status
|
|
90
99
|
* @description: Use this API to update the user status active/archive
|
|
91
100
|
*/
|
|
92
101
|
updateUserStatus({ userId, body }?: {
|
|
93
102
|
userId: string;
|
|
94
103
|
body: AppUser;
|
|
95
|
-
}): Promise<
|
|
104
|
+
}): Promise<AppUser>;
|
|
96
105
|
/**
|
|
97
106
|
* @param {Object} arg - Arg object.
|
|
98
107
|
* @param {string} arg.userId - User id
|
|
108
|
+
* @returns {Promise<UserRes>} - Success response
|
|
99
109
|
* @summary: Get user reward details
|
|
100
110
|
* @description: Use this API to get the user reward details
|
|
101
111
|
*/
|
|
102
112
|
user({ userId }?: {
|
|
103
113
|
userId: string;
|
|
104
|
-
}): Promise<
|
|
114
|
+
}): Promise<UserRes>;
|
|
105
115
|
/**
|
|
106
116
|
* @param {Object} arg - Arg object.
|
|
107
117
|
* @param {string} arg.userId - User id
|
|
108
118
|
* @param {string} [arg.pageId] - PageID is the ID of the requested page.
|
|
109
119
|
* For first request it should be kept empty.
|
|
110
120
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
121
|
+
* @returns {Promise<HistoryRes>} - Success response
|
|
111
122
|
* @summary: Get all transactions of reward points
|
|
112
123
|
* @description: Use this API to get a list of points transactions.
|
|
113
124
|
*/
|
|
@@ -115,7 +126,7 @@ declare class Rewards {
|
|
|
115
126
|
userId: string;
|
|
116
127
|
pageId?: string;
|
|
117
128
|
pageSize?: number;
|
|
118
|
-
}): Promise<
|
|
129
|
+
}): Promise<HistoryRes>;
|
|
119
130
|
/**
|
|
120
131
|
* @param {Object} arg - Arg object.
|
|
121
132
|
* @param {string} arg.userId - User id
|
|
@@ -133,18 +144,20 @@ declare class Rewards {
|
|
|
133
144
|
}): Paginator;
|
|
134
145
|
/**
|
|
135
146
|
* @param {Object} arg - Arg object.
|
|
147
|
+
* @returns {Promise<ConfigurationRes>} - Success response
|
|
136
148
|
* @summary: Get all valid android paths
|
|
137
149
|
* @description: Use this API to get a list of valid android paths required by the Rewards INIT API to validate a fradualent device.
|
|
138
150
|
*/
|
|
139
|
-
getRewardsConfiguration({}?: any): Promise<
|
|
151
|
+
getRewardsConfiguration({}?: any): Promise<ConfigurationRes>;
|
|
140
152
|
/**
|
|
141
153
|
* @param {Object} arg - Arg object.
|
|
142
154
|
* @param {ConfigurationRequest} arg.body
|
|
155
|
+
* @returns {Promise<SetConfigurationRes>} - Success response
|
|
143
156
|
* @summary: Updates the collection with given android paths.
|
|
144
157
|
* @description: Updates the configuration or inserts new records.
|
|
145
158
|
*/
|
|
146
159
|
setRewardsConfiguration({ body }?: {
|
|
147
160
|
body: ConfigurationRequest;
|
|
148
|
-
}): Promise<
|
|
161
|
+
}): Promise<SetConfigurationRes>;
|
|
149
162
|
}
|
|
150
163
|
import Paginator = require("../../common/Paginator");
|