Skip to content

Commit

Permalink
Merge pull request #9 from checkr/zz/bump-flagr-version
Browse files Browse the repository at this point in the history
Bump flagr version to 1.1.10
  • Loading branch information
zhouzhuojie authored Jul 20, 2020
2 parents 5ae7f29 + fa77b12 commit a2f640b
Show file tree
Hide file tree
Showing 93 changed files with 5,324 additions and 2,376 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.0-SNAPSHOT
2.4.14
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ gen:
-D licenseName="Apache 2.0" \
-D projectDescription="jsflagr is a Javascript client SDK for Flagr." \
-o /local/
git co -- package.json
git co -- package-lock.json
npm i && npm audit fix --force
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Jsflagr - JavaScript client for jsflagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.1.0
- Package version: 1.1.0
- API version: 1.1.10
- Package version: 1.1.10
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation
Expand Down Expand Up @@ -129,7 +129,8 @@ Class | Method | HTTP request | Description
*Jsflagr.DistributionApi* | [**putDistributions**](docs/DistributionApi.md#putDistributions) | **PUT** /flags/{flagID}/segments/{segmentID}/distributions |
*Jsflagr.EvaluationApi* | [**postEvaluation**](docs/EvaluationApi.md#postEvaluation) | **POST** /evaluation |
*Jsflagr.EvaluationApi* | [**postEvaluationBatch**](docs/EvaluationApi.md#postEvaluationBatch) | **POST** /evaluation/batch |
*Jsflagr.ExportApi* | [**getExportSQLite**](docs/ExportApi.md#getExportSQLite) | **GET** /export/sqlite |
*Jsflagr.ExportApi* | [**getExportEvalCacheJSON**](docs/ExportApi.md#getExportEvalCacheJSON) | **GET** /export/eval_cache/json |
*Jsflagr.ExportApi* | [**getExportSqlite**](docs/ExportApi.md#getExportSqlite) | **GET** /export/sqlite |
*Jsflagr.FlagApi* | [**createFlag**](docs/FlagApi.md#createFlag) | **POST** /flags |
*Jsflagr.FlagApi* | [**deleteFlag**](docs/FlagApi.md#deleteFlag) | **DELETE** /flags/{flagID} |
*Jsflagr.FlagApi* | [**findFlags**](docs/FlagApi.md#findFlags) | **GET** /flags |
Expand All @@ -144,6 +145,10 @@ Class | Method | HTTP request | Description
*Jsflagr.SegmentApi* | [**findSegments**](docs/SegmentApi.md#findSegments) | **GET** /flags/{flagID}/segments |
*Jsflagr.SegmentApi* | [**putSegment**](docs/SegmentApi.md#putSegment) | **PUT** /flags/{flagID}/segments/{segmentID} |
*Jsflagr.SegmentApi* | [**putSegmentsReorder**](docs/SegmentApi.md#putSegmentsReorder) | **PUT** /flags/{flagID}/segments/reorder |
*Jsflagr.TagApi* | [**createTag**](docs/TagApi.md#createTag) | **POST** /flags/{flagID}/tags |
*Jsflagr.TagApi* | [**deleteTag**](docs/TagApi.md#deleteTag) | **DELETE** /flags/{flagID}/tags/{tagID} |
*Jsflagr.TagApi* | [**findAllTags**](docs/TagApi.md#findAllTags) | **GET** /tags |
*Jsflagr.TagApi* | [**findTags**](docs/TagApi.md#findTags) | **GET** /flags/{flagID}/tags |
*Jsflagr.VariantApi* | [**createVariant**](docs/VariantApi.md#createVariant) | **POST** /flags/{flagID}/variants |
*Jsflagr.VariantApi* | [**deleteVariant**](docs/VariantApi.md#deleteVariant) | **DELETE** /flags/{flagID}/variants/{variantID} |
*Jsflagr.VariantApi* | [**findVariants**](docs/VariantApi.md#findVariants) | **GET** /flags/{flagID}/variants |
Expand All @@ -156,6 +161,7 @@ Class | Method | HTTP request | Description
- [Jsflagr.CreateConstraintRequest](docs/CreateConstraintRequest.md)
- [Jsflagr.CreateFlagRequest](docs/CreateFlagRequest.md)
- [Jsflagr.CreateSegmentRequest](docs/CreateSegmentRequest.md)
- [Jsflagr.CreateTagRequest](docs/CreateTagRequest.md)
- [Jsflagr.CreateVariantRequest](docs/CreateVariantRequest.md)
- [Jsflagr.Distribution](docs/Distribution.md)
- [Jsflagr.Error](docs/Error.md)
Expand All @@ -167,6 +173,7 @@ Class | Method | HTTP request | Description
- [Jsflagr.EvaluationEntity](docs/EvaluationEntity.md)
- [Jsflagr.Flag](docs/Flag.md)
- [Jsflagr.FlagSnapshot](docs/FlagSnapshot.md)
- [Jsflagr.Health](docs/Health.md)
- [Jsflagr.PutDistributionsRequest](docs/PutDistributionsRequest.md)
- [Jsflagr.PutFlagRequest](docs/PutFlagRequest.md)
- [Jsflagr.PutSegmentReorderRequest](docs/PutSegmentReorderRequest.md)
Expand All @@ -175,6 +182,7 @@ Class | Method | HTTP request | Description
- [Jsflagr.Segment](docs/Segment.md)
- [Jsflagr.SegmentDebugLog](docs/SegmentDebugLog.md)
- [Jsflagr.SetFlagEnabledRequest](docs/SetFlagEnabledRequest.md)
- [Jsflagr.Tag](docs/Tag.md)
- [Jsflagr.Variant](docs/Variant.md)


Expand Down
1 change: 1 addition & 0 deletions docs/CreateFlagRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | |
**key** | **String** | unique key representation of the flag | [optional]
**template** | **String** | template for flag creation | [optional]


8 changes: 8 additions & 0 deletions docs/CreateTagRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Jsflagr.CreateTagRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **String** | |


3 changes: 2 additions & 1 deletion docs/EvalContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**entityID** | **String** | entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one. | [optional]
**entityID** | **String** | entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one. | [optional]
**entityType** | **String** | | [optional]
**entityContext** | **Object** | | [optional]
**enableDebug** | **Boolean** | | [optional]
**flagID** | **Number** | flagID | [optional]
**flagKey** | **String** | flagKey. flagID or flagKey will resolve to the same flag. Either works. | [optional]
**flagTags** | **[String]** | flagTags. flagTags looks up flags by tag. Either works. | [optional]


3 changes: 2 additions & 1 deletion docs/EvaluationBatchRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**entities** | [**[EvaluationEntity]**](EvaluationEntity.md) | |
**enableDebug** | **Boolean** | | [optional]
**flagIDs** | **[Number]** | flagIDs | [optional]
**flagKeys** | **[String]** | flagKeys. Either flagIDs or flagKeys works. If pass in both, Flagr may return duplicate results. | [optional]
**flagKeys** | **[String]** | flagKeys. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]
**flagTags** | **[String]** | flagTags. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]


60 changes: 54 additions & 6 deletions docs/ExportApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ All URIs are relative to *http://localhost/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getExportSQLite**](ExportApi.md#getExportSQLite) | **GET** /export/sqlite |
[**getExportEvalCacheJSON**](ExportApi.md#getExportEvalCacheJSON) | **GET** /export/eval_cache/json |
[**getExportSqlite**](ExportApi.md#getExportSqlite) | **GET** /export/sqlite |


<a name="getExportSQLite"></a>
# **getExportSQLite**
> File getExportSQLite()
<a name="getExportEvalCacheJSON"></a>
# **getExportEvalCacheJSON**
> Object getExportEvalCacheJSON()


Export sqlite3 format of the db dump, which is converted from the main database.
Export JSON format of the eval cache dump

### Example
```javascript
Expand All @@ -28,14 +29,61 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getExportSQLite(callback);
apiInstance.getExportEvalCacheJSON(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="getExportSqlite"></a>
# **getExportSqlite**
> File getExportSqlite(opts)


Export sqlite3 format of the db dump, which is converted from the main database.

### Example
```javascript
var Jsflagr = require('jsflagr');

var apiInstance = new Jsflagr.ExportApi();

var opts = {
'excludeSnapshots': true // Boolean | export without snapshots data - useful for smaller db without snapshots
};

var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getExportSqlite(opts, callback);
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**excludeSnapshots** | **Boolean**| export without snapshots data - useful for smaller db without snapshots | [optional]

### Return type

**File**

### Authorization
Expand Down
4 changes: 3 additions & 1 deletion docs/Flag.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ Name | Type | Description | Notes
**key** | **String** | unique key representation of the flag | [optional]
**description** | **String** | |
**enabled** | **Boolean** | |
**tags** | [**[Tag]**](Tag.md) | | [optional]
**segments** | [**[Segment]**](Segment.md) | | [optional]
**variants** | [**[Variant]**](Variant.md) | | [optional]
**dataRecordsEnabled** | **Boolean** | enabled data records will get data logging in the metrics pipeline, for example, kafka. |
**entityType** | **String** | it will override the entityType in the evaluation logs if it&#39;s not empty | [optional]
**entityType** | **String** | it will override the entityType in the evaluation logs if it's not empty | [optional]
**notes** | **String** | flag usage details in markdown format | [optional]
**createdBy** | **String** | | [optional]
**updatedBy** | **String** | | [optional]
**updatedAt** | **Date** | | [optional]
Expand Down
6 changes: 4 additions & 2 deletions docs/FlagApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ var opts = {
'limit': 789, // Number | the numbers of flags to return
'enabled': true, // Boolean | return flags having given enabled status
'description': "description_example", // String | return flags exactly matching given description
'tags': "tags_example", // String | return flags with the given tags (comma separated)
'descriptionLike': "descriptionLike_example", // String | return flags partially matching given description
'key': "key_example", // String | return flags matching given key
'offset': 789, // Number | return flags given the offset, it should usually set together with limit
Expand All @@ -141,6 +142,7 @@ Name | Type | Description | Notes
**limit** | **Number**| the numbers of flags to return | [optional]
**enabled** | **Boolean**| return flags having given enabled status | [optional]
**description** | **String**| return flags exactly matching given description | [optional]
**tags** | **String**| return flags with the given tags (comma separated) | [optional]
**descriptionLike** | **String**| return flags partially matching given description | [optional]
**key** | **String**| return flags matching given key | [optional]
**offset** | **Number**| return flags given the offset, it should usually set together with limit | [optional]
Expand Down Expand Up @@ -205,7 +207,7 @@ No authorization required

<a name="getFlagEntityTypes"></a>
# **getFlagEntityTypes**
> [&#39;String&#39;] getFlagEntityTypes()
> ['String'] getFlagEntityTypes()


Expand All @@ -230,7 +232,7 @@ This endpoint does not need any parameter.

### Return type

**[&#39;String&#39;]**
**['String']**

### Authorization

Expand Down
8 changes: 8 additions & 0 deletions docs/Health.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Jsflagr.Health

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **String** | | [optional]


6 changes: 3 additions & 3 deletions docs/HealthApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description

<a name="getHealth"></a>
# **getHealth**
> getHealth()
> Health getHealth()


Expand All @@ -25,7 +25,7 @@ var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getHealth(callback);
Expand All @@ -36,7 +36,7 @@ This endpoint does not need any parameter.

### Return type

null (empty response body)
[**Health**](Health.md)

### Authorization

Expand Down
3 changes: 2 additions & 1 deletion docs/PutFlagRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**dataRecordsEnabled** | **Boolean** | enabled data records will get data logging in the metrics pipeline, for example, kafka. | [optional]
**entityType** | **String** | it will overwrite entityType into evaluation logs if it&#39;s not empty | [optional]
**entityType** | **String** | it will overwrite entityType into evaluation logs if it's not empty | [optional]
**enabled** | **Boolean** | | [optional]
**key** | **String** | | [optional]
**notes** | **String** | | [optional]


9 changes: 9 additions & 0 deletions docs/Tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Jsflagr.Tag

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional]
**value** | **String** | |


Loading

0 comments on commit a2f640b

Please sign in to comment.