Skip to content

Commit

Permalink
Release 1.0.78
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienKinow committed Apr 9, 2019
1 parent 26b00ac commit 716a1c9
Show file tree
Hide file tree
Showing 293 changed files with 686 additions and 453 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ KinowJavascriptSdk - JavaScript client for kinow-javascript-sdk
Public api for Kinow back office
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.77
- Package version: 1.0.77
- Build date: 2019-04-09T09:40:48.810Z
- API version: 1.0.78
- Package version: 1.0.78
- Build date: 2019-04-09T12:52:05.802Z
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

## Installation
Expand Down Expand Up @@ -98,12 +98,13 @@ var KinowJavascriptSdk = require('kinow-javascript-sdk');

var api = new KinowJavascriptSdk.AccessesApi()

var customerId = 789; // {Integer} ID of the customer to fetch

var productId = 789; // {Integer} ID of the product to fetch

api.getCustomerHasAccessToProduct(customerId, productId).then(function() {
console.log('API called successfully.');
var opts = {
'customerId': 789, // {Integer} ID of the customer to fetch
'page': 789, // {Integer}
'perPage': 789 // {Integer}
};
api.getAvailableCategories(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Expand All @@ -117,6 +118,7 @@ All URIs are relative to *https://api.kinow.com/api*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*KinowJavascriptSdk.AccessesApi* | [**getAvailableCategories**](docs/AccessesApi.md#getAvailableCategories) | **GET** /categories-accesses |
*KinowJavascriptSdk.AccessesApi* | [**getCustomerHasAccessToProduct**](docs/AccessesApi.md#getCustomerHasAccessToProduct) | **GET** /customers/{customer_id}/products/{product_id}/has-access |
*KinowJavascriptSdk.AccessesApi* | [**getCustomerHasAccessToVideo**](docs/AccessesApi.md#getCustomerHasAccessToVideo) | **GET** /customers/{customer_id}/videos/{video_id}/has-access |
*KinowJavascriptSdk.AccessesApi* | [**getProductAvailability**](docs/AccessesApi.md#getProductAvailability) | **GET** /products/{product_id}/access |
Expand Down Expand Up @@ -164,6 +166,7 @@ Class | Method | HTTP request | Description
*KinowJavascriptSdk.CartsApi* | [**validateCart**](docs/CartsApi.md#validateCart) | **POST** /carts/{cart_id}/payments/{payment_name}/validate |
*KinowJavascriptSdk.CartsApi* | [**validateFreeOrder**](docs/CartsApi.md#validateFreeOrder) | **POST** /carts/{cart_id}/validate-free-order |
*KinowJavascriptSdk.CategoriesApi* | [**createCategory**](docs/CategoriesApi.md#createCategory) | **POST** /categories |
*KinowJavascriptSdk.CategoriesApi* | [**getAvailableCategories**](docs/CategoriesApi.md#getAvailableCategories) | **GET** /categories-accesses |
*KinowJavascriptSdk.CategoriesApi* | [**getCategories**](docs/CategoriesApi.md#getCategories) | **GET** /categories |
*KinowJavascriptSdk.CategoriesApi* | [**getCategoriesFromCategory**](docs/CategoriesApi.md#getCategoriesFromCategory) | **GET** /categories/{category_id}/categories |
*KinowJavascriptSdk.CategoriesApi* | [**getCategory**](docs/CategoriesApi.md#getCategory) | **GET** /categories/{category_id} |
Expand Down
49 changes: 49 additions & 0 deletions docs/AccessesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,60 @@ All URIs are relative to *https://api.kinow.com/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getAvailableCategories**](AccessesApi.md#getAvailableCategories) | **GET** /categories-accesses |
[**getCustomerHasAccessToProduct**](AccessesApi.md#getCustomerHasAccessToProduct) | **GET** /customers/{customer_id}/products/{product_id}/has-access |
[**getCustomerHasAccessToVideo**](AccessesApi.md#getCustomerHasAccessToVideo) | **GET** /customers/{customer_id}/videos/{video_id}/has-access |
[**getProductAvailability**](AccessesApi.md#getProductAvailability) | **GET** /products/{product_id}/access |


<a name="getAvailableCategories"></a>
# **getAvailableCategories**
> Categories getAvailableCategories(opts)


Get available categories

### Example
```javascript
var KinowJavascriptSdk = require('kinow-javascript-sdk');

var apiInstance = new KinowJavascriptSdk.AccessesApi();

var opts = {
'customerId': 789, // Integer | ID of the customer to fetch
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getAvailableCategories(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});

```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerId** | **Integer**| ID of the customer to fetch | [optional]
**page** | **Integer**| | [optional]
**perPage** | **Integer**| | [optional]

### Return type

[**Categories**](Categories.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

<a name="getCustomerHasAccessToProduct"></a>
# **getCustomerHasAccessToProduct**
> getCustomerHasAccessToProduct(customerId, productId)
Expand Down
49 changes: 49 additions & 0 deletions docs/CategoriesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.kinow.com/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**createCategory**](CategoriesApi.md#createCategory) | **POST** /categories |
[**getAvailableCategories**](CategoriesApi.md#getAvailableCategories) | **GET** /categories-accesses |
[**getCategories**](CategoriesApi.md#getCategories) | **GET** /categories |
[**getCategoriesFromCategory**](CategoriesApi.md#getCategoriesFromCategory) | **GET** /categories/{category_id}/categories |
[**getCategory**](CategoriesApi.md#getCategory) | **GET** /categories/{category_id} |
Expand Down Expand Up @@ -53,6 +54,54 @@ Name | Type | Description | Notes

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

<a name="getAvailableCategories"></a>
# **getAvailableCategories**
> Categories getAvailableCategories(opts)


Get available categories

### Example
```javascript
var KinowJavascriptSdk = require('kinow-javascript-sdk');

var apiInstance = new KinowJavascriptSdk.CategoriesApi();

var opts = {
'customerId': 789, // Integer | ID of the customer to fetch
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getAvailableCategories(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});

```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerId** | **Integer**| ID of the customer to fetch | [optional]
**page** | **Integer**| | [optional]
**perPage** | **Integer**| | [optional]

### Return type

[**Categories**](Categories.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
Expand Down
14 changes: 8 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ declare module 'kinow-javascript-sdk' {
getCategory(categoryId: number, callback?: Function): Promise<Category>
getCategoryProducts(categoryId: number, opts?: any, callback?: Function): any
getCategoryFeatures(categoryId: number, opts?: any, callback?: Function): any
getAvailableCategories(opts?: any, callback?: Function): any
getCategoriesFromCategory(categoryId: number, opts?: any, callback?: Function): any
getCategoryBanner(categoryId: number, callback?: Function): Promise<Image>
getProductCategories(productId: number, opts?: any, callback?: Function): any
Expand Down Expand Up @@ -665,6 +666,13 @@ declare module 'kinow-javascript-sdk' {
getVideoFeatures(videoId: number, opts?: any, callback?: Function): any
attachFeaturesToVideo(videoId: number, features: string, callback?: Function): any
}
export class AccessesApi {
constructor(config?: ApiClient)
getAvailableCategories(opts?: any, callback?: Function): any
getCustomerHasAccessToVideo(customerId: number, videoId: number, callback?: Function): any
getCustomerHasAccessToProduct(customerId: number, productId: number, callback?: Function): any
getProductAvailability(productId: number, callback?: Function): any
}
export class CountriesApi {
constructor(config?: ApiClient)
getCountries(opts?: any, callback?: Function): any
Expand Down Expand Up @@ -692,12 +700,6 @@ declare module 'kinow-javascript-sdk' {
deleteProductAccess(productAccessId: number, callback?: Function): any
stopSubscription(customerId: number, productAccessId: string, callback?: Function): any
}
export class AccessesApi {
constructor(config?: ApiClient)
getCustomerHasAccessToVideo(customerId: number, videoId: number, callback?: Function): any
getCustomerHasAccessToProduct(customerId: number, productId: number, callback?: Function): any
getProductAvailability(productId: number, callback?: Function): any
}
export class VideosApi {
constructor(config?: ApiClient)
getCustomerHasAccessToVideo(customerId: number, videoId: number, callback?: Function): any
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kinow-javascript-sdk",
"version": "1.0.77",
"version": "1.0.78",
"description": "Public_api_for_Kinow_back_office",
"license": "",
"main": "src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kinow API
* Public api for Kinow back office
*
* OpenAPI spec version: 1.0.77
* OpenAPI spec version: 1.0.78
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
Expand Down Expand Up @@ -32,7 +32,7 @@

/**
* @module ApiClient
* @version 1.0.77
* @version 1.0.78
*/

/**
Expand Down
67 changes: 61 additions & 6 deletions src/api/AccessesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kinow API
* Public api for Kinow back office
*
* OpenAPI spec version: 1.0.77
* OpenAPI spec version: 1.0.78
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
Expand All @@ -16,24 +16,24 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
define(['ApiClient', 'model/Categories'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
module.exports = factory(require('../ApiClient'), require('../model/Categories'));
} else {
// Browser globals (root is window)
if (!root.KinowJavascriptSdk) {
root.KinowJavascriptSdk = {};
}
root.KinowJavascriptSdk.AccessesApi = factory(root.KinowJavascriptSdk.ApiClient);
root.KinowJavascriptSdk.AccessesApi = factory(root.KinowJavascriptSdk.ApiClient, root.KinowJavascriptSdk.Categories);
}
}(this, function(ApiClient) {
}(this, function(ApiClient, Categories) {
'use strict';

/**
* Accesses service.
* @module api/AccessesApi
* @version 1.0.77
* @version 1.0.78
*/

/**
Expand All @@ -48,6 +48,61 @@



/**
* Get available categories
* @param {Object} opts Optional parameters
* @param {Integer} opts.customerId ID of the customer to fetch
* @param {Integer} opts.page
* @param {Integer} opts.perPage
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Categories} and HTTP response
*/
this.getAvailableCategoriesWithHttpInfo = function(opts) {
opts = opts || {};
var postBody = null;


var pathParams = {
};
var queryParams = {
'customer_id': opts['customerId'],
'page': opts['page'],
'per_page': opts['perPage'],
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};

var authNames = [];
var contentTypes = [];
var accepts = [];
var returnType = Categories;

return this.apiClient.callApi(
'/categories-accesses', 'GET',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}

/**
* Get available categories
* @param {Object} opts Optional parameters
* @param {Integer} opts.customerId ID of the customer to fetch
* @param {Integer} opts.page
* @param {Integer} opts.perPage
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Categories}
*/
this.getAvailableCategories = function(opts) {
return this.getAvailableCategoriesWithHttpInfo(opts)
.then(function(response_and_data) {
return response_and_data.data;
});
}


/**
* Get customer access to video
* @param {Integer} customerId ID of the customer to fetch
Expand Down
4 changes: 2 additions & 2 deletions src/api/ActorsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kinow API
* Public api for Kinow back office
*
* OpenAPI spec version: 1.0.77
* OpenAPI spec version: 1.0.78
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
Expand Down Expand Up @@ -33,7 +33,7 @@
/**
* Actors service.
* @module api/ActorsApi
* @version 1.0.77
* @version 1.0.78
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions src/api/AddressApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kinow API
* Public api for Kinow back office
*
* OpenAPI spec version: 1.0.77
* OpenAPI spec version: 1.0.78
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
Expand Down Expand Up @@ -33,7 +33,7 @@
/**
* Address service.
* @module api/AddressApi
* @version 1.0.77
* @version 1.0.78
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions src/api/AttributesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kinow API
* Public api for Kinow back office
*
* OpenAPI spec version: 1.0.77
* OpenAPI spec version: 1.0.78
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
Expand Down Expand Up @@ -33,7 +33,7 @@
/**
* Attributes service.
* @module api/AttributesApi
* @version 1.0.77
* @version 1.0.78
*/

/**
Expand Down
Loading

0 comments on commit 716a1c9

Please sign in to comment.