biz-email-builder-shared 1.6.39 → 1.6.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ import { INVITE_STATUS } from "../utilities";
3
3
  export interface IOrganisationTeamSchema extends Document {
4
4
  organisationId: Types.ObjectId;
5
5
  user: Types.ObjectId;
6
+ email: string;
6
7
  features: Types.ObjectId[];
7
8
  inviteStatus: INVITE_STATUS;
8
9
  isDeleted: boolean;
@@ -15,6 +16,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
15
16
  createdAt: NativeDate;
16
17
  updatedAt: NativeDate;
17
18
  } & {
19
+ email: string;
18
20
  user: {
19
21
  prototype?: Types.ObjectId | null | undefined;
20
22
  cacheHexString?: unknown;
@@ -42,6 +44,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
42
44
  createdAt: NativeDate;
43
45
  updatedAt: NativeDate;
44
46
  } & {
47
+ email: string;
45
48
  user: {
46
49
  prototype?: Types.ObjectId | null | undefined;
47
50
  cacheHexString?: unknown;
@@ -69,6 +72,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
69
72
  createdAt: NativeDate;
70
73
  updatedAt: NativeDate;
71
74
  } & {
75
+ email: string;
72
76
  user: {
73
77
  prototype?: Types.ObjectId | null | undefined;
74
78
  cacheHexString?: unknown;
@@ -102,6 +106,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
102
106
  createdAt: NativeDate;
103
107
  updatedAt: NativeDate;
104
108
  } & {
109
+ email: string;
105
110
  user: {
106
111
  prototype?: Types.ObjectId | null | undefined;
107
112
  cacheHexString?: unknown;
@@ -129,6 +134,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
129
134
  createdAt: NativeDate;
130
135
  updatedAt: NativeDate;
131
136
  } & {
137
+ email: string;
132
138
  user: {
133
139
  prototype?: Types.ObjectId | null | undefined;
134
140
  cacheHexString?: unknown;
@@ -156,6 +162,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
156
162
  createdAt: NativeDate;
157
163
  updatedAt: NativeDate;
158
164
  } & {
165
+ email: string;
159
166
  user: {
160
167
  prototype?: Types.ObjectId | null | undefined;
161
168
  cacheHexString?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"organisationTeams.entity.d.ts","sourceRoot":"","sources":["../../src/entity/organisationTeams.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,WAAW,uBAAwB,SAAQ,QAAQ;IACvD,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3B,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC3B;AAYD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAC80H,MAAO,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAf,MAAO,QAAQ;;;GADxyH,CAAC"}
1
+ {"version":3,"file":"organisationTeams.entity.d.ts","sourceRoot":"","sources":["../../src/entity/organisationTeams.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,uBAAwB,SAAQ,QAAQ;IACvD,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3B,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC3B;AAaD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SACgvH,MAAO,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAf,MAAO,QAAQ;;;GAD1sH,CAAC"}
@@ -5,7 +5,8 @@ const mongoose_1 = require("mongoose");
5
5
  const utilities_1 = require("../utilities");
6
6
  const OrganisationTeamSchema = new mongoose_1.Schema({
7
7
  organisationId: { type: mongoose_1.Types.ObjectId, ref: "organisation", required: true },
8
- user: { type: mongoose_1.Types.ObjectId, ref: "user", required: true },
8
+ user: { type: mongoose_1.Types.ObjectId, ref: "user", default: null },
9
+ email: { type: String, required: true },
9
10
  features: { type: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'feature' }], default: [], _id: false },
10
11
  inviteStatus: { type: String, enum: Object.values(utilities_1.INVITE_STATUS), default: utilities_1.INVITE_STATUS.PENDING },
11
12
  isDeleted: { type: Boolean, default: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-email-builder-shared",
3
- "version": "1.6.39",
3
+ "version": "1.6.40",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [