@@ -21,8 +21,8 @@ import (
|
||||
type ApplicabilityStatementOrderField string
|
||||
|
||||
const (
|
||||
ApplicabilityStatementOrderFieldCreatedAt ApplicabilityStatementOrderField = "CREATED_AT"
|
||||
ApplicabilityStatementOrderFieldControlSectionTitle ApplicabilityStatementOrderField = "CONTROL_SECTION_TITLE"
|
||||
ApplicabilityStatementOrderFieldCreatedAt ApplicabilityStatementOrderField = "CREATED_AT"
|
||||
ApplicabilityStatementOrderFieldControlSectionTitle ApplicabilityStatementOrderField = "CONTROL_SECTION_TITLE"
|
||||
)
|
||||
|
||||
func (p ApplicabilityStatementOrderField) Column() string {
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -19,10 +19,10 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/crypto/cipher"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/crypto/cipher"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -43,4 +43,3 @@ func (p *DataProtectionImpactAssessmentOrderField) UnmarshalText(text []byte) er
|
||||
}
|
||||
return fmt.Errorf("invalid DataProtectionImpactAssessmentOrderField value: %q", val)
|
||||
}
|
||||
|
||||
|
||||
@@ -66,4 +66,3 @@ func (p *DataProtectionImpactAssessmentResidualRisk) Scan(value any) error {
|
||||
func (p DataProtectionImpactAssessmentResidualRisk) Value() (driver.Value, error) {
|
||||
return p.String(), nil
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -62,11 +62,11 @@ ON CONFLICT (document_id, approver_profile_id) DO NOTHING;
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"document_id": da.DocumentID,
|
||||
"document_id": da.DocumentID,
|
||||
"approver_profile_id": da.ApproverProfileID,
|
||||
"organization_id": da.OrganizationID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"created_at": da.CreatedAt,
|
||||
"organization_id": da.OrganizationID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"created_at": da.CreatedAt,
|
||||
}
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
type RightsRequestType string
|
||||
|
||||
const (
|
||||
RightsRequestTypeAccess RightsRequestType = "ACCESS"
|
||||
RightsRequestTypeDeletion RightsRequestType = "DELETION"
|
||||
RightsRequestTypeAccess RightsRequestType = "ACCESS"
|
||||
RightsRequestTypeDeletion RightsRequestType = "DELETION"
|
||||
RightsRequestTypePortability RightsRequestType = "PORTABILITY"
|
||||
)
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"maps"
|
||||
"time"
|
||||
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -43,4 +43,3 @@ func (p *TransferImpactAssessmentOrderField) UnmarshalText(text []byte) error {
|
||||
}
|
||||
return fmt.Errorf("invalid TransferImpactAssessmentOrderField value: %q", val)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package coredata
|
||||
|
||||
import (
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -29,12 +29,12 @@ import (
|
||||
|
||||
type (
|
||||
WebhookData struct {
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
EventType WebhookEventType `db:"event_type"`
|
||||
Data json.RawMessage `db:"data"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
ProcessedAt *time.Time `db:"processed_at"`
|
||||
Data json.RawMessage `db:"data"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
ProcessedAt *time.Time `db:"processed_at"`
|
||||
}
|
||||
|
||||
WebhookDataList []*WebhookData
|
||||
|
||||
@@ -29,12 +29,12 @@ import (
|
||||
|
||||
type (
|
||||
WebhookEvent struct {
|
||||
ID gid.GID `db:"id"`
|
||||
WebhookDataID gid.GID `db:"webhook_data_id"`
|
||||
ID gid.GID `db:"id"`
|
||||
WebhookDataID gid.GID `db:"webhook_data_id"`
|
||||
WebhookSubscriptionID gid.GID `db:"webhook_subscription_id"`
|
||||
Status WebhookEventStatus `db:"status"`
|
||||
Response json.RawMessage `db:"response"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
Status WebhookEventStatus `db:"status"`
|
||||
Response json.RawMessage `db:"response"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
}
|
||||
|
||||
WebhookEvents []*WebhookEvent
|
||||
@@ -143,13 +143,13 @@ VALUES (
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"id": w.ID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_data_id": w.WebhookDataID,
|
||||
"id": w.ID,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_data_id": w.WebhookDataID,
|
||||
"webhook_subscription_id": w.WebhookSubscriptionID,
|
||||
"status": w.Status,
|
||||
"response": w.Response,
|
||||
"created_at": w.CreatedAt,
|
||||
"status": w.Status,
|
||||
"response": w.Response,
|
||||
"created_at": w.CreatedAt,
|
||||
}
|
||||
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
type WebhookEventStatus string
|
||||
|
||||
const (
|
||||
WebhookEventStatusPending WebhookEventStatus = "PENDING"
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
WebhookEventStatusPending WebhookEventStatus = "PENDING"
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
)
|
||||
|
||||
func (s WebhookEventStatus) String() string {
|
||||
|
||||
@@ -281,14 +281,14 @@ VALUES (
|
||||
`
|
||||
|
||||
args := pgx.StrictNamedArgs{
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_subscription_id": w.ID,
|
||||
"organization_id": w.OrganizationID,
|
||||
"endpoint_url": w.EndpointURL,
|
||||
"selected_events": w.SelectedEvents,
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_subscription_id": w.ID,
|
||||
"organization_id": w.OrganizationID,
|
||||
"endpoint_url": w.EndpointURL,
|
||||
"selected_events": w.SelectedEvents,
|
||||
"encrypted_signing_secret": w.EncryptedSigningSecret,
|
||||
"created_at": w.CreatedAt,
|
||||
"updated_at": w.UpdatedAt,
|
||||
"created_at": w.CreatedAt,
|
||||
"updated_at": w.UpdatedAt,
|
||||
}
|
||||
_, err := conn.Exec(ctx, q, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user