Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vendure/common

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vendure/common - npm Package Compare versions

Comparing version 0.16.2 to 0.17.0

121

lib/generated-shop-types.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StockMovementType = exports.HistoryEntryType = exports.AssetType = exports.Permission = exports.LanguageCode = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.DeletionResult = exports.AdjustmentType = void 0;
exports.StockMovementType = exports.HistoryEntryType = exports.AssetType = exports.LanguageCode = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = void 0;
var GlobalFlag;
(function (GlobalFlag) {
GlobalFlag["TRUE"] = "TRUE";
GlobalFlag["FALSE"] = "FALSE";
GlobalFlag["INHERIT"] = "INHERIT";
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {}));
var AdjustmentType;

@@ -21,2 +27,68 @@ (function (AdjustmentType) {

})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {}));
/**
* @description
* Permissions for administrators and customers. Used to control access to
* GraphQL resolvers via the {@link Allow} decorator.
*
* @docsCategory common
*/
var Permission;
(function (Permission) {
/** Authenticated means simply that the user is logged in */
Permission["Authenticated"] = "Authenticated";
/** SuperAdmin has unrestricted access to all operations */
Permission["SuperAdmin"] = "SuperAdmin";
/** Owner means the user owns this entity, e.g. a Customer's own Order */
Permission["Owner"] = "Owner";
/** Public means any unauthenticated user may perform the operation */
Permission["Public"] = "Public";
/** Grants permission to create Catalog */
Permission["CreateCatalog"] = "CreateCatalog";
/** Grants permission to read Catalog */
Permission["ReadCatalog"] = "ReadCatalog";
/** Grants permission to update Catalog */
Permission["UpdateCatalog"] = "UpdateCatalog";
/** Grants permission to delete Catalog */
Permission["DeleteCatalog"] = "DeleteCatalog";
/** Grants permission to create Customer */
Permission["CreateCustomer"] = "CreateCustomer";
/** Grants permission to read Customer */
Permission["ReadCustomer"] = "ReadCustomer";
/** Grants permission to update Customer */
Permission["UpdateCustomer"] = "UpdateCustomer";
/** Grants permission to delete Customer */
Permission["DeleteCustomer"] = "DeleteCustomer";
/** Grants permission to create Administrator */
Permission["CreateAdministrator"] = "CreateAdministrator";
/** Grants permission to read Administrator */
Permission["ReadAdministrator"] = "ReadAdministrator";
/** Grants permission to update Administrator */
Permission["UpdateAdministrator"] = "UpdateAdministrator";
/** Grants permission to delete Administrator */
Permission["DeleteAdministrator"] = "DeleteAdministrator";
/** Grants permission to create Order */
Permission["CreateOrder"] = "CreateOrder";
/** Grants permission to read Order */
Permission["ReadOrder"] = "ReadOrder";
/** Grants permission to update Order */
Permission["UpdateOrder"] = "UpdateOrder";
/** Grants permission to delete Order */
Permission["DeleteOrder"] = "DeleteOrder";
/** Grants permission to create Promotion */
Permission["CreatePromotion"] = "CreatePromotion";
/** Grants permission to read Promotion */
Permission["ReadPromotion"] = "ReadPromotion";
/** Grants permission to update Promotion */
Permission["UpdatePromotion"] = "UpdatePromotion";
/** Grants permission to delete Promotion */
Permission["DeletePromotion"] = "DeletePromotion";
/** Grants permission to create Settings */
Permission["CreateSettings"] = "CreateSettings";
/** Grants permission to read Settings */
Permission["ReadSettings"] = "ReadSettings";
/** Grants permission to update Settings */
Permission["UpdateSettings"] = "UpdateSettings";
/** Grants permission to delete Settings */
Permission["DeleteSettings"] = "DeleteSettings";
})(Permission = exports.Permission || (exports.Permission = {}));
var SortOrder;

