@stock-in-the-channel/sinch-vue-components 0.0.341 → 0.0.342

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -374,6 +374,7 @@ export declare class GetProductResponse implements IGetProductResponse {
374
374
  testseekProductID?: string | undefined;
375
375
  title?: string;
376
376
  tradePriceEstimate?: number;
377
+ variants?: ProductVariantResult[];
377
378
  constructor(data?: IGetProductResponse);
378
379
  init(_data?: any): void;
379
380
  static fromJS(data: any): GetProductResponse;
@@ -405,6 +406,7 @@ export interface IGetProductResponse {
405
406
  testseekProductID?: string | undefined;
406
407
  title?: string;
407
408
  tradePriceEstimate?: number;
409
+ variants?: ProductVariantResult[];
408
410
  }
409
411
  export declare class Image360Result implements IImage360Result {
410
412
  order?: number;
@@ -677,6 +679,14 @@ export declare enum ServiceFrequency {
677
679
  Semiannually = "Semiannually",
678
680
  Biennially = "Biennially"
679
681
  }
682
+ export interface ProductVariantResult {
683
+ id: number;
684
+ title: string;
685
+ sku: string;
686
+ rrp?: number;
687
+ distributorID: number;
688
+ distributorProductID: number;
689
+ }
680
690
  export declare class StringInt32ValueTuple implements IStringInt32ValueTuple {
681
691
  constructor(data?: IStringInt32ValueTuple);
682
692
  init(_data?: any): void;
@@ -1,4 +1,4 @@
1
- import { Product } from '../../ProductSearch/SearchStore';
1
+ import { Product } from '@/components/ProductSearch/SearchStore';
2
2
  import { RouteLocationNormalizedLoaded, Router } from 'vue-router';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  route: RouteLocationNormalizedLoaded;
@@ -1,4 +1,5 @@
1
1
  import { RouteLocationNormalizedLoaded, Router } from 'vue-router';
2
+ import { ProductVariantResult } from '@/api-clients/SearchApiClient';
2
3
  export type CheckProducSubscriptionResult = {
3
4
  providerSubscriptionId: string;
4
5
  externalSystem: string;
@@ -23,6 +24,8 @@ export type DistributorProduct = {
23
24
  stockUpdate?: number;
24
25
  distributorId?: number;
25
26
  margin?: number;
27
+ clientPriceCulture?: string;
28
+ variants: ProductVariantResult[];
26
29
  };
27
30
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
28
31
  route: RouteLocationNormalizedLoaded;
@@ -37,6 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
40
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
41
  addProductToBasket: (product: DistributorProduct) => void;
39
42
  navigateToConfigureUrl: (product: DistributorProduct, evt: Event) => void;
43
+ productVariantClicked: (variant: ProductVariantResult, evt: Event) => void;
40
44
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
41
45
  route: RouteLocationNormalizedLoaded;
42
46
  router: Router;
@@ -50,6 +54,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
54
  }>>> & Readonly<{
51
55
  onAddProductToBasket?: ((product: DistributorProduct) => any) | undefined;
52
56
  onNavigateToConfigureUrl?: ((product: DistributorProduct, evt: Event) => any) | undefined;
57
+ onProductVariantClicked?: ((variant: ProductVariantResult, evt: Event) => any) | undefined;
53
58
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
59
  export default _default;
55
60
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ import { ProductVariantResult } from '@/api-clients/SearchApiClient';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ variants: {
5
+ type: PropType<ProductVariantResult[]>;
6
+ required: true;
7
+ default: () => never[];
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ selected: (variant: ProductVariantResult, evt: Event) => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ variants: {
13
+ type: PropType<ProductVariantResult[]>;
14
+ required: true;
15
+ default: () => never[];
16
+ };
17
+ }>> & Readonly<{
18
+ onSelected?: ((variant: ProductVariantResult, evt: Event) => any) | undefined;
19
+ }>, {
20
+ variants: ProductVariantResult[];
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  TotalQuantity: string;
57
57
  CancellationWindows: string;
58
58
  MicrosoftDialogChangesMessage: string;
59
+ SKUVariant: string;
60
+ SubscriptionPeriod: string;
61
+ BillingPeriod: string;
62
+ VariantSKU: string;
63
+ Variant: string;
59
64
  };
60
65
  ptBR: {
61
66
  Search: string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  TotalQuantity: string;
57
57
  CancellationWindows: string;
58
58
  MicrosoftDialogChangesMessage: string;
59
+ SKUVariant: string;
60
+ SubscriptionPeriod: string;
61
+ BillingPeriod: string;
62
+ VariantSKU: string;
63
+ Variant: string;
59
64
  };
60
65
  'pt-BR': {
61
66
  Search: string;
@@ -12,11 +12,11 @@ import SinchFilterBox from './components/ProductSearch/SinchFilterBox.vue';
12
12
  import VendorsCatalogueV2 from './components/CloudChannel/VendorsCatalogueV2.vue';
13
13
  import CategoriesCatalogueV2 from './components/CloudChannel/CategoriesCatalogueV2.vue';
14
14
  import BrandProducts from './components/CloudChannel/BrandProducts.vue';
15
- import MarketplaceIndex from './components/CloudChannel/Pages/MarketplaceIndex.vue';
16
- import MarketPlaceSearch from './components/CloudChannel/Pages/MarketPlaceSearch.vue';
15
+ import MarketplaceIndex from './components/CloudChannel/Pages/MarketPlace/MarketplaceIndex.vue';
16
+ import MarketPlaceSearch from './components/CloudChannel/Pages/MarketPlace/MarketPlaceSearch.vue';
17
17
  import ProductCard from './components/CloudChannel/ProductCard.vue';
18
- import CategoryDetails from './components/CloudChannel/Pages/CategoryDetails.vue';
19
- import ProductDetails, { type DistributorProduct, type ColumnVisibility } from './components/CloudChannel/Pages/ProductDetails.vue';
18
+ import CategoryDetails from './components/CloudChannel/Pages/Category/CategoryDetails.vue';
19
+ import ProductDetails, { type DistributorProduct, type ColumnVisibility } from './components/CloudChannel/Pages/MarketPlace/ProductDetails.vue';
20
20
  import { ExibitionModeEnum } from './types/ExibitionModeEnum';
21
21
  import { QuasarQTableColumnType } from './types/QuasarQTableColumnType';
22
22
  import { QTablePaginationType, QTablePaginationRequest } from './types/QuasarQTablePaginationType';
@@ -49,11 +49,12 @@ import OrderParametersInput from './components/CloudChannel/Pages/Order/OrderPar
49
49
  import { hyphenate } from './utils/urlUtils';
50
50
  import ProvidersCatalogue from './components/CloudChannel/ProvidersCatalogue.vue';
51
51
  import { ProvidersCatalogProvider } from '@/types/ProvidersCatalogProvider';
52
- import CategoryDetailsCloud from './components/CloudChannel/Pages/CategoryDetailsCloud.vue';
52
+ import CategoryDetailsCloud from './components/CloudChannel/Pages/Category/CategoryDetailsCloud.vue';
53
53
  import DynamicBrandPage from './components/CloudChannel/Pages/Brands/DynamicBrandPage.vue';
54
54
  import DynamicCloudProviderPage from './components/CloudChannel/Pages/CloudProviders/DynamicCloudProviderPage.vue';
55
55
  import { brandPageStore } from './components/CloudChannel/Pages/Brands/BrandPageStore';
56
56
  import { cloudProvidersStore } from './components/CloudChannel/Pages/CloudProviders/CloudProvidersStore';
57
+ import { ProductVariantResult } from '@/api-clients/SearchApiClient';
57
58
  import { useCategoryStore, CategoriesResponse, Category, CategoryTreeNode } from './components/CategorySearch/CategoryStore';
58
59
  import { Brand } from './components/BrandSearch/BrandStore';
59
60
  import { SearchRequest, SearchResult, Filter, FilterRequest, FilterResponse, Product, Value, useSearchStore } from './components/ProductSearch/SearchStore';
@@ -61,4 +62,4 @@ declare const SinchPlugin: {
61
62
  install: (app: App) => void;
62
63
  };
63
64
  export { SinchPlugin, SearchIndexPageCe, SearchByBrandAndCategory, translations, LanguageMenuSelector, languageSetup, sinchSetAppLanguage, UserMenu, MarketSearchIndex, useSearchStore, MarketPlaceSearchInput, MarketPlaceItem, SinchFilterBox, useCategoryStore, VendorsCatalogueV2, CategoriesCatalogueV2, BrandProducts, MarketplaceIndex, MarketPlaceSearch, ProductCard, CategoryDetails, ProductDetails, ExibitionModeEnum, VueGlobalFunctions, SubscriptionQueries, CustomerOrdersFromProviderVue, OrderDetailsVue, OrderDetailsFromProviderVue, OrderSearchVue, SubscriptionDetailsVue, SubscriptionIndexVue, SubscriptionsTableVue, SubscriptionOrderDetailsVue, SubscriptionOderHistoryDialogVue, SubscriptionOrderHistoriesVue, SubscriptionOrderHistoriesLastEntryVue, SubscriptionOrdersListVue, SubscriptionsTableFiltersVue, ContactUsVue, BasketItemsTableVue, BasketDataClient, CustomerDetailsSectionVue, QuoteDetailsVue, QuoteIndexVue, QuoteDataClient, GetRenewalColour, RouterLinkWrapper, OrderParametersInput, hyphenate, ProvidersCatalogue, CategoryDetailsCloud, DynamicBrandPage, DynamicCloudProviderPage, brandPageStore, cloudProvidersStore };
64
- export type { SearchRequest, SearchResult, Filter, FilterRequest, FilterResponse, Product, Value, CategoriesResponse, Category, CategoryTreeNode, Brand, DistributorProduct, ColumnVisibility, QuasarQTableColumnType, QTablePaginationType, QTablePaginationRequest, SubscriptionsTableFiltersType, CustomerOrdersFromProviderParams, MainProduct, BasketItemPayloadLocal, ProvidersCatalogProvider };
65
+ export type { SearchRequest, SearchResult, Filter, FilterRequest, FilterResponse, Product, Value, CategoriesResponse, Category, CategoryTreeNode, Brand, DistributorProduct, ColumnVisibility, QuasarQTableColumnType, QTablePaginationType, QTablePaginationRequest, SubscriptionsTableFiltersType, CustomerOrdersFromProviderParams, MainProduct, BasketItemPayloadLocal, ProvidersCatalogProvider, ProductVariantResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stock-in-the-channel/sinch-vue-components",
3
- "version": "0.0.341",
3
+ "version": "0.0.342",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
18
18
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputProps>>> & Readonly<{
19
19
  onOnCategorySelected?: ((category: Category, evt: Event) => any) | undefined;
20
20
  onOnBrandSelected?: ((brand: Brand, evt: Event) => any) | undefined;
21
- onGoToProductResultsPage?: ((searchText: string) => any) | undefined;
22
21
  onRedirectToProductDetails?: ((product: Product, evt: Event) => any) | undefined;
22
+ onGoToProductResultsPage?: ((searchText: string) => any) | undefined;
23
23
  onNavigateToBrands?: ((brand: Brand, evt: Event) => any) | undefined;
24
24
  onOnCatalogueCategorySelected?: ((clickedCategory: Category, evt: Event) => any) | undefined;
25
25
  onOnCategoriesCatalogMounted?: (() => any) | undefined;