This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(multiple): Delete Collections; delete Entity suffixes; use Custom…
…Field interface
- Loading branch information
Showing
69 changed files
with
336 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
packages/shopware-6-client/src/interfaces/models/system/country/CountryCollection.ts
This file was deleted.
Oops, something went wrong.
15 changes: 8 additions & 7 deletions
15
packages/shopware-6-client/src/interfaces/models/system/country/CountryState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { Country } from "./Country"; | ||
import { CountryStateTranslation } from "./CountryStateTranslation"; | ||
import { CustomerAddress } from "../../checkout/customer/CustomerAddress"; | ||
import { OrderAddress } from "../../checkout/order/OrderAddress"; | ||
import { CustomerAddressCollection } from "../../checkout/customer/CustomerAddressCollection"; | ||
import { CountryStateTranslationCollection } from "./CountryStateTranslationCollection"; | ||
import { CustomField } from "../../common/CustomField"; | ||
|
||
export interface CountryState { | ||
countryId: string; | ||
shortCode: string; | ||
name: string | null; | ||
position: number; | ||
active: boolean; | ||
country: Country | null; | ||
translations: CountryStateTranslationCollection | null; | ||
customerAddresses: CustomerAddressCollection | null; | ||
orderAddressCollection: OrderAddress | null; | ||
customFields: iCustomField; | ||
translations: CountryStateTranslation[] | null; | ||
customerAddresses: CustomerAddress[] | null; | ||
orderAddresses: OrderAddress[] | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
packages/shopware-6-client/src/interfaces/models/system/country/CountryStateCollection.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/shopware-6-client/src/interfaces/models/system/country/CountryStateTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { CountryState } from "./CountryState"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface CountryStateTranslation { | ||
countryStateId: string; | ||
name: string | null; | ||
countryState: CountryState | null; | ||
customFields: iCustomField; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
...opware-6-client/src/interfaces/models/system/country/CountryStateTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/shopware-6-client/src/interfaces/models/system/country/CountryTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { Country } from "./Country"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface CountryTranslation { | ||
countryId: string; | ||
name: string | null; | ||
country: Country | null; | ||
customFields: iCustomField | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
...es/shopware-6-client/src/interfaces/models/system/country/CountryTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/shopware-6-client/src/interfaces/models/system/currency/CurrencyTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Currency } from "./Currency"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface CurrencyTranslation { | ||
currencyId: string; | ||
shortName: string | null; | ||
name: string | null; | ||
currency: Currency | null; | ||
customFields: [] | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
.../shopware-6-client/src/interfaces/models/system/currency/CurrencyTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
16 changes: 9 additions & 7 deletions
16
packages/shopware-6-client/src/interfaces/models/system/locale/Locale.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { LocaleTranslationCollection } from "./LocaleTranslationCollection"; | ||
import { LanguageCollection } from "../../framework/language/LanguageCollection"; | ||
import { UserCollection } from "../user/UserCollection"; | ||
import { LocaleTranslation } from "./LocaleTranslation"; | ||
import { User } from "../user/User"; | ||
import { Language } from "../../framework/language/Language"; | ||
import { CustomField } from "../../common/CustomField"; | ||
|
||
export interface Locale { | ||
code: string; | ||
name: string | null; | ||
territory: string | null; | ||
translations: LocaleTranslationCollection | null; | ||
users: UserCollection | null; | ||
languages: LanguageCollection | null; | ||
customFields: [] | null; | ||
translations: LocaleTranslation[] | null; | ||
users: User[] | null; | ||
languages: Language[] | null; | ||
customFields: CustomField | null; | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/shopware-6-client/src/interfaces/models/system/locale/LocaleTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Locale } from "./Locale"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface LocaleTranslation { | ||
localeId: string; | ||
name: string | null; | ||
territory: string | null; | ||
locale: Locale | null; | ||
customFields: [] | null; | ||
customFields: CustomField | null; | ||
} |
4 changes: 0 additions & 4 deletions
4
...ages/shopware-6-client/src/interfaces/models/system/locale/LocaleTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...ages/shopware-6-client/src/interfaces/models/system/number-range/NumberRangeCollection.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...es/shopware-6-client/src/interfaces/models/system/number-range/NumberRangeSalesChannel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { SalesChannelEntity } from "../sales-channel/SalesChannelEntity"; | ||
import { SalesChannel } from "../sales-channel/SalesChannel"; | ||
import { NumberRange } from "./NumberRange"; | ||
import { NumberRangeType } from "./NumberRangeType"; | ||
export interface NumberRangeSalesChannel { | ||
numberRangeId: string; | ||
salesChannelId: string; | ||
numberRange: NumberRange | null; | ||
salesChannel: SalesChannelEntity | null; | ||
salesChannel: SalesChannel | null; | ||
numberRangeType: NumberRangeType | null; | ||
} |
4 changes: 0 additions & 4 deletions
4
...e-6-client/src/interfaces/models/system/number-range/NumberRangeSalesChannelCollection.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ges/shopware-6-client/src/interfaces/models/system/number-range/NumberRangeTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { NumberRange } from "./NumberRange"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface NumberRangeTranslation { | ||
numberRangeId: string; | ||
name: string | null; | ||
description: string | null; | ||
numberRange: NumberRange | null; | ||
customFields: iCustomField | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
...re-6-client/src/interfaces/models/system/number-range/NumberRangeTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
13 changes: 7 additions & 6 deletions
13
packages/shopware-6-client/src/interfaces/models/system/number-range/NumberRangeType.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { NumberRangeCollection } from "./NumberRangeCollection"; | ||
import { NumberRange } from "./NumberRange"; | ||
import { NumberRangeSalesChannel } from "./NumberRangeSalesChannel"; | ||
import { NumberRangeTypeTranslationCollection } from "./NumberRangeTypeTranslationCollection"; | ||
import { CustomField } from "../../common/CustomField"; | ||
import { NumberRangeTypeTranslation } from "./NumberRangeTypeTranslation"; | ||
|
||
export interface NumberRangeType { | ||
typeName: string; | ||
technicalName: string; | ||
global: boolean; | ||
numberRanges: NumberRangeCollection | null; | ||
numberRanges: NumberRange[] | null; | ||
numberRangeSalesChannels: NumberRangeSalesChannel | null; | ||
customFields: iCustomField | null; | ||
translations: NumberRangeTypeTranslationCollection | null; | ||
customFields: CustomField[]; | ||
translations: NumberRangeTypeTranslation[] | null; | ||
} |
6 changes: 3 additions & 3 deletions
6
...shopware-6-client/src/interfaces/models/system/number-range/NumberRangeTypeTranslation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { iCustomField } from "../../Common"; | ||
import { NumberRangeType } from "./NumberRangeType"; | ||
interface NumberRangeTypeTranslation { | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface NumberRangeTypeTranslation { | ||
numberRangeTypeId: string; | ||
typeName: string | null; | ||
numberRangeType: NumberRangeType | null; | ||
customFields: iCustomField | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
...-client/src/interfaces/models/system/number-range/NumberRangeTypeTranslationCollection.ts
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
packages/shopware-6-client/src/interfaces/models/system/sales-channel/SalesChannel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import { CurrencyTranslation } from "../currency/CurrencyTranslation"; | ||
import { Language } from "../../framework/language/Language"; | ||
import { SalesChannelType } from "./SalesChannelType"; | ||
import { Currency } from "../currency/Currency"; | ||
import { PaymentMethod } from "../../checkout/payment/PaymentMethod"; | ||
import { ShippingMethodPrice } from "../../checkout/shipping/ShippingMethodPrice"; | ||
import { Country } from "../country/Country"; | ||
import { Order } from "../../checkout/order/Order"; | ||
import { Customer } from "../../checkout/customer/Customer"; | ||
import { Category } from "packages/shopware-6-client/src"; | ||
import { ProductVisibility } from "../../content/product/ProductVisibility"; | ||
import { MailTemplateSalesChannel } from "../../content/mail-template/MailTemplateSalesChannel"; | ||
import { NumberRangeSalesChannel } from "../number-range/NumberRangeSalesChannel"; | ||
import { MailHeaderFooter } from "../../content/mail-template/MailHeaderFooter"; | ||
import { CustomerGroup } from "../../checkout/customer/CustomerGroup"; | ||
import { NewsletterRecipient } from "../../content/newsletter/NewsletterRecipient"; | ||
import { PromotionSalesChannel } from "../../checkout/promotion/PromotionSalesChannel"; | ||
import { DocumentBaseConfigDefinition } from "../../checkout/document/DocumentBaseConfigDefinition"; | ||
import { ShippingMethod } from "../../checkout/shipping/ShippingMethod"; | ||
import { SalesChannelTranslation } from "./SalesChannelTranslation"; | ||
import { SalesChannelDomain } from "./SalesChannelDomain"; | ||
import { SystemConfig } from "../system-config/SystemConfig"; | ||
import { ProductReview } from "../../content/product/ProductReview"; | ||
import { CustomField } from "../../common/CustomField"; | ||
|
||
export interface SalesChannel { | ||
typeId: string; | ||
languageId: string; | ||
currencyId: string; | ||
paymentMethodId: string; | ||
shippingMethodId: string; | ||
countryId: string; | ||
navigationCategoryId: string; | ||
footerCategoryId: string | null; | ||
serviceCategoryId: string | null; | ||
name: string | null; | ||
shortName: string | null; | ||
accessKey: string; | ||
currencies: CurrencyTranslation[] | null; | ||
languages: Language[] | null; | ||
configuration: [] | null; | ||
active: boolean; | ||
type: SalesChannelType | null; | ||
currency: Currency | null; | ||
language: Language | null; | ||
paymentMethod: PaymentMethod | null; | ||
shippingMethod: ShippingMethodPrice | null; | ||
country: Country | null; | ||
orders: Order[] | null; | ||
customers: Customer[] | null; | ||
countries: Country[] | null; | ||
paymentMethods: PaymentMethod[] | null; | ||
shippingMethods: ShippingMethod[] | null; | ||
translations: SalesChannelTranslation[] | null; | ||
domains: SalesChannelDomain[] | null; | ||
systemConfigs: SystemConfig[] | null; | ||
customFields: CustomField[]; | ||
naigationCategory: Category | null; | ||
footerCategory: Category | null; | ||
serviceCategory: Category | null; | ||
productVisibilities: ProductVisibility[] | null; | ||
mailTemplates: MailTemplateSalesChannel[] | null; | ||
mailHeaderFooterId: string | null; | ||
numberRangeSalesChannels: NumberRangeSalesChannel[] | null; | ||
mailHeaderFooter: MailHeaderFooter | null; | ||
customerGroupId: string | null; | ||
customerGroup: CustomerGroup | null; | ||
newsletterRecipients: NewsletterRecipient[] | null; | ||
promotionSalesChannels: PromotionSalesChannel[] | null; | ||
documentBaseConfigSalesChannels: DocumentBaseConfigDefinition | null; | ||
productReviews: ProductReview[] | null; | ||
} |
4 changes: 0 additions & 4 deletions
4
...es/shopware-6-client/src/interfaces/models/system/sales-channel/SalesChannelCollection.ts
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/shopware-6-client/src/interfaces/models/system/sales-channel/SalesChannelDomain.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Language } from "../../framework/language/Language"; | ||
import { SalesChannel } from "./SalesChannel"; | ||
import { SnippetSet } from "../../framework/snippet/SnippetSet"; | ||
import { Currency } from "../currency/Currency"; | ||
import { CustomField } from "../../common/CustomField"; | ||
export interface SalesChannelDomain { | ||
url: string; | ||
currencyId: string | null; | ||
currency: Currency | null; | ||
snippetSetId: string | null; | ||
snippetSet: SnippetSet | null; | ||
salesChannelId: string; | ||
salesChannel: SalesChannel | null; | ||
languageId: string; | ||
language: Language | null; | ||
customFields: CustomField[]; | ||
} |
4 changes: 0 additions & 4 deletions
4
...pware-6-client/src/interfaces/models/system/sales-channel/SalesChannelDomainCollection.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.