Skip to content

Commit

Permalink
Release. Bump version number 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsisk committed Jan 26, 2022
1 parent c9026aa commit bee3e42
Show file tree
Hide file tree
Showing 12 changed files with 134 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .releases/4.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**New Features**

* Added new `ProductType` for cmdty Marketplace.
* Added new `EventType` items for Marketplace.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"packages": [
"packages/**"
],
"version": "4.1.2",
"version": "4.2.0",
"useWorkspaces": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"release": "lerna version -m 'Release. Bump version number %v' --tag-version-prefix='' --force-publish --no-granular-pathspec",
"clean": "lerna clean --yes && rm -rf node_modules",
"lint": "lerna run lint --stream",
"preversion": "git diff --exit-code",
"preversion": "git diff",
"postversion": "lerna publish from-package"
},
"devDependencies": {
Expand Down
28 changes: 28 additions & 0 deletions packages/common-js/lib/data/EventType.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,26 @@ module.exports = (() => {
return entitlementsAuthorizationFailed;
}

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;
}

/**
* Get all context keys for productType.
*
Expand Down Expand Up @@ -395,5 +415,13 @@ module.exports = (() => {

const entitlementsAuthorizationFailed = new EventType('ENTITLEMENTS_AUTHORIZATION_FAILED', 'Authorization Failed', ProductType.ENTITLEMENTS, ['userId', 'operation']);

// 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;
})();
12 changes: 12 additions & 0 deletions packages/common-js/lib/data/ProductType.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ module.exports = (() => {
return entitlements;
}

/**
* The cmdty Marketplace platform.
*
* @public
* @static
* @returns {ProductType}
*/
static get MARKETPLACE() {
return marketplace;
}

toString() {
return `[ProductType (code=${this.code})]`;
}
Expand All @@ -93,6 +104,7 @@ module.exports = (() => {
const watchlist = new ProductType('WATCHLIST', 'WATCHLIST');
const cmdtyView = new ProductType('CMDTYVIEW', 'CMDTYVIEW');
const entitlements = new ProductType('ENTITLEMENTS', 'ENTITLEMENTS');
const marketplace = new ProductType('MARKETPLACE', 'MARKETPLACE');

return ProductType;
})();
2 changes: 1 addition & 1 deletion packages/common-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@barchart/events-api-common",
"version": "4.1.2",
"version": "4.2.0",
"description": "Common classes used by the Barchart Event Tracking System",
"author": {
"name": "Bryan Ingle",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-js/docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @barchart/events-client-js <small>4.1.2</small>
# @barchart/events-client-js <small>4.2.0</small>

> JavaScript SDK for Barchart&#x27;s Event Tracking Service
Expand Down
42 changes: 41 additions & 1 deletion packages/sdk-js/example/browser/example.event.js
Original file line number Diff line number Diff line change
Expand Up @@ -22055,6 +22055,26 @@ module.exports = (() => {
return entitlementsAuthorizationFailed;
}

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;
}

/**
* Get all context keys for productType.
*
Expand Down Expand Up @@ -22150,6 +22170,14 @@ module.exports = (() => {

const entitlementsAuthorizationFailed = new EventType('ENTITLEMENTS_AUTHORIZATION_FAILED', 'Authorization Failed', ProductType.ENTITLEMENTS, ['userId', 'operation']);

// 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;
})();

Expand Down Expand Up @@ -22239,6 +22267,17 @@ module.exports = (() => {
return entitlements;
}

/**
* The cmdty Marketplace platform.
*
* @public
* @static
* @returns {ProductType}
*/
static get MARKETPLACE() {
return marketplace;
}

toString() {
return `[ProductType (code=${this.code})]`;
}
Expand All @@ -22249,6 +22288,7 @@ module.exports = (() => {
const watchlist = new ProductType('WATCHLIST', 'WATCHLIST');
const cmdtyView = new ProductType('CMDTYVIEW', 'CMDTYVIEW');
const entitlements = new ProductType('ENTITLEMENTS', 'ENTITLEMENTS');
const marketplace = new ProductType('MARKETPLACE', 'MARKETPLACE');

return ProductType;
})();
Expand Down Expand Up @@ -23705,7 +23745,7 @@ module.exports = (() => {
'use strict';

return {
version: '4.1.2'
version: '4.2.0'
};
})();

Expand Down
42 changes: 41 additions & 1 deletion packages/sdk-js/example/browser/example.report.js
Original file line number Diff line number Diff line change
Expand Up @@ -21784,6 +21784,26 @@ module.exports = (() => {
return entitlementsAuthorizationFailed;
}

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;
}

/**
* Get all context keys for productType.
*
Expand Down Expand Up @@ -21879,6 +21899,14 @@ module.exports = (() => {

const entitlementsAuthorizationFailed = new EventType('ENTITLEMENTS_AUTHORIZATION_FAILED', 'Authorization Failed', ProductType.ENTITLEMENTS, ['userId', 'operation']);

// 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;
})();

Expand Down Expand Up @@ -21968,6 +21996,17 @@ module.exports = (() => {
return entitlements;
}

/**
* The cmdty Marketplace platform.
*
* @public
* @static
* @returns {ProductType}
*/
static get MARKETPLACE() {
return marketplace;
}

toString() {
return `[ProductType (code=${this.code})]`;
}
Expand All @@ -21978,6 +22017,7 @@ module.exports = (() => {
const watchlist = new ProductType('WATCHLIST', 'WATCHLIST');
const cmdtyView = new ProductType('CMDTYVIEW', 'CMDTYVIEW');
const entitlements = new ProductType('ENTITLEMENTS', 'ENTITLEMENTS');
const marketplace = new ProductType('MARKETPLACE', 'MARKETPLACE');

return ProductType;
})();
Expand Down Expand Up @@ -23456,7 +23496,7 @@ module.exports = (() => {
'use strict';

return {
version: '4.1.2'
version: '4.2.0'
};
})();

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-js/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = (() => {
'use strict';

return {
version: '4.1.2'
version: '4.2.0'
};
})();
2 changes: 1 addition & 1 deletion packages/sdk-js/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ openapi: 3.0.0
info:
title: Event API
description: The Barchart Event Tracking System collects usage statistics from various software systems.
version: 4.1.2
version: 4.2.0

servers:
- url: https://events-stage.aws.barchart.com
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@barchart/events-client-js",
"version": "4.1.2",
"version": "4.2.0",
"description": "JavaScript SDK for Barchart's Event Tracking Service",
"author": {
"name": "Bryan Ingle",
Expand All @@ -23,7 +23,7 @@
},
"dependencies": {
"@barchart/common-js": "^4.8.0",
"@barchart/events-api-common": "^4.1.2"
"@barchart/events-api-common": "^4.2.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
Expand Down

0 comments on commit bee3e42

Please sign in to comment.