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webpack://Msdyn365.Commerce.Online/./src/actions/create-counting-list.action.ts?fe16","webpack://Msdyn365.Commerce.Online/./src/actions/get-auto-suggest-suggestions-filtered.action.ts?1a25","webpack://Msdyn365.Commerce.Online/./src/actions/entities/brand-scheme-entity.ts?2274","webpack://Msdyn365.Commerce.Online/./src/actions/get-brand-scheme.action.ts?f140","webpack://Msdyn365.Commerce.Online/./src/actions/get-by-ids-vinhuset.action.ts?21ba","webpack://Msdyn365.Commerce.Online/./src/actions/get-cached-active-prices.action.ts?d35a","webpack://Msdyn365.Commerce.Online/./src/actions/get-counting-list-products.action.ts?d5c7","webpack://Msdyn365.Commerce.Online/./src/actions/get-counting-list.action.ts?32b8","webpack://Msdyn365.Commerce.Online/./src/actions/get-counting-lists.action.ts?5a21","webpack://Msdyn365.Commerce.Online/./src/actions/get-customer-liter-statistics.ts?c70c","webpack://Msdyn365.Commerce.Online/./src/actions/get-customer-liter-statistics.action.ts?615b","webpack://Msdyn365.Commerce.Online/./src/actions/entities/extended-customer.ts?39f4","webpack://Msdyn365.Commerce.Online/./src/actions/get-extended-customer.action.ts?ae2e","webpack://Msdyn365.Commerce.Online/./src/actions/get-inventory-configuration.action.ts?33d1","webpack://Msdyn365.Commerce.Online/./src/actions/get-organization-address.action.ts?ada4","webpack://Msdyn365.Commerce.Online/./src/actions/get-organization-customer.ts?79c2","webpack://Msdyn365.Commerce.Online/./src/actions/entities/retail-configuration-parameter.ts?c004","webpack://Msdyn365.Commerce.Online/./src/actions/get-pickup-dlv-mode.action.ts?0829","webpack://Msdyn365.Commerce.Online/./src/actions/get-product-unit-of-measure-options.action.ts?bc1e","webpack://Msdyn365.Commerce.Online/./src/actions/entities/ship-carrier-address.ts?a906","webpack://Msdyn365.Commerce.Online/./src/actions/get-ship-carrier-address.action.ts?3eaa","webpack://Msdyn365.Commerce.Online/./src/actions/entities/special-delivery-modes.ts?e73b","webpack://Msdyn365.Commerce.Online/./src/actions/get-special-delivery-modes.action.ts?75ea","webpack://Msdyn365.Commerce.Online/./src/actions/update-calc-cart-lines.action.ts?a07a","webpack://Msdyn365.Commerce.Online/./src/actions/update-counting-list-lines.action.ts?d102","webpack://Msdyn365.Commerce.Online/./src/actions/update-counting-list.action.ts?66ec","webpack://Msdyn365.Commerce.Online/./src/actions/entities/validate-alcohol-license.ts?763b","webpack://Msdyn365.Commerce.Online/./src/actions/validate-alcohol-license.action.ts?c46b","webpack://Msdyn365.Commerce.Online/./src/shared-utils/attributes/locale/locale.ts?bf3e","webpack://Msdyn365.Commerce.Online/./src/shared-utils/refiner-utils.alcohol.ts?83dc","webpack://Msdyn365.Commerce.Online/./src/shared-utils/refiner-utils.ts?1ea9","webpack://Msdyn365.Commerce.Online/./lib/__local__/module-registration.js?8a42","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport { AsyncResult, DataServiceQuery, IContext, IDataServiceRequest, callActionOrExecute } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport function createAddCountingListLineInput(productListId: string, countingListLine: Entities.ProductListLine): IDataServiceRequest {\r\n const query = new DataServiceQuery(\"VinhusetProductLists\", \"VinhusetProductList\");\r\n return query.createDataServiceRequestForOperation('AddCountingListLine', true, EntityClasses.ProductListLineClass, 'false', { bypassCache: 'get', returnEntity: 'Entities.ProductListLine' }, { productListId: productListId, countingListLine: countingListLine });\r\n}\r\n\r\nexport function addCountingListLineAsync(context: IContext, productListId: string, countingListLine: Entities.ProductListLine): AsyncResult {\r\n const request = createAddCountingListLineInput(productListId, countingListLine);\r\n return callActionOrExecute(request, context.callerContext);\r\n}","import { AsyncResult, DataServiceQuery, IContext, IDataServiceRequest, callActionOrExecute } from '@msdyn365-commerce/retail-proxy';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport function createCreateCountingListInput(\r\n fromDate: Date | undefined,\r\n toDate: Date | undefined,\r\n productListIds: string[],\r\n productList: Entities.ProductList\r\n): IDataServiceRequest {\r\n const query = new DataServiceQuery('VinhusetProductLists', 'VinhusetProductList');\r\n return query.createDataServiceRequestForOperation(\r\n 'CreateCountingList',\r\n true,\r\n EntityClasses.ProductListClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'Entities.ProductList' },\r\n { fromDate: fromDate || null, toDate: toDate || null, productListIds: productListIds, productList: productList }\r\n );\r\n}\r\n\r\nexport function createCountingListAsync(\r\n context: IContext,\r\n fromDate: Date | undefined,\r\n toDate: Date | undefined,\r\n productListIds: string[],\r\n productList: Entities.ProductList\r\n): AsyncResult {\r\n const request = createCreateCountingListInput(fromDate, toDate, productListIds, productList);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport { Autosuggestions } from '@msdyn365-commerce/commerce-entities';\r\nimport {\r\n CacheType,\r\n createObservableDataAction,\r\n getCatalogId,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n ICreateActionContext\r\n} from '@msdyn365-commerce/core';\r\nimport { SearchSuggestion, SearchSuggestionCriteria } from '@msdyn365-commerce/retail-proxy';\r\nimport { getSearchSuggestionsAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/StoreOperationsDataActions.g';\r\nimport { generateImageUrl } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { addAllAttributeRefiners, addOrUpdateZeroPriceRefiner } from '../shared-utils/refiner-utils';\r\nimport { addAlcoholRefiner, shouldFilterAlcohol } from '../shared-utils/refiner-utils.alcohol';\r\n\r\nexport enum SuggestionType {\r\n Category = 'ScopedCategory',\r\n Keyword = 'Keyword',\r\n Product = 'Product',\r\n None = 'None'\r\n}\r\n\r\n/**\r\n * Input class for auto suggest search input.\r\n */\r\nexport class AutoSuggestInput implements IActionInput {\r\n public searchQuery?: string;\r\n\r\n public topResultsCount?: number;\r\n\r\n public suggestionType?: string;\r\n\r\n public hitPrefix?: string;\r\n\r\n public hitSuffix?: string;\r\n\r\n public constructor(searchText?: string, top?: number, suggestionType?: string, hitPrefix?: string, hitSuffix?: string) {\r\n this.searchQuery = searchText;\r\n this.topResultsCount = top;\r\n this.suggestionType = suggestionType;\r\n this.hitPrefix = hitPrefix;\r\n this.hitSuffix = hitSuffix;\r\n }\r\n\r\n public getCacheKey = () => 'AutoSuggestSearchSuggestions';\r\n\r\n public getCacheObjectType = () => 'AutoSuggestSearchSuggestions';\r\n\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext) => {\r\n return new AutoSuggestInput();\r\n};\r\n\r\n/**\r\n * Calls the Retail API and returns a auto-suggest suggestions.\r\n * @param input\r\n * @param ctx\r\n */\r\nexport async function getSearchSuggestionsAction(input: AutoSuggestInput, ctx: IActionContext): Promise {\r\n // If no input is provided fail out\r\n if (!input || !input.searchQuery) {\r\n throw new Error('[getSearchSuggestionsAction]No valid Input was provided, failing');\r\n }\r\n\r\n const autosuggest: Autosuggestions = {};\r\n\r\n const autoSuggestPromises = [_getAutoSuggest(input, autosuggest, ctx)];\r\n return Promise.all(autoSuggestPromises).then(() => {\r\n return autosuggest;\r\n });\r\n}\r\n\r\nasync function _getAutoSuggest(input: AutoSuggestInput, autosuggest: Autosuggestions, ctx: IActionContext): Promise {\r\n const catalogId = getCatalogId(ctx.requestContext);\r\n const searchCriteria: SearchSuggestionCriteria = {\r\n ProductSearchCriteria: {\r\n SearchCondition: input.searchQuery && input.searchQuery.length > 0 ? input.searchQuery : '',\r\n Context: {\r\n ChannelId: +ctx.requestContext.apiSettings.channelId,\r\n CatalogId: catalogId\r\n },\r\n Refinement: addOrUpdateZeroPriceRefiner(ctx)\r\n },\r\n HitPrefix: input.hitPrefix,\r\n HitSuffix: input.hitSuffix,\r\n SuggestionType: input.suggestionType\r\n };\r\n\r\n if (shouldFilterAlcohol(ctx)) {\r\n await addAlcoholRefiner(ctx, searchCriteria.ProductSearchCriteria!);\r\n }\r\n\r\n await addAllAttributeRefiners(ctx, searchCriteria.ProductSearchCriteria!);\r\n\r\n const searchSuggestions = await getSearchSuggestionsAsync(\r\n { callerContext: ctx, queryResultSettings: { Paging: { Top: input.topResultsCount } } },\r\n searchCriteria\r\n );\r\n\r\n if (searchSuggestions && searchSuggestions.length > 0) {\r\n // Generate image url\r\n searchSuggestions.map(\r\n (item: SearchSuggestion) =>\r\n (item.ImageUrl = item.ImageUrl ? generateImageUrl(item.ImageUrl, ctx.requestContext.apiSettings) : '')\r\n );\r\n\r\n autosuggest.AllSearchResults = searchSuggestions;\r\n } else {\r\n ctx.telemetry.error(\r\n `[getSearchSuggestionsAction] unable to get availabilites for search with suggestion type ${searchCriteria.SuggestionType}`\r\n );\r\n }\r\n}\r\n\r\nexport const getSearchSuggestionsActionDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/search/get-auto-suggest-suggestions',\r\n action: >getSearchSuggestionsAction,\r\n input: createInput\r\n});\r\n\r\nexport default getSearchSuggestionsActionDataAction;\r\n","import { CommerceProperty, jsonLightReadStringPropertyValue } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport interface IBrandSchemeEntity {\r\n BrandSchemeId: string;\r\n BrandSchemeName?: string;\r\n CanConnectProduct?: number;\r\n CanConnectProductOwner?: number;\r\n FromDate?: Date;\r\n ToDate?: Date;\r\n Sequence?: number;\r\n ImageUrl?: string;\r\n DataAreaId?: string;\r\n RecId?: number;\r\n RecVersion?: number;\r\n ExtensionProperties?: CommerceProperty[];\r\n}\r\n\r\n/**\r\n * BrandSchemeEntity entity class.\r\n */\r\nexport class BrandSchemeEntityExtensionClass implements IBrandSchemeEntity {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BrandSchemeId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BrandSchemeName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CanConnectProduct: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CanConnectProductOwner: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FromDate: Date;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ToDate: Date;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sequence: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ImageUrl: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DataAreaId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecVersion: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BrandSchemeId = odataObject.BrandSchemeId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BrandSchemeName = odataObject.BrandSchemeName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CanConnectProduct = odataObject.CanConnectProduct;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CanConnectProductOwner = odataObject.CanConnectProductOwner;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FromDate = (odataObject.FromDate instanceof Date) ? odataObject.FromDate\r\n : (odataObject.FromDate) ? jsonLightReadStringPropertyValue(odataObject.FromDate, 'Edm.DateTimeOffset', false) : undefined;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ToDate = (odataObject.ToDate instanceof Date) ? odataObject.ToDate\r\n : (odataObject.ToDate) ? jsonLightReadStringPropertyValue(odataObject.ToDate, 'Edm.DateTimeOffset', false) : undefined;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sequence = odataObject.Sequence;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ImageUrl = odataObject.ImageUrl;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DataAreaId = odataObject.DataAreaId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = (odataObject.RecId) ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecVersion = odataObject.RecVersion;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n }\r\n}\r\n","import { IActionContext } from \"@msdyn365-commerce/core\";\r\nimport { callActionOrExecute, DataServiceQuery, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { BrandSchemeEntityExtensionClass, IBrandSchemeEntity } from \"./entities/brand-scheme-entity\";\r\n\r\n// @ts-ignore\r\nfunction brandSchemeQuery(brandSchemeId?: string): DataServiceQuery {\r\n const key = (brandSchemeId) ? { BrandSchemeId: brandSchemeId } : null;\r\n return new DataServiceQuery(\"BrandScheme\", \"BrandSchemeEntity\", BrandSchemeEntityExtensionClass, key);\r\n}\r\n\r\nexport function createGetBrandSchemeByIdInput(brandSchemeId: string): IDataServiceRequest {\r\n const query = brandSchemeQuery();\r\n return query.createDataServiceRequestForOperation('GetBrandSchemeById', false, BrandSchemeEntityExtensionClass, 'false', { bypassCache: 'none', returnEntity: 'DataServiceEntities.IBrandSchemeEntity' }, { brandSchemeId: brandSchemeId });\r\n}\r\n\r\nexport async function getBrandSchemeByIdAsync(context: IActionContext, brandSchemeId: string): Promise {\r\n const request = createGetBrandSchemeByIdInput(brandSchemeId);\r\n const result = await callActionOrExecute(request, context);\r\n return result;\r\n}\r\n","import { IActionContext } from '@msdyn365-commerce/core';\r\nimport { generateProductImageUrl } from '@msdyn365-commerce-modules/retail-actions';\r\nimport {\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Types from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nfunction getByIdsVinhusetQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getByIdsVinhusetInput(\r\n queryResultSettings: IQueryResultSettings,\r\n productIds: number[],\r\n channelId: number,\r\n inventLocationId: string | null\r\n): IDataServiceRequest {\r\n const query = getByIdsVinhusetQuery().resultSettings(queryResultSettings);\r\n const request = query.createDataServiceRequestForOperation(\r\n 'GetByIdsVinhuset',\r\n true, Entities.SimpleProductClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'Entities.SimpleProductClass' },\r\n {\r\n productIds: productIds,\r\n channelId: channelId,\r\n inventLocationId: inventLocationId\r\n }\r\n );\r\n return request;\r\n}\r\n\r\nexport async function getByIdsVinhusetAsync(context: IContext, productIds: number[], channelId: number, inventLocationId: string | null): Promise {\r\n const request = getByIdsVinhusetInput(context.queryResultSettings || {}, productIds, channelId, inventLocationId);\r\n const products = await callActionOrExecute(request, context.callerContext);\r\n\r\n // Prepend the base image url to each image\r\n products.forEach(product => {\r\n try {\r\n const newImageUrl = generateProductImageUrl(product, context.callerContext.requestContext.apiSettings as any);\r\n\r\n if (newImageUrl) {\r\n product.PrimaryImageUrl = newImageUrl;\r\n }\r\n } catch {\r\n (context.callerContext as IActionContext).trace('[getByIdsVinhusetAsync] Unable to update ImageURL for Product');\r\n }\r\n });\r\n\r\n return products;\r\n}","import { callActionOrExecute, DataServiceQuery, IContext, IDataServiceRequest, IQueryResultSettings } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Types from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nfunction getCachedActivePricesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getCachedActivePricesInput(\r\n queryResultSettings: IQueryResultSettings,\r\n projectDomain: Types.ProjectionDomain,\r\n productIds: number[],\r\n activeDate: Date,\r\n customerId: string | null,\r\n includeSimpleDiscountsInContextualPrice: boolean,\r\n includeVariantPriceRange: boolean,\r\n includeAttainablePricesAndDiscounts: boolean): IDataServiceRequest {\r\n const query = getCachedActivePricesQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCachedActivePrices',\r\n true,\r\n Entities.ProductPriceClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'Entities.ProductPriceClass' },\r\n {\r\n projectDomain: projectDomain,\r\n productIds: productIds,\r\n activeDate: activeDate,\r\n customerId: customerId,\r\n includeSimpleDiscountsInContextualPrice: includeSimpleDiscountsInContextualPrice,\r\n includeVariantPriceRange: includeVariantPriceRange,\r\n includeAttainablePricesAndDiscounts: includeAttainablePricesAndDiscounts\r\n }\r\n );\r\n}\r\n\r\n/**\r\n * @deprecated Price caching is no longer in use.\r\n */\r\nexport async function getCachedActivePricesAsync(\r\n context: IContext,\r\n projectDomain: Types.ProjectionDomain,\r\n productIds: number[],\r\n activeDate: Date,\r\n customerId: string | null,\r\n includeSimpleDiscountsInContextualPrice: boolean,\r\n includeVariantPriceRange: boolean,\r\n includeAttainablePricesAndDiscounts: boolean): Promise {\r\n const request = getCachedActivePricesInput(\r\n context.queryResultSettings || {},\r\n projectDomain,\r\n productIds,\r\n activeDate,\r\n customerId,\r\n includeSimpleDiscountsInContextualPrice,\r\n includeVariantPriceRange,\r\n includeAttainablePricesAndDiscounts);\r\n const result = await callActionOrExecute(request, context.callerContext);\r\n return result;\r\n}","import { AsyncResult, DataServiceQuery, IContext, IDataServiceRequest, IQueryResultSettings, callActionOrExecute } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { SimpleProductClass } from \"@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g\";\r\nimport { SimpleProduct } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nexport function getCountingListProductsInput(\r\n queryResultSettings: IQueryResultSettings,\r\n channelId: number,\r\n productIds: number[],\r\n inventLocationId: string | null | undefined,\r\n catalogId: number\r\n): IDataServiceRequest {\r\n const query = new DataServiceQuery();\r\n query.resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCountingListProducts',\r\n true, SimpleProductClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'SimpleProduct' },\r\n {\r\n channelId: channelId,\r\n inventLocationId: inventLocationId,\r\n productIds: productIds,\r\n catalogId: catalogId\r\n }\r\n );\r\n}\r\n\r\nexport function getCountingListProductsAsync(\r\n context: IContext,\r\n channelId: number,\r\n productIds: number[],\r\n inventLocationId: string | null | undefined,\r\n catalogId: number\r\n): AsyncResult {\r\n const request = getCountingListProductsInput(\r\n context.queryResultSettings || {}, channelId, productIds, inventLocationId, catalogId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}","import { createObservableDataAction, IAction, IActionContext } from '@msdyn365-commerce/core';\r\nimport {\r\n AsyncResult,\r\n CacheType,\r\n DataServiceQuery,\r\n IActionInput,\r\n IContext,\r\n IDataServiceRequest,\r\n callActionOrExecute\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport class GetCountingListInput implements IActionInput {\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => 'get-counting-list';\r\n public getCacheObjectType = () => 'counting-list';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createInput = (): GetCountingListInput => {\r\n return new GetCountingListInput();\r\n};\r\n\r\nexport function createGetCountingListInput(productListId: string): IDataServiceRequest {\r\n const query = new DataServiceQuery('VinhusetProductLists', 'VinhusetProductList');\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCountingList',\r\n true,\r\n EntityClasses.ProductListClass,\r\n 'false',\r\n { bypassCache: 'none', returnEntity: 'Entities.ProductList' },\r\n { productListId: productListId }\r\n );\r\n}\r\n\r\nexport function getCountingListAsync(context: IContext, productListId: string): AsyncResult {\r\n const request = createGetCountingListInput(productListId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport async function getCountingListAsyncAction(input: GetCountingListInput, context: IActionContext): Promise {\r\n if (!context.requestContext.user.isAuthenticated) {\r\n throw new Error('Unable to get counting list. User is not authenticated.');\r\n }\r\n\r\n if (!context.requestContext.query?.id) {\r\n throw new Error('Failed to get counting list id from the query.');\r\n }\r\n\r\n const countingList = await getCountingListAsync({ callerContext: context }, context.requestContext.query.id);\r\n\r\n return countingList;\r\n}\r\n\r\nexport const getCountingList = createObservableDataAction({\r\n id: 'vinhuset/get-counting-list',\r\n action: >getCountingListAsyncAction,\r\n input: createInput\r\n});\r\n\r\nexport default getCountingList;\r\n","import { createObservableDataAction, IAction, IActionContext } from '@msdyn365-commerce/core';\r\nimport {\r\n AsyncResult,\r\n CacheType,\r\n DataServiceQuery,\r\n IActionInput,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings,\r\n callActionOrExecute\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport class GetCountingListsInput implements IActionInput {\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => 'get-counting-lists';\r\n public getCacheObjectType = () => 'counting-lists';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createInput = (): GetCountingListsInput => {\r\n return new GetCountingListsInput();\r\n};\r\n\r\nexport function createGetCountingListsInput(\r\n queryResultSettings: IQueryResultSettings,\r\n customerId: string,\r\n countingListId: string\r\n): IDataServiceRequest {\r\n const query = new DataServiceQuery('VinhusetProductLists', 'VinhusetProductList');\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCountingLists',\r\n true,\r\n EntityClasses.ProductListClass,\r\n 'true',\r\n {\r\n bypassCache: 'none',\r\n returnEntity: 'Entities.ProductList'\r\n },\r\n {\r\n customerId,\r\n countingListId\r\n }\r\n );\r\n}\r\n\r\nexport function getCountingListsAsync(context: IContext, customerId: string, countingListId?: string): AsyncResult {\r\n const request = createGetCountingListsInput(context.queryResultSettings || {}, customerId, countingListId || '');\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport async function getCountingListsAsyncAction(input: GetCountingListsInput, context: IActionContext): Promise {\r\n if (!context.requestContext.user.isAuthenticated) {\r\n throw new Error('Unable to get counting lists. User is not authenticated.');\r\n }\r\n\r\n const countingLists = await getCountingListsAsync(\r\n { callerContext: context },\r\n context.requestContext.user.customerAccountNumber || '',\r\n ''\r\n );\r\n\r\n return countingLists;\r\n}\r\n\r\nexport const getCountingLists = createObservableDataAction({\r\n id: 'vinhuset/get-counting-lists',\r\n action: >getCountingListsAsyncAction,\r\n input: createInput\r\n});\r\n\r\nexport default getCountingLists;\r\n","import {\r\n AsyncResult,\r\n callActionOrExecute,\r\n CommerceProperty,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\n/**\r\n * CustomerLiterStatistics entity interface.\r\n */\r\nexport interface ICustomerLiterStatistics {\r\n RecId?: number;\r\n InvoiceAccount?: string;\r\n Year?: number;\r\n InvoiceAmount?: number;\r\n Volume?: number;\r\n ItemGroupDisplayOrderName?: string;\r\n VolumeUnit?: string;\r\n ExtensionProperties?: CommerceProperty[];\r\n}\r\n\r\nexport class CustomerLiterStatisticsExtensionClass implements ICustomerLiterStatistics {\r\n public RecId: number;\r\n public InvoiceAccount: string;\r\n public Year: number;\r\n public InvoiceAmount: number;\r\n public Volume: number;\r\n public ItemGroupDisplayOrderName: string;\r\n public VolumeUnit: string;\r\n public ExtensionProperties?: CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n\r\n this.RecId = odataObject.RecId ? parseInt(odataObject.RecId, 10) : 0;\r\n this.InvoiceAccount = odataObject.InvoiceAccount;\r\n this.Year = odataObject.Year;\r\n this.InvoiceAmount = odataObject.InvoiceAmount ? parseFloat(odataObject.InvoiceAmount) : 0;\r\n this.Volume = odataObject.Volume ? parseFloat(odataObject.Volume) : 0;\r\n this.ItemGroupDisplayOrderName = odataObject.ItemGroupDisplayOrderName;\r\n this.VolumeUnit = odataObject.VolumeUnit;\r\n\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nfunction getCustomerLiterStatisticsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getCustomerLiterStatisticsInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = getCustomerLiterStatisticsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCustomerLiterStatistics',\r\n true,\r\n CustomerLiterStatisticsExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'ICustomerLiterStatistics' }\r\n );\r\n}\r\n\r\nexport function getCustomerLiterStatisticsAsync(context: IContext): AsyncResult {\r\n const request = getCustomerLiterStatisticsInput(context.queryResultSettings || {});\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as Msdyn365 from '@msdyn365-commerce/core';\nimport { getCustomerLiterStatisticsAsync, ICustomerLiterStatistics } from './get-customer-liter-statistics';\n\n/**\n * GetCustomerLiterStatistics Input Action\n */\nexport class GetCustomerLiterStatisticsInput implements Msdyn365.IActionInput {\n constructor() {}\n\n public getCacheKey = () => `get-customer-liter-statistics`;\n public getCacheObjectType = () => 'CustomerLiterStatistics';\n public dataCacheType = (): Msdyn365.CacheType => 'none'; // Change to 'request'\n}\n\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\n return new GetCustomerLiterStatisticsInput();\n};\n\nasync function action(input: GetCustomerLiterStatisticsInput, ctx: Msdyn365.IActionContext): Promise {\n if (!ctx.requestContext.user.isAuthenticated) {\n return [];\n }\n\n if (ctx.requestContext.query?.fakeData === 'true') {\n return [\n {\n RecId: 0,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 1\",\n Year: 2019,\n InvoiceAmount: 1555,\n Volume: 449,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 1,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 2\",\n Year: 2019,\n InvoiceAmount: 1190,\n Volume: 141,\n VolumeUnit: \"cl\"\n },\n {\n RecId: 2,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 3\",\n Year: 2019,\n InvoiceAmount: 1992,\n Volume: 370,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 3,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 1\",\n Year: 2020,\n InvoiceAmount: 1217,\n Volume: 478,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 4,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 2\",\n Year: 2020,\n InvoiceAmount: 1997,\n Volume: 293,\n VolumeUnit: \"cl\"\n },\n {\n RecId: 5,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 3\",\n Year: 2020,\n InvoiceAmount: 1012,\n Volume: 455,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 6,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 1\",\n Year: 2021,\n InvoiceAmount: 1846,\n Volume: 89,\n VolumeUnit: \"cl\"\n },\n {\n RecId: 7,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 2\",\n Year: 2021,\n InvoiceAmount: 1948,\n Volume: 288,\n VolumeUnit: \"cl\"\n },\n {\n RecId: 8,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 3\",\n Year: 2021,\n InvoiceAmount: 1041,\n Volume: 142,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 9,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 1\",\n Year: 2022,\n InvoiceAmount: 578,\n Volume: 244,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 10,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 2\",\n Year: 2022,\n InvoiceAmount: 1175,\n Volume: 96,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 11,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 3\",\n Year: 2022,\n InvoiceAmount: 1020,\n Volume: 494,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 12,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 1\",\n Year: 2023,\n InvoiceAmount: 1450,\n Volume: 417,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 13,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 2\",\n Year: 2023,\n InvoiceAmount: 1989,\n Volume: 165,\n VolumeUnit: \"ltr\"\n },\n {\n RecId: 14,\n InvoiceAccount: \"12345\",\n ItemGroupDisplayOrderName: \"Kategori 3\",\n Year: 2023,\n InvoiceAmount: 1873,\n Volume: 490,\n VolumeUnit: \"ltr\"\n }\n ];\n }\n\n return getCustomerLiterStatisticsAsync({ callerContext: ctx });\n}\n\nexport default Msdyn365.createObservableDataAction({\n action: >action,\n id: 'vinhuset/get-customer-liter-statistics',\n input: createInput\n});\n","import * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\n/**\r\n * ExtendedCustomer entity interface.\r\n */\r\nexport interface IExtendedCustomer {\r\n AccountNum?: string;\r\n SalesCalendarId?: string;\r\n OrderEntryDeadlineGroupId?: string;\r\n PurchOrderFormNumFixed?: string;\r\n CustomerRefFixed?: string;\r\n DataAreaId?: string;\r\n RecId?: number;\r\n RecVersion?: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ExtendedCustomer entity class.\r\n */\r\nexport class ExtendedCustomerExtensionClass implements IExtendedCustomer {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AccountNum: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SalesCalendarId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OrderEntryDeadlineGroupId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PurchOrderFormNumFixed: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerRefFixed: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DataAreaId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecVersion: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AccountNum = odataObject.AccountNum;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SalesCalendarId = odataObject.SalesCalendarId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrderEntryDeadlineGroupId = odataObject.OrderEntryDeadlineGroupId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PurchOrderFormNumFixed = odataObject.PurchOrderFormNumFixed;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CustomerRefFixed = odataObject.CustomerRefFixed;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DataAreaId = odataObject.DataAreaId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = (odataObject.RecId) ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecVersion = odataObject.RecVersion;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] =\r\n new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","import { callActionOrExecute, DataServiceQuery, IContext, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { ExtendedCustomerExtensionClass, IExtendedCustomer } from \"./entities/extended-customer\";\r\n\r\nfunction getExtendedCustomerQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getExtendedCustomerInput(): IDataServiceRequest {\r\n const query = getExtendedCustomerQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetExtendedCustomer',\r\n false,\r\n ExtendedCustomerExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'IExtendedCustomer' },\r\n { }\r\n );\r\n}\r\n\r\nexport async function getExtendedCustomerAsync(context: IContext): Promise {\r\n const request = getExtendedCustomerInput();\r\n const result = await callActionOrExecute(request, context.callerContext);\r\n return result;\r\n}","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { ChannelInventoryConfiguration } from '@msdyn365-commerce/retail-proxy';\r\nimport { getInventoryConfigurationAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/StoreOperationsDataActions.g';\r\n\r\n/**\r\n * GetInventoryConfiguration Input Action\r\n */\r\nexport class GetInventoryConfigurationInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n\r\n public getCacheKey = () => '';\r\n public getCacheObjectType = () => 'ChannelInventoryConfiguration';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetInventoryConfigurationInput();\r\n};\r\n\r\nasync function action(input: GetInventoryConfigurationInput, ctx: Msdyn365.IActionContext): Promise {\r\n const channelInventoryConfiguration = getInventoryConfigurationAsync({ callerContext: ctx });\r\n return channelInventoryConfiguration;\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >>action,\r\n id: 'src/actions/get-inventory-configuration',\r\n input: createInput\r\n});\r\n","import { createObservableDataAction, IActionContext, IAction, ICreateActionContext, IGeneric, IAny, ICommerceApiSettings } from '@msdyn365-commerce/core';\r\nimport { CacheType, callActionOrExecute, Customer, Address, DataServiceQuery, IActionInput, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport class GetOrganizationCustomerAddressInput implements IActionInput {\r\n private readonly user: string | undefined;\r\n private readonly query: DataServiceQuery;\r\n\r\n constructor(apiSettings: ICommerceApiSettings, user: string) {\r\n this.user = user;\r\n\r\n this.query = new DataServiceQuery();\r\n }\r\n\r\n public getDataServiceRequest = (): IDataServiceRequest => {\r\n return this.query.createDataServiceRequestForOperation(\r\n 'GetOrganizationCustomer',\r\n false,\r\n Entities.CustomerClass,\r\n 'false',\r\n {\r\n bypassCache: 'get',\r\n returnEntity: 'Entities.CustomerClass'\r\n },\r\n {}\r\n );\r\n };\r\n\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => `OrganizationCustomerAddress-${this.user}`;\r\n public getCacheObjectType = () => 'OrganizationCustomer';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createGetAddressInput = (inputData: ICreateActionContext>): GetOrganizationCustomerAddressInput => {\r\n const { user } = inputData.requestContext;\r\n return new GetOrganizationCustomerAddressInput(inputData.requestContext.apiSettings, user.customerAccountNumber ?? \"\");\r\n};\r\n\r\nexport const getOrganizationCustomerAddressAction = async (input: GetOrganizationCustomerAddressInput, ctx: IActionContext): Promise => {\r\n if (!ctx.requestContext.user.isAuthenticated) {\r\n return [];\r\n }\r\n var customer = await callActionOrExecute(input.getDataServiceRequest(), ctx);\r\n return customer.Addresses || [];\r\n};\r\n\r\nexport const getOrganizationCustomerAddress = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/retail-actions/get-address',\r\n action: >getOrganizationCustomerAddressAction,\r\n input: <(args: ICreateActionContext) => IActionInput>createGetAddressInput\r\n});\r\n\r\nexport default getOrganizationCustomerAddress;\r\n","import { createObservableDataAction, IActionContext, IAction, ICreateActionContext, IGeneric, IAny, ICommerceApiSettings } from '@msdyn365-commerce/core';\r\nimport { CacheType, callActionOrExecute, Customer, DataServiceQuery, IActionInput, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport class GetOrganizationCustomerInput implements IActionInput {\r\n private readonly user: string | undefined;\r\n private readonly query: DataServiceQuery;\r\n\r\n constructor(apiSettings: ICommerceApiSettings, user: string) {\r\n this.user = user;\r\n\r\n this.query = new DataServiceQuery();\r\n }\r\n\r\n public getDataServiceRequest = (): IDataServiceRequest => {\r\n return this.query.createDataServiceRequestForOperation(\r\n 'GetOrganizationCustomer',\r\n false,\r\n Entities.CustomerClass,\r\n 'false',\r\n {\r\n bypassCache: 'get',\r\n returnEntity: 'Entities.CustomerClass'\r\n },\r\n {}\r\n );\r\n };\r\n\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => `OrganizationCustomer-${this.user}`;\r\n public getCacheObjectType = () => 'OrganizationCustomer';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): GetOrganizationCustomerInput => {\r\n const { user } = inputData.requestContext;\r\n return new GetOrganizationCustomerInput(inputData.requestContext.apiSettings, user.customerAccountNumber ?? \"\");\r\n};\r\n\r\nexport const getOrganizationCustomerAction = async (input: GetOrganizationCustomerInput, ctx: IActionContext): Promise => {\r\n if (!ctx.requestContext.user.isAuthenticated) {\r\n return {};\r\n }\r\n var customer = await callActionOrExecute(input.getDataServiceRequest(), ctx);\r\n return customer;\r\n};\r\n\r\nexport const getOrganizationCustomer = createObservableDataAction({\r\n id: 'src/actions/get-organization-customer',\r\n action: >getOrganizationCustomerAction,\r\n input: createInput\r\n});\r\n\r\nexport default getOrganizationCustomer;\r\n","import { CommerceProperty } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport interface IRetailConfigurationParameter {\r\n RecId?: number;\r\n Name?: string;\r\n Value?: string;\r\n}\r\n\r\nexport class RetailConfigurationParameterExtensionClass implements IRetailConfigurationParameter {\r\n public Name?: string;\r\n public Value?: string;\r\n public RecId?: number;\r\n\r\n public ExtensionProperties: CommerceProperty[];\r\n\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n\r\n this.Name = odataObject.Name;\r\n this.Value = odataObject.Value;\r\n this.RecId = (odataObject.RecId) ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] =\r\n new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}","import { IActionContext, createObservableDataAction, IAction, ICommerceApiSettings, IGeneric, IAny, ICreateActionContext } from \"@msdyn365-commerce/core\";\r\nimport { CacheType, callActionOrExecute, DataServiceQuery, IActionInput, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { RetailConfigurationParameterExtensionClass, IRetailConfigurationParameter } from \"./entities/retail-configuration-parameter\";\r\n\r\nexport class GetPickupDlvModeInput implements IActionInput {\r\n private readonly query: DataServiceQuery;\r\n\r\n constructor(apiSettings: ICommerceApiSettings) {\r\n this.query = new DataServiceQuery();\r\n }\r\n\r\n public getDataServiceRequest = (): IDataServiceRequest => {\r\n return this.query.createDataServiceRequestForOperation(\r\n 'GetPickupDlvMode',\r\n false,\r\n RetailConfigurationParameterExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'RetailConfigurationParameterExtensionClass' },\r\n {}\r\n );\r\n };\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => `PickupDlvMode`;\r\n public getCacheObjectType = () => 'PickupDlvMode';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): GetPickupDlvModeInput => {\r\n return new GetPickupDlvModeInput(inputData.requestContext.apiSettings);\r\n};\r\n\r\nexport const getPickupDlvModeAction = async (input: any, ctx: IActionContext): Promise => {\r\n const result = await callActionOrExecute(input.getDataServiceRequest(), ctx);\r\n return result;\r\n};\r\n\r\nexport const getPickupDlvMode = createObservableDataAction({\r\n id: 'src/actions/get-pickup-dlv-mode',\r\n action: >getPickupDlvModeAction,\r\n input: createInput\r\n});\r\n\r\nexport default getPickupDlvMode;","import { callActionOrExecute, DataServiceQuery, IContext, IDataServiceRequest, IQueryResultSettings } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Types from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nfunction getProductUnitOfMeasureOptionsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\n\r\nexport function getProductUnitOfMeasureOptionsInput(\r\n queryResultSettings: IQueryResultSettings, productIds:\r\n number[]\r\n): IDataServiceRequest {\r\n const query = getProductUnitOfMeasureOptionsQuery().resultSettings(queryResultSettings);\r\n query.top(10000);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetProductUnitOfMeasureOptions',\r\n true, Entities.UnitOfMeasureConversionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'Entities.UnitOfMeasureConversion' },\r\n {\r\n productIds: productIds\r\n }\r\n );\r\n}\r\n\r\nexport async function getProductUnitOfMeasureOptionsAsync(context: IContext, productIds: number[]): Promise {\r\n const request = getProductUnitOfMeasureOptionsInput(\r\n context.queryResultSettings || {}, productIds);\r\n const conversions = await callActionOrExecute(request, context.callerContext);\r\n return conversions;\r\n}","import { CommerceProperty } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport interface IShipCarrierAddress {\r\n CustAccount?: string;\r\n DlvModeId?: string;\r\n DlvTermId?: string;\r\n Location?: number;\r\n ShipCarrierAccount?: string;\r\n ShipCarrierAccountCode?: string;\r\n ShipCarrierBlindShipment?: number;\r\n ShipCarrierId?: string;\r\n ShipCarrierResidentialDest?: number;\r\n DataAreaId?: string;\r\n RecId?: number;\r\n RecVersion?: number;\r\n ExtensionProperties?: CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ShipCarrierAddress entity class.\r\n */\r\nexport class ShipCarrierAddressExtensionClass implements IShipCarrierAddress {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustAccount: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DlvModeId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DlvTermId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Location: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShipCarrierAccount: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShipCarrierAccountCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShipCarrierBlindShipment: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShipCarrierId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShipCarrierResidentialDest: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DataAreaId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecVersion: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CustAccount = odataObject.CustAccount;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DlvModeId = odataObject.DlvModeId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DlvTermId = odataObject.DlvTermId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Location = (odataObject.Location) ? parseInt(odataObject.Location, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShipCarrierAccount = odataObject.ShipCarrierAccount;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShipCarrierAccountCode = odataObject.ShipCarrierAccountCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShipCarrierBlindShipment = odataObject.ShipCarrierBlindShipment;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShipCarrierId = odataObject.ShipCarrierId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShipCarrierResidentialDest = odataObject.ShipCarrierResidentialDest;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DataAreaId = odataObject.DataAreaId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = (odataObject.RecId) ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecVersion = odataObject.RecVersion;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] =\r\n new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n }\r\n}\r\n","import { IActionContext } from \"@msdyn365-commerce/core\";\r\nimport { callActionOrExecute, DataServiceQuery, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { ShipCarrierAddressExtensionClass, IShipCarrierAddress } from \"./entities/ship-carrier-address\";\r\n\r\nfunction shipCarrierAddressQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getShipCarrierAddressInput(location: number): IDataServiceRequest {\r\n const query = shipCarrierAddressQuery();\r\n return query.createDataServiceRequestForOperation('GetShipCarrierAddress',\r\n false,\r\n ShipCarrierAddressExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'IShipCarrierAddress' },\r\n {\r\n location: location\r\n });\r\n}\r\n\r\nexport async function getShipCarrierAddressAsync(context: IActionContext, location: number): Promise {\r\n const request = getShipCarrierAddressInput(location);\r\n const result = await callActionOrExecute(request, context);\r\n return result;\r\n}\r\n","/**\r\n* SpecialDeliveryModes entity interface.\r\n*/\r\nexport interface ISpecialDeliveryModes {\r\n PickupDlvMode?: string;\r\n ExpressDlvMode?: string;\r\n CourierDlvMode?: string;\r\n}\r\n\r\n/**\r\n * SpecialDeliveryModes entity class.\r\n */\r\nexport class SpecialDeliveryModesExtensionClass implements ISpecialDeliveryModes {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PickupDlvMode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExpressDlvMode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CourierDlvMode: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PickupDlvMode = odataObject.PickupDlvMode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExpressDlvMode = odataObject.ExpressDlvMode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CourierDlvMode = odataObject.CourierDlvMode;\r\n }\r\n}","import {\r\n IActionContext,\r\n createObservableDataAction,\r\n IAction,\r\n ICommerceApiSettings,\r\n IGeneric,\r\n IAny,\r\n ICreateActionContext\r\n} from \"@msdyn365-commerce/core\";\r\nimport {\r\n CacheType,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IActionInput, IDataServiceRequest\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport { ISpecialDeliveryModes, SpecialDeliveryModesExtensionClass } from './entities/special-delivery-modes';\r\n\r\nexport class GetSpecialDeliveryModesInput implements IActionInput {\r\n private readonly query: DataServiceQuery;\r\n\r\n constructor(apiSettings: ICommerceApiSettings) {\r\n this.query = new DataServiceQuery();\r\n }\r\n\r\n public getDataServiceRequest = (): IDataServiceRequest => {\r\n return this.query.createDataServiceRequestForOperation(\r\n 'GetSpecialDeliveryModes',\r\n false,\r\n SpecialDeliveryModesExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'ISpecialDeliveryModes' },\r\n {}\r\n );\r\n };\r\n\r\n public shouldCacheOutput = () => false;\r\n public getCacheKey = () => 'SpecialDeliveryModes';\r\n public getCacheObjectType = () => 'SpecialDeliveryModes';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nfunction createInput(inputData: ICreateActionContext>): GetSpecialDeliveryModesInput {\r\n return new GetSpecialDeliveryModesInput(inputData.requestContext.apiSettings);\r\n}\r\n\r\nexport function getSpecialDeliveryModesAsync(input: GetSpecialDeliveryModesInput, context: IActionContext): Promise {\r\n return callActionOrExecute(input.getDataServiceRequest(), context);\r\n}\r\n\r\nexport const getSpecialDeliveryModes = createObservableDataAction({\r\n id: 'get-special-delivery-modes',\r\n action: >getSpecialDeliveryModesAsync,\r\n input: createInput\r\n});\r\n\r\nexport default getSpecialDeliveryModes;\r\n","import { AsyncResult, Cart, DataServiceQuery, IContext, IDataServiceRequest, callActionOrExecute } from '@msdyn365-commerce/retail-proxy';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nfunction updateCalcCartLinesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\n/**\r\n * An enumeration used to indicate which combination of calculations should be\r\n * performed when returning the cart.\r\n */\r\nexport enum CalculationModes {\r\n /**\r\n * No calculations are performed.\r\n * This value must be checked directly and not used with HasFlags method.\r\n */\r\n None = 0,\r\n /**\r\n * Prices are calculated.\r\n */\r\n Prices = 1,\r\n /**\r\n * Discounts are calculated.\r\n */\r\n Discounts = 2,\r\n /**\r\n * Charges are calculated.\r\n */\r\n Charges = 4,\r\n /**\r\n * Taxes are calculated.\r\n */\r\n Taxes = 8,\r\n /**\r\n * Totals are calculated and rounded.\r\n */\r\n Totals = 16, // 0x00000010\r\n /**\r\n * Deposit and prepayments are calculated.\r\n */\r\n Deposit = 32, // 0x00000020\r\n /**\r\n * Amount due (balance due) is calculated.\r\n */\r\n AmountDue = 64, // 0x00000040\r\n /**\r\n * All calculations are performed.\r\n */\r\n All = 127 // 0x0000007F\r\n}\r\n\r\nexport function updateCalcCartLinesInput(\r\n id: string,\r\n cartLines: Entities.CartLine[],\r\n calculationModes: CalculationModes,\r\n cartVersion: number | null\r\n): IDataServiceRequest {\r\n const query = updateCalcCartLinesQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'UpdateCalcCartLines',\r\n true,\r\n 'CartClass',\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'Cart' },\r\n {\r\n id: id,\r\n cartLines: cartLines,\r\n calculationModes: calculationModes,\r\n cartVersion: cartVersion\r\n }\r\n );\r\n}\r\n\r\nexport function updateCalcCartLinesAsync(\r\n context: IContext,\r\n id: string,\r\n cartLines: Entities.CartLine[],\r\n calculationModes: CalculationModes,\r\n cartVersion: number | null\r\n): AsyncResult {\r\n const request = updateCalcCartLinesInput(id, cartLines, calculationModes, cartVersion);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","import { AsyncResult, DataServiceQuery, IContext, IDataServiceRequest, IQueryResultSettings, callActionOrExecute } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport function createUpdateCountingListLinesInput(queryResultSettings: IQueryResultSettings, productListLines: Entities.ProductListLine[]): IDataServiceRequest {\r\n const query = new DataServiceQuery(\"VinhusetProductLists\", \"VinhusetProductList\");\r\n return query.createDataServiceRequestForOperation('UpdateCountingListLines', true, EntityClasses.ProductListLineClass, 'true', { bypassCache: 'get', returnEntity: 'Entities.ProductListLine' }, { productListLines: productListLines });\r\n}\r\n\r\nexport function updateCountingListLinesAsync(context: IContext, productListLines: Entities.ProductListLine[]): AsyncResult {\r\n const request = createUpdateCountingListLinesInput(\r\n context.queryResultSettings || {}, productListLines);\r\n return callActionOrExecute(request, context.callerContext);\r\n}","import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport { AsyncResult, DataServiceQuery, IContext, IDataServiceRequest, callActionOrExecute } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport function createUpdateCountingListInput(productList: Entities.ProductList): IDataServiceRequest {\r\n const query = new DataServiceQuery(\"VinhusetProductLists\", \"VinhusetProductList\");\r\n return query.createDataServiceRequestForOperation('UpdateCountingList', true, EntityClasses.ProductListClass, 'false', { bypassCache: 'get', returnEntity: 'Entities.ProductList' }, { productList: productList });\r\n}\r\n\r\n\r\nexport function updateCountingListAsync(context: IContext, productList: Entities.ProductList): AsyncResult {\r\n const request = createUpdateCountingListInput(productList);\r\n return callActionOrExecute(request, context.callerContext);\r\n}","import * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\n/**\r\n * AlcoholLicenseValidationDetails entity interface.\r\n */\r\nexport interface IAlcoholLicenseValidationDetails {\r\n Message?: string;\r\n LicenseNeeded?: number;\r\n ProductId?: number;\r\n}\r\n\r\n/**\r\n * AlcoholValidationCriteria entity interface.\r\n */\r\nexport interface IAlcoholValidationCriteria {\r\n ProductIds: number[];\r\n CatalogId: number;\r\n}\r\n\r\n/**\r\n * ValidateAlcoholLicenseResult entity interface.\r\n */\r\nexport interface IValidateAlcoholLicenseResult {\r\n ValidationResult?: boolean;\r\n CustomerLicense?: number;\r\n Details?: IAlcoholLicenseValidationDetails[];\r\n}\r\n\r\n/**\r\n * AlcoholValidationCriteria entity class.\r\n */\r\nexport class AlcoholValidationCriteriaExtensionClass implements IAlcoholValidationCriteria {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductIds: number[];\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CatalogId: number;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CatalogId = odataObject.CatalogId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds = undefined;\r\n if (odataObject.ProductIds) {\r\n this.ProductIds = [];\r\n for (var i = 0; i < odataObject.ProductIds.length; i++) {\r\n if (odataObject.ProductIds[i]) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds[i] =\r\n parseInt(odataObject.ProductIds[i], 10);\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n }\r\n}\r\n\r\n/**\r\n * AlcoholLicenseValidationDetails entity class.\r\n */\r\nexport class AlcoholLicenseValidationDetailsExtensionClass implements IAlcoholLicenseValidationDetails {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Message: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LicenseNeeded: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductId: number;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Message = odataObject.Message;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LicenseNeeded = odataObject.LicenseNeeded;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductId = (odataObject.ProductId) ? parseInt(odataObject.ProductId, 10) : 0;\r\n }\r\n}\r\n\r\n/**\r\n * ValidateAlcoholLicenseResult entity class.\r\n */\r\nexport class ValidateAlcoholLicenseResultExtensionClass implements IValidateAlcoholLicenseResult {\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ValidationResult: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerLicense: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Details: IAlcoholLicenseValidationDetails[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ValidationResult = odataObject.ValidationResult;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CustomerLicense = odataObject.CustomerLicense;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Details = undefined;\r\n if (odataObject.Details) {\r\n this.Details = [];\r\n for (var i = 0; i < odataObject.Details.length; i++) {\r\n if (odataObject.Details[i]) {\r\n if (odataObject.Details[i]['@odata.type']) {\r\n var className: string = odataObject.Details[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat(\"Class\");\r\n if (EntityClasses[className]) {\r\n this.Details[i] = new EntityClasses[className](odataObject.Details[i]);\r\n }\r\n } else {\r\n this.Details[i] = new AlcoholLicenseValidationDetailsExtensionClass(odataObject.Details[i]);\r\n }\r\n\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Details[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n }\r\n}","import { IActionContext } from '@msdyn365-commerce/core';\r\nimport { DataServiceQuery, IDataServiceRequest, callActionOrExecute } from \"@msdyn365-commerce/retail-proxy\";\r\nimport { ValidateAlcoholLicenseResultExtensionClass, IValidateAlcoholLicenseResult, IAlcoholValidationCriteria } from './entities/validate-alcohol-license';\r\n\r\nfunction validateAlcoholLicenseQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function validateAlcoholLicenseInput(validationCriteria: IAlcoholValidationCriteria): IDataServiceRequest {\r\n const query = validateAlcoholLicenseQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'ValidateAlcoholLicense',\r\n true,\r\n ValidateAlcoholLicenseResultExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'IValidateAlcoholLicenseResult' },\r\n {\r\n validationCriteria: validationCriteria\r\n }\r\n );\r\n}\r\n\r\nexport async function validateAlcoholLicenseAsync(ctx: IActionContext, validationCriteria: IAlcoholValidationCriteria): Promise {\r\n const request = validateAlcoholLicenseInput(validationCriteria);\r\n const result = await callActionOrExecute(request, ctx);\r\n return result;\r\n}\r\n","import { ICoreContext } from '@msdyn365-commerce/core';\r\nimport nbNO from './nb-NO.json';\r\nimport enUS from './en-US.json';\r\n\r\n// Generate with https://jvilk.com/MakeTypes/\r\nexport interface IAttributeLocale {\r\n notFound: string;\r\n specialBadges: string;\r\n labels: IAttributeLocaleLabels;\r\n prefixedAttributes: IAttributeLocalePrefixedAttributes;\r\n groups: IAttributeLocaleGroups;\r\n country: string;\r\n district: string;\r\n underDistrict: string;\r\n alcoholPercent: string;\r\n volumeCl: string;\r\n producer: string;\r\n description: string;\r\n fitsWith: string;\r\n flavorProfile: IFlavorProfile;\r\n taste: string;\r\n rawMaterial: string;\r\n ingredients: string;\r\n sugar: string;\r\n acid: string;\r\n alternative: IAlternative;\r\n vintage: string;\r\n organic: string;\r\n screwCap: string;\r\n inventory: string;\r\n subCategory: string;\r\n}\r\n\r\nexport interface IAttributeLocaleLabels {\r\n yes: string;\r\n no: string;\r\n alcoholPercentage: string;\r\n unitOfMeasure: string;\r\n aboutProduct: string;\r\n productInformation: string;\r\n}\r\n\r\nexport interface IAttributeLocalePrefixedAttributes {\r\n alcoholPercent: string;\r\n volumeCl: string;\r\n producer: string;\r\n country: string;\r\n district: string;\r\n vintage: string;\r\n}\r\n\r\nexport interface IAttributeLocaleGroups {\r\n aboutProduct: string;\r\n}\r\n\r\nexport interface IFlavorProfile {\r\n body: string;\r\n freshness: string;\r\n sweetness: string;\r\n bitterness: string;\r\n tannins: string;\r\n oak: string;\r\n smoke: string;\r\n spiceHerb: string;\r\n fruit: string;\r\n}\r\n\r\nexport interface IAlternative {\r\n prefixed: IAlternativePrefixed;\r\n alcoholPercent: string;\r\n sugar: string;\r\n volumeCl: string;\r\n}\r\n\r\nexport interface IAlternativePrefixed {\r\n producer: string;\r\n country: string;\r\n district: string;\r\n volumeCl: string;\r\n}\r\n\r\nexport function getLocale(langOrContext: string | ICoreContext): IAttributeLocale {\r\n const lang = typeof langOrContext === 'string' ? langOrContext : langOrContext.request.locale;\r\n\r\n switch (lang) {\r\n case 'nb-NO':\r\n return nbNO;\r\n case 'en-US':\r\n return {...nbNO, ...enUS};\r\n default:\r\n return nbNO;\r\n }\r\n}\r\n","import { IActionContext } from '@msdyn365-commerce/core';\r\nimport { ProductRefinerValue, ProductSearchCriteria } from '@msdyn365-commerce/retail-proxy';\r\nimport getOrganizationCustomer, { GetOrganizationCustomerInput } from '../actions/get-organization-customer';\r\n\r\nexport function shouldFilterAlcohol(context: IActionContext): boolean {\r\n const doAlcoholFiltering = context.requestContext.url.requestUrl.searchParams.get('alcohol')?.toLowerCase() !== 'false';\r\n const alcoholRefinerRecordId = Number(context.requestContext.app.config?.alcoholRefinerRecordId);\r\n\r\n return doAlcoholFiltering && !isNaN(alcoholRefinerRecordId) && alcoholRefinerRecordId > 0;\r\n}\r\n\r\nexport async function getAlcoholRefiners(context: IActionContext): Promise {\r\n const alcoholGroupAttributeId = Number(context.requestContext.app.config?.alcoholRefinerRecordId);\r\n\r\n if (isNaN(alcoholGroupAttributeId) || alcoholGroupAttributeId === 0) {\r\n return [];\r\n }\r\n\r\n const result: ProductRefinerValue[] = [];\r\n const alcoholRefiner: ProductRefinerValue = {\r\n DataTypeValue: 5,\r\n LeftValueBoundString: '0',\r\n RefinerRecordId: alcoholGroupAttributeId,\r\n RefinerSourceValue: 1,\r\n RightValueBoundString: '0',\r\n UnitText: ''\r\n };\r\n\r\n result.push(alcoholRefiner);\r\n\r\n try {\r\n let alcoholLicenseValue = 0;\r\n\r\n if (context.requestContext.user.isAuthenticated) {\r\n // Get Customer attributes\r\n // const customer = await getCustomer(new GetCustomerInput(context.requestContext.apiSettings, context.requestContext.user.customerAccountNumber), context);\r\n const customer = await getOrganizationCustomer(new GetOrganizationCustomerInput(context.requestContext.apiSettings, context.requestContext.user.customerAccountNumber!), context);\r\n const alcoholLicense = Number(customer.Attributes?.find(x => x.RecordId === alcoholGroupAttributeId)?.AttributeValue?.StringValue);\r\n\r\n if (isNaN(alcoholLicense)) {\r\n // Throw NaN error\r\n console.warn('Alcohol license value is missing or not a number.');\r\n } else {\r\n alcoholLicenseValue = alcoholLicense;\r\n }\r\n } else {\r\n // If user is not logged in show all products\r\n alcoholLicenseValue = 3;\r\n }\r\n\r\n // TODO: Verify we can do ranges like this on text attributes\r\n // If we can do range on text attributes use this:\r\n //alcoholRefiner.RightValueBoundString = alcoholLicense?.AttributeValue?.StringValue ?? '0';\r\n\r\n // Add a refiner for each alcohol group\r\n Array(alcoholLicenseValue).fill(0).forEach((_, index) => {\r\n result.push({\r\n ...alcoholRefiner,\r\n LeftValueBoundString: (index + 1).toString(),\r\n RightValueBoundString: (index + 1).toString()\r\n });\r\n });\r\n } catch (error) {\r\n console.warn('Failed to get customer attributes for alcohol license or parse value of attribute. No alcohol license applied to search.', error);\r\n }\r\n\r\n return result;\r\n}\r\n\r\nexport async function addAlcoholRefiner(context: IActionContext, searchCriteriaInput: ProductSearchCriteria): Promise {\r\n const alcoholGroupAttributeId = Number(context.requestContext.app.config?.alcoholRefinerRecordId);\r\n\r\n if (isNaN(alcoholGroupAttributeId) || alcoholGroupAttributeId === 0) {\r\n return;\r\n }\r\n\r\n if (searchCriteriaInput.Refinement!.some(x => x.RefinerRecordId === alcoholGroupAttributeId)) {\r\n // Remove existing, shouldn't be here\r\n searchCriteriaInput.Refinement = searchCriteriaInput.Refinement!.filter(x => x.RefinerRecordId !== alcoholGroupAttributeId);\r\n }\r\n\r\n const refiners = await getAlcoholRefiners(context);\r\n\r\n searchCriteriaInput.Refinement = searchCriteriaInput.Refinement!.concat(refiners);\r\n\r\n return Promise.resolve();\r\n}\r\n","import { IActionContext, ICoreContext } from '@msdyn365-commerce/core';\r\nimport { IProductRefinerHierarchy } from '@msdyn365-commerce/commerce-entities';\r\nimport { AttributeDataType, Customer, ProductRefinerSource, ProductRefinerValue, ProductSearchCriteria } from '@msdyn365-commerce/retail-proxy';\r\nimport getOrganizationCustomer, { GetOrganizationCustomerInput } from '../actions/get-organization-customer';\r\nimport { getLocale } from './attributes/locale';\r\n\r\nfunction isGodmodeEnabled(context: IActionContext): boolean {\r\n const godmode = context.requestContext.url.requestUrl.searchParams.get('godmode')?.toLowerCase();\r\n\r\n return godmode === '1' || godmode === 'true';\r\n}\r\n\r\nexport function addOrUpdateZeroPriceRefiner(context: IActionContext, refiners?: ProductRefinerValue[]): ProductRefinerValue[] {\r\n const enableZeroPriceFilterConfig = context.requestContext.app.config?.enableZeroPriceFilter as boolean;\r\n\r\n // Check criteria for allowing user to see zero price products. Example:\r\n // - Has ?godmode=true in url\r\n const allowZeroPriceProducts = isGodmodeEnabled(context) || enableZeroPriceFilterConfig;\r\n\r\n if (!allowZeroPriceProducts) {\r\n const result = refiners ? [...refiners] : [];\r\n\r\n // Make sure we don't show zero price products\r\n const priceRefiner = result.find(x => x.RefinerRecordId === 0);\r\n\r\n if (priceRefiner) {\r\n // There is a price refiner, make sure it has a min value of 0.01 or more\r\n if (!priceRefiner.LeftValueBoundString || Number(priceRefiner.LeftValueBoundString) < 0.01) {\r\n priceRefiner.LeftValueBoundString = '0.01';\r\n }\r\n } else {\r\n // No price refiner, add one\r\n result.push({\r\n '@odata.type': '#Microsoft.Dynamics.Commerce.Runtime.DataModel.ProductRefinerValue',\r\n Count: 0,\r\n DataTypeValue: 1,\r\n LeftValueBoundString: '0.01',\r\n ExtensionProperties: [],\r\n RefinerRecordId: 0,\r\n RefinerSourceValue: 3,\r\n RightValueBoundString: '1000000000',\r\n RowNumber: 0,\r\n UnitText: context.requestContext.channel?.Currency\r\n } as ProductRefinerValue);\r\n }\r\n\r\n return result;\r\n }\r\n\r\n return refiners || [];\r\n}\r\n\r\nexport async function getAttributeRefiners(context: IActionContext, customer: Customer | undefined, attributeRecordId: number, friendlyName?: string): Promise {\r\n const result: ProductRefinerValue[] = [];\r\n const refiner: ProductRefinerValue = {\r\n DataTypeValue: 5,\r\n LeftValueBoundString: '0',\r\n RefinerRecordId: attributeRecordId,\r\n RefinerSourceValue: 1,\r\n RightValueBoundString: '0',\r\n UnitText: ''\r\n };\r\n\r\n result.push(refiner);\r\n\r\n try {\r\n let attributeValue = 0;\r\n\r\n if (customer) {\r\n const attribute = Number(customer.Attributes?.find(x => x.RecordId === attributeRecordId)?.AttributeValue?.StringValue);\r\n\r\n if (isNaN(attribute)) {\r\n // Throw NaN error\r\n if (friendlyName) {\r\n console.warn(`${friendlyName} attribute value is missing or not a number.`);\r\n } else {\r\n console.warn(`Attribute with record id ${attributeRecordId} is missing a value or not a number.`);\r\n }\r\n } else {\r\n attributeValue = attribute;\r\n }\r\n } else {\r\n // If user is not logged in show all products\r\n attributeValue = 1;\r\n }\r\n\r\n if (attributeValue !== 0) {\r\n result.push({\r\n ...refiner,\r\n LeftValueBoundString: attributeValue.toString(),\r\n RightValueBoundString: attributeValue.toString()\r\n });\r\n }\r\n } catch (error) {\r\n if (friendlyName) {\r\n console.warn(`Failed to get ${friendlyName} customer attribute or parse value of attribute. No filter applied to search.`, error);\r\n } else {\r\n console.warn(`Failed to get customer attribute (record id: ${attributeRecordId}) or parse value of attribute. No filter applied to search.`, error);\r\n }\r\n }\r\n\r\n return result;\r\n}\r\n\r\nfunction getCustomerSpecificRefiners(context: IActionContext, customer: Customer | undefined): ProductRefinerValue[] | undefined {\r\n const attributeRecordId = Number(context.requestContext.app.config?.customerSpecificRefinerRecordId);\r\n\r\n if (isNaN(attributeRecordId) || attributeRecordId <= 0) {\r\n return undefined;\r\n }\r\n\r\n const allProductsRefiner: ProductRefinerValue = {\r\n DataTypeValue: AttributeDataType.Text,\r\n LeftValueBoundString: '0',\r\n RefinerRecordId: attributeRecordId,\r\n RefinerSourceValue: ProductRefinerSource.Attribute,\r\n RightValueBoundString: '0',\r\n UnitText: ''\r\n };\r\n\r\n if (customer) {\r\n return [\r\n allProductsRefiner,\r\n {\r\n ...allProductsRefiner,\r\n LeftValueBoundString: customer.AccountNumber,\r\n RightValueBoundString: customer.AccountNumber\r\n }\r\n ];\r\n }\r\n\r\n return [allProductsRefiner];\r\n}\r\n\r\nexport async function addAttributeRefiner(context: IActionContext, customer: Customer | undefined, searchCriteriaInput: ProductSearchCriteria, attributeRecordId: number): Promise {\r\n if (searchCriteriaInput.Refinement!.some(x => x.RefinerRecordId === attributeRecordId)) {\r\n // Remove existing, shouldn't be here\r\n searchCriteriaInput.Refinement = searchCriteriaInput.Refinement!.filter(x => x.RefinerRecordId !== attributeRecordId);\r\n }\r\n\r\n const refiners = await getAttributeRefiners(context, customer, attributeRecordId);\r\n\r\n searchCriteriaInput.Refinement = searchCriteriaInput.Refinement!.concat(refiners);\r\n}\r\n\r\nexport async function addAllAttributeRefiners(context: IActionContext, searchCriteriaInput: ProductSearchCriteria): Promise {\r\n const godmode = isGodmodeEnabled(context);\r\n\r\n if (godmode) {\r\n return;\r\n }\r\n\r\n const attributeRecordIds: string[] = [\r\n context.requestContext.app.config?.tobaccoRefinerRecordId\r\n ];\r\n const { apiSettings, user: { customerAccountNumber } } = context.requestContext;\r\n let customer: Customer | undefined;\r\n\r\n if (context.requestContext.user.isAuthenticated) {\r\n customer = await getOrganizationCustomer(new GetOrganizationCustomerInput(apiSettings, customerAccountNumber!), context);\r\n }\r\n\r\n for (const attributeRecordId of attributeRecordIds) {\r\n const id = Number(attributeRecordId);\r\n\r\n // Make sure it's a number and above 0\r\n if (!isNaN(id) && id > 0) {\r\n await addAttributeRefiner(context, customer, searchCriteriaInput, id);\r\n }\r\n }\r\n\r\n // Add customer specific refiner\r\n const customerSpecificRefiners = getCustomerSpecificRefiners(context, customer);\r\n if (customerSpecificRefiners) {\r\n searchCriteriaInput.Refinement = searchCriteriaInput.Refinement!.concat(customerSpecificRefiners);\r\n }\r\n}\r\n\r\nexport async function getAllAttributeRefiners(context: IActionContext) {\r\n const godmode = isGodmodeEnabled(context);\r\n\r\n if (godmode) {\r\n return [];\r\n }\r\n\r\n const attributeRecordIds: string[] = [\r\n context.requestContext.app.config?.tobaccoRefinerRecordId\r\n ];\r\n const { apiSettings, user: { customerAccountNumber } } = context.requestContext;\r\n let customer: Customer | undefined;\r\n\r\n if (context.requestContext.user.isAuthenticated) {\r\n customer = await getOrganizationCustomer(new GetOrganizationCustomerInput(apiSettings, customerAccountNumber!), context);\r\n }\r\n\r\n const result: ProductRefinerValue[] = [];\r\n\r\n for (const attributeRecordId of attributeRecordIds) {\r\n const id = Number(attributeRecordId);\r\n\r\n // Make sure it's a number and above 0\r\n if (!isNaN(id) && id > 0) {\r\n const refiners = await getAttributeRefiners(context, customer, id);\r\n result.push(...refiners);\r\n }\r\n }\r\n\r\n // Add customer specific refiner\r\n const customerSpecificRefiners = getCustomerSpecificRefiners(context, customer);\r\n if (customerSpecificRefiners) {\r\n result.push(...customerSpecificRefiners);\r\n }\r\n\r\n return result;\r\n}\r\n\r\nexport function getPredefinedOrder(context: ICoreContext): string[] {\r\n const locale = getLocale(context);\r\n\r\n return [\r\n locale.subCategory,\r\n locale.country,\r\n locale.district,\r\n locale.underDistrict,\r\n locale.vintage,\r\n locale.organic,\r\n locale.screwCap,\r\n locale.inventory\r\n ];\r\n}\r\n\r\nexport function sortByPredefinedOrder(context: ICoreContext): (a: IProductRefinerHierarchy, b:IProductRefinerHierarchy) => number {\r\n const predefinedOrder = getPredefinedOrder(context);\r\n const orderMap = new Map(predefinedOrder.map((item, index) => [item.toLowerCase(), index]));\r\n\r\n return (a, b) => {\r\n const indexA = orderMap.has(a.KeyName?.toLowerCase() || '') ? orderMap.get(a.KeyName?.toLowerCase() || '')! : Infinity;\r\n const indexB = orderMap.has(b.KeyName?.toLowerCase() || '') ? orderMap.get(b.KeyName?.toLowerCase() || '')! : Infinity;\r\n\r\n return indexA - indexB;\r\n };\r\n}\r\n","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n { \n const actionPath = 'actions/add-counting-list-line.action';\n binding.dataActions[actionPath] = require('partner/actions/add-counting-list-line.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/create-counting-list.action';\n binding.dataActions[actionPath] = require('partner/actions/create-counting-list.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-auto-suggest-suggestions-filtered.action';\n binding.dataActions[actionPath] = require('partner/actions/get-auto-suggest-suggestions-filtered.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-brand-scheme.action';\n binding.dataActions[actionPath] = require('partner/actions/get-brand-scheme.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-by-ids-vinhuset.action';\n binding.dataActions[actionPath] = require('partner/actions/get-by-ids-vinhuset.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-cached-active-prices.action';\n binding.dataActions[actionPath] = require('partner/actions/get-cached-active-prices.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-counting-list-products.action';\n binding.dataActions[actionPath] = require('partner/actions/get-counting-list-products.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-counting-list.action';\n binding.dataActions[actionPath] = require('partner/actions/get-counting-list.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-counting-lists.action';\n binding.dataActions[actionPath] = require('partner/actions/get-counting-lists.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-customer-liter-statistics.action';\n binding.dataActions[actionPath] = require('partner/actions/get-customer-liter-statistics.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-extended-customer.action';\n binding.dataActions[actionPath] = require('partner/actions/get-extended-customer.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-inventory-configuration.action';\n binding.dataActions[actionPath] = require('partner/actions/get-inventory-configuration.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-organization-address.action';\n binding.dataActions[actionPath] = require('partner/actions/get-organization-address.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-pickup-dlv-mode.action';\n binding.dataActions[actionPath] = require('partner/actions/get-pickup-dlv-mode.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-product-unit-of-measure-options.action';\n binding.dataActions[actionPath] = require('partner/actions/get-product-unit-of-measure-options.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-ship-carrier-address.action';\n binding.dataActions[actionPath] = require('partner/actions/get-ship-carrier-address.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-special-delivery-modes.action';\n binding.dataActions[actionPath] = require('partner/actions/get-special-delivery-modes.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/update-calc-cart-lines.action';\n binding.dataActions[actionPath] = require('partner/actions/update-calc-cart-lines.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/update-counting-list-lines.action';\n binding.dataActions[actionPath] = require('partner/actions/update-counting-list-lines.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/update-counting-list.action';\n binding.dataActions[actionPath] = require('partner/actions/update-counting-list.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/validate-alcohol-license.action';\n binding.dataActions[actionPath] = require('partner/actions/validate-alcohol-license.action');\n registerActionId(actionPath);\n }\n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.packageDataActions = {};\n window.__bindings__.packageDataActions['__local__'] = {\n ...binding.dataActions\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["createAddCountingListLineInput","productListId","countingListLine","DataServiceQuery","createDataServiceRequestForOperation","EntityClasses","bypassCache","returnEntity","addCountingListLineAsync","context","request","callActionOrExecute","callerContext","createCreateCountingListInput","fromDate","toDate","productListIds","productList","createCountingListAsync","SuggestionType","AutoSuggestInput","constructor","searchText","top","suggestionType","hitPrefix","hitSuffix","getCacheKey","getCacheObjectType","dataCacheType","this","searchQuery","topResultsCount","async","getSearchSuggestionsAction","input","ctx","Error","autosuggest","autoSuggestPromises","_getAutoSuggest","Promise","all","then","catalogId","getCatalogId","requestContext","searchCriteria","ProductSearchCriteria","SearchCondition","length","Context","ChannelId","apiSettings","channelId","CatalogId","Refinement","addOrUpdateZeroPriceRefiner","HitPrefix","HitSuffix","shouldFilterAlcohol","addAlcoholRefiner","addAllAttributeRefiners","searchSuggestions","getSearchSuggestionsAsync","queryResultSettings","Paging","Top","map","item","ImageUrl","generateImageUrl","AllSearchResults","telemetry","error","getSearchSuggestionsActionDataAction","createObservableDataAction","id","action","inputData","BrandSchemeEntityExtensionClass","odataObject","BrandSchemeId","BrandSchemeName","CanConnectProduct","CanConnectProductOwner","FromDate","Date","jsonLightReadStringPropertyValue","undefined","ToDate","Sequence","DataAreaId","RecId","parseInt","RecVersion","ExtensionProperties","i","className","substr","lastIndexOf","concat","createGetBrandSchemeByIdInput","brandSchemeId","key","brandSchemeQuery","getBrandSchemeByIdAsync","getByIdsVinhusetInput","productIds","inventLocationId","resultSettings","Entities","getByIdsVinhusetAsync","products","forEach","product","newImageUrl","generateProductImageUrl","PrimaryImageUrl","_unused","trace","getCachedActivePricesInput","projectDomain","activeDate","customerId","includeSimpleDiscountsInContextualPrice","includeVariantPriceRange","includeAttainablePricesAndDiscounts","getCachedActivePricesAsync","getCountingListProductsInput","query","SimpleProductClass","getCountingListProductsAsync","GetCountingListInput","shouldCacheOutput","createGetCountingListInput","getCountingListAsync","getCountingListAsyncAction","_context$requestConte","user","isAuthenticated","getCountingList","createInput","GetCountingListsInput","createGetCountingListsInput","countingListId","getCountingListsAsync","getCountingListsAsyncAction","customerAccountNumber","getCountingLists","CustomerLiterStatisticsExtensionClass","InvoiceAccount","Year","InvoiceAmount","parseFloat","Volume","ItemGroupDisplayOrderName","VolumeUnit","getCustomerLiterStatisticsInput","GetCustomerLiterStatisticsInput","Msdyn365","_ctx$requestContext$q","fakeData","getCustomerLiterStatisticsAsync","args","ExtendedCustomerExtensionClass","AccountNum","SalesCalendarId","OrderEntryDeadlineGroupId","PurchOrderFormNumFixed","CustomerRefFixed","getExtendedCustomerInput","getExtendedCustomerAsync","GetInventoryConfigurationInput","getInventoryConfigurationAsync","GetOrganizationCustomerAddressInput","getDataServiceRequest","getOrganizationCustomerAddressAction","Addresses","getOrganizationCustomerAddress","_user$customerAccount","GetOrganizationCustomerInput","getOrganizationCustomerAction","getOrganizationCustomer","RetailConfigurationParameterExtensionClass","Name","Value","GetPickupDlvModeInput","getPickupDlvModeAction","getPickupDlvMode","getProductUnitOfMeasureOptionsInput","getProductUnitOfMeasureOptionsAsync","ShipCarrierAddressExtensionClass","CustAccount","DlvModeId","DlvTermId","Location","ShipCarrierAccount","ShipCarrierAccountCode","ShipCarrierBlindShipment","ShipCarrierId","ShipCarrierResidentialDest","getShipCarrierAddressInput","location","getShipCarrierAddressAsync","SpecialDeliveryModesExtensionClass","PickupDlvMode","ExpressDlvMode","CourierDlvMode","GetSpecialDeliveryModesInput","getSpecialDeliveryModesAsync","getSpecialDeliveryModes","CalculationModes","updateCalcCartLinesInput","cartLines","calculationModes","cartVersion","updateCalcCartLinesAsync","createUpdateCountingListLinesInput","productListLines","updateCountingListLinesAsync","createUpdateCountingListInput","updateCountingListAsync","AlcoholLicenseValidationDetailsExtensionClass","Message","LicenseNeeded","ProductId","ValidateAlcoholLicenseResultExtensionClass","ValidationResult","CustomerLicense","Details","validateAlcoholLicenseInput","validationCriteria","validateAlcoholLicenseAsync","getLocale","langOrContext","locale","nbNO","_objectSpread","enUS","_context$requestConte2","doAlcoholFiltering","url","requestUrl","searchParams","get","toLowerCase","alcoholRefinerRecordId","Number","app","config","isNaN","getAlcoholRefiners","_context$requestConte3","alcoholGroupAttributeId","result","alcoholRefiner","DataTypeValue","LeftValueBoundString","RefinerRecordId","RefinerSourceValue","RightValueBoundString","UnitText","push","alcoholLicenseValue","_customer$Attributes","customer","alcoholLicense","Attributes","find","x","RecordId","AttributeValue","StringValue","console","warn","Array","fill","_","index","toString","searchCriteriaInput","_context$requestConte4","some","filter","refiners","resolve","isGodmodeEnabled","godmode","enableZeroPriceFilterConfig","enableZeroPriceFilter","priceRefiner","Count","RowNumber","channel","Currency","getAttributeRefiners","attributeRecordId","friendlyName","refiner","attributeValue","attribute","getCustomerSpecificRefiners","customerSpecificRefinerRecordId","allProductsRefiner","AttributeDataType","Text","ProductRefinerSource","Attribute","AccountNumber","addAttributeRefiner","_context$requestConte5","attributeRecordIds","tobaccoRefinerRecordId","customerSpecificRefiners","getAllAttributeRefiners","_context$requestConte6","sortByPredefinedOrder","predefinedOrder","subCategory","country","district","underDistrict","vintage","organic","screwCap","inventory","getPredefinedOrder","orderMap","Map","a","b","_a$KeyName","_a$KeyName2","_b$KeyName","_b$KeyName2","has","KeyName","Infinity","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","exportName","Action","require","window","__bindings__","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}