Skip to content

Commit

Permalink
Put back customerId
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
thanhtr committed Jul 2, 2020
1 parent 44dc23b commit 7a01b85
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maas-schemas-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas-ts",
"version": "14.3.0",
"version": "14.4.0",
"description": "TypeScript types and io-ts validators for maas-schemas",
"main": "index.js",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ See https://www.npmjs.com/package/io-ts-from-json-schema
*/

import * as t from 'io-ts';
import * as ApiCommon_ from '../../../../core/components/api-common';
import * as Units_ from '../../../../core/components/units';
import * as ApiCommon_ from '../../../../core/components/api-common';
import * as UnitsGeo_ from '../../../../core/components/units-geo';

type Defined =
Expand All @@ -36,6 +36,7 @@ export const schemaId =
// The default export. More information at the top.
export type Request = t.Branded<
{
customerId?: Units_.IdentityId;
headers?: ApiCommon_.Headers;
identityId?: Units_.IdentityId;
payload?: {
Expand All @@ -53,6 +54,7 @@ export type Request = t.Branded<
export const Request = t.brand(
t.intersection([
t.partial({
customerId: Units_.IdentityId,
headers: ApiCommon_.Headers,
identityId: Units_.IdentityId,
payload: t.intersection([
Expand All @@ -74,6 +76,7 @@ export const Request = t.brand(
x,
): x is t.Branded<
{
customerId?: Units_.IdentityId;
headers?: ApiCommon_.Headers;
identityId?: Units_.IdentityId;
payload?: {
Expand Down
2 changes: 1 addition & 1 deletion maas-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas",
"version": "14.3.0",
"version": "14.4.0",
"description": "Schemas for MaaS infrastructure",
"main": "index.js",
"engine": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"additionalProperties": false,
"description": "MaaS customer verification initiate",
"properties": {
"customerId": {
"$ref": "http://maasglobal.com/core/components/units.json#/definitions/identityId"
},
"headers": {
"$ref": "http://maasglobal.com/core/components/api-common.json#/definitions/headers"
},
Expand Down

0 comments on commit 7a01b85

Please sign in to comment.