Skip to content

Commit

Permalink
feat(core): Add custom field support for Payment, Refund, ShippingLin…
Browse files Browse the repository at this point in the history
…e, StockLevel, StockMovement, Session, HistoryEntry

Relates to #3044
  • Loading branch information
michaelbromley authored Nov 26, 2024
1 parent 7706e35 commit 1167102
Show file tree
Hide file tree
Showing 23 changed files with 56,568 additions and 24,122 deletions.
18 changes: 18 additions & 0 deletions packages/admin-ui/src/lib/core/src/common/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export type AdministratorSortParameter = {
export type Allocation = Node & StockMovement & {
__typename?: 'Allocation';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
orderLine: OrderLine;
productVariant: ProductVariant;
Expand Down Expand Up @@ -380,6 +381,7 @@ export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTra
export type Cancellation = Node & StockMovement & {
__typename?: 'Cancellation';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
orderLine: OrderLine;
productVariant: ProductVariant;
Expand Down Expand Up @@ -1365,19 +1367,26 @@ export type CustomFields = {
FacetValue: Array<CustomFieldConfig>;
Fulfillment: Array<CustomFieldConfig>;
GlobalSettings: Array<CustomFieldConfig>;
HistoryEntry: Array<CustomFieldConfig>;
Order: Array<CustomFieldConfig>;
OrderLine: Array<CustomFieldConfig>;
Payment: Array<CustomFieldConfig>;
PaymentMethod: Array<CustomFieldConfig>;
Product: Array<CustomFieldConfig>;
ProductOption: Array<CustomFieldConfig>;
ProductOptionGroup: Array<CustomFieldConfig>;
ProductVariant: Array<CustomFieldConfig>;
ProductVariantPrice: Array<CustomFieldConfig>;
Promotion: Array<CustomFieldConfig>;
Refund: Array<CustomFieldConfig>;
Region: Array<CustomFieldConfig>;
Seller: Array<CustomFieldConfig>;
Session: Array<CustomFieldConfig>;
ShippingLine: Array<CustomFieldConfig>;
ShippingMethod: Array<CustomFieldConfig>;
StockLevel: Array<CustomFieldConfig>;
StockLocation: Array<CustomFieldConfig>;
StockMovement: Array<CustomFieldConfig>;
TaxCategory: Array<CustomFieldConfig>;
TaxRate: Array<CustomFieldConfig>;
User: Array<CustomFieldConfig>;
Expand Down Expand Up @@ -1982,6 +1991,7 @@ export type HistoryEntry = Node & {
__typename?: 'HistoryEntry';
administrator?: Maybe<Administrator>;
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
data: Scalars['JSON']['output'];
id: Scalars['ID']['output'];
isPublic: Scalars['Boolean']['output'];
Expand Down Expand Up @@ -4328,6 +4338,7 @@ export type Payment = Node & {
__typename?: 'Payment';
amount: Scalars['Money']['output'];
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
errorMessage?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
metadata?: Maybe<Scalars['JSON']['output']>;
Expand Down Expand Up @@ -5523,6 +5534,7 @@ export type Refund = Node & {
__typename?: 'Refund';
adjustment: Scalars['Money']['output'];
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
items: Scalars['Money']['output'];
lines: Array<RefundLine>;
Expand Down Expand Up @@ -5642,6 +5654,7 @@ export type RelationCustomFieldConfig = CustomField & {
export type Release = Node & StockMovement & {
__typename?: 'Release';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
productVariant: ProductVariant;
quantity: Scalars['Int']['output'];
Expand Down Expand Up @@ -5699,6 +5712,7 @@ export type RemoveStockLocationsFromChannelInput = {
export type Return = Node & StockMovement & {
__typename?: 'Return';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
productVariant: ProductVariant;
quantity: Scalars['Int']['output'];
Expand Down Expand Up @@ -5757,6 +5771,7 @@ export type RoleSortParameter = {
export type Sale = Node & StockMovement & {
__typename?: 'Sale';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
productVariant: ProductVariant;
quantity: Scalars['Int']['output'];
Expand Down Expand Up @@ -5919,6 +5934,7 @@ export type SettleRefundResult = Refund | RefundStateTransitionError;

export type ShippingLine = {
__typename?: 'ShippingLine';
customFields?: Maybe<Scalars['JSON']['output']>;
discountedPrice: Scalars['Money']['output'];
discountedPriceWithTax: Scalars['Money']['output'];
discounts: Array<Discount>;
Expand Down Expand Up @@ -6031,6 +6047,7 @@ export enum SortOrder {
export type StockAdjustment = Node & StockMovement & {
__typename?: 'StockAdjustment';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
productVariant: ProductVariant;
quantity: Scalars['Int']['output'];
Expand All @@ -6041,6 +6058,7 @@ export type StockAdjustment = Node & StockMovement & {
export type StockLevel = Node & {
__typename?: 'StockLevel';
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
stockAllocated: Scalars['Int']['output'];
stockLocation: StockLocation;
Expand Down
Loading

0 comments on commit 1167102

Please sign in to comment.