@teemill/teemill-clients 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -2
- package/api.ts +19 -1
- package/base.ts +1 -1
- package/common.ts +18 -6
- package/configuration.ts +1 -1
- package/dist/api.d.ts +11 -1
- package/dist/api.js +9 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -1
- package/dist/common.js +16 -5
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +11 -1
- package/dist/esm/api.js +8 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +6 -1
- package/dist/esm/common.js +14 -4
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Client.md +2 -0
- package/docs/PaymentInterval.md +11 -0
- package/docs/UpdateClientRequest.md +2 -0
- package/git_push.sh +14 -17
- package/index.ts +1 -1
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.25.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/teemill-clients@0.1.
|
|
1
|
+
## @teemill/teemill-clients@0.1.3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/teemill-clients@0.1.
|
|
39
|
+
npm install @teemill/teemill-clients@0.1.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -59,6 +59,7 @@ Class | Method | HTTP request | Description
|
|
|
59
59
|
|
|
60
60
|
- [ApiError](docs/ApiError.md)
|
|
61
61
|
- [Client](docs/Client.md)
|
|
62
|
+
- [PaymentInterval](docs/PaymentInterval.md)
|
|
62
63
|
- [UpdateClientRequest](docs/UpdateClientRequest.md)
|
|
63
64
|
|
|
64
65
|
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Teemill Clients
|
|
5
5
|
* Manage Teemill Client Projects.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -35,14 +35,32 @@ export interface Client {
|
|
|
35
35
|
* Whether the client has a Teemill Pro subscription
|
|
36
36
|
*/
|
|
37
37
|
'proEnabled': boolean;
|
|
38
|
+
'paymentInterval': PaymentInterval;
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
export const PaymentInterval = {
|
|
47
|
+
Daily: 'daily',
|
|
48
|
+
Monthly: 'monthly',
|
|
49
|
+
} as const;
|
|
50
|
+
|
|
51
|
+
export type PaymentInterval = typeof PaymentInterval[keyof typeof PaymentInterval];
|
|
52
|
+
|
|
53
|
+
|
|
39
54
|
export interface UpdateClientRequest {
|
|
40
55
|
/**
|
|
41
56
|
* Whether to enable Teemill Pro for the client
|
|
42
57
|
*/
|
|
43
58
|
'enablePro'?: boolean;
|
|
59
|
+
'paymentInterval'?: PaymentInterval;
|
|
44
60
|
}
|
|
45
61
|
|
|
62
|
+
|
|
63
|
+
|
|
46
64
|
/**
|
|
47
65
|
* TeemillClientsApi - axios parameter creator
|
|
48
66
|
*/
|
package/base.ts
CHANGED
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Teemill Clients
|
|
5
5
|
* Manage Teemill Client Projects.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -86,7 +86,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
86
86
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
87
87
|
if (parameter == null) return;
|
|
88
88
|
if (typeof parameter === "object") {
|
|
89
|
-
if (Array.isArray(parameter)) {
|
|
89
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
90
90
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
@@ -112,7 +112,19 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
112
112
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
113
113
|
const searchParams = new URLSearchParams(url.search);
|
|
114
114
|
setFlattenedQueryParams(searchParams, objects);
|
|
115
|
-
url.search =
|
|
115
|
+
url.search = searchParams.toString();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key: string, value: unknown) {
|
|
123
|
+
if (value instanceof Set) {
|
|
124
|
+
return Array.from(value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return value;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
/**
|
|
@@ -125,7 +137,7 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
|
|
|
125
137
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
126
138
|
: nonString;
|
|
127
139
|
return needsSerialization
|
|
128
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
140
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
129
141
|
: (value || "");
|
|
130
142
|
}
|
|
131
143
|
|
|
@@ -142,8 +154,8 @@ export const toPathString = function (url: URL) {
|
|
|
142
154
|
* @export
|
|
143
155
|
*/
|
|
144
156
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
145
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
157
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
146
158
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
147
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
159
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
148
160
|
};
|
|
149
161
|
}
|
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Teemill Clients
|
|
3
3
|
* Manage Teemill Client Projects.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,12 +25,22 @@ export interface Client {
|
|
|
25
25
|
* Whether the client has a Teemill Pro subscription
|
|
26
26
|
*/
|
|
27
27
|
'proEnabled': boolean;
|
|
28
|
+
'paymentInterval': PaymentInterval;
|
|
28
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
32
|
+
*/
|
|
33
|
+
export declare const PaymentInterval: {
|
|
34
|
+
readonly Daily: "daily";
|
|
35
|
+
readonly Monthly: "monthly";
|
|
36
|
+
};
|
|
37
|
+
export type PaymentInterval = typeof PaymentInterval[keyof typeof PaymentInterval];
|
|
29
38
|
export interface UpdateClientRequest {
|
|
30
39
|
/**
|
|
31
40
|
* Whether to enable Teemill Pro for the client
|
|
32
41
|
*/
|
|
33
42
|
'enablePro'?: boolean;
|
|
43
|
+
'paymentInterval'?: PaymentInterval;
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
46
|
* TeemillClientsApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Teemill Clients
|
|
6
6
|
* Manage Teemill Client Projects.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TeemillClientsApi = exports.TeemillClientsApiFactory = exports.TeemillClientsApiFp = exports.TeemillClientsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.TeemillClientsApi = exports.TeemillClientsApiFactory = exports.TeemillClientsApiFp = exports.TeemillClientsApiAxiosParamCreator = exports.PaymentInterval = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
/**
|
|
33
|
+
* How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
34
|
+
*/
|
|
35
|
+
exports.PaymentInterval = {
|
|
36
|
+
Daily: 'daily',
|
|
37
|
+
Monthly: 'monthly',
|
|
38
|
+
};
|
|
32
39
|
/**
|
|
33
40
|
* TeemillClientsApi - axios parameter creator
|
|
34
41
|
*/
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Teemill Clients
|
|
3
3
|
* Manage Teemill Client Projects.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Teemill Clients
|
|
6
6
|
* Manage Teemill Client Projects.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
25
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
26
|
const base_1 = require("./base");
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
@@ -99,7 +99,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
99
99
|
if (parameter == null)
|
|
100
100
|
return;
|
|
101
101
|
if (typeof parameter === "object") {
|
|
102
|
-
if (Array.isArray(parameter)) {
|
|
102
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
103
103
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
@@ -122,9 +122,20 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
122
122
|
const setSearchParams = function (url, ...objects) {
|
|
123
123
|
const searchParams = new URLSearchParams(url.search);
|
|
124
124
|
setFlattenedQueryParams(searchParams, objects);
|
|
125
|
-
url.search =
|
|
125
|
+
url.search = searchParams.toString();
|
|
126
126
|
};
|
|
127
127
|
exports.setSearchParams = setSearchParams;
|
|
128
|
+
/**
|
|
129
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
133
|
+
if (value instanceof Set) {
|
|
134
|
+
return Array.from(value);
|
|
135
|
+
}
|
|
136
|
+
return value;
|
|
137
|
+
};
|
|
138
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
128
139
|
/**
|
|
129
140
|
*
|
|
130
141
|
* @export
|
|
@@ -135,7 +146,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
135
146
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
147
|
: nonString;
|
|
137
148
|
return needsSerialization
|
|
138
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
149
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
139
150
|
: (value || "");
|
|
140
151
|
};
|
|
141
152
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Teemill Clients
|
|
3
3
|
* Manage Teemill Client Projects.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,12 +25,22 @@ export interface Client {
|
|
|
25
25
|
* Whether the client has a Teemill Pro subscription
|
|
26
26
|
*/
|
|
27
27
|
'proEnabled': boolean;
|
|
28
|
+
'paymentInterval': PaymentInterval;
|
|
28
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
32
|
+
*/
|
|
33
|
+
export declare const PaymentInterval: {
|
|
34
|
+
readonly Daily: "daily";
|
|
35
|
+
readonly Monthly: "monthly";
|
|
36
|
+
};
|
|
37
|
+
export type PaymentInterval = typeof PaymentInterval[keyof typeof PaymentInterval];
|
|
29
38
|
export interface UpdateClientRequest {
|
|
30
39
|
/**
|
|
31
40
|
* Whether to enable Teemill Pro for the client
|
|
32
41
|
*/
|
|
33
42
|
'enablePro'?: boolean;
|
|
43
|
+
'paymentInterval'?: PaymentInterval;
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
46
|
* TeemillClientsApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Teemill Clients
|
|
5
5
|
* Manage Teemill Client Projects.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,13 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
* How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
31
|
+
*/
|
|
32
|
+
export const PaymentInterval = {
|
|
33
|
+
Daily: 'daily',
|
|
34
|
+
Monthly: 'monthly',
|
|
35
|
+
};
|
|
29
36
|
/**
|
|
30
37
|
* TeemillClientsApi - axios parameter creator
|
|
31
38
|
*/
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Teemill Clients
|
|
3
3
|
* Manage Teemill Client Projects.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Teemill Clients
|
|
5
5
|
* Manage Teemill Client Projects.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,7 +91,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
91
|
if (parameter == null)
|
|
92
92
|
return;
|
|
93
93
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
94
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
95
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -114,7 +114,17 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
114
114
|
export const setSearchParams = function (url, ...objects) {
|
|
115
115
|
const searchParams = new URLSearchParams(url.search);
|
|
116
116
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
|
-
url.search =
|
|
117
|
+
url.search = searchParams.toString();
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
124
|
+
if (value instanceof Set) {
|
|
125
|
+
return Array.from(value);
|
|
126
|
+
}
|
|
127
|
+
return value;
|
|
118
128
|
};
|
|
119
129
|
/**
|
|
120
130
|
*
|
|
@@ -126,7 +136,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
126
136
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
137
|
: nonString;
|
|
128
138
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
140
|
: (value || "");
|
|
131
141
|
};
|
|
132
142
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/Client.md
CHANGED
|
@@ -7,6 +7,7 @@ Teemill Client
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**proEnabled** | **boolean** | Whether the client has a Teemill Pro subscription | [default to undefined]
|
|
10
|
+
**paymentInterval** | [**PaymentInterval**](PaymentInterval.md) | | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -15,6 +16,7 @@ import { Client } from '@teemill/teemill-clients';
|
|
|
15
16
|
|
|
16
17
|
const instance: Client = {
|
|
17
18
|
proEnabled,
|
|
19
|
+
paymentInterval,
|
|
18
20
|
};
|
|
19
21
|
```
|
|
20
22
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# PaymentInterval
|
|
2
|
+
|
|
3
|
+
How often the client is paid their royalties. `daily` pays out every day, `monthly` pays out once a month.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Daily` (value: `'daily'`)
|
|
8
|
+
|
|
9
|
+
* `Monthly` (value: `'monthly'`)
|
|
10
|
+
|
|
11
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**enablePro** | **boolean** | Whether to enable Teemill Pro for the client | [optional] [default to false]
|
|
9
|
+
**paymentInterval** | [**PaymentInterval**](PaymentInterval.md) | | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { UpdateClientRequest } from '@teemill/teemill-clients';
|
|
|
14
15
|
|
|
15
16
|
const instance: UpdateClientRequest = {
|
|
16
17
|
enablePro,
|
|
18
|
+
paymentInterval,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/git_push.sh
CHANGED
|
@@ -8,24 +8,24 @@ git_repo_id=$2
|
|
|
8
8
|
release_note=$3
|
|
9
9
|
git_host=$4
|
|
10
10
|
|
|
11
|
-
if [ "$git_host"
|
|
11
|
+
if [ -z "${git_host}" ]; then
|
|
12
12
|
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
|
-
if [ "$git_user_id"
|
|
16
|
+
if [ -z "${git_user_id}" ]; then
|
|
17
17
|
git_user_id="Teemill"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
if [ "$git_repo_id"
|
|
21
|
+
if [ -z "${git_repo_id}" ]; then
|
|
22
22
|
git_repo_id="public-api"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
|
-
if [ "$release_note"
|
|
26
|
+
if [ -z "${release_note}" ]; then
|
|
27
27
|
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
# Initialize the local directory as a Git repository
|
|
@@ -35,19 +35,16 @@ git init
|
|
|
35
35
|
git add .
|
|
36
36
|
|
|
37
37
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
38
|
+
git commit -m "${release_note}"
|
|
39
39
|
|
|
40
40
|
# Sets the new remote
|
|
41
|
-
|
|
42
|
-
if [ "$
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
41
|
+
if [ -z "$(git remote)" ]; then # git remote not defined
|
|
42
|
+
if [ -z "${GIT_TOKEN:-}" ]; then
|
|
43
|
+
echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
|
|
44
|
+
git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
47
45
|
else
|
|
48
|
-
git remote add origin https://${git_user_id}
|
|
46
|
+
git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
49
47
|
fi
|
|
50
|
-
|
|
51
48
|
fi
|
|
52
49
|
|
|
53
50
|
git pull origin master
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/teemill-clients",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "OpenAPI client for @teemill/teemill-clients",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"axios": "
|
|
27
|
+
"axios": "1.18.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "12.11.5 - 12.20.42",
|