@barchart/events-api-common
Advanced tools
Comparing version 4.1.2 to 4.2.0
@@ -303,2 +303,22 @@ const assert = require('@barchart/common-js/lang/assert'), | ||
static get MARKETPLACE_CUSTOMER_CREATED() { | ||
return marketplaceCustomerCreated; | ||
} | ||
static get MARKETPLACE_ACCOUNT_LINKED() { | ||
return marketplaceAccountLinked; | ||
} | ||
static get MARKETPLACE_CUSTOMER_OFFER_ACCESS_APPROVED() { | ||
return marketplaceCustomerOfferAccessApproved; | ||
} | ||
static get MARKETPLACE_OFFER_CREATED() { | ||
return marketplaceOfferCreated; | ||
} | ||
static get MARKETPLACE_CONTRACT_SIGNED() { | ||
return marketplaceContractSigned; | ||
} | ||
/** | ||
@@ -399,3 +419,11 @@ * Get all context keys for productType. | ||
// Marketplace | ||
const marketplaceCustomerCreated = new EventType('CUSTOMER-CREATED', 'Customer Created', ProductType.MARKETPLACE, ['userId', 'userType', 'companyId', 'companyName', 'entityId']); | ||
const marketplaceAccountLinked = new EventType('ACCOUNT-LINKED', 'Account Linked', ProductType.MARKETPLACE, ['userId', 'userType', 'companyId', 'companyName', 'entityId']); | ||
const marketplaceCustomerOfferAccessApproved = new EventType('CUSTOMER-OFFER-ACCESS-APPROVED', 'Offer Access Approved', ProductType.MARKETPLACE, ['userId', 'userType', 'companyId', 'companyName', 'entityId']); | ||
const marketplaceOfferCreated = new EventType('OFFER-CREATED', 'Offer Created', ProductType.MARKETPLACE, ['userId', 'userType', 'companyId', 'companyName', 'entityId']); | ||
const marketplaceContractSigned = new EventType('CONTRACT-SIGNED', 'Contract Signed', ProductType.MARKETPLACE, ['userId', 'userType', 'companyId', 'companyName', 'entityId']); | ||
return EventType; | ||
})(); |
@@ -86,2 +86,13 @@ const Enum = require('@barchart/common-js/lang/Enum'); | ||
/** | ||
* The cmdty Marketplace platform. | ||
* | ||
* @public | ||
* @static | ||
* @returns {ProductType} | ||
*/ | ||
static get MARKETPLACE() { | ||
return marketplace; | ||
} | ||
toString() { | ||
@@ -97,4 +108,5 @@ return `[ProductType (code=${this.code})]`; | ||
const entitlements = new ProductType('ENTITLEMENTS', 'ENTITLEMENTS'); | ||
const marketplace = new ProductType('MARKETPLACE', 'MARKETPLACE'); | ||
return ProductType; | ||
})(); |
{ | ||
"name": "@barchart/events-api-common", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"description": "Common classes used by the Barchart Event Tracking System", | ||
@@ -8,3 +8,3 @@ "author": { | ||
"email": "bryan.ingle@barchart.com", | ||
"url": "http://www.barchart.com" | ||
"url": "https://www.barchart.com" | ||
}, | ||
@@ -14,3 +14,3 @@ "contributors": [ | ||
"name": "Igor Losev", | ||
"email": "igor.losev.it@gmail.com" | ||
"email": "igor.losev@barchart.com" | ||
} | ||
@@ -25,4 +25,3 @@ ], | ||
}, | ||
"license": "MIT", | ||
"gitHead": "7e49340aaa068ec2f9a57e61f3fc1d3ad9628680" | ||
"license": "MIT" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33542
796
9