@devite/shopware-client 1.9.0 → 1.9.1

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.
Files changed (151) hide show
  1. package/dist/index.d.cts +12 -13
  2. package/dist/index.d.mts +12 -13
  3. package/dist/index.d.ts +12 -13
  4. package/dist/types/api/admin/LogEntry.d.ts +1 -1
  5. package/dist/types/api/admin/Notification.d.ts +1 -1
  6. package/dist/types/api/admin/ScheduledTask.d.ts +1 -1
  7. package/dist/types/api/admin/ShopwarePlugin.d.ts +2 -2
  8. package/dist/types/api/admin/SystemConfigEntry.d.ts +1 -1
  9. package/dist/types/api/admin/acl/AclRole.d.ts +1 -1
  10. package/dist/types/api/admin/acl/AclUserRole.d.ts +1 -1
  11. package/dist/types/api/admin/app/App.d.ts +2 -2
  12. package/dist/types/api/admin/app/AppActionButton.d.ts +2 -2
  13. package/dist/types/api/admin/category/Category.d.ts +3 -5
  14. package/dist/types/api/admin/category/MainCategory.d.ts +1 -1
  15. package/dist/types/api/admin/cms/CmsPage.d.ts +5 -1
  16. package/dist/types/api/admin/cms/CmsSection.d.ts +1 -3
  17. package/dist/types/api/admin/cms/CmsSlot.d.ts +1 -1
  18. package/dist/types/api/admin/cms/landingPage/LandingPage.d.ts +1 -1
  19. package/dist/types/api/admin/country/Country.d.ts +1 -1
  20. package/dist/types/api/admin/currency/CurrencyCountryRounding.d.ts +1 -1
  21. package/dist/types/api/admin/custom/field/CustomField.d.ts +1 -1
  22. package/dist/types/api/admin/custom/field/set/CustomFieldSet.d.ts +1 -1
  23. package/dist/types/api/admin/customer/Customer.d.ts +2 -2
  24. package/dist/types/api/admin/customer/CustomerAddress.d.ts +1 -1
  25. package/dist/types/api/admin/customer/{group/CustomerGroup.d.ts → CustomerGroup.d.ts} +2 -2
  26. package/dist/types/api/admin/customer/index.d.ts +1 -1
  27. package/dist/types/api/admin/document/ShopwareDocument.d.ts +1 -1
  28. package/dist/types/api/admin/document/ShopwareDocumentBaseConfig.d.ts +1 -1
  29. package/dist/types/api/admin/locale/Language.d.ts +1 -1
  30. package/dist/types/api/admin/mail/MailHeaderFooter.d.ts +2 -2
  31. package/dist/types/api/admin/mail/template/MailTemplate.d.ts +2 -2
  32. package/dist/types/api/admin/mail/template/MailTemplateType.d.ts +2 -2
  33. package/dist/types/api/admin/media/Media.d.ts +1 -1
  34. package/dist/types/api/admin/media/thumbnail/MediaThumbnail.d.ts +1 -1
  35. package/dist/types/api/admin/media/thumbnail/MediaThumbnailSize.d.ts +1 -1
  36. package/dist/types/api/admin/newsletterRecipient/NewsletterRecipient.d.ts +1 -1
  37. package/dist/types/api/admin/numberRange/NumberRange.d.ts +2 -2
  38. package/dist/types/api/admin/numberRange/NumberRangeState.d.ts +1 -1
  39. package/dist/types/api/admin/numberRange/NumberRangeType.d.ts +2 -2
  40. package/dist/types/api/admin/order/Order.d.ts +2 -2
  41. package/dist/types/api/admin/order/OrderAddress.d.ts +1 -1
  42. package/dist/types/api/admin/order/OrderCustomer.d.ts +1 -1
  43. package/dist/types/api/admin/order/delivery/OrderDelivery.d.ts +1 -1
  44. package/dist/types/api/admin/order/delivery/OrderDeliveryPosition.d.ts +1 -1
  45. package/dist/types/api/admin/order/lineItem/OrderLineItem.d.ts +1 -1
  46. package/dist/types/api/admin/order/lineItem/OrderLineItemDownload.d.ts +1 -1
  47. package/dist/types/api/admin/order/transaction/OrderTransaction.d.ts +1 -1
  48. package/dist/types/api/admin/order/transaction/capture/OrderTransactionCapture.d.ts +1 -1
  49. package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefund.d.ts +1 -1
  50. package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefundPosition.d.ts +1 -1
  51. package/dist/types/api/admin/paymentMethod/PaymentMethod.d.ts +1 -1
  52. package/dist/types/api/admin/product/Product.d.ts +17 -11
  53. package/dist/types/api/admin/product/ProductDownload.d.ts +2 -2
  54. package/dist/types/api/admin/product/ProductManufacturer.d.ts +12 -2
  55. package/dist/types/api/admin/product/ProductMedia.d.ts +1 -1
  56. package/dist/types/api/admin/product/ProductPrice.d.ts +1 -1
  57. package/dist/types/api/admin/product/ProductSorting.d.ts +2 -2
  58. package/dist/types/api/admin/product/crossSelling/ProductCrossSellingAssignedProduct.d.ts +1 -1
  59. package/dist/types/api/admin/product/search/ProductSearchKeyword.d.ts +1 -1
  60. package/dist/types/api/admin/product/search/config/ProductSearchConfig.d.ts +1 -1
  61. package/dist/types/api/admin/product/search/config/ProductSearchConfigField.d.ts +1 -1
  62. package/dist/types/api/admin/product/stream/ProductStreamFilter.d.ts +1 -1
  63. package/dist/types/api/admin/promotion/Promotion.d.ts +2 -2
  64. package/dist/types/api/admin/promotion/PromotionIndividualCode.d.ts +1 -1
  65. package/dist/types/api/admin/promotion/PromotionSalesChannel.d.ts +1 -1
  66. package/dist/types/api/admin/promotion/PromotionSetGroup.d.ts +1 -1
  67. package/dist/types/api/admin/promotion/discount/PromotionDiscount.d.ts +1 -1
  68. package/dist/types/api/admin/promotion/discount/PromotionDiscountPrice.d.ts +1 -1
  69. package/dist/types/api/admin/propertyGroup/PropertyGroup.d.ts +1 -1
  70. package/dist/types/api/admin/propertyGroup/PropertyGroupOption.d.ts +1 -1
  71. package/dist/types/api/admin/rule/RuleCondition.d.ts +1 -1
  72. package/dist/types/api/admin/salesChannel/SalesChannel.d.ts +2 -2
  73. package/dist/types/api/admin/salesChannel/SalesChannelDomain.d.ts +1 -1
  74. package/dist/types/api/admin/salesChannel/SalesChannelType.d.ts +2 -2
  75. package/dist/types/api/admin/seo/SeoUrl.d.ts +1 -1
  76. package/dist/types/api/admin/seo/SeoUrlTemplate.d.ts +1 -1
  77. package/dist/types/api/admin/shippingMethod/AppShippingMethod.d.ts +1 -1
  78. package/dist/types/api/admin/shippingMethod/ShippingMethod.d.ts +1 -1
  79. package/dist/types/api/admin/shippingMethod/ShippingMethodPrice.d.ts +1 -1
  80. package/dist/types/api/admin/stateMachine/StateMachine.d.ts +2 -2
  81. package/dist/types/api/admin/stateMachine/StateMachineHistory.d.ts +1 -1
  82. package/dist/types/api/admin/stateMachine/StateMachineTransition.d.ts +1 -1
  83. package/dist/types/api/admin/tax/TaxProvider.d.ts +2 -2
  84. package/dist/types/api/admin/tax/rule/TaxRule.d.ts +1 -1
  85. package/dist/types/api/admin/tax/rule/TaxRuleType.d.ts +2 -2
  86. package/dist/types/api/admin/user/User.d.ts +1 -1
  87. package/dist/types/api/admin/user/UserAccessKey.d.ts +1 -1
  88. package/dist/types/api/admin/user/UserConfig.d.ts +1 -1
  89. package/dist/types/api/admin/webhook/Webhook.d.ts +1 -1
  90. package/dist/types/api/admin/webhook/WebhookEventLog.d.ts +1 -1
  91. package/dist/types/api/store/Currency.d.ts +2 -2
  92. package/dist/types/api/store/DeliveryTime.d.ts +2 -2
  93. package/dist/types/api/store/PaymentMethod.d.ts +2 -2
  94. package/dist/types/api/store/Rule.d.ts +1 -1
  95. package/dist/types/api/store/Salutation.d.ts +2 -2
  96. package/dist/types/api/store/StateMachineState.d.ts +2 -2
  97. package/dist/types/api/store/Tag.d.ts +1 -1
  98. package/dist/types/api/store/Tax.d.ts +1 -1
  99. package/dist/types/api/store/Unit.d.ts +2 -2
  100. package/dist/types/api/store/cart/Cart.d.ts +1 -2
  101. package/dist/types/api/store/cart/delivery/CartDelivery.d.ts +1 -0
  102. package/dist/types/api/store/cart/lineItem/CartLineItem.d.ts +3 -0
  103. package/dist/types/api/store/category/Category.d.ts +5 -6
  104. package/dist/types/api/store/category/MainCategory.d.ts +1 -1
  105. package/dist/types/api/store/cms/CmsBlock.d.ts +1 -1
  106. package/dist/types/api/store/cms/CmsPage.d.ts +2 -2
  107. package/dist/types/api/store/cms/CmsSection.d.ts +3 -2
  108. package/dist/types/api/store/cms/CmsSlot.d.ts +2 -2
  109. package/dist/types/api/store/cms/LandingPage.d.ts +2 -2
  110. package/dist/types/api/store/country/Country.d.ts +2 -2
  111. package/dist/types/api/store/country/CountryState.d.ts +2 -2
  112. package/dist/types/api/store/customer/Customer.d.ts +1 -1
  113. package/dist/types/api/store/customer/CustomerGroup.d.ts +2 -2
  114. package/dist/types/api/store/customer/address/CustomerAddress.d.ts +1 -1
  115. package/dist/types/api/store/customer/address/CustomerAddressBody.d.ts +1 -1
  116. package/dist/types/api/store/document/ShopwareDocument.d.ts +1 -1
  117. package/dist/types/api/store/document/ShopwareDocumentBaseConfig.d.ts +1 -1
  118. package/dist/types/api/store/document/ShopwareDocumentType.d.ts +2 -2
  119. package/dist/types/api/store/locale/Language.d.ts +1 -1
  120. package/dist/types/api/store/locale/Locale.d.ts +2 -2
  121. package/dist/types/api/store/media/Media.d.ts +2 -2
  122. package/dist/types/api/store/media/MediaThumbnail.d.ts +1 -1
  123. package/dist/types/api/store/media/ProductMedia.d.ts +1 -1
  124. package/dist/types/api/store/order/OrderAddress.d.ts +1 -1
  125. package/dist/types/api/store/order/OrderCustomer.d.ts +1 -1
  126. package/dist/types/api/store/order/OrderLineItem.d.ts +5 -29
  127. package/dist/types/api/store/order/OrderLineItemDownload.d.ts +1 -1
  128. package/dist/types/api/store/order/delivery/OrderDelivery.d.ts +1 -1
  129. package/dist/types/api/store/order/delivery/OrderDeliveryPosition.d.ts +1 -1
  130. package/dist/types/api/store/order/transaction/OrderTransaction.d.ts +1 -1
  131. package/dist/types/api/store/order/transaction/capture/OrderTransactionCapture.d.ts +1 -1
  132. package/dist/types/api/store/order/transaction/capture/OrderTransactionCaptureRefund.d.ts +1 -1
  133. package/dist/types/api/store/order/transaction/capture/OrderTransactionCaptureRefundPosition.d.ts +1 -1
  134. package/dist/types/api/store/product/Product.d.ts +4 -8
  135. package/dist/types/api/store/product/ProductDownload.d.ts +1 -1
  136. package/dist/types/api/store/product/ProductListingResult.d.ts +1 -1
  137. package/dist/types/api/store/product/ProductReview.d.ts +1 -1
  138. package/dist/types/api/store/product/ProductStream.d.ts +2 -2
  139. package/dist/types/api/store/product/crossSelling/ProductCrossSelling.d.ts +2 -2
  140. package/dist/types/api/store/product/index.d.ts +0 -1
  141. package/dist/types/api/store/propertyGroup/PropertyGroup.d.ts +2 -2
  142. package/dist/types/api/store/propertyGroup/PropertyGroupOption.d.ts +2 -2
  143. package/dist/types/api/store/salesChannel/SalesChannel.d.ts +2 -2
  144. package/dist/types/api/store/seo/SeoUrlEntity.d.ts +1 -1
  145. package/dist/types/api/store/shippingMethod/ShippingMethod.d.ts +2 -2
  146. package/dist/types/api/store/shippingMethod/ShippingMethodPrice.d.ts +1 -1
  147. package/dist/types/clients/store/AccountClient.d.ts +3 -3
  148. package/package.json +1 -1
  149. package/dist/types/api/admin/customer/group/CustomerGroupRegistrationSalesChannels.d.ts +0 -10
  150. package/dist/types/api/admin/customer/group/index.d.ts +0 -2
  151. package/dist/types/api/store/product/ProductManufacturer.d.ts +0 -15
