Skip to content

Commit

Permalink
Renamed project from dart_kiota to kiota_abstractions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Feb 8, 2024
1 parent 3905c9f commit 54a3dc6
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 47 deletions.
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.
The Kiota abstractions library for Dart defines the basic constructs Kiota projects need once
a client has been generated from an OpenAPI definition.

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

## Getting started

TODO: List prerequisites and provide or point to information on how to
start using the package.
A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to the
abstraction package to build and run.

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
Install the package in the generated project:

```dart
const like = 'sample';
```
> For now, you can add the git repository as a dependency in your `pubspec.yaml` file:
>
> ```yaml
> dependencies:
> kiota_abstractions:
> git:
> url: https://github.com/ricardoboss/dart_kiota_abstractions.git
> ref: main
> ```
## Additional information
```bash
dart pub add kiota_abstractions
```
TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
## Development
## TODO
### TODO
From the comment at: https://github.com/microsoft/kiota/issues/2199#issuecomment-1772865549
Expand Down
2 changes: 1 addition & 1 deletion lib/dart_kiota.dart → lib/kiota_abstractions.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library dart_kiota;
library kiota_abstractions;

import 'dart:async';
import 'dart:collection';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/api_client_builder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Provides a builder for creating an ApiClient and register the default
/// serializers/deserializers.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/api_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Parent type for exceptions thrown by the client when receiving failed
/// responses to its requests.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/base_request_builder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Base class for all request builders.
abstract class BaseRequestBuilder {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/extensions/map_extensions.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Extension methods for the [Map] class.
extension<K, V> on Map<K, V> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/extensions/request_information_extensions.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

extension RequestInformationExtensions on RequestInformation {
static const contentTypeHeader = 'Content-Type';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/method.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Represents the HTTP method used by a request.
enum Method {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/multipart_body.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Represents a multipart body for a request or a response
class MultipartBody implements Parsable {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/request_adapter.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Service responsible for translating abstract [RequestInformation] into
/// concrete native HTTP requests.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/request_headers.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

class RequestHeaders implements Map<String, String> {
RequestHeaders();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/request_information.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// This class represents an abstract HTTP request.
class RequestInformation {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/request_option.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Represents a request option.
abstract class RequestOption {}
2 changes: 1 addition & 1 deletion lib/src/response_handler.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

// ignore: one_member_abstracts
abstract class ResponseHandler {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/response_handler_option.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../dart_kiota.dart';
part of '../kiota_abstractions.dart';

/// Defines the [RequestOption] for holding a [ResponseHandler].
class ResponseHandlerOption implements RequestOption {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/parsable.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Defines a serializable model object
abstract class Parsable {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/parsable_factory.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Defines the factory for creating parsable objects. The [node] used to get
/// the discriminator value from the payload.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/parse_node.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Interface for a deserialization node in a parse tree. This interface
/// provides an abstraction layer over serialization formats, libraries and
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/parse_node_factory.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Defines the contract for a factory that creates parse nodes.
abstract class ParseNodeFactory {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/parse_node_factory_registry.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// A regex that matches any sequence of characters that are not a forward slash
/// followed by a plus sign.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/serialization_writer.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

abstract class SerializationWriter {
/// Writes the specified string value to the stream with an optional given
Expand Down
2 changes: 1 addition & 1 deletion lib/src/serialization/serialization_writer_factory.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// Defines the contract for a factory that creates [SerializationWriter]
/// instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../dart_kiota.dart';
part of '../../kiota_abstractions.dart';

/// This factory holds a list of all the registered factories for the various
/// types of nodes.
Expand Down
10 changes: 8 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: dart_kiota
name: kiota_abstractions
description: "Kiota abstractions for Dart."
version: 0.0.1
homepage: https://github.com/ricardoboss/dart_kiota
homepage: https://github.com/ricardoboss/dart_kiota_abstractions
publish_to: 'none'

topics:
- kiota
- abstractions
- api
- client

environment:
sdk: '>=3.2.6 <4.0.0'

Expand Down
2 changes: 1 addition & 1 deletion test/request_information_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import 'dart:typed_data';

import 'package:dart_kiota/dart_kiota.dart';
import 'package:kiota_abstractions/kiota_abstractions.dart';
import 'package:mockito/annotations.dart';
import 'package:test/test.dart';

Expand Down
4 changes: 2 additions & 2 deletions test/request_information_test.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Mocks generated by Mockito 5.4.4 from annotations
// in dart_kiota/test/request_information_test.dart.
// in kiota_abstractions/test/request_information_test.dart.
// Do not manually edit this file.

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:dart_kiota/dart_kiota.dart' as _i2;
import 'package:kiota_abstractions/kiota_abstractions.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;

// ignore_for_file: type=lint
Expand Down

0 comments on commit 54a3dc6

Please sign in to comment.