@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.5
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 +62 -62
- package/sdk/application/Cart/CartApplicationClient.js +82 -71
- package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
- package/sdk/application/Cart/CartApplicationValidator.js +59 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
- package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
- package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
- package/sdk/application/Content/ContentApplicationClient.js +34 -115
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
- package/sdk/application/Lead/LeadApplicationClient.js +14 -14
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
- package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
- package/sdk/application/Order/OrderApplicationClient.js +24 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +29 -1
- package/sdk/application/Order/OrderApplicationModel.js +34 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
- package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +524 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +335 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
- package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
- package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +66 -66
- package/sdk/application/User/UserApplicationClient.js +68 -71
- package/sdk/application/User/UserApplicationModel.d.ts +32 -27
- package/sdk/application/User/UserApplicationModel.js +22 -32
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
- package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
- package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
- package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +221 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +460 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +72 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +46 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
- package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +38 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +47 -3
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
- package/sdk/platform/Common/CommonPlatformClient.js +3 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
- package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +7 -7
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
- package/sdk/platform/Content/ContentPlatformModel.js +20 -0
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
- package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +23 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +15 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
- package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
- package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
- package/sdk/platform/Order/OrderPlatformClient.js +79 -294
- package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -1
- package/sdk/platform/Order/OrderPlatformModel.js +44 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +10 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.js +29 -16
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
- package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
- package/sdk/platform/User/UserPlatformModel.d.ts +81 -11
- package/sdk/platform/User/UserPlatformModel.js +80 -10
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
|
@@ -2,7 +2,7 @@ export = CatalogPlatformApplicationValidator;
|
|
|
2
2
|
/**
|
|
3
3
|
* @typedef AddCollectionItemsParam
|
|
4
4
|
* @property {string} id - A `id` is a unique identifier of a collection.
|
|
5
|
-
* @property {CatalogPlatformModel.
|
|
5
|
+
* @property {CatalogPlatformModel.CollectionItemUpdateSchema} body
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* @typedef CreateAppCategoryReturnConfigurationParam
|
|
@@ -212,6 +212,29 @@ export = CatalogPlatformApplicationValidator;
|
|
|
212
212
|
* @property {string} [q] - Search query with brand name.Use this parameter to
|
|
213
213
|
* search department by name.
|
|
214
214
|
*/
|
|
215
|
+
/**
|
|
216
|
+
* @typedef GetApplicationFilterKeysParam
|
|
217
|
+
* @property {string} [c] - The search filter parameters for collection items.
|
|
218
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
219
|
+
* parameter in this format.
|
|
220
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
221
|
+
*/
|
|
222
|
+
/**
|
|
223
|
+
* @typedef GetApplicationFilterValuesParam
|
|
224
|
+
* @property {string} filterKey - A `filter_key` is a filter key for a for which
|
|
225
|
+
* all the available filter values will returned. channel.
|
|
226
|
+
* @property {string} [c] - The search filter parameters for collection items.
|
|
227
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
228
|
+
* parameter in this format.
|
|
229
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
230
|
+
* @property {string} [collectionId] - A `collection_id` is a unique identifier
|
|
231
|
+
* for a particular collection. channel.
|
|
232
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
233
|
+
* set of results
|
|
234
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
235
|
+
* Default is 10.
|
|
236
|
+
* @property {string} [q] - Get Values filtered by q string
|
|
237
|
+
*/
|
|
215
238
|
/** @typedef GetAutocompleteConfigParam */
|
|
216
239
|
/**
|
|
217
240
|
* @typedef GetAutocompleteKeywordDetailParam
|
|
@@ -452,6 +475,10 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
452
475
|
static getApplicationCategoryListing(): GetApplicationCategoryListingParam;
|
|
453
476
|
/** @returns {GetApplicationDepartmentListingParam} */
|
|
454
477
|
static getApplicationDepartmentListing(): GetApplicationDepartmentListingParam;
|
|
478
|
+
/** @returns {GetApplicationFilterKeysParam} */
|
|
479
|
+
static getApplicationFilterKeys(): GetApplicationFilterKeysParam;
|
|
480
|
+
/** @returns {GetApplicationFilterValuesParam} */
|
|
481
|
+
static getApplicationFilterValues(): GetApplicationFilterValuesParam;
|
|
455
482
|
/** @returns {GetAutocompleteConfigParam} */
|
|
456
483
|
static getAutocompleteConfig(): any;
|
|
457
484
|
/** @returns {GetAutocompleteKeywordDetailParam} */
|
|
@@ -520,14 +547,14 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
520
547
|
static updateSearchKeywords(): UpdateSearchKeywordsParam;
|
|
521
548
|
}
|
|
522
549
|
declare namespace CatalogPlatformApplicationValidator {
|
|
523
|
-
export { AddCollectionItemsParam, CreateAppCategoryReturnConfigurationParam, CreateAppReturnConfigurationParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam };
|
|
550
|
+
export { AddCollectionItemsParam, CreateAppCategoryReturnConfigurationParam, CreateAppReturnConfigurationParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetApplicationFilterKeysParam, GetApplicationFilterValuesParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam };
|
|
524
551
|
}
|
|
525
552
|
type AddCollectionItemsParam = {
|
|
526
553
|
/**
|
|
527
554
|
* - A `id` is a unique identifier of a collection.
|
|
528
555
|
*/
|
|
529
556
|
id: string;
|
|
530
|
-
body: CatalogPlatformModel.
|
|
557
|
+
body: CatalogPlatformModel.CollectionItemUpdateSchema;
|
|
531
558
|
};
|
|
532
559
|
type CreateAppCategoryReturnConfigurationParam = {
|
|
533
560
|
body: CatalogPlatformModel.BaseAppCategoryReturnConfig;
|
|
@@ -908,6 +935,48 @@ type GetApplicationDepartmentListingParam = {
|
|
|
908
935
|
*/
|
|
909
936
|
q?: string;
|
|
910
937
|
};
|
|
938
|
+
type GetApplicationFilterKeysParam = {
|
|
939
|
+
/**
|
|
940
|
+
* - The search filter parameters for collection items.
|
|
941
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
942
|
+
* parameter in this format.
|
|
943
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
944
|
+
*/
|
|
945
|
+
c?: string;
|
|
946
|
+
};
|
|
947
|
+
type GetApplicationFilterValuesParam = {
|
|
948
|
+
/**
|
|
949
|
+
* - A `filter_key` is a filter key for a for which
|
|
950
|
+
* all the available filter values will returned. channel.
|
|
951
|
+
*/
|
|
952
|
+
filterKey: string;
|
|
953
|
+
/**
|
|
954
|
+
* - The search filter parameters for collection items.
|
|
955
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
956
|
+
* parameter in this format.
|
|
957
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
958
|
+
*/
|
|
959
|
+
c?: string;
|
|
960
|
+
/**
|
|
961
|
+
* - A `collection_id` is a unique identifier
|
|
962
|
+
* for a particular collection. channel.
|
|
963
|
+
*/
|
|
964
|
+
collectionId?: string;
|
|
965
|
+
/**
|
|
966
|
+
* - The page number to navigate through the given
|
|
967
|
+
* set of results
|
|
968
|
+
*/
|
|
969
|
+
pageNo?: number;
|
|
970
|
+
/**
|
|
971
|
+
* - Number of items to retrieve in each page.
|
|
972
|
+
* Default is 10.
|
|
973
|
+
*/
|
|
974
|
+
pageSize?: number;
|
|
975
|
+
/**
|
|
976
|
+
* - Get Values filtered by q string
|
|
977
|
+
*/
|
|
978
|
+
q?: string;
|
|
979
|
+
};
|
|
911
980
|
type GetAutocompleteKeywordDetailParam = {
|
|
912
981
|
/**
|
|
913
982
|
* - A `id` is a unique identifier for a particular
|
|
@@ -5,7 +5,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef AddCollectionItemsParam
|
|
7
7
|
* @property {string} id - A `id` is a unique identifier of a collection.
|
|
8
|
-
* @property {CatalogPlatformModel.
|
|
8
|
+
* @property {CatalogPlatformModel.CollectionItemUpdateSchema} body
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -246,6 +246,31 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
246
246
|
* search department by name.
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
|
+
/**
|
|
250
|
+
* @typedef GetApplicationFilterKeysParam
|
|
251
|
+
* @property {string} [c] - The search filter parameters for collection items.
|
|
252
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
253
|
+
* parameter in this format.
|
|
254
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @typedef GetApplicationFilterValuesParam
|
|
259
|
+
* @property {string} filterKey - A `filter_key` is a filter key for a for which
|
|
260
|
+
* all the available filter values will returned. channel.
|
|
261
|
+
* @property {string} [c] - The search filter parameters for collection items.
|
|
262
|
+
* All the parameter filtered from filter parameters will be passed in **c**
|
|
263
|
+
* parameter in this format.
|
|
264
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
265
|
+
* @property {string} [collectionId] - A `collection_id` is a unique identifier
|
|
266
|
+
* for a particular collection. channel.
|
|
267
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
268
|
+
* set of results
|
|
269
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
270
|
+
* Default is 10.
|
|
271
|
+
* @property {string} [q] - Get Values filtered by q string
|
|
272
|
+
*/
|
|
273
|
+
|
|
249
274
|
/** @typedef GetAutocompleteConfigParam */
|
|
250
275
|
|
|
251
276
|
/**
|
|
@@ -461,7 +486,7 @@ class CatalogPlatformApplicationValidator {
|
|
|
461
486
|
static addCollectionItems() {
|
|
462
487
|
return Joi.object({
|
|
463
488
|
id: Joi.string().allow("").required(),
|
|
464
|
-
body: CatalogPlatformModel.
|
|
489
|
+
body: CatalogPlatformModel.CollectionItemUpdateSchema().required(),
|
|
465
490
|
}).required();
|
|
466
491
|
}
|
|
467
492
|
|
|
@@ -719,6 +744,25 @@ class CatalogPlatformApplicationValidator {
|
|
|
719
744
|
}).required();
|
|
720
745
|
}
|
|
721
746
|
|
|
747
|
+
/** @returns {GetApplicationFilterKeysParam} */
|
|
748
|
+
static getApplicationFilterKeys() {
|
|
749
|
+
return Joi.object({
|
|
750
|
+
c: Joi.string().allow(""),
|
|
751
|
+
}).required();
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** @returns {GetApplicationFilterValuesParam} */
|
|
755
|
+
static getApplicationFilterValues() {
|
|
756
|
+
return Joi.object({
|
|
757
|
+
filterKey: Joi.string().allow("").required(),
|
|
758
|
+
c: Joi.string().allow(""),
|
|
759
|
+
collectionId: Joi.string().allow(""),
|
|
760
|
+
pageNo: Joi.number(),
|
|
761
|
+
pageSize: Joi.number(),
|
|
762
|
+
q: Joi.string().allow(""),
|
|
763
|
+
}).required();
|
|
764
|
+
}
|
|
765
|
+
|
|
722
766
|
/** @returns {GetAutocompleteConfigParam} */
|
|
723
767
|
static getAutocompleteConfig() {
|
|
724
768
|
return Joi.object({}).required();
|