@natrave/shared-entities 1.17.0 → 1.18.0
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.
- package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
- package/dist/central-auth/organization-users/organization-user.entity.js +10 -5
- package/dist/central-auth/organizations/organization.entity.d.ts.map +1 -1
- package/dist/central-auth/organizations/organization.entity.js +7 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAexF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKhD,qBAiBa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAQvB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,KAAK,EAAE,MAAM,CAAC;IAOd,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,sBAAsB,CAAC;IAU/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,eAAe,EAAE,OAAO,CAAC;IAQzB,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,YAAY,EAAE,YAAY,CAAC;IAM3B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAMxC,WAAW,EAAE,2BAA2B,CAAC;CAC1C"}
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
OneToMany,
|
|
21
21
|
OneToOne,
|
|
22
22
|
PrimaryGeneratedColumn,
|
|
23
|
-
Unique,
|
|
24
23
|
UpdateDateColumn
|
|
25
24
|
} from "typeorm";
|
|
26
25
|
import { TournamentPayment } from "../../tournaments/index.js";
|
|
@@ -141,10 +140,16 @@ __decorateClass([
|
|
|
141
140
|
OneToOne(() => OrganizationUserBillingInfo, (billingInfo) => billingInfo.organizationUser)
|
|
142
141
|
], OrganizationUser.prototype, "billingInfo", 2);
|
|
143
142
|
OrganizationUser = __decorateClass([
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Index("UQ_organization_users_document", ["document"], {
|
|
144
|
+
unique: true,
|
|
145
|
+
where: '"deleted_at" IS NULL'
|
|
146
|
+
}),
|
|
147
|
+
Index("UQ_organization_users_email", ["email"], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
148
|
+
Index("UQ_organization_users_phone", ["phone"], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
149
|
+
Index("UQ_organization_users_externalId", ["externalId"], {
|
|
150
|
+
unique: true,
|
|
151
|
+
where: '"deleted_at" IS NULL'
|
|
152
|
+
}),
|
|
148
153
|
Index("idx_organization_user_document", ["document"]),
|
|
149
154
|
Index("idx_organization_user_email", ["email"]),
|
|
150
155
|
Index("idx_organization_user_phone", ["phone"]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAYlG,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,qBAaa,YAAa,YAAW,aAAa;IAEhD,EAAE,EAAE,MAAM,CAAC;IAOX,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAOd,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAU3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,oBAAoB,EAAE,OAAO,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAM1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAM1B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
Index,
|
|
18
18
|
OneToMany,
|
|
19
19
|
PrimaryGeneratedColumn,
|
|
20
|
-
Unique,
|
|
21
20
|
UpdateDateColumn
|
|
22
21
|
} from "typeorm";
|
|
23
22
|
import { Tournament } from "../../tournaments/index.js";
|
|
@@ -112,10 +111,13 @@ __decorateClass([
|
|
|
112
111
|
OneToMany(() => PhoneNumber, (phone) => phone.organization)
|
|
113
112
|
], Organization.prototype, "phoneNumbers", 2);
|
|
114
113
|
Organization = __decorateClass([
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
Index("UQ_organization_document", ["document"], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
115
|
+
Index("UQ_organization_email", ["email"], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
116
|
+
Index("UQ_organization_phone", ["phone"], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
117
|
+
Index("UQ_organization_externalId", ["externalId"], {
|
|
118
|
+
unique: true,
|
|
119
|
+
where: '"deleted_at" IS NULL'
|
|
120
|
+
}),
|
|
119
121
|
Index("idx_organization_document", ["document"]),
|
|
120
122
|
Index("idx_organization_email", ["email"]),
|
|
121
123
|
Index("idx_organization_phone", ["phone"]),
|