@stock-in-the-channel/sinch-vue-components 0.0.353 → 0.0.354

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -27052,6 +27052,7 @@ let Xr = class jy {
27052
27052
  }
27053
27053
  };
27054
27054
  class zd {
27055
+ id;
27055
27056
  clientHasPriceAccount;
27056
27057
  clientPrice;
27057
27058
  clientPriceCulture;
@@ -27076,7 +27077,7 @@ class zd {
27076
27077
  }
27077
27078
  init(t) {
27078
27079
  if (t) {
27079
- if (this.clientHasPriceAccount = t.clientHasPriceAccount, this.clientPrice = t.clientPrice, this.clientPriceCulture = t.clientPriceCulture, this.datafeedOwnerClientID = t.datafeedOwnerClientID, this.distributorId = t.distributorId, this.distributorLogoImageUrl = t.distributorLogoImageUrl, this.distributorName = t.distributorName, this.isParticipating = t.isParticipating, this.name = t.name, this.priceType = t.priceType, this.rrp = t.rrp, this.sku = t.sku, this.stock = t.stock, this.stockLevelLastUpdate = t.stockLevelLastUpdate ? new Date(t.stockLevelLastUpdate.toString()) : void 0, Array.isArray(t.warehouseStocks)) {
27080
+ if (this.id = t.id, this.clientHasPriceAccount = t.clientHasPriceAccount, this.clientPrice = t.clientPrice, this.clientPriceCulture = t.clientPriceCulture, this.datafeedOwnerClientID = t.datafeedOwnerClientID, this.distributorId = t.distributorId, this.distributorLogoImageUrl = t.distributorLogoImageUrl, this.distributorName = t.distributorName, this.isParticipating = t.isParticipating, this.name = t.name, this.priceType = t.priceType, this.rrp = t.rrp, this.sku = t.sku, this.stock = t.stock, this.stockLevelLastUpdate = t.stockLevelLastUpdate ? new Date(t.stockLevelLastUpdate.toString()) : void 0, Array.isArray(t.warehouseStocks)) {
27080
27081
  this.warehouseStocks = [];
27081
27082
  for (let n of t.warehouseStocks)
27082
27083
  this.warehouseStocks.push(Gd.fromJS(n));
@@ -27090,7 +27091,7 @@ class zd {
27090
27091
  return n.init(t), n;
27091
27092
  }
27092
27093
  toJSON(t) {
27093
- if (t = typeof t == "object" ? t : {}, t.clientHasPriceAccount = this.clientHasPriceAccount, t.clientPrice = this.clientPrice, t.clientPriceCulture = this.clientPriceCulture, t.datafeedOwnerClientID = this.datafeedOwnerClientID, t.distributorId = this.distributorId, t.distributorLogoImageUrl = this.distributorLogoImageUrl, t.distributorName = this.distributorName, t.isParticipating = this.isParticipating, t.name = this.name, t.priceType = this.priceType, t.sku = this.sku, t.stock = this.stock, t.stockLevelLastUpdate = this.stockLevelLastUpdate ? this.stockLevelLastUpdate.toISOString() : void 0, Array.isArray(this.warehouseStocks)) {
27094
+ if (t = typeof t == "object" ? t : {}, t.id = this.id, t.clientHasPriceAccount = this.clientHasPriceAccount, t.clientPrice = this.clientPrice, t.clientPriceCulture = this.clientPriceCulture, t.datafeedOwnerClientID = this.datafeedOwnerClientID, t.distributorId = this.distributorId, t.distributorLogoImageUrl = this.distributorLogoImageUrl, t.distributorName = this.distributorName, t.isParticipating = this.isParticipating, t.name = this.name, t.priceType = this.priceType, t.sku = this.sku, t.stock = this.stock, t.stockLevelLastUpdate = this.stockLevelLastUpdate ? this.stockLevelLastUpdate.toISOString() : void 0, Array.isArray(this.warehouseStocks)) {
27094
27095
  t.warehouseStocks = [];
27095
27096
  for (let n of this.warehouseStocks)
27096
27097
  t.warehouseStocks.push(n.toJSON());
@@ -37141,9 +37142,8 @@ const ZN = new r0({
37141
37142
  }
37142
37143
  }
37143
37144
  function I(O) {
37144
- O && O.distributorProducts && O.distributorProducts.length > 0 && (k.value = O.distributorProducts.filter(($) => $.distributorId && d.enabledDistributorIds.indexOf($.distributorId) > -1).map(($, N) => ({
37145
- id: N,
37146
- // Assign a unique id (can use a more meaningful unique field if available)
37145
+ O && O.distributorProducts && O.distributorProducts.length > 0 && (k.value = O.distributorProducts.filter(($) => $.distributorId && d.enabledDistributorIds.indexOf($.distributorId) > -1).map(($) => ({
37146
+ id: $.id,
37147
37147
  image: $.distributorLogoImageUrl,
37148
37148
  productName: $.name,
37149
37149
  price: $.clientPrice ? $.clientPrice : "",
@@ -37156,11 +37156,12 @@ const ZN = new r0({
37156
37156
  vendor: O.brandName,
37157
37157
  distributorName: $.distributorName,
37158
37158
  distributorId: $.distributorId,
37159
- margin: d.enabledDistributorIds.some((j) => j == $.distributorId) && $.rrp && $.rrp > 0 && $.clientPrice && $.clientPrice > 0 ? Math.round(($.rrp - $.clientPrice) * 100 / $.rrp) / 100 : null,
37159
+ margin: d.enabledDistributorIds.some((N) => N == $.distributorId) && $.rrp && $.rrp > 0 && $.clientPrice && $.clientPrice > 0 ? Math.round(($.rrp - $.clientPrice) * 100 / $.rrp) / 100 : null,
37160
37160
  variants: $.variants,
37161
37161
  clientPriceCulture: $.clientPriceCulture,
37162
37162
  clientPriceCurrency: $.clientPriceCurrency,
37163
- clientPrice: $.clientPrice
37163
+ clientPrice: $.clientPrice,
37164
+ productId: O.id
37164
37165
  })), k.value.length > 0 && (h.value = k.value[0]));
37165
37166
  }
37166
37167
  function q() {
@@ -42033,7 +42034,7 @@ const $L = { class: "text-body q-mr-md" }, NL = { class: "text-body q-mr-md" },
42033
42034
  emits: ["onBasketItemRemoved", "onBasketChanged"],
42034
42035
  setup(e, { expose: t, emit: n }) {
42035
42036
  const r = e, a = n, i = R(), o = R(!1), l = Xn(), { t: u } = an(), c = new qL(), s = R([]), d = [
42036
- { align: "left", sortable: !1, name: "rowNumber", label: u("Row"), field: "rowNumber" },
42037
+ { align: "left", sortable: !1, name: "mpn", label: u("Sku"), field: "mpn" },
42037
42038
  { align: "left", sortable: !1, name: "externalSystemType", label: u("Provider"), field: "externalSystemType" },
42038
42039
  { align: "left", sortable: !1, name: "name", label: u("Name"), field: "name" },
42039
42040
  { align: "left", sortable: !1, name: "quantity", label: u("Qty"), field: "quantity" },
@@ -42148,9 +42149,9 @@ const $L = { class: "text-body q-mr-md" }, NL = { class: "text-body q-mr-md" },
42148
42149
  body: U((C) => [
42149
42150
  D(x(ur), { props: C }, {
42150
42151
  default: U(() => [
42151
- D(x(Ae), { key: "rowNumber" }, {
42152
+ D(x(Ae), { key: "mpn" }, {
42152
42153
  default: U(() => [
42153
- w("span", $L, A(C.row.product.rowNumber), 1)
42154
+ w("span", $L, A(C.row.product.mpn), 1)
42154
42155
  ]),
42155
42156
  _: 2
42156
42157
  }, 1024),
@@ -42302,7 +42303,10 @@ const $L = { class: "text-body q-mr-md" }, NL = { class: "text-body q-mr-md" },
42302
42303
  }, 1024),
42303
42304
  Se(D(x(Ae), null, {
42304
42305
  default: U(() => [
42305
- Me(A(h.$formatCurrency(T.price, r.basket?.currency)), 1)
42306
+ Me(A(h.$formatCurrency(
42307
+ T.price,
42308
+ r.basket?.currency
42309
+ )), 1)
42306
42310
  ]),
42307
42311
  _: 2
42308
42312
  }, 1536), [
@@ -500,6 +500,7 @@ export declare enum ProductCondition {
500
500
  Used = "Used"
501
501
  }
502
502
  export declare class ProductDistributorResult implements IProductDistributorResult {
503
+ id?: number;
503
504
  clientHasPriceAccount?: boolean;
504
505
  clientPrice?: number | undefined;
505
506
  clientPriceCulture?: string | undefined;
@@ -523,6 +524,7 @@ export declare class ProductDistributorResult implements IProductDistributorResu
523
524
  toJSON(data?: any): any;
524
525
  }
525
526
  export interface IProductDistributorResult {
527
+ id?: number;
526
528
  clientHasPriceAccount?: boolean;
527
529
  clientPrice?: number | undefined;
528
530
  clientPriceCulture?: string | undefined;
@@ -174,7 +174,7 @@ export type BasketItemPayload = {
174
174
  __typename?: 'BasketItemPayload';
175
175
  basketId: Scalars['Int']['output'];
176
176
  billingPeriodDuration?: Maybe<Scalars['Decimal']['output']>;
177
- billingPeriodType: BillingPeriodType;
177
+ billingPeriodType: PeriodType;
178
178
  description?: Maybe<Scalars['String']['output']>;
179
179
  externalSystemType: ExternalSystemType;
180
180
  isMainProduct: Scalars['Boolean']['output'];
@@ -188,9 +188,11 @@ export type BasketItemPayload = {
188
188
  price?: Maybe<Scalars['Decimal']['output']>;
189
189
  quantity: Scalars['Int']['output'];
190
190
  rowNumber: Scalars['Int']['output'];
191
+ sinchDistributorProductId?: Maybe<Scalars['Int']['output']>;
192
+ sinchProductId?: Maybe<Scalars['Int']['output']>;
191
193
  startDate: Scalars['DateTime']['output'];
192
194
  subscriptionPeriodDuration?: Maybe<Scalars['Decimal']['output']>;
193
- subscriptionPeriodType: SubscriptionPeriodType;
195
+ subscriptionPeriodType: PeriodType;
194
196
  };
195
197
  export declare enum BasketStatus {
196
198
  BasketDraft = "BASKET_DRAFT",
@@ -213,15 +215,6 @@ export type BasketStatusOperationFilterInput = {
213
215
  neq?: InputMaybe<BasketStatus>;
214
216
  nin?: InputMaybe<Array<BasketStatus>>;
215
217
  };
216
- export declare enum BillingPeriodType {
217
- Annual = "ANNUAL",
218
- Daily = "DAILY",
219
- Monthly = "MONTHLY",
220
- Quarterly = "QUARTERLY",
221
- Retail = "RETAIL",
222
- Triennial = "TRIENNIAL",
223
- Unknown = "UNKNOWN"
224
- }
225
218
  export type BooleanOperationFilterInput = {
226
219
  eq?: InputMaybe<Scalars['Boolean']['input']>;
227
220
  neq?: InputMaybe<Scalars['Boolean']['input']>;
@@ -675,7 +668,7 @@ export type CheckForProductVariantsInput = {
675
668
  export type CheckForProductVariantsPayload = {
676
669
  __typename?: 'CheckForProductVariantsPayload';
677
670
  billingPeriodDuration?: Maybe<Scalars['Decimal']['output']>;
678
- billingPeriodType: BillingPeriodType;
671
+ billingPeriodType: PeriodType;
679
672
  cost?: Maybe<Scalars['Decimal']['output']>;
680
673
  cspProductId: Scalars['Int']['output'];
681
674
  currency?: Maybe<Scalars['String']['output']>;
@@ -684,7 +677,7 @@ export type CheckForProductVariantsPayload = {
684
677
  name: Scalars['String']['output'];
685
678
  price?: Maybe<Scalars['Decimal']['output']>;
686
679
  subscriptionPeriodDuration?: Maybe<Scalars['Decimal']['output']>;
687
- subscriptionPeriodType: SubscriptionPeriodType;
680
+ subscriptionPeriodType: PeriodType;
688
681
  vendor: Scalars['String']['output'];
689
682
  };
690
683
  export type ClientIdNotFound = Error & {
@@ -770,7 +763,7 @@ export type CreateAcronisCustomerPayload = {
770
763
  export type CreateBasketInputItemInput = {
771
764
  basketId?: InputMaybe<Scalars['Int']['input']>;
772
765
  billingPeriodDuration?: InputMaybe<Scalars['Int']['input']>;
773
- billingPeriodType?: InputMaybe<BillingPeriodType>;
766
+ billingPeriodType?: InputMaybe<PeriodType>;
774
767
  currency?: InputMaybe<Scalars['String']['input']>;
775
768
  description?: InputMaybe<Scalars['String']['input']>;
776
769
  /** Manufacturer Product Number */
@@ -780,9 +773,10 @@ export type CreateBasketInputItemInput = {
780
773
  quantity: Scalars['Int']['input'];
781
774
  rrp?: InputMaybe<Scalars['Decimal']['input']>;
782
775
  sinchDistributorId: Scalars['Int']['input'];
783
- sinchDistributorProductId?: InputMaybe<Scalars['Int']['input']>;
776
+ sinchDistributorProductId: Scalars['Int']['input'];
777
+ sinchProductId: Scalars['Int']['input'];
784
778
  subscriptionPeriodDuration?: InputMaybe<Scalars['Int']['input']>;
785
- subscriptionPeriodType?: InputMaybe<SubscriptionPeriodType>;
779
+ subscriptionPeriodType?: InputMaybe<PeriodType>;
786
780
  vendor?: InputMaybe<Scalars['String']['input']>;
787
781
  };
788
782
  export type CreateBasketPayload = {
@@ -899,7 +893,7 @@ export type CustomerAddItemToBasketError = InvalidBasket | InvalidReseller | Pro
899
893
  export type CustomerAddItemToBasketInput = {
900
894
  basketId?: InputMaybe<Scalars['Int']['input']>;
901
895
  billingPeriodDuration?: InputMaybe<Scalars['Int']['input']>;
902
- billingPeriodType?: InputMaybe<BillingPeriodType>;
896
+ billingPeriodType?: InputMaybe<PeriodType>;
903
897
  currency?: InputMaybe<Scalars['String']['input']>;
904
898
  description?: InputMaybe<Scalars['String']['input']>;
905
899
  /** Manufacturer Product Number */
@@ -909,9 +903,10 @@ export type CustomerAddItemToBasketInput = {
909
903
  quantity: Scalars['Int']['input'];
910
904
  rrp?: InputMaybe<Scalars['Decimal']['input']>;
911
905
  sinchDistributorId: Scalars['Int']['input'];
912
- sinchDistributorProductId?: InputMaybe<Scalars['Int']['input']>;
906
+ sinchDistributorProductId: Scalars['Int']['input'];
907
+ sinchProductId: Scalars['Int']['input'];
913
908
  subscriptionPeriodDuration?: InputMaybe<Scalars['Int']['input']>;
914
- subscriptionPeriodType?: InputMaybe<SubscriptionPeriodType>;
909
+ subscriptionPeriodType?: InputMaybe<PeriodType>;
915
910
  vendor: Scalars['String']['input'];
916
911
  };
917
912
  export type CustomerAddItemToBasketPayload = {
@@ -1326,7 +1321,7 @@ export type GetProductDetailsInput = {
1326
1321
  export type GetProductDetailsPayload = {
1327
1322
  __typename?: 'GetProductDetailsPayload';
1328
1323
  addOns: Array<GetProductDetailsPayload>;
1329
- billingPeriodType: BillingPeriodType;
1324
+ billingPeriodType: PeriodType;
1330
1325
  billintPeriodDuration: Scalars['Int']['output'];
1331
1326
  currency: Scalars['String']['output'];
1332
1327
  description: Scalars['String']['output'];
@@ -1336,7 +1331,7 @@ export type GetProductDetailsPayload = {
1336
1331
  productId: Scalars['Int']['output'];
1337
1332
  sku: Scalars['String']['output'];
1338
1333
  subscriptionPeriodDuration: Scalars['Int']['output'];
1339
- subscriptionPeriodType: SubscriptionPeriodType;
1334
+ subscriptionPeriodType: PeriodType;
1340
1335
  vendor: Scalars['String']['output'];
1341
1336
  };
1342
1337
  export type GetPurchaseAvailabilitiesRequestInput = {
@@ -1622,13 +1617,6 @@ export type Mutation = {
1622
1617
  deleteIntegration: DeleteIntegrationPayload;
1623
1618
  deleteMicrosoftScheduledNextTermInstructions: DeleteMicrosoftScheduledNextTermInstructionsPayload;
1624
1619
  patchIngramSubscripton: PatchIngramSubscriptonPayload;
1625
- /**
1626
- * Gets the created order Id and tries to place the order to the provider
1627
- *
1628
- *
1629
- * **Returns:**
1630
- * Created order details
1631
- */
1632
1620
  placeSalesOrder: PlaceSalesOrderPayload;
1633
1621
  removeItemFromBasket: RemoveItemFromBasketPayload;
1634
1622
  /**
@@ -1933,9 +1921,7 @@ export type Period = {
1933
1921
  export declare enum PeriodType {
1934
1922
  Day = "DAY",
1935
1923
  Month = "MONTH",
1936
- None = "NONE",
1937
1924
  OneTime = "ONE_TIME",
1938
- Triennial = "TRIENNIAL",
1939
1925
  Unknown = "UNKNOWN",
1940
1926
  Year = "YEAR"
1941
1927
  }
@@ -2716,7 +2702,7 @@ export type SubscriptionOrderStatusHistoriesModel = {
2716
2702
  cspSubscriptionId: Scalars['Int']['output'];
2717
2703
  cspSubscriptionOrderId: Scalars['Int']['output'];
2718
2704
  date: Scalars['DateTime']['output'];
2719
- idpUserName: Scalars['String']['output'];
2705
+ idpUserName?: Maybe<Scalars['String']['output']>;
2720
2706
  message?: Maybe<Scalars['String']['output']>;
2721
2707
  providerOrderId?: Maybe<Scalars['String']['output']>;
2722
2708
  status: OrderPayloadStatus;
@@ -2750,14 +2736,6 @@ export type SubscriptionOrderStatusHistoriesModelSortInput = {
2750
2736
  providerOrderId?: InputMaybe<SortEnumType>;
2751
2737
  status?: InputMaybe<SortEnumType>;
2752
2738
  };
2753
- export declare enum SubscriptionPeriodType {
2754
- Day = "DAY",
2755
- Month = "MONTH",
2756
- OneOff = "ONE_OFF",
2757
- Triennial = "TRIENNIAL",
2758
- Unknown = "UNKNOWN",
2759
- Year = "YEAR"
2760
- }
2761
2739
  export type SubscriptionPrice = {
2762
2740
  __typename?: 'SubscriptionPrice';
2763
2741
  amount: Scalars['Decimal']['output'];
@@ -28,6 +28,7 @@ export type DistributorProduct = {
28
28
  clientPriceCulture?: string;
29
29
  clientPriceCurrency?: string;
30
30
  variants: ProductVariantResult[];
31
+ productId: number;
31
32
  };
32
33
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
33
34
  route: RouteLocationNormalizedLoaded;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stock-in-the-channel/sinch-vue-components",
3
- "version": "0.0.353",
3
+ "version": "0.0.354",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
File without changes