mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
update dockerfiles based on latest streamline image
The latest images incorporate all changes previously added by the dockerfiles. The arm image however is still missing/unreliable from the registry and must be built independently.
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface AttributeEncoder extends AttributeModifier
|
||||
{
|
||||
/**
|
||||
* Encode an attribute value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function encode($value);
|
||||
|
||||
/**
|
||||
* Decode an attribute value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function decode($value);
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface AttributeModifier
|
||||
{
|
||||
//
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface AttributeRedactor extends AttributeModifier
|
||||
{
|
||||
/**
|
||||
* Redact an attribute value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function redact($value): string;
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
/**
|
||||
* @mixin \OwenIt\Auditing\Models\Audit
|
||||
*/
|
||||
interface Audit
|
||||
{
|
||||
/**
|
||||
* Get the current connection name for the model.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getConnectionName();
|
||||
|
||||
/**
|
||||
* Get the table associated with the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTable();
|
||||
|
||||
/**
|
||||
* Get the auditable model to which this Audit belongs.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function auditable();
|
||||
|
||||
/**
|
||||
* User responsible for the changes.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function user();
|
||||
|
||||
/**
|
||||
* Audit data resolver.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function resolveData(): array;
|
||||
|
||||
/**
|
||||
* Get an Audit data value.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getDataValue(string $key);
|
||||
|
||||
/**
|
||||
* Get the Audit metadata.
|
||||
*
|
||||
* @param bool $json
|
||||
* @param int $options
|
||||
* @param int $depth
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
public function getMetadata(bool $json = false, int $options = 0, int $depth = 512);
|
||||
|
||||
/**
|
||||
* Get the Auditable modified attributes.
|
||||
*
|
||||
* @param bool $json
|
||||
* @param int $options
|
||||
* @param int $depth
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
public function getModified(bool $json = false, int $options = 0, int $depth = 512);
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface AuditDriver
|
||||
{
|
||||
/**
|
||||
* Perform an audit.
|
||||
*
|
||||
* @param \OwenIt\Auditing\Contracts\Auditable $model
|
||||
*
|
||||
* @return \OwenIt\Auditing\Contracts\Audit
|
||||
*/
|
||||
public function audit(Auditable $model): ?Audit;
|
||||
|
||||
/**
|
||||
* Remove older audits that go over the threshold.
|
||||
*
|
||||
* @param \OwenIt\Auditing\Contracts\Auditable $model
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function prune(Auditable $model): bool;
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
|
||||
interface Auditable
|
||||
{
|
||||
/**
|
||||
* Auditable Model audits.
|
||||
*
|
||||
* @return MorphMany<\OwenIt\Auditing\Models\Audit>
|
||||
*/
|
||||
public function audits(): MorphMany;
|
||||
|
||||
/**
|
||||
* Set the Audit event.
|
||||
*
|
||||
* @param string $event
|
||||
*
|
||||
* @return Auditable
|
||||
*/
|
||||
public function setAuditEvent(string $event): Auditable;
|
||||
|
||||
/**
|
||||
* Get the Audit event that is set.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getAuditEvent();
|
||||
|
||||
/**
|
||||
* Get the events that trigger an Audit.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAuditEvents(): array;
|
||||
|
||||
/**
|
||||
* Is the model ready for auditing?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function readyForAuditing(): bool;
|
||||
|
||||
/**
|
||||
* Return data for an Audit.
|
||||
*
|
||||
* @throws \OwenIt\Auditing\Exceptions\AuditingException
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toAudit(): array;
|
||||
|
||||
/**
|
||||
* Get the (Auditable) attributes included in audit.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAuditInclude(): array;
|
||||
|
||||
/**
|
||||
* Get the (Auditable) attributes excluded from audit.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAuditExclude(): array;
|
||||
|
||||
/**
|
||||
* Get the strict audit status.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getAuditStrict(): bool;
|
||||
|
||||
/**
|
||||
* Get the audit (Auditable) timestamps status.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getAuditTimestamps(): bool;
|
||||
|
||||
/**
|
||||
* Get the Audit Driver.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getAuditDriver();
|
||||
|
||||
/**
|
||||
* Get the Audit threshold.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getAuditThreshold(): int;
|
||||
|
||||
/**
|
||||
* Get the Attribute modifiers.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAttributeModifiers(): array;
|
||||
|
||||
/**
|
||||
* Transform the data before performing an audit.
|
||||
*
|
||||
* @param array $data
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transformAudit(array $data): array;
|
||||
|
||||
/**
|
||||
* Generate an array with the model tags.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function generateTags(): array;
|
||||
|
||||
/**
|
||||
* Transition to another model state from an Audit.
|
||||
*
|
||||
* @param Audit $audit
|
||||
* @param bool $old
|
||||
*
|
||||
* @throws \OwenIt\Auditing\Exceptions\AuditableTransitionException
|
||||
*
|
||||
* @return Auditable
|
||||
*/
|
||||
public function transitionTo(Audit $audit, bool $old = false): Auditable;
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface Auditor
|
||||
{
|
||||
/**
|
||||
* Get an audit driver instance.
|
||||
*
|
||||
* @param \OwenIt\Auditing\Contracts\Auditable $model
|
||||
*
|
||||
* @return AuditDriver
|
||||
*/
|
||||
public function auditDriver(Auditable $model): AuditDriver;
|
||||
|
||||
/**
|
||||
* Perform an audit.
|
||||
*
|
||||
* @param \OwenIt\Auditing\Contracts\Auditable $model
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function execute(Auditable $model);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @see Resolver
|
||||
*/
|
||||
interface IpAddressResolver
|
||||
{
|
||||
/**
|
||||
* Resolve the IP Address.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function resolve(): string;
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface Resolver
|
||||
{
|
||||
public static function resolve(Auditable $auditable);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @see Resolver
|
||||
*/
|
||||
interface UrlResolver
|
||||
{
|
||||
/**
|
||||
* Resolve the URL.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function resolve(): string;
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @see Resolver
|
||||
*/
|
||||
interface UserAgentResolver
|
||||
{
|
||||
/**
|
||||
* Resolve the User Agent.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public static function resolve();
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Contracts;
|
||||
|
||||
interface UserResolver
|
||||
{
|
||||
/**
|
||||
* Resolve the User.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Auth\Authenticatable|null
|
||||
*/
|
||||
public static function resolve();
|
||||
}
|
||||
Reference in New Issue
Block a user