@@ -2,12 +2,12 @@ import { MailTemplate } from "./MailTemplate";
2
2
  import { GenericRecord } from "#types/api/global/GenericRecord";
3
3
  export interface MailTemplateType {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  technicalName: string;
8
8
  name: string;
9
9
  templateData?: object;
10
10
  mailTemplates?: Array<MailTemplate>;
11
11
  customFields?: GenericRecord;
12
- translated?: Record<string, string>;
12
+ translated?: Record<string, any>;
13
13
  }
@@ -2,6 +2,6 @@ import { Media as StoreApiMedia } from "#types/api/store/media/Media";
2
2
  import { User } from "../user/User";
3
3
  export type Media = StoreApiMedia & {
4
4
  userId?: string;
5
- user: User;
5
+ user?: User;
6
6
  mediaFolderId?: string;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { MediaThumbnail as StoreApiMediaThumbnail } from "#types/api/store/media/MediaThumbnail";
2
2
  import { Media } from "../Media";
3
- export type MediaThumbnail = StoreApiMediaThumbnail & {
3
+ export type MediaThumbnail = Omit<StoreApiMediaThumbnail, "media"> & {
4
4
  media?: Media;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  export interface MediaThumbnailSize {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  width: number;
7
7
  height: number;
@@ -3,7 +3,7 @@ import { Tag } from "../Tag";
3
3
  import { Salutation } from "../Salutation";
4
4
  export interface NewsletterRecipient {
5
5
  id: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  readonly confirmedAt?: string;
9
9
  status: string;
@@ -3,7 +3,7 @@ import { NumberRangeType } from "./NumberRangeType";
3
3
  import { NumberRangeState } from "./NumberRangeState";
4
4
  export interface NumberRange {
5
5
  id: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  name: string;
9
9
  description?: string;
@@ -13,5 +13,5 @@ export interface NumberRange {
13
13
  type?: NumberRangeType;
14
14
  state?: NumberRangeState;
15
15
  customFields?: GenericRecord;
16
- translated?: Record<string, string>;
16
+ translated?: Record<string, any>;
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { NumberRange } from "./NumberRange";
2
2
  export interface NumberRangeState {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  lastValue: number;
7
7
  numberRangeId: string;
@@ -1,10 +1,10 @@
1
1
  import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  export interface NumberRangeType {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  technicalName?: string;
7
7
  typeName: string;
8
8
  customFields?: GenericRecord;
9
- translated?: Record<string, string>;
9
+ translated?: Record<string, any>;
10
10
  }
@@ -11,8 +11,8 @@ import { OrderTransaction } from "./transaction/OrderTransaction";
11
11
  import { ShopwareDocument } from "../document/ShopwareDocument";
12
12
  import { Tag } from "../Tag";
13
13
  import { User } from "../user/User";
14
- export type Order = StoreApiOrder & {
15
- readonly createdAt?: string;
14
+ export type Order = Omit<StoreApiOrder, "currency" | "lineItems" | "stateMachineState" | "addresses" | "billingAddress" | "orderCustomer" | "deliveries" | "transactions" | "documents" | "language" | "tags"> & {
15
+ readonly createdAt: string;
16
16
  createdBy?: User;
17
17
  readonly updatedAt?: string;
18
18
  updatedBy?: User;
@@ -2,7 +2,7 @@ import { OrderAddress as StoreApiOrderAddress } from "#types/api/store/order/Ord
2
2
  import { Country } from "../country/Country";
3
3
  import { CountryState } from "../country/CountryState";
4
4
  import { Salutation } from "../Salutation";
5
- export type OrderAddress = StoreApiOrderAddress & {
5
+ export type OrderAddress = Omit<StoreApiOrderAddress, "salutation" | "country" | "countryState"> & {
6
6
  salutation: Salutation;
7
7
  country?: Country;
8
8
  countryState?: CountryState;
@@ -1,7 +1,7 @@
1
1
  import { OrderCustomer as StoreApiOrderCustomer } from "#types/api/store/order/OrderCustomer";
2
2
  import { Customer } from "../customer/Customer";
3
3
  import { Salutation } from "../Salutation";
4
- export type OrderCustomer = StoreApiOrderCustomer & {
4
+ export type OrderCustomer = Omit<StoreApiOrderCustomer, "salutation"> & {
5
5
  remoteAddress?: string;
6
6
  salutation: Salutation;
7
7
  customerId?: string;
@@ -3,7 +3,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
3
3
  import { StateMachineState } from "#types/api/store";
4
4
  import { OrderAddress } from "../OrderAddress";
5
5
  import { OrderDeliveryPosition } from "./OrderDeliveryPosition";
6
- export type OrderDelivery = StoreApiOrderDelivery & {
6
+ export type OrderDelivery = Omit<StoreApiOrderDelivery, "shippingOrderAddress" | "stateMachineState" | "positions"> & {
7
7
  shippingOrderAddress?: OrderAddress;
8
8
  stateMachineState?: StateMachineState;
9
9
  positions?: Array<OrderDeliveryPosition>;
@@ -1,5 +1,5 @@
1
1
  import { OrderDeliveryPosition as StoreApiOrderDeliveryPosition } from "#types/api/store/order/delivery/OrderDeliveryPosition";
2
2
  import { OrderLineItem } from "../lineItem/OrderLineItem";
3
- export type OrderDeliveryPosition = StoreApiOrderDeliveryPosition & {
3
+ export type OrderDeliveryPosition = Omit<StoreApiOrderDeliveryPosition, "orderLineItem"> & {
4
4
  orderLineItem?: OrderLineItem;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import { OrderLineItem as StoreApiOrderLineItem } from "#types/api/store/order/OrderLineItem";
2
2
  import { Media } from "../../media/Media";
3
3
  import { OrderLineItemDownload } from "./OrderLineItemDownload";
4
- export type OrderLineItem = StoreApiOrderLineItem & {
4
+ export type OrderLineItem = Omit<StoreApiOrderLineItem, "parent" | "children" | "cover" | "downloads"> & {
5
5
  parent?: OrderLineItem;
6
6
  children: Array<OrderLineItem>;
7
7
  cover?: Media;
@@ -1,7 +1,7 @@
1
1
  import { OrderLineItemDownload as StoreApiOrderLineItemDownload } from "#types/api/store/order/OrderLineItemDownload";
2
2
  import { OrderLineItem } from "./OrderLineItem";
3
3
  import { Media } from "../../media/Media";
4
- export type OrderLineItemDownload = StoreApiOrderLineItemDownload & {
4
+ export type OrderLineItemDownload = Omit<StoreApiOrderLineItemDownload, "orderLineItem" | "media"> & {
5
5
  orderLineItem?: OrderLineItem;
6
6
  media?: Media;
7
7
  };
@@ -2,7 +2,7 @@ import { OrderTransaction as StoreApiOrderTransaction } from "#types/api/store/o
2
2
  import { StateMachineState } from "../../stateMachine/StateMachineState";
3
3
  import { Order } from "../Order";
4
4
  import { OrderTransactionCapture } from "./capture/OrderTransactionCapture";
5
- export type OrderTransaction = StoreApiOrderTransaction & {
5
+ export type OrderTransaction = Omit<StoreApiOrderTransaction, "stateMachineState" | "captures"> & {
6
6
  stateMachineState?: StateMachineState;
7
7
  order?: Order;
8
8
  captures?: Array<OrderTransactionCapture>;
@@ -2,7 +2,7 @@ import { OrderTransactionCapture as StoreApiOrderTransactionCapture } from "#typ
2
2
  import { StateMachineState } from "../../../stateMachine/StateMachineState";
3
3
  import { OrderTransaction } from "../OrderTransaction";
4
4
  import { OrderTransactionCaptureRefund } from "./OrderTransactionCaptureRefund";
5
- export type OrderTransactionCapture = StoreApiOrderTransactionCapture & {
5
+ export type OrderTransactionCapture = Omit<StoreApiOrderTransactionCapture, "stateMachineState" | "refunds" | "transaction"> & {
6
6
  stateMachineState?: StateMachineState;
7
7
  refunds?: Array<OrderTransactionCaptureRefund>;
8
8
  transaction?: OrderTransaction;
@@ -2,7 +2,7 @@ import { OrderTransactionCaptureRefund as StoreApiOrderTransactionCaptureRefund
2
2
  import { StateMachineState } from "../../../stateMachine/StateMachineState";
3
3
  import { OrderTransactionCapture } from "./OrderTransactionCapture";
4
4
  import { OrderTransactionCaptureRefundPosition } from "./OrderTransactionCaptureRefundPosition";
5
- export type OrderTransactionCaptureRefund = StoreApiOrderTransactionCaptureRefund & {
5
+ export type OrderTransactionCaptureRefund = Omit<StoreApiOrderTransactionCaptureRefund, "stateMachineState" | "transactionCapture" | "positions"> & {
6
6
  stateMachineState?: StateMachineState;
7
7
  transactionCapture?: OrderTransactionCapture;
8
8
  positions?: Array<OrderTransactionCaptureRefundPosition>;
@@ -1,7 +1,7 @@
1
1
  import { OrderTransactionCaptureRefundPosition as StoreApiOrderTransactionCaptureRefundPosition } from "#types/api/store/order/transaction/capture/OrderTransactionCaptureRefundPosition";
2
2
  import { OrderLineItem } from "../../lineItem/OrderLineItem";
3
3
  import { OrderTransactionCaptureRefund } from "./OrderTransactionCaptureRefund";
4
- export type OrderTransactionCaptureRefundPosition = StoreApiOrderTransactionCaptureRefundPosition & {
4
+ export type OrderTransactionCaptureRefundPosition = Omit<StoreApiOrderTransactionCaptureRefundPosition, "orderTransactionCaptureRefund" | "orderLineItem"> & {
5
5
  orderTransactionCaptureRefund?: OrderTransactionCaptureRefund;
6
6
  orderLineItem?: OrderLineItem;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { PaymentMethod as StoreApiPaymentMethod } from "#types/api/store/PaymentMethod";
2
2
  import { Media } from "../media/Media";
3
3
  import { Rule } from "../rule/Rule";
4
- export type PaymentMethod = StoreApiPaymentMethod & {
4
+ export type PaymentMethod = Omit<StoreApiPaymentMethod, "media"> & {
5
5
  handlerIdentifier?: string;
6
6
  readonly formattedHandlerIdentifier?: string;
7
7
  availabilityRuleId?: string;
@@ -1,37 +1,43 @@
1
+ import { CalculatedPrice } from "#types/api/store/price/CalculatedPrice";
2
+ import { Category } from "../category/Category";
3
+ import { CmsPage } from "../cms/CmsPage";
4
+ import { DeliveryTime } from "../DeliveryTime";
5
+ import { MainCategory } from "../category/MainCategory";
6
+ import { Price } from "#types/api/global";
1
7
  import { Product as StoreApiProduct } from "#types/api/store/product/Product";
8
+ import { ProductCrossSelling } from "./crossSelling/ProductCrossSelling";
2
9
  import { ProductDownload } from "./ProductDownload";
3
- import { DeliveryTime } from "../DeliveryTime";
4
10
  import { ProductManufacturer } from "./ProductManufacturer";
5
11
  import { ProductMedia } from "./ProductMedia";
6
- import { CmsPage } from "../cms/CmsPage";
7
- import { ProductCrossSelling } from "./crossSelling/ProductCrossSelling";
8
- import { ProductSearchKeyword } from "./search/ProductSearchKeyword";
9
12
  import { ProductReview } from "./ProductReview";
10
- import { MainCategory } from "../category/MainCategory";
11
- import { SeoUrl } from "../seo/SeoUrl";
13
+ import { ProductSearchKeyword } from "./search/ProductSearchKeyword";
14
+ import { ProductStream } from "./stream/ProductStream";
12
15
  import { PropertyGroupOption } from "../propertyGroup/PropertyGroupOption";
13
- import { Category } from "../category/Category";
16
+ import { SeoUrl } from "../seo/SeoUrl";
14
17
  import { Tag } from "../Tag";
15
- import { CalculatedPrice } from "#types/api/store/price/CalculatedPrice";
16
- import { Price } from "#types/api/global";
17
- export type Product = StoreApiProduct & {
18
+ export type Product = Omit<StoreApiProduct, "children" | "deliveryTime" | "cover" | "media" | "tags" | "properties" | "options" | "streams" | "productReviews" | "crossSellings" | "categories" | "mainCategories" | "seoUrls" | "seoCategory" | "downloads" | "cmsPage"> & {
18
19
  readonly autoIncrement?: number;
19
20
  children?: Array<Product>;
21
+ manufacturerId?: string;
22
+ productManufacturerVersionId?: string;
20
23
  manufacturer?: ProductManufacturer;
24
+ manufacturerNumber?: string;
21
25
  deliveryTime?: DeliveryTime;
22
26
  cover?: ProductMedia;
23
27
  media?: Array<ProductMedia>;
24
28
  tags?: Array<Tag>;
25
29
  searchKeywords?: Array<ProductSearchKeyword>;
26
30
  customSearchKeywords?: Array<string>;
27
- options?: Array<PropertyGroupOption>;
28
31
  properties?: Array<PropertyGroupOption>;
32
+ options?: Array<PropertyGroupOption>;
33
+ streams?: Array<ProductStream>;
29
34
  productReviews?: Array<ProductReview>;
30
35
  crossSellings?: Array<ProductCrossSelling>;
31
36
  categories?: Array<Category>;
32
37
  categoriesRo?: Array<Category>;
33
38
  mainCategories?: Array<MainCategory>;
34
39
  seoUrls?: Array<SeoUrl>;
40
+ seoCategory: Category;
35
41
  price?: Array<Price>;
36
42
  purchasePrices?: Array<CalculatedPrice>;
37
43
  downloads?: Array<ProductDownload>;
@@ -2,10 +2,10 @@ import { ProductDownload as StoreApiProductDownload } from "#types/api/store/pro
2
2
  import { GenericRecord } from "#types/api/global/GenericRecord";
3
3
  import { Product } from "./Product";
4
4
  import { Media } from "../media/Media";
5
- export type ProductDownload = StoreApiProductDownload & {
5
+ export type ProductDownload = Omit<StoreApiProductDownload, "product" | "media"> & {
6
6
  id: string;
7
7
  versionId?: string;
8
- readonly createdAt?: string;
8
+ readonly createdAt: string;
9
9
  readonly updatedAt?: string;
10
10
  position?: number;
11
11
  productId: string;
@@ -1,5 +1,15 @@
1
- import { ProductManufacturer as StoreApiProductManufacturer } from "#types/api/store/product/ProductManufacturer";
1
+ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { Media } from "../media/Media";
3
- export type ProductManufacturer = StoreApiProductManufacturer & {
3
+ export type ProductManufacturer = {
4
+ id: string;
5
+ versionId?: string;
6
+ readonly createdAt: string;
7
+ readonly updatedAt?: string;
8
+ link?: string;
9
+ name: string;
10
+ description?: string;
11
+ mediaId?: string;
4
12
  media?: Media;
13
+ customFields?: GenericRecord;
14
+ translated?: Record<string, any>;
5
15
  };
@@ -3,7 +3,7 @@ import { Media } from "../media/Media";
3
3
  export interface ProductMedia {
4
4
  id: string;
5
5
  versionId?: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  mediaId: string;
9
9
  media?: Media;
@@ -4,7 +4,7 @@ import { CalculatedPrice } from "#types/api/store/price/CalculatedPrice";
4
4
  export interface ProductPrice {
5
5
  id: string;
6
6
  versionId?: string;
7
- readonly createdAt?: string;
7
+ readonly createdAt: string;
8
8
  readonly updatedAt?: string;
9
9
  quantityStart: number;
10
10
  quantityEnd?: number;
@@ -1,6 +1,6 @@
1
1
  export interface ProductSorting {
2
2
  id: string;
3
- readonly createdAt?: string;
3
+ readonly createdAt: string;
4
4
  readonly updatedAt?: string;
5
5
  active?: boolean;
6
6
  label: string;
@@ -8,5 +8,5 @@ export interface ProductSorting {
8
8
  key: string;
9
9
  priority: number;
10
10
  fields: object;
11
- translated?: Record<string, string>;
11
+ translated?: Record<string, any>;
12
12
  }
@@ -1,7 +1,7 @@
1
1
  import { ProductCrossSelling } from "./ProductCrossSelling";
2
2
  export interface ProductCrossSellingAssignedProduct {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  position?: number;
7
7
  crossSelling?: ProductCrossSelling;
@@ -3,7 +3,7 @@ import { Language } from "../../locale/Language";
3
3
  export interface ProductSearchKeyword {
4
4
  id: string;
5
5
  versionId?: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  keyword: string;
9
9
  ranking: number;
@@ -2,7 +2,7 @@ import { Language } from "../../../locale/Language";
2
2
  import { ProductSearchConfigField } from "./ProductSearchConfigField";
3
3
  export interface ProductSearchConfig {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  andLogic?: boolean;
8
8
  minSearchLength?: number;
@@ -2,7 +2,7 @@ import { ProductSearchConfig } from "./ProductSearchConfig";
2
2
  import { CustomField } from "../../../custom/field/CustomField";
3
3
  export interface ProductSearchConfigField {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  field: string;
8
8
  searchConfigId: string;
@@ -1,7 +1,7 @@
1
1
  import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  export interface ProductStreamFilter {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  parentId?: string;
7
7
  parent?: ProductStreamFilter;
@@ -29,9 +29,9 @@ export interface Promotion {
29
29
  readonly orderPerCustomerCount?: number;
30
30
  exclusionIds?: Array<string>;
31
31
  customFields?: GenericRecord;
32
- readonly createdAt?: string;
32
+ readonly createdAt: string;
33
33
  readonly updatedAt?: string;
34
- translated?: Record<string, string>;
34
+ translated?: Record<string, any>;
35
35
  setgroups?: Array<PromotionSetGroup>;
36
36
  salesChannels?: Array<PromotionSalesChannel>;
37
37
  discounts?: Array<PromotionDiscount>;
@@ -1,7 +1,7 @@
1
1
  import { Promotion } from "./Promotion";
2
2
  export interface PromotionIndividualCode {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  code: string;
7
7
  payload?: object;
@@ -2,7 +2,7 @@ import { Promotion } from "./Promotion";
2
2
  import { SalesChannel } from "../salesChannel/SalesChannel";
3
3
  export interface PromotionSalesChannel {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  priority: number;
8
8
  promotionId: string;
@@ -2,7 +2,7 @@ import { Promotion } from "./Promotion";
2
2
  import { PromotionSetGroupRule } from "./rule/PromotionSetGroupRule";
3
3
  export interface PromotionSetGroup {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  value: number;
8
8
  packagerKey: string;
@@ -2,7 +2,7 @@ import { Rule } from "../../rule/Rule";
2
2
  import { PromotionDiscountPrice } from "./PromotionDiscountPrice";
3
3
  export interface PromotionDiscount {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  type: "absolute" | "percentage";
8
8
  scope: string;
@@ -1,7 +1,7 @@
1
1
  import { Currency } from "../../currency/Currency";
2
2
  export interface PromotionDiscountPrice {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  price: number;
7
7
  currencyId: string;
@@ -1,5 +1,5 @@
1
1
  import { PropertyGroup as StoreApiPropertyGroup } from "#types/api/store/propertyGroup/PropertyGroup";
2
2
  import { PropertyGroupOption } from "./PropertyGroupOption";
3
- export type PropertyGroup = StoreApiPropertyGroup & {
3
+ export type PropertyGroup = Omit<StoreApiPropertyGroup, "options"> & {
4
4
  options?: Array<PropertyGroupOption>;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import { PropertyGroupOption as StoreApiPropertyGroupOption } from "#types/api/store/propertyGroup/PropertyGroupOption";
2
2
  import { Media } from "../media/Media";
3
3
  import { PropertyGroup } from "./PropertyGroup";
4
- export type PropertyGroupOption = StoreApiPropertyGroupOption & {
4
+ export type PropertyGroupOption = Omit<StoreApiPropertyGroupOption, "media" | "group"> & {
5
5
  media?: Media;
6
6
  group?: PropertyGroup;
7
7
  };
@@ -2,7 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { Rule } from "./Rule";
3
3
  export interface RuleCondition {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  parentId?: string;
8
8
  parent?: RuleCondition;
@@ -5,14 +5,14 @@ import { Country } from "../country/Country";
5
5
  import { PaymentMethod } from "../paymentMethod/PaymentMethod";
6
6
  import { ShippingMethod } from "../shippingMethod/ShippingMethod";
7
7
  import { SalesChannelType } from "./SalesChannelType";
8
- import { CustomerGroup } from "../customer/group/CustomerGroup";
8
+ import { CustomerGroup } from "../customer/CustomerGroup";
9
9
  import { CmsPage } from "../cms/CmsPage";
10
10
  import { SalesChannelDomain } from "./SalesChannelDomain";
11
11
  import { SystemConfigEntry } from "../SystemConfigEntry";
12
12
  import { MailHeaderFooter } from "../mail/MailHeaderFooter";
13
13
  import { MainCategory } from "../category/MainCategory";
14
14
  import { LandingPage } from "../cms/landingPage/LandingPage";
15
- export type SalesChannel = StoreApiSalesChannel & {
15
+ export type SalesChannel = Omit<StoreApiSalesChannel, "language" | "languages" | "countries" | "currencies" | "paymentMethod" | "paymentMethods" | "shippingMethod" | "shippingMethods"> & {
16
16
  readonly accessKey: string;
17
17
  type?: SalesChannelType;
18
18
  taxCalculationType?: "horizontal" | "vertical";
@@ -3,7 +3,7 @@ import { Language } from "../locale/Language";
3
3
  import { Currency } from "../currency/Currency";
4
4
  export interface SalesChannelDomain {
5
5
  id: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  url: string;
9
9
  hreflangUseOnlyLocale?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  export interface SalesChannelType {
3
3
  id: string;
4
- readonly createdAt?: string;
4
+ readonly createdAt: string;
5
5
  readonly updatedAt?: string;
6
6
  name: string;
7
7
  description?: string;
@@ -10,5 +10,5 @@ export interface SalesChannelType {
10
10
  coverUrl?: string;
11
11
  screenshotUrls?: Array<string>;
12
12
  customFields?: GenericRecord;
13
- translated?: Record<string, string>;
13
+ translated?: Record<string, any>;
14
14
  }
@@ -2,7 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { Language } from "../locale/Language";
3
3
  export interface SeoUrl {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  error?: string;
8
8
  url?: string;
@@ -2,7 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { SalesChannel } from "../salesChannel/SalesChannel";
3
3
  export interface SeoUrlTemplate {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  isValid?: boolean;
8
8
  entityName: string;
@@ -2,7 +2,7 @@ import { ShippingMethod } from "./ShippingMethod";
2
2
  import { Media } from "../media/Media";
3
3
  export interface AppShippingMethod {
4
4
  id: string;
5
- readonly createdAt?: string;
5
+ readonly createdAt: string;
6
6
  readonly updatedAt?: string;
7
7
  appName: string;
8
8
  identifier: string;
@@ -3,7 +3,7 @@ import { Rule } from "../rule/Rule";
3
3
  import { ShippingMethodPrice } from "./ShippingMethodPrice";
4
4
  import { Media } from "../media/Media";
5
5
  import { Tag } from "../Tag";
6
- export type ShippingMethod = StoreApiShippingMethod & {
6
+ export type ShippingMethod = Omit<StoreApiShippingMethod, "media" | "tags" | "prices" | "availabilityRule"> & {
7
7
  media?: Media;
8
8
  tags?: Array<Tag>;
9
9
  prices?: Array<ShippingMethodPrice>;
@@ -1,5 +1,5 @@
1
1
  import { ShippingMethodPrice as StoreApiShippingMethodPrice } from "#types/api/store/shippingMethod/ShippingMethodPrice";
2
2
  import { Rule } from "../rule/Rule";
3
- export type ShippingMethodPrice = StoreApiShippingMethodPrice & {
3
+ export type ShippingMethodPrice = Omit<StoreApiShippingMethodPrice, "calculationRule"> & {
4
4
  calculationRule?: Rule;
5
5
  };
@@ -4,7 +4,7 @@ import { StateMachineTransition } from "./StateMachineTransition";
4
4
  import { StateMachineHistory } from "./StateMachineHistory";
5
5
  export interface StateMachine {
6
6
  id: string;
7
- readonly createdAt?: string;
7
+ readonly createdAt: string;
8
8
  readonly updatedAt?: string;
9
9
  technicalName: string;
10
10
  name: string;
@@ -13,5 +13,5 @@ export interface StateMachine {
13
13
  transitions?: Array<StateMachineTransition>;
14
14
  historyEntries?: Array<StateMachineHistory>;
15
15
  customFields?: GenericRecord;
16
- translated?: Record<string, string>;
16
+ translated?: Record<string, any>;
17
17
  }
@@ -3,7 +3,7 @@ import { StateMachineState } from "./StateMachineState";
3
3
  import { User } from "../user/User";
4
4
  export interface StateMachineHistory {
5
5
  id: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  referencedId: string;
9
9
  referencedVersionId: string;
@@ -3,7 +3,7 @@ import { StateMachine } from "./StateMachine";
3
3
  import { StateMachineState } from "./StateMachineState";
4
4
  export interface StateMachineTransition {
5
5
  id: string;
6
- readonly createdAt?: string;
6
+ readonly createdAt: string;
7
7
  readonly updatedAt?: string;
8
8
  actionName: string;
9
9
  stateMachineId: string;