@teemill/projects 1.15.0 → 1.17.0
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 +6 -23
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +2262 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1400 -0
- package/dist/api.js +1374 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1400 -0
- package/dist/esm/api.js +1367 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProjectsApi.d.ts +0 -255
- package/dist/apis/ProjectsApi.js +0 -748
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/esm/apis/ProjectsApi.d.ts +0 -255
- package/dist/esm/apis/ProjectsApi.js +0 -744
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -3
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/CreateInviteRequest.d.ts +0 -31
- package/dist/esm/models/CreateInviteRequest.js +0 -40
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -43
- package/dist/esm/models/CreateProjectRequest.js +0 -44
- package/dist/esm/models/CreateUserRequest.d.ts +0 -56
- package/dist/esm/models/CreateUserRequest.js +0 -55
- package/dist/esm/models/CreateUserRequestAvatar.d.ts +0 -31
- package/dist/esm/models/CreateUserRequestAvatar.js +0 -43
- package/dist/esm/models/InstallTemplateRequest.d.ts +0 -31
- package/dist/esm/models/InstallTemplateRequest.js +0 -38
- package/dist/esm/models/Integration.d.ts +0 -49
- package/dist/esm/models/Integration.js +0 -47
- package/dist/esm/models/IntegrationInfo.d.ts +0 -49
- package/dist/esm/models/IntegrationInfo.js +0 -52
- package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationsResponse.js +0 -41
- package/dist/esm/models/LegacyProjectLogo.d.ts +0 -37
- package/dist/esm/models/LegacyProjectLogo.js +0 -44
- package/dist/esm/models/Project.d.ts +0 -65
- package/dist/esm/models/Project.js +0 -59
- package/dist/esm/models/ProjectInvite.d.ts +0 -56
- package/dist/esm/models/ProjectInvite.js +0 -57
- package/dist/esm/models/ProjectInvites.d.ts +0 -38
- package/dist/esm/models/ProjectInvites.js +0 -45
- package/dist/esm/models/ProjectLogo.d.ts +0 -39
- package/dist/esm/models/ProjectLogo.js +0 -44
- package/dist/esm/models/ProjectManager.d.ts +0 -44
- package/dist/esm/models/ProjectManager.js +0 -49
- package/dist/esm/models/ProjectUser.d.ts +0 -83
- package/dist/esm/models/ProjectUser.js +0 -75
- package/dist/esm/models/ProjectUserAvatar.d.ts +0 -31
- package/dist/esm/models/ProjectUserAvatar.js +0 -38
- package/dist/esm/models/ProjectUsers.d.ts +0 -38
- package/dist/esm/models/ProjectUsers.js +0 -45
- package/dist/esm/models/ProjectsResponse.d.ts +0 -32
- package/dist/esm/models/ProjectsResponse.js +0 -41
- package/dist/esm/models/SetupIntegrationRequest.d.ts +0 -31
- package/dist/esm/models/SetupIntegrationRequest.js +0 -40
- package/dist/esm/models/UpdateProjectRequest.d.ts +0 -38
- package/dist/esm/models/UpdateProjectRequest.js +0 -41
- package/dist/esm/models/UpdateUserRequest.d.ts +0 -56
- package/dist/esm/models/UpdateUserRequest.js +0 -52
- package/dist/esm/models/UpdateUserRequestAvatar.d.ts +0 -31
- package/dist/esm/models/UpdateUserRequestAvatar.js +0 -43
- package/dist/esm/models/index.d.ts +0 -18
- package/dist/esm/models/index.js +0 -20
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/CreateInviteRequest.d.ts +0 -31
- package/dist/models/CreateInviteRequest.js +0 -47
- package/dist/models/CreateProjectRequest.d.ts +0 -43
- package/dist/models/CreateProjectRequest.js +0 -51
- package/dist/models/CreateUserRequest.d.ts +0 -56
- package/dist/models/CreateUserRequest.js +0 -62
- package/dist/models/CreateUserRequestAvatar.d.ts +0 -31
- package/dist/models/CreateUserRequestAvatar.js +0 -50
- package/dist/models/InstallTemplateRequest.d.ts +0 -31
- package/dist/models/InstallTemplateRequest.js +0 -45
- package/dist/models/Integration.d.ts +0 -49
- package/dist/models/Integration.js +0 -54
- package/dist/models/IntegrationInfo.d.ts +0 -49
- package/dist/models/IntegrationInfo.js +0 -59
- package/dist/models/IntegrationsResponse.d.ts +0 -32
- package/dist/models/IntegrationsResponse.js +0 -48
- package/dist/models/LegacyProjectLogo.d.ts +0 -37
- package/dist/models/LegacyProjectLogo.js +0 -51
- package/dist/models/Project.d.ts +0 -65
- package/dist/models/Project.js +0 -66
- package/dist/models/ProjectInvite.d.ts +0 -56
- package/dist/models/ProjectInvite.js +0 -64
- package/dist/models/ProjectInvites.d.ts +0 -38
- package/dist/models/ProjectInvites.js +0 -52
- package/dist/models/ProjectLogo.d.ts +0 -39
- package/dist/models/ProjectLogo.js +0 -51
- package/dist/models/ProjectManager.d.ts +0 -44
- package/dist/models/ProjectManager.js +0 -56
- package/dist/models/ProjectUser.d.ts +0 -83
- package/dist/models/ProjectUser.js +0 -82
- package/dist/models/ProjectUserAvatar.d.ts +0 -31
- package/dist/models/ProjectUserAvatar.js +0 -45
- package/dist/models/ProjectUsers.d.ts +0 -38
- package/dist/models/ProjectUsers.js +0 -52
- package/dist/models/ProjectsResponse.d.ts +0 -32
- package/dist/models/ProjectsResponse.js +0 -48
- package/dist/models/SetupIntegrationRequest.d.ts +0 -31
- package/dist/models/SetupIntegrationRequest.js +0 -47
- package/dist/models/UpdateProjectRequest.d.ts +0 -38
- package/dist/models/UpdateProjectRequest.js +0 -48
- package/dist/models/UpdateUserRequest.d.ts +0 -56
- package/dist/models/UpdateUserRequest.js +0 -59
- package/dist/models/UpdateUserRequestAvatar.d.ts +0 -31
- package/dist/models/UpdateUserRequestAvatar.js +0 -50
- package/dist/models/index.d.ts +0 -18
- package/dist/models/index.js +0 -36
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProjectsApi.ts +0 -1085
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/CreateInviteRequest.ts +0 -61
- package/src/models/CreateProjectRequest.ts +0 -77
- package/src/models/CreateUserRequest.ts +0 -107
- package/src/models/CreateUserRequestAvatar.ts +0 -65
- package/src/models/InstallTemplateRequest.ts +0 -60
- package/src/models/Integration.ts +0 -85
- package/src/models/IntegrationInfo.ts +0 -93
- package/src/models/IntegrationsResponse.ts +0 -68
- package/src/models/LegacyProjectLogo.ts +0 -70
- package/src/models/Project.ts +0 -124
- package/src/models/ProjectInvite.ts +0 -104
- package/src/models/ProjectInvites.ts +0 -77
- package/src/models/ProjectLogo.ts +0 -70
- package/src/models/ProjectManager.ts +0 -86
- package/src/models/ProjectUser.ts +0 -142
- package/src/models/ProjectUserAvatar.ts +0 -60
- package/src/models/ProjectUsers.ts +0 -77
- package/src/models/ProjectsResponse.ts +0 -68
- package/src/models/SetupIntegrationRequest.ts +0 -61
- package/src/models/UpdateProjectRequest.ts +0 -75
- package/src/models/UpdateUserRequest.ts +0 -104
- package/src/models/UpdateUserRequestAvatar.ts +0 -65
- package/src/models/index.ts +0 -20
- package/src/runtime.ts +0 -441
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.17.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
package/dist/esm/base.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.17.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import globalAxios from 'axios';
|
|
15
|
+
export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const COLLECTION_FORMATS = {
|
|
21
|
+
csv: ",",
|
|
22
|
+
ssv: " ",
|
|
23
|
+
tsv: "\t",
|
|
24
|
+
pipes: "|",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @class BaseAPI
|
|
30
|
+
*/
|
|
31
|
+
export class BaseAPI {
|
|
32
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
* @class RequiredError
|
|
47
|
+
* @extends {Error}
|
|
48
|
+
*/
|
|
49
|
+
export class RequiredError extends Error {
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const operationServerMap = {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.17.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.17.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import { RequiredError } from "./base";
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const DUMMY_BASE_URL = 'https://example.com';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
35
|
+
if (paramValue === null || paramValue === undefined) {
|
|
36
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
if (configuration && configuration.apiKey) {
|
|
46
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
47
|
+
? yield configuration.apiKey(keyParamName)
|
|
48
|
+
: yield configuration.apiKey;
|
|
49
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
export const setBasicAuthToObject = function (object, configuration) {
|
|
58
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
59
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
70
|
+
? yield configuration.accessToken()
|
|
71
|
+
: yield configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (configuration && configuration.accessToken) {
|
|
83
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
84
|
+
? yield configuration.accessToken(name, scopes)
|
|
85
|
+
: yield configuration.accessToken;
|
|
86
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
|
+
if (parameter == null)
|
|
92
|
+
return;
|
|
93
|
+
if (typeof parameter === "object") {
|
|
94
|
+
if (Array.isArray(parameter)) {
|
|
95
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
if (urlSearchParams.has(key)) {
|
|
103
|
+
urlSearchParams.append(key, parameter);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
urlSearchParams.set(key, parameter);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const setSearchParams = function (url, ...objects) {
|
|
115
|
+
const searchParams = new URLSearchParams(url.search);
|
|
116
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
117
|
+
url.search = decodeURIComponent(searchParams.toString());
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
124
|
+
const nonString = typeof value !== 'string';
|
|
125
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
|
+
: nonString;
|
|
128
|
+
return needsSerialization
|
|
129
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
+
: (value || "");
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
export const toPathString = function (url) {
|
|
137
|
+
return url.pathname + url.search + url.hash;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
|
+
var _a;
|
|
146
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
147
|
+
return axios.request(axiosRequestArgs);
|
|
148
|
+
};
|
|
149
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.17.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
19
|
+
baseOptions?: any;
|
|
20
|
+
formDataCtor?: new () => any;
|
|
21
|
+
}
|
|
22
|
+
export declare class Configuration {
|
|
23
|
+
/**
|
|
24
|
+
* parameter for apiKey security
|
|
25
|
+
* @param name security name
|
|
26
|
+
* @memberof Configuration
|
|
27
|
+
*/
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
/**
|
|
30
|
+
* parameter for basic security
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Configuration
|
|
34
|
+
*/
|
|
35
|
+
username?: string;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for basic security
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Configuration
|
|
41
|
+
*/
|
|
42
|
+
password?: string;
|
|
43
|
+
/**
|
|
44
|
+
* parameter for oauth2 security
|
|
45
|
+
* @param name security name
|
|
46
|
+
* @param scopes oauth2 scope
|
|
47
|
+
* @memberof Configuration
|
|
48
|
+
*/
|
|
49
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
|
+
/**
|
|
51
|
+
* override base path
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Configuration
|
|
55
|
+
*/
|
|
56
|
+
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* base options for axios calls
|
|
66
|
+
*
|
|
67
|
+
* @type {any}
|
|
68
|
+
* @memberof Configuration
|
|
69
|
+
*/
|
|
70
|
+
baseOptions?: any;
|
|
71
|
+
/**
|
|
72
|
+
* The FormData constructor that will be used to create multipart form data
|
|
73
|
+
* requests. You can inject this here so that execution environments that
|
|
74
|
+
* do not support the FormData class can still run the generated client.
|
|
75
|
+
*
|
|
76
|
+
* @type {new () => FormData}
|
|
77
|
+
*/
|
|
78
|
+
formDataCtor?: new () => any;
|
|
79
|
+
constructor(param?: ConfigurationParameters);
|
|
80
|
+
/**
|
|
81
|
+
* Check if the given MIME is a JSON MIME.
|
|
82
|
+
* JSON MIME examples:
|
|
83
|
+
* application/json
|
|
84
|
+
* application/json; charset=UTF8
|
|
85
|
+
* APPLICATION/JSON
|
|
86
|
+
* application/vnd.company+json
|
|
87
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
88
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
89
|
+
*/
|
|
90
|
+
isJsonMime(mime: string): boolean;
|
|
91
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.17.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export class Configuration {
|
|
15
|
+
constructor(param = {}) {
|
|
16
|
+
this.apiKey = param.apiKey;
|
|
17
|
+
this.username = param.username;
|
|
18
|
+
this.password = param.password;
|
|
19
|
+
this.accessToken = param.accessToken;
|
|
20
|
+
this.basePath = param.basePath;
|
|
21
|
+
this.serverIndex = param.serverIndex;
|
|
22
|
+
this.baseOptions = param.baseOptions;
|
|
23
|
+
this.formDataCtor = param.formDataCtor;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if the given MIME is a JSON MIME.
|
|
27
|
+
* JSON MIME examples:
|
|
28
|
+
* application/json
|
|
29
|
+
* application/json; charset=UTF8
|
|
30
|
+
* APPLICATION/JSON
|
|
31
|
+
* application/vnd.company+json
|
|
32
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
33
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
34
|
+
*/
|
|
35
|
+
isJsonMime(mime) {
|
|
36
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
37
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.17.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.17.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export * from "./api";
|
|
15
|
+
export * from "./configuration";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.17.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Projects API
|
|
6
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.17.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
2
15
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
16
|
if (k2 === undefined) k2 = k;
|
|
4
17
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,8 +27,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
28
|
};
|
|
16
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__exportStar(require("./runtime"), exports);
|
|
20
|
-
__exportStar(require("./apis/index"), exports);
|
|
21
|
-
__exportStar(require("./models/index"), exports);
|
|
30
|
+
__exportStar(require("./api"), exports);
|
|
31
|
+
__exportStar(require("./configuration"), exports);
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Teemill"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="public-api"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
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
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.17.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/projects",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "OpenAPI client for @teemill/projects",
|
|
5
|
-
"author": "OpenAPI-Generator",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/Teemill/public-api.git"
|
|
9
9
|
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"axios",
|
|
12
|
+
"typescript",
|
|
13
|
+
"openapi-client",
|
|
14
|
+
"openapi-generator",
|
|
15
|
+
"@teemill/projects"
|
|
16
|
+
],
|
|
17
|
+
"license": "Unlicense",
|
|
10
18
|
"main": "./dist/index.js",
|
|
11
19
|
"typings": "./dist/index.d.ts",
|
|
12
20
|
"module": "./dist/esm/index.js",
|
|
@@ -15,7 +23,11 @@
|
|
|
15
23
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
16
24
|
"prepare": "npm run build"
|
|
17
25
|
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.6.1"
|
|
28
|
+
},
|
|
18
29
|
"devDependencies": {
|
|
19
|
-
"
|
|
30
|
+
"@types/node": "12.11.5 - 12.20.42",
|
|
31
|
+
"typescript": "^4.0 || ^5.0"
|
|
20
32
|
}
|
|
21
33
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"declaration": true,
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "ES6",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"
|
|
6
|
+
"noImplicitAny": true,
|
|
7
7
|
"outDir": "dist",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"dom"
|
|
11
|
-
],
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"moduleResolution": "node",
|
|
12
10
|
"typeRoots": [
|
|
13
11
|
"node_modules/@types"
|
|
14
12
|
]
|