@gofynd/fdk-client-javascript 3.27.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +4 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +5 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +11 -1
- package/sdk/application/Payment/PaymentApplicationClient.js +50 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +61 -1
- package/sdk/platform/Cart/CartPlatformModel.js +40 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +175 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +83 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +52 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +20 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -0
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +30 -1
- package/sdk/platform/Lead/LeadPlatformModel.js +19 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +163 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +27 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +106 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +79 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +14 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +83 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +10 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +121 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +112 -0
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export = CatalogPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef InventoryTransaction
|
|
4
|
+
* @property {string} [type] - Reason category for the inventory change.
|
|
5
|
+
* @property {string} [reference_id] - External transaction reference id (e.g.
|
|
6
|
+
* inbound / PO / transfer id).
|
|
7
|
+
* @property {string} [reason] - Free-text reason for the inventory change.
|
|
8
|
+
* @property {string} [source] - Origin system of the change.
|
|
9
|
+
* @property {string} [user_ref] - Reference to the user who initiated the change.
|
|
10
|
+
*/
|
|
2
11
|
/**
|
|
3
12
|
* @typedef Action
|
|
4
13
|
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
@@ -2197,6 +2206,13 @@ export = CatalogPlatformModel;
|
|
|
2197
2206
|
* @property {number} company_id
|
|
2198
2207
|
* @property {InventoryJobPayload[]} sizes
|
|
2199
2208
|
* @property {Object} [user]
|
|
2209
|
+
* @property {string} [transaction_type] - Reason for the bulk inventory update.
|
|
2210
|
+
* Recorded in the audit-trail event; per-row values on
|
|
2211
|
+
* `sizes[].transaction_type` override this top-level value. Optional;
|
|
2212
|
+
* defaults to "other" when omitted.
|
|
2213
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2214
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2215
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2200
2216
|
*/
|
|
2201
2217
|
/**
|
|
2202
2218
|
* @typedef InventoryConfig
|
|
@@ -2332,6 +2348,12 @@ export = CatalogPlatformModel;
|
|
|
2332
2348
|
* @property {string[]} [tags] - The tags associated with the item.
|
|
2333
2349
|
* @property {number} [total_quantity] - The total quantity of the item.
|
|
2334
2350
|
* @property {string} [trace_id] - The trace ID of the inventory job payload.
|
|
2351
|
+
* @property {string} [transaction_type] - Reason for this row's inventory
|
|
2352
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
2353
|
+
* `transaction_type` when both are present. Optional.
|
|
2354
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2355
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2356
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2335
2357
|
*/
|
|
2336
2358
|
/**
|
|
2337
2359
|
* @typedef InventoryPage
|
|
@@ -2353,6 +2375,7 @@ export = CatalogPlatformModel;
|
|
|
2353
2375
|
* @property {string} [expiration_date] - The expiration date of the inventory item.
|
|
2354
2376
|
* @property {number} [price_effective] - The effective price of the inventory item.
|
|
2355
2377
|
* @property {number} [price_marked] - The marked price of the inventory item.
|
|
2378
|
+
* @property {number} [price_cost] - The cost price of the article.
|
|
2356
2379
|
* @property {string} seller_identifier - The identifier of the seller.
|
|
2357
2380
|
* @property {number} store_id - The ID of the store.
|
|
2358
2381
|
* @property {string[]} [tags] - The tags associated with the inventory item.
|
|
@@ -2363,18 +2386,37 @@ export = CatalogPlatformModel;
|
|
|
2363
2386
|
* the inventory item.
|
|
2364
2387
|
* @property {string} [trace_id] - The trace ID of the inventory payload.
|
|
2365
2388
|
* @property {Object} [meta]
|
|
2389
|
+
* @property {string} [transaction_type] - Reason for this row's inventory
|
|
2390
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
2391
|
+
* `transaction_type` when both are present. Optional.
|
|
2392
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2393
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2394
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2366
2395
|
*/
|
|
2367
2396
|
/**
|
|
2368
2397
|
* @typedef InventoryRequestSchema
|
|
2369
2398
|
* @property {number} company_id
|
|
2370
2399
|
* @property {ItemQuery} item
|
|
2371
2400
|
* @property {InvSize[]} sizes
|
|
2401
|
+
* @property {string} [transaction_type] - Reason for the inventory update.
|
|
2402
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
2403
|
+
* Optional; defaults to "other" when omitted.
|
|
2404
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2405
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2406
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2372
2407
|
*/
|
|
2373
2408
|
/**
|
|
2374
2409
|
* @typedef InventoryRequestSchemaV2
|
|
2375
2410
|
* @property {number} company_id - The ID of the company.
|
|
2376
2411
|
* @property {Object} [meta] - Additional metadata for the inventory request.
|
|
2377
2412
|
* @property {InventoryPayload[]} [payload] - The list of inventory payloads.
|
|
2413
|
+
* @property {string} [transaction_type] - Reason for the inventory update.
|
|
2414
|
+
* Recorded in the audit-trail event for the resulting article mutation;
|
|
2415
|
+
* per-row values on `payload[].transaction_type` override this top-level
|
|
2416
|
+
* value. Optional; defaults to "other" when omitted.
|
|
2417
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2418
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2419
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2378
2420
|
*/
|
|
2379
2421
|
/**
|
|
2380
2422
|
* @typedef InventoryResponseSchema
|
|
@@ -2786,7 +2828,14 @@ export = CatalogPlatformModel;
|
|
|
2786
2828
|
* @typedef LocationPriceRequestSchema
|
|
2787
2829
|
* @property {number} price_effective - The effective price of the inventory item.
|
|
2788
2830
|
* @property {number} price_marked - The marked price of the inventory item.
|
|
2831
|
+
* @property {number} [price_cost] - The cost price of the article.
|
|
2789
2832
|
* @property {string[]} [tags] - Tags associated with inventory item.
|
|
2833
|
+
* @property {string} [transaction_type] - Reason for the price update. Recorded
|
|
2834
|
+
* in the audit-trail event for the resulting article mutation. Optional;
|
|
2835
|
+
* defaults to "other" when omitted.
|
|
2836
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2837
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2838
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2790
2839
|
*/
|
|
2791
2840
|
/**
|
|
2792
2841
|
* @typedef LocationQuantityRequestSchema
|
|
@@ -2801,6 +2850,12 @@ export = CatalogPlatformModel;
|
|
|
2801
2850
|
* the inventory item. Any one of total_quantity, damaged_quantity,
|
|
2802
2851
|
* not_available_quantity should be provided.
|
|
2803
2852
|
* @property {string} [mode] - Indicates whether delta or replace operation for inventory
|
|
2853
|
+
* @property {string} [transaction_type] - Reason for the quantity update.
|
|
2854
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
2855
|
+
* Optional; defaults to "other" when omitted.
|
|
2856
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2857
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2858
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2804
2859
|
*/
|
|
2805
2860
|
/**
|
|
2806
2861
|
* @typedef LocationPriceQuantitySuccessResponseSchema
|
|
@@ -5006,8 +5061,33 @@ export = CatalogPlatformModel;
|
|
|
5006
5061
|
declare class CatalogPlatformModel {
|
|
5007
5062
|
}
|
|
5008
5063
|
declare namespace CatalogPlatformModel {
|
|
5009
|
-
export { Action, ValidationErrors, StandardError, AllSizes, AllowSingleRequestSchema, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponseSchema, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, SortWeights, CohortWeights, HighSpenderRepeatCustomerWeights, HyperactiveRepeatCustomerWeights, HighSpenderOccasionalCustomerWeights, StandardOccasionalCustomerWeights, DormantPremiumCustomerWeights, BudgetRegularCustomerWeights, HighSpenderRegularCustomerWeights, StandardCustomerAboutToChurnWeights, PremiumCustomerAboutToChurnWeights, HighSpenderCustomerAboutToChurnWeights, StandardDormantCustomerWeights, HighSpenderDormantCustomerWeights, PotentialCustomerWeights, NewCustomerWeights, BudgetRepeatCustomerWeights, AverageSpenderRepeatCustomerWeights, CohortSortingConfiguration, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponseSchema, ApplicationItemMOQ, Scores, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductsSchema, ApplicationProductListingResponseSchema, ApplicationStoreJson, AppReturnConfigResponseSchema, ArticleStoreResponseSchema, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSchema, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponseSchema, Brand, BrandItem, BrandListingResponseSchema, ApplicationBrandListingItemSchema, ApplicationBrandListingSchema, ApplicationCategoryListingSchema, ApplicationCategoryListingItemSchema, BrandMeta, InventoryBrandMeta, BulkAssetResponseSchema, BulkHsnResponseSchema, BulkHsnUpsert, BulkInventoryGet, InventoryRecord, FailedRecord, BulkInventoryGetItems, BulkMeta, BulkProductJob, BulkJob, BulkProductRequestSchema, BulkResponseSchema, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponseSchema, CategoriesResponseSchema, Category, CategoryItems, CategoryListingResponseSchema, CategoryMapping, CategoryMappingValues, CategoryResponseSchema, Child, CollectionBadge, CollectionBanner, CollectionCreateResponseSchema, CollectionDetailResponseSchema, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, InventoryCompanyMeta, CompanyOptIn, ConfigErrorResponseSchema, ConfigSuccessResponseSchema, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponseSchema, CreateCollection, CreateSearchConfigurationRequestSchema, CreateSearchConfigurationResponseSchema, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponseSchema, CustomOrder, DateMeta, DefaultKeyRequestSchema, DeleteAppCategoryReturnConfig, DeleteResponseSchema, DeleteSearchConfigurationResponseSchema, Department, DepartmentCategoryTree, DepartmentErrorResponseSchema, DepartmentIdentifier, DepartmentResponseSchema, DepartmentsResponseSchema, DimensionResponseSchema, InventoryDimensionResponseSchema, Document, EntityConfiguration, ErrorResponseSchema, FilerList, RawProduct, RawProductListingResponseSchema, GTIN, AttributeDetail, LatLong, ApplicationLocationAddressSchema, GetAddressSchema, RegionDetailsSchema, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponseSchema, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionListingResponseSchema, GetCollectionQueryOptionResponseSchema, GetCompanySchema, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponseSchema, GetConfigMetadataValues, GetConfigResponseSchema, ConfigItem, AttributeConfig, GetDepartment, GetInventories, GetInventoriesResponseSchema, GetLocationSchema, GetOptInPlatform, GetProducts, ProductDetails, GetCollectionDetailResponseSchema, CommonResponseSchemaCollection, GetQueryFiltersKeysResponseSchema, GetQueryFiltersResponseSchema, GetCollectionItemsResponseSchemaV2, CollectionItemV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponseSchema, GetSearchWordsData, GetSearchWordsDetailResponseSchema, GetSearchWordsResponseSchema, GlobalValidation, Guide, HSNCodesResponseSchema, HSNData, CreatedBySchema, ModifiedBySchema, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequestSchema, InventoryConfig, InventoryCreateRequestSchema, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponseSchema, InventoryExportQuantityFilter, InventoryExportRequestSchema, InventoryExportResponseSchema, InventoryFailedReason, InventoryJobDetailResponseSchema, InventoryJobFilters, InventoryJobPayload, InventoryPage, AddInventoryRequestPayload, InventoryPayload, InventoryRequestSchema, InventoryRequestSchemaV2, InventoryResponseSchema, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, ApplicationInventorySellerIdentifierResponsePaginated, InventorySellerResponseSchema, ApplicationInventorySellerResponseSchema, InventorySet, InventoryStockResponseSchema, InventoryUpdateResponseSchema, InventoryValidationResponseSchema, InvoiceCredSchema, InvoiceDetailsSchema, ItemQuery, Items, LimitedProductData, SizeGuideItem, ListSizeGuide, LocationDayWiseSchema, LocationIntegrationType, LocationListSchema, LocationManagerSchema, LocationTimingSchema, Logo, MOQData, ManufacturerResponseSchema, InventoryManufacturerResponseSchema, Media, Media1, DepartmentMedia, BrandMedia, BundleDetails, Meta, MetaDataListingFilterMetaResponseSchema, MetaDataListingFilterResponseSchema, MetaDataListingResponseSchema, MetaDataListingSortMetaResponseSchema, MetaDataListingSortResponseSchema, MetaFields, NetQuantity, NetQuantityResponseSchema, NextSchedule, LocationPriceRequestSchema, LocationQuantityRequestSchema, LocationPriceQuantitySuccessResponseSchema, OptInPostRequestSchema, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponseSchema, PTErrorResponseSchema, Page, PageResponseSchema, PageResponseType, Price, ProductListingDetailPrice, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponseSchema, PriceStrategySchema, PriceFactoryResponseSchema, Product, ProductAttributesResponseSchema, ProductBrand, ProductBulkAssets, ProductBulkRequestSchema, ProductBulkRequestList, ProductConfigurationDownloads, ProductCreateSchemaV3, ProductUpdateSchemaV3, ProductPatchSchemaV3, ProductSizePatch, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponseSchema, CollectionProductFilters, ProductFilters, GetQueryFiltersValuesResponseSchema, ProductFiltersKeysOnly, ProductFiltersKey, ProductQueryFiltersValue, CollectionProductFiltersValue, ProductFiltersValue, CollectionProductListingDetail, ProductCategory, ApplicationCategoryAction, ApplicationCategoryItem, ApplicationProductMedia, ApplicationProductCategoryItem, CategoryPageAction, CategoryQuery, CategoryImage, ProductListingDetail, ActionObject, PageAction, ProductListingPrice, ProductListingResponseSchema, ProductListingResponseV2, ProductPublish, ProductPublished, ProductReturnConfigSchema, ProductReturnConfigBaseSchema, Identifier, SizeDetails, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponseSchema, ProductSizeDeleteResponseSchema, CollectionProductSortOn, ProductSortOn, ProductTagsViewResponseSchema, CreatedBy, ModifiedBy, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequestSchema, ProductTemplateExportResponseSchema, ProductVariants, ProductVariantsResponseSchema, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, InventoryReturnConfig, ReturnConfig2, ReturnConfigResponseSchema, Sitemap, PageQuery, ApplicationCollectionItemSeoPage, ApplicationCollectionItemSeoAction, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationCollectionItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, CollectionSeoDetail, SeoDetail, SetSize, SingleCategoryResponseSchema, SingleProductResponseSchema, Size, SizeDistribution, SizeGuideResponseSchema, StoreDetail, StoreMeta, SuccessResponseSchema, SuccessResponseObject, TaxIdentifier, TaxIdentifierV3, TaxSlab, TeaserTag, TemplateDetails, TemplateGlobalValidationData, TemplateValidationData, TemplatesResponseSchema, TemplatesGlobalValidationResponseSchema, TemplatesValidationResponseSchema, ThirdLevelChild, Trader, Trader1, TraderResponseSchema, UpdateCollection, UpdateSearchConfigurationRequestSchema, UpdateSearchConfigurationResponseSchema, CreateMarketplaceOptinResponseSchema, UserCommon, UserDetail, UserDetail1, UserInfo, UserSchema, RequestUserSchema, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponseSchema, InventoryWeightResponseSchema, BulkInventoryJob, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequestSchema, UpdateMarketplaceOptinResponseSchema, Filters, FollowedProducts, FollowProduct, TaxReqBodyRule, TaxThreshold, TaxComponent, TaxComponentResponseSchema, TaxComponentName, CreateTaxComponentNameRequestSchema, TaxReqBodyVersion, TaxGeoArea, AreaDetails, Country, Area, RegionReference, CreateTaxRequestBody, TaxVersion, UpdateTaxVersionRequestBody, CreateTaxVersionRequestBody, TaxRule, TaxVersionDetail, CreateTax, UpdateTaxRequestBody, TaxRuleItem, TaxRules, TaxVersionPastData, TaxRuleVersion, HSCodeItem, HSCodes, GetTaxComponents, PriceFactoryListItemsSchema, PriceFactoryListResponseSchema, CreatePriceFactoryConfigSchema, UpdatePriceFactoryConfigSchema, PriceFactoryConfigSchema, CurrencyPriceSchema, UpsertPriceFactorySizesSchema, UpsertPriceFactoryProductSchema, PriceFactoryCurrencyPriceSchema, PriceFactorySizesSchema, PriceFactoryProductResponseSchema, PriceFactoryProductListResponseSchema, PriceRange, CurrencyPrice, ProductPrice, AppProductPricesSchema, ActionPage, ValidationError, Price1, MultiCategoriesSchema, NetQuantitySchema, CustomMeta, TaxStatusEnum, TaxVersionScopeEnum, HsTypeEnum, PageType };
|
|
5064
|
+
export { InventoryTransaction, Action, ValidationErrors, StandardError, AllSizes, AllowSingleRequestSchema, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponseSchema, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, SortWeights, CohortWeights, HighSpenderRepeatCustomerWeights, HyperactiveRepeatCustomerWeights, HighSpenderOccasionalCustomerWeights, StandardOccasionalCustomerWeights, DormantPremiumCustomerWeights, BudgetRegularCustomerWeights, HighSpenderRegularCustomerWeights, StandardCustomerAboutToChurnWeights, PremiumCustomerAboutToChurnWeights, HighSpenderCustomerAboutToChurnWeights, StandardDormantCustomerWeights, HighSpenderDormantCustomerWeights, PotentialCustomerWeights, NewCustomerWeights, BudgetRepeatCustomerWeights, AverageSpenderRepeatCustomerWeights, CohortSortingConfiguration, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponseSchema, ApplicationItemMOQ, Scores, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductsSchema, ApplicationProductListingResponseSchema, ApplicationStoreJson, AppReturnConfigResponseSchema, ArticleStoreResponseSchema, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSchema, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponseSchema, Brand, BrandItem, BrandListingResponseSchema, ApplicationBrandListingItemSchema, ApplicationBrandListingSchema, ApplicationCategoryListingSchema, ApplicationCategoryListingItemSchema, BrandMeta, InventoryBrandMeta, BulkAssetResponseSchema, BulkHsnResponseSchema, BulkHsnUpsert, BulkInventoryGet, InventoryRecord, FailedRecord, BulkInventoryGetItems, BulkMeta, BulkProductJob, BulkJob, BulkProductRequestSchema, BulkResponseSchema, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponseSchema, CategoriesResponseSchema, Category, CategoryItems, CategoryListingResponseSchema, CategoryMapping, CategoryMappingValues, CategoryResponseSchema, Child, CollectionBadge, CollectionBanner, CollectionCreateResponseSchema, CollectionDetailResponseSchema, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, InventoryCompanyMeta, CompanyOptIn, ConfigErrorResponseSchema, ConfigSuccessResponseSchema, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponseSchema, CreateCollection, CreateSearchConfigurationRequestSchema, CreateSearchConfigurationResponseSchema, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponseSchema, CustomOrder, DateMeta, DefaultKeyRequestSchema, DeleteAppCategoryReturnConfig, DeleteResponseSchema, DeleteSearchConfigurationResponseSchema, Department, DepartmentCategoryTree, DepartmentErrorResponseSchema, DepartmentIdentifier, DepartmentResponseSchema, DepartmentsResponseSchema, DimensionResponseSchema, InventoryDimensionResponseSchema, Document, EntityConfiguration, ErrorResponseSchema, FilerList, RawProduct, RawProductListingResponseSchema, GTIN, AttributeDetail, LatLong, ApplicationLocationAddressSchema, GetAddressSchema, RegionDetailsSchema, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponseSchema, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionListingResponseSchema, GetCollectionQueryOptionResponseSchema, GetCompanySchema, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponseSchema, GetConfigMetadataValues, GetConfigResponseSchema, ConfigItem, AttributeConfig, GetDepartment, GetInventories, GetInventoriesResponseSchema, GetLocationSchema, GetOptInPlatform, GetProducts, ProductDetails, GetCollectionDetailResponseSchema, CommonResponseSchemaCollection, GetQueryFiltersKeysResponseSchema, GetQueryFiltersResponseSchema, GetCollectionItemsResponseSchemaV2, CollectionItemV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponseSchema, GetSearchWordsData, GetSearchWordsDetailResponseSchema, GetSearchWordsResponseSchema, GlobalValidation, Guide, HSNCodesResponseSchema, HSNData, CreatedBySchema, ModifiedBySchema, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequestSchema, InventoryConfig, InventoryCreateRequestSchema, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponseSchema, InventoryExportQuantityFilter, InventoryExportRequestSchema, InventoryExportResponseSchema, InventoryFailedReason, InventoryJobDetailResponseSchema, InventoryJobFilters, InventoryJobPayload, InventoryPage, AddInventoryRequestPayload, InventoryPayload, InventoryRequestSchema, InventoryRequestSchemaV2, InventoryResponseSchema, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, ApplicationInventorySellerIdentifierResponsePaginated, InventorySellerResponseSchema, ApplicationInventorySellerResponseSchema, InventorySet, InventoryStockResponseSchema, InventoryUpdateResponseSchema, InventoryValidationResponseSchema, InvoiceCredSchema, InvoiceDetailsSchema, ItemQuery, Items, LimitedProductData, SizeGuideItem, ListSizeGuide, LocationDayWiseSchema, LocationIntegrationType, LocationListSchema, LocationManagerSchema, LocationTimingSchema, Logo, MOQData, ManufacturerResponseSchema, InventoryManufacturerResponseSchema, Media, Media1, DepartmentMedia, BrandMedia, BundleDetails, Meta, MetaDataListingFilterMetaResponseSchema, MetaDataListingFilterResponseSchema, MetaDataListingResponseSchema, MetaDataListingSortMetaResponseSchema, MetaDataListingSortResponseSchema, MetaFields, NetQuantity, NetQuantityResponseSchema, NextSchedule, LocationPriceRequestSchema, LocationQuantityRequestSchema, LocationPriceQuantitySuccessResponseSchema, OptInPostRequestSchema, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponseSchema, PTErrorResponseSchema, Page, PageResponseSchema, PageResponseType, Price, ProductListingDetailPrice, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponseSchema, PriceStrategySchema, PriceFactoryResponseSchema, Product, ProductAttributesResponseSchema, ProductBrand, ProductBulkAssets, ProductBulkRequestSchema, ProductBulkRequestList, ProductConfigurationDownloads, ProductCreateSchemaV3, ProductUpdateSchemaV3, ProductPatchSchemaV3, ProductSizePatch, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponseSchema, CollectionProductFilters, ProductFilters, GetQueryFiltersValuesResponseSchema, ProductFiltersKeysOnly, ProductFiltersKey, ProductQueryFiltersValue, CollectionProductFiltersValue, ProductFiltersValue, CollectionProductListingDetail, ProductCategory, ApplicationCategoryAction, ApplicationCategoryItem, ApplicationProductMedia, ApplicationProductCategoryItem, CategoryPageAction, CategoryQuery, CategoryImage, ProductListingDetail, ActionObject, PageAction, ProductListingPrice, ProductListingResponseSchema, ProductListingResponseV2, ProductPublish, ProductPublished, ProductReturnConfigSchema, ProductReturnConfigBaseSchema, Identifier, SizeDetails, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponseSchema, ProductSizeDeleteResponseSchema, CollectionProductSortOn, ProductSortOn, ProductTagsViewResponseSchema, CreatedBy, ModifiedBy, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequestSchema, ProductTemplateExportResponseSchema, ProductVariants, ProductVariantsResponseSchema, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, InventoryReturnConfig, ReturnConfig2, ReturnConfigResponseSchema, Sitemap, PageQuery, ApplicationCollectionItemSeoPage, ApplicationCollectionItemSeoAction, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationCollectionItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, CollectionSeoDetail, SeoDetail, SetSize, SingleCategoryResponseSchema, SingleProductResponseSchema, Size, SizeDistribution, SizeGuideResponseSchema, StoreDetail, StoreMeta, SuccessResponseSchema, SuccessResponseObject, TaxIdentifier, TaxIdentifierV3, TaxSlab, TeaserTag, TemplateDetails, TemplateGlobalValidationData, TemplateValidationData, TemplatesResponseSchema, TemplatesGlobalValidationResponseSchema, TemplatesValidationResponseSchema, ThirdLevelChild, Trader, Trader1, TraderResponseSchema, UpdateCollection, UpdateSearchConfigurationRequestSchema, UpdateSearchConfigurationResponseSchema, CreateMarketplaceOptinResponseSchema, UserCommon, UserDetail, UserDetail1, UserInfo, UserSchema, RequestUserSchema, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponseSchema, InventoryWeightResponseSchema, BulkInventoryJob, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequestSchema, UpdateMarketplaceOptinResponseSchema, Filters, FollowedProducts, FollowProduct, TaxReqBodyRule, TaxThreshold, TaxComponent, TaxComponentResponseSchema, TaxComponentName, CreateTaxComponentNameRequestSchema, TaxReqBodyVersion, TaxGeoArea, AreaDetails, Country, Area, RegionReference, CreateTaxRequestBody, TaxVersion, UpdateTaxVersionRequestBody, CreateTaxVersionRequestBody, TaxRule, TaxVersionDetail, CreateTax, UpdateTaxRequestBody, TaxRuleItem, TaxRules, TaxVersionPastData, TaxRuleVersion, HSCodeItem, HSCodes, GetTaxComponents, PriceFactoryListItemsSchema, PriceFactoryListResponseSchema, CreatePriceFactoryConfigSchema, UpdatePriceFactoryConfigSchema, PriceFactoryConfigSchema, CurrencyPriceSchema, UpsertPriceFactorySizesSchema, UpsertPriceFactoryProductSchema, PriceFactoryCurrencyPriceSchema, PriceFactorySizesSchema, PriceFactoryProductResponseSchema, PriceFactoryProductListResponseSchema, PriceRange, CurrencyPrice, ProductPrice, AppProductPricesSchema, ActionPage, ValidationError, Price1, MultiCategoriesSchema, NetQuantitySchema, CustomMeta, TaxStatusEnum, TaxVersionScopeEnum, HsTypeEnum, PageType };
|
|
5010
5065
|
}
|
|
5066
|
+
/** @returns {InventoryTransaction} */
|
|
5067
|
+
declare function InventoryTransaction(): InventoryTransaction;
|
|
5068
|
+
type InventoryTransaction = {
|
|
5069
|
+
/**
|
|
5070
|
+
* - Reason category for the inventory change.
|
|
5071
|
+
*/
|
|
5072
|
+
type?: string;
|
|
5073
|
+
/**
|
|
5074
|
+
* - External transaction reference id (e.g.
|
|
5075
|
+
* inbound / PO / transfer id).
|
|
5076
|
+
*/
|
|
5077
|
+
reference_id?: string;
|
|
5078
|
+
/**
|
|
5079
|
+
* - Free-text reason for the inventory change.
|
|
5080
|
+
*/
|
|
5081
|
+
reason?: string;
|
|
5082
|
+
/**
|
|
5083
|
+
* - Origin system of the change.
|
|
5084
|
+
*/
|
|
5085
|
+
source?: string;
|
|
5086
|
+
/**
|
|
5087
|
+
* - Reference to the user who initiated the change.
|
|
5088
|
+
*/
|
|
5089
|
+
user_ref?: string;
|
|
5090
|
+
};
|
|
5011
5091
|
/** @returns {Action} */
|
|
5012
5092
|
declare function Action(): Action;
|
|
5013
5093
|
type Action = {
|
|
@@ -9519,6 +9599,19 @@ type InventoryBulkRequestSchema = {
|
|
|
9519
9599
|
company_id: number;
|
|
9520
9600
|
sizes: InventoryJobPayload[];
|
|
9521
9601
|
user?: any;
|
|
9602
|
+
/**
|
|
9603
|
+
* - Reason for the bulk inventory update.
|
|
9604
|
+
* Recorded in the audit-trail event; per-row values on
|
|
9605
|
+
* `sizes[].transaction_type` override this top-level value. Optional;
|
|
9606
|
+
* defaults to "other" when omitted.
|
|
9607
|
+
*/
|
|
9608
|
+
transaction_type?: string;
|
|
9609
|
+
/**
|
|
9610
|
+
* - Audit transaction context;
|
|
9611
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
9612
|
+
* All fields optional; recorded in the audit-trail event.
|
|
9613
|
+
*/
|
|
9614
|
+
transaction?: InventoryTransaction;
|
|
9522
9615
|
};
|
|
9523
9616
|
/** @returns {InventoryConfig} */
|
|
9524
9617
|
declare function InventoryConfig(): InventoryConfig;
|
|
@@ -9859,6 +9952,18 @@ type InventoryJobPayload = {
|
|
|
9859
9952
|
* - The trace ID of the inventory job payload.
|
|
9860
9953
|
*/
|
|
9861
9954
|
trace_id?: string;
|
|
9955
|
+
/**
|
|
9956
|
+
* - Reason for this row's inventory
|
|
9957
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
9958
|
+
* `transaction_type` when both are present. Optional.
|
|
9959
|
+
*/
|
|
9960
|
+
transaction_type?: string;
|
|
9961
|
+
/**
|
|
9962
|
+
* - Audit transaction context;
|
|
9963
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
9964
|
+
* All fields optional; recorded in the audit-trail event.
|
|
9965
|
+
*/
|
|
9966
|
+
transaction?: InventoryTransaction;
|
|
9862
9967
|
};
|
|
9863
9968
|
/** @returns {InventoryPage} */
|
|
9864
9969
|
declare function InventoryPage(): InventoryPage;
|
|
@@ -9907,6 +10012,10 @@ type InventoryPayload = {
|
|
|
9907
10012
|
* - The marked price of the inventory item.
|
|
9908
10013
|
*/
|
|
9909
10014
|
price_marked?: number;
|
|
10015
|
+
/**
|
|
10016
|
+
* - The cost price of the article.
|
|
10017
|
+
*/
|
|
10018
|
+
price_cost?: number;
|
|
9910
10019
|
/**
|
|
9911
10020
|
* - The identifier of the seller.
|
|
9912
10021
|
*/
|
|
@@ -9941,6 +10050,18 @@ type InventoryPayload = {
|
|
|
9941
10050
|
*/
|
|
9942
10051
|
trace_id?: string;
|
|
9943
10052
|
meta?: any;
|
|
10053
|
+
/**
|
|
10054
|
+
* - Reason for this row's inventory
|
|
10055
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
10056
|
+
* `transaction_type` when both are present. Optional.
|
|
10057
|
+
*/
|
|
10058
|
+
transaction_type?: string;
|
|
10059
|
+
/**
|
|
10060
|
+
* - Audit transaction context;
|
|
10061
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
10062
|
+
* All fields optional; recorded in the audit-trail event.
|
|
10063
|
+
*/
|
|
10064
|
+
transaction?: InventoryTransaction;
|
|
9944
10065
|
};
|
|
9945
10066
|
/** @returns {InventoryRequestSchema} */
|
|
9946
10067
|
declare function InventoryRequestSchema(): InventoryRequestSchema;
|
|
@@ -9948,6 +10069,18 @@ type InventoryRequestSchema = {
|
|
|
9948
10069
|
company_id: number;
|
|
9949
10070
|
item: ItemQuery;
|
|
9950
10071
|
sizes: InvSize[];
|
|
10072
|
+
/**
|
|
10073
|
+
* - Reason for the inventory update.
|
|
10074
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
10075
|
+
* Optional; defaults to "other" when omitted.
|
|
10076
|
+
*/
|
|
10077
|
+
transaction_type?: string;
|
|
10078
|
+
/**
|
|
10079
|
+
* - Audit transaction context;
|
|
10080
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
10081
|
+
* All fields optional; recorded in the audit-trail event.
|
|
10082
|
+
*/
|
|
10083
|
+
transaction?: InventoryTransaction;
|
|
9951
10084
|
};
|
|
9952
10085
|
/** @returns {InventoryRequestSchemaV2} */
|
|
9953
10086
|
declare function InventoryRequestSchemaV2(): InventoryRequestSchemaV2;
|
|
@@ -9964,6 +10097,19 @@ type InventoryRequestSchemaV2 = {
|
|
|
9964
10097
|
* - The list of inventory payloads.
|
|
9965
10098
|
*/
|
|
9966
10099
|
payload?: InventoryPayload[];
|
|
10100
|
+
/**
|
|
10101
|
+
* - Reason for the inventory update.
|
|
10102
|
+
* Recorded in the audit-trail event for the resulting article mutation;
|
|
10103
|
+
* per-row values on `payload[].transaction_type` override this top-level
|
|
10104
|
+
* value. Optional; defaults to "other" when omitted.
|
|
10105
|
+
*/
|
|
10106
|
+
transaction_type?: string;
|
|
10107
|
+
/**
|
|
10108
|
+
* - Audit transaction context;
|
|
10109
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
10110
|
+
* All fields optional; recorded in the audit-trail event.
|
|
10111
|
+
*/
|
|
10112
|
+
transaction?: InventoryTransaction;
|
|
9967
10113
|
};
|
|
9968
10114
|
/** @returns {InventoryResponseSchema} */
|
|
9969
10115
|
declare function InventoryResponseSchema(): InventoryResponseSchema;
|
|
@@ -10874,10 +11020,26 @@ type LocationPriceRequestSchema = {
|
|
|
10874
11020
|
* - The marked price of the inventory item.
|
|
10875
11021
|
*/
|
|
10876
11022
|
price_marked: number;
|
|
11023
|
+
/**
|
|
11024
|
+
* - The cost price of the article.
|
|
11025
|
+
*/
|
|
11026
|
+
price_cost?: number;
|
|
10877
11027
|
/**
|
|
10878
11028
|
* - Tags associated with inventory item.
|
|
10879
11029
|
*/
|
|
10880
11030
|
tags?: string[];
|
|
11031
|
+
/**
|
|
11032
|
+
* - Reason for the price update. Recorded
|
|
11033
|
+
* in the audit-trail event for the resulting article mutation. Optional;
|
|
11034
|
+
* defaults to "other" when omitted.
|
|
11035
|
+
*/
|
|
11036
|
+
transaction_type?: string;
|
|
11037
|
+
/**
|
|
11038
|
+
* - Audit transaction context;
|
|
11039
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
11040
|
+
* All fields optional; recorded in the audit-trail event.
|
|
11041
|
+
*/
|
|
11042
|
+
transaction?: InventoryTransaction;
|
|
10881
11043
|
};
|
|
10882
11044
|
/** @returns {LocationQuantityRequestSchema} */
|
|
10883
11045
|
declare function LocationQuantityRequestSchema(): LocationQuantityRequestSchema;
|
|
@@ -10908,6 +11070,18 @@ type LocationQuantityRequestSchema = {
|
|
|
10908
11070
|
* - Indicates whether delta or replace operation for inventory
|
|
10909
11071
|
*/
|
|
10910
11072
|
mode?: string;
|
|
11073
|
+
/**
|
|
11074
|
+
* - Reason for the quantity update.
|
|
11075
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
11076
|
+
* Optional; defaults to "other" when omitted.
|
|
11077
|
+
*/
|
|
11078
|
+
transaction_type?: string;
|
|
11079
|
+
/**
|
|
11080
|
+
* - Audit transaction context;
|
|
11081
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
11082
|
+
* All fields optional; recorded in the audit-trail event.
|
|
11083
|
+
*/
|
|
11084
|
+
transaction?: InventoryTransaction;
|
|
10911
11085
|
};
|
|
10912
11086
|
/** @returns {LocationPriceQuantitySuccessResponseSchema} */
|
|
10913
11087
|
declare function LocationPriceQuantitySuccessResponseSchema(): LocationPriceQuantitySuccessResponseSchema;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef InventoryTransaction
|
|
5
|
+
* @property {string} [type] - Reason category for the inventory change.
|
|
6
|
+
* @property {string} [reference_id] - External transaction reference id (e.g.
|
|
7
|
+
* inbound / PO / transfer id).
|
|
8
|
+
* @property {string} [reason] - Free-text reason for the inventory change.
|
|
9
|
+
* @property {string} [source] - Origin system of the change.
|
|
10
|
+
* @property {string} [user_ref] - Reference to the user who initiated the change.
|
|
11
|
+
*/
|
|
12
|
+
|
|
3
13
|
/**
|
|
4
14
|
* @typedef Action
|
|
5
15
|
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
@@ -2413,6 +2423,13 @@ const Joi = require("joi");
|
|
|
2413
2423
|
* @property {number} company_id
|
|
2414
2424
|
* @property {InventoryJobPayload[]} sizes
|
|
2415
2425
|
* @property {Object} [user]
|
|
2426
|
+
* @property {string} [transaction_type] - Reason for the bulk inventory update.
|
|
2427
|
+
* Recorded in the audit-trail event; per-row values on
|
|
2428
|
+
* `sizes[].transaction_type` override this top-level value. Optional;
|
|
2429
|
+
* defaults to "other" when omitted.
|
|
2430
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2431
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2432
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2416
2433
|
*/
|
|
2417
2434
|
|
|
2418
2435
|
/**
|
|
@@ -2561,6 +2578,12 @@ const Joi = require("joi");
|
|
|
2561
2578
|
* @property {string[]} [tags] - The tags associated with the item.
|
|
2562
2579
|
* @property {number} [total_quantity] - The total quantity of the item.
|
|
2563
2580
|
* @property {string} [trace_id] - The trace ID of the inventory job payload.
|
|
2581
|
+
* @property {string} [transaction_type] - Reason for this row's inventory
|
|
2582
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
2583
|
+
* `transaction_type` when both are present. Optional.
|
|
2584
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2585
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2586
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2564
2587
|
*/
|
|
2565
2588
|
|
|
2566
2589
|
/**
|
|
@@ -2585,6 +2608,7 @@ const Joi = require("joi");
|
|
|
2585
2608
|
* @property {string} [expiration_date] - The expiration date of the inventory item.
|
|
2586
2609
|
* @property {number} [price_effective] - The effective price of the inventory item.
|
|
2587
2610
|
* @property {number} [price_marked] - The marked price of the inventory item.
|
|
2611
|
+
* @property {number} [price_cost] - The cost price of the article.
|
|
2588
2612
|
* @property {string} seller_identifier - The identifier of the seller.
|
|
2589
2613
|
* @property {number} store_id - The ID of the store.
|
|
2590
2614
|
* @property {string[]} [tags] - The tags associated with the inventory item.
|
|
@@ -2595,6 +2619,12 @@ const Joi = require("joi");
|
|
|
2595
2619
|
* the inventory item.
|
|
2596
2620
|
* @property {string} [trace_id] - The trace ID of the inventory payload.
|
|
2597
2621
|
* @property {Object} [meta]
|
|
2622
|
+
* @property {string} [transaction_type] - Reason for this row's inventory
|
|
2623
|
+
* update. Recorded in the audit-trail event. Overrides the request-level
|
|
2624
|
+
* `transaction_type` when both are present. Optional.
|
|
2625
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2626
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2627
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2598
2628
|
*/
|
|
2599
2629
|
|
|
2600
2630
|
/**
|
|
@@ -2602,6 +2632,12 @@ const Joi = require("joi");
|
|
|
2602
2632
|
* @property {number} company_id
|
|
2603
2633
|
* @property {ItemQuery} item
|
|
2604
2634
|
* @property {InvSize[]} sizes
|
|
2635
|
+
* @property {string} [transaction_type] - Reason for the inventory update.
|
|
2636
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
2637
|
+
* Optional; defaults to "other" when omitted.
|
|
2638
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2639
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2640
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2605
2641
|
*/
|
|
2606
2642
|
|
|
2607
2643
|
/**
|
|
@@ -2609,6 +2645,13 @@ const Joi = require("joi");
|
|
|
2609
2645
|
* @property {number} company_id - The ID of the company.
|
|
2610
2646
|
* @property {Object} [meta] - Additional metadata for the inventory request.
|
|
2611
2647
|
* @property {InventoryPayload[]} [payload] - The list of inventory payloads.
|
|
2648
|
+
* @property {string} [transaction_type] - Reason for the inventory update.
|
|
2649
|
+
* Recorded in the audit-trail event for the resulting article mutation;
|
|
2650
|
+
* per-row values on `payload[].transaction_type` override this top-level
|
|
2651
|
+
* value. Optional; defaults to "other" when omitted.
|
|
2652
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
2653
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
2654
|
+
* All fields optional; recorded in the audit-trail event.
|
|
2612
2655
|
*/
|
|
2613
2656
|
|
|
2614
2657
|
/**
|
|
@@ -3063,7 +3106,14 @@ const Joi = require("joi");
|
|
|
3063
3106
|
* @typedef LocationPriceRequestSchema
|
|
3064
3107
|
* @property {number} price_effective - The effective price of the inventory item.
|
|
3065
3108
|
* @property {number} price_marked - The marked price of the inventory item.
|
|
3109
|
+
* @property {number} [price_cost] - The cost price of the article.
|
|
3066
3110
|
* @property {string[]} [tags] - Tags associated with inventory item.
|
|
3111
|
+
* @property {string} [transaction_type] - Reason for the price update. Recorded
|
|
3112
|
+
* in the audit-trail event for the resulting article mutation. Optional;
|
|
3113
|
+
* defaults to "other" when omitted.
|
|
3114
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
3115
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
3116
|
+
* All fields optional; recorded in the audit-trail event.
|
|
3067
3117
|
*/
|
|
3068
3118
|
|
|
3069
3119
|
/**
|
|
@@ -3079,6 +3129,12 @@ const Joi = require("joi");
|
|
|
3079
3129
|
* the inventory item. Any one of total_quantity, damaged_quantity,
|
|
3080
3130
|
* not_available_quantity should be provided.
|
|
3081
3131
|
* @property {string} [mode] - Indicates whether delta or replace operation for inventory
|
|
3132
|
+
* @property {string} [transaction_type] - Reason for the quantity update.
|
|
3133
|
+
* Recorded in the audit-trail event for the resulting article mutation.
|
|
3134
|
+
* Optional; defaults to "other" when omitted.
|
|
3135
|
+
* @property {InventoryTransaction} [transaction] - Audit transaction context;
|
|
3136
|
+
* supersedes the flat `transaction_type` (its `type` carries the same value).
|
|
3137
|
+
* All fields optional; recorded in the audit-trail event.
|
|
3082
3138
|
*/
|
|
3083
3139
|
|
|
3084
3140
|
/**
|
|
@@ -5488,6 +5544,17 @@ const Joi = require("joi");
|
|
|
5488
5544
|
*/
|
|
5489
5545
|
|
|
5490
5546
|
class CatalogPlatformModel {
|
|
5547
|
+
/** @returns {InventoryTransaction} */
|
|
5548
|
+
static InventoryTransaction() {
|
|
5549
|
+
return Joi.object({
|
|
5550
|
+
type: Joi.string().allow(""),
|
|
5551
|
+
reference_id: Joi.string().allow(""),
|
|
5552
|
+
reason: Joi.string().allow(""),
|
|
5553
|
+
source: Joi.string().allow(""),
|
|
5554
|
+
user_ref: Joi.string().allow(""),
|
|
5555
|
+
}).allow(null);
|
|
5556
|
+
}
|
|
5557
|
+
|
|
5491
5558
|
/** @returns {Action} */
|
|
5492
5559
|
static Action() {
|
|
5493
5560
|
return Joi.object({
|
|
@@ -8028,6 +8095,8 @@ class CatalogPlatformModel {
|
|
|
8028
8095
|
.items(CatalogPlatformModel.InventoryJobPayload())
|
|
8029
8096
|
.required(),
|
|
8030
8097
|
user: Joi.object().pattern(/\S/, Joi.any()),
|
|
8098
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8099
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8031
8100
|
});
|
|
8032
8101
|
}
|
|
8033
8102
|
|
|
@@ -8184,6 +8253,8 @@ class CatalogPlatformModel {
|
|
|
8184
8253
|
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
8185
8254
|
total_quantity: Joi.number(),
|
|
8186
8255
|
trace_id: Joi.string().allow("").allow(null),
|
|
8256
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8257
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8187
8258
|
});
|
|
8188
8259
|
}
|
|
8189
8260
|
|
|
@@ -8211,6 +8282,7 @@ class CatalogPlatformModel {
|
|
|
8211
8282
|
expiration_date: Joi.string().allow(""),
|
|
8212
8283
|
price_effective: Joi.number(),
|
|
8213
8284
|
price_marked: Joi.number(),
|
|
8285
|
+
price_cost: Joi.number(),
|
|
8214
8286
|
seller_identifier: Joi.string().allow("").required(),
|
|
8215
8287
|
store_id: Joi.number().required(),
|
|
8216
8288
|
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
@@ -8220,6 +8292,8 @@ class CatalogPlatformModel {
|
|
|
8220
8292
|
not_available_quantity: Joi.number().allow(null),
|
|
8221
8293
|
trace_id: Joi.string().allow(""),
|
|
8222
8294
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
8295
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8296
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8223
8297
|
});
|
|
8224
8298
|
}
|
|
8225
8299
|
|
|
@@ -8229,6 +8303,8 @@ class CatalogPlatformModel {
|
|
|
8229
8303
|
company_id: Joi.number().required(),
|
|
8230
8304
|
item: CatalogPlatformModel.ItemQuery().required(),
|
|
8231
8305
|
sizes: Joi.array().items(CatalogPlatformModel.InvSize()).required(),
|
|
8306
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8307
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8232
8308
|
});
|
|
8233
8309
|
}
|
|
8234
8310
|
|
|
@@ -8238,6 +8314,8 @@ class CatalogPlatformModel {
|
|
|
8238
8314
|
company_id: Joi.number().required(),
|
|
8239
8315
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
8240
8316
|
payload: Joi.array().items(CatalogPlatformModel.InventoryPayload()),
|
|
8317
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8318
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8241
8319
|
});
|
|
8242
8320
|
}
|
|
8243
8321
|
|
|
@@ -8739,7 +8817,10 @@ class CatalogPlatformModel {
|
|
|
8739
8817
|
return Joi.object({
|
|
8740
8818
|
price_effective: Joi.number().required(),
|
|
8741
8819
|
price_marked: Joi.number().required(),
|
|
8820
|
+
price_cost: Joi.number(),
|
|
8742
8821
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
8822
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8823
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8743
8824
|
});
|
|
8744
8825
|
}
|
|
8745
8826
|
|
|
@@ -8751,6 +8832,8 @@ class CatalogPlatformModel {
|
|
|
8751
8832
|
damaged_quantity: Joi.number(),
|
|
8752
8833
|
not_available_quantity: Joi.number(),
|
|
8753
8834
|
mode: Joi.string().allow(""),
|
|
8835
|
+
transaction_type: Joi.string().allow("").allow(null),
|
|
8836
|
+
transaction: CatalogPlatformModel.InventoryTransaction(),
|
|
8754
8837
|
});
|
|
8755
8838
|
}
|
|
8756
8839
|
|
|
@@ -155,6 +155,33 @@ declare class CompanyProfile {
|
|
|
155
155
|
* @description: Retrieve a list of locations associated with the company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/companyprofile/getLocations/).
|
|
156
156
|
*/
|
|
157
157
|
getLocations({ storeType, q, stage, pageNo, pageSize, locationIds, types, tags, requestHeaders, }?: CompanyProfilePlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CompanyProfilePlatformModel.LocationListSchema>;
|
|
158
|
+
/**
|
|
159
|
+
* @param {Object} arg - Arg object.
|
|
160
|
+
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
161
|
+
* basis of location type.
|
|
162
|
+
* @param {string} [arg.q] - Query that is to be searched.
|
|
163
|
+
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
164
|
+
* unverified companies.
|
|
165
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
166
|
+
* page. Default is 10.
|
|
167
|
+
* @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
|
|
168
|
+
* @param {string[]} [arg.types] - Helps to get the location list on the
|
|
169
|
+
* basis of multiple location type.
|
|
170
|
+
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
171
|
+
* basis of multiple location tag.
|
|
172
|
+
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSchema>}
|
|
173
|
+
* @summary: Get company specific stores
|
|
174
|
+
* @description: Retrieve a list of locations associated with the company.
|
|
175
|
+
*/
|
|
176
|
+
getLocationsPaginator({ storeType, q, stage, pageSize, locationIds, types, tags, }?: {
|
|
177
|
+
storeType?: string;
|
|
178
|
+
q?: string;
|
|
179
|
+
stage?: string;
|
|
180
|
+
pageSize?: number;
|
|
181
|
+
locationIds?: number[];
|
|
182
|
+
types?: string[];
|
|
183
|
+
tags?: string[];
|
|
184
|
+
}): Paginator<CompanyProfilePlatformModel.LocationListSchema>;
|
|
158
185
|
/**
|
|
159
186
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
160
187
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1051,6 +1051,58 @@ class CompanyProfile {
|
|
|
1051
1051
|
return response;
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
|
+
/**
|
|
1055
|
+
* @param {Object} arg - Arg object.
|
|
1056
|
+
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
1057
|
+
* basis of location type.
|
|
1058
|
+
* @param {string} [arg.q] - Query that is to be searched.
|
|
1059
|
+
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
1060
|
+
* unverified companies.
|
|
1061
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
1062
|
+
* page. Default is 10.
|
|
1063
|
+
* @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
|
|
1064
|
+
* @param {string[]} [arg.types] - Helps to get the location list on the
|
|
1065
|
+
* basis of multiple location type.
|
|
1066
|
+
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
1067
|
+
* basis of multiple location tag.
|
|
1068
|
+
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSchema>}
|
|
1069
|
+
* @summary: Get company specific stores
|
|
1070
|
+
* @description: Retrieve a list of locations associated with the company.
|
|
1071
|
+
*/
|
|
1072
|
+
getLocationsPaginator({
|
|
1073
|
+
storeType,
|
|
1074
|
+
q,
|
|
1075
|
+
stage,
|
|
1076
|
+
pageSize,
|
|
1077
|
+
locationIds,
|
|
1078
|
+
types,
|
|
1079
|
+
tags,
|
|
1080
|
+
} = {}) {
|
|
1081
|
+
const paginator = new Paginator();
|
|
1082
|
+
const callback = async () => {
|
|
1083
|
+
const pageId = paginator.nextId;
|
|
1084
|
+
const pageNo = paginator.pageNo;
|
|
1085
|
+
const pageType = "number";
|
|
1086
|
+
const data = await this.getLocations({
|
|
1087
|
+
storeType: storeType,
|
|
1088
|
+
q: q,
|
|
1089
|
+
stage: stage,
|
|
1090
|
+
pageNo: pageNo,
|
|
1091
|
+
pageSize: pageSize,
|
|
1092
|
+
locationIds: locationIds,
|
|
1093
|
+
types: types,
|
|
1094
|
+
tags: tags,
|
|
1095
|
+
});
|
|
1096
|
+
paginator.setPaginator({
|
|
1097
|
+
hasNext: data.page.has_next ? true : false,
|
|
1098
|
+
nextId: data.page.next_id,
|
|
1099
|
+
});
|
|
1100
|
+
return data;
|
|
1101
|
+
};
|
|
1102
|
+
paginator.setCallback(callback.bind(this));
|
|
1103
|
+
return paginator;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1054
1106
|
/**
|
|
1055
1107
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
1056
1108
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -260,6 +260,25 @@ declare class Configuration {
|
|
|
260
260
|
* @description: Retrieve ordering stores accessible to staff members. Retrieve the details of all stores access given to the staff member (the selling locations where the sales channel will be utilized for placing orders). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/configuration/getStaffOrderingStores/).
|
|
261
261
|
*/
|
|
262
262
|
getStaffOrderingStores({ pageNo, pageSize, q, requestHeaders }?: ConfigurationPlatformApplicationValidator.GetStaffOrderingStoresParam, { responseHeaders }?: object): Promise<ConfigurationPlatformModel.OrderingStoresResponseSchema>;
|
|
263
|
+
/**
|
|
264
|
+
* @param {Object} arg - Arg object.
|
|
265
|
+
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
266
|
+
* on Fynd Platform
|
|
267
|
+
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
268
|
+
* application (sales channel website) created within a business account
|
|
269
|
+
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
270
|
+
* page. Default value is 10.
|
|
271
|
+
* @param {string} [arg.q] - Store code or name of the ordering store.
|
|
272
|
+
* @returns {Paginator<ConfigurationPlatformModel.OrderingStoresResponseSchema>}
|
|
273
|
+
* @summary: Get staff ordering stores
|
|
274
|
+
* @description: Retrieve ordering stores accessible to staff members. Retrieve the details of all stores access given to the staff member (the selling locations where the sales channel will be utilized for placing orders).
|
|
275
|
+
*/
|
|
276
|
+
getStaffOrderingStoresPaginator({ companyId, applicationId, pageSize, q, }?: {
|
|
277
|
+
companyId: number;
|
|
278
|
+
applicationId: string;
|
|
279
|
+
pageSize?: number;
|
|
280
|
+
q?: string;
|
|
281
|
+
}): Paginator<ConfigurationPlatformModel.OrderingStoresResponseSchema>;
|
|
263
282
|
/**
|
|
264
283
|
* @param {ConfigurationPlatformApplicationValidator.ModifyAppFeaturesParam} arg
|
|
265
284
|
* - Arg object
|
|
@@ -417,3 +436,4 @@ declare class Configuration {
|
|
|
417
436
|
}
|
|
418
437
|
import ConfigurationPlatformApplicationValidator = require("./ConfigurationPlatformApplicationValidator");
|
|
419
438
|
import ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
|
|
439
|
+
import Paginator = require("../../common/Paginator");
|