feat(invitations): accept invitations with C4 consent and contact grants; share the E0 quota across holdings
This commit is contained in:
1 parent
a5990d3fc6
commit
676b3c6e24
59 files changed
+4926
-194
No files matched your search
@@ -476,6 +476,20 @@ type ConsumerProcessedEvent struct {
|
||||
ProcessedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type ContactGrant struct {
|
||||
ID pgtype.UUID
|
||||
OrganizationID pgtype.UUID
|
||||
CandidateID pgtype.UUID
|
||||
SourceInvitationID pgtype.UUID
|
||||
ConsentRecordID pgtype.UUID
|
||||
TermsVersion int64
|
||||
Fields []string
|
||||
ConsentTextVersion string
|
||||
GrantedAt pgtype.Timestamptz
|
||||
RevokedAt pgtype.Timestamptz
|
||||
RevocationReason pgtype.Text
|
||||
}
|
||||
|
||||
type Delivery struct {
|
||||
ID pgtype.UUID
|
||||
SourceEventID pgtype.UUID
|
||||
@@ -563,6 +577,12 @@ type EmailToken struct {
|
||||
PendingOnboardingStep pgtype.Text
|
||||
}
|
||||
|
||||
type Holding struct {
|
||||
ID pgtype.UUID
|
||||
FounderAccountID pgtype.UUID
|
||||
CreatedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type IdempotencyRecord struct {
|
||||
ScopeHash []byte
|
||||
Fingerprint []byte
|
||||
@@ -592,6 +612,12 @@ type Invitation struct {
|
||||
RespondedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type InvitationAcceptResult struct {
|
||||
ScopeHash []byte
|
||||
InvitationID pgtype.UUID
|
||||
Outcome string
|
||||
}
|
||||
|
||||
type InvitationCreationResult struct {
|
||||
ScopeHash []byte
|
||||
Snapshot []byte
|
||||
@@ -715,6 +741,7 @@ type Organization struct {
|
||||
Version int64
|
||||
CreatedAt pgtype.Timestamptz
|
||||
UpdatedAt pgtype.Timestamptz
|
||||
HoldingID pgtype.UUID
|
||||
}
|
||||
|
||||
type OrganizationCreationResult struct {
|
||||
|
||||
Reference in new issue
Block a user