@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
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/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -398,6 +398,19 @@ export = UserPlatformModel;
|
|
|
398
398
|
* @typedef DeleteAccountConsent
|
|
399
399
|
* @property {string} [consent_text]
|
|
400
400
|
*/
|
|
401
|
+
/**
|
|
402
|
+
* @typedef GetUserTimeline
|
|
403
|
+
* @property {string} [delete_on] - Denotes the date on which the user will be deleted
|
|
404
|
+
* @property {UserTimeline[]} [timeline] - List of user timeline events
|
|
405
|
+
*/
|
|
406
|
+
/**
|
|
407
|
+
* @typedef UserTimeline
|
|
408
|
+
* @property {string} [date] - Denotes the date at which this event occured
|
|
409
|
+
* @property {string} [title] - Title of the timeline event
|
|
410
|
+
* @property {string} [type] - Type of the event, indicating its status
|
|
411
|
+
* @property {boolean} [visible] - Indicates whether the event should be shown on the UI
|
|
412
|
+
* @property {string} [sub_title] - Additional information about the event
|
|
413
|
+
*/
|
|
401
414
|
/**
|
|
402
415
|
* @typedef Facebook
|
|
403
416
|
* @property {string} [app_id]
|
|
@@ -517,6 +530,7 @@ export = UserPlatformModel;
|
|
|
517
530
|
* @property {string} [rr_id]
|
|
518
531
|
* @property {boolean} [archive]
|
|
519
532
|
* @property {string} [status]
|
|
533
|
+
* @property {string} [deleted_on]
|
|
520
534
|
*/
|
|
521
535
|
/**
|
|
522
536
|
* @typedef PhoneNumber
|
|
@@ -536,7 +550,7 @@ export = UserPlatformModel;
|
|
|
536
550
|
declare class UserPlatformModel {
|
|
537
551
|
}
|
|
538
552
|
declare namespace UserPlatformModel {
|
|
539
|
-
export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
|
|
553
|
+
export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
|
|
540
554
|
}
|
|
541
555
|
/** @returns {SuccessMessage} */
|
|
542
556
|
declare function SuccessMessage(): SuccessMessage;
|
|
@@ -1189,6 +1203,42 @@ declare function DeleteAccountConsent(): DeleteAccountConsent;
|
|
|
1189
1203
|
type DeleteAccountConsent = {
|
|
1190
1204
|
consent_text?: string;
|
|
1191
1205
|
};
|
|
1206
|
+
/** @returns {GetUserTimeline} */
|
|
1207
|
+
declare function GetUserTimeline(): GetUserTimeline;
|
|
1208
|
+
type GetUserTimeline = {
|
|
1209
|
+
/**
|
|
1210
|
+
* - Denotes the date on which the user will be deleted
|
|
1211
|
+
*/
|
|
1212
|
+
delete_on?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* - List of user timeline events
|
|
1215
|
+
*/
|
|
1216
|
+
timeline?: UserTimeline[];
|
|
1217
|
+
};
|
|
1218
|
+
/** @returns {UserTimeline} */
|
|
1219
|
+
declare function UserTimeline(): UserTimeline;
|
|
1220
|
+
type UserTimeline = {
|
|
1221
|
+
/**
|
|
1222
|
+
* - Denotes the date at which this event occured
|
|
1223
|
+
*/
|
|
1224
|
+
date?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* - Title of the timeline event
|
|
1227
|
+
*/
|
|
1228
|
+
title?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* - Type of the event, indicating its status
|
|
1231
|
+
*/
|
|
1232
|
+
type?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* - Indicates whether the event should be shown on the UI
|
|
1235
|
+
*/
|
|
1236
|
+
visible?: boolean;
|
|
1237
|
+
/**
|
|
1238
|
+
* - Additional information about the event
|
|
1239
|
+
*/
|
|
1240
|
+
sub_title?: string;
|
|
1241
|
+
};
|
|
1192
1242
|
/** @returns {Facebook} */
|
|
1193
1243
|
declare function Facebook(): Facebook;
|
|
1194
1244
|
type Facebook = {
|
|
@@ -1338,6 +1388,7 @@ type UserSearchSchema = {
|
|
|
1338
1388
|
rr_id?: string;
|
|
1339
1389
|
archive?: boolean;
|
|
1340
1390
|
status?: string;
|
|
1391
|
+
deleted_on?: string;
|
|
1341
1392
|
};
|
|
1342
1393
|
/** @returns {PhoneNumber} */
|
|
1343
1394
|
declare function PhoneNumber(): PhoneNumber;
|
|
@@ -453,6 +453,21 @@ const Joi = require("joi");
|
|
|
453
453
|
* @property {string} [consent_text]
|
|
454
454
|
*/
|
|
455
455
|
|
|
456
|
+
/**
|
|
457
|
+
* @typedef GetUserTimeline
|
|
458
|
+
* @property {string} [delete_on] - Denotes the date on which the user will be deleted
|
|
459
|
+
* @property {UserTimeline[]} [timeline] - List of user timeline events
|
|
460
|
+
*/
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @typedef UserTimeline
|
|
464
|
+
* @property {string} [date] - Denotes the date at which this event occured
|
|
465
|
+
* @property {string} [title] - Title of the timeline event
|
|
466
|
+
* @property {string} [type] - Type of the event, indicating its status
|
|
467
|
+
* @property {boolean} [visible] - Indicates whether the event should be shown on the UI
|
|
468
|
+
* @property {string} [sub_title] - Additional information about the event
|
|
469
|
+
*/
|
|
470
|
+
|
|
456
471
|
/**
|
|
457
472
|
* @typedef Facebook
|
|
458
473
|
* @property {string} [app_id]
|
|
@@ -583,6 +598,7 @@ const Joi = require("joi");
|
|
|
583
598
|
* @property {string} [rr_id]
|
|
584
599
|
* @property {boolean} [archive]
|
|
585
600
|
* @property {string} [status]
|
|
601
|
+
* @property {string} [deleted_on]
|
|
586
602
|
*/
|
|
587
603
|
|
|
588
604
|
/**
|
|
@@ -1155,6 +1171,25 @@ class UserPlatformModel {
|
|
|
1155
1171
|
});
|
|
1156
1172
|
}
|
|
1157
1173
|
|
|
1174
|
+
/** @returns {GetUserTimeline} */
|
|
1175
|
+
static GetUserTimeline() {
|
|
1176
|
+
return Joi.object({
|
|
1177
|
+
delete_on: Joi.string().allow(""),
|
|
1178
|
+
timeline: Joi.array().items(UserPlatformModel.UserTimeline()),
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/** @returns {UserTimeline} */
|
|
1183
|
+
static UserTimeline() {
|
|
1184
|
+
return Joi.object({
|
|
1185
|
+
date: Joi.string().allow(""),
|
|
1186
|
+
title: Joi.string().allow(""),
|
|
1187
|
+
type: Joi.string().allow(""),
|
|
1188
|
+
visible: Joi.boolean(),
|
|
1189
|
+
sub_title: Joi.string().allow("").allow(null),
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1158
1193
|
/** @returns {Facebook} */
|
|
1159
1194
|
static Facebook() {
|
|
1160
1195
|
return Joi.object({
|
|
@@ -1302,6 +1337,7 @@ class UserPlatformModel {
|
|
|
1302
1337
|
rr_id: Joi.string().allow(""),
|
|
1303
1338
|
archive: Joi.boolean(),
|
|
1304
1339
|
status: Joi.string().allow(""),
|
|
1340
|
+
deleted_on: Joi.string().allow(""),
|
|
1305
1341
|
});
|
|
1306
1342
|
}
|
|
1307
1343
|
|
|
@@ -8,6 +8,7 @@ export = WebhookPlatformModel;
|
|
|
8
8
|
* @property {number} [current] - The current page number.
|
|
9
9
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
10
10
|
* @property {number} [size] - The number of items per page.
|
|
11
|
+
* @property {number} [page_size] - The number of items per page.
|
|
11
12
|
*/
|
|
12
13
|
/**
|
|
13
14
|
* @typedef BroadcasterConfig
|
|
@@ -347,6 +348,10 @@ type Page = {
|
|
|
347
348
|
* - The number of items per page.
|
|
348
349
|
*/
|
|
349
350
|
size?: number;
|
|
351
|
+
/**
|
|
352
|
+
* - The number of items per page.
|
|
353
|
+
*/
|
|
354
|
+
page_size?: number;
|
|
350
355
|
};
|
|
351
356
|
/** @returns {BroadcasterConfig} */
|
|
352
357
|
declare function BroadcasterConfig(): BroadcasterConfig;
|
|
@@ -9,6 +9,7 @@ const Joi = require("joi");
|
|
|
9
9
|
* @property {number} [current] - The current page number.
|
|
10
10
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
11
11
|
* @property {number} [size] - The number of items per page.
|
|
12
|
+
* @property {number} [page_size] - The number of items per page.
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -356,6 +357,7 @@ class WebhookPlatformModel {
|
|
|
356
357
|
current: Joi.number(),
|
|
357
358
|
type: Joi.string().allow("").required(),
|
|
358
359
|
size: Joi.number(),
|
|
360
|
+
page_size: Joi.number(),
|
|
359
361
|
});
|
|
360
362
|
}
|
|
361
363
|
|
|
@@ -16,7 +16,7 @@ declare class Catalog {
|
|
|
16
16
|
* @summary: Get Taxonomy Information by Level
|
|
17
17
|
* @description: Get Taxonomy Details for a given level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/catalog/getTaxonomyByLevel/).
|
|
18
18
|
*/
|
|
19
|
-
getTaxonomyByLevel({ level, l0Slug, l1Slug, l2Slug, l3Slug, limit, requestHeaders }?: CatalogPublicValidator.GetTaxonomyByLevelParam, { responseHeaders }?: object): Promise<CatalogPublicModel.TaxonomyResponseSchema>;
|
|
19
|
+
getTaxonomyByLevel({ level, l0Slug, l1Slug, l2Slug, l3Slug, limit, requestHeaders }?: CatalogPublicValidator.GetTaxonomyByLevelParam, { responseHeaders }?: object, ...args: any[]): Promise<CatalogPublicModel.TaxonomyResponseSchema>;
|
|
20
20
|
}
|
|
21
21
|
import CatalogPublicValidator = require("./CatalogPublicValidator");
|
|
22
22
|
import CatalogPublicModel = require("./CatalogPublicModel");
|
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const PublicAPIClient = require("../PublicAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
const CatalogPublicValidator = require("./CatalogPublicValidator");
|
|
11
12
|
const CatalogPublicModel = require("./CatalogPublicModel");
|
|
@@ -49,18 +50,12 @@ class Catalog {
|
|
|
49
50
|
},
|
|
50
51
|
{ responseHeaders } = { responseHeaders: false }
|
|
51
52
|
) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
path: ["level"],
|
|
53
|
+
const errors = validateRequiredParams(arguments[0], ["level"]);
|
|
54
|
+
if (errors.length > 0) {
|
|
55
|
+
const error = new FDKClientValidationError({
|
|
56
|
+
message: "Missing required field",
|
|
57
|
+
details: errors,
|
|
58
58
|
});
|
|
59
|
-
}
|
|
60
|
-
if (invalidInput.length) {
|
|
61
|
-
const error = new Error();
|
|
62
|
-
error.message = "Missing required field";
|
|
63
|
-
error.details = invalidInput;
|
|
64
59
|
return Promise.reject(new FDKClientValidationError(error));
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const PublicAPIClient = require("../PublicAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
const ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
|
|
11
12
|
const ConfigurationPublicModel = require("./ConfigurationPublicModel");
|
|
@@ -49,14 +50,6 @@ class Configuration {
|
|
|
49
50
|
{ locationType, id, requestHeaders } = { requestHeaders: {} },
|
|
50
51
|
{ responseHeaders } = { responseHeaders: false }
|
|
51
52
|
) {
|
|
52
|
-
let invalidInput = [];
|
|
53
|
-
if (invalidInput.length) {
|
|
54
|
-
const error = new Error();
|
|
55
|
-
error.message = "Missing required field";
|
|
56
|
-
error.details = invalidInput;
|
|
57
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
53
|
const { error } = ConfigurationPublicValidator.getLocations().validate(
|
|
61
54
|
{ locationType, id },
|
|
62
55
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -138,14 +131,6 @@ class Configuration {
|
|
|
138
131
|
{ authorization, query, requestHeaders } = { requestHeaders: {} },
|
|
139
132
|
{ responseHeaders } = { responseHeaders: false }
|
|
140
133
|
) {
|
|
141
|
-
let invalidInput = [];
|
|
142
|
-
if (invalidInput.length) {
|
|
143
|
-
const error = new Error();
|
|
144
|
-
error.message = "Missing required field";
|
|
145
|
-
error.details = invalidInput;
|
|
146
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
134
|
const { error } = ConfigurationPublicValidator.searchApplication().validate(
|
|
150
135
|
{ authorization, query },
|
|
151
136
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3,13 +3,16 @@ declare class Content {
|
|
|
3
3
|
constructor(_conf: any);
|
|
4
4
|
_conf: any;
|
|
5
5
|
_relativeUrls: {
|
|
6
|
+
getAllLanguages: string;
|
|
6
7
|
getAllTags: string;
|
|
8
|
+
getAllTranslatableResources: string;
|
|
7
9
|
getAnalyticsTags: string;
|
|
8
10
|
getBasicDetails: string;
|
|
9
11
|
getCredentialsByEntity: string;
|
|
10
12
|
getCustomPage: string;
|
|
11
13
|
getFooterContent: string;
|
|
12
14
|
getHomePageContent: string;
|
|
15
|
+
getLanguageByLocale: string;
|
|
13
16
|
getMenuContent: string;
|
|
14
17
|
getMenuContentByType: string;
|
|
15
18
|
getNavbar: string;
|
|
@@ -17,6 +20,16 @@ declare class Content {
|
|
|
17
20
|
};
|
|
18
21
|
_urls: {};
|
|
19
22
|
updateUrls(urls: any): void;
|
|
23
|
+
/**
|
|
24
|
+
* @param {ContentPublicValidator.GetAllLanguagesParam} arg - Arg object.
|
|
25
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
27
|
+
* @returns {Promise<Object>} - Success response
|
|
28
|
+
* @name getAllLanguages
|
|
29
|
+
* @summary: Get All Languages
|
|
30
|
+
* @description: Fetches complete list of languages supported by the platform with their locale codes and text directions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getAllLanguages/).
|
|
31
|
+
*/
|
|
32
|
+
getAllLanguages({ requestHeaders }?: any, { responseHeaders }?: object): Promise<any>;
|
|
20
33
|
/**
|
|
21
34
|
* @param {ContentPublicValidator.GetAllTagsParam} arg - Arg object.
|
|
22
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -27,6 +40,16 @@ declare class Content {
|
|
|
27
40
|
* @description: Retrieve custom tag with injected css/javascript info. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getAllTags/).
|
|
28
41
|
*/
|
|
29
42
|
getAllTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentPublicModel.TagsSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {ContentPublicValidator.GetAllTranslatableResourcesParam} arg - Arg object.
|
|
45
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
46
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
47
|
+
* @returns {Promise<Object>} - Success response
|
|
48
|
+
* @name getAllTranslatableResources
|
|
49
|
+
* @summary: Get Translatable Items
|
|
50
|
+
* @description: Retrieves all resources that can be translated across different languages in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getAllTranslatableResources/).
|
|
51
|
+
*/
|
|
52
|
+
getAllTranslatableResources({ requestHeaders }?: any, { responseHeaders }?: object): Promise<any>;
|
|
30
53
|
/**
|
|
31
54
|
* @param {ContentPublicValidator.GetAnalyticsTagsParam} arg - Arg object.
|
|
32
55
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -56,7 +79,7 @@ declare class Content {
|
|
|
56
79
|
* @summary: Get credentials to power chat support systems
|
|
57
80
|
* @description: Get credentials for support system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCredentialsByEntity/).
|
|
58
81
|
*/
|
|
59
|
-
getCredentialsByEntity({ entityType, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object): Promise<ContentPublicModel.CredentialsSchema>;
|
|
82
|
+
getCredentialsByEntity({ entityType, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.CredentialsSchema>;
|
|
60
83
|
/**
|
|
61
84
|
* @param {ContentPublicValidator.GetCustomPageParam} arg - Arg object.
|
|
62
85
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -66,7 +89,7 @@ declare class Content {
|
|
|
66
89
|
* @summary: Retrieve info for custom page.
|
|
67
90
|
* @description: Retrieve info of custom pagee to develop and manage custom webpages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCustomPage/).
|
|
68
91
|
*/
|
|
69
|
-
getCustomPage({ slug, requestHeaders }?: ContentPublicValidator.GetCustomPageParam, { responseHeaders }?: object): Promise<ContentPublicModel.CustomPageBySlugSchema>;
|
|
92
|
+
getCustomPage({ slug, requestHeaders }?: ContentPublicValidator.GetCustomPageParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.CustomPageBySlugSchema>;
|
|
70
93
|
/**
|
|
71
94
|
* @param {ContentPublicValidator.GetFooterContentParam} arg - Arg object.
|
|
72
95
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -87,6 +110,16 @@ declare class Content {
|
|
|
87
110
|
* @description: Retrieve home page content for a specific page type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getHomePageContent/).
|
|
88
111
|
*/
|
|
89
112
|
getHomePageContent({ pageType, requestHeaders }?: ContentPublicValidator.GetHomePageContentParam, { responseHeaders }?: object): Promise<ContentPublicModel.HomePageContentSchema>;
|
|
113
|
+
/**
|
|
114
|
+
* @param {ContentPublicValidator.GetLanguageByLocaleParam} arg - Arg object.
|
|
115
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
116
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
117
|
+
* @returns {Promise<ContentPublicModel.Language>} - Success response
|
|
118
|
+
* @name getLanguageByLocale
|
|
119
|
+
* @summary: Get Single Language
|
|
120
|
+
* @description: Retrieves detailed information about a specific language using its locale identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getLanguageByLocale/).
|
|
121
|
+
*/
|
|
122
|
+
getLanguageByLocale({ locale, requestHeaders }?: ContentPublicValidator.GetLanguageByLocaleParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.Language>;
|
|
90
123
|
/**
|
|
91
124
|
* @param {ContentPublicValidator.GetMenuContentParam} arg - Arg object.
|
|
92
125
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -106,7 +139,7 @@ declare class Content {
|
|
|
106
139
|
* @summary: Get desktop menu content
|
|
107
140
|
* @description: Retrieves the desktop menu content. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getMenuContentByType/).
|
|
108
141
|
*/
|
|
109
|
-
getMenuContentByType({ type, requestHeaders }?: ContentPublicValidator.GetMenuContentByTypeParam, { responseHeaders }?: object): Promise<ContentPublicModel.MenuTypeSchema>;
|
|
142
|
+
getMenuContentByType({ type, requestHeaders }?: ContentPublicValidator.GetMenuContentByTypeParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.MenuTypeSchema>;
|
|
110
143
|
/**
|
|
111
144
|
* @param {ContentPublicValidator.GetNavbarParam} arg - Arg object.
|
|
112
145
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|