@@ -37,2 +109,4 @@ (function (SortOrder) {

ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR";
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR";
ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR";
ErrorCode["ORDER_PAYMENT_STATE_ERROR"] = "ORDER_PAYMENT_STATE_ERROR";

@@ -709,45 +783,2 @@ ErrorCode["PAYMENT_FAILED_ERROR"] = "PAYMENT_FAILED_ERROR";

})(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {}));
/**
* "
* @description
* Permissions for administrators and customers. Used to control access to
* GraphQL resolvers via the {@link Allow} decorator.
*
* @docsCategory common
*/
var Permission;
(function (Permission) {
/** The Authenticated role means simply that the user is logged in */
Permission["Authenticated"] = "Authenticated";
/** SuperAdmin can perform the most sensitive tasks */
Permission["SuperAdmin"] = "SuperAdmin";
/** Owner means the user owns this entity, e.g. a Customer's own Order */
Permission["Owner"] = "Owner";
/** Public means any unauthenticated user may perform the operation */
Permission["Public"] = "Public";
Permission["CreateCatalog"] = "CreateCatalog";
Permission["ReadCatalog"] = "ReadCatalog";
Permission["UpdateCatalog"] = "UpdateCatalog";
Permission["DeleteCatalog"] = "DeleteCatalog";
Permission["CreateCustomer"] = "CreateCustomer";
Permission["ReadCustomer"] = "ReadCustomer";
Permission["UpdateCustomer"] = "UpdateCustomer";
Permission["DeleteCustomer"] = "DeleteCustomer";
Permission["CreateAdministrator"] = "CreateAdministrator";
Permission["ReadAdministrator"] = "ReadAdministrator";
Permission["UpdateAdministrator"] = "UpdateAdministrator";
Permission["DeleteAdministrator"] = "DeleteAdministrator";
Permission["CreateOrder"] = "CreateOrder";
Permission["ReadOrder"] = "ReadOrder";
Permission["UpdateOrder"] = "UpdateOrder";
Permission["DeleteOrder"] = "DeleteOrder";
Permission["CreatePromotion"] = "CreatePromotion";
Permission["ReadPromotion"] = "ReadPromotion";
Permission["UpdatePromotion"] = "UpdatePromotion";
Permission["DeletePromotion"] = "DeletePromotion";
Permission["CreateSettings"] = "CreateSettings";
Permission["ReadSettings"] = "ReadSettings";
Permission["UpdateSettings"] = "UpdateSettings";
Permission["DeleteSettings"] = "DeleteSettings";
})(Permission = exports.Permission || (exports.Permission = {}));
var AssetType;

@@ -788,2 +819,4 @@ (function (AssetType) {

StockMovementType["ADJUSTMENT"] = "ADJUSTMENT";
StockMovementType["ALLOCATION"] = "ALLOCATION";
StockMovementType["RELEASE"] = "RELEASE";
StockMovementType["SALE"] = "SALE";

@@ -790,0 +823,0 @@ StockMovementType["CANCELLATION"] = "CANCELLATION";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StockMovementType = exports.HistoryEntryType = exports.AssetType = exports.Permission = exports.LanguageCode = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.DeletionResult = exports.AdjustmentType = exports.JobState = void 0;
exports.StockMovementType = exports.HistoryEntryType = exports.AssetType = exports.LanguageCode = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.JobState = void 0;
/**

@@ -18,2 +18,8 @@ * @description

})(JobState = exports.JobState || (exports.JobState = {}));
var GlobalFlag;
(function (GlobalFlag) {
GlobalFlag["TRUE"] = "TRUE";
GlobalFlag["FALSE"] = "FALSE";
GlobalFlag["INHERIT"] = "INHERIT";
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {}));
var AdjustmentType;

@@ -36,2 +42,68 @@ (function (AdjustmentType) {

})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {}));
/**
* @description
* Permissions for administrators and customers. Used to control access to
* GraphQL resolvers via the {@link Allow} decorator.
*
* @docsCategory common
*/
var Permission;
(function (Permission) {
/** Authenticated means simply that the user is logged in */
Permission["Authenticated"] = "Authenticated";
/** SuperAdmin has unrestricted access to all operations */
Permission["SuperAdmin"] = "SuperAdmin";
/** Owner means the user owns this entity, e.g. a Customer's own Order */
Permission["Owner"] = "Owner";
/** Public means any unauthenticated user may perform the operation */
Permission["Public"] = "Public";
/** Grants permission to create Catalog */
Permission["CreateCatalog"] = "CreateCatalog";
/** Grants permission to read Catalog */
Permission["ReadCatalog"] = "ReadCatalog";
/** Grants permission to update Catalog */
Permission["UpdateCatalog"] = "UpdateCatalog";
/** Grants permission to delete Catalog */
Permission["DeleteCatalog"] = "DeleteCatalog";
/** Grants permission to create Customer */
Permission["CreateCustomer"] = "CreateCustomer";
/** Grants permission to read Customer */
Permission["ReadCustomer"] = "ReadCustomer";
/** Grants permission to update Customer */
Permission["UpdateCustomer"] = "UpdateCustomer";
/** Grants permission to delete Customer */
Permission["DeleteCustomer"] = "DeleteCustomer";
/** Grants permission to create Administrator */
Permission["CreateAdministrator"] = "CreateAdministrator";
/** Grants permission to read Administrator */
Permission["ReadAdministrator"] = "ReadAdministrator";
/** Grants permission to update Administrator */
Permission["UpdateAdministrator"] = "UpdateAdministrator";
/** Grants permission to delete Administrator */
Permission["DeleteAdministrator"] = "DeleteAdministrator";
/** Grants permission to create Order */
Permission["CreateOrder"] = "CreateOrder";
/** Grants permission to read Order */
Permission["ReadOrder"] = "ReadOrder";
/** Grants permission to update Order */
Permission["UpdateOrder"] = "UpdateOrder";
/** Grants permission to delete Order */
Permission["DeleteOrder"] = "DeleteOrder";
/** Grants permission to create Promotion */
Permission["CreatePromotion"] = "CreatePromotion";
/** Grants permission to read Promotion */
Permission["ReadPromotion"] = "ReadPromotion";
/** Grants permission to update Promotion */
Permission["UpdatePromotion"] = "UpdatePromotion";
/** Grants permission to delete Promotion */
Permission["DeletePromotion"] = "DeletePromotion";
/** Grants permission to create Settings */
Permission["CreateSettings"] = "CreateSettings";
/** Grants permission to read Settings */
Permission["ReadSettings"] = "ReadSettings";
/** Grants permission to update Settings */
Permission["UpdateSettings"] = "UpdateSettings";
/** Grants permission to delete Settings */
Permission["DeleteSettings"] = "DeleteSettings";
})(Permission = exports.Permission || (exports.Permission = {}));
var SortOrder;

@@ -51,2 +123,3 @@ (function (SortOrder) {

ErrorCode["ITEMS_ALREADY_FULFILLED_ERROR"] = "ITEMS_ALREADY_FULFILLED_ERROR";
ErrorCode["INSUFFICIENT_STOCK_ON_HAND_ERROR"] = "INSUFFICIENT_STOCK_ON_HAND_ERROR";
ErrorCode["MULTIPLE_ORDER_ERROR"] = "MULTIPLE_ORDER_ERROR";

@@ -723,45 +796,2 @@ ErrorCode["CANCEL_ACTIVE_ORDER_ERROR"] = "CANCEL_ACTIVE_ORDER_ERROR";

})(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {}));
/**
* "
* @description
* Permissions for administrators and customers. Used to control access to
* GraphQL resolvers via the {@link Allow} decorator.
*
* @docsCategory common
*/
var Permission;
(function (Permission) {
/** The Authenticated role means simply that the user is logged in */
Permission["Authenticated"] = "Authenticated";
/** SuperAdmin can perform the most sensitive tasks */
Permission["SuperAdmin"] = "SuperAdmin";
/** Owner means the user owns this entity, e.g. a Customer's own Order */
Permission["Owner"] = "Owner";
/** Public means any unauthenticated user may perform the operation */
Permission["Public"] = "Public";
Permission["CreateCatalog"] = "CreateCatalog";
Permission["ReadCatalog"] = "ReadCatalog";
Permission["UpdateCatalog"] = "UpdateCatalog";
Permission["DeleteCatalog"] = "DeleteCatalog";
Permission["CreateCustomer"] = "CreateCustomer";
Permission["ReadCustomer"] = "ReadCustomer";
Permission["UpdateCustomer"] = "UpdateCustomer";
Permission["DeleteCustomer"] = "DeleteCustomer";
Permission["CreateAdministrator"] = "CreateAdministrator";
Permission["ReadAdministrator"] = "ReadAdministrator";
Permission["UpdateAdministrator"] = "UpdateAdministrator";
Permission["DeleteAdministrator"] = "DeleteAdministrator";
Permission["CreateOrder"] = "CreateOrder";
Permission["ReadOrder"] = "ReadOrder";
Permission["UpdateOrder"] = "UpdateOrder";
Permission["DeleteOrder"] = "DeleteOrder";
Permission["CreatePromotion"] = "CreatePromotion";
Permission["ReadPromotion"] = "ReadPromotion";
Permission["UpdatePromotion"] = "UpdatePromotion";
Permission["DeletePromotion"] = "DeletePromotion";
Permission["CreateSettings"] = "CreateSettings";
Permission["ReadSettings"] = "ReadSettings";
Permission["UpdateSettings"] = "UpdateSettings";
Permission["DeleteSettings"] = "DeleteSettings";
})(Permission = exports.Permission || (exports.Permission = {}));
var AssetType;

@@ -802,2 +832,4 @@ (function (AssetType) {

StockMovementType["ADJUSTMENT"] = "ADJUSTMENT";
StockMovementType["ALLOCATION"] = "ALLOCATION";
StockMovementType["RELEASE"] = "RELEASE";
StockMovementType["SALE"] = "SALE";

@@ -804,0 +836,0 @@ StockMovementType["CANCELLATION"] = "CANCELLATION";

{
"name": "@vendure/common",
"version": "0.16.2",
"version": "0.17.0",
"main": "index.js",

@@ -23,3 +23,3 @@ "license": "MIT",

},
"gitHead": "71492686fc26a1e8f0db59cd5ec83b5b2539a45c"
"gitHead": "f8eb11fdfd6df2958dd8e416c61d5dbfd4f48e28"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc