You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by le...@apache.org on 2021/09/21 21:06:57 UTC
[incubator-spot] 03/03: adding user and email objects
This is an automated email from the ASF dual-hosted git repository.
leahy pushed a commit to branch spot-odm-dev
in repository https://gitbox.apache.org/repos/asf/incubator-spot.git
commit 78b9216ac102f41aafee267a3d92e82b392bdbe3
Author: Austin Leahy <le...@apache.org>
AuthorDate: Mon Sep 20 23:18:49 2021 -0600
adding user and email objects
---
spot-operational-data-model/package/objects/src/email.ts | 4 ++++
spot-operational-data-model/package/objects/src/user.ts | 11 +++++++++++
2 files changed, 15 insertions(+)
diff --git a/spot-operational-data-model/package/objects/src/email.ts b/spot-operational-data-model/package/objects/src/email.ts
new file mode 100644
index 0000000..c09d10e
--- /dev/null
+++ b/spot-operational-data-model/package/objects/src/email.ts
@@ -0,0 +1,4 @@
+export interface Email{
+ address: String;
+ domain: String;
+}
diff --git a/spot-operational-data-model/package/objects/src/user.ts b/spot-operational-data-model/package/objects/src/user.ts
new file mode 100644
index 0000000..1dbde8d
--- /dev/null
+++ b/spot-operational-data-model/package/objects/src/user.ts
@@ -0,0 +1,11 @@
+import {Email} from "./email";
+
+export interface User {
+ firstName: String;
+ lastName: String;
+ email: Email;
+ address: String;
+ location: String
+ identifier: String;
+ domain: String;
+}