├── .swagger-codegen-ignore
├── .swagger-codegen
└── VERSION
├── .travis.yml
├── README.md
├── docs
├── AccessToken.md
├── AccessTokenApi.md
├── AmazonSubscription.md
├── AmazonSubscriptionApi.md
├── AnonymizedMastering.md
├── Audio.md
├── AudioAnalysis.md
├── AudioApi.md
├── AudioDownloadToken.md
├── Config.md
├── ConfigApi.md
├── ConfigAuth0.md
├── ConfigPaypal.md
├── ConfigStripe.md
├── ConfigVersion.md
├── ExternalSearchApi.md
├── ExternalSearchResult.md
├── ExternalSearchResultItunes.md
├── ExternalSearchResultYoutube.md
├── GroupBuyStatistics.md
├── JWT.md
├── Kpi.md
├── LibraryAudio.md
├── LibraryAudioAnalysis.md
├── LibraryAudioApi.md
├── LibraryAudioLike.md
├── Mastering.md
├── MasteringApi.md
├── Payment.md
├── PaymentApi.md
├── PaymentCustomer.md
├── PaymentCustomerApi.md
├── Plan.md
├── PlanApi.md
├── SpSubscription.md
├── SpSubscriptionApi.md
├── StatisticsApi.md
├── Subscription.md
├── SubscriptionApi.md
├── User.md
├── UserApi.md
├── UserStatistics.md
├── Video.md
├── VideoApi.md
└── VideoDownloadToken.md
├── git_push.sh
├── mocha.opts
├── package.json
├── src
├── ApiClient.js
├── api
│ ├── AccessTokenApi.js
│ ├── AmazonSubscriptionApi.js
│ ├── AudioApi.js
│ ├── ConfigApi.js
│ ├── ExternalSearchApi.js
│ ├── LibraryAudioApi.js
│ ├── MasteringApi.js
│ ├── PaymentApi.js
│ ├── PaymentCustomerApi.js
│ ├── PlanApi.js
│ ├── SpSubscriptionApi.js
│ ├── StatisticsApi.js
│ ├── SubscriptionApi.js
│ ├── UserApi.js
│ └── VideoApi.js
├── index.js
└── model
│ ├── AccessToken.js
│ ├── AmazonSubscription.js
│ ├── AnonymizedMastering.js
│ ├── Audio.js
│ ├── AudioAnalysis.js
│ ├── AudioDownloadToken.js
│ ├── Config.js
│ ├── ConfigAuth0.js
│ ├── ConfigPaypal.js
│ ├── ConfigStripe.js
│ ├── ConfigVersion.js
│ ├── ExternalSearchResult.js
│ ├── ExternalSearchResultItunes.js
│ ├── ExternalSearchResultYoutube.js
│ ├── GroupBuyStatistics.js
│ ├── JWT.js
│ ├── Kpi.js
│ ├── LibraryAudio.js
│ ├── LibraryAudioAnalysis.js
│ ├── LibraryAudioLike.js
│ ├── Mastering.js
│ ├── Payment.js
│ ├── PaymentCustomer.js
│ ├── Plan.js
│ ├── SpSubscription.js
│ ├── Subscription.js
│ ├── User.js
│ ├── UserStatistics.js
│ ├── Video.js
│ └── VideoDownloadToken.js
└── test
├── api
├── AccessTokenApi.spec.js
├── AmazonSubscriptionApi.spec.js
├── AudioApi.spec.js
├── ConfigApi.spec.js
├── ExternalSearchApi.spec.js
├── LibraryAudioApi.spec.js
├── MasteringApi.spec.js
├── PaymentApi.spec.js
├── PaymentCustomerApi.spec.js
├── PlanApi.spec.js
├── SpSubscriptionApi.spec.js
├── StatisticsApi.spec.js
├── SubscriptionApi.spec.js
├── UserApi.spec.js
└── VideoApi.spec.js
└── model
├── AccessToken.spec.js
├── AmazonSubscription.spec.js
├── AnonymizedMastering.spec.js
├── Audio.spec.js
├── AudioAnalysis.spec.js
├── AudioDownloadToken.spec.js
├── Config.spec.js
├── ConfigAuth0.spec.js
├── ConfigPaypal.spec.js
├── ConfigStripe.spec.js
├── ConfigVersion.spec.js
├── ExternalSearchResult.spec.js
├── ExternalSearchResultItunes.spec.js
├── ExternalSearchResultYoutube.spec.js
├── GroupBuyStatistics.spec.js
├── JWT.spec.js
├── Kpi.spec.js
├── LibraryAudio.spec.js
├── LibraryAudioAnalysis.spec.js
├── LibraryAudioLike.spec.js
├── Mastering.spec.js
├── Payment.spec.js
├── PaymentCustomer.spec.js
├── Plan.spec.js
├── SpSubscription.spec.js
├── Subscription.spec.js
├── User.spec.js
├── UserStatistics.spec.js
├── Video.spec.js
└── VideoDownloadToken.spec.js
/.swagger-codegen-ignore:
--------------------------------------------------------------------------------
1 | # Swagger Codegen Ignore
2 | # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3 |
4 | # Use this file to prevent files from being overwritten by the generator.
5 | # The patterns follow closely to .gitignore or .dockerignore.
6 |
7 | # As an example, the C# client generator defines ApiClient.cs.
8 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9 | #ApiClient.cs
10 |
11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12 | #foo/*/qux
13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14 |
15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16 | #foo/**/qux
17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18 |
19 | # You can also negate patterns with an exclamation (!).
20 | # For example, you can ignore all files in a docs folder with the file extension .md:
21 | #docs/*.md
22 | # Then explicitly reverse the ignore rule for a single file:
23 | #!docs/README.md
24 |
--------------------------------------------------------------------------------
/.swagger-codegen/VERSION:
--------------------------------------------------------------------------------
1 | 2.3.1
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "6"
4 | - "6.1"
5 | - "5"
6 | - "5.11"
7 |
8 |
--------------------------------------------------------------------------------
/docs/AccessToken.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AccessToken
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **accessToken** | [**JWT**](JWT.md) | | [optional]
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docs/AccessTokenApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AccessTokenApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**createAccessToken**](AccessTokenApi.md#createAccessToken) | **POST** /access_tokens | Create an API access token.
8 |
9 |
10 |
11 | # **createAccessToken**
12 | > AccessToken createAccessToken()
13 |
14 | Create an API access token.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.AccessTokenApi();
28 |
29 | var callback = function(error, data, response) {
30 | if (error) {
31 | console.error(error);
32 | } else {
33 | console.log('API called successfully. Returned data: ' + data);
34 | }
35 | };
36 | apiInstance.createAccessToken(callback);
37 | ```
38 |
39 | ### Parameters
40 | This endpoint does not need any parameter.
41 |
42 | ### Return type
43 |
44 | [**AccessToken**](AccessToken.md)
45 |
46 | ### Authorization
47 |
48 | [bearer](../README.md#bearer)
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: Not defined
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/AmazonSubscription.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AmazonSubscription
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **userId** | **Number** | | [optional]
8 | **status** | **String** | | [optional]
9 | **createdAt** | **Date** | | [optional]
10 | **updatedAt** | **Date** | | [optional]
11 |
12 |
13 |
14 | ## Enum: StatusEnum
15 |
16 |
17 | * `active` (value: `"active"`)
18 |
19 | * `deactivated` (value: `"deactivated"`)
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/AmazonSubscriptionApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AmazonSubscriptionApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**listAmazonSubscriptions**](AmazonSubscriptionApi.md#listAmazonSubscriptions) | **GET** /amazon_subscriptions | Get all accessable amazon subscriptions.
8 |
9 |
10 |
11 | # **listAmazonSubscriptions**
12 | > [AmazonSubscription] listAmazonSubscriptions()
13 |
14 | Get all accessable amazon subscriptions.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.AmazonSubscriptionApi();
28 |
29 | var callback = function(error, data, response) {
30 | if (error) {
31 | console.error(error);
32 | } else {
33 | console.log('API called successfully. Returned data: ' + data);
34 | }
35 | };
36 | apiInstance.listAmazonSubscriptions(callback);
37 | ```
38 |
39 | ### Parameters
40 | This endpoint does not need any parameter.
41 |
42 | ### Return type
43 |
44 | [**[AmazonSubscription]**](AmazonSubscription.md)
45 |
46 | ### Authorization
47 |
48 | [bearer](../README.md#bearer)
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: Not defined
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/AnonymizedMastering.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AnonymizedMastering
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **userId** | **String** | | [optional]
7 | **userAuthProvider** | **String** | | [optional]
8 | **mode** | **String** | | [optional]
9 | **status** | **String** | | [optional]
10 | **failureReason** | **String** | | [optional]
11 | **targetLoudness** | **Number** | | [optional]
12 | **outputFormat** | **String** | | [optional]
13 | **preset** | **String** | | [optional]
14 | **bitDepth** | **Number** | | [optional]
15 | **sampleRate** | **Number** | | [optional]
16 | **reviewScore** | **Number** | | [optional]
17 | **masteringMatchingLevel** | **Number** | | [optional]
18 | **mastering** | **Boolean** | | [optional]
19 | **paid** | **Boolean** | | [optional]
20 | **paymentService** | **String** | | [optional]
21 | **retryCount** | **Number** | | [optional]
22 | **masteringReverb** | **Boolean** | | [optional]
23 | **masteringReverbGain** | **Number** | | [optional]
24 | **lowCutFreq** | **Number** | | [optional]
25 | **highCutFreq** | **Number** | | [optional]
26 | **createdAt** | **Date** | | [optional]
27 | **updatedAt** | **Date** | | [optional]
28 |
29 |
30 |
31 | ## Enum: ModeEnum
32 |
33 |
34 | * `default` (value: `"default"`)
35 |
36 | * `custom` (value: `"custom"`)
37 |
38 |
39 |
40 |
41 |
42 | ## Enum: StatusEnum
43 |
44 |
45 | * `waiting` (value: `"waiting"`)
46 |
47 | * `processing` (value: `"processing"`)
48 |
49 | * `canceled` (value: `"canceled"`)
50 |
51 | * `failed` (value: `"failed"`)
52 |
53 | * `succeeded` (value: `"succeeded"`)
54 |
55 |
56 |
57 |
58 |
59 | ## Enum: FailureReasonEnum
60 |
61 |
62 | * `unknown` (value: `"unknown"`)
63 |
64 | * `expired` (value: `"expired"`)
65 |
66 | * `failed_to_prepare` (value: `"failed_to_prepare"`)
67 |
68 |
69 |
70 |
71 |
72 | ## Enum: OutputFormatEnum
73 |
74 |
75 | * `wav` (value: `"wav"`)
76 |
77 | * `mp3` (value: `"mp3"`)
78 |
79 |
80 |
81 |
82 |
83 | ## Enum: PresetEnum
84 |
85 |
86 | * `general` (value: `"general"`)
87 |
88 | * `pop` (value: `"pop"`)
89 |
90 | * `jazz` (value: `"jazz"`)
91 |
92 | * `classical` (value: `"classical"`)
93 |
94 |
95 |
96 |
97 |
98 | ## Enum: PaymentServiceEnum
99 |
100 |
101 | * `paypal` (value: `"paypal"`)
102 |
103 | * `stripe` (value: `"stripe"`)
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/docs/Audio.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Audio
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **fileResourceId** | **Number** | | [optional]
8 | **userId** | **Number** | | [optional]
9 | **name** | **String** | | [optional]
10 | **createdByUser** | **Boolean** | | [optional]
11 | **status** | **String** | | [optional]
12 | **failureReason** | **String** | | [optional]
13 | **probeJson** | **String** | | [optional]
14 | **rms** | **Number** | | [optional]
15 | **peak** | **Number** | | [optional]
16 | **truePeak** | **Number** | | [optional]
17 | **lowpassTruePeak15khz** | **Number** | | [optional]
18 | **loudness** | **Number** | | [optional]
19 | **dynamics** | **Number** | | [optional]
20 | **sharpness** | **Number** | | [optional]
21 | **space** | **Number** | | [optional]
22 | **loudnessRange** | **Number** | | [optional]
23 | **drr** | **Number** | | [optional]
24 | **soundQuality** | **Number** | | [optional]
25 | **soundQuality2** | **Number** | | [optional]
26 | **dissonance** | **Number** | | [optional]
27 | **frames** | **Number** | | [optional]
28 | **sampleRate** | **Number** | | [optional]
29 | **channels** | **Number** | | [optional]
30 | **createdAt** | **Date** | | [optional]
31 | **updatedAt** | **Date** | | [optional]
32 |
33 |
34 |
--------------------------------------------------------------------------------
/docs/AudioAnalysis.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AudioAnalysis
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | Audio analysis id | [optional]
7 | **audioId** | **Number** | Audio id | [optional]
8 | **analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/AudioDownloadToken.md:
--------------------------------------------------------------------------------
1 | # Aimastering.AudioDownloadToken
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **downloadToken** | [**JWT**](JWT.md) | | [optional]
7 | **downloadUrl** | **String** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/Config.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Config
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **auth0** | [**ConfigAuth0**](ConfigAuth0.md) | | [optional]
7 | **paypal** | [**ConfigPaypal**](ConfigPaypal.md) | | [optional]
8 | **stripe** | [**ConfigStripe**](ConfigStripe.md) | | [optional]
9 | **version** | [**ConfigVersion**](ConfigVersion.md) | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/ConfigApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ConfigApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**getConfig**](ConfigApi.md#getConfig) | **GET** /config | Get config.
8 |
9 |
10 |
11 | # **getConfig**
12 | > Config getConfig()
13 |
14 | Get config.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.ConfigApi();
28 |
29 | var callback = function(error, data, response) {
30 | if (error) {
31 | console.error(error);
32 | } else {
33 | console.log('API called successfully. Returned data: ' + data);
34 | }
35 | };
36 | apiInstance.getConfig(callback);
37 | ```
38 |
39 | ### Parameters
40 | This endpoint does not need any parameter.
41 |
42 | ### Return type
43 |
44 | [**Config**](Config.md)
45 |
46 | ### Authorization
47 |
48 | [bearer](../README.md#bearer)
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: Not defined
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/ConfigAuth0.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ConfigAuth0
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **audience** | **String** | | [optional]
7 | **domain** | **String** | | [optional]
8 | **clientId** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/ConfigPaypal.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ConfigPaypal
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **mode** | **String** | | [optional]
7 | **clientId** | **String** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ConfigStripe.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ConfigStripe
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **publishableKey** | **String** | | [optional]
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docs/ConfigVersion.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ConfigVersion
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **commit** | **String** | | [optional]
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docs/ExternalSearchApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ExternalSearchApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**searchExternal**](ExternalSearchApi.md#searchExternal) | **GET** /external_search | Search external music and get name, url, thumbnails, etc.
8 |
9 |
10 |
11 | # **searchExternal**
12 | > ExternalSearchResult searchExternal(query, country)
13 |
14 | Search external music and get name, url, thumbnails, etc.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.ExternalSearchApi();
28 |
29 | var query = "query_example"; // String | Search query
30 |
31 | var country = "country_example"; // String | Country ex. US, JP, etc
32 |
33 |
34 | var callback = function(error, data, response) {
35 | if (error) {
36 | console.error(error);
37 | } else {
38 | console.log('API called successfully. Returned data: ' + data);
39 | }
40 | };
41 | apiInstance.searchExternal(query, country, callback);
42 | ```
43 |
44 | ### Parameters
45 |
46 | Name | Type | Description | Notes
47 | ------------- | ------------- | ------------- | -------------
48 | **query** | **String**| Search query |
49 | **country** | **String**| Country ex. US, JP, etc |
50 |
51 | ### Return type
52 |
53 | [**ExternalSearchResult**](ExternalSearchResult.md)
54 |
55 | ### Authorization
56 |
57 | [bearer](../README.md#bearer)
58 |
59 | ### HTTP request headers
60 |
61 | - **Content-Type**: Not defined
62 | - **Accept**: application/json
63 |
64 |
--------------------------------------------------------------------------------
/docs/ExternalSearchResult.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ExternalSearchResult
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **itunes** | [**[ExternalSearchResultItunes]**](ExternalSearchResultItunes.md) | | [optional]
7 | **youtube** | [**[ExternalSearchResultYoutube]**](ExternalSearchResultYoutube.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ExternalSearchResultItunes.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ExternalSearchResultItunes
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **String** | | [optional]
7 | **name** | **String** | | [optional]
8 | **description** | **String** | | [optional]
9 | **url** | **String** | | [optional]
10 | **thumbnailUrl** | **String** | | [optional]
11 | **previewUrl** | **String** | | [optional]
12 | **albumName** | **String** | | [optional]
13 | **albumUrl** | **String** | | [optional]
14 | **artistName** | **String** | | [optional]
15 | **artistUrl** | **String** | | [optional]
16 | **trackNumber** | **Number** | | [optional]
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/ExternalSearchResultYoutube.md:
--------------------------------------------------------------------------------
1 | # Aimastering.ExternalSearchResultYoutube
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **String** | | [optional]
7 | **name** | **String** | | [optional]
8 | **description** | **String** | | [optional]
9 | **url** | **String** | | [optional]
10 | **thumbnailUrl** | **String** | | [optional]
11 | **channelId** | **String** | | [optional]
12 | **channelUrl** | **String** | | [optional]
13 | **channelName** | **String** | | [optional]
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/GroupBuyStatistics.md:
--------------------------------------------------------------------------------
1 | # Aimastering.GroupBuyStatistics
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **premiumPlanSubscribedUserCount** | **Number** | | [optional]
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docs/JWT.md:
--------------------------------------------------------------------------------
1 | # Aimastering.JWT
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 |
7 |
8 |
--------------------------------------------------------------------------------
/docs/Kpi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Kpi
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 |
7 |
8 |
--------------------------------------------------------------------------------
/docs/LibraryAudio.md:
--------------------------------------------------------------------------------
1 | # Aimastering.LibraryAudio
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **userId** | **Number** | | [optional]
8 | **name** | **String** | | [optional]
9 | **album** | **String** | | [optional]
10 | **albumArtist** | **String** | | [optional]
11 | **artist** | **String** | | [optional]
12 | **genre** | **String** | | [optional]
13 | **track** | **Number** | | [optional]
14 | **publisher** | **String** | | [optional]
15 | **fileHash** | **String** | | [optional]
16 | **size** | **Number** | | [optional]
17 | **status** | **String** | | [optional]
18 | **failureReason** | **String** | | [optional]
19 | **probeJson** | **String** | | [optional]
20 | **rms** | **Number** | | [optional]
21 | **peak** | **Number** | | [optional]
22 | **truePeak** | **Number** | | [optional]
23 | **lowpassTruePeak15khz** | **Number** | | [optional]
24 | **loudness** | **Number** | | [optional]
25 | **dynamics** | **Number** | | [optional]
26 | **sharpness** | **Number** | | [optional]
27 | **space** | **Number** | | [optional]
28 | **loudnessRange** | **Number** | | [optional]
29 | **drr** | **Number** | | [optional]
30 | **soundQuality** | **Number** | | [optional]
31 | **soundQuality2** | **Number** | | [optional]
32 | **dissonance** | **Number** | | [optional]
33 | **frames** | **Number** | | [optional]
34 | **sampleRate** | **Number** | | [optional]
35 | **channels** | **Number** | | [optional]
36 | **isPublic** | **Boolean** | | [optional]
37 | **likedBySelf** | **Boolean** | | [optional]
38 | **likeCount** | **Number** | | [optional]
39 | **createdAt** | **Date** | | [optional]
40 | **updatedAt** | **Date** | | [optional]
41 |
42 |
43 |
--------------------------------------------------------------------------------
/docs/LibraryAudioAnalysis.md:
--------------------------------------------------------------------------------
1 | # Aimastering.LibraryAudioAnalysis
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | Audio analysis id | [optional]
7 | **libraryAudioId** | **Number** | Audio id | [optional]
8 | **analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/LibraryAudioLike.md:
--------------------------------------------------------------------------------
1 | # Aimastering.LibraryAudioLike
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | Audio analysis id | [optional]
7 | **libraryAudioId** | **Number** | Audio id | [optional]
8 | **userId** | **Number** | User id | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/Mastering.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Mastering
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **userId** | **Number** | | [optional]
8 | **inputAudioId** | **Number** | | [optional]
9 | **outputAudioId** | **Number** | | [optional]
10 | **outputVideoId** | **Number** | | [optional]
11 | **referenceAudioId** | **Number** | | [optional]
12 | **mode** | **String** | | [optional]
13 | **status** | **String** | | [optional]
14 | **failureReason** | **String** | | [optional]
15 | **targetLoudnessMode** | **String** | | [optional]
16 | **targetLoudness** | **Number** | | [optional]
17 | **outputFormat** | **String** | | [optional]
18 | **preset** | **String** | | [optional]
19 | **bitDepth** | **Number** | | [optional]
20 | **sampleRate** | **Number** | | [optional]
21 | **reviewComment** | **String** | | [optional]
22 | **reviewScore** | **Number** | | [optional]
23 | **masteringMatchingLevel** | **Number** | | [optional]
24 | **progression** | **Number** | | [optional]
25 | **bassPreservation** | **Boolean** | | [optional]
26 | **mastering** | **Boolean** | | [optional]
27 | **masteringAlgorithm** | **String** | | [optional]
28 | **preserved** | **Boolean** | | [optional]
29 | **retryCount** | **Number** | | [optional]
30 | **masteringReverb** | **Boolean** | | [optional]
31 | **masteringReverbGain** | **Number** | | [optional]
32 | **lowCutFreq** | **Number** | | [optional]
33 | **highCutFreq** | **Number** | | [optional]
34 | **ceiling** | **Number** | | [optional]
35 | **ceilingMode** | **String** | | [optional]
36 | **oversample** | **Number** | | [optional]
37 | **limitingError** | **Number** | | [optional]
38 | **videoTitle** | **String** | | [optional]
39 | **videoStatus** | **String** | | [optional]
40 | **expireAt** | **Date** | | [optional]
41 | **createdAt** | **Date** | | [optional]
42 | **updatedAt** | **Date** | | [optional]
43 |
44 |
45 |
46 | ## Enum: ModeEnum
47 |
48 |
49 | * `default` (value: `"default"`)
50 |
51 | * `custom` (value: `"custom"`)
52 |
53 |
54 |
55 |
56 |
57 | ## Enum: StatusEnum
58 |
59 |
60 | * `waiting` (value: `"waiting"`)
61 |
62 | * `processing` (value: `"processing"`)
63 |
64 | * `canceled` (value: `"canceled"`)
65 |
66 | * `failed` (value: `"failed"`)
67 |
68 | * `succeeded` (value: `"succeeded"`)
69 |
70 |
71 |
72 |
73 |
74 | ## Enum: FailureReasonEnum
75 |
76 |
77 | * `unknown` (value: `"unknown"`)
78 |
79 | * `expired` (value: `"expired"`)
80 |
81 | * `failed_to_prepare` (value: `"failed_to_prepare"`)
82 |
83 |
84 |
85 |
86 |
87 | ## Enum: TargetLoudnessModeEnum
88 |
89 |
90 | * `loudness` (value: `"loudness"`)
91 |
92 | * `rms` (value: `"rms"`)
93 |
94 | * `peak` (value: `"peak"`)
95 |
96 | * `youtube_loudness` (value: `"youtube_loudness"`)
97 |
98 |
99 |
100 |
101 |
102 | ## Enum: OutputFormatEnum
103 |
104 |
105 | * `wav` (value: `"wav"`)
106 |
107 | * `mp3` (value: `"mp3"`)
108 |
109 |
110 |
111 |
112 |
113 | ## Enum: PresetEnum
114 |
115 |
116 | * `general` (value: `"general"`)
117 |
118 | * `pop` (value: `"pop"`)
119 |
120 | * `jazz` (value: `"jazz"`)
121 |
122 | * `classical` (value: `"classical"`)
123 |
124 |
125 |
126 |
127 |
128 | ## Enum: MasteringAlgorithmEnum
129 |
130 |
131 | * `v1` (value: `"v1"`)
132 |
133 | * `v2` (value: `"v2"`)
134 |
135 |
136 |
137 |
138 |
139 | ## Enum: VideoStatusEnum
140 |
141 |
142 | * `waiting` (value: `"waiting"`)
143 |
144 | * `failed` (value: `"failed"`)
145 |
146 | * `succeeded` (value: `"succeeded"`)
147 |
148 |
149 |
150 |
151 |
--------------------------------------------------------------------------------
/docs/Payment.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Payment
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **service** | **String** | | [optional]
8 | **productGiven** | **Boolean** | | [optional]
9 | **product** | **Object** | | [optional]
10 | **transactionId** | **String** | | [optional]
11 | **transactionDetail** | **Object** | | [optional]
12 | **createdAt** | **Date** | | [optional]
13 |
14 |
15 |
16 | ## Enum: ServiceEnum
17 |
18 |
19 | * `paypal` (value: `"paypal"`)
20 |
21 | * `stripe` (value: `"stripe"`)
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/PaymentCustomer.md:
--------------------------------------------------------------------------------
1 | # Aimastering.PaymentCustomer
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **paymentCustomerDetail** | **Object** | | [optional]
8 | **createdAt** | **Date** | | [optional]
9 | **updatedAt** | **Date** | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/PaymentCustomerApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.PaymentCustomerApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**getDefaultPaymentCustomer**](PaymentCustomerApi.md#getDefaultPaymentCustomer) | **GET** /payment_customers/default | Get a default payment customer.
8 |
9 |
10 |
11 | # **getDefaultPaymentCustomer**
12 | > [PaymentCustomer] getDefaultPaymentCustomer()
13 |
14 | Get a default payment customer.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.PaymentCustomerApi();
28 |
29 | var callback = function(error, data, response) {
30 | if (error) {
31 | console.error(error);
32 | } else {
33 | console.log('API called successfully. Returned data: ' + data);
34 | }
35 | };
36 | apiInstance.getDefaultPaymentCustomer(callback);
37 | ```
38 |
39 | ### Parameters
40 | This endpoint does not need any parameter.
41 |
42 | ### Return type
43 |
44 | [**[PaymentCustomer]**](PaymentCustomer.md)
45 |
46 | ### Authorization
47 |
48 | [bearer](../README.md#bearer)
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: Not defined
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/Plan.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Plan
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **amount** | **Number** | | [optional]
7 | **currency** | **String** | | [optional]
8 | **interval** | **String** | | [optional]
9 | **name** | **String** | | [optional]
10 | **stripePlanId** | **String** | | [optional]
11 |
12 |
13 |
14 | ## Enum: CurrencyEnum
15 |
16 |
17 | * `jpy` (value: `"jpy"`)
18 |
19 | * `usd` (value: `"usd"`)
20 |
21 |
22 |
23 |
24 |
25 | ## Enum: IntervalEnum
26 |
27 |
28 | * `month` (value: `"month"`)
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/docs/PlanApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.PlanApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**listPlans**](PlanApi.md#listPlans) | **GET** /plans | Get all accessable plans.
8 |
9 |
10 |
11 | # **listPlans**
12 | > [Plan] listPlans()
13 |
14 | Get all accessable plans.
15 |
16 | ### Example
17 | ```javascript
18 | var Aimastering = require('aimastering');
19 | var defaultClient = Aimastering.ApiClient.instance;
20 |
21 | // Configure API key authorization: bearer
22 | var bearer = defaultClient.authentications['bearer'];
23 | bearer.apiKey = 'YOUR API KEY';
24 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25 | //bearer.apiKeyPrefix = 'Token';
26 |
27 | var apiInstance = new Aimastering.PlanApi();
28 |
29 | var callback = function(error, data, response) {
30 | if (error) {
31 | console.error(error);
32 | } else {
33 | console.log('API called successfully. Returned data: ' + data);
34 | }
35 | };
36 | apiInstance.listPlans(callback);
37 | ```
38 |
39 | ### Parameters
40 | This endpoint does not need any parameter.
41 |
42 | ### Return type
43 |
44 | [**[Plan]**](Plan.md)
45 |
46 | ### Authorization
47 |
48 | [bearer](../README.md#bearer)
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: Not defined
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/SpSubscription.md:
--------------------------------------------------------------------------------
1 | # Aimastering.SpSubscription
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **userId** | **Number** | | [optional]
8 | **status** | **String** | | [optional]
9 | **createdAt** | **Date** | | [optional]
10 | **updatedAt** | **Date** | | [optional]
11 |
12 |
13 |
14 | ## Enum: StatusEnum
15 |
16 |
17 | * `active` (value: `"active"`)
18 |
19 | * `inactive` (value: `"inactive"`)
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/SpSubscriptionApi.md:
--------------------------------------------------------------------------------
1 | # Aimastering.SpSubscriptionApi
2 |
3 | All URIs are relative to *https://api.bakuage.com:443*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**createSpSubscription**](SpSubscriptionApi.md#createSpSubscription) | **POST** /sp_subscriptions | Create a new smartphone subscription.
8 | [**listSpSubscriptions**](SpSubscriptionApi.md#listSpSubscriptions) | **GET** /sp_subscriptions | Get all accessable smartphone subscriptions.
9 |
10 |
11 |
12 | # **createSpSubscription**
13 | > SpSubscription createSpSubscription(service, opts)
14 |
15 | Create a new smartphone subscription.
16 |
17 | ### Example
18 | ```javascript
19 | var Aimastering = require('aimastering');
20 | var defaultClient = Aimastering.ApiClient.instance;
21 |
22 | // Configure API key authorization: bearer
23 | var bearer = defaultClient.authentications['bearer'];
24 | bearer.apiKey = 'YOUR API KEY';
25 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
26 | //bearer.apiKeyPrefix = 'Token';
27 |
28 | var apiInstance = new Aimastering.SpSubscriptionApi();
29 |
30 | var service = "service_example"; // String | Service.
31 |
32 | var opts = {
33 | 'receipt': "receipt_example" // String | Base64 encoded app store receipt. This parameter is effective only when the service is \"appstore\".
34 | };
35 |
36 | var callback = function(error, data, response) {
37 | if (error) {
38 | console.error(error);
39 | } else {
40 | console.log('API called successfully. Returned data: ' + data);
41 | }
42 | };
43 | apiInstance.createSpSubscription(service, opts, callback);
44 | ```
45 |
46 | ### Parameters
47 |
48 | Name | Type | Description | Notes
49 | ------------- | ------------- | ------------- | -------------
50 | **service** | **String**| Service. |
51 | **receipt** | **String**| Base64 encoded app store receipt. This parameter is effective only when the service is \"appstore\". | [optional]
52 |
53 | ### Return type
54 |
55 | [**SpSubscription**](SpSubscription.md)
56 |
57 | ### Authorization
58 |
59 | [bearer](../README.md#bearer)
60 |
61 | ### HTTP request headers
62 |
63 | - **Content-Type**: multipart/form-data
64 | - **Accept**: application/json
65 |
66 |
67 | # **listSpSubscriptions**
68 | > [SpSubscription] listSpSubscriptions()
69 |
70 | Get all accessable smartphone subscriptions.
71 |
72 | ### Example
73 | ```javascript
74 | var Aimastering = require('aimastering');
75 | var defaultClient = Aimastering.ApiClient.instance;
76 |
77 | // Configure API key authorization: bearer
78 | var bearer = defaultClient.authentications['bearer'];
79 | bearer.apiKey = 'YOUR API KEY';
80 | // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
81 | //bearer.apiKeyPrefix = 'Token';
82 |
83 | var apiInstance = new Aimastering.SpSubscriptionApi();
84 |
85 | var callback = function(error, data, response) {
86 | if (error) {
87 | console.error(error);
88 | } else {
89 | console.log('API called successfully. Returned data: ' + data);
90 | }
91 | };
92 | apiInstance.listSpSubscriptions(callback);
93 | ```
94 |
95 | ### Parameters
96 | This endpoint does not need any parameter.
97 |
98 | ### Return type
99 |
100 | [**[SpSubscription]**](SpSubscription.md)
101 |
102 | ### Authorization
103 |
104 | [bearer](../README.md#bearer)
105 |
106 | ### HTTP request headers
107 |
108 | - **Content-Type**: Not defined
109 | - **Accept**: application/json
110 |
111 |
--------------------------------------------------------------------------------
/docs/Subscription.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Subscription
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **userId** | **Number** | | [optional]
8 | **stripeSubscriptionId** | **String** | | [optional]
9 | **currentPeriodStartAt** | **Date** | | [optional]
10 | **currentPeriodEndAt** | **Date** | | [optional]
11 | **canceled** | **Boolean** | | [optional]
12 | **cancelAtPeriodEnd** | **Boolean** | | [optional]
13 | **trialEnd** | **Date** | | [optional]
14 | **status** | **String** | | [optional]
15 | **createdAt** | **Date** | | [optional]
16 | **updatedAt** | **Date** | | [optional]
17 |
18 |
19 |
20 | ## Enum: StatusEnum
21 |
22 |
23 | * `trialing` (value: `"trialing"`)
24 |
25 | * `active` (value: `"active"`)
26 |
27 | * `past_due` (value: `"past_due"`)
28 |
29 | * `unpaid` (value: `"unpaid"`)
30 |
31 | * `canceled` (value: `"canceled"`)
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/docs/User.md:
--------------------------------------------------------------------------------
1 | # Aimastering.User
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **affiliateEnabled** | **Boolean** | | [optional]
8 | **agreedTermsOfService** | **Boolean** | | [optional]
9 | **authId** | **String** | | [optional]
10 | **authProvider** | **String** | | [optional]
11 | **email** | **String** | | [optional]
12 | **registrationNotified** | **Boolean** | | [optional]
13 | **statistics** | [**UserStatistics**](UserStatistics.md) | | [optional]
14 | **createdAt** | **Date** | | [optional]
15 | **updatedAt** | **Date** | | [optional]
16 |
17 |
18 |
19 | ## Enum: AuthProviderEnum
20 |
21 |
22 | * `auth0` (value: `"auth0"`)
23 |
24 | * `github` (value: `"github"`)
25 |
26 | * `google` (value: `"google"`)
27 |
28 | * `twitter` (value: `"twitter"`)
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/docs/UserStatistics.md:
--------------------------------------------------------------------------------
1 | # Aimastering.UserStatistics
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **registrationInvitationCount** | **Number** | | [optional]
7 | **subscriptionInvitationCount** | **Number** | | [optional]
8 | **masteringCount** | **Number** | | [optional]
9 | **monthlyRegistrationInvitationCount** | **Number** | | [optional]
10 | **monthlySubscriptionInvitationCount** | **Number** | | [optional]
11 | **monthlyMasteringCount** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/Video.md:
--------------------------------------------------------------------------------
1 | # Aimastering.Video
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **id** | **Number** | | [optional]
7 | **fileResourceId** | **Number** | | [optional]
8 | **userId** | **Number** | | [optional]
9 | **name** | **String** | | [optional]
10 | **createdAt** | **Date** | | [optional]
11 | **updatedAt** | **Date** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/VideoDownloadToken.md:
--------------------------------------------------------------------------------
1 | # Aimastering.VideoDownloadToken
2 |
3 | ## Properties
4 | Name | Type | Description | Notes
5 | ------------ | ------------- | ------------- | -------------
6 | **downloadToken** | [**JWT**](JWT.md) | | [optional]
7 | **downloadUrl** | **String** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/git_push.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3 | #
4 | # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5 |
6 | git_user_id=$1
7 | git_repo_id=$2
8 | release_note=$3
9 |
10 | if [ "$git_user_id" = "" ]; then
11 | git_user_id="GIT_USER_ID"
12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13 | fi
14 |
15 | if [ "$git_repo_id" = "" ]; then
16 | git_repo_id="GIT_REPO_ID"
17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18 | fi
19 |
20 | if [ "$release_note" = "" ]; then
21 | release_note="Minor update"
22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23 | fi
24 |
25 | # Initialize the local directory as a Git repository
26 | git init
27 |
28 | # Adds the files in the local repository and stages them for commit.
29 | git add .
30 |
31 | # Commits the tracked changes and prepares them to be pushed to a remote repository.
32 | git commit -m "$release_note"
33 |
34 | # Sets the new remote
35 | git_remote=`git remote`
36 | if [ "$git_remote" = "" ]; then # git remote not defined
37 |
38 | if [ "$GIT_TOKEN" = "" ]; then
39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment."
40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41 | else
42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43 | fi
44 |
45 | fi
46 |
47 | git pull origin master
48 |
49 | # Pushes (Forces) the changes in the local repository up to the remote repository
50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51 | git push origin master 2>&1 | grep -v 'To https'
52 |
53 |
--------------------------------------------------------------------------------
/mocha.opts:
--------------------------------------------------------------------------------
1 | --timeout 10000
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "aimastering",
3 | "version": "1.1.0",
4 | "description": "This_is_a_AI_Mastering_API_document__You_can_use_the_mastering_feature_of__AI_Mastering_httpsaimastering_com_through_this_API_",
5 | "license": "Apache 2.0",
6 | "main": "src/index.js",
7 | "scripts": {
8 | "test": "./node_modules/mocha/bin/mocha --recursive"
9 | },
10 | "browser": {
11 | "fs": false
12 | },
13 | "dependencies": {
14 | "superagent": "3.5.2"
15 | },
16 | "devDependencies": {
17 | "mocha": "~2.3.4",
18 | "sinon": "1.17.3",
19 | "expect.js": "~0.3.1"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/api/AccessTokenApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/AccessToken'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/AccessToken'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AccessTokenApi = factory(root.Aimastering.ApiClient, root.Aimastering.AccessToken);
30 | }
31 | }(this, function(ApiClient, AccessToken) {
32 | 'use strict';
33 |
34 | /**
35 | * AccessToken service.
36 | * @module api/AccessTokenApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new AccessTokenApi.
42 | * @alias module:api/AccessTokenApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the createAccessToken operation.
53 | * @callback module:api/AccessTokenApi~createAccessTokenCallback
54 | * @param {String} error Error message, if any.
55 | * @param {module:model/AccessToken} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Create an API access token.
61 | * @param {module:api/AccessTokenApi~createAccessTokenCallback} callback The callback function, accepting three arguments: error, data, response
62 | * data is of type: {@link module:model/AccessToken}
63 | */
64 | this.createAccessToken = function(callback) {
65 | var postBody = null;
66 |
67 |
68 | var pathParams = {
69 | };
70 | var queryParams = {
71 | };
72 | var collectionQueryParams = {
73 | };
74 | var headerParams = {
75 | };
76 | var formParams = {
77 | };
78 |
79 | var authNames = ['bearer'];
80 | var contentTypes = [];
81 | var accepts = ['application/json'];
82 | var returnType = AccessToken;
83 |
84 | return this.apiClient.callApi(
85 | '/access_tokens', 'POST',
86 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
87 | authNames, contentTypes, accepts, returnType, callback
88 | );
89 | }
90 | };
91 |
92 | return exports;
93 | }));
94 |
--------------------------------------------------------------------------------
/src/api/AmazonSubscriptionApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/AmazonSubscription'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/AmazonSubscription'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AmazonSubscriptionApi = factory(root.Aimastering.ApiClient, root.Aimastering.AmazonSubscription);
30 | }
31 | }(this, function(ApiClient, AmazonSubscription) {
32 | 'use strict';
33 |
34 | /**
35 | * AmazonSubscription service.
36 | * @module api/AmazonSubscriptionApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new AmazonSubscriptionApi.
42 | * @alias module:api/AmazonSubscriptionApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the listAmazonSubscriptions operation.
53 | * @callback module:api/AmazonSubscriptionApi~listAmazonSubscriptionsCallback
54 | * @param {String} error Error message, if any.
55 | * @param {Array.} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Get all accessable amazon subscriptions.
61 | * @param {module:api/AmazonSubscriptionApi~listAmazonSubscriptionsCallback} callback The callback function, accepting three arguments: error, data, response
62 | * data is of type: {@link Array.}
63 | */
64 | this.listAmazonSubscriptions = function(callback) {
65 | var postBody = null;
66 |
67 |
68 | var pathParams = {
69 | };
70 | var queryParams = {
71 | };
72 | var collectionQueryParams = {
73 | };
74 | var headerParams = {
75 | };
76 | var formParams = {
77 | };
78 |
79 | var authNames = ['bearer'];
80 | var contentTypes = [];
81 | var accepts = ['application/json'];
82 | var returnType = [AmazonSubscription];
83 |
84 | return this.apiClient.callApi(
85 | '/amazon_subscriptions', 'GET',
86 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
87 | authNames, contentTypes, accepts, returnType, callback
88 | );
89 | }
90 | };
91 |
92 | return exports;
93 | }));
94 |
--------------------------------------------------------------------------------
/src/api/ConfigApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/Config'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/Config'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ConfigApi = factory(root.Aimastering.ApiClient, root.Aimastering.Config);
30 | }
31 | }(this, function(ApiClient, Config) {
32 | 'use strict';
33 |
34 | /**
35 | * Config service.
36 | * @module api/ConfigApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new ConfigApi.
42 | * @alias module:api/ConfigApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the getConfig operation.
53 | * @callback module:api/ConfigApi~getConfigCallback
54 | * @param {String} error Error message, if any.
55 | * @param {module:model/Config} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Get config.
61 | * @param {module:api/ConfigApi~getConfigCallback} callback The callback function, accepting three arguments: error, data, response
62 | * data is of type: {@link module:model/Config}
63 | */
64 | this.getConfig = function(callback) {
65 | var postBody = null;
66 |
67 |
68 | var pathParams = {
69 | };
70 | var queryParams = {
71 | };
72 | var collectionQueryParams = {
73 | };
74 | var headerParams = {
75 | };
76 | var formParams = {
77 | };
78 |
79 | var authNames = ['bearer'];
80 | var contentTypes = [];
81 | var accepts = ['application/json'];
82 | var returnType = Config;
83 |
84 | return this.apiClient.callApi(
85 | '/config', 'GET',
86 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
87 | authNames, contentTypes, accepts, returnType, callback
88 | );
89 | }
90 | };
91 |
92 | return exports;
93 | }));
94 |
--------------------------------------------------------------------------------
/src/api/ExternalSearchApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/ExternalSearchResult'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/ExternalSearchResult'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ExternalSearchApi = factory(root.Aimastering.ApiClient, root.Aimastering.ExternalSearchResult);
30 | }
31 | }(this, function(ApiClient, ExternalSearchResult) {
32 | 'use strict';
33 |
34 | /**
35 | * ExternalSearch service.
36 | * @module api/ExternalSearchApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new ExternalSearchApi.
42 | * @alias module:api/ExternalSearchApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the searchExternal operation.
53 | * @callback module:api/ExternalSearchApi~searchExternalCallback
54 | * @param {String} error Error message, if any.
55 | * @param {module:model/ExternalSearchResult} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Search external music and get name, url, thumbnails, etc.
61 | * @param {String} query Search query
62 | * @param {String} country Country ex. US, JP, etc
63 | * @param {module:api/ExternalSearchApi~searchExternalCallback} callback The callback function, accepting three arguments: error, data, response
64 | * data is of type: {@link module:model/ExternalSearchResult}
65 | */
66 | this.searchExternal = function(query, country, callback) {
67 | var postBody = null;
68 |
69 | // verify the required parameter 'query' is set
70 | if (query === undefined || query === null) {
71 | throw new Error("Missing the required parameter 'query' when calling searchExternal");
72 | }
73 |
74 | // verify the required parameter 'country' is set
75 | if (country === undefined || country === null) {
76 | throw new Error("Missing the required parameter 'country' when calling searchExternal");
77 | }
78 |
79 |
80 | var pathParams = {
81 | };
82 | var queryParams = {
83 | 'query': query,
84 | 'country': country,
85 | };
86 | var collectionQueryParams = {
87 | };
88 | var headerParams = {
89 | };
90 | var formParams = {
91 | };
92 |
93 | var authNames = ['bearer'];
94 | var contentTypes = [];
95 | var accepts = ['application/json'];
96 | var returnType = ExternalSearchResult;
97 |
98 | return this.apiClient.callApi(
99 | '/external_search', 'GET',
100 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
101 | authNames, contentTypes, accepts, returnType, callback
102 | );
103 | }
104 | };
105 |
106 | return exports;
107 | }));
108 |
--------------------------------------------------------------------------------
/src/api/PaymentCustomerApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/PaymentCustomer'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/PaymentCustomer'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.PaymentCustomerApi = factory(root.Aimastering.ApiClient, root.Aimastering.PaymentCustomer);
30 | }
31 | }(this, function(ApiClient, PaymentCustomer) {
32 | 'use strict';
33 |
34 | /**
35 | * PaymentCustomer service.
36 | * @module api/PaymentCustomerApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new PaymentCustomerApi.
42 | * @alias module:api/PaymentCustomerApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the getDefaultPaymentCustomer operation.
53 | * @callback module:api/PaymentCustomerApi~getDefaultPaymentCustomerCallback
54 | * @param {String} error Error message, if any.
55 | * @param {Array.} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Get a default payment customer.
61 | * @param {module:api/PaymentCustomerApi~getDefaultPaymentCustomerCallback} callback The callback function, accepting three arguments: error, data, response
62 | * data is of type: {@link Array.}
63 | */
64 | this.getDefaultPaymentCustomer = function(callback) {
65 | var postBody = null;
66 |
67 |
68 | var pathParams = {
69 | };
70 | var queryParams = {
71 | };
72 | var collectionQueryParams = {
73 | };
74 | var headerParams = {
75 | };
76 | var formParams = {
77 | };
78 |
79 | var authNames = ['bearer'];
80 | var contentTypes = [];
81 | var accepts = ['application/json'];
82 | var returnType = [PaymentCustomer];
83 |
84 | return this.apiClient.callApi(
85 | '/payment_customers/default', 'GET',
86 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
87 | authNames, contentTypes, accepts, returnType, callback
88 | );
89 | }
90 | };
91 |
92 | return exports;
93 | }));
94 |
--------------------------------------------------------------------------------
/src/api/PlanApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/Plan'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('../model/Plan'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.PlanApi = factory(root.Aimastering.ApiClient, root.Aimastering.Plan);
30 | }
31 | }(this, function(ApiClient, Plan) {
32 | 'use strict';
33 |
34 | /**
35 | * Plan service.
36 | * @module api/PlanApi
37 | * @version 1.1.0
38 | */
39 |
40 | /**
41 | * Constructs a new PlanApi.
42 | * @alias module:api/PlanApi
43 | * @class
44 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45 | * default to {@link module:ApiClient#instance} if unspecified.
46 | */
47 | var exports = function(apiClient) {
48 | this.apiClient = apiClient || ApiClient.instance;
49 |
50 |
51 | /**
52 | * Callback function to receive the result of the listPlans operation.
53 | * @callback module:api/PlanApi~listPlansCallback
54 | * @param {String} error Error message, if any.
55 | * @param {Array.} data The data returned by the service call.
56 | * @param {String} response The complete HTTP response.
57 | */
58 |
59 | /**
60 | * Get all accessable plans.
61 | * @param {module:api/PlanApi~listPlansCallback} callback The callback function, accepting three arguments: error, data, response
62 | * data is of type: {@link Array.}
63 | */
64 | this.listPlans = function(callback) {
65 | var postBody = null;
66 |
67 |
68 | var pathParams = {
69 | };
70 | var queryParams = {
71 | };
72 | var collectionQueryParams = {
73 | };
74 | var headerParams = {
75 | };
76 | var formParams = {
77 | };
78 |
79 | var authNames = ['bearer'];
80 | var contentTypes = [];
81 | var accepts = ['application/json'];
82 | var returnType = [Plan];
83 |
84 | return this.apiClient.callApi(
85 | '/plans', 'GET',
86 | pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
87 | authNames, contentTypes, accepts, returnType, callback
88 | );
89 | }
90 | };
91 |
92 | return exports;
93 | }));
94 |
--------------------------------------------------------------------------------
/src/model/AccessToken.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/JWT'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('./JWT'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AccessToken = factory(root.Aimastering.ApiClient, root.Aimastering.JWT);
30 | }
31 | }(this, function(ApiClient, JWT) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The AccessToken model module.
39 | * @module model/AccessToken
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new AccessToken
.
45 | * @alias module:model/AccessToken
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 | };
53 |
54 | /**
55 | * Constructs a AccessToken
from a plain JavaScript object, optionally creating a new instance.
56 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
57 | * @param {Object} data The plain JavaScript object bearing properties of interest.
58 | * @param {module:model/AccessToken} obj Optional instance to populate.
59 | * @return {module:model/AccessToken} The populated AccessToken
instance.
60 | */
61 | exports.constructFromObject = function(data, obj) {
62 | if (data) {
63 | obj = obj || new exports();
64 |
65 | if (data.hasOwnProperty('access_token')) {
66 | obj['access_token'] = JWT.constructFromObject(data['access_token']);
67 | }
68 | }
69 | return obj;
70 | }
71 |
72 | /**
73 | * @member {module:model/JWT} access_token
74 | */
75 | exports.prototype['access_token'] = undefined;
76 |
77 |
78 |
79 | return exports;
80 | }));
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/model/AmazonSubscription.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AmazonSubscription = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The AmazonSubscription model module.
39 | * @module model/AmazonSubscription
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new AmazonSubscription
.
45 | * @alias module:model/AmazonSubscription
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 |
56 | };
57 |
58 | /**
59 | * Constructs a AmazonSubscription
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/AmazonSubscription} obj Optional instance to populate.
63 | * @return {module:model/AmazonSubscription} The populated AmazonSubscription
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | if (data) {
67 | obj = obj || new exports();
68 |
69 | if (data.hasOwnProperty('id')) {
70 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
71 | }
72 | if (data.hasOwnProperty('user_id')) {
73 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
74 | }
75 | if (data.hasOwnProperty('status')) {
76 | obj['status'] = ApiClient.convertToType(data['status'], 'String');
77 | }
78 | if (data.hasOwnProperty('created_at')) {
79 | obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
80 | }
81 | if (data.hasOwnProperty('updated_at')) {
82 | obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
83 | }
84 | }
85 | return obj;
86 | }
87 |
88 | /**
89 | * @member {Number} id
90 | */
91 | exports.prototype['id'] = undefined;
92 | /**
93 | * @member {Number} user_id
94 | */
95 | exports.prototype['user_id'] = undefined;
96 | /**
97 | * @member {module:model/AmazonSubscription.StatusEnum} status
98 | */
99 | exports.prototype['status'] = undefined;
100 | /**
101 | * @member {Date} created_at
102 | */
103 | exports.prototype['created_at'] = undefined;
104 | /**
105 | * @member {Date} updated_at
106 | */
107 | exports.prototype['updated_at'] = undefined;
108 |
109 |
110 | /**
111 | * Allowed values for the status
property.
112 | * @enum {String}
113 | * @readonly
114 | */
115 | exports.StatusEnum = {
116 | /**
117 | * value: "active"
118 | * @const
119 | */
120 | "active": "active",
121 | /**
122 | * value: "deactivated"
123 | * @const
124 | */
125 | "deactivated": "deactivated" };
126 |
127 |
128 | return exports;
129 | }));
130 |
131 |
132 |
--------------------------------------------------------------------------------
/src/model/AudioAnalysis.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AudioAnalysis = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The AudioAnalysis model module.
39 | * @module model/AudioAnalysis
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new AudioAnalysis
.
45 | * @alias module:model/AudioAnalysis
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 | };
55 |
56 | /**
57 | * Constructs a AudioAnalysis
from a plain JavaScript object, optionally creating a new instance.
58 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @param {module:model/AudioAnalysis} obj Optional instance to populate.
61 | * @return {module:model/AudioAnalysis} The populated AudioAnalysis
instance.
62 | */
63 | exports.constructFromObject = function(data, obj) {
64 | if (data) {
65 | obj = obj || new exports();
66 |
67 | if (data.hasOwnProperty('id')) {
68 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
69 | }
70 | if (data.hasOwnProperty('audio_id')) {
71 | obj['audio_id'] = ApiClient.convertToType(data['audio_id'], 'Number');
72 | }
73 | if (data.hasOwnProperty('analysis')) {
74 | obj['analysis'] = ApiClient.convertToType(data['analysis'], Object);
75 | }
76 | }
77 | return obj;
78 | }
79 |
80 | /**
81 | * Audio analysis id
82 | * @member {Number} id
83 | */
84 | exports.prototype['id'] = undefined;
85 | /**
86 | * Audio id
87 | * @member {Number} audio_id
88 | */
89 | exports.prototype['audio_id'] = undefined;
90 | /**
91 | * Audio analysis data. The schema changes frequently.
92 | * @member {Object} analysis
93 | */
94 | exports.prototype['analysis'] = undefined;
95 |
96 |
97 |
98 | return exports;
99 | }));
100 |
101 |
102 |
--------------------------------------------------------------------------------
/src/model/AudioDownloadToken.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/JWT'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('./JWT'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.AudioDownloadToken = factory(root.Aimastering.ApiClient, root.Aimastering.JWT);
30 | }
31 | }(this, function(ApiClient, JWT) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The AudioDownloadToken model module.
39 | * @module model/AudioDownloadToken
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new AudioDownloadToken
.
45 | * @alias module:model/AudioDownloadToken
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 | };
54 |
55 | /**
56 | * Constructs a AudioDownloadToken
from a plain JavaScript object, optionally creating a new instance.
57 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
58 | * @param {Object} data The plain JavaScript object bearing properties of interest.
59 | * @param {module:model/AudioDownloadToken} obj Optional instance to populate.
60 | * @return {module:model/AudioDownloadToken} The populated AudioDownloadToken
instance.
61 | */
62 | exports.constructFromObject = function(data, obj) {
63 | if (data) {
64 | obj = obj || new exports();
65 |
66 | if (data.hasOwnProperty('download_token')) {
67 | obj['download_token'] = JWT.constructFromObject(data['download_token']);
68 | }
69 | if (data.hasOwnProperty('download_url')) {
70 | obj['download_url'] = ApiClient.convertToType(data['download_url'], 'String');
71 | }
72 | }
73 | return obj;
74 | }
75 |
76 | /**
77 | * @member {module:model/JWT} download_token
78 | */
79 | exports.prototype['download_token'] = undefined;
80 | /**
81 | * @member {String} download_url
82 | */
83 | exports.prototype['download_url'] = undefined;
84 |
85 |
86 |
87 | return exports;
88 | }));
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/model/Config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/ConfigAuth0', 'model/ConfigPaypal', 'model/ConfigStripe', 'model/ConfigVersion'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('./ConfigAuth0'), require('./ConfigPaypal'), require('./ConfigStripe'), require('./ConfigVersion'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.Config = factory(root.Aimastering.ApiClient, root.Aimastering.ConfigAuth0, root.Aimastering.ConfigPaypal, root.Aimastering.ConfigStripe, root.Aimastering.ConfigVersion);
30 | }
31 | }(this, function(ApiClient, ConfigAuth0, ConfigPaypal, ConfigStripe, ConfigVersion) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The Config model module.
39 | * @module model/Config
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new Config
.
45 | * @alias module:model/Config
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 | };
56 |
57 | /**
58 | * Constructs a Config
from a plain JavaScript object, optionally creating a new instance.
59 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @param {module:model/Config} obj Optional instance to populate.
62 | * @return {module:model/Config} The populated Config
instance.
63 | */
64 | exports.constructFromObject = function(data, obj) {
65 | if (data) {
66 | obj = obj || new exports();
67 |
68 | if (data.hasOwnProperty('auth0')) {
69 | obj['auth0'] = ConfigAuth0.constructFromObject(data['auth0']);
70 | }
71 | if (data.hasOwnProperty('paypal')) {
72 | obj['paypal'] = ConfigPaypal.constructFromObject(data['paypal']);
73 | }
74 | if (data.hasOwnProperty('stripe')) {
75 | obj['stripe'] = ConfigStripe.constructFromObject(data['stripe']);
76 | }
77 | if (data.hasOwnProperty('version')) {
78 | obj['version'] = ConfigVersion.constructFromObject(data['version']);
79 | }
80 | }
81 | return obj;
82 | }
83 |
84 | /**
85 | * @member {module:model/ConfigAuth0} auth0
86 | */
87 | exports.prototype['auth0'] = undefined;
88 | /**
89 | * @member {module:model/ConfigPaypal} paypal
90 | */
91 | exports.prototype['paypal'] = undefined;
92 | /**
93 | * @member {module:model/ConfigStripe} stripe
94 | */
95 | exports.prototype['stripe'] = undefined;
96 | /**
97 | * @member {module:model/ConfigVersion} version
98 | */
99 | exports.prototype['version'] = undefined;
100 |
101 |
102 |
103 | return exports;
104 | }));
105 |
106 |
107 |
--------------------------------------------------------------------------------
/src/model/ConfigAuth0.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ConfigAuth0 = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The ConfigAuth0 model module.
39 | * @module model/ConfigAuth0
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new ConfigAuth0
.
45 | * @alias module:model/ConfigAuth0
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 | };
55 |
56 | /**
57 | * Constructs a ConfigAuth0
from a plain JavaScript object, optionally creating a new instance.
58 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @param {module:model/ConfigAuth0} obj Optional instance to populate.
61 | * @return {module:model/ConfigAuth0} The populated ConfigAuth0
instance.
62 | */
63 | exports.constructFromObject = function(data, obj) {
64 | if (data) {
65 | obj = obj || new exports();
66 |
67 | if (data.hasOwnProperty('audience')) {
68 | obj['audience'] = ApiClient.convertToType(data['audience'], 'String');
69 | }
70 | if (data.hasOwnProperty('domain')) {
71 | obj['domain'] = ApiClient.convertToType(data['domain'], 'String');
72 | }
73 | if (data.hasOwnProperty('client_id')) {
74 | obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String');
75 | }
76 | }
77 | return obj;
78 | }
79 |
80 | /**
81 | * @member {String} audience
82 | */
83 | exports.prototype['audience'] = undefined;
84 | /**
85 | * @member {String} domain
86 | */
87 | exports.prototype['domain'] = undefined;
88 | /**
89 | * @member {String} client_id
90 | */
91 | exports.prototype['client_id'] = undefined;
92 |
93 |
94 |
95 | return exports;
96 | }));
97 |
98 |
99 |
--------------------------------------------------------------------------------
/src/model/ConfigPaypal.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ConfigPaypal = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The ConfigPaypal model module.
39 | * @module model/ConfigPaypal
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new ConfigPaypal
.
45 | * @alias module:model/ConfigPaypal
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 | };
54 |
55 | /**
56 | * Constructs a ConfigPaypal
from a plain JavaScript object, optionally creating a new instance.
57 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
58 | * @param {Object} data The plain JavaScript object bearing properties of interest.
59 | * @param {module:model/ConfigPaypal} obj Optional instance to populate.
60 | * @return {module:model/ConfigPaypal} The populated ConfigPaypal
instance.
61 | */
62 | exports.constructFromObject = function(data, obj) {
63 | if (data) {
64 | obj = obj || new exports();
65 |
66 | if (data.hasOwnProperty('mode')) {
67 | obj['mode'] = ApiClient.convertToType(data['mode'], 'String');
68 | }
69 | if (data.hasOwnProperty('client_id')) {
70 | obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String');
71 | }
72 | }
73 | return obj;
74 | }
75 |
76 | /**
77 | * @member {String} mode
78 | */
79 | exports.prototype['mode'] = undefined;
80 | /**
81 | * @member {String} client_id
82 | */
83 | exports.prototype['client_id'] = undefined;
84 |
85 |
86 |
87 | return exports;
88 | }));
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/model/ConfigStripe.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ConfigStripe = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The ConfigStripe model module.
39 | * @module model/ConfigStripe
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new ConfigStripe
.
45 | * @alias module:model/ConfigStripe
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 | };
53 |
54 | /**
55 | * Constructs a ConfigStripe
from a plain JavaScript object, optionally creating a new instance.
56 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
57 | * @param {Object} data The plain JavaScript object bearing properties of interest.
58 | * @param {module:model/ConfigStripe} obj Optional instance to populate.
59 | * @return {module:model/ConfigStripe} The populated ConfigStripe
instance.
60 | */
61 | exports.constructFromObject = function(data, obj) {
62 | if (data) {
63 | obj = obj || new exports();
64 |
65 | if (data.hasOwnProperty('publishable_key')) {
66 | obj['publishable_key'] = ApiClient.convertToType(data['publishable_key'], 'String');
67 | }
68 | }
69 | return obj;
70 | }
71 |
72 | /**
73 | * @member {String} publishable_key
74 | */
75 | exports.prototype['publishable_key'] = undefined;
76 |
77 |
78 |
79 | return exports;
80 | }));
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/model/ConfigVersion.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ConfigVersion = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The ConfigVersion model module.
39 | * @module model/ConfigVersion
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new ConfigVersion
.
45 | * @alias module:model/ConfigVersion
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 | };
53 |
54 | /**
55 | * Constructs a ConfigVersion
from a plain JavaScript object, optionally creating a new instance.
56 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
57 | * @param {Object} data The plain JavaScript object bearing properties of interest.
58 | * @param {module:model/ConfigVersion} obj Optional instance to populate.
59 | * @return {module:model/ConfigVersion} The populated ConfigVersion
instance.
60 | */
61 | exports.constructFromObject = function(data, obj) {
62 | if (data) {
63 | obj = obj || new exports();
64 |
65 | if (data.hasOwnProperty('commit')) {
66 | obj['commit'] = ApiClient.convertToType(data['commit'], 'String');
67 | }
68 | }
69 | return obj;
70 | }
71 |
72 | /**
73 | * @member {String} commit
74 | */
75 | exports.prototype['commit'] = undefined;
76 |
77 |
78 |
79 | return exports;
80 | }));
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/model/ExternalSearchResult.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/ExternalSearchResultItunes', 'model/ExternalSearchResultYoutube'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('./ExternalSearchResultItunes'), require('./ExternalSearchResultYoutube'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.ExternalSearchResult = factory(root.Aimastering.ApiClient, root.Aimastering.ExternalSearchResultItunes, root.Aimastering.ExternalSearchResultYoutube);
30 | }
31 | }(this, function(ApiClient, ExternalSearchResultItunes, ExternalSearchResultYoutube) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The ExternalSearchResult model module.
39 | * @module model/ExternalSearchResult
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new ExternalSearchResult
.
45 | * @alias module:model/ExternalSearchResult
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 | };
54 |
55 | /**
56 | * Constructs a ExternalSearchResult
from a plain JavaScript object, optionally creating a new instance.
57 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
58 | * @param {Object} data The plain JavaScript object bearing properties of interest.
59 | * @param {module:model/ExternalSearchResult} obj Optional instance to populate.
60 | * @return {module:model/ExternalSearchResult} The populated ExternalSearchResult
instance.
61 | */
62 | exports.constructFromObject = function(data, obj) {
63 | if (data) {
64 | obj = obj || new exports();
65 |
66 | if (data.hasOwnProperty('itunes')) {
67 | obj['itunes'] = ApiClient.convertToType(data['itunes'], [ExternalSearchResultItunes]);
68 | }
69 | if (data.hasOwnProperty('youtube')) {
70 | obj['youtube'] = ApiClient.convertToType(data['youtube'], [ExternalSearchResultYoutube]);
71 | }
72 | }
73 | return obj;
74 | }
75 |
76 | /**
77 | * @member {Array.} itunes
78 | */
79 | exports.prototype['itunes'] = undefined;
80 | /**
81 | * @member {Array.} youtube
82 | */
83 | exports.prototype['youtube'] = undefined;
84 |
85 |
86 |
87 | return exports;
88 | }));
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/model/GroupBuyStatistics.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.GroupBuyStatistics = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The GroupBuyStatistics model module.
39 | * @module model/GroupBuyStatistics
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new GroupBuyStatistics
.
45 | * @alias module:model/GroupBuyStatistics
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 | };
53 |
54 | /**
55 | * Constructs a GroupBuyStatistics
from a plain JavaScript object, optionally creating a new instance.
56 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
57 | * @param {Object} data The plain JavaScript object bearing properties of interest.
58 | * @param {module:model/GroupBuyStatistics} obj Optional instance to populate.
59 | * @return {module:model/GroupBuyStatistics} The populated GroupBuyStatistics
instance.
60 | */
61 | exports.constructFromObject = function(data, obj) {
62 | if (data) {
63 | obj = obj || new exports();
64 |
65 | if (data.hasOwnProperty('premium_plan_subscribed_user_count')) {
66 | obj['premium_plan_subscribed_user_count'] = ApiClient.convertToType(data['premium_plan_subscribed_user_count'], 'Number');
67 | }
68 | }
69 | return obj;
70 | }
71 |
72 | /**
73 | * @member {Number} premium_plan_subscribed_user_count
74 | */
75 | exports.prototype['premium_plan_subscribed_user_count'] = undefined;
76 |
77 |
78 |
79 | return exports;
80 | }));
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/model/JWT.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.JWT = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The JWT model module.
39 | * @module model/JWT
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new JWT
.
45 | * @alias module:model/JWT
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 | };
52 |
53 | /**
54 | * Constructs a JWT
from a plain JavaScript object, optionally creating a new instance.
55 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
56 | * @param {Object} data The plain JavaScript object bearing properties of interest.
57 | * @param {module:model/JWT} obj Optional instance to populate.
58 | * @return {module:model/JWT} The populated JWT
instance.
59 | */
60 | exports.constructFromObject = function(data, obj) {
61 | if (data) {
62 | obj = obj || new exports();
63 |
64 | }
65 | return obj;
66 | }
67 |
68 |
69 |
70 |
71 | return exports;
72 | }));
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/model/Kpi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.Kpi = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The Kpi model module.
39 | * @module model/Kpi
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new Kpi
.
45 | * @alias module:model/Kpi
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 | };
52 |
53 | /**
54 | * Constructs a Kpi
from a plain JavaScript object, optionally creating a new instance.
55 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
56 | * @param {Object} data The plain JavaScript object bearing properties of interest.
57 | * @param {module:model/Kpi} obj Optional instance to populate.
58 | * @return {module:model/Kpi} The populated Kpi
instance.
59 | */
60 | exports.constructFromObject = function(data, obj) {
61 | if (data) {
62 | obj = obj || new exports();
63 |
64 | }
65 | return obj;
66 | }
67 |
68 |
69 |
70 |
71 | return exports;
72 | }));
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/model/LibraryAudioAnalysis.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.LibraryAudioAnalysis = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The LibraryAudioAnalysis model module.
39 | * @module model/LibraryAudioAnalysis
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new LibraryAudioAnalysis
.
45 | * @alias module:model/LibraryAudioAnalysis
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 | };
55 |
56 | /**
57 | * Constructs a LibraryAudioAnalysis
from a plain JavaScript object, optionally creating a new instance.
58 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @param {module:model/LibraryAudioAnalysis} obj Optional instance to populate.
61 | * @return {module:model/LibraryAudioAnalysis} The populated LibraryAudioAnalysis
instance.
62 | */
63 | exports.constructFromObject = function(data, obj) {
64 | if (data) {
65 | obj = obj || new exports();
66 |
67 | if (data.hasOwnProperty('id')) {
68 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
69 | }
70 | if (data.hasOwnProperty('library_audio_id')) {
71 | obj['library_audio_id'] = ApiClient.convertToType(data['library_audio_id'], 'Number');
72 | }
73 | if (data.hasOwnProperty('analysis')) {
74 | obj['analysis'] = ApiClient.convertToType(data['analysis'], Object);
75 | }
76 | }
77 | return obj;
78 | }
79 |
80 | /**
81 | * Audio analysis id
82 | * @member {Number} id
83 | */
84 | exports.prototype['id'] = undefined;
85 | /**
86 | * Audio id
87 | * @member {Number} library_audio_id
88 | */
89 | exports.prototype['library_audio_id'] = undefined;
90 | /**
91 | * Audio analysis data. The schema changes frequently.
92 | * @member {Object} analysis
93 | */
94 | exports.prototype['analysis'] = undefined;
95 |
96 |
97 |
98 | return exports;
99 | }));
100 |
101 |
102 |
--------------------------------------------------------------------------------
/src/model/LibraryAudioLike.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.LibraryAudioLike = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The LibraryAudioLike model module.
39 | * @module model/LibraryAudioLike
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new LibraryAudioLike
.
45 | * @alias module:model/LibraryAudioLike
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 | };
55 |
56 | /**
57 | * Constructs a LibraryAudioLike
from a plain JavaScript object, optionally creating a new instance.
58 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @param {module:model/LibraryAudioLike} obj Optional instance to populate.
61 | * @return {module:model/LibraryAudioLike} The populated LibraryAudioLike
instance.
62 | */
63 | exports.constructFromObject = function(data, obj) {
64 | if (data) {
65 | obj = obj || new exports();
66 |
67 | if (data.hasOwnProperty('id')) {
68 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
69 | }
70 | if (data.hasOwnProperty('library_audio_id')) {
71 | obj['library_audio_id'] = ApiClient.convertToType(data['library_audio_id'], 'Number');
72 | }
73 | if (data.hasOwnProperty('user_id')) {
74 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
75 | }
76 | }
77 | return obj;
78 | }
79 |
80 | /**
81 | * Audio analysis id
82 | * @member {Number} id
83 | */
84 | exports.prototype['id'] = undefined;
85 | /**
86 | * Audio id
87 | * @member {Number} library_audio_id
88 | */
89 | exports.prototype['library_audio_id'] = undefined;
90 | /**
91 | * User id
92 | * @member {Number} user_id
93 | */
94 | exports.prototype['user_id'] = undefined;
95 |
96 |
97 |
98 | return exports;
99 | }));
100 |
101 |
102 |
--------------------------------------------------------------------------------
/src/model/PaymentCustomer.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.PaymentCustomer = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The PaymentCustomer model module.
39 | * @module model/PaymentCustomer
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new PaymentCustomer
.
45 | * @alias module:model/PaymentCustomer
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 | };
56 |
57 | /**
58 | * Constructs a PaymentCustomer
from a plain JavaScript object, optionally creating a new instance.
59 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @param {module:model/PaymentCustomer} obj Optional instance to populate.
62 | * @return {module:model/PaymentCustomer} The populated PaymentCustomer
instance.
63 | */
64 | exports.constructFromObject = function(data, obj) {
65 | if (data) {
66 | obj = obj || new exports();
67 |
68 | if (data.hasOwnProperty('id')) {
69 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
70 | }
71 | if (data.hasOwnProperty('payment_customer_detail')) {
72 | obj['payment_customer_detail'] = ApiClient.convertToType(data['payment_customer_detail'], Object);
73 | }
74 | if (data.hasOwnProperty('created_at')) {
75 | obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
76 | }
77 | if (data.hasOwnProperty('updated_at')) {
78 | obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
79 | }
80 | }
81 | return obj;
82 | }
83 |
84 | /**
85 | * @member {Number} id
86 | */
87 | exports.prototype['id'] = undefined;
88 | /**
89 | * @member {Object} payment_customer_detail
90 | */
91 | exports.prototype['payment_customer_detail'] = undefined;
92 | /**
93 | * @member {Date} created_at
94 | */
95 | exports.prototype['created_at'] = undefined;
96 | /**
97 | * @member {Date} updated_at
98 | */
99 | exports.prototype['updated_at'] = undefined;
100 |
101 |
102 |
103 | return exports;
104 | }));
105 |
106 |
107 |
--------------------------------------------------------------------------------
/src/model/Plan.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.Plan = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The Plan model module.
39 | * @module model/Plan
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new Plan
.
45 | * @alias module:model/Plan
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 |
56 | };
57 |
58 | /**
59 | * Constructs a Plan
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/Plan} obj Optional instance to populate.
63 | * @return {module:model/Plan} The populated Plan
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | if (data) {
67 | obj = obj || new exports();
68 |
69 | if (data.hasOwnProperty('amount')) {
70 | obj['amount'] = ApiClient.convertToType(data['amount'], 'Number');
71 | }
72 | if (data.hasOwnProperty('currency')) {
73 | obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
74 | }
75 | if (data.hasOwnProperty('interval')) {
76 | obj['interval'] = ApiClient.convertToType(data['interval'], 'String');
77 | }
78 | if (data.hasOwnProperty('name')) {
79 | obj['name'] = ApiClient.convertToType(data['name'], 'String');
80 | }
81 | if (data.hasOwnProperty('stripe_plan_id')) {
82 | obj['stripe_plan_id'] = ApiClient.convertToType(data['stripe_plan_id'], 'String');
83 | }
84 | }
85 | return obj;
86 | }
87 |
88 | /**
89 | * @member {Number} amount
90 | */
91 | exports.prototype['amount'] = undefined;
92 | /**
93 | * @member {module:model/Plan.CurrencyEnum} currency
94 | */
95 | exports.prototype['currency'] = undefined;
96 | /**
97 | * @member {module:model/Plan.IntervalEnum} interval
98 | */
99 | exports.prototype['interval'] = undefined;
100 | /**
101 | * @member {String} name
102 | */
103 | exports.prototype['name'] = undefined;
104 | /**
105 | * @member {String} stripe_plan_id
106 | */
107 | exports.prototype['stripe_plan_id'] = undefined;
108 |
109 |
110 | /**
111 | * Allowed values for the currency
property.
112 | * @enum {String}
113 | * @readonly
114 | */
115 | exports.CurrencyEnum = {
116 | /**
117 | * value: "jpy"
118 | * @const
119 | */
120 | "jpy": "jpy",
121 | /**
122 | * value: "usd"
123 | * @const
124 | */
125 | "usd": "usd" };
126 |
127 | /**
128 | * Allowed values for the interval
property.
129 | * @enum {String}
130 | * @readonly
131 | */
132 | exports.IntervalEnum = {
133 | /**
134 | * value: "month"
135 | * @const
136 | */
137 | "month": "month" };
138 |
139 |
140 | return exports;
141 | }));
142 |
143 |
144 |
--------------------------------------------------------------------------------
/src/model/SpSubscription.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.SpSubscription = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The SpSubscription model module.
39 | * @module model/SpSubscription
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new SpSubscription
.
45 | * @alias module:model/SpSubscription
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 |
56 | };
57 |
58 | /**
59 | * Constructs a SpSubscription
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/SpSubscription} obj Optional instance to populate.
63 | * @return {module:model/SpSubscription} The populated SpSubscription
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | if (data) {
67 | obj = obj || new exports();
68 |
69 | if (data.hasOwnProperty('id')) {
70 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
71 | }
72 | if (data.hasOwnProperty('user_id')) {
73 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
74 | }
75 | if (data.hasOwnProperty('status')) {
76 | obj['status'] = ApiClient.convertToType(data['status'], 'String');
77 | }
78 | if (data.hasOwnProperty('created_at')) {
79 | obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
80 | }
81 | if (data.hasOwnProperty('updated_at')) {
82 | obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
83 | }
84 | }
85 | return obj;
86 | }
87 |
88 | /**
89 | * @member {Number} id
90 | */
91 | exports.prototype['id'] = undefined;
92 | /**
93 | * @member {Number} user_id
94 | */
95 | exports.prototype['user_id'] = undefined;
96 | /**
97 | * @member {module:model/SpSubscription.StatusEnum} status
98 | */
99 | exports.prototype['status'] = undefined;
100 | /**
101 | * @member {Date} created_at
102 | */
103 | exports.prototype['created_at'] = undefined;
104 | /**
105 | * @member {Date} updated_at
106 | */
107 | exports.prototype['updated_at'] = undefined;
108 |
109 |
110 | /**
111 | * Allowed values for the status
property.
112 | * @enum {String}
113 | * @readonly
114 | */
115 | exports.StatusEnum = {
116 | /**
117 | * value: "active"
118 | * @const
119 | */
120 | "active": "active",
121 | /**
122 | * value: "inactive"
123 | * @const
124 | */
125 | "inactive": "inactive" };
126 |
127 |
128 | return exports;
129 | }));
130 |
131 |
132 |
--------------------------------------------------------------------------------
/src/model/Video.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.Video = factory(root.Aimastering.ApiClient);
30 | }
31 | }(this, function(ApiClient) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The Video model module.
39 | * @module model/Video
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new Video
.
45 | * @alias module:model/Video
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a Video
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/Video} obj Optional instance to populate.
64 | * @return {module:model/Video} The populated Video
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('id')) {
71 | obj['id'] = ApiClient.convertToType(data['id'], 'Number');
72 | }
73 | if (data.hasOwnProperty('file_resource_id')) {
74 | obj['file_resource_id'] = ApiClient.convertToType(data['file_resource_id'], 'Number');
75 | }
76 | if (data.hasOwnProperty('user_id')) {
77 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
78 | }
79 | if (data.hasOwnProperty('name')) {
80 | obj['name'] = ApiClient.convertToType(data['name'], 'String');
81 | }
82 | if (data.hasOwnProperty('created_at')) {
83 | obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
84 | }
85 | if (data.hasOwnProperty('updated_at')) {
86 | obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
87 | }
88 | }
89 | return obj;
90 | }
91 |
92 | /**
93 | * @member {Number} id
94 | */
95 | exports.prototype['id'] = undefined;
96 | /**
97 | * @member {Number} file_resource_id
98 | */
99 | exports.prototype['file_resource_id'] = undefined;
100 | /**
101 | * @member {Number} user_id
102 | */
103 | exports.prototype['user_id'] = undefined;
104 | /**
105 | * @member {String} name
106 | */
107 | exports.prototype['name'] = undefined;
108 | /**
109 | * @member {Date} created_at
110 | */
111 | exports.prototype['created_at'] = undefined;
112 | /**
113 | * @member {Date} updated_at
114 | */
115 | exports.prototype['updated_at'] = undefined;
116 |
117 |
118 |
119 | return exports;
120 | }));
121 |
122 |
123 |
--------------------------------------------------------------------------------
/src/model/VideoDownloadToken.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD. Register as an anonymous module.
20 | define(['ApiClient', 'model/JWT'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | module.exports = factory(require('../ApiClient'), require('./JWT'));
24 | } else {
25 | // Browser globals (root is window)
26 | if (!root.Aimastering) {
27 | root.Aimastering = {};
28 | }
29 | root.Aimastering.VideoDownloadToken = factory(root.Aimastering.ApiClient, root.Aimastering.JWT);
30 | }
31 | }(this, function(ApiClient, JWT) {
32 | 'use strict';
33 |
34 |
35 |
36 |
37 | /**
38 | * The VideoDownloadToken model module.
39 | * @module model/VideoDownloadToken
40 | * @version 1.1.0
41 | */
42 |
43 | /**
44 | * Constructs a new VideoDownloadToken
.
45 | * @alias module:model/VideoDownloadToken
46 | * @class
47 | */
48 | var exports = function() {
49 | var _this = this;
50 |
51 |
52 |
53 | };
54 |
55 | /**
56 | * Constructs a VideoDownloadToken
from a plain JavaScript object, optionally creating a new instance.
57 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
58 | * @param {Object} data The plain JavaScript object bearing properties of interest.
59 | * @param {module:model/VideoDownloadToken} obj Optional instance to populate.
60 | * @return {module:model/VideoDownloadToken} The populated VideoDownloadToken
instance.
61 | */
62 | exports.constructFromObject = function(data, obj) {
63 | if (data) {
64 | obj = obj || new exports();
65 |
66 | if (data.hasOwnProperty('download_token')) {
67 | obj['download_token'] = JWT.constructFromObject(data['download_token']);
68 | }
69 | if (data.hasOwnProperty('download_url')) {
70 | obj['download_url'] = ApiClient.convertToType(data['download_url'], 'String');
71 | }
72 | }
73 | return obj;
74 | }
75 |
76 | /**
77 | * @member {module:model/JWT} download_token
78 | */
79 | exports.prototype['download_token'] = undefined;
80 | /**
81 | * @member {String} download_url
82 | */
83 | exports.prototype['download_url'] = undefined;
84 |
85 |
86 |
87 | return exports;
88 | }));
89 |
90 |
91 |
--------------------------------------------------------------------------------
/test/api/AccessTokenApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AccessTokenApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AccessTokenApi', function() {
54 | describe('createAccessToken', function() {
55 | it('should call createAccessToken successfully', function(done) {
56 | //uncomment below and update the code to test createAccessToken
57 | //instance.createAccessToken(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/AmazonSubscriptionApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AmazonSubscriptionApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AmazonSubscriptionApi', function() {
54 | describe('listAmazonSubscriptions', function() {
55 | it('should call listAmazonSubscriptions successfully', function(done) {
56 | //uncomment below and update the code to test listAmazonSubscriptions
57 | //instance.listAmazonSubscriptions(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/ConfigApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ConfigApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ConfigApi', function() {
54 | describe('getConfig', function() {
55 | it('should call getConfig successfully', function(done) {
56 | //uncomment below and update the code to test getConfig
57 | //instance.getConfig(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/ExternalSearchApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ExternalSearchApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ExternalSearchApi', function() {
54 | describe('searchExternal', function() {
55 | it('should call searchExternal successfully', function(done) {
56 | //uncomment below and update the code to test searchExternal
57 | //instance.searchExternal(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/PaymentApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.PaymentApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('PaymentApi', function() {
54 | describe('createPayment', function() {
55 | it('should call createPayment successfully', function(done) {
56 | //uncomment below and update the code to test createPayment
57 | //instance.createPayment(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('executePayment', function() {
65 | it('should call executePayment successfully', function(done) {
66 | //uncomment below and update the code to test executePayment
67 | //instance.executePayment(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | describe('getPayment', function() {
75 | it('should call getPayment successfully', function(done) {
76 | //uncomment below and update the code to test getPayment
77 | //instance.getPayment(function(error) {
78 | // if (error) throw error;
79 | //expect().to.be();
80 | //});
81 | done();
82 | });
83 | });
84 | describe('listPayments', function() {
85 | it('should call listPayments successfully', function(done) {
86 | //uncomment below and update the code to test listPayments
87 | //instance.listPayments(function(error) {
88 | // if (error) throw error;
89 | //expect().to.be();
90 | //});
91 | done();
92 | });
93 | });
94 | });
95 |
96 | }));
97 |
--------------------------------------------------------------------------------
/test/api/PaymentCustomerApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.PaymentCustomerApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('PaymentCustomerApi', function() {
54 | describe('getDefaultPaymentCustomer', function() {
55 | it('should call getDefaultPaymentCustomer successfully', function(done) {
56 | //uncomment below and update the code to test getDefaultPaymentCustomer
57 | //instance.getDefaultPaymentCustomer(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/PlanApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.PlanApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('PlanApi', function() {
54 | describe('listPlans', function() {
55 | it('should call listPlans successfully', function(done) {
56 | //uncomment below and update the code to test listPlans
57 | //instance.listPlans(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | });
65 |
66 | }));
67 |
--------------------------------------------------------------------------------
/test/api/SpSubscriptionApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.SpSubscriptionApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('SpSubscriptionApi', function() {
54 | describe('createSpSubscription', function() {
55 | it('should call createSpSubscription successfully', function(done) {
56 | //uncomment below and update the code to test createSpSubscription
57 | //instance.createSpSubscription(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('listSpSubscriptions', function() {
65 | it('should call listSpSubscriptions successfully', function(done) {
66 | //uncomment below and update the code to test listSpSubscriptions
67 | //instance.listSpSubscriptions(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | });
75 |
76 | }));
77 |
--------------------------------------------------------------------------------
/test/api/StatisticsApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.StatisticsApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('StatisticsApi', function() {
54 | describe('getGroupBuyStatistics', function() {
55 | it('should call getGroupBuyStatistics successfully', function(done) {
56 | //uncomment below and update the code to test getGroupBuyStatistics
57 | //instance.getGroupBuyStatistics(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('listAnonymizedMasterings', function() {
65 | it('should call listAnonymizedMasterings successfully', function(done) {
66 | //uncomment below and update the code to test listAnonymizedMasterings
67 | //instance.listAnonymizedMasterings(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | describe('listKpis', function() {
75 | it('should call listKpis successfully', function(done) {
76 | //uncomment below and update the code to test listKpis
77 | //instance.listKpis(function(error) {
78 | // if (error) throw error;
79 | //expect().to.be();
80 | //});
81 | done();
82 | });
83 | });
84 | });
85 |
86 | }));
87 |
--------------------------------------------------------------------------------
/test/api/SubscriptionApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.SubscriptionApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('SubscriptionApi', function() {
54 | describe('cancelSubscription', function() {
55 | it('should call cancelSubscription successfully', function(done) {
56 | //uncomment below and update the code to test cancelSubscription
57 | //instance.cancelSubscription(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('cancelSubscriptionCancellation', function() {
65 | it('should call cancelSubscriptionCancellation successfully', function(done) {
66 | //uncomment below and update the code to test cancelSubscriptionCancellation
67 | //instance.cancelSubscriptionCancellation(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | describe('createSubscription', function() {
75 | it('should call createSubscription successfully', function(done) {
76 | //uncomment below and update the code to test createSubscription
77 | //instance.createSubscription(function(error) {
78 | // if (error) throw error;
79 | //expect().to.be();
80 | //});
81 | done();
82 | });
83 | });
84 | describe('getSubscription', function() {
85 | it('should call getSubscription successfully', function(done) {
86 | //uncomment below and update the code to test getSubscription
87 | //instance.getSubscription(function(error) {
88 | // if (error) throw error;
89 | //expect().to.be();
90 | //});
91 | done();
92 | });
93 | });
94 | describe('listSubscriptions', function() {
95 | it('should call listSubscriptions successfully', function(done) {
96 | //uncomment below and update the code to test listSubscriptions
97 | //instance.listSubscriptions(function(error) {
98 | // if (error) throw error;
99 | //expect().to.be();
100 | //});
101 | done();
102 | });
103 | });
104 | });
105 |
106 | }));
107 |
--------------------------------------------------------------------------------
/test/api/UserApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.UserApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('UserApi', function() {
54 | describe('getSelf', function() {
55 | it('should call getSelf successfully', function(done) {
56 | //uncomment below and update the code to test getSelf
57 | //instance.getSelf(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('notifyRegistration', function() {
65 | it('should call notifyRegistration successfully', function(done) {
66 | //uncomment below and update the code to test notifyRegistration
67 | //instance.notifyRegistration(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | describe('sendInvitation', function() {
75 | it('should call sendInvitation successfully', function(done) {
76 | //uncomment below and update the code to test sendInvitation
77 | //instance.sendInvitation(function(error) {
78 | // if (error) throw error;
79 | //expect().to.be();
80 | //});
81 | done();
82 | });
83 | });
84 | describe('updateSelf', function() {
85 | it('should call updateSelf successfully', function(done) {
86 | //uncomment below and update the code to test updateSelf
87 | //instance.updateSelf(function(error) {
88 | // if (error) throw error;
89 | //expect().to.be();
90 | //});
91 | done();
92 | });
93 | });
94 | });
95 |
96 | }));
97 |
--------------------------------------------------------------------------------
/test/api/VideoApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.VideoApi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('VideoApi', function() {
54 | describe('downloadVideo', function() {
55 | it('should call downloadVideo successfully', function(done) {
56 | //uncomment below and update the code to test downloadVideo
57 | //instance.downloadVideo(function(error) {
58 | // if (error) throw error;
59 | //expect().to.be();
60 | //});
61 | done();
62 | });
63 | });
64 | describe('downloadVideoByToken', function() {
65 | it('should call downloadVideoByToken successfully', function(done) {
66 | //uncomment below and update the code to test downloadVideoByToken
67 | //instance.downloadVideoByToken(function(error) {
68 | // if (error) throw error;
69 | //expect().to.be();
70 | //});
71 | done();
72 | });
73 | });
74 | describe('getVideo', function() {
75 | it('should call getVideo successfully', function(done) {
76 | //uncomment below and update the code to test getVideo
77 | //instance.getVideo(function(error) {
78 | // if (error) throw error;
79 | //expect().to.be();
80 | //});
81 | done();
82 | });
83 | });
84 | describe('getVideoDownloadToken', function() {
85 | it('should call getVideoDownloadToken successfully', function(done) {
86 | //uncomment below and update the code to test getVideoDownloadToken
87 | //instance.getVideoDownloadToken(function(error) {
88 | // if (error) throw error;
89 | //expect().to.be();
90 | //});
91 | done();
92 | });
93 | });
94 | describe('listVideos', function() {
95 | it('should call listVideos successfully', function(done) {
96 | //uncomment below and update the code to test listVideos
97 | //instance.listVideos(function(error) {
98 | // if (error) throw error;
99 | //expect().to.be();
100 | //});
101 | done();
102 | });
103 | });
104 | });
105 |
106 | }));
107 |
--------------------------------------------------------------------------------
/test/model/AccessToken.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AccessToken();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AccessToken', function() {
54 | it('should create an instance of AccessToken', function() {
55 | // uncomment below and update the code to test AccessToken
56 | //var instane = new Aimastering.AccessToken();
57 | //expect(instance).to.be.a(Aimastering.AccessToken);
58 | });
59 |
60 | it('should have the property accessToken (base name: "access_token")', function() {
61 | // uncomment below and update the code to test the property accessToken
62 | //var instane = new Aimastering.AccessToken();
63 | //expect(instance).to.be();
64 | });
65 |
66 | });
67 |
68 | }));
69 |
--------------------------------------------------------------------------------
/test/model/AmazonSubscription.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AmazonSubscription();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AmazonSubscription', function() {
54 | it('should create an instance of AmazonSubscription', function() {
55 | // uncomment below and update the code to test AmazonSubscription
56 | //var instane = new Aimastering.AmazonSubscription();
57 | //expect(instance).to.be.a(Aimastering.AmazonSubscription);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.AmazonSubscription();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property userId (base name: "user_id")', function() {
67 | // uncomment below and update the code to test the property userId
68 | //var instane = new Aimastering.AmazonSubscription();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property status (base name: "status")', function() {
73 | // uncomment below and update the code to test the property status
74 | //var instane = new Aimastering.AmazonSubscription();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property createdAt (base name: "created_at")', function() {
79 | // uncomment below and update the code to test the property createdAt
80 | //var instane = new Aimastering.AmazonSubscription();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property updatedAt (base name: "updated_at")', function() {
85 | // uncomment below and update the code to test the property updatedAt
86 | //var instane = new Aimastering.AmazonSubscription();
87 | //expect(instance).to.be();
88 | });
89 |
90 | });
91 |
92 | }));
93 |
--------------------------------------------------------------------------------
/test/model/AudioAnalysis.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AudioAnalysis();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AudioAnalysis', function() {
54 | it('should create an instance of AudioAnalysis', function() {
55 | // uncomment below and update the code to test AudioAnalysis
56 | //var instane = new Aimastering.AudioAnalysis();
57 | //expect(instance).to.be.a(Aimastering.AudioAnalysis);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.AudioAnalysis();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property audioId (base name: "audio_id")', function() {
67 | // uncomment below and update the code to test the property audioId
68 | //var instane = new Aimastering.AudioAnalysis();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property analysis (base name: "analysis")', function() {
73 | // uncomment below and update the code to test the property analysis
74 | //var instane = new Aimastering.AudioAnalysis();
75 | //expect(instance).to.be();
76 | });
77 |
78 | });
79 |
80 | }));
81 |
--------------------------------------------------------------------------------
/test/model/AudioDownloadToken.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.AudioDownloadToken();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('AudioDownloadToken', function() {
54 | it('should create an instance of AudioDownloadToken', function() {
55 | // uncomment below and update the code to test AudioDownloadToken
56 | //var instane = new Aimastering.AudioDownloadToken();
57 | //expect(instance).to.be.a(Aimastering.AudioDownloadToken);
58 | });
59 |
60 | it('should have the property downloadToken (base name: "download_token")', function() {
61 | // uncomment below and update the code to test the property downloadToken
62 | //var instane = new Aimastering.AudioDownloadToken();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property downloadUrl (base name: "download_url")', function() {
67 | // uncomment below and update the code to test the property downloadUrl
68 | //var instane = new Aimastering.AudioDownloadToken();
69 | //expect(instance).to.be();
70 | });
71 |
72 | });
73 |
74 | }));
75 |
--------------------------------------------------------------------------------
/test/model/Config.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.Config();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('Config', function() {
54 | it('should create an instance of Config', function() {
55 | // uncomment below and update the code to test Config
56 | //var instane = new Aimastering.Config();
57 | //expect(instance).to.be.a(Aimastering.Config);
58 | });
59 |
60 | it('should have the property auth0 (base name: "auth0")', function() {
61 | // uncomment below and update the code to test the property auth0
62 | //var instane = new Aimastering.Config();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property paypal (base name: "paypal")', function() {
67 | // uncomment below and update the code to test the property paypal
68 | //var instane = new Aimastering.Config();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property stripe (base name: "stripe")', function() {
73 | // uncomment below and update the code to test the property stripe
74 | //var instane = new Aimastering.Config();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property version (base name: "version")', function() {
79 | // uncomment below and update the code to test the property version
80 | //var instane = new Aimastering.Config();
81 | //expect(instance).to.be();
82 | });
83 |
84 | });
85 |
86 | }));
87 |
--------------------------------------------------------------------------------
/test/model/ConfigAuth0.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ConfigAuth0();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ConfigAuth0', function() {
54 | it('should create an instance of ConfigAuth0', function() {
55 | // uncomment below and update the code to test ConfigAuth0
56 | //var instane = new Aimastering.ConfigAuth0();
57 | //expect(instance).to.be.a(Aimastering.ConfigAuth0);
58 | });
59 |
60 | it('should have the property audience (base name: "audience")', function() {
61 | // uncomment below and update the code to test the property audience
62 | //var instane = new Aimastering.ConfigAuth0();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property domain (base name: "domain")', function() {
67 | // uncomment below and update the code to test the property domain
68 | //var instane = new Aimastering.ConfigAuth0();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property clientId (base name: "client_id")', function() {
73 | // uncomment below and update the code to test the property clientId
74 | //var instane = new Aimastering.ConfigAuth0();
75 | //expect(instance).to.be();
76 | });
77 |
78 | });
79 |
80 | }));
81 |
--------------------------------------------------------------------------------
/test/model/ConfigPaypal.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ConfigPaypal();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ConfigPaypal', function() {
54 | it('should create an instance of ConfigPaypal', function() {
55 | // uncomment below and update the code to test ConfigPaypal
56 | //var instane = new Aimastering.ConfigPaypal();
57 | //expect(instance).to.be.a(Aimastering.ConfigPaypal);
58 | });
59 |
60 | it('should have the property mode (base name: "mode")', function() {
61 | // uncomment below and update the code to test the property mode
62 | //var instane = new Aimastering.ConfigPaypal();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property clientId (base name: "client_id")', function() {
67 | // uncomment below and update the code to test the property clientId
68 | //var instane = new Aimastering.ConfigPaypal();
69 | //expect(instance).to.be();
70 | });
71 |
72 | });
73 |
74 | }));
75 |
--------------------------------------------------------------------------------
/test/model/ConfigStripe.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ConfigStripe();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ConfigStripe', function() {
54 | it('should create an instance of ConfigStripe', function() {
55 | // uncomment below and update the code to test ConfigStripe
56 | //var instane = new Aimastering.ConfigStripe();
57 | //expect(instance).to.be.a(Aimastering.ConfigStripe);
58 | });
59 |
60 | it('should have the property publishableKey (base name: "publishable_key")', function() {
61 | // uncomment below and update the code to test the property publishableKey
62 | //var instane = new Aimastering.ConfigStripe();
63 | //expect(instance).to.be();
64 | });
65 |
66 | });
67 |
68 | }));
69 |
--------------------------------------------------------------------------------
/test/model/ConfigVersion.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ConfigVersion();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ConfigVersion', function() {
54 | it('should create an instance of ConfigVersion', function() {
55 | // uncomment below and update the code to test ConfigVersion
56 | //var instane = new Aimastering.ConfigVersion();
57 | //expect(instance).to.be.a(Aimastering.ConfigVersion);
58 | });
59 |
60 | it('should have the property commit (base name: "commit")', function() {
61 | // uncomment below and update the code to test the property commit
62 | //var instane = new Aimastering.ConfigVersion();
63 | //expect(instance).to.be();
64 | });
65 |
66 | });
67 |
68 | }));
69 |
--------------------------------------------------------------------------------
/test/model/ExternalSearchResult.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.ExternalSearchResult();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('ExternalSearchResult', function() {
54 | it('should create an instance of ExternalSearchResult', function() {
55 | // uncomment below and update the code to test ExternalSearchResult
56 | //var instane = new Aimastering.ExternalSearchResult();
57 | //expect(instance).to.be.a(Aimastering.ExternalSearchResult);
58 | });
59 |
60 | it('should have the property itunes (base name: "itunes")', function() {
61 | // uncomment below and update the code to test the property itunes
62 | //var instane = new Aimastering.ExternalSearchResult();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property youtube (base name: "youtube")', function() {
67 | // uncomment below and update the code to test the property youtube
68 | //var instane = new Aimastering.ExternalSearchResult();
69 | //expect(instance).to.be();
70 | });
71 |
72 | });
73 |
74 | }));
75 |
--------------------------------------------------------------------------------
/test/model/GroupBuyStatistics.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.GroupBuyStatistics();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('GroupBuyStatistics', function() {
54 | it('should create an instance of GroupBuyStatistics', function() {
55 | // uncomment below and update the code to test GroupBuyStatistics
56 | //var instane = new Aimastering.GroupBuyStatistics();
57 | //expect(instance).to.be.a(Aimastering.GroupBuyStatistics);
58 | });
59 |
60 | it('should have the property premiumPlanSubscribedUserCount (base name: "premium_plan_subscribed_user_count")', function() {
61 | // uncomment below and update the code to test the property premiumPlanSubscribedUserCount
62 | //var instane = new Aimastering.GroupBuyStatistics();
63 | //expect(instance).to.be();
64 | });
65 |
66 | });
67 |
68 | }));
69 |
--------------------------------------------------------------------------------
/test/model/JWT.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.JWT();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('JWT', function() {
54 | it('should create an instance of JWT', function() {
55 | // uncomment below and update the code to test JWT
56 | //var instane = new Aimastering.JWT();
57 | //expect(instance).to.be.a(Aimastering.JWT);
58 | });
59 |
60 | });
61 |
62 | }));
63 |
--------------------------------------------------------------------------------
/test/model/Kpi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.Kpi();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('Kpi', function() {
54 | it('should create an instance of Kpi', function() {
55 | // uncomment below and update the code to test Kpi
56 | //var instane = new Aimastering.Kpi();
57 | //expect(instance).to.be.a(Aimastering.Kpi);
58 | });
59 |
60 | });
61 |
62 | }));
63 |
--------------------------------------------------------------------------------
/test/model/LibraryAudioAnalysis.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.LibraryAudioAnalysis();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('LibraryAudioAnalysis', function() {
54 | it('should create an instance of LibraryAudioAnalysis', function() {
55 | // uncomment below and update the code to test LibraryAudioAnalysis
56 | //var instane = new Aimastering.LibraryAudioAnalysis();
57 | //expect(instance).to.be.a(Aimastering.LibraryAudioAnalysis);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.LibraryAudioAnalysis();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property libraryAudioId (base name: "library_audio_id")', function() {
67 | // uncomment below and update the code to test the property libraryAudioId
68 | //var instane = new Aimastering.LibraryAudioAnalysis();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property analysis (base name: "analysis")', function() {
73 | // uncomment below and update the code to test the property analysis
74 | //var instane = new Aimastering.LibraryAudioAnalysis();
75 | //expect(instance).to.be();
76 | });
77 |
78 | });
79 |
80 | }));
81 |
--------------------------------------------------------------------------------
/test/model/LibraryAudioLike.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.LibraryAudioLike();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('LibraryAudioLike', function() {
54 | it('should create an instance of LibraryAudioLike', function() {
55 | // uncomment below and update the code to test LibraryAudioLike
56 | //var instane = new Aimastering.LibraryAudioLike();
57 | //expect(instance).to.be.a(Aimastering.LibraryAudioLike);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.LibraryAudioLike();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property libraryAudioId (base name: "library_audio_id")', function() {
67 | // uncomment below and update the code to test the property libraryAudioId
68 | //var instane = new Aimastering.LibraryAudioLike();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property userId (base name: "user_id")', function() {
73 | // uncomment below and update the code to test the property userId
74 | //var instane = new Aimastering.LibraryAudioLike();
75 | //expect(instance).to.be();
76 | });
77 |
78 | });
79 |
80 | }));
81 |
--------------------------------------------------------------------------------
/test/model/Payment.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.Payment();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('Payment', function() {
54 | it('should create an instance of Payment', function() {
55 | // uncomment below and update the code to test Payment
56 | //var instane = new Aimastering.Payment();
57 | //expect(instance).to.be.a(Aimastering.Payment);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.Payment();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property service (base name: "service")', function() {
67 | // uncomment below and update the code to test the property service
68 | //var instane = new Aimastering.Payment();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property productGiven (base name: "product_given")', function() {
73 | // uncomment below and update the code to test the property productGiven
74 | //var instane = new Aimastering.Payment();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property product (base name: "product")', function() {
79 | // uncomment below and update the code to test the property product
80 | //var instane = new Aimastering.Payment();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property transactionId (base name: "transaction_id")', function() {
85 | // uncomment below and update the code to test the property transactionId
86 | //var instane = new Aimastering.Payment();
87 | //expect(instance).to.be();
88 | });
89 |
90 | it('should have the property transactionDetail (base name: "transaction_detail")', function() {
91 | // uncomment below and update the code to test the property transactionDetail
92 | //var instane = new Aimastering.Payment();
93 | //expect(instance).to.be();
94 | });
95 |
96 | it('should have the property createdAt (base name: "created_at")', function() {
97 | // uncomment below and update the code to test the property createdAt
98 | //var instane = new Aimastering.Payment();
99 | //expect(instance).to.be();
100 | });
101 |
102 | });
103 |
104 | }));
105 |
--------------------------------------------------------------------------------
/test/model/PaymentCustomer.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.PaymentCustomer();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('PaymentCustomer', function() {
54 | it('should create an instance of PaymentCustomer', function() {
55 | // uncomment below and update the code to test PaymentCustomer
56 | //var instane = new Aimastering.PaymentCustomer();
57 | //expect(instance).to.be.a(Aimastering.PaymentCustomer);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.PaymentCustomer();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property paymentCustomerDetail (base name: "payment_customer_detail")', function() {
67 | // uncomment below and update the code to test the property paymentCustomerDetail
68 | //var instane = new Aimastering.PaymentCustomer();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property createdAt (base name: "created_at")', function() {
73 | // uncomment below and update the code to test the property createdAt
74 | //var instane = new Aimastering.PaymentCustomer();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property updatedAt (base name: "updated_at")', function() {
79 | // uncomment below and update the code to test the property updatedAt
80 | //var instane = new Aimastering.PaymentCustomer();
81 | //expect(instance).to.be();
82 | });
83 |
84 | });
85 |
86 | }));
87 |
--------------------------------------------------------------------------------
/test/model/Plan.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.Plan();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('Plan', function() {
54 | it('should create an instance of Plan', function() {
55 | // uncomment below and update the code to test Plan
56 | //var instane = new Aimastering.Plan();
57 | //expect(instance).to.be.a(Aimastering.Plan);
58 | });
59 |
60 | it('should have the property amount (base name: "amount")', function() {
61 | // uncomment below and update the code to test the property amount
62 | //var instane = new Aimastering.Plan();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property currency (base name: "currency")', function() {
67 | // uncomment below and update the code to test the property currency
68 | //var instane = new Aimastering.Plan();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property interval (base name: "interval")', function() {
73 | // uncomment below and update the code to test the property interval
74 | //var instane = new Aimastering.Plan();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property name (base name: "name")', function() {
79 | // uncomment below and update the code to test the property name
80 | //var instane = new Aimastering.Plan();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property stripePlanId (base name: "stripe_plan_id")', function() {
85 | // uncomment below and update the code to test the property stripePlanId
86 | //var instane = new Aimastering.Plan();
87 | //expect(instance).to.be();
88 | });
89 |
90 | });
91 |
92 | }));
93 |
--------------------------------------------------------------------------------
/test/model/SpSubscription.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.SpSubscription();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('SpSubscription', function() {
54 | it('should create an instance of SpSubscription', function() {
55 | // uncomment below and update the code to test SpSubscription
56 | //var instane = new Aimastering.SpSubscription();
57 | //expect(instance).to.be.a(Aimastering.SpSubscription);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.SpSubscription();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property userId (base name: "user_id")', function() {
67 | // uncomment below and update the code to test the property userId
68 | //var instane = new Aimastering.SpSubscription();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property status (base name: "status")', function() {
73 | // uncomment below and update the code to test the property status
74 | //var instane = new Aimastering.SpSubscription();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property createdAt (base name: "created_at")', function() {
79 | // uncomment below and update the code to test the property createdAt
80 | //var instane = new Aimastering.SpSubscription();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property updatedAt (base name: "updated_at")', function() {
85 | // uncomment below and update the code to test the property updatedAt
86 | //var instane = new Aimastering.SpSubscription();
87 | //expect(instance).to.be();
88 | });
89 |
90 | });
91 |
92 | }));
93 |
--------------------------------------------------------------------------------
/test/model/UserStatistics.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.UserStatistics();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('UserStatistics', function() {
54 | it('should create an instance of UserStatistics', function() {
55 | // uncomment below and update the code to test UserStatistics
56 | //var instane = new Aimastering.UserStatistics();
57 | //expect(instance).to.be.a(Aimastering.UserStatistics);
58 | });
59 |
60 | it('should have the property registrationInvitationCount (base name: "registration_invitation_count")', function() {
61 | // uncomment below and update the code to test the property registrationInvitationCount
62 | //var instane = new Aimastering.UserStatistics();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property subscriptionInvitationCount (base name: "subscription_invitation_count")', function() {
67 | // uncomment below and update the code to test the property subscriptionInvitationCount
68 | //var instane = new Aimastering.UserStatistics();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property masteringCount (base name: "mastering_count")', function() {
73 | // uncomment below and update the code to test the property masteringCount
74 | //var instane = new Aimastering.UserStatistics();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property monthlyRegistrationInvitationCount (base name: "monthly_registration_invitation_count")', function() {
79 | // uncomment below and update the code to test the property monthlyRegistrationInvitationCount
80 | //var instane = new Aimastering.UserStatistics();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property monthlySubscriptionInvitationCount (base name: "monthly_subscription_invitation_count")', function() {
85 | // uncomment below and update the code to test the property monthlySubscriptionInvitationCount
86 | //var instane = new Aimastering.UserStatistics();
87 | //expect(instance).to.be();
88 | });
89 |
90 | it('should have the property monthlyMasteringCount (base name: "monthly_mastering_count")', function() {
91 | // uncomment below and update the code to test the property monthlyMasteringCount
92 | //var instane = new Aimastering.UserStatistics();
93 | //expect(instance).to.be();
94 | });
95 |
96 | });
97 |
98 | }));
99 |
--------------------------------------------------------------------------------
/test/model/Video.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.Video();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('Video', function() {
54 | it('should create an instance of Video', function() {
55 | // uncomment below and update the code to test Video
56 | //var instane = new Aimastering.Video();
57 | //expect(instance).to.be.a(Aimastering.Video);
58 | });
59 |
60 | it('should have the property id (base name: "id")', function() {
61 | // uncomment below and update the code to test the property id
62 | //var instane = new Aimastering.Video();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property fileResourceId (base name: "file_resource_id")', function() {
67 | // uncomment below and update the code to test the property fileResourceId
68 | //var instane = new Aimastering.Video();
69 | //expect(instance).to.be();
70 | });
71 |
72 | it('should have the property userId (base name: "user_id")', function() {
73 | // uncomment below and update the code to test the property userId
74 | //var instane = new Aimastering.Video();
75 | //expect(instance).to.be();
76 | });
77 |
78 | it('should have the property name (base name: "name")', function() {
79 | // uncomment below and update the code to test the property name
80 | //var instane = new Aimastering.Video();
81 | //expect(instance).to.be();
82 | });
83 |
84 | it('should have the property createdAt (base name: "created_at")', function() {
85 | // uncomment below and update the code to test the property createdAt
86 | //var instane = new Aimastering.Video();
87 | //expect(instance).to.be();
88 | });
89 |
90 | it('should have the property updatedAt (base name: "updated_at")', function() {
91 | // uncomment below and update the code to test the property updatedAt
92 | //var instane = new Aimastering.Video();
93 | //expect(instance).to.be();
94 | });
95 |
96 | });
97 |
98 | }));
99 |
--------------------------------------------------------------------------------
/test/model/VideoDownloadToken.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * AI Mastering API
3 | * This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: info@bakuage.com
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | *
11 | * Swagger Codegen version: 2.3.1
12 | *
13 | * Do not edit the class manually.
14 | *
15 | */
16 |
17 | (function(root, factory) {
18 | if (typeof define === 'function' && define.amd) {
19 | // AMD.
20 | define(['expect.js', '../../src/index'], factory);
21 | } else if (typeof module === 'object' && module.exports) {
22 | // CommonJS-like environments that support module.exports, like Node.
23 | factory(require('expect.js'), require('../../src/index'));
24 | } else {
25 | // Browser globals (root is window)
26 | factory(root.expect, root.Aimastering);
27 | }
28 | }(this, function(expect, Aimastering) {
29 | 'use strict';
30 |
31 | var instance;
32 |
33 | beforeEach(function() {
34 | instance = new Aimastering.VideoDownloadToken();
35 | });
36 |
37 | var getProperty = function(object, getter, property) {
38 | // Use getter method if present; otherwise, get the property directly.
39 | if (typeof object[getter] === 'function')
40 | return object[getter]();
41 | else
42 | return object[property];
43 | }
44 |
45 | var setProperty = function(object, setter, property, value) {
46 | // Use setter method if present; otherwise, set the property directly.
47 | if (typeof object[setter] === 'function')
48 | object[setter](value);
49 | else
50 | object[property] = value;
51 | }
52 |
53 | describe('VideoDownloadToken', function() {
54 | it('should create an instance of VideoDownloadToken', function() {
55 | // uncomment below and update the code to test VideoDownloadToken
56 | //var instane = new Aimastering.VideoDownloadToken();
57 | //expect(instance).to.be.a(Aimastering.VideoDownloadToken);
58 | });
59 |
60 | it('should have the property downloadToken (base name: "download_token")', function() {
61 | // uncomment below and update the code to test the property downloadToken
62 | //var instane = new Aimastering.VideoDownloadToken();
63 | //expect(instance).to.be();
64 | });
65 |
66 | it('should have the property downloadUrl (base name: "download_url")', function() {
67 | // uncomment below and update the code to test the property downloadUrl
68 | //var instane = new Aimastering.VideoDownloadToken();
69 | //expect(instance).to.be();
70 | });
71 |
72 | });
73 |
74 | }));
75 |
--------------------------------------------------------------------------------