Skip to content

Commit

Permalink
feat: update all clients (#576)
Browse files Browse the repository at this point in the history
Co-authored-by: Marat Shakirov <marat.s@affinidi.com>
  • Loading branch information
github-actions[bot] and maratsh authored Feb 11, 2025
1 parent b8e7e77 commit 6e0e5d9
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 115 deletions.
22 changes: 11 additions & 11 deletions clients/dart/credential_issuance_client/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# affinidi_tdk_credential_issuance_client (EXPERIMENTAL)

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)
Affinidi TDK dart client for Affinidi CREDENTIAL ISSUANCE

## Requirements

Expand All @@ -22,19 +15,20 @@ To use the package from [pub.dev](https://pub.dev), please include the following

```yaml
dependencies:
affinidi_tdk_credential_issuance_client: 1.0.0
affinidi_tdk_credential_issuance_client: ^1.0.0
```
### Github
If this Dart package is published to Github, please include the following in pubspec.yaml
This Dart package is published to Github, please include the following in pubspec.yaml
```yaml
dependencies:
affinidi_tdk_credential_issuance_client:
git:
url: https://github.com/affinidi/affinidi-tdk.git
#ref: main
ref: main
path: clients/dart/credential_issuance_client
```
### Local development
Expand All @@ -47,6 +41,12 @@ dependencies:
path: /path/to/affinidi_tdk_credential_issuance_client
```
### Install dependencies
```bash
dart pub get
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| --------------- | ---------------------------------------------------------------------- | ------------------------------------------- | ---------- |
| **credentials** | [**BuiltList&lt;BuiltMap&lt;String, JsonObject&gt;&gt;**](BuiltMap.md) | list of credentials | [optional] |
| **next** | **String** | for pagination to fetch next set of records | [optional] |
| Name | Type | Description | Notes |
| -------------------- | ---------------------------------------------------------------------- | ------------------------------------------- | ---------- |
| **credentials** | [**BuiltList&lt;BuiltMap&lt;String, JsonObject&gt;&gt;**](BuiltMap.md) | list of credentials | [optional] |
| **lastEvaluatedKey** | **String** | for pagination to fetch next set of records | [optional] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22 changes: 12 additions & 10 deletions clients/dart/credential_issuance_client/doc/CredentialsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ try {

# **getClaimedCredentials**

> ClaimedCredentialListResponse getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next)
> ClaimedCredentialListResponse getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, exclusiveStartKey, limit)
Get claimed credential in the specified range

Expand All @@ -81,10 +81,11 @@ final String projectId = projectId_example; // String | project id
final String configurationId = configurationId_example; // String | configuration id
final String rangeStartTime = rangeStartTime_example; // String |
final String rangeEndTime = rangeEndTime_example; // String |
final String next = next_example; // String |
final String exclusiveStartKey = exclusiveStartKey_example; // String | exclusiveStartKey for retrieving the next batch of data.
final int limit = 56; // int |
try {
final response = api.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next);
final response = api.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, exclusiveStartKey, limit);
print(response);
} catch on DioException (e) {
print('Exception when calling CredentialsApi->getClaimedCredentials: $e\n');
Expand All @@ -93,13 +94,14 @@ try {

### Parameters

| Name | Type | Description | Notes |
| ------------------- | ---------- | ---------------- | ---------- |
| **projectId** | **String** | project id |
| **configurationId** | **String** | configuration id |
| **rangeStartTime** | **String** | |
| **rangeEndTime** | **String** | | [optional] |
| **next** | **String** | | [optional] |
| Name | Type | Description | Notes |
| --------------------- | ---------- | -------------------------------------------------------- | -------------------------- |
| **projectId** | **String** | project id |
| **configurationId** | **String** | configuration id |
| **rangeStartTime** | **String** | |
| **rangeEndTime** | **String** | | [optional] |
| **exclusiveStartKey** | **String** | exclusiveStartKey for retrieving the next batch of data. | [optional] |
| **limit** | **int** | | [optional] [default to 20] |

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ class CredentialsApi {
/// * [configurationId] - configuration id
/// * [rangeStartTime]
/// * [rangeEndTime]
/// * [next]
/// * [exclusiveStartKey] - exclusiveStartKey for retrieving the next batch of data.
/// * [limit]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
Expand All @@ -152,7 +153,8 @@ class CredentialsApi {
required String configurationId,
required String rangeStartTime,
String? rangeEndTime,
String? next,
String? exclusiveStartKey,
int? limit = 20,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
Expand Down Expand Up @@ -183,7 +185,8 @@ class CredentialsApi {
final _queryParameters = <String, dynamic>{
r'rangeStartTime': encodeQueryParameter(_serializers, rangeStartTime, const FullType(String)),
if (rangeEndTime != null) r'rangeEndTime': encodeQueryParameter(_serializers, rangeEndTime, const FullType(String)),
if (next != null) r'next': encodeQueryParameter(_serializers, next, const FullType(String)),
if (exclusiveStartKey != null) r'exclusiveStartKey': encodeQueryParameter(_serializers, exclusiveStartKey, const FullType(String)),
if (limit != null) r'limit': encodeQueryParameter(_serializers, limit, const FullType(int)),
};

final _response = await _dio.request<Object>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ part 'claimed_credential_list_response.g.dart';
///
/// Properties:
/// * [credentials] - list of credentials
/// * [next] - for pagination to fetch next set of records
/// * [lastEvaluatedKey] - for pagination to fetch next set of records
@BuiltValue()
abstract class ClaimedCredentialListResponse implements Built<ClaimedCredentialListResponse, ClaimedCredentialListResponseBuilder> {
/// list of credentials
@BuiltValueField(wireName: r'credentials')
BuiltList<BuiltMap<String, JsonObject?>>? get credentials;

/// for pagination to fetch next set of records
@BuiltValueField(wireName: r'next')
String? get next;
@BuiltValueField(wireName: r'lastEvaluatedKey')
String? get lastEvaluatedKey;

ClaimedCredentialListResponse._();

Expand Down Expand Up @@ -55,10 +55,10 @@ class _$ClaimedCredentialListResponseSerializer implements PrimitiveSerializer<C
specifiedType: const FullType(BuiltList, [FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)])]),
);
}
if (object.next != null) {
yield r'next';
if (object.lastEvaluatedKey != null) {
yield r'lastEvaluatedKey';
yield serializers.serialize(
object.next,
object.lastEvaluatedKey,
specifiedType: const FullType(String),
);
}
Expand Down Expand Up @@ -92,12 +92,12 @@ class _$ClaimedCredentialListResponseSerializer implements PrimitiveSerializer<C
) as BuiltList<BuiltMap<String, JsonObject?>>;
result.credentials.replace(valueDes);
break;
case r'next':
case r'lastEvaluatedKey':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.next = valueDes;
result.lastEvaluatedKey = valueDes;
break;
default:
unhandled.add(key);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ void main() {
});

// for pagination to fetch next set of records
// String next
test('to test the property `next`', () async {
// String lastEvaluatedKey
test('to test the property `lastEvaluatedKey`', () async {
// TODO
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() {
//
// Get claimed credential in the specified range
//
//Future<ClaimedCredentialListResponse> getClaimedCredentials(String projectId, String configurationId, String rangeStartTime, { String rangeEndTime, String next }) async
//Future<ClaimedCredentialListResponse> getClaimedCredentials(String projectId, String configurationId, String rangeStartTime, { String rangeEndTime, String exclusiveStartKey, int limit }) async
test('test getClaimedCredentials', () async {
// TODO
});
Expand Down
22 changes: 11 additions & 11 deletions clients/dart/credential_verification_client/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# affinidi_tdk_credential_verification_client (EXPERIMENTAL)

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)
Affinidi TDK dart client for Affinidi CREDENTIAL VERIFICATION

## Requirements

Expand All @@ -22,19 +15,20 @@ To use the package from [pub.dev](https://pub.dev), please include the following

```yaml
dependencies:
affinidi_tdk_credential_verification_client: 1.0.0
affinidi_tdk_credential_verification_client: ^1.0.0
```
### Github
If this Dart package is published to Github, please include the following in pubspec.yaml
This Dart package is published to Github, please include the following in pubspec.yaml
```yaml
dependencies:
affinidi_tdk_credential_verification_client:
git:
url: https://github.com/affinidi/affinidi-tdk.git
#ref: main
ref: main
path: clients/dart/credential_verification_client
```
### Local development
Expand All @@ -47,6 +41,12 @@ dependencies:
path: /path/to/affinidi_tdk_credential_verification_client
```
### Install dependencies
```bash
dart pub get
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:
Expand Down
22 changes: 11 additions & 11 deletions clients/dart/iam_client/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# affinidi_tdk_iam_client (EXPERIMENTAL)

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)
Affinidi TDK dart client for Affinidi IAM

## Requirements

Expand All @@ -22,19 +15,20 @@ To use the package from [pub.dev](https://pub.dev), please include the following

```yaml
dependencies:
affinidi_tdk_iam_client: 1.0.0
affinidi_tdk_iam_client: ^1.0.0
```
### Github
If this Dart package is published to Github, please include the following in pubspec.yaml
This Dart package is published to Github, please include the following in pubspec.yaml
```yaml
dependencies:
affinidi_tdk_iam_client:
git:
url: https://github.com/affinidi/affinidi-tdk.git
#ref: main
ref: main
path: clients/dart/iam_client
```
### Local development
Expand All @@ -47,6 +41,12 @@ dependencies:
path: /path/to/affinidi_tdk_iam_client
```
### Install dependencies
```bash
dart pub get
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:
Expand Down
Loading

0 comments on commit 6e0e5d9

Please sign in to comment.