@gofynd/fdk-client-javascript 3.3.1 → 3.3.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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/User/UserApplicationClient.d.ts +40 -0
- package/sdk/application/User/UserApplicationClient.js +192 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +41 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +33 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -0
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.3.
|
|
240
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.3.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -27,8 +27,10 @@ declare class User {
|
|
|
27
27
|
resetForgotPassword: string;
|
|
28
28
|
sendForgotOTPOnEmail: string;
|
|
29
29
|
sendForgotOTPOnMobile: string;
|
|
30
|
+
sendOTPForUpdate: string;
|
|
30
31
|
sendOTPOnEmail: string;
|
|
31
32
|
sendOTPOnMobile: string;
|
|
33
|
+
sendOTPOnPrimary: string;
|
|
32
34
|
sendResetPasswordEmail: string;
|
|
33
35
|
sendResetPasswordMobile: string;
|
|
34
36
|
sendResetToken: string;
|
|
@@ -46,6 +48,8 @@ declare class User {
|
|
|
46
48
|
verifyMobile: string;
|
|
47
49
|
verifyMobileForgotOTP: string;
|
|
48
50
|
verifyMobileOTP: string;
|
|
51
|
+
verifyOTPForUpdate: string;
|
|
52
|
+
verifyOTPonPrimary: string;
|
|
49
53
|
};
|
|
50
54
|
_urls: {};
|
|
51
55
|
updateUrls(urls: any): void;
|
|
@@ -265,6 +269,15 @@ declare class User {
|
|
|
265
269
|
* @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
|
|
266
270
|
*/
|
|
267
271
|
sendForgotOTPOnMobile({ body, platform, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpSuccess>;
|
|
272
|
+
/**
|
|
273
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
274
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
275
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
276
|
+
* @name sendOTPForUpdate
|
|
277
|
+
* @summary: Send OTP to update Mobile or Email
|
|
278
|
+
* @description: Send OTP to mobile number or email. User needs to use sendOTPOnPrimary and verifyOTPonPrimary before using this method to update details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPForUpdate/).
|
|
279
|
+
*/
|
|
280
|
+
sendOTPForUpdate({ entity, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SendOtpSuccess>;
|
|
268
281
|
/**
|
|
269
282
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
270
283
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -283,6 +296,15 @@ declare class User {
|
|
|
283
296
|
* @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
|
|
284
297
|
*/
|
|
285
298
|
sendOTPOnMobile({ body, platform, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpSuccess>;
|
|
299
|
+
/**
|
|
300
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
301
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
302
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
303
|
+
* @name sendOTPOnPrimary
|
|
304
|
+
* @summary: Send OTP to Primary Mobile or Email
|
|
305
|
+
* @description: Send OTP to primary mobile number or email to verify primary details. Use this to update Email or Mobile, other APIs will be deprecated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnPrimary/).
|
|
306
|
+
*/
|
|
307
|
+
sendOTPOnPrimary({ entity, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SendOtpSuccess>;
|
|
286
308
|
/**
|
|
287
309
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
288
310
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -436,4 +458,22 @@ declare class User {
|
|
|
436
458
|
* @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
|
|
437
459
|
*/
|
|
438
460
|
verifyMobileOTP({ body, platform, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpSuccess>;
|
|
461
|
+
/**
|
|
462
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
463
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
464
|
+
* @returns {Promise<VerifyOtpSuccess>} - Success response
|
|
465
|
+
* @name verifyOTPForUpdate
|
|
466
|
+
* @summary: Verify OTP sent to Mobile or Email to update primary details.
|
|
467
|
+
* @description: Verify OTP sent to Mobile number or Email to update primary details. User needs to use sendOTPOnPrimary, verifyOTPonPrimary and sendOTPForUpdate before using this method to verify update details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyOTPForUpdate/).
|
|
468
|
+
*/
|
|
469
|
+
verifyOTPForUpdate({ entity, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<VerifyOtpSuccess>;
|
|
470
|
+
/**
|
|
471
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
472
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
473
|
+
* @returns {Promise<VerifyPrimaryOTPSuccess>} - Success response
|
|
474
|
+
* @name verifyOTPonPrimary
|
|
475
|
+
* @summary: Verify OTP sent to Primary Mobile or Email
|
|
476
|
+
* @description: Verify OTP sent to primary mobile number or email to verify primary details. User needs to use sendOTPOnPrimary before verifying OTP. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyOTPonPrimary/).
|
|
477
|
+
*/
|
|
478
|
+
verifyOTPonPrimary({ entity, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<VerifyPrimaryOTPSuccess>;
|
|
439
479
|
}
|
|
@@ -50,10 +50,14 @@ class User {
|
|
|
50
50
|
"/service/application/user/authentication/v1.0/otp/forgot/email/send",
|
|
51
51
|
sendForgotOTPOnMobile:
|
|
52
52
|
"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",
|
|
53
|
+
sendOTPForUpdate:
|
|
54
|
+
"/service/application/user/profile/v2.0/{entity}/otp/send",
|
|
53
55
|
sendOTPOnEmail:
|
|
54
56
|
"/service/application/user/authentication/v1.0/otp/email/send",
|
|
55
57
|
sendOTPOnMobile:
|
|
56
58
|
"/service/application/user/authentication/v1.0/otp/mobile/send",
|
|
59
|
+
sendOTPOnPrimary:
|
|
60
|
+
"/service/application/user/profile/v2.0/{entity}/primary/otp/send",
|
|
57
61
|
sendResetPasswordEmail:
|
|
58
62
|
"/service/application/user/authentication/v1.0/login/password/reset",
|
|
59
63
|
sendResetPasswordMobile:
|
|
@@ -83,6 +87,10 @@ class User {
|
|
|
83
87
|
"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",
|
|
84
88
|
verifyMobileOTP:
|
|
85
89
|
"/service/application/user/authentication/v1.0/otp/mobile/verify",
|
|
90
|
+
verifyOTPForUpdate:
|
|
91
|
+
"/service/application/user/profile/v2.0/{entity}/otp/verify",
|
|
92
|
+
verifyOTPonPrimary:
|
|
93
|
+
"/service/application/user/profile/v2.0/{entity}/primary/otp/verify",
|
|
86
94
|
};
|
|
87
95
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
88
96
|
(urls, [method, relativeUrl]) => {
|
|
@@ -1022,6 +1030,52 @@ class User {
|
|
|
1022
1030
|
return response;
|
|
1023
1031
|
}
|
|
1024
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1035
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1036
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
1037
|
+
* @name sendOTPForUpdate
|
|
1038
|
+
* @summary: Send OTP to update Mobile or Email
|
|
1039
|
+
* @description: Send OTP to mobile number or email. User needs to use sendOTPOnPrimary and verifyOTPonPrimary before using this method to update details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPForUpdate/).
|
|
1040
|
+
*/
|
|
1041
|
+
async sendOTPForUpdate(
|
|
1042
|
+
{ entity, body, requestHeaders } = { requestHeaders: {} },
|
|
1043
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1044
|
+
) {
|
|
1045
|
+
const errors = validateRequiredParams(arguments[0], ["entity"]);
|
|
1046
|
+
if (errors.length > 0) {
|
|
1047
|
+
const error = new FDKClientValidationError({
|
|
1048
|
+
message: "Missing required field",
|
|
1049
|
+
details: errors,
|
|
1050
|
+
});
|
|
1051
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
const query_params = {};
|
|
1055
|
+
|
|
1056
|
+
const xHeaders = {};
|
|
1057
|
+
|
|
1058
|
+
const response = await ApplicationAPIClient.execute(
|
|
1059
|
+
this._conf,
|
|
1060
|
+
"post",
|
|
1061
|
+
constructUrl({
|
|
1062
|
+
url: this._urls["sendOTPForUpdate"],
|
|
1063
|
+
params: { entity },
|
|
1064
|
+
}),
|
|
1065
|
+
query_params,
|
|
1066
|
+
body,
|
|
1067
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1068
|
+
{ responseHeaders }
|
|
1069
|
+
);
|
|
1070
|
+
|
|
1071
|
+
let responseData = response;
|
|
1072
|
+
if (responseHeaders) {
|
|
1073
|
+
responseData = response[0];
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
return response;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1025
1079
|
/**
|
|
1026
1080
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1027
1081
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -1098,6 +1152,52 @@ class User {
|
|
|
1098
1152
|
return response;
|
|
1099
1153
|
}
|
|
1100
1154
|
|
|
1155
|
+
/**
|
|
1156
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1157
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1158
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
1159
|
+
* @name sendOTPOnPrimary
|
|
1160
|
+
* @summary: Send OTP to Primary Mobile or Email
|
|
1161
|
+
* @description: Send OTP to primary mobile number or email to verify primary details. Use this to update Email or Mobile, other APIs will be deprecated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnPrimary/).
|
|
1162
|
+
*/
|
|
1163
|
+
async sendOTPOnPrimary(
|
|
1164
|
+
{ entity, body, requestHeaders } = { requestHeaders: {} },
|
|
1165
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1166
|
+
) {
|
|
1167
|
+
const errors = validateRequiredParams(arguments[0], ["entity"]);
|
|
1168
|
+
if (errors.length > 0) {
|
|
1169
|
+
const error = new FDKClientValidationError({
|
|
1170
|
+
message: "Missing required field",
|
|
1171
|
+
details: errors,
|
|
1172
|
+
});
|
|
1173
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
const query_params = {};
|
|
1177
|
+
|
|
1178
|
+
const xHeaders = {};
|
|
1179
|
+
|
|
1180
|
+
const response = await ApplicationAPIClient.execute(
|
|
1181
|
+
this._conf,
|
|
1182
|
+
"post",
|
|
1183
|
+
constructUrl({
|
|
1184
|
+
url: this._urls["sendOTPOnPrimary"],
|
|
1185
|
+
params: { entity },
|
|
1186
|
+
}),
|
|
1187
|
+
query_params,
|
|
1188
|
+
body,
|
|
1189
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1190
|
+
{ responseHeaders }
|
|
1191
|
+
);
|
|
1192
|
+
|
|
1193
|
+
let responseData = response;
|
|
1194
|
+
if (responseHeaders) {
|
|
1195
|
+
responseData = response[0];
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
return response;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1101
1201
|
/**
|
|
1102
1202
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1103
1203
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -1736,6 +1836,98 @@ class User {
|
|
|
1736
1836
|
|
|
1737
1837
|
return response;
|
|
1738
1838
|
}
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1842
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1843
|
+
* @returns {Promise<VerifyOtpSuccess>} - Success response
|
|
1844
|
+
* @name verifyOTPForUpdate
|
|
1845
|
+
* @summary: Verify OTP sent to Mobile or Email to update primary details.
|
|
1846
|
+
* @description: Verify OTP sent to Mobile number or Email to update primary details. User needs to use sendOTPOnPrimary, verifyOTPonPrimary and sendOTPForUpdate before using this method to verify update details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyOTPForUpdate/).
|
|
1847
|
+
*/
|
|
1848
|
+
async verifyOTPForUpdate(
|
|
1849
|
+
{ entity, body, requestHeaders } = { requestHeaders: {} },
|
|
1850
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1851
|
+
) {
|
|
1852
|
+
const errors = validateRequiredParams(arguments[0], ["entity"]);
|
|
1853
|
+
if (errors.length > 0) {
|
|
1854
|
+
const error = new FDKClientValidationError({
|
|
1855
|
+
message: "Missing required field",
|
|
1856
|
+
details: errors,
|
|
1857
|
+
});
|
|
1858
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
const query_params = {};
|
|
1862
|
+
|
|
1863
|
+
const xHeaders = {};
|
|
1864
|
+
|
|
1865
|
+
const response = await ApplicationAPIClient.execute(
|
|
1866
|
+
this._conf,
|
|
1867
|
+
"post",
|
|
1868
|
+
constructUrl({
|
|
1869
|
+
url: this._urls["verifyOTPForUpdate"],
|
|
1870
|
+
params: { entity },
|
|
1871
|
+
}),
|
|
1872
|
+
query_params,
|
|
1873
|
+
body,
|
|
1874
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1875
|
+
{ responseHeaders }
|
|
1876
|
+
);
|
|
1877
|
+
|
|
1878
|
+
let responseData = response;
|
|
1879
|
+
if (responseHeaders) {
|
|
1880
|
+
responseData = response[0];
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
return response;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1888
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1889
|
+
* @returns {Promise<VerifyPrimaryOTPSuccess>} - Success response
|
|
1890
|
+
* @name verifyOTPonPrimary
|
|
1891
|
+
* @summary: Verify OTP sent to Primary Mobile or Email
|
|
1892
|
+
* @description: Verify OTP sent to primary mobile number or email to verify primary details. User needs to use sendOTPOnPrimary before verifying OTP. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyOTPonPrimary/).
|
|
1893
|
+
*/
|
|
1894
|
+
async verifyOTPonPrimary(
|
|
1895
|
+
{ entity, body, requestHeaders } = { requestHeaders: {} },
|
|
1896
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1897
|
+
) {
|
|
1898
|
+
const errors = validateRequiredParams(arguments[0], ["entity"]);
|
|
1899
|
+
if (errors.length > 0) {
|
|
1900
|
+
const error = new FDKClientValidationError({
|
|
1901
|
+
message: "Missing required field",
|
|
1902
|
+
details: errors,
|
|
1903
|
+
});
|
|
1904
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
const query_params = {};
|
|
1908
|
+
|
|
1909
|
+
const xHeaders = {};
|
|
1910
|
+
|
|
1911
|
+
const response = await ApplicationAPIClient.execute(
|
|
1912
|
+
this._conf,
|
|
1913
|
+
"post",
|
|
1914
|
+
constructUrl({
|
|
1915
|
+
url: this._urls["verifyOTPonPrimary"],
|
|
1916
|
+
params: { entity },
|
|
1917
|
+
}),
|
|
1918
|
+
query_params,
|
|
1919
|
+
body,
|
|
1920
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1921
|
+
{ responseHeaders }
|
|
1922
|
+
);
|
|
1923
|
+
|
|
1924
|
+
let responseData = response;
|
|
1925
|
+
if (responseHeaders) {
|
|
1926
|
+
responseData = response[0];
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
return response;
|
|
1930
|
+
}
|
|
1739
1931
|
}
|
|
1740
1932
|
|
|
1741
1933
|
module.exports = User;
|
|
@@ -244,6 +244,19 @@ export = ConfigurationPlatformModel;
|
|
|
244
244
|
* @property {boolean} [enabled] - Allow orders to be accepted from the sales channel
|
|
245
245
|
* @property {boolean} [force_reassignment] - Allow force reassigning of an order
|
|
246
246
|
* @property {string} [message] - Reason for reassigning an order
|
|
247
|
+
* @property {ProcessingSchedule} [processing_schedule]
|
|
248
|
+
*/
|
|
249
|
+
/**
|
|
250
|
+
* @typedef ProcessingSchedule
|
|
251
|
+
* @property {boolean} [is_scheduled] - Indicates whether the order processing
|
|
252
|
+
* is scheduled for future.
|
|
253
|
+
* @property {StartAfter} [start_after]
|
|
254
|
+
*/
|
|
255
|
+
/**
|
|
256
|
+
* @typedef StartAfter
|
|
257
|
+
* @property {number} [days] - Number of days to wait before starting the process.
|
|
258
|
+
* @property {number} [hours] - Number of hours to wait before starting the process.
|
|
259
|
+
* @property {number} [minutes] - Number of minutes to wait before starting the process.
|
|
247
260
|
*/
|
|
248
261
|
/**
|
|
249
262
|
* @typedef AppLogisticsConfig
|
|
@@ -1390,7 +1403,7 @@ export = ConfigurationPlatformModel;
|
|
|
1390
1403
|
declare class ConfigurationPlatformModel {
|
|
1391
1404
|
}
|
|
1392
1405
|
declare namespace ConfigurationPlatformModel {
|
|
1393
|
-
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
|
|
1406
|
+
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, ProcessingSchedule, StartAfter, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
|
|
1394
1407
|
}
|
|
1395
1408
|
/** @returns {CurrencyExchangeResponseV2} */
|
|
1396
1409
|
declare function CurrencyExchangeResponseV2(): CurrencyExchangeResponseV2;
|
|
@@ -1875,6 +1888,33 @@ type AppOrderConfig = {
|
|
|
1875
1888
|
* - Reason for reassigning an order
|
|
1876
1889
|
*/
|
|
1877
1890
|
message?: string;
|
|
1891
|
+
processing_schedule?: ProcessingSchedule;
|
|
1892
|
+
};
|
|
1893
|
+
/** @returns {ProcessingSchedule} */
|
|
1894
|
+
declare function ProcessingSchedule(): ProcessingSchedule;
|
|
1895
|
+
type ProcessingSchedule = {
|
|
1896
|
+
/**
|
|
1897
|
+
* - Indicates whether the order processing
|
|
1898
|
+
* is scheduled for future.
|
|
1899
|
+
*/
|
|
1900
|
+
is_scheduled?: boolean;
|
|
1901
|
+
start_after?: StartAfter;
|
|
1902
|
+
};
|
|
1903
|
+
/** @returns {StartAfter} */
|
|
1904
|
+
declare function StartAfter(): StartAfter;
|
|
1905
|
+
type StartAfter = {
|
|
1906
|
+
/**
|
|
1907
|
+
* - Number of days to wait before starting the process.
|
|
1908
|
+
*/
|
|
1909
|
+
days?: number;
|
|
1910
|
+
/**
|
|
1911
|
+
* - Number of hours to wait before starting the process.
|
|
1912
|
+
*/
|
|
1913
|
+
hours?: number;
|
|
1914
|
+
/**
|
|
1915
|
+
* - Number of minutes to wait before starting the process.
|
|
1916
|
+
*/
|
|
1917
|
+
minutes?: number;
|
|
1878
1918
|
};
|
|
1879
1919
|
/** @returns {AppLogisticsConfig} */
|
|
1880
1920
|
declare function AppLogisticsConfig(): AppLogisticsConfig;
|
|
@@ -272,6 +272,21 @@ const Joi = require("joi");
|
|
|
272
272
|
* @property {boolean} [enabled] - Allow orders to be accepted from the sales channel
|
|
273
273
|
* @property {boolean} [force_reassignment] - Allow force reassigning of an order
|
|
274
274
|
* @property {string} [message] - Reason for reassigning an order
|
|
275
|
+
* @property {ProcessingSchedule} [processing_schedule]
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @typedef ProcessingSchedule
|
|
280
|
+
* @property {boolean} [is_scheduled] - Indicates whether the order processing
|
|
281
|
+
* is scheduled for future.
|
|
282
|
+
* @property {StartAfter} [start_after]
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @typedef StartAfter
|
|
287
|
+
* @property {number} [days] - Number of days to wait before starting the process.
|
|
288
|
+
* @property {number} [hours] - Number of hours to wait before starting the process.
|
|
289
|
+
* @property {number} [minutes] - Number of minutes to wait before starting the process.
|
|
275
290
|
*/
|
|
276
291
|
|
|
277
292
|
/**
|
|
@@ -1860,6 +1875,24 @@ class ConfigurationPlatformModel {
|
|
|
1860
1875
|
enabled: Joi.boolean(),
|
|
1861
1876
|
force_reassignment: Joi.boolean(),
|
|
1862
1877
|
message: Joi.string().allow(""),
|
|
1878
|
+
processing_schedule: ConfigurationPlatformModel.ProcessingSchedule(),
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
/** @returns {ProcessingSchedule} */
|
|
1883
|
+
static ProcessingSchedule() {
|
|
1884
|
+
return Joi.object({
|
|
1885
|
+
is_scheduled: Joi.boolean(),
|
|
1886
|
+
start_after: ConfigurationPlatformModel.StartAfter(),
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
/** @returns {StartAfter} */
|
|
1891
|
+
static StartAfter() {
|
|
1892
|
+
return Joi.object({
|
|
1893
|
+
days: Joi.number(),
|
|
1894
|
+
hours: Joi.number(),
|
|
1895
|
+
minutes: Joi.number(),
|
|
1863
1896
|
});
|
|
1864
1897
|
}
|
|
1865
1898
|
|
|
@@ -132,6 +132,7 @@ export = ThemePlatformModel;
|
|
|
132
132
|
* @property {string} [name]
|
|
133
133
|
* @property {string} [label]
|
|
134
134
|
* @property {Object} [props]
|
|
135
|
+
* @property {string} [custom_css] - Custom CSS for a section
|
|
135
136
|
* @property {Object[]} [blocks]
|
|
136
137
|
* @property {Object} [preset]
|
|
137
138
|
* @property {AvailablePagePredicate} [predicate]
|
|
@@ -812,6 +813,10 @@ type AvailablePageSchemaSections = {
|
|
|
812
813
|
name?: string;
|
|
813
814
|
label?: string;
|
|
814
815
|
props?: any;
|
|
816
|
+
/**
|
|
817
|
+
* - Custom CSS for a section
|
|
818
|
+
*/
|
|
819
|
+
custom_css?: string;
|
|
815
820
|
blocks?: any[];
|
|
816
821
|
preset?: any;
|
|
817
822
|
predicate?: AvailablePagePredicate;
|
|
@@ -151,6 +151,7 @@ const Joi = require("joi");
|
|
|
151
151
|
* @property {string} [name]
|
|
152
152
|
* @property {string} [label]
|
|
153
153
|
* @property {Object} [props]
|
|
154
|
+
* @property {string} [custom_css] - Custom CSS for a section
|
|
154
155
|
* @property {Object[]} [blocks]
|
|
155
156
|
* @property {Object} [preset]
|
|
156
157
|
* @property {AvailablePagePredicate} [predicate]
|
|
@@ -869,6 +870,7 @@ class ThemePlatformModel {
|
|
|
869
870
|
name: Joi.string().allow(""),
|
|
870
871
|
label: Joi.string().allow(""),
|
|
871
872
|
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
873
|
+
custom_css: Joi.string().allow(""),
|
|
872
874
|
blocks: Joi.array().items(Joi.any()),
|
|
873
875
|
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
874
876
|
predicate: ThemePlatformModel.AvailablePagePredicate(),
|