@natrave/shared-entities 1.4.95 → 1.4.96
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/index.d.ts +1 -0
- package/dist/central-auth/index.d.ts.map +1 -1
- package/dist/central-auth/index.js +1 -0
- package/dist/central-auth/organization-user-billing-infos/index.d.ts +2 -0
- package/dist/central-auth/organization-user-billing-infos/index.d.ts.map +1 -0
- package/dist/central-auth/organization-user-billing-infos/index.js +4 -0
- package/dist/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.d.ts +15 -0
- package/dist/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.js +97 -0
- package/dist/central-auth/organization-users/organization-user.entity.d.ts +2 -0
- package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
- package/dist/central-auth/organization-users/organization-user.entity.js +5 -0
- package/dist/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +7 -1
- package/dist/facilities/addresses/address.entity.d.ts +2 -0
- package/dist/facilities/addresses/address.entity.d.ts.map +1 -1
- package/dist/facilities/addresses/address.entity.js +4 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC;AAErC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC;AAErC,cAAc,mCAAmC,CAAC;AAElD,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-billing-infos/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Address } from '../../facilities/addresses';
|
|
2
|
+
import { OrganizationUser } from '../organization-users';
|
|
3
|
+
export declare class OrganizationUserBillingInfo {
|
|
4
|
+
id: number;
|
|
5
|
+
organizationUserId: number;
|
|
6
|
+
document: string;
|
|
7
|
+
name: string;
|
|
8
|
+
billingAddressId: number;
|
|
9
|
+
phone: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
organizationUser: OrganizationUser;
|
|
13
|
+
billingAddress: Address;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=organization-user-billing-info.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-billing-info.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAKzD,qBAIa,2BAA2B;IAItC,EAAE,EAAE,MAAM,CAAC;IAOX,kBAAkB,EAAE,MAAM,CAAC;IAO3B,QAAQ,EAAE,MAAM,CAAC;IAOjB,IAAI,EAAE,MAAM,CAAC;IAOb,gBAAgB,EAAE,MAAM,CAAC;IAOzB,KAAK,EAAE,MAAM,CAAC;IAOd,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,gBAAgB,EAAE,gBAAgB,CAAC;IAInC,cAAc,EAAE,OAAO,CAAC;CACzB"}
|
package/dist/central-auth/organization-user-billing-infos/organization-user-billing-info.entity.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
OneToOne,
|
|
19
|
+
PrimaryGeneratedColumn,
|
|
20
|
+
Unique,
|
|
21
|
+
UpdateDateColumn
|
|
22
|
+
} from "typeorm";
|
|
23
|
+
import { Address } from "../../facilities/addresses/index.js";
|
|
24
|
+
import { OrganizationUser } from "../organization-users/index.js";
|
|
25
|
+
let OrganizationUserBillingInfo = class {
|
|
26
|
+
};
|
|
27
|
+
__decorateClass([
|
|
28
|
+
PrimaryGeneratedColumn({
|
|
29
|
+
comment: "Identificador \xFAnico das informa\xE7\xF5es de cobran\xE7a."
|
|
30
|
+
})
|
|
31
|
+
], OrganizationUserBillingInfo.prototype, "id", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
name: "organization_user_id",
|
|
35
|
+
type: "int",
|
|
36
|
+
comment: "Identificador do usu\xE1rio da organiza\xE7\xE3o."
|
|
37
|
+
})
|
|
38
|
+
], OrganizationUserBillingInfo.prototype, "organizationUserId", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: 20,
|
|
43
|
+
comment: "Documento fiscal (CPF ou CNPJ)."
|
|
44
|
+
})
|
|
45
|
+
], OrganizationUserBillingInfo.prototype, "document", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
Column({
|
|
48
|
+
type: "varchar",
|
|
49
|
+
length: 255,
|
|
50
|
+
comment: "Nome ou raz\xE3o social para cobran\xE7a."
|
|
51
|
+
})
|
|
52
|
+
], OrganizationUserBillingInfo.prototype, "name", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
Column({
|
|
55
|
+
name: "billing_address_id",
|
|
56
|
+
type: "int",
|
|
57
|
+
comment: "Identificador do endere\xE7o de cobran\xE7a."
|
|
58
|
+
})
|
|
59
|
+
], OrganizationUserBillingInfo.prototype, "billingAddressId", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
Column({
|
|
62
|
+
type: "varchar",
|
|
63
|
+
length: 20,
|
|
64
|
+
comment: "Telefone para cobran\xE7a no formato +55XXXXXXXXXXX."
|
|
65
|
+
})
|
|
66
|
+
], OrganizationUserBillingInfo.prototype, "phone", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
CreateDateColumn({
|
|
69
|
+
name: "created_at",
|
|
70
|
+
type: "timestamptz",
|
|
71
|
+
comment: "Data de cria\xE7\xE3o do registro."
|
|
72
|
+
})
|
|
73
|
+
], OrganizationUserBillingInfo.prototype, "createdAt", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
UpdateDateColumn({
|
|
76
|
+
name: "updated_at",
|
|
77
|
+
type: "timestamptz",
|
|
78
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
79
|
+
})
|
|
80
|
+
], OrganizationUserBillingInfo.prototype, "updatedAt", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
OneToOne(() => OrganizationUser, (user) => user.billingInfo, { onDelete: "CASCADE" }),
|
|
83
|
+
JoinColumn({ name: "organization_user_id" })
|
|
84
|
+
], OrganizationUserBillingInfo.prototype, "organizationUser", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
ManyToOne(() => Address),
|
|
87
|
+
JoinColumn({ name: "billing_address_id" })
|
|
88
|
+
], OrganizationUserBillingInfo.prototype, "billingAddress", 2);
|
|
89
|
+
OrganizationUserBillingInfo = __decorateClass([
|
|
90
|
+
Entity("organization_user_billing_infos"),
|
|
91
|
+
Unique("UQ_organization_user_billing_info_user", ["organizationUserId"]),
|
|
92
|
+
Index("idx_org_user_billing_document", ["document"]),
|
|
93
|
+
Index("idx_org_user_billing_user", ["organizationUserId"])
|
|
94
|
+
], OrganizationUserBillingInfo);
|
|
95
|
+
export {
|
|
96
|
+
OrganizationUserBillingInfo
|
|
97
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IOrganizationUser, OrganizationUserStatus } from '@natrave/auth-service-types';
|
|
2
2
|
import { TournamentPayment } from '../../tournaments';
|
|
3
|
+
import { OrganizationUserBillingInfo } from '../organization-user-billing-infos';
|
|
3
4
|
import { Organization } from '../organizations';
|
|
4
5
|
export declare class OrganizationUser implements IOrganizationUser {
|
|
5
6
|
id: number;
|
|
@@ -15,5 +16,6 @@ export declare class OrganizationUser implements IOrganizationUser {
|
|
|
15
16
|
updatedAt: Date;
|
|
16
17
|
organization: Organization;
|
|
17
18
|
tournamentPayments: TournamentPayment[];
|
|
19
|
+
billingInfo: OrganizationUserBillingInfo;
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=organization-user.entity.d.ts.map
|
|
@@ -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;AAEhD,qBAWa,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;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,YAAY,EAAE,YAAY,CAAC;IAM3B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAMxC,WAAW,EAAE,2BAA2B,CAAC;CAC1C"}
|
|
@@ -17,11 +17,13 @@ import {
|
|
|
17
17
|
JoinColumn,
|
|
18
18
|
ManyToOne,
|
|
19
19
|
OneToMany,
|
|
20
|
+
OneToOne,
|
|
20
21
|
PrimaryGeneratedColumn,
|
|
21
22
|
Unique,
|
|
22
23
|
UpdateDateColumn
|
|
23
24
|
} from "typeorm";
|
|
24
25
|
import { TournamentPayment } from "../../tournaments/index.js";
|
|
26
|
+
import { OrganizationUserBillingInfo } from "../organization-user-billing-infos/index.js";
|
|
25
27
|
import { Organization } from "../organizations/index.js";
|
|
26
28
|
let OrganizationUser = class {
|
|
27
29
|
};
|
|
@@ -110,6 +112,9 @@ __decorateClass([
|
|
|
110
112
|
__decorateClass([
|
|
111
113
|
OneToMany(() => TournamentPayment, (tournamentPayment) => tournamentPayment.organizationUser)
|
|
112
114
|
], OrganizationUser.prototype, "tournamentPayments", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
OneToOne(() => OrganizationUserBillingInfo, (billingInfo) => billingInfo.organizationUser)
|
|
117
|
+
], OrganizationUser.prototype, "billingInfo", 2);
|
|
113
118
|
OrganizationUser = __decorateClass([
|
|
114
119
|
Unique("UQ_organization_users_document", ["document"]),
|
|
115
120
|
Unique("UQ_organization_users_email", ["email"]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordReset, RefreshToken, User, UserAuthProvider, UserVerification } from '../app-auth';
|
|
2
|
-
import { Organization, OrganizationUser, PhoneNumber } from '../central-auth';
|
|
2
|
+
import { Organization, OrganizationUser, OrganizationUserBillingInfo, PhoneNumber } from '../central-auth';
|
|
3
3
|
import { Coupon, CouponUsage } from '../coupons';
|
|
4
4
|
import { Address, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
|
|
5
5
|
import { TeamPlayerMergeHistory } from '../history-logs';
|
|
@@ -9,5 +9,5 @@ import { Player, PlayerPosition } from '../players';
|
|
|
9
9
|
import { PlayerTeam, Team, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
10
10
|
import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
|
|
11
11
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
12
|
-
export declare const DATABASE_ENTITIES: (typeof
|
|
12
|
+
export declare const DATABASE_ENTITIES: (typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof OrganizationUser | typeof Organization | typeof TournamentPayment | typeof PhoneNumber | typeof TournamentAllowedPhone | typeof Tournament | typeof FacilityOwner | typeof PasswordReset | typeof NotificationToken | typeof User | typeof UserAuthProvider | typeof RefreshToken | typeof Player | typeof TournamentRegistrationRequest | typeof UserVerification | typeof PlayerPosition | typeof PlayerTeam | typeof TeamJoinRequest | typeof TeamPlayerMergeHistory | typeof Team | typeof TournamentPlayer | typeof TournamentTeam | typeof TeamModality | typeof TournamentTeamContactAttempt | typeof TeamTrophy | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentFormatConfig | typeof TournamentMatchGoal | typeof TournamentMatch | typeof TournamentMatchCard | typeof TournamentPenaltyShootout | typeof TournamentGroup | typeof TournamentBracketSlot | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentBracket | typeof TournamentPublicationChargeRule | typeof UserDomainEvent | typeof UserEventView)[];
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvF,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAE7B,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,i4CAyD7B,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PasswordReset, RefreshToken, User, UserAuthProvider, UserVerification } from "../app-auth/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Organization,
|
|
4
|
+
OrganizationUser,
|
|
5
|
+
OrganizationUserBillingInfo,
|
|
6
|
+
PhoneNumber
|
|
7
|
+
} from "../central-auth/index.js";
|
|
3
8
|
import { Coupon, CouponUsage } from "../coupons/index.js";
|
|
4
9
|
import { Address, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from "../facilities/index.js";
|
|
5
10
|
import { TeamPlayerMergeHistory } from "../history-logs/index.js";
|
|
@@ -46,6 +51,7 @@ const DATABASE_ENTITIES = [
|
|
|
46
51
|
FieldImage,
|
|
47
52
|
Organization,
|
|
48
53
|
OrganizationUser,
|
|
54
|
+
OrganizationUserBillingInfo,
|
|
49
55
|
PasswordReset,
|
|
50
56
|
Payment,
|
|
51
57
|
PaymentProvider,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAddress } from '@natrave/facility-service-types';
|
|
2
2
|
import { BrazilianState } from '@natrave/tournaments-service-types';
|
|
3
|
+
import { OrganizationUserBillingInfo } from '../../central-auth';
|
|
3
4
|
import { Facility } from '../../facilities/facilities';
|
|
4
5
|
export declare class Address implements IAddress {
|
|
5
6
|
id: number;
|
|
@@ -16,5 +17,6 @@ export declare class Address implements IAddress {
|
|
|
16
17
|
latitude: number;
|
|
17
18
|
longitude: number;
|
|
18
19
|
facilities: Facility[];
|
|
20
|
+
organizationUserBillingInfos: OrganizationUserBillingInfo[];
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=address.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAWpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAWvD,qBAEa,OAAQ,YAAW,QAAQ;IAItC,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,MAAM,CAAC;IAOtB,MAAM,EAAE,MAAM,CAAC;IAQf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,YAAY,EAAE,MAAM,CAAC;IAOrB,IAAI,EAAE,MAAM,CAAC;IAOb,KAAK,EAAE,cAAc,CAAC;IAQtB,UAAU,EAAE,MAAM,CAAC;IAOnB,OAAO,EAAE,MAAM,CAAC;IAShB,QAAQ,EAAE,MAAM,CAAC;IASjB,SAAS,EAAE,MAAM,CAAC;IAUlB,UAAU,EAAE,QAAQ,EAAE,CAAC;IAMvB,4BAA4B,EAAE,2BAA2B,EAAE,CAAC;CAC7D"}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
PrimaryGeneratedColumn,
|
|
19
19
|
UpdateDateColumn
|
|
20
20
|
} from "typeorm";
|
|
21
|
+
import { OrganizationUserBillingInfo } from "../../central-auth/index.js";
|
|
21
22
|
import { DecimalTransformer } from "../../common/utils/decimal-transformer.utils.js";
|
|
22
23
|
import { Facility } from "../../facilities/facilities/index.js";
|
|
23
24
|
let Address = class {
|
|
@@ -123,6 +124,9 @@ __decorateClass([
|
|
|
123
124
|
onDelete: "CASCADE"
|
|
124
125
|
})
|
|
125
126
|
], Address.prototype, "facilities", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
OneToMany(() => OrganizationUserBillingInfo, (billingInfo) => billingInfo.billingAddress)
|
|
129
|
+
], Address.prototype, "organizationUserBillingInfos", 2);
|
|
126
130
|
Address = __decorateClass([
|
|
127
131
|
Entity("addresses"),
|
|
128
132
|
Index("idx_facility_postal_code", ["postalCode"])
|