add: adding contract export library files
This commit is contained in:
parent
cf208dc7c1
commit
4cc3734f96
31 changed files with 307 additions and 3 deletions
|
@ -17,5 +17,3 @@ export 'src/auth/password_broker.dart';
|
||||||
export 'src/auth/stateful_guard.dart';
|
export 'src/auth/stateful_guard.dart';
|
||||||
export 'src/auth/supports_basic_auth.dart';
|
export 'src/auth/supports_basic_auth.dart';
|
||||||
export 'src/auth/user_provider.dart';
|
export 'src/auth/user_provider.dart';
|
||||||
|
|
||||||
// TODO: Export any libraries intended for clients of this package.
|
|
||||||
|
|
12
packages/contracts/lib/broadcasting.dart
Normal file
12
packages/contracts/lib/broadcasting.dart
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Broadcasting Contracts
|
||||||
|
export 'src/broadcasting/broadcaster.dart';
|
||||||
|
export 'src/broadcasting/factory.dart';
|
||||||
|
export 'src/broadcasting/has_broadcast_channel.dart';
|
||||||
|
export 'src/broadcasting/should_be_unique.dart';
|
||||||
|
export 'src/broadcasting/should_broadcast.dart';
|
||||||
|
export 'src/broadcasting/should_broadcast_now.dart';
|
8
packages/contracts/lib/bus.dart
Normal file
8
packages/contracts/lib/bus.dart
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Bus Contracts
|
||||||
|
export 'src/bus/dispatcher.dart';
|
||||||
|
export 'src/bus/queueing_dispatcher.dart';
|
12
packages/contracts/lib/cache.dart
Normal file
12
packages/contracts/lib/cache.dart
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Cache Contracts
|
||||||
|
export 'src/cache/factory.dart';
|
||||||
|
export 'src/cache/lock.dart';
|
||||||
|
export 'src/cache/lock_provider.dart';
|
||||||
|
export 'src/cache/lock_timeout_exception.dart';
|
||||||
|
export 'src/cache/repository.dart';
|
||||||
|
export 'src/cache/store.dart';
|
7
packages/contracts/lib/config.dart
Normal file
7
packages/contracts/lib/config.dart
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Config Contracts
|
||||||
|
export 'src/config/repository.dart';
|
10
packages/contracts/lib/console.dart
Normal file
10
packages/contracts/lib/console.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Console Contracts
|
||||||
|
export 'src/console/application.dart';
|
||||||
|
export 'src/console/isolatable.dart';
|
||||||
|
export 'src/console/kernel.dart';
|
||||||
|
export 'src/console/prompts_for_missing_input.dart';
|
10
packages/contracts/lib/container.dart
Normal file
10
packages/contracts/lib/container.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Container Contracts
|
||||||
|
export 'src/container/binding_resolution_exception.dart';
|
||||||
|
export 'src/container/circular_dependency_exception.dart';
|
||||||
|
export 'src/container/container.dart';
|
||||||
|
export 'src/container/contextual_binding_builder.dart';
|
8
packages/contracts/lib/cookie.dart
Normal file
8
packages/contracts/lib/cookie.dart
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Cookie Contract
|
||||||
|
export 'src/cookie/factory.dart';
|
||||||
|
export 'src/cookie/queueing_factory.dart';
|
19
packages/contracts/lib/database.dart
Normal file
19
packages/contracts/lib/database.dart
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Database Eloquent Contracts
|
||||||
|
export 'src/database/eloquent/builder.dart';
|
||||||
|
export 'src/database/eloquent/castable.dart';
|
||||||
|
export 'src/database/eloquent/casts_attributes.dart';
|
||||||
|
export 'src/database/eloquent/casts_inbound_attributes.dart';
|
||||||
|
export 'src/database/eloquent/deviates_castable_attributes.dart';
|
||||||
|
export 'src/database/eloquent/serializes_castable_attributes.dart';
|
||||||
|
export 'src/database/eloquent/supports_partial_relations.dart';
|
||||||
|
|
||||||
|
// Database Events Contracts
|
||||||
|
export 'src/database/events/migration_event.dart';
|
||||||
|
|
||||||
|
// Database Contracts
|
||||||
|
export 'src/database/model_identifier.dart';
|
9
packages/contracts/lib/database_query.dart
Normal file
9
packages/contracts/lib/database_query.dart
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Database Query Contracts
|
||||||
|
export 'src/database/query/builder.dart';
|
||||||
|
export 'src/database/query/condition_expression.dart';
|
||||||
|
export 'src/database/query/expression.dart';
|
7
packages/contracts/lib/debug.dart
Normal file
7
packages/contracts/lib/debug.dart
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Debug Contracts
|
||||||
|
export 'src/debug/exception_handler.dart';
|
10
packages/contracts/lib/encryption.dart
Normal file
10
packages/contracts/lib/encryption.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Encryption Contracts
|
||||||
|
export 'src/encryption/decrypt_exception.dart';
|
||||||
|
export 'src/encryption/encrypt_exception.dart';
|
||||||
|
export 'src/encryption/encrypter.dart';
|
||||||
|
export 'src/encryption/string_encrypter.dart';
|
9
packages/contracts/lib/events.dart
Normal file
9
packages/contracts/lib/events.dart
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Events Contracts
|
||||||
|
export 'src/events/dispatcher.dart';
|
||||||
|
export 'src/events/should_dispatch_after_commit.dart';
|
||||||
|
export 'src/events/should_handle_events_after_commit.dart';
|
11
packages/contracts/lib/filesystem.dart
Normal file
11
packages/contracts/lib/filesystem.dart
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Filesystem Contracts
|
||||||
|
export 'src/filesystem/cloud.dart';
|
||||||
|
export 'src/filesystem/factory.dart';
|
||||||
|
export 'src/filesystem/file_not_found_exception.dart';
|
||||||
|
export 'src/filesystem/filesystem.dart';
|
||||||
|
export 'src/filesystem/lock_timeout_exception.dart';
|
11
packages/contracts/lib/foundation.dart
Normal file
11
packages/contracts/lib/foundation.dart
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Foundation Contracts
|
||||||
|
export 'src/foundation/application.dart';
|
||||||
|
export 'src/foundation/caches_configuration.dart';
|
||||||
|
export 'src/foundation/caches_routes.dart';
|
||||||
|
export 'src/foundation/exception_renderer.dart';
|
||||||
|
export 'src/foundation/maintenance_mode.dart';
|
7
packages/contracts/lib/hashing.dart
Normal file
7
packages/contracts/lib/hashing.dart
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Hashing Contracts
|
||||||
|
export 'src/hashing/hasher.dart';
|
7
packages/contracts/lib/http.dart
Normal file
7
packages/contracts/lib/http.dart
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Http Contracts
|
||||||
|
export 'src/http/kernel.dart';
|
11
packages/contracts/lib/mail.dart
Normal file
11
packages/contracts/lib/mail.dart
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Mail Contracts
|
||||||
|
export 'src/mail/attachable.dart';
|
||||||
|
export 'src/mail/factory.dart';
|
||||||
|
export 'src/mail/mail_queue.dart';
|
||||||
|
export 'src/mail/mailable.dart';
|
||||||
|
export 'src/mail/mailer.dart';
|
8
packages/contracts/lib/notifications.dart
Normal file
8
packages/contracts/lib/notifications.dart
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Notifications Contracts
|
||||||
|
export 'src/notifications/dispatcher.dart';
|
||||||
|
export 'src/notifications/factory.dart';
|
9
packages/contracts/lib/pagination.dart
Normal file
9
packages/contracts/lib/pagination.dart
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Pagination Contracts
|
||||||
|
export 'src/pagination/cursor_paginator.dart';
|
||||||
|
export 'src/pagination/length_aware_paginator.dart';
|
||||||
|
export 'src/pagination/paginator.dart';
|
8
packages/contracts/lib/pipeline.dart
Normal file
8
packages/contracts/lib/pipeline.dart
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Pipeline Contracts
|
||||||
|
export 'src/pipeline/hub.dart';
|
||||||
|
export 'src/pipeline/pipeline.dart';
|
8
packages/contracts/lib/process.dart
Normal file
8
packages/contracts/lib/process.dart
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Process Contracts
|
||||||
|
export 'src/process/invoked_process.dart';
|
||||||
|
export 'src/process/process_result.dart';
|
20
packages/contracts/lib/queue.dart
Normal file
20
packages/contracts/lib/queue.dart
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Queue Contracts
|
||||||
|
export 'src/queue/clearable_queue.dart';
|
||||||
|
export 'src/queue/entity_not_found_exception.dart';
|
||||||
|
export 'src/queue/entity_resolver.dart';
|
||||||
|
export 'src/queue/factory.dart';
|
||||||
|
export 'src/queue/job.dart';
|
||||||
|
export 'src/queue/monitor.dart';
|
||||||
|
export 'src/queue/queue.dart';
|
||||||
|
export 'src/queue/queueable_collection.dart';
|
||||||
|
export 'src/queue/queueable_entity.dart';
|
||||||
|
export 'src/queue/should_be_encrypted.dart';
|
||||||
|
export 'src/queue/should_be_unique.dart';
|
||||||
|
export 'src/queue/should_be_unique_until_processing.dart';
|
||||||
|
export 'src/queue/should_queue.dart';
|
||||||
|
export 'src/queue/should_queue_after_commit.dart';
|
10
packages/contracts/lib/redis.dart
Normal file
10
packages/contracts/lib/redis.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Redis Contracts
|
||||||
|
export 'src/redis/connection.dart';
|
||||||
|
export 'src/redis/connector.dart';
|
||||||
|
export 'src/redis/factory.dart';
|
||||||
|
export 'src/redis/limiter_timeout_exception.dart';
|
11
packages/contracts/lib/routing.dart
Normal file
11
packages/contracts/lib/routing.dart
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Routing Contracts
|
||||||
|
export 'src/routing/binding_registrar.dart';
|
||||||
|
export 'src/routing/registrar.dart';
|
||||||
|
export 'src/routing/response_factory.dart';
|
||||||
|
export 'src/routing/url_generator.dart';
|
||||||
|
export 'src/routing/url_routable.dart';
|
10
packages/contracts/lib/session.dart
Normal file
10
packages/contracts/lib/session.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Session Middleware Contracts
|
||||||
|
export 'src/session/middleware/authenticates_sessions.dart';
|
||||||
|
|
||||||
|
// Session Contracts
|
||||||
|
export 'src/session/session.dart';
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:symfony/http_foundation.dart';
|
//import 'package:symfony/http_foundation.dart';
|
||||||
|
|
||||||
abstract class SupportsBasicAuth {
|
abstract class SupportsBasicAuth {
|
||||||
/// Attempt to authenticate using HTTP Basic Auth.
|
/// Attempt to authenticate using HTTP Basic Auth.
|
||||||
|
@ -15,3 +15,5 @@ abstract class SupportsBasicAuth {
|
||||||
/// @return Response|null
|
/// @return Response|null
|
||||||
Response? onceBasic({String field = 'email', Map<String, dynamic> extraConditions = const {}});
|
Response? onceBasic({String field = 'email', Map<String, dynamic> extraConditions = const {}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Find a dart package to replace symfony package for Response.
|
17
packages/contracts/lib/support.dart
Normal file
17
packages/contracts/lib/support.dart
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Support Contracts
|
||||||
|
export 'src/support/arrayable.dart';
|
||||||
|
export 'src/support/can_be_escaped_when_cast_to_string.dart';
|
||||||
|
export 'src/support/deferrable_provider.dart';
|
||||||
|
export 'src/support/deferring_displayable_value.dart';
|
||||||
|
export 'src/support/htmlable.dart';
|
||||||
|
export 'src/support/jsonable.dart';
|
||||||
|
export 'src/support/message_bag.dart';
|
||||||
|
export 'src/support/message_provider.dart';
|
||||||
|
export 'src/support/renderable.dart';
|
||||||
|
export 'src/support/responsable.dart';
|
||||||
|
export 'src/support/validate_data.dart';
|
9
packages/contracts/lib/translation.dart
Normal file
9
packages/contracts/lib/translation.dart
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Translation Contracts
|
||||||
|
export 'src/translation/has_local_preferences.dart';
|
||||||
|
export 'src/translation/loader.dart';
|
||||||
|
export 'src/translation/translator.dart';
|
16
packages/contracts/lib/validation.dart
Normal file
16
packages/contracts/lib/validation.dart
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// Validation Contracts
|
||||||
|
export 'src/validation/data_aware_rule.dart';
|
||||||
|
export 'src/validation/factory.dart';
|
||||||
|
export 'src/validation/implicit_rule.dart';
|
||||||
|
export 'src/validation/invokable_rule.dart';
|
||||||
|
export 'src/validation/rule.dart';
|
||||||
|
export 'src/validation/uncompromised_verifier.dart';
|
||||||
|
export 'src/validation/validates_when_resolved.dart';
|
||||||
|
export 'src/validation/validation_rule.dart';
|
||||||
|
export 'src/validation/validator.dart';
|
||||||
|
export 'src/validation/validator_aware_rule.dart';
|
10
packages/contracts/lib/view.dart
Normal file
10
packages/contracts/lib/view.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/// Support for doing something awesome.
|
||||||
|
///
|
||||||
|
/// More dartdocs go here.
|
||||||
|
library;
|
||||||
|
|
||||||
|
// View Contracts
|
||||||
|
export 'src/view/engine.dart';
|
||||||
|
export 'src/view/factory.dart';
|
||||||
|
export 'src/view/view.dart';
|
||||||
|
export 'src/view/view_compilation_exception.dart';
|
Loading…
Reference in a new issue