@vendure/common 1.0.0-beta.7 → 1.0.3

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.
@@ -391,6 +391,12 @@ export declare type ProductVariantList = PaginatedList & {
391
391
  items: Array<ProductVariant>;
392
392
  totalItems: Scalars['Int'];
393
393
  };
394
+ export declare type ProductVariantListOptions = {
395
+ skip?: Maybe<Scalars['Int']>;
396
+ take?: Maybe<Scalars['Int']>;
397
+ sort?: Maybe<ProductVariantSortParameter>;
398
+ filter?: Maybe<ProductVariantFilterParameter>;
399
+ };
394
400
  export declare enum GlobalFlag {
395
401
  TRUE = "TRUE",
396
402
  FALSE = "FALSE",
@@ -422,22 +428,24 @@ export declare enum Permission {
422
428
  Owner = "Owner",
423
429
  /** Public means any unauthenticated user may perform the operation */
424
430
  Public = "Public",
425
- /** Grants permission to create Catalog */
431
+ /** Grants permission to update GlobalSettings */
432
+ UpdateGlobalSettings = "UpdateGlobalSettings",
433
+ /** Grants permission to create Products, Facets, Assets, Collections */
426
434
  CreateCatalog = "CreateCatalog",
427
- /** Grants permission to read Catalog */
435
+ /** Grants permission to read Products, Facets, Assets, Collections */
428
436
  ReadCatalog = "ReadCatalog",
429
- /** Grants permission to update Catalog */
437
+ /** Grants permission to update Products, Facets, Assets, Collections */
430
438
  UpdateCatalog = "UpdateCatalog",
431
- /** Grants permission to delete Catalog */
439
+ /** Grants permission to delete Products, Facets, Assets, Collections */
432
440
  DeleteCatalog = "DeleteCatalog",
433
- /** Grants permission to create Customer */
434
- CreateCustomer = "CreateCustomer",
435
- /** Grants permission to read Customer */
436
- ReadCustomer = "ReadCustomer",
437
- /** Grants permission to update Customer */
438
- UpdateCustomer = "UpdateCustomer",
439
- /** Grants permission to delete Customer */
440
- DeleteCustomer = "DeleteCustomer",
441
+ /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
442
+ CreateSettings = "CreateSettings",
443
+ /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
444
+ ReadSettings = "ReadSettings",
445
+ /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
446
+ UpdateSettings = "UpdateSettings",
447
+ /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
448
+ DeleteSettings = "DeleteSettings",
441
449
  /** Grants permission to create Administrator */
442
450
  CreateAdministrator = "CreateAdministrator",
443
451
  /** Grants permission to read Administrator */
@@ -446,6 +454,62 @@ export declare enum Permission {
446
454
  UpdateAdministrator = "UpdateAdministrator",
447
455
  /** Grants permission to delete Administrator */
448
456
  DeleteAdministrator = "DeleteAdministrator",
457
+ /** Grants permission to create Asset */
458
+ CreateAsset = "CreateAsset",
459
+ /** Grants permission to read Asset */
460
+ ReadAsset = "ReadAsset",
461
+ /** Grants permission to update Asset */
462
+ UpdateAsset = "UpdateAsset",
463
+ /** Grants permission to delete Asset */
464
+ DeleteAsset = "DeleteAsset",
465
+ /** Grants permission to create Channel */
466
+ CreateChannel = "CreateChannel",
467
+ /** Grants permission to read Channel */
468
+ ReadChannel = "ReadChannel",
469
+ /** Grants permission to update Channel */
470
+ UpdateChannel = "UpdateChannel",
471
+ /** Grants permission to delete Channel */
472
+ DeleteChannel = "DeleteChannel",
473
+ /** Grants permission to create Collection */
474
+ CreateCollection = "CreateCollection",
475
+ /** Grants permission to read Collection */
476
+ ReadCollection = "ReadCollection",
477
+ /** Grants permission to update Collection */
478
+ UpdateCollection = "UpdateCollection",
479
+ /** Grants permission to delete Collection */
480
+ DeleteCollection = "DeleteCollection",
481
+ /** Grants permission to create Country */
482
+ CreateCountry = "CreateCountry",
483
+ /** Grants permission to read Country */
484
+ ReadCountry = "ReadCountry",
485
+ /** Grants permission to update Country */
486
+ UpdateCountry = "UpdateCountry",
487
+ /** Grants permission to delete Country */
488
+ DeleteCountry = "DeleteCountry",
489
+ /** Grants permission to create Customer */
490
+ CreateCustomer = "CreateCustomer",
491
+ /** Grants permission to read Customer */
492
+ ReadCustomer = "ReadCustomer",
493
+ /** Grants permission to update Customer */
494
+ UpdateCustomer = "UpdateCustomer",
495
+ /** Grants permission to delete Customer */
496
+ DeleteCustomer = "DeleteCustomer",
497
+ /** Grants permission to create CustomerGroup */
498
+ CreateCustomerGroup = "CreateCustomerGroup",
499
+ /** Grants permission to read CustomerGroup */
500
+ ReadCustomerGroup = "ReadCustomerGroup",
501
+ /** Grants permission to update CustomerGroup */
502
+ UpdateCustomerGroup = "UpdateCustomerGroup",
503
+ /** Grants permission to delete CustomerGroup */
504
+ DeleteCustomerGroup = "DeleteCustomerGroup",
505
+ /** Grants permission to create Facet */
506
+ CreateFacet = "CreateFacet",
507
+ /** Grants permission to read Facet */
508
+ ReadFacet = "ReadFacet",
509
+ /** Grants permission to update Facet */
510
+ UpdateFacet = "UpdateFacet",
511
+ /** Grants permission to delete Facet */
512
+ DeleteFacet = "DeleteFacet",
449
513
  /** Grants permission to create Order */
450
514
  CreateOrder = "CreateOrder",
451
515
  /** Grants permission to read Order */
@@ -454,6 +518,22 @@ export declare enum Permission {
454
518
  UpdateOrder = "UpdateOrder",
455
519
  /** Grants permission to delete Order */
456
520
  DeleteOrder = "DeleteOrder",
521
+ /** Grants permission to create PaymentMethod */
522
+ CreatePaymentMethod = "CreatePaymentMethod",
523
+ /** Grants permission to read PaymentMethod */
524
+ ReadPaymentMethod = "ReadPaymentMethod",
525
+ /** Grants permission to update PaymentMethod */
526
+ UpdatePaymentMethod = "UpdatePaymentMethod",
527
+ /** Grants permission to delete PaymentMethod */
528
+ DeletePaymentMethod = "DeletePaymentMethod",
529
+ /** Grants permission to create Product */
530
+ CreateProduct = "CreateProduct",
531
+ /** Grants permission to read Product */
532
+ ReadProduct = "ReadProduct",
533
+ /** Grants permission to update Product */
534
+ UpdateProduct = "UpdateProduct",
535
+ /** Grants permission to delete Product */
536
+ DeleteProduct = "DeleteProduct",
457
537
  /** Grants permission to create Promotion */
458
538
  CreatePromotion = "CreatePromotion",
459
539
  /** Grants permission to read Promotion */
@@ -462,14 +542,54 @@ export declare enum Permission {
462
542
  UpdatePromotion = "UpdatePromotion",
463
543
  /** Grants permission to delete Promotion */
464
544
  DeletePromotion = "DeletePromotion",
465
- /** Grants permission to create Settings */
466
- CreateSettings = "CreateSettings",
467
- /** Grants permission to read Settings */
468
- ReadSettings = "ReadSettings",
469
- /** Grants permission to update Settings */
470
- UpdateSettings = "UpdateSettings",
471
- /** Grants permission to delete Settings */
472
- DeleteSettings = "DeleteSettings"
545
+ /** Grants permission to create ShippingMethod */
546
+ CreateShippingMethod = "CreateShippingMethod",
547
+ /** Grants permission to read ShippingMethod */
548
+ ReadShippingMethod = "ReadShippingMethod",
549
+ /** Grants permission to update ShippingMethod */
550
+ UpdateShippingMethod = "UpdateShippingMethod",
551
+ /** Grants permission to delete ShippingMethod */
552
+ DeleteShippingMethod = "DeleteShippingMethod",
553
+ /** Grants permission to create Tag */
554
+ CreateTag = "CreateTag",
555
+ /** Grants permission to read Tag */
556
+ ReadTag = "ReadTag",
557
+ /** Grants permission to update Tag */
558
+ UpdateTag = "UpdateTag",
559
+ /** Grants permission to delete Tag */
560
+ DeleteTag = "DeleteTag",
561
+ /** Grants permission to create TaxCategory */
562
+ CreateTaxCategory = "CreateTaxCategory",
563
+ /** Grants permission to read TaxCategory */
564
+ ReadTaxCategory = "ReadTaxCategory",
565
+ /** Grants permission to update TaxCategory */
566
+ UpdateTaxCategory = "UpdateTaxCategory",
567
+ /** Grants permission to delete TaxCategory */
568
+ DeleteTaxCategory = "DeleteTaxCategory",
569
+ /** Grants permission to create TaxRate */
570
+ CreateTaxRate = "CreateTaxRate",
571
+ /** Grants permission to read TaxRate */
572
+ ReadTaxRate = "ReadTaxRate",
573
+ /** Grants permission to update TaxRate */
574
+ UpdateTaxRate = "UpdateTaxRate",
575
+ /** Grants permission to delete TaxRate */
576
+ DeleteTaxRate = "DeleteTaxRate",
577
+ /** Grants permission to create System */
578
+ CreateSystem = "CreateSystem",
579
+ /** Grants permission to read System */
580
+ ReadSystem = "ReadSystem",
581
+ /** Grants permission to update System */
582
+ UpdateSystem = "UpdateSystem",
583
+ /** Grants permission to delete System */
584
+ DeleteSystem = "DeleteSystem",
585
+ /** Grants permission to create Zone */
586
+ CreateZone = "CreateZone",
587
+ /** Grants permission to read Zone */
588
+ ReadZone = "ReadZone",
589
+ /** Grants permission to update Zone */
590
+ UpdateZone = "UpdateZone",
591
+ /** Grants permission to delete Zone */
592
+ DeleteZone = "DeleteZone"
473
593
  }
474
594
  export declare enum SortOrder {
475
595
  ASC = "ASC",
@@ -656,10 +776,23 @@ export declare type DateOperators = {
656
776
  after?: Maybe<Scalars['DateTime']>;
657
777
  between?: Maybe<DateRange>;
658
778
  };
779
+ /**
780
+ * Used to construct boolean expressions for filtering search results
781
+ * by FacetValue ID. Examples:
782
+ *
783
+ * * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
784
+ * * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
785
+ * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
786
+ */
787
+ export declare type FacetValueFilterInput = {
788
+ and?: Maybe<Scalars['ID']>;
789
+ or?: Maybe<Array<Scalars['ID']>>;
790
+ };
659
791
  export declare type SearchInput = {
660
792
  term?: Maybe<Scalars['String']>;
661
793
  facetValueIds?: Maybe<Array<Scalars['ID']>>;
662
794
  facetValueOperator?: Maybe<LogicalOperator>;
795
+ facetValueFilters?: Maybe<Array<FacetValueFilterInput>>;
663
796
  collectionId?: Maybe<Scalars['ID']>;
664
797
  collectionSlug?: Maybe<Scalars['String']>;
665
798
  groupByProduct?: Maybe<Scalars['Boolean']>;
@@ -1200,6 +1333,12 @@ export declare type CustomerGroup = Node & {
1200
1333
  export declare type CustomerGroupCustomersArgs = {
1201
1334
  options?: Maybe<CustomerListOptions>;
1202
1335
  };
1336
+ export declare type CustomerListOptions = {
1337
+ skip?: Maybe<Scalars['Int']>;
1338
+ take?: Maybe<Scalars['Int']>;
1339
+ sort?: Maybe<CustomerSortParameter>;
1340
+ filter?: Maybe<CustomerFilterParameter>;
1341
+ };
1203
1342
  export declare type Customer = Node & {
1204
1343
  __typename?: 'Customer';
1205
1344
  id: Scalars['ID'];
@@ -1307,6 +1446,12 @@ export declare type HistoryEntryList = PaginatedList & {
1307
1446
  items: Array<HistoryEntry>;
1308
1447
  totalItems: Scalars['Int'];
1309
1448
  };
1449
+ export declare type HistoryEntryListOptions = {
1450
+ skip?: Maybe<Scalars['Int']>;
1451
+ take?: Maybe<Scalars['Int']>;
1452
+ sort?: Maybe<HistoryEntrySortParameter>;
1453
+ filter?: Maybe<HistoryEntryFilterParameter>;
1454
+ };
1310
1455
  /**
1311
1456
  * @description
1312
1457
  * Languages in the form of a ISO 639-1 language code with optional
@@ -1658,11 +1803,6 @@ export declare type Order = Node & {
1658
1803
  * methods.
1659
1804
  */
1660
1805
  surcharges: Array<Surcharge>;
1661
- /**
1662
- * Order-level adjustments to the order total, such as discounts from promotions
1663
- * @deprecated Use `discounts` instead
1664
- */
1665
- adjustments: Array<Adjustment>;
1666
1806
  discounts: Array<Discount>;
1667
1807
  /** An array of all coupon codes applied to the Order */
1668
1808
  couponCodes: Array<Scalars['String']>;
@@ -1777,8 +1917,6 @@ export declare type OrderItem = Node & {
1777
1917
  /** The proratedUnitPrice including tax */
1778
1918
  proratedUnitPriceWithTax: Scalars['Int'];
1779
1919
  unitTax: Scalars['Int'];
1780
- /** @deprecated `unitPrice` is now always without tax */
1781
- unitPriceIncludesTax: Scalars['Boolean'];
1782
1920
  taxRate: Scalars['Float'];
1783
1921
  adjustments: Array<Adjustment>;
1784
1922
  taxLines: Array<TaxLine>;
@@ -1821,8 +1959,6 @@ export declare type OrderLine = Node & {
1821
1959
  proratedUnitPriceWithTax: Scalars['Int'];
1822
1960
  quantity: Scalars['Int'];
1823
1961
  items: Array<OrderItem>;
1824
- /** @deprecated Use `linePriceWithTax` instead */
1825
- totalPrice: Scalars['Int'];
1826
1962
  taxRate: Scalars['Float'];
1827
1963
  /** The total price of the line excluding tax and discounts. */
1828
1964
  linePrice: Scalars['Int'];
@@ -1842,8 +1978,6 @@ export declare type OrderLine = Node & {
1842
1978
  proratedLinePriceWithTax: Scalars['Int'];
1843
1979
  /** The total tax on this line */
1844
1980
  lineTax: Scalars['Int'];
1845
- /** @deprecated Use `discounts` instead */
1846
- adjustments: Array<Adjustment>;
1847
1981
  discounts: Array<Discount>;
1848
1982
  taxLines: Array<TaxLine>;
1849
1983
  order: Order;
@@ -1974,13 +2108,9 @@ export declare type SearchResult = {
1974
2108
  slug: Scalars['String'];
1975
2109
  productId: Scalars['ID'];
1976
2110
  productName: Scalars['String'];
1977
- /** @deprecated Use `productAsset.preview` instead */
1978
- productPreview: Scalars['String'];
1979
2111
  productAsset?: Maybe<SearchResultAsset>;
1980
2112
  productVariantId: Scalars['ID'];
1981
2113
  productVariantName: Scalars['String'];
1982
- /** @deprecated Use `productVariantAsset.preview` instead */
1983
- productVariantPreview: Scalars['String'];
1984
2114
  productVariantAsset?: Maybe<SearchResultAsset>;
1985
2115
  price: SearchResultPrice;
1986
2116
  priceWithTax: SearchResultPrice;
@@ -2053,8 +2183,6 @@ export declare type ProductVariant = Node & {
2053
2183
  assets: Array<Asset>;
2054
2184
  price: Scalars['Int'];
2055
2185
  currencyCode: CurrencyCode;
2056
- /** @deprecated price now always excludes tax */
2057
- priceIncludesTax: Scalars['Boolean'];
2058
2186
  priceWithTax: Scalars['Int'];
2059
2187
  stockLevel: Scalars['String'];
2060
2188
  taxRateApplied: TaxRate;
@@ -2349,6 +2477,9 @@ export declare type NoActiveOrderError = ErrorResult & {
2349
2477
  errorCode: ErrorCode;
2350
2478
  message: Scalars['String'];
2351
2479
  };
2480
+ export declare type AuthenticationInput = {
2481
+ native?: Maybe<NativeAuthInput>;
2482
+ };
2352
2483
  export declare type RegisterCustomerInput = {
2353
2484
  emailAddress: Scalars['String'];
2354
2485
  title?: Maybe<Scalars['String']>;
@@ -2364,6 +2495,9 @@ export declare type UpdateCustomerInput = {
2364
2495
  phoneNumber?: Maybe<Scalars['String']>;
2365
2496
  customFields?: Maybe<Scalars['JSON']>;
2366
2497
  };
2498
+ export declare type UpdateOrderInput = {
2499
+ customFields?: Maybe<Scalars['JSON']>;
2500
+ };
2367
2501
  /** Passed as input to the `addPaymentToOrder` mutation. */
2368
2502
  export declare type PaymentInput = {
2369
2503
  /** This field should correspond to the `code` property of a PaymentMethodHandler. */
@@ -2375,6 +2509,24 @@ export declare type PaymentInput = {
2375
2509
  */
2376
2510
  metadata: Scalars['JSON'];
2377
2511
  };
2512
+ export declare type CollectionListOptions = {
2513
+ skip?: Maybe<Scalars['Int']>;
2514
+ take?: Maybe<Scalars['Int']>;
2515
+ sort?: Maybe<CollectionSortParameter>;
2516
+ filter?: Maybe<CollectionFilterParameter>;
2517
+ };
2518
+ export declare type OrderListOptions = {
2519
+ skip?: Maybe<Scalars['Int']>;
2520
+ take?: Maybe<Scalars['Int']>;
2521
+ sort?: Maybe<OrderSortParameter>;
2522
+ filter?: Maybe<OrderFilterParameter>;
2523
+ };
2524
+ export declare type ProductListOptions = {
2525
+ skip?: Maybe<Scalars['Int']>;
2526
+ take?: Maybe<Scalars['Int']>;
2527
+ sort?: Maybe<ProductSortParameter>;
2528
+ filter?: Maybe<ProductFilterParameter>;
2529
+ };
2378
2530
  export declare type UpdateOrderItemsResult = Order | OrderModificationError | OrderLimitError | NegativeQuantityError | InsufficientStockError;
2379
2531
  export declare type RemoveOrderItemsResult = Order | OrderModificationError;
2380
2532
  export declare type SetOrderShippingMethodResult = Order | OrderModificationError | IneligibleShippingMethodError | NoActiveOrderError;
@@ -2393,76 +2545,6 @@ export declare type ResetPasswordResult = CurrentUser | PasswordResetTokenInvali
2393
2545
  export declare type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError | NativeAuthStrategyError;
2394
2546
  export declare type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError;
2395
2547
  export declare type ActiveOrderResult = Order | NoActiveOrderError;
2396
- export declare type CollectionListOptions = {
2397
- skip?: Maybe<Scalars['Int']>;
2398
- take?: Maybe<Scalars['Int']>;
2399
- sort?: Maybe<CollectionSortParameter>;
2400
- filter?: Maybe<CollectionFilterParameter>;
2401
- };
2402
- export declare type ProductListOptions = {
2403
- skip?: Maybe<Scalars['Int']>;
2404
- take?: Maybe<Scalars['Int']>;
2405
- sort?: Maybe<ProductSortParameter>;
2406
- filter?: Maybe<ProductFilterParameter>;
2407
- };
2408
- export declare type ProductVariantListOptions = {
2409
- skip?: Maybe<Scalars['Int']>;
2410
- take?: Maybe<Scalars['Int']>;
2411
- sort?: Maybe<ProductVariantSortParameter>;
2412
- filter?: Maybe<ProductVariantFilterParameter>;
2413
- };
2414
- export declare type CustomerListOptions = {
2415
- skip?: Maybe<Scalars['Int']>;
2416
- take?: Maybe<Scalars['Int']>;
2417
- sort?: Maybe<CustomerSortParameter>;
2418
- filter?: Maybe<CustomerFilterParameter>;
2419
- };
2420
- export declare type OrderListOptions = {
2421
- skip?: Maybe<Scalars['Int']>;
2422
- take?: Maybe<Scalars['Int']>;
2423
- sort?: Maybe<OrderSortParameter>;
2424
- filter?: Maybe<OrderFilterParameter>;
2425
- };
2426
- export declare type HistoryEntryListOptions = {
2427
- skip?: Maybe<Scalars['Int']>;
2428
- take?: Maybe<Scalars['Int']>;
2429
- sort?: Maybe<HistoryEntrySortParameter>;
2430
- filter?: Maybe<HistoryEntryFilterParameter>;
2431
- };
2432
- export declare type CollectionFilterParameter = {
2433
- createdAt?: Maybe<DateOperators>;
2434
- updatedAt?: Maybe<DateOperators>;
2435
- languageCode?: Maybe<StringOperators>;
2436
- name?: Maybe<StringOperators>;
2437
- slug?: Maybe<StringOperators>;
2438
- position?: Maybe<NumberOperators>;
2439
- description?: Maybe<StringOperators>;
2440
- };
2441
- export declare type CollectionSortParameter = {
2442
- id?: Maybe<SortOrder>;
2443
- createdAt?: Maybe<SortOrder>;
2444
- updatedAt?: Maybe<SortOrder>;
2445
- name?: Maybe<SortOrder>;
2446
- slug?: Maybe<SortOrder>;
2447
- position?: Maybe<SortOrder>;
2448
- description?: Maybe<SortOrder>;
2449
- };
2450
- export declare type ProductFilterParameter = {
2451
- createdAt?: Maybe<DateOperators>;
2452
- updatedAt?: Maybe<DateOperators>;
2453
- languageCode?: Maybe<StringOperators>;
2454
- name?: Maybe<StringOperators>;
2455
- slug?: Maybe<StringOperators>;
2456
- description?: Maybe<StringOperators>;
2457
- };
2458
- export declare type ProductSortParameter = {
2459
- id?: Maybe<SortOrder>;
2460
- createdAt?: Maybe<SortOrder>;
2461
- updatedAt?: Maybe<SortOrder>;
2462
- name?: Maybe<SortOrder>;
2463
- slug?: Maybe<SortOrder>;
2464
- description?: Maybe<SortOrder>;
2465
- };
2466
2548
  export declare type ProductVariantFilterParameter = {
2467
2549
  createdAt?: Maybe<DateOperators>;
2468
2550
  updatedAt?: Maybe<DateOperators>;
@@ -2471,7 +2553,6 @@ export declare type ProductVariantFilterParameter = {
2471
2553
  name?: Maybe<StringOperators>;
2472
2554
  price?: Maybe<NumberOperators>;
2473
2555
  currencyCode?: Maybe<StringOperators>;
2474
- priceIncludesTax?: Maybe<BooleanOperators>;
2475
2556
  priceWithTax?: Maybe<NumberOperators>;
2476
2557
  stockLevel?: Maybe<StringOperators>;
2477
2558
  };
@@ -2546,11 +2627,39 @@ export declare type HistoryEntrySortParameter = {
2546
2627
  createdAt?: Maybe<SortOrder>;
2547
2628
  updatedAt?: Maybe<SortOrder>;
2548
2629
  };
2549
- export declare type UpdateOrderInput = {
2550
- customFields?: Maybe<Scalars['JSON']>;
2630
+ export declare type CollectionFilterParameter = {
2631
+ createdAt?: Maybe<DateOperators>;
2632
+ updatedAt?: Maybe<DateOperators>;
2633
+ languageCode?: Maybe<StringOperators>;
2634
+ name?: Maybe<StringOperators>;
2635
+ slug?: Maybe<StringOperators>;
2636
+ position?: Maybe<NumberOperators>;
2637
+ description?: Maybe<StringOperators>;
2551
2638
  };
2552
- export declare type AuthenticationInput = {
2553
- native?: Maybe<NativeAuthInput>;
2639
+ export declare type CollectionSortParameter = {
2640
+ id?: Maybe<SortOrder>;
2641
+ createdAt?: Maybe<SortOrder>;
2642
+ updatedAt?: Maybe<SortOrder>;
2643
+ name?: Maybe<SortOrder>;
2644
+ slug?: Maybe<SortOrder>;
2645
+ position?: Maybe<SortOrder>;
2646
+ description?: Maybe<SortOrder>;
2647
+ };
2648
+ export declare type ProductFilterParameter = {
2649
+ createdAt?: Maybe<DateOperators>;
2650
+ updatedAt?: Maybe<DateOperators>;
2651
+ languageCode?: Maybe<StringOperators>;
2652
+ name?: Maybe<StringOperators>;
2653
+ slug?: Maybe<StringOperators>;
2654
+ description?: Maybe<StringOperators>;
2655
+ };
2656
+ export declare type ProductSortParameter = {
2657
+ id?: Maybe<SortOrder>;
2658
+ createdAt?: Maybe<SortOrder>;
2659
+ updatedAt?: Maybe<SortOrder>;
2660
+ name?: Maybe<SortOrder>;
2661
+ slug?: Maybe<SortOrder>;
2662
+ description?: Maybe<SortOrder>;
2554
2663
  };
2555
2664
  export declare type NativeAuthInput = {
2556
2665
  username: Scalars['String'];
@@ -42,22 +42,24 @@ var Permission;
42
42
  Permission["Owner"] = "Owner";
43
43
  /** Public means any unauthenticated user may perform the operation */
44
44
  Permission["Public"] = "Public";
45
- /** Grants permission to create Catalog */
45
+ /** Grants permission to update GlobalSettings */
46
+ Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings";
47
+ /** Grants permission to create Products, Facets, Assets, Collections */
46
48
  Permission["CreateCatalog"] = "CreateCatalog";
47
- /** Grants permission to read Catalog */
49
+ /** Grants permission to read Products, Facets, Assets, Collections */
48
50
  Permission["ReadCatalog"] = "ReadCatalog";
49
- /** Grants permission to update Catalog */
51
+ /** Grants permission to update Products, Facets, Assets, Collections */
50
52
  Permission["UpdateCatalog"] = "UpdateCatalog";
51
- /** Grants permission to delete Catalog */
53
+ /** Grants permission to delete Products, Facets, Assets, Collections */
52
54
  Permission["DeleteCatalog"] = "DeleteCatalog";
53
- /** Grants permission to create Customer */
54
- Permission["CreateCustomer"] = "CreateCustomer";
55
- /** Grants permission to read Customer */
56
- Permission["ReadCustomer"] = "ReadCustomer";
57
- /** Grants permission to update Customer */
58
- Permission["UpdateCustomer"] = "UpdateCustomer";
59
- /** Grants permission to delete Customer */
60
- Permission["DeleteCustomer"] = "DeleteCustomer";
55
+ /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
56
+ Permission["CreateSettings"] = "CreateSettings";
57
+ /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
58
+ Permission["ReadSettings"] = "ReadSettings";
59
+ /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
60
+ Permission["UpdateSettings"] = "UpdateSettings";
61
+ /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
62
+ Permission["DeleteSettings"] = "DeleteSettings";
61
63
  /** Grants permission to create Administrator */
62
64
  Permission["CreateAdministrator"] = "CreateAdministrator";
63
65
  /** Grants permission to read Administrator */
@@ -66,6 +68,62 @@ var Permission;
66
68
  Permission["UpdateAdministrator"] = "UpdateAdministrator";
67
69
  /** Grants permission to delete Administrator */
68
70
  Permission["DeleteAdministrator"] = "DeleteAdministrator";
71
+ /** Grants permission to create Asset */
72
+ Permission["CreateAsset"] = "CreateAsset";
73
+ /** Grants permission to read Asset */
74
+ Permission["ReadAsset"] = "ReadAsset";
75
+ /** Grants permission to update Asset */
76
+ Permission["UpdateAsset"] = "UpdateAsset";
77
+ /** Grants permission to delete Asset */
78
+ Permission["DeleteAsset"] = "DeleteAsset";
79
+ /** Grants permission to create Channel */
80
+ Permission["CreateChannel"] = "CreateChannel";
81
+ /** Grants permission to read Channel */
82
+ Permission["ReadChannel"] = "ReadChannel";
83
+ /** Grants permission to update Channel */
84
+ Permission["UpdateChannel"] = "UpdateChannel";
85
+ /** Grants permission to delete Channel */
86
+ Permission["DeleteChannel"] = "DeleteChannel";
87
+ /** Grants permission to create Collection */
88
+ Permission["CreateCollection"] = "CreateCollection";
89
+ /** Grants permission to read Collection */
90
+ Permission["ReadCollection"] = "ReadCollection";
91
+ /** Grants permission to update Collection */
92
+ Permission["UpdateCollection"] = "UpdateCollection";
93
+ /** Grants permission to delete Collection */
94
+ Permission["DeleteCollection"] = "DeleteCollection";
95
+ /** Grants permission to create Country */
96
+ Permission["CreateCountry"] = "CreateCountry";
97
+ /** Grants permission to read Country */
98
+ Permission["ReadCountry"] = "ReadCountry";
99
+ /** Grants permission to update Country */
100
+ Permission["UpdateCountry"] = "UpdateCountry";
101
+ /** Grants permission to delete Country */
102
+ Permission["DeleteCountry"] = "DeleteCountry";
103
+ /** Grants permission to create Customer */
104
+ Permission["CreateCustomer"] = "CreateCustomer";
105
+ /** Grants permission to read Customer */
106
+ Permission["ReadCustomer"] = "ReadCustomer";
107
+ /** Grants permission to update Customer */
108
+ Permission["UpdateCustomer"] = "UpdateCustomer";
109
+ /** Grants permission to delete Customer */
110
+ Permission["DeleteCustomer"] = "DeleteCustomer";
111
+ /** Grants permission to create CustomerGroup */
112
+ Permission["CreateCustomerGroup"] = "CreateCustomerGroup";
113
+ /** Grants permission to read CustomerGroup */
114
+ Permission["ReadCustomerGroup"] = "ReadCustomerGroup";
115
+ /** Grants permission to update CustomerGroup */
116
+ Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup";
117
+ /** Grants permission to delete CustomerGroup */
118
+ Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup";
119
+ /** Grants permission to create Facet */
120
+ Permission["CreateFacet"] = "CreateFacet";
121
+ /** Grants permission to read Facet */
122
+ Permission["ReadFacet"] = "ReadFacet";
123
+ /** Grants permission to update Facet */
124
+ Permission["UpdateFacet"] = "UpdateFacet";
125
+ /** Grants permission to delete Facet */
126
+ Permission["DeleteFacet"] = "DeleteFacet";
69
127
  /** Grants permission to create Order */
70
128
  Permission["CreateOrder"] = "CreateOrder";
71
129
  /** Grants permission to read Order */
@@ -74,6 +132,22 @@ var Permission;
74
132
  Permission["UpdateOrder"] = "UpdateOrder";
75
133
  /** Grants permission to delete Order */
76
134
  Permission["DeleteOrder"] = "DeleteOrder";
135
+ /** Grants permission to create PaymentMethod */
136
+ Permission["CreatePaymentMethod"] = "CreatePaymentMethod";
137
+ /** Grants permission to read PaymentMethod */
138
+ Permission["ReadPaymentMethod"] = "ReadPaymentMethod";
139
+ /** Grants permission to update PaymentMethod */
140
+ Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod";
141
+ /** Grants permission to delete PaymentMethod */
142
+ Permission["DeletePaymentMethod"] = "DeletePaymentMethod";
143
+ /** Grants permission to create Product */
144
+ Permission["CreateProduct"] = "CreateProduct";
145
+ /** Grants permission to read Product */
146
+ Permission["ReadProduct"] = "ReadProduct";
147
+ /** Grants permission to update Product */
148
+ Permission["UpdateProduct"] = "UpdateProduct";
149
+ /** Grants permission to delete Product */
150
+ Permission["DeleteProduct"] = "DeleteProduct";
77
151
  /** Grants permission to create Promotion */
78
152
  Permission["CreatePromotion"] = "CreatePromotion";
79
153
  /** Grants permission to read Promotion */
@@ -82,14 +156,54 @@ var Permission;
82
156
  Permission["UpdatePromotion"] = "UpdatePromotion";
83
157
  /** Grants permission to delete Promotion */
84
158
  Permission["DeletePromotion"] = "DeletePromotion";
85
- /** Grants permission to create Settings */
86
- Permission["CreateSettings"] = "CreateSettings";
87
- /** Grants permission to read Settings */
88
- Permission["ReadSettings"] = "ReadSettings";
89
- /** Grants permission to update Settings */
90
- Permission["UpdateSettings"] = "UpdateSettings";
91
- /** Grants permission to delete Settings */
92
- Permission["DeleteSettings"] = "DeleteSettings";
159
+ /** Grants permission to create ShippingMethod */
160
+ Permission["CreateShippingMethod"] = "CreateShippingMethod";
161
+ /** Grants permission to read ShippingMethod */
162
+ Permission["ReadShippingMethod"] = "ReadShippingMethod";
163
+ /** Grants permission to update ShippingMethod */
164
+ Permission["UpdateShippingMethod"] = "UpdateShippingMethod";
165
+ /** Grants permission to delete ShippingMethod */
166
+ Permission["DeleteShippingMethod"] = "DeleteShippingMethod";
167
+ /** Grants permission to create Tag */
168
+ Permission["CreateTag"] = "CreateTag";
169
+ /** Grants permission to read Tag */
170
+ Permission["ReadTag"] = "ReadTag";
171
+ /** Grants permission to update Tag */
172
+ Permission["UpdateTag"] = "UpdateTag";
173
+ /** Grants permission to delete Tag */
174
+ Permission["DeleteTag"] = "DeleteTag";
175
+ /** Grants permission to create TaxCategory */
176
+ Permission["CreateTaxCategory"] = "CreateTaxCategory";
177
+ /** Grants permission to read TaxCategory */
178
+ Permission["ReadTaxCategory"] = "ReadTaxCategory";
179
+ /** Grants permission to update TaxCategory */
180
+ Permission["UpdateTaxCategory"] = "UpdateTaxCategory";
181
+ /** Grants permission to delete TaxCategory */
182
+ Permission["DeleteTaxCategory"] = "DeleteTaxCategory";
183
+ /** Grants permission to create TaxRate */
184
+ Permission["CreateTaxRate"] = "CreateTaxRate";
185
+ /** Grants permission to read TaxRate */
186
+ Permission["ReadTaxRate"] = "ReadTaxRate";
187
+ /** Grants permission to update TaxRate */
188
+ Permission["UpdateTaxRate"] = "UpdateTaxRate";
189
+ /** Grants permission to delete TaxRate */
190
+ Permission["DeleteTaxRate"] = "DeleteTaxRate";
191
+ /** Grants permission to create System */
192
+ Permission["CreateSystem"] = "CreateSystem";
193
+ /** Grants permission to read System */
194
+ Permission["ReadSystem"] = "ReadSystem";
195
+ /** Grants permission to update System */
196
+ Permission["UpdateSystem"] = "UpdateSystem";
197
+ /** Grants permission to delete System */
198
+ Permission["DeleteSystem"] = "DeleteSystem";
199
+ /** Grants permission to create Zone */
200
+ Permission["CreateZone"] = "CreateZone";
201
+ /** Grants permission to read Zone */
202
+ Permission["ReadZone"] = "ReadZone";
203
+ /** Grants permission to update Zone */
204
+ Permission["UpdateZone"] = "UpdateZone";
205
+ /** Grants permission to delete Zone */
206
+ Permission["DeleteZone"] = "DeleteZone";
93
207
  })(Permission = exports.Permission || (exports.Permission = {}));
94
208
  var SortOrder;
95
209
  (function (SortOrder) {