@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -546,6 +546,32 @@ declare class Catalog {
|
|
|
546
546
|
pageSize?: number;
|
|
547
547
|
q?: string;
|
|
548
548
|
}): Paginator<CatalogPlatformModel.ApplicationDepartmentListingResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg
|
|
551
|
+
* - Arg object
|
|
552
|
+
*
|
|
553
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
554
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
555
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>} -
|
|
556
|
+
* Success response
|
|
557
|
+
* @name getApplicationFilterKeys
|
|
558
|
+
* @summary: Get filters keys of the filter options.
|
|
559
|
+
* @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/).
|
|
560
|
+
*/
|
|
561
|
+
getApplicationFilterKeys({ c, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>;
|
|
562
|
+
/**
|
|
563
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg
|
|
564
|
+
* - Arg object
|
|
565
|
+
*
|
|
566
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
567
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
568
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>} -
|
|
569
|
+
* Success response
|
|
570
|
+
* @name getApplicationFilterValues
|
|
571
|
+
* @summary: Get values of the selected value for the filter options.
|
|
572
|
+
* @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
|
|
573
|
+
*/
|
|
574
|
+
getApplicationFilterValues({ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>;
|
|
549
575
|
/**
|
|
550
576
|
* @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
|
|
551
577
|
* - Arg object
|
|
@@ -3046,6 +3046,188 @@ class Catalog {
|
|
|
3046
3046
|
return paginator;
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
|
+
/**
|
|
3050
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg
|
|
3051
|
+
* - Arg object
|
|
3052
|
+
*
|
|
3053
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3054
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3055
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>} -
|
|
3056
|
+
* Success response
|
|
3057
|
+
* @name getApplicationFilterKeys
|
|
3058
|
+
* @summary: Get filters keys of the filter options.
|
|
3059
|
+
* @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/).
|
|
3060
|
+
*/
|
|
3061
|
+
async getApplicationFilterKeys(
|
|
3062
|
+
{ c, requestHeaders } = { requestHeaders: {} },
|
|
3063
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3064
|
+
) {
|
|
3065
|
+
const {
|
|
3066
|
+
error,
|
|
3067
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3068
|
+
{
|
|
3069
|
+
c,
|
|
3070
|
+
},
|
|
3071
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3072
|
+
);
|
|
3073
|
+
if (error) {
|
|
3074
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3078
|
+
const {
|
|
3079
|
+
error: warrning,
|
|
3080
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3081
|
+
{
|
|
3082
|
+
c,
|
|
3083
|
+
},
|
|
3084
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3085
|
+
);
|
|
3086
|
+
if (warrning) {
|
|
3087
|
+
Logger({
|
|
3088
|
+
level: "WARN",
|
|
3089
|
+
message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterKeys \n ${warrning}`,
|
|
3090
|
+
});
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
const query_params = {};
|
|
3094
|
+
query_params["c"] = c;
|
|
3095
|
+
|
|
3096
|
+
const response = await PlatformAPIClient.execute(
|
|
3097
|
+
this.config,
|
|
3098
|
+
"get",
|
|
3099
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/keys`,
|
|
3100
|
+
query_params,
|
|
3101
|
+
undefined,
|
|
3102
|
+
requestHeaders,
|
|
3103
|
+
{ responseHeaders }
|
|
3104
|
+
);
|
|
3105
|
+
|
|
3106
|
+
let responseData = response;
|
|
3107
|
+
if (responseHeaders) {
|
|
3108
|
+
responseData = response[0];
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
const {
|
|
3112
|
+
error: res_error,
|
|
3113
|
+
} = CatalogPlatformModel.GetQueryFiltersKeysResponse().validate(
|
|
3114
|
+
responseData,
|
|
3115
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3116
|
+
);
|
|
3117
|
+
|
|
3118
|
+
if (res_error) {
|
|
3119
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3120
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3121
|
+
} else {
|
|
3122
|
+
Logger({
|
|
3123
|
+
level: "WARN",
|
|
3124
|
+
message: `Response Validation Warnings for platform > Catalog > getApplicationFilterKeys \n ${res_error}`,
|
|
3125
|
+
});
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
return response;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg
|
|
3134
|
+
* - Arg object
|
|
3135
|
+
*
|
|
3136
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3137
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3138
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>} -
|
|
3139
|
+
* Success response
|
|
3140
|
+
* @name getApplicationFilterValues
|
|
3141
|
+
* @summary: Get values of the selected value for the filter options.
|
|
3142
|
+
* @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
|
|
3143
|
+
*/
|
|
3144
|
+
async getApplicationFilterValues(
|
|
3145
|
+
{ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders } = {
|
|
3146
|
+
requestHeaders: {},
|
|
3147
|
+
},
|
|
3148
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3149
|
+
) {
|
|
3150
|
+
const {
|
|
3151
|
+
error,
|
|
3152
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate(
|
|
3153
|
+
{
|
|
3154
|
+
filterKey,
|
|
3155
|
+
c,
|
|
3156
|
+
collectionId,
|
|
3157
|
+
pageNo,
|
|
3158
|
+
pageSize,
|
|
3159
|
+
q,
|
|
3160
|
+
},
|
|
3161
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3162
|
+
);
|
|
3163
|
+
if (error) {
|
|
3164
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3168
|
+
const {
|
|
3169
|
+
error: warrning,
|
|
3170
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate(
|
|
3171
|
+
{
|
|
3172
|
+
filterKey,
|
|
3173
|
+
c,
|
|
3174
|
+
collectionId,
|
|
3175
|
+
pageNo,
|
|
3176
|
+
pageSize,
|
|
3177
|
+
q,
|
|
3178
|
+
},
|
|
3179
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3180
|
+
);
|
|
3181
|
+
if (warrning) {
|
|
3182
|
+
Logger({
|
|
3183
|
+
level: "WARN",
|
|
3184
|
+
message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterValues \n ${warrning}`,
|
|
3185
|
+
});
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
const query_params = {};
|
|
3189
|
+
query_params["c"] = c;
|
|
3190
|
+
query_params["collection_id"] = collectionId;
|
|
3191
|
+
query_params["page_no"] = pageNo;
|
|
3192
|
+
query_params["page_size"] = pageSize;
|
|
3193
|
+
query_params["q"] = q;
|
|
3194
|
+
|
|
3195
|
+
const response = await PlatformAPIClient.execute(
|
|
3196
|
+
this.config,
|
|
3197
|
+
"get",
|
|
3198
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/${filterKey}/values`,
|
|
3199
|
+
query_params,
|
|
3200
|
+
undefined,
|
|
3201
|
+
requestHeaders,
|
|
3202
|
+
{ responseHeaders }
|
|
3203
|
+
);
|
|
3204
|
+
|
|
3205
|
+
let responseData = response;
|
|
3206
|
+
if (responseHeaders) {
|
|
3207
|
+
responseData = response[0];
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3210
|
+
const {
|
|
3211
|
+
error: res_error,
|
|
3212
|
+
} = CatalogPlatformModel.GetQueryFiltersValuesResponse().validate(
|
|
3213
|
+
responseData,
|
|
3214
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3215
|
+
);
|
|
3216
|
+
|
|
3217
|
+
if (res_error) {
|
|
3218
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3219
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3220
|
+
} else {
|
|
3221
|
+
Logger({
|
|
3222
|
+
level: "WARN",
|
|
3223
|
+
message: `Response Validation Warnings for platform > Catalog > getApplicationFilterValues \n ${res_error}`,
|
|
3224
|
+
});
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
return response;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3049
3231
|
/**
|
|
3050
3232
|
* @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
|
|
3051
3233
|
* - Arg object
|
|
@@ -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,7 +547,7 @@ 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
|
/**
|
|
@@ -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
|
|
@@ -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
|
/**
|
|
@@ -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();
|