@gofynd/fdk-client-javascript 1.4.5 → 1.4.7
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -2
- package/sdk/application/ApplicationClient.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +5 -5
- package/sdk/application/Catalog/CatalogApplicationClient.js +5 -5
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +6 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +6 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +2 -0
- package/sdk/application/Content/ContentApplicationModel.js +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +1 -1
- package/sdk/application/Order/OrderApplicationModel.d.ts +70 -9
- package/sdk/application/Order/OrderApplicationModel.js +43 -7
- package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -2
- package/sdk/application/Order/OrderApplicationValidator.js +1 -1
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +18 -18
- package/sdk/application/Payment/PaymentApplicationModel.js +41 -35
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
- package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
- package/sdk/application/index.d.ts +1 -1
- package/sdk/application/index.js +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
- package/sdk/partner/Webhook/WebhookPartnerModel.js +20 -23
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +80 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +2 -0
- package/sdk/platform/Cart/CartPlatformModel.js +2 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +34 -7
- package/sdk/platform/Catalog/CatalogPlatformClient.js +88 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +120 -17
- package/sdk/platform/Catalog/CatalogPlatformModel.js +153 -27
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +71 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +32 -5
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -0
- package/sdk/platform/Content/ContentPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformClient.js +82 -5
- package/sdk/platform/Order/OrderPlatformModel.d.ts +163 -15
- package/sdk/platform/Order/OrderPlatformModel.js +157 -55
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +24 -18
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
- package/sdk/platform/PlatformApplicationClient.js +4 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +164 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +71 -18
- package/sdk/platform/Webhook/WebhookPlatformModel.js +76 -23
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +19 -1
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +24 -0
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +2 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +3 -1
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +0 -323
- package/sdk/application/PosCart/PosCartApplicationClient.js +0 -2364
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +0 -1857
- package/sdk/application/PosCart/PosCartApplicationModel.js +0 -1906
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +0 -483
- package/sdk/application/PosCart/PosCartApplicationValidator.js +0 -492
|
@@ -370,6 +370,11 @@ export = CatalogPlatformModel;
|
|
|
370
370
|
* @property {BulkInventoryGetItems[]} [items]
|
|
371
371
|
* @property {Page} [page]
|
|
372
372
|
*/
|
|
373
|
+
/**
|
|
374
|
+
* @typedef FailedRecord
|
|
375
|
+
* @property {string} [identifiers]
|
|
376
|
+
* @property {string} [message]
|
|
377
|
+
*/
|
|
373
378
|
/**
|
|
374
379
|
* @typedef BulkInventoryGetItems
|
|
375
380
|
* @property {number} [cancelled]
|
|
@@ -378,7 +383,7 @@ export = CatalogPlatformModel;
|
|
|
378
383
|
* @property {Object} [created_by]
|
|
379
384
|
* @property {string} [created_on]
|
|
380
385
|
* @property {number} [failed]
|
|
381
|
-
* @property {
|
|
386
|
+
* @property {FailedRecord[]} [failed_records]
|
|
382
387
|
* @property {string} [file_path]
|
|
383
388
|
* @property {string} [id]
|
|
384
389
|
* @property {boolean} [is_active]
|
|
@@ -388,6 +393,14 @@ export = CatalogPlatformModel;
|
|
|
388
393
|
* @property {number} [succeed]
|
|
389
394
|
* @property {number} [total]
|
|
390
395
|
*/
|
|
396
|
+
/**
|
|
397
|
+
* @typedef BulkProductJob
|
|
398
|
+
* @property {number} [company_id]
|
|
399
|
+
* @property {string} [template_tag]
|
|
400
|
+
* @property {string} [product_type]
|
|
401
|
+
* @property {string} [department]
|
|
402
|
+
* @property {string} [file_path]
|
|
403
|
+
*/
|
|
391
404
|
/**
|
|
392
405
|
* @typedef BulkJob
|
|
393
406
|
* @property {number} [cancelled]
|
|
@@ -1230,12 +1243,39 @@ export = CatalogPlatformModel;
|
|
|
1230
1243
|
* @property {UserSerializer2} [verified_by]
|
|
1231
1244
|
* @property {string} [verified_on]
|
|
1232
1245
|
*/
|
|
1246
|
+
/**
|
|
1247
|
+
* @typedef ConditionItem
|
|
1248
|
+
* @property {string} [key]
|
|
1249
|
+
* @property {string} [display]
|
|
1250
|
+
*/
|
|
1251
|
+
/**
|
|
1252
|
+
* @typedef DataItem
|
|
1253
|
+
* @property {string} [key]
|
|
1254
|
+
* @property {string} [display]
|
|
1255
|
+
* @property {string[]} [filter_types]
|
|
1256
|
+
* @property {string[]} [compatible_units]
|
|
1257
|
+
*/
|
|
1258
|
+
/**
|
|
1259
|
+
* @typedef ValueTypeItem
|
|
1260
|
+
* @property {string} [key]
|
|
1261
|
+
* @property {string} [display]
|
|
1262
|
+
*/
|
|
1263
|
+
/**
|
|
1264
|
+
* @typedef SortTypeItem
|
|
1265
|
+
* @property {string} [key]
|
|
1266
|
+
* @property {string} [display]
|
|
1267
|
+
*/
|
|
1233
1268
|
/**
|
|
1234
1269
|
* @typedef GetConfigMetadataResponse
|
|
1235
|
-
* @property {
|
|
1236
|
-
* @property {
|
|
1270
|
+
* @property {ConditionItem[]} [condition]
|
|
1271
|
+
* @property {DataItem[]} data
|
|
1237
1272
|
* @property {Page} [page]
|
|
1238
|
-
* @property {
|
|
1273
|
+
* @property {GetConfigMetadataValues} [values]
|
|
1274
|
+
*/
|
|
1275
|
+
/**
|
|
1276
|
+
* @typedef GetConfigMetadataValues
|
|
1277
|
+
* @property {ValueTypeItem[]} [type]
|
|
1278
|
+
* @property {SortTypeItem[]} [sort]
|
|
1239
1279
|
*/
|
|
1240
1280
|
/**
|
|
1241
1281
|
* @typedef GetConfigResponse
|
|
@@ -2752,6 +2792,7 @@ export = CatalogPlatformModel;
|
|
|
2752
2792
|
/**
|
|
2753
2793
|
* @typedef Quantity
|
|
2754
2794
|
* @property {number} [count]
|
|
2795
|
+
* @property {string} [updated_at]
|
|
2755
2796
|
*/
|
|
2756
2797
|
/**
|
|
2757
2798
|
* @typedef QuantityBase
|
|
@@ -3080,9 +3121,16 @@ export = CatalogPlatformModel;
|
|
|
3080
3121
|
* @property {boolean} [success]
|
|
3081
3122
|
*/
|
|
3082
3123
|
/**
|
|
3083
|
-
* @typedef
|
|
3084
|
-
* @property {number[]} [
|
|
3085
|
-
* @property {
|
|
3124
|
+
* @typedef CreateMarketplaceOptinResponse
|
|
3125
|
+
* @property {number[]} [store_ids]
|
|
3126
|
+
* @property {number[]} [brand_ids]
|
|
3127
|
+
* @property {number} [company_id]
|
|
3128
|
+
* @property {string} [opt_level]
|
|
3129
|
+
* @property {string} [platform]
|
|
3130
|
+
* @property {boolean} [enabled]
|
|
3131
|
+
* @property {CreatedBy} [created_by]
|
|
3132
|
+
* @property {CreatedBy} [modified_by]
|
|
3133
|
+
* @property {string} [app_id]
|
|
3086
3134
|
*/
|
|
3087
3135
|
/**
|
|
3088
3136
|
* @typedef UserCommon
|
|
@@ -3291,7 +3339,7 @@ export = CatalogPlatformModel;
|
|
|
3291
3339
|
declare class CatalogPlatformModel {
|
|
3292
3340
|
}
|
|
3293
3341
|
declare namespace CatalogPlatformModel {
|
|
3294
|
-
export { Action, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductListingResponse, ApplicationStoreJson, AppReturnConfigResponse, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponse, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSerializer, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponse, Brand, BrandItem, BrandListingResponse, BrandMeta, BrandMeta1, BulkAssetResponse, BulkHsnResponse, BulkHsnUpsert, BulkInventoryGet, BulkInventoryGetItems, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, CategoryCreateResponse, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryRequestBody, CategoryResponse, CategoryUpdateResponse, Child, CollectionBadge, CollectionBanner, CollectionCreateResponse, CollectionDetailResponse, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, CompanyMeta1, CompanyOptIn, ConfigErrorResponse, ConfigSuccessResponse, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponse, CreateCollection, CreateSearchConfigurationRequest, CreateSearchConfigurationResponse, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponse, CustomOrder, DateMeta, DefaultKeyRequest, DeleteAppCategoryReturnConfig, DeleteResponse, DeleteSearchConfigurationResponse, Department, DepartmentCategoryTree, DepartmentCreateErrorResponse, DepartmentCreateResponse, DepartmentCreateUpdate, DepartmentErrorResponse, DepartmentIdentifier, DepartmentModel, DepartmentResponse, DepartmentsResponse, DimensionResponse, DimensionResponse1, Document, EntityConfiguration, ErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, GenderDetail, GetAddressSerializer, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, GetConfigMetadataResponse, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersKeysResponse, GetQueryFiltersResponse, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponse, GetSearchWordsData, GetSearchWordsDetailResponse, GetSearchWordsResponse, GlobalValidation, Guide, HSNCodesResponse, HSNData, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequest, InventoryConfig, InventoryCreateRequest, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponse, InventoryExportQuantityFilter, InventoryExportRequest, InventoryExportResponse, InventoryFailedReason, InventoryJobDetailResponse, InventoryJobFilters, InventoryJobPayload, InventoryPage, InventoryPayload, InventoryRequest, InventoryRequestSchemaV2, InventoryResponse, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, InventorySellerResponse, InventorySet, InventoryStockResponse, InventoryUpdateResponse, InventoryValidationResponse, InvoiceCredSerializer, InvoiceDetailsSerializer, ItemQuery, Items, LimitedProductData, ListSizeGuide, LocationDayWiseSerializer, LocationIntegrationType, LocationListSerializer, LocationManagerSerializer, LocationTimingSerializer, Logo, MOQData, ManufacturerResponse, ManufacturerResponse1, Media, Media1, Media2, Meta, MetaDataListingFilterMetaResponse, MetaDataListingFilterResponse, MetaDataListingResponse, MetaDataListingSortMetaResponse, MetaDataListingSortResponse, MetaFields, NetQuantity, NetQuantityResponse, NextSchedule, OptInPostRequest, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponse, PTErrorResponse, Page, PageResponse, PageResponse1, PageResponseType, Price, Price1, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponse, Product, ProductAttributesResponse, ProductBrand, ProductBulkAssets, ProductBulkRequest, ProductBulkRequestList, ProductBundleItem, ProductBundleRequest, ProductBundleUpdateRequest, ProductConfigurationDownloads, ProductCreateUpdateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponse, ProductFilters, GetQueryFiltersValuesResponse, ProductFiltersKeysOnly, ProductFiltersKey, ProductFiltersValue, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductListingResponseV2, ProductPublish, ProductPublish1, ProductPublished, ProductReturnConfigSerializer, ProductReturnConfigBaseSerializer, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponse, ProductSizeDeleteResponse, ProductSortOn, ProductTagsViewResponse, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequest, ProductTemplateExportResponse, ProductVariants, ProductVariantsResponse, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, ReturnConfig1, ReturnConfig2, ReturnConfigResponse, Sitemap, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, SeoDetail, SetSize, SingleCategoryResponse, SingleProductResponse, Size, SizeDistribution, SizeGuideResponse, StoreAssignResponse, StoreDetail, StoreMeta, SuccessResponse, SuccessResponse1, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateValidationData, TemplatesResponse, TemplatesValidationResponse, ThirdLevelChild, Trader, Trader1, Trader2, UpdateCollection, UpdateSearchConfigurationRequest, UpdateSearchConfigurationResponse,
|
|
3342
|
+
export { Action, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductListingResponse, ApplicationStoreJson, AppReturnConfigResponse, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponse, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSerializer, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponse, Brand, BrandItem, BrandListingResponse, BrandMeta, BrandMeta1, BulkAssetResponse, BulkHsnResponse, BulkHsnUpsert, BulkInventoryGet, FailedRecord, BulkInventoryGetItems, BulkProductJob, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, CategoryCreateResponse, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryRequestBody, CategoryResponse, CategoryUpdateResponse, Child, CollectionBadge, CollectionBanner, CollectionCreateResponse, CollectionDetailResponse, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, CompanyMeta1, CompanyOptIn, ConfigErrorResponse, ConfigSuccessResponse, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponse, CreateCollection, CreateSearchConfigurationRequest, CreateSearchConfigurationResponse, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponse, CustomOrder, DateMeta, DefaultKeyRequest, DeleteAppCategoryReturnConfig, DeleteResponse, DeleteSearchConfigurationResponse, Department, DepartmentCategoryTree, DepartmentCreateErrorResponse, DepartmentCreateResponse, DepartmentCreateUpdate, DepartmentErrorResponse, DepartmentIdentifier, DepartmentModel, DepartmentResponse, DepartmentsResponse, DimensionResponse, DimensionResponse1, Document, EntityConfiguration, ErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, GenderDetail, GetAddressSerializer, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponse, GetConfigMetadataValues, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersKeysResponse, GetQueryFiltersResponse, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponse, GetSearchWordsData, GetSearchWordsDetailResponse, GetSearchWordsResponse, GlobalValidation, Guide, HSNCodesResponse, HSNData, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequest, InventoryConfig, InventoryCreateRequest, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponse, InventoryExportQuantityFilter, InventoryExportRequest, InventoryExportResponse, InventoryFailedReason, InventoryJobDetailResponse, InventoryJobFilters, InventoryJobPayload, InventoryPage, InventoryPayload, InventoryRequest, InventoryRequestSchemaV2, InventoryResponse, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, InventorySellerResponse, InventorySet, InventoryStockResponse, InventoryUpdateResponse, InventoryValidationResponse, InvoiceCredSerializer, InvoiceDetailsSerializer, ItemQuery, Items, LimitedProductData, ListSizeGuide, LocationDayWiseSerializer, LocationIntegrationType, LocationListSerializer, LocationManagerSerializer, LocationTimingSerializer, Logo, MOQData, ManufacturerResponse, ManufacturerResponse1, Media, Media1, Media2, Meta, MetaDataListingFilterMetaResponse, MetaDataListingFilterResponse, MetaDataListingResponse, MetaDataListingSortMetaResponse, MetaDataListingSortResponse, MetaFields, NetQuantity, NetQuantityResponse, NextSchedule, OptInPostRequest, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponse, PTErrorResponse, Page, PageResponse, PageResponse1, PageResponseType, Price, Price1, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponse, Product, ProductAttributesResponse, ProductBrand, ProductBulkAssets, ProductBulkRequest, ProductBulkRequestList, ProductBundleItem, ProductBundleRequest, ProductBundleUpdateRequest, ProductConfigurationDownloads, ProductCreateUpdateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponse, ProductFilters, GetQueryFiltersValuesResponse, ProductFiltersKeysOnly, ProductFiltersKey, ProductFiltersValue, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductListingResponseV2, ProductPublish, ProductPublish1, ProductPublished, ProductReturnConfigSerializer, ProductReturnConfigBaseSerializer, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponse, ProductSizeDeleteResponse, ProductSortOn, ProductTagsViewResponse, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequest, ProductTemplateExportResponse, ProductVariants, ProductVariantsResponse, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, ReturnConfig1, ReturnConfig2, ReturnConfigResponse, Sitemap, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, SeoDetail, SetSize, SingleCategoryResponse, SingleProductResponse, Size, SizeDistribution, SizeGuideResponse, StoreAssignResponse, StoreDetail, StoreMeta, SuccessResponse, SuccessResponse1, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateValidationData, TemplatesResponse, TemplatesValidationResponse, ThirdLevelChild, Trader, Trader1, Trader2, UpdateCollection, UpdateSearchConfigurationRequest, UpdateSearchConfigurationResponse, CreateMarketplaceOptinResponse, UserCommon, UserDetail, UserDetail1, UserInfo, UserInfo1, UserSerializer, UserSerializer1, UserSerializer2, UserSerializer3, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponse, WeightResponse1, CreatedBy, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequest, UpdateMarketplaceOptinResponse, ActionPage, PageType };
|
|
3295
3343
|
}
|
|
3296
3344
|
/** @returns {Action} */
|
|
3297
3345
|
declare function Action(): Action;
|
|
@@ -3808,6 +3856,12 @@ type BulkInventoryGet = {
|
|
|
3808
3856
|
items?: BulkInventoryGetItems[];
|
|
3809
3857
|
page?: Page;
|
|
3810
3858
|
};
|
|
3859
|
+
/** @returns {FailedRecord} */
|
|
3860
|
+
declare function FailedRecord(): FailedRecord;
|
|
3861
|
+
type FailedRecord = {
|
|
3862
|
+
identifiers?: string;
|
|
3863
|
+
message?: string;
|
|
3864
|
+
};
|
|
3811
3865
|
/** @returns {BulkInventoryGetItems} */
|
|
3812
3866
|
declare function BulkInventoryGetItems(): BulkInventoryGetItems;
|
|
3813
3867
|
type BulkInventoryGetItems = {
|
|
@@ -3817,7 +3871,7 @@ type BulkInventoryGetItems = {
|
|
|
3817
3871
|
created_by?: any;
|
|
3818
3872
|
created_on?: string;
|
|
3819
3873
|
failed?: number;
|
|
3820
|
-
failed_records?:
|
|
3874
|
+
failed_records?: FailedRecord[];
|
|
3821
3875
|
file_path?: string;
|
|
3822
3876
|
id?: string;
|
|
3823
3877
|
is_active?: boolean;
|
|
@@ -3827,6 +3881,15 @@ type BulkInventoryGetItems = {
|
|
|
3827
3881
|
succeed?: number;
|
|
3828
3882
|
total?: number;
|
|
3829
3883
|
};
|
|
3884
|
+
/** @returns {BulkProductJob} */
|
|
3885
|
+
declare function BulkProductJob(): BulkProductJob;
|
|
3886
|
+
type BulkProductJob = {
|
|
3887
|
+
company_id?: number;
|
|
3888
|
+
template_tag?: string;
|
|
3889
|
+
product_type?: string;
|
|
3890
|
+
department?: string;
|
|
3891
|
+
file_path?: string;
|
|
3892
|
+
};
|
|
3830
3893
|
/** @returns {BulkJob} */
|
|
3831
3894
|
declare function BulkJob(): BulkJob;
|
|
3832
3895
|
type BulkJob = {
|
|
@@ -5014,13 +5077,45 @@ type GetCompanySerializer = {
|
|
|
5014
5077
|
verified_by?: UserSerializer2;
|
|
5015
5078
|
verified_on?: string;
|
|
5016
5079
|
};
|
|
5080
|
+
/** @returns {ConditionItem} */
|
|
5081
|
+
declare function ConditionItem(): ConditionItem;
|
|
5082
|
+
type ConditionItem = {
|
|
5083
|
+
key?: string;
|
|
5084
|
+
display?: string;
|
|
5085
|
+
};
|
|
5086
|
+
/** @returns {DataItem} */
|
|
5087
|
+
declare function DataItem(): DataItem;
|
|
5088
|
+
type DataItem = {
|
|
5089
|
+
key?: string;
|
|
5090
|
+
display?: string;
|
|
5091
|
+
filter_types?: string[];
|
|
5092
|
+
compatible_units?: string[];
|
|
5093
|
+
};
|
|
5094
|
+
/** @returns {ValueTypeItem} */
|
|
5095
|
+
declare function ValueTypeItem(): ValueTypeItem;
|
|
5096
|
+
type ValueTypeItem = {
|
|
5097
|
+
key?: string;
|
|
5098
|
+
display?: string;
|
|
5099
|
+
};
|
|
5100
|
+
/** @returns {SortTypeItem} */
|
|
5101
|
+
declare function SortTypeItem(): SortTypeItem;
|
|
5102
|
+
type SortTypeItem = {
|
|
5103
|
+
key?: string;
|
|
5104
|
+
display?: string;
|
|
5105
|
+
};
|
|
5017
5106
|
/** @returns {GetConfigMetadataResponse} */
|
|
5018
5107
|
declare function GetConfigMetadataResponse(): GetConfigMetadataResponse;
|
|
5019
5108
|
type GetConfigMetadataResponse = {
|
|
5020
|
-
condition?:
|
|
5021
|
-
data:
|
|
5109
|
+
condition?: ConditionItem[];
|
|
5110
|
+
data: DataItem[];
|
|
5022
5111
|
page?: Page;
|
|
5023
|
-
values?:
|
|
5112
|
+
values?: GetConfigMetadataValues;
|
|
5113
|
+
};
|
|
5114
|
+
/** @returns {GetConfigMetadataValues} */
|
|
5115
|
+
declare function GetConfigMetadataValues(): GetConfigMetadataValues;
|
|
5116
|
+
type GetConfigMetadataValues = {
|
|
5117
|
+
type?: ValueTypeItem[];
|
|
5118
|
+
sort?: SortTypeItem[];
|
|
5024
5119
|
};
|
|
5025
5120
|
/** @returns {GetConfigResponse} */
|
|
5026
5121
|
declare function GetConfigResponse(): GetConfigResponse;
|
|
@@ -7320,6 +7415,7 @@ type QuantitiesArticle = {
|
|
|
7320
7415
|
declare function Quantity(): Quantity;
|
|
7321
7416
|
type Quantity = {
|
|
7322
7417
|
count?: number;
|
|
7418
|
+
updated_at?: string;
|
|
7323
7419
|
};
|
|
7324
7420
|
/** @returns {QuantityBase} */
|
|
7325
7421
|
declare function QuantityBase(): QuantityBase;
|
|
@@ -7738,11 +7834,18 @@ declare function UpdateSearchConfigurationResponse(): UpdateSearchConfigurationR
|
|
|
7738
7834
|
type UpdateSearchConfigurationResponse = {
|
|
7739
7835
|
success?: boolean;
|
|
7740
7836
|
};
|
|
7741
|
-
/** @returns {
|
|
7742
|
-
declare function
|
|
7743
|
-
type
|
|
7744
|
-
|
|
7745
|
-
|
|
7837
|
+
/** @returns {CreateMarketplaceOptinResponse} */
|
|
7838
|
+
declare function CreateMarketplaceOptinResponse(): CreateMarketplaceOptinResponse;
|
|
7839
|
+
type CreateMarketplaceOptinResponse = {
|
|
7840
|
+
store_ids?: number[];
|
|
7841
|
+
brand_ids?: number[];
|
|
7842
|
+
company_id?: number;
|
|
7843
|
+
opt_level?: string;
|
|
7844
|
+
platform?: string;
|
|
7845
|
+
enabled?: boolean;
|
|
7846
|
+
created_by?: CreatedBy;
|
|
7847
|
+
modified_by?: CreatedBy;
|
|
7848
|
+
app_id?: string;
|
|
7746
7849
|
};
|
|
7747
7850
|
/** @returns {UserCommon} */
|
|
7748
7851
|
declare function UserCommon(): UserCommon;
|
|
@@ -422,6 +422,12 @@ const Joi = require("joi");
|
|
|
422
422
|
* @property {Page} [page]
|
|
423
423
|
*/
|
|
424
424
|
|
|
425
|
+
/**
|
|
426
|
+
* @typedef FailedRecord
|
|
427
|
+
* @property {string} [identifiers]
|
|
428
|
+
* @property {string} [message]
|
|
429
|
+
*/
|
|
430
|
+
|
|
425
431
|
/**
|
|
426
432
|
* @typedef BulkInventoryGetItems
|
|
427
433
|
* @property {number} [cancelled]
|
|
@@ -430,7 +436,7 @@ const Joi = require("joi");
|
|
|
430
436
|
* @property {Object} [created_by]
|
|
431
437
|
* @property {string} [created_on]
|
|
432
438
|
* @property {number} [failed]
|
|
433
|
-
* @property {
|
|
439
|
+
* @property {FailedRecord[]} [failed_records]
|
|
434
440
|
* @property {string} [file_path]
|
|
435
441
|
* @property {string} [id]
|
|
436
442
|
* @property {boolean} [is_active]
|
|
@@ -441,6 +447,15 @@ const Joi = require("joi");
|
|
|
441
447
|
* @property {number} [total]
|
|
442
448
|
*/
|
|
443
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @typedef BulkProductJob
|
|
452
|
+
* @property {number} [company_id]
|
|
453
|
+
* @property {string} [template_tag]
|
|
454
|
+
* @property {string} [product_type]
|
|
455
|
+
* @property {string} [department]
|
|
456
|
+
* @property {string} [file_path]
|
|
457
|
+
*/
|
|
458
|
+
|
|
444
459
|
/**
|
|
445
460
|
* @typedef BulkJob
|
|
446
461
|
* @property {number} [cancelled]
|
|
@@ -1379,12 +1394,44 @@ const Joi = require("joi");
|
|
|
1379
1394
|
* @property {string} [verified_on]
|
|
1380
1395
|
*/
|
|
1381
1396
|
|
|
1397
|
+
/**
|
|
1398
|
+
* @typedef ConditionItem
|
|
1399
|
+
* @property {string} [key]
|
|
1400
|
+
* @property {string} [display]
|
|
1401
|
+
*/
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* @typedef DataItem
|
|
1405
|
+
* @property {string} [key]
|
|
1406
|
+
* @property {string} [display]
|
|
1407
|
+
* @property {string[]} [filter_types]
|
|
1408
|
+
* @property {string[]} [compatible_units]
|
|
1409
|
+
*/
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @typedef ValueTypeItem
|
|
1413
|
+
* @property {string} [key]
|
|
1414
|
+
* @property {string} [display]
|
|
1415
|
+
*/
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* @typedef SortTypeItem
|
|
1419
|
+
* @property {string} [key]
|
|
1420
|
+
* @property {string} [display]
|
|
1421
|
+
*/
|
|
1422
|
+
|
|
1382
1423
|
/**
|
|
1383
1424
|
* @typedef GetConfigMetadataResponse
|
|
1384
|
-
* @property {
|
|
1385
|
-
* @property {
|
|
1425
|
+
* @property {ConditionItem[]} [condition]
|
|
1426
|
+
* @property {DataItem[]} data
|
|
1386
1427
|
* @property {Page} [page]
|
|
1387
|
-
* @property {
|
|
1428
|
+
* @property {GetConfigMetadataValues} [values]
|
|
1429
|
+
*/
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* @typedef GetConfigMetadataValues
|
|
1433
|
+
* @property {ValueTypeItem[]} [type]
|
|
1434
|
+
* @property {SortTypeItem[]} [sort]
|
|
1388
1435
|
*/
|
|
1389
1436
|
|
|
1390
1437
|
/**
|
|
@@ -3054,6 +3101,7 @@ const Joi = require("joi");
|
|
|
3054
3101
|
/**
|
|
3055
3102
|
* @typedef Quantity
|
|
3056
3103
|
* @property {number} [count]
|
|
3104
|
+
* @property {string} [updated_at]
|
|
3057
3105
|
*/
|
|
3058
3106
|
|
|
3059
3107
|
/**
|
|
@@ -3426,9 +3474,16 @@ const Joi = require("joi");
|
|
|
3426
3474
|
*/
|
|
3427
3475
|
|
|
3428
3476
|
/**
|
|
3429
|
-
* @typedef
|
|
3430
|
-
* @property {number[]} [
|
|
3431
|
-
* @property {
|
|
3477
|
+
* @typedef CreateMarketplaceOptinResponse
|
|
3478
|
+
* @property {number[]} [store_ids]
|
|
3479
|
+
* @property {number[]} [brand_ids]
|
|
3480
|
+
* @property {number} [company_id]
|
|
3481
|
+
* @property {string} [opt_level]
|
|
3482
|
+
* @property {string} [platform]
|
|
3483
|
+
* @property {boolean} [enabled]
|
|
3484
|
+
* @property {CreatedBy} [created_by]
|
|
3485
|
+
* @property {CreatedBy} [modified_by]
|
|
3486
|
+
* @property {string} [app_id]
|
|
3432
3487
|
*/
|
|
3433
3488
|
|
|
3434
3489
|
/**
|
|
@@ -4186,6 +4241,14 @@ class CatalogPlatformModel {
|
|
|
4186
4241
|
});
|
|
4187
4242
|
}
|
|
4188
4243
|
|
|
4244
|
+
/** @returns {FailedRecord} */
|
|
4245
|
+
static FailedRecord() {
|
|
4246
|
+
return Joi.object({
|
|
4247
|
+
identifiers: Joi.string().allow(""),
|
|
4248
|
+
message: Joi.string().allow(""),
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
|
|
4189
4252
|
/** @returns {BulkInventoryGetItems} */
|
|
4190
4253
|
static BulkInventoryGetItems() {
|
|
4191
4254
|
return Joi.object({
|
|
@@ -4195,7 +4258,7 @@ class CatalogPlatformModel {
|
|
|
4195
4258
|
created_by: Joi.any(),
|
|
4196
4259
|
created_on: Joi.string().allow(""),
|
|
4197
4260
|
failed: Joi.number(),
|
|
4198
|
-
failed_records: Joi.array().items(
|
|
4261
|
+
failed_records: Joi.array().items(CatalogPlatformModel.FailedRecord()),
|
|
4199
4262
|
file_path: Joi.string().allow(""),
|
|
4200
4263
|
id: Joi.string().allow(""),
|
|
4201
4264
|
is_active: Joi.boolean(),
|
|
@@ -4207,6 +4270,17 @@ class CatalogPlatformModel {
|
|
|
4207
4270
|
});
|
|
4208
4271
|
}
|
|
4209
4272
|
|
|
4273
|
+
/** @returns {BulkProductJob} */
|
|
4274
|
+
static BulkProductJob() {
|
|
4275
|
+
return Joi.object({
|
|
4276
|
+
company_id: Joi.number(),
|
|
4277
|
+
template_tag: Joi.string().allow(""),
|
|
4278
|
+
product_type: Joi.string().allow(""),
|
|
4279
|
+
department: Joi.string().allow(""),
|
|
4280
|
+
file_path: Joi.string().allow(""),
|
|
4281
|
+
});
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4210
4284
|
/** @returns {BulkJob} */
|
|
4211
4285
|
static BulkJob() {
|
|
4212
4286
|
return Joi.object({
|
|
@@ -5330,13 +5404,55 @@ class CatalogPlatformModel {
|
|
|
5330
5404
|
});
|
|
5331
5405
|
}
|
|
5332
5406
|
|
|
5407
|
+
/** @returns {ConditionItem} */
|
|
5408
|
+
static ConditionItem() {
|
|
5409
|
+
return Joi.object({
|
|
5410
|
+
key: Joi.string().allow(""),
|
|
5411
|
+
display: Joi.string().allow(""),
|
|
5412
|
+
});
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5415
|
+
/** @returns {DataItem} */
|
|
5416
|
+
static DataItem() {
|
|
5417
|
+
return Joi.object({
|
|
5418
|
+
key: Joi.string().allow(""),
|
|
5419
|
+
display: Joi.string().allow(""),
|
|
5420
|
+
filter_types: Joi.array().items(Joi.string().allow("")),
|
|
5421
|
+
compatible_units: Joi.array().items(Joi.string().allow("")),
|
|
5422
|
+
});
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5425
|
+
/** @returns {ValueTypeItem} */
|
|
5426
|
+
static ValueTypeItem() {
|
|
5427
|
+
return Joi.object({
|
|
5428
|
+
key: Joi.string().allow(""),
|
|
5429
|
+
display: Joi.string().allow(""),
|
|
5430
|
+
});
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
/** @returns {SortTypeItem} */
|
|
5434
|
+
static SortTypeItem() {
|
|
5435
|
+
return Joi.object({
|
|
5436
|
+
key: Joi.string().allow(""),
|
|
5437
|
+
display: Joi.string().allow(""),
|
|
5438
|
+
});
|
|
5439
|
+
}
|
|
5440
|
+
|
|
5333
5441
|
/** @returns {GetConfigMetadataResponse} */
|
|
5334
5442
|
static GetConfigMetadataResponse() {
|
|
5335
5443
|
return Joi.object({
|
|
5336
|
-
condition: Joi.array().items(
|
|
5337
|
-
data: Joi.array().items(
|
|
5444
|
+
condition: Joi.array().items(CatalogPlatformModel.ConditionItem()),
|
|
5445
|
+
data: Joi.array().items(CatalogPlatformModel.DataItem()).required(),
|
|
5338
5446
|
page: CatalogPlatformModel.Page(),
|
|
5339
|
-
values:
|
|
5447
|
+
values: CatalogPlatformModel.GetConfigMetadataValues(),
|
|
5448
|
+
});
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5451
|
+
/** @returns {GetConfigMetadataValues} */
|
|
5452
|
+
static GetConfigMetadataValues() {
|
|
5453
|
+
return Joi.object({
|
|
5454
|
+
type: Joi.array().items(CatalogPlatformModel.ValueTypeItem()),
|
|
5455
|
+
sort: Joi.array().items(CatalogPlatformModel.SortTypeItem()),
|
|
5340
5456
|
});
|
|
5341
5457
|
}
|
|
5342
5458
|
|
|
@@ -6000,7 +6116,7 @@ class CatalogPlatformModel {
|
|
|
6000
6116
|
quantity: Joi.number(),
|
|
6001
6117
|
seller_identifier: Joi.string().allow("").required(),
|
|
6002
6118
|
store_code: Joi.string().allow("").required(),
|
|
6003
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
6119
|
+
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
6004
6120
|
total_quantity: Joi.number(),
|
|
6005
6121
|
trace_id: Joi.string().allow("").allow(null),
|
|
6006
6122
|
});
|
|
@@ -6025,7 +6141,7 @@ class CatalogPlatformModel {
|
|
|
6025
6141
|
price_marked: Joi.number(),
|
|
6026
6142
|
seller_identifier: Joi.string().allow("").required(),
|
|
6027
6143
|
store_id: Joi.number().required(),
|
|
6028
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
6144
|
+
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
6029
6145
|
total_quantity: Joi.number().allow(null),
|
|
6030
6146
|
trace_id: Joi.string().allow(""),
|
|
6031
6147
|
});
|
|
@@ -6123,12 +6239,12 @@ class CatalogPlatformModel {
|
|
|
6123
6239
|
size: Joi.string().allow("").required(),
|
|
6124
6240
|
stage: Joi.string().allow(""),
|
|
6125
6241
|
store: CatalogPlatformModel.StoreMeta().required(),
|
|
6126
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
6242
|
+
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
6127
6243
|
tax_identifier: Joi.any(),
|
|
6128
6244
|
total_quantity: Joi.number().required(),
|
|
6129
6245
|
trace_id: Joi.string().allow(""),
|
|
6130
6246
|
track_inventory: Joi.boolean(),
|
|
6131
|
-
trader: Joi.array().items(CatalogPlatformModel.Trader1()),
|
|
6247
|
+
trader: Joi.array().items(CatalogPlatformModel.Trader1()).allow(null, ""),
|
|
6132
6248
|
uid: Joi.string().allow("").required(),
|
|
6133
6249
|
weight: CatalogPlatformModel.WeightResponse().required(),
|
|
6134
6250
|
});
|
|
@@ -6808,14 +6924,16 @@ class CatalogPlatformModel {
|
|
|
6808
6924
|
custom_order: CatalogPlatformModel.CustomOrder(),
|
|
6809
6925
|
departments: Joi.array().items(Joi.number()).required(),
|
|
6810
6926
|
description: Joi.string().allow(""),
|
|
6811
|
-
highlights: Joi.array()
|
|
6927
|
+
highlights: Joi.array()
|
|
6928
|
+
.items(Joi.string().allow("").allow(null))
|
|
6929
|
+
.allow(null, ""),
|
|
6812
6930
|
is_active: Joi.boolean(),
|
|
6813
6931
|
is_dependent: Joi.boolean(),
|
|
6814
6932
|
is_image_less_product: Joi.boolean(),
|
|
6815
6933
|
is_set: Joi.boolean(),
|
|
6816
6934
|
item_code: Joi.string().allow("").required(),
|
|
6817
6935
|
item_type: Joi.string().allow("").required(),
|
|
6818
|
-
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
6936
|
+
media: Joi.array().items(CatalogPlatformModel.Media()).allow(null, ""),
|
|
6819
6937
|
multi_size: Joi.boolean(),
|
|
6820
6938
|
name: Joi.string().allow("").required(),
|
|
6821
6939
|
net_quantity: CatalogPlatformModel.NetQuantity(),
|
|
@@ -7164,11 +7282,11 @@ class CatalogPlatformModel {
|
|
|
7164
7282
|
/** @returns {ProductTemplate} */
|
|
7165
7283
|
static ProductTemplate() {
|
|
7166
7284
|
return Joi.object({
|
|
7167
|
-
attributes: Joi.array().items(Joi.string().allow("")),
|
|
7168
|
-
categories: Joi.array().items(Joi.string().allow("")),
|
|
7285
|
+
attributes: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7286
|
+
categories: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7169
7287
|
created_by: Joi.any(),
|
|
7170
7288
|
created_on: Joi.string().allow(""),
|
|
7171
|
-
departments: Joi.array().items(Joi.string().allow("")),
|
|
7289
|
+
departments: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7172
7290
|
description: Joi.string().allow(""),
|
|
7173
7291
|
is_active: Joi.boolean(),
|
|
7174
7292
|
is_archived: Joi.boolean(),
|
|
@@ -7298,6 +7416,7 @@ class CatalogPlatformModel {
|
|
|
7298
7416
|
static Quantity() {
|
|
7299
7417
|
return Joi.object({
|
|
7300
7418
|
count: Joi.number(),
|
|
7419
|
+
updated_at: Joi.string().allow(""),
|
|
7301
7420
|
});
|
|
7302
7421
|
}
|
|
7303
7422
|
|
|
@@ -7625,9 +7744,9 @@ class CatalogPlatformModel {
|
|
|
7625
7744
|
/** @returns {TemplateDetails} */
|
|
7626
7745
|
static TemplateDetails() {
|
|
7627
7746
|
return Joi.object({
|
|
7628
|
-
attributes: Joi.array().items(Joi.string().allow("")),
|
|
7629
|
-
categories: Joi.array().items(Joi.string().allow("")),
|
|
7630
|
-
departments: Joi.array().items(Joi.string().allow("")),
|
|
7747
|
+
attributes: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7748
|
+
categories: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7749
|
+
departments: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7631
7750
|
description: Joi.string().allow(""),
|
|
7632
7751
|
id: Joi.string().allow(""),
|
|
7633
7752
|
is_active: Joi.boolean(),
|
|
@@ -7758,11 +7877,18 @@ class CatalogPlatformModel {
|
|
|
7758
7877
|
});
|
|
7759
7878
|
}
|
|
7760
7879
|
|
|
7761
|
-
/** @returns {
|
|
7762
|
-
static
|
|
7880
|
+
/** @returns {CreateMarketplaceOptinResponse} */
|
|
7881
|
+
static CreateMarketplaceOptinResponse() {
|
|
7763
7882
|
return Joi.object({
|
|
7764
|
-
|
|
7765
|
-
|
|
7883
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7884
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7885
|
+
company_id: Joi.number(),
|
|
7886
|
+
opt_level: Joi.string().allow(""),
|
|
7887
|
+
platform: Joi.string().allow(""),
|
|
7888
|
+
enabled: Joi.boolean(),
|
|
7889
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
7890
|
+
modified_by: CatalogPlatformModel.CreatedBy(),
|
|
7891
|
+
app_id: Joi.string().allow(""),
|
|
7766
7892
|
});
|
|
7767
7893
|
}
|
|
7768
7894
|
|