@vendure/admin-ui 3.1.0 → 3.1.2

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/LICENSE.md CHANGED
@@ -24,6 +24,11 @@ GNU General Public License for more details.
24
24
  You should have received a copy of the GNU General Public License
25
25
  along with this program. If not, see <http://www.gnu.org/licenses/>.
26
26
 
27
+ Additional permission under GNU GPL version 3 section 7:
28
+
29
+ An additional exception under section 7 of the GPL is included in the plugin-exception.txt file,
30
+ which allows you to distribute Vendure plugins (i.e. extensions) under a different license.
31
+
27
32
  ## Vendure Commercial License (VCL)
28
33
 
29
34
  Alternatively, commercial and supported versions of the program - also known as
@@ -17,6 +17,7 @@ export declare class ProductVariantDetailComponent extends TypedBaseDetailCompon
17
17
  private changeDetector;
18
18
  readonly updatePermissions: Permission[];
19
19
  readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
20
+ readonly customPriceFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
20
21
  readonly customOptionFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
21
22
  stockLevels$: Observable<NonNullable<GetProductVariantDetailQuery['productVariant']>['stockLevels']>;
22
23
  detailForm: FormGroup<{
@@ -42,6 +43,7 @@ export declare class ProductVariantDetailComponent extends TypedBaseDetailCompon
42
43
  price: FormControl<number | null>;
43
44
  currencyCode: FormControl<CurrencyCode | null>;
44
45
  delete: FormControl<boolean | null>;
46
+ customFields: FormGroup<any>;
45
47
  }>>;
46
48
  assetChanges: SelectedAssets;
47
49
  taxCategories$: Observable<Array<ItemOf<GetProductVariantDetailQuery, 'taxCategories'>>>;
@@ -7,7 +7,7 @@ export declare class ProductVariantListComponent extends TypedBaseListComponent<
7
7
  dataTableId: DataTableLocationId | undefined;
8
8
  readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
9
9
  readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<ProductVariantFilterParameter>;
10
- readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "price" | "sku" | "id" | "createdAt" | "updatedAt" | "priceWithTax"]>;
10
+ readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "id" | "createdAt" | "updatedAt" | "price" | "priceWithTax" | "sku"]>;
11
11
  constructor();
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantListComponent, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantListComponent, "vdr-product-variant-list", never, { "productId": { "alias": "productId"; "required": false; }; "hideLanguageSelect": { "alias": "hideLanguageSelect"; "required": false; }; "dataTableId": { "alias": "dataTableId"; "required": false; }; }, {}, never, never, false, never>;
@@ -836,6 +836,7 @@ export type CreateProductVariantInput = {
836
836
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
837
837
  outOfStockThreshold?: InputMaybe<Scalars['Int']['input']>;
838
838
  price?: InputMaybe<Scalars['Money']['input']>;
839
+ prices?: InputMaybe<Array<InputMaybe<CreateProductVariantPriceInput>>>;
839
840
  productId: Scalars['ID']['input'];
840
841
  sku: Scalars['String']['input'];
841
842
  stockLevels?: InputMaybe<Array<StockLevelInput>>;
@@ -850,6 +851,11 @@ export type CreateProductVariantOptionInput = {
850
851
  optionGroupId: Scalars['ID']['input'];
851
852
  translations: Array<ProductOptionTranslationInput>;
852
853
  };
854
+ export type CreateProductVariantPriceInput = {
855
+ currencyCode: CurrencyCode;
856
+ customFields?: InputMaybe<Scalars['JSON']['input']>;
857
+ price: Scalars['Money']['input'];
858
+ };
853
859
  export type CreatePromotionInput = {
854
860
  actions: Array<ConfigurableOperationInput>;
855
861
  conditions: Array<ConfigurableOperationInput>;
@@ -4348,15 +4354,6 @@ export type ProductVariantPrice = {
4348
4354
  customFields?: Maybe<Scalars['JSON']['output']>;
4349
4355
  price: Scalars['Money']['output'];
4350
4356
  };
4351
- /**
4352
- * Used to set up update the price of a ProductVariant in a particular Channel.
4353
- * If the `delete` flag is `true`, the price will be deleted for the given Channel.
4354
- */
4355
- export type ProductVariantPriceInput = {
4356
- currencyCode: CurrencyCode;
4357
- delete?: InputMaybe<Scalars['Boolean']['input']>;
4358
- price: Scalars['Money']['input'];
4359
- };
4360
4357
  export type ProductVariantSortParameter = {
4361
4358
  createdAt?: InputMaybe<SortOrder>;
4362
4359
  id?: InputMaybe<SortOrder>;
@@ -5818,7 +5815,7 @@ export type UpdateProductVariantInput = {
5818
5815
  /** Sets the price for the ProductVariant in the Channel's default currency */
5819
5816
  price?: InputMaybe<Scalars['Money']['input']>;
5820
5817
  /** Allows multiple prices to be set for the ProductVariant in different currencies. */
5821
- prices?: InputMaybe<Array<ProductVariantPriceInput>>;
5818
+ prices?: InputMaybe<Array<UpdateProductVariantPriceInput>>;
5822
5819
  sku?: InputMaybe<Scalars['String']['input']>;
5823
5820
  stockLevels?: InputMaybe<Array<StockLevelInput>>;
5824
5821
  stockOnHand?: InputMaybe<Scalars['Int']['input']>;
@@ -5827,6 +5824,16 @@ export type UpdateProductVariantInput = {
5827
5824
  translations?: InputMaybe<Array<ProductVariantTranslationInput>>;
5828
5825
  useGlobalOutOfStockThreshold?: InputMaybe<Scalars['Boolean']['input']>;
5829
5826
  };
5827
+ /**
5828
+ * Used to set up update the price of a ProductVariant in a particular Channel.
5829
+ * If the `delete` flag is `true`, the price will be deleted for the given Channel.
5830
+ */
5831
+ export type UpdateProductVariantPriceInput = {
5832
+ currencyCode: CurrencyCode;
5833
+ customFields?: InputMaybe<Scalars['JSON']['input']>;
5834
+ delete?: InputMaybe<Scalars['Boolean']['input']>;
5835
+ price: Scalars['Money']['input'];
5836
+ };
5830
5837
  export type UpdatePromotionInput = {
5831
5838
  actions?: InputMaybe<Array<ConfigurableOperationInput>>;
5832
5839
  conditions?: InputMaybe<Array<ConfigurableOperationInput>>;
@@ -13623,6 +13630,11 @@ export type ProductOptionFragment = {
13623
13630
  name: string;
13624
13631
  }>;
13625
13632
  };
13633
+ export type ProductVariantPriceFragment = {
13634
+ __typename?: 'ProductVariantPrice';
13635
+ price: number;
13636
+ currencyCode: CurrencyCode;
13637
+ };
13626
13638
  export type ProductVariantFragment = {
13627
13639
  __typename?: 'ProductVariant';
13628
13640
  id: string;
@@ -20344,6 +20356,7 @@ export type ZoneListItemFragment = {
20344
20356
  name: string;
20345
20357
  };
20346
20358
  export declare const ProductListQueryProductFragmentFragmentDoc: DocumentNode<ProductListQueryProductFragmentFragment, unknown>;
20359
+ export declare const ProductVariantPriceFragmentDoc: DocumentNode<ProductVariantPriceFragment, unknown>;
20347
20360
  export declare const ProductOptionFragmentDoc: DocumentNode<ProductOptionFragment, unknown>;
20348
20361
  export declare const AssetFragmentDoc: DocumentNode<AssetFragment, unknown>;
20349
20362
  export declare const ProductVariantDetailQueryProductVariantFragmentFragmentDoc: DocumentNode<ProductVariantDetailQueryProductVariantFragmentFragment, unknown>;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "3.1.0";
1
+ export declare const ADMIN_UI_VERSION = "3.1.2";
@@ -2,6 +2,7 @@ export declare const ASSET_FRAGMENT: import("apollo-angular").TypedDocumentNode<
2
2
  export declare const TAG_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
3
3
  export declare const PRODUCT_OPTION_GROUP_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
4
4
  export declare const PRODUCT_OPTION_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
5
+ export declare const PRODUCT_VARIANT_PRICE_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
5
6
  export declare const PRODUCT_VARIANT_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
6
7
  export declare const PRODUCT_DETAIL_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
7
8
  export declare const PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
@@ -92,7 +92,7 @@ export declare function registerRouteComponent<Component extends any | BaseDetai
92
92
  component: typeof AngularRouteComponent;
93
93
  title?: string | Type<import("@angular/router").Resolve<string>> | ResolveFn<string> | undefined;
94
94
  path: string;
95
- pathMatch?: "prefix" | "full" | undefined;
95
+ pathMatch?: "full" | "prefix" | undefined;
96
96
  matcher?: import("@angular/router").UrlMatcher | undefined;
97
97
  loadComponent?: (() => Type<unknown> | Observable<Type<unknown> | import("@angular/router").DefaultExport<Type<unknown>>> | Promise<Type<unknown> | import("@angular/router").DefaultExport<Type<unknown>>>) | undefined;
98
98
  redirectTo?: string | undefined;
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  */
12
12
  export declare class OrderStateLabelComponent {
13
13
  state: string;
14
- get chipColorType(): "error" | "success" | "" | "warning";
14
+ get chipColorType(): "error" | "success" | "warning" | "";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderStateLabelComponent, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderStateLabelComponent, "vdr-order-state-label", never, { "state": { "alias": "state"; "required": false; }; }, {}, never, ["*"], false, never>;
17
17
  }
@@ -13,7 +13,7 @@ import { SelectFormInputComponent } from './select-form-input/select-form-input.
13
13
  import { StructFormInputComponent } from './struct-form-input/struct-form-input.component';
14
14
  import { TextFormInputComponent } from './text-form-input/text-form-input.component';
15
15
  import { TextareaFormInputComponent } from './textarea-form-input/textarea-form-input.component';
16
- export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof JsonEditorFormInputComponent | typeof CombinationModeFormInputComponent | typeof CurrencyFormInputComponent | typeof CustomerGroupFormInputComponent | typeof DateFormInputComponent | typeof PasswordFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof RelationFormInputComponent | typeof SelectFormInputComponent | typeof StructFormInputComponent | typeof TextFormInputComponent | typeof TextareaFormInputComponent)[];
16
+ export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof StructFormInputComponent | typeof SelectFormInputComponent | typeof RelationFormInputComponent | typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof CurrencyFormInputComponent | typeof TextareaFormInputComponent | typeof TextFormInputComponent | typeof PasswordFormInputComponent | typeof DateFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
17
17
  /**
18
18
  * Registers the default form input components.
19
19
  */