@teemill/projects 1.23.2 → 1.24.1
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/README.md +2 -2
- package/api.ts +327 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +191 -1
- package/dist/api.js +219 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +191 -1
- package/dist/esm/api.js +219 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- 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/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.24.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,6 +32,44 @@ export interface ApiError {
|
|
|
32
32
|
*/
|
|
33
33
|
'message': string;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface Auth
|
|
39
|
+
*/
|
|
40
|
+
export interface Auth {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Auth
|
|
45
|
+
*/
|
|
46
|
+
'id'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Auth
|
|
51
|
+
*/
|
|
52
|
+
'projectId'?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Auth
|
|
57
|
+
*/
|
|
58
|
+
'token'?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @interface AuthResponse
|
|
64
|
+
*/
|
|
65
|
+
export interface AuthResponse {
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<Auth>}
|
|
69
|
+
* @memberof AuthResponse
|
|
70
|
+
*/
|
|
71
|
+
'auth'?: Array<Auth>;
|
|
72
|
+
}
|
|
35
73
|
/**
|
|
36
74
|
*
|
|
37
75
|
* @export
|
|
@@ -232,6 +270,12 @@ export interface Project {
|
|
|
232
270
|
* @memberof Project
|
|
233
271
|
*/
|
|
234
272
|
'currency'?: ProjectCurrency | null;
|
|
273
|
+
/**
|
|
274
|
+
* The public API key for the project which can be used to access basic information about the project such as the store url
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof Project
|
|
277
|
+
*/
|
|
278
|
+
'publicKey'?: string;
|
|
235
279
|
}
|
|
236
280
|
/**
|
|
237
281
|
*
|
|
@@ -566,6 +610,14 @@ export interface UpdateProjectRequest {
|
|
|
566
610
|
* @export
|
|
567
611
|
*/
|
|
568
612
|
export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
613
|
+
/**
|
|
614
|
+
* Create an auth token for the project
|
|
615
|
+
* @summary Create auth token
|
|
616
|
+
* @param {string} project Projects unique identifier
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
createAuth: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
569
621
|
/**
|
|
570
622
|
* Creates an invite for the project
|
|
571
623
|
* @summary Creates an invite
|
|
@@ -583,6 +635,15 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
583
635
|
* @throws {RequiredError}
|
|
584
636
|
*/
|
|
585
637
|
createProject: (createProjectRequest: CreateProjectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
638
|
+
/**
|
|
639
|
+
* Delete an auth token for the project
|
|
640
|
+
* @summary Delete auth token
|
|
641
|
+
* @param {string} project Projects unique identifier
|
|
642
|
+
* @param {string} auth The unique id of the auth token
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
deleteAuth: (project: string, auth: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
586
647
|
/**
|
|
587
648
|
* Deletes an invite to the project
|
|
588
649
|
* @summary Deletes an invite
|
|
@@ -609,6 +670,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
609
670
|
* @throws {RequiredError}
|
|
610
671
|
*/
|
|
611
672
|
deleteUser: (project: string, user: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
673
|
+
/**
|
|
674
|
+
* Lists the auth tokens for the project
|
|
675
|
+
* @summary List auth tokens
|
|
676
|
+
* @param {string} project Projects unique identifier
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
getAuth: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
612
681
|
/**
|
|
613
682
|
* Get an integration
|
|
614
683
|
* @summary Get integration
|
|
@@ -745,6 +814,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
745
814
|
* @export
|
|
746
815
|
*/
|
|
747
816
|
export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
817
|
+
/**
|
|
818
|
+
* Create an auth token for the project
|
|
819
|
+
* @summary Create auth token
|
|
820
|
+
* @param {string} project Projects unique identifier
|
|
821
|
+
* @param {*} [options] Override http request option.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
createAuth(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Auth>>;
|
|
748
825
|
/**
|
|
749
826
|
* Creates an invite for the project
|
|
750
827
|
* @summary Creates an invite
|
|
@@ -762,6 +839,15 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
762
839
|
* @throws {RequiredError}
|
|
763
840
|
*/
|
|
764
841
|
createProject(createProjectRequest: CreateProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Project>>;
|
|
842
|
+
/**
|
|
843
|
+
* Delete an auth token for the project
|
|
844
|
+
* @summary Delete auth token
|
|
845
|
+
* @param {string} project Projects unique identifier
|
|
846
|
+
* @param {string} auth The unique id of the auth token
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
deleteAuth(project: string, auth: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
765
851
|
/**
|
|
766
852
|
* Deletes an invite to the project
|
|
767
853
|
* @summary Deletes an invite
|
|
@@ -788,6 +874,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
788
874
|
* @throws {RequiredError}
|
|
789
875
|
*/
|
|
790
876
|
deleteUser(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
877
|
+
/**
|
|
878
|
+
* Lists the auth tokens for the project
|
|
879
|
+
* @summary List auth tokens
|
|
880
|
+
* @param {string} project Projects unique identifier
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
getAuth(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthResponse>>;
|
|
791
885
|
/**
|
|
792
886
|
* Get an integration
|
|
793
887
|
* @summary Get integration
|
|
@@ -924,6 +1018,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
924
1018
|
* @export
|
|
925
1019
|
*/
|
|
926
1020
|
export declare const ProjectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1021
|
+
/**
|
|
1022
|
+
* Create an auth token for the project
|
|
1023
|
+
* @summary Create auth token
|
|
1024
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
createAuth(requestParameters: ProjectsApiCreateAuthRequest, options?: RawAxiosRequestConfig): AxiosPromise<Auth>;
|
|
927
1029
|
/**
|
|
928
1030
|
* Creates an invite for the project
|
|
929
1031
|
* @summary Creates an invite
|
|
@@ -940,6 +1042,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
940
1042
|
* @throws {RequiredError}
|
|
941
1043
|
*/
|
|
942
1044
|
createProject(requestParameters: ProjectsApiCreateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Delete an auth token for the project
|
|
1047
|
+
* @summary Delete auth token
|
|
1048
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
deleteAuth(requestParameters: ProjectsApiDeleteAuthRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
943
1053
|
/**
|
|
944
1054
|
* Deletes an invite to the project
|
|
945
1055
|
* @summary Deletes an invite
|
|
@@ -964,6 +1074,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
964
1074
|
* @throws {RequiredError}
|
|
965
1075
|
*/
|
|
966
1076
|
deleteUser(requestParameters: ProjectsApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Lists the auth tokens for the project
|
|
1079
|
+
* @summary List auth tokens
|
|
1080
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
getAuth(requestParameters: ProjectsApiGetAuthRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthResponse>;
|
|
967
1085
|
/**
|
|
968
1086
|
* Get an integration
|
|
969
1087
|
* @summary Get integration
|
|
@@ -1077,6 +1195,19 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
1077
1195
|
*/
|
|
1078
1196
|
updateProject(requestParameters: ProjectsApiUpdateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project>;
|
|
1079
1197
|
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Request parameters for createAuth operation in ProjectsApi.
|
|
1200
|
+
* @export
|
|
1201
|
+
* @interface ProjectsApiCreateAuthRequest
|
|
1202
|
+
*/
|
|
1203
|
+
export interface ProjectsApiCreateAuthRequest {
|
|
1204
|
+
/**
|
|
1205
|
+
* Projects unique identifier
|
|
1206
|
+
* @type {string}
|
|
1207
|
+
* @memberof ProjectsApiCreateAuth
|
|
1208
|
+
*/
|
|
1209
|
+
readonly project: string;
|
|
1210
|
+
}
|
|
1080
1211
|
/**
|
|
1081
1212
|
* Request parameters for createInvite operation in ProjectsApi.
|
|
1082
1213
|
* @export
|
|
@@ -1109,6 +1240,25 @@ export interface ProjectsApiCreateProjectRequest {
|
|
|
1109
1240
|
*/
|
|
1110
1241
|
readonly createProjectRequest: CreateProjectRequest;
|
|
1111
1242
|
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Request parameters for deleteAuth operation in ProjectsApi.
|
|
1245
|
+
* @export
|
|
1246
|
+
* @interface ProjectsApiDeleteAuthRequest
|
|
1247
|
+
*/
|
|
1248
|
+
export interface ProjectsApiDeleteAuthRequest {
|
|
1249
|
+
/**
|
|
1250
|
+
* Projects unique identifier
|
|
1251
|
+
* @type {string}
|
|
1252
|
+
* @memberof ProjectsApiDeleteAuth
|
|
1253
|
+
*/
|
|
1254
|
+
readonly project: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* The unique id of the auth token
|
|
1257
|
+
* @type {string}
|
|
1258
|
+
* @memberof ProjectsApiDeleteAuth
|
|
1259
|
+
*/
|
|
1260
|
+
readonly auth: string;
|
|
1261
|
+
}
|
|
1112
1262
|
/**
|
|
1113
1263
|
* Request parameters for deleteInvite operation in ProjectsApi.
|
|
1114
1264
|
* @export
|
|
@@ -1160,6 +1310,19 @@ export interface ProjectsApiDeleteUserRequest {
|
|
|
1160
1310
|
*/
|
|
1161
1311
|
readonly user: string;
|
|
1162
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Request parameters for getAuth operation in ProjectsApi.
|
|
1315
|
+
* @export
|
|
1316
|
+
* @interface ProjectsApiGetAuthRequest
|
|
1317
|
+
*/
|
|
1318
|
+
export interface ProjectsApiGetAuthRequest {
|
|
1319
|
+
/**
|
|
1320
|
+
* Projects unique identifier
|
|
1321
|
+
* @type {string}
|
|
1322
|
+
* @memberof ProjectsApiGetAuth
|
|
1323
|
+
*/
|
|
1324
|
+
readonly project: string;
|
|
1325
|
+
}
|
|
1163
1326
|
/**
|
|
1164
1327
|
* Request parameters for getIntegration operation in ProjectsApi.
|
|
1165
1328
|
* @export
|
|
@@ -1457,6 +1620,15 @@ export interface ProjectsApiUpdateProjectRequest {
|
|
|
1457
1620
|
* @extends {BaseAPI}
|
|
1458
1621
|
*/
|
|
1459
1622
|
export declare class ProjectsApi extends BaseAPI {
|
|
1623
|
+
/**
|
|
1624
|
+
* Create an auth token for the project
|
|
1625
|
+
* @summary Create auth token
|
|
1626
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
* @memberof ProjectsApi
|
|
1630
|
+
*/
|
|
1631
|
+
createAuth(requestParameters: ProjectsApiCreateAuthRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Auth, any>>;
|
|
1460
1632
|
/**
|
|
1461
1633
|
* Creates an invite for the project
|
|
1462
1634
|
* @summary Creates an invite
|
|
@@ -1475,6 +1647,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
1475
1647
|
* @memberof ProjectsApi
|
|
1476
1648
|
*/
|
|
1477
1649
|
createProject(requestParameters: ProjectsApiCreateProjectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Project, any>>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Delete an auth token for the project
|
|
1652
|
+
* @summary Delete auth token
|
|
1653
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1654
|
+
* @param {*} [options] Override http request option.
|
|
1655
|
+
* @throws {RequiredError}
|
|
1656
|
+
* @memberof ProjectsApi
|
|
1657
|
+
*/
|
|
1658
|
+
deleteAuth(requestParameters: ProjectsApiDeleteAuthRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1478
1659
|
/**
|
|
1479
1660
|
* Deletes an invite to the project
|
|
1480
1661
|
* @summary Deletes an invite
|
|
@@ -1502,6 +1683,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
1502
1683
|
* @memberof ProjectsApi
|
|
1503
1684
|
*/
|
|
1504
1685
|
deleteUser(requestParameters: ProjectsApiDeleteUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1686
|
+
/**
|
|
1687
|
+
* Lists the auth tokens for the project
|
|
1688
|
+
* @summary List auth tokens
|
|
1689
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1690
|
+
* @param {*} [options] Override http request option.
|
|
1691
|
+
* @throws {RequiredError}
|
|
1692
|
+
* @memberof ProjectsApi
|
|
1693
|
+
*/
|
|
1694
|
+
getAuth(requestParameters: ProjectsApiGetAuthRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthResponse, any>>;
|
|
1505
1695
|
/**
|
|
1506
1696
|
* Get an integration
|
|
1507
1697
|
* @summary Get integration
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.24.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,6 +49,40 @@ export const TemplateCode = {
|
|
|
49
49
|
*/
|
|
50
50
|
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
51
51
|
return {
|
|
52
|
+
/**
|
|
53
|
+
* Create an auth token for the project
|
|
54
|
+
* @summary Create auth token
|
|
55
|
+
* @param {string} project Projects unique identifier
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
createAuth: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
60
|
+
// verify required parameter 'project' is not null or undefined
|
|
61
|
+
assertParamExists('createAuth', 'project', project);
|
|
62
|
+
const localVarPath = `/v1/projects/{project}/auth`
|
|
63
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
64
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
66
|
+
let baseOptions;
|
|
67
|
+
if (configuration) {
|
|
68
|
+
baseOptions = configuration.baseOptions;
|
|
69
|
+
}
|
|
70
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
71
|
+
const localVarHeaderParameter = {};
|
|
72
|
+
const localVarQueryParameter = {};
|
|
73
|
+
// authentication session-oauth required
|
|
74
|
+
// oauth required
|
|
75
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
76
|
+
// authentication api-key required
|
|
77
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
}),
|
|
52
86
|
/**
|
|
53
87
|
* Creates an invite for the project
|
|
54
88
|
* @summary Creates an invite
|
|
@@ -123,6 +157,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
123
157
|
options: localVarRequestOptions,
|
|
124
158
|
};
|
|
125
159
|
}),
|
|
160
|
+
/**
|
|
161
|
+
* Delete an auth token for the project
|
|
162
|
+
* @summary Delete auth token
|
|
163
|
+
* @param {string} project Projects unique identifier
|
|
164
|
+
* @param {string} auth The unique id of the auth token
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
deleteAuth: (project_1, auth_1, ...args_1) => __awaiter(this, [project_1, auth_1, ...args_1], void 0, function* (project, auth, options = {}) {
|
|
169
|
+
// verify required parameter 'project' is not null or undefined
|
|
170
|
+
assertParamExists('deleteAuth', 'project', project);
|
|
171
|
+
// verify required parameter 'auth' is not null or undefined
|
|
172
|
+
assertParamExists('deleteAuth', 'auth', auth);
|
|
173
|
+
const localVarPath = `/v1/projects/{project}/auth/{auth}`
|
|
174
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
175
|
+
.replace(`{${"auth"}}`, encodeURIComponent(String(auth)));
|
|
176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
178
|
+
let baseOptions;
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
184
|
+
const localVarQueryParameter = {};
|
|
185
|
+
// authentication session-oauth required
|
|
186
|
+
// oauth required
|
|
187
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
188
|
+
// authentication api-key required
|
|
189
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
193
|
+
return {
|
|
194
|
+
url: toPathString(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
};
|
|
197
|
+
}),
|
|
126
198
|
/**
|
|
127
199
|
* Deletes an invite to the project
|
|
128
200
|
* @summary Deletes an invite
|
|
@@ -233,6 +305,40 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
233
305
|
options: localVarRequestOptions,
|
|
234
306
|
};
|
|
235
307
|
}),
|
|
308
|
+
/**
|
|
309
|
+
* Lists the auth tokens for the project
|
|
310
|
+
* @summary List auth tokens
|
|
311
|
+
* @param {string} project Projects unique identifier
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
getAuth: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
316
|
+
// verify required parameter 'project' is not null or undefined
|
|
317
|
+
assertParamExists('getAuth', 'project', project);
|
|
318
|
+
const localVarPath = `/v1/projects/{project}/auth`
|
|
319
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
321
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
322
|
+
let baseOptions;
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
}
|
|
326
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
327
|
+
const localVarHeaderParameter = {};
|
|
328
|
+
const localVarQueryParameter = {};
|
|
329
|
+
// authentication session-oauth required
|
|
330
|
+
// oauth required
|
|
331
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
332
|
+
// authentication api-key required
|
|
333
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
334
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
335
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
337
|
+
return {
|
|
338
|
+
url: toPathString(localVarUrlObj),
|
|
339
|
+
options: localVarRequestOptions,
|
|
340
|
+
};
|
|
341
|
+
}),
|
|
236
342
|
/**
|
|
237
343
|
* Get an integration
|
|
238
344
|
* @summary Get integration
|
|
@@ -794,6 +900,22 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
794
900
|
export const ProjectsApiFp = function (configuration) {
|
|
795
901
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
|
796
902
|
return {
|
|
903
|
+
/**
|
|
904
|
+
* Create an auth token for the project
|
|
905
|
+
* @summary Create auth token
|
|
906
|
+
* @param {string} project Projects unique identifier
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
createAuth(project, options) {
|
|
911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
912
|
+
var _a, _b, _c;
|
|
913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAuth(project, options);
|
|
914
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
915
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.createAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
916
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
917
|
+
});
|
|
918
|
+
},
|
|
797
919
|
/**
|
|
798
920
|
* Creates an invite for the project
|
|
799
921
|
* @summary Creates an invite
|
|
@@ -827,6 +949,23 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
827
949
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
828
950
|
});
|
|
829
951
|
},
|
|
952
|
+
/**
|
|
953
|
+
* Delete an auth token for the project
|
|
954
|
+
* @summary Delete auth token
|
|
955
|
+
* @param {string} project Projects unique identifier
|
|
956
|
+
* @param {string} auth The unique id of the auth token
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
deleteAuth(project, auth, options) {
|
|
961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
962
|
+
var _a, _b, _c;
|
|
963
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAuth(project, auth, options);
|
|
964
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
965
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.deleteAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
966
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
967
|
+
});
|
|
968
|
+
},
|
|
830
969
|
/**
|
|
831
970
|
* Deletes an invite to the project
|
|
832
971
|
* @summary Deletes an invite
|
|
@@ -877,6 +1016,22 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
877
1016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
878
1017
|
});
|
|
879
1018
|
},
|
|
1019
|
+
/**
|
|
1020
|
+
* Lists the auth tokens for the project
|
|
1021
|
+
* @summary List auth tokens
|
|
1022
|
+
* @param {string} project Projects unique identifier
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
getAuth(project, options) {
|
|
1027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1028
|
+
var _a, _b, _c;
|
|
1029
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuth(project, options);
|
|
1030
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1031
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.getAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1032
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1033
|
+
});
|
|
1034
|
+
},
|
|
880
1035
|
/**
|
|
881
1036
|
* Get an integration
|
|
882
1037
|
* @summary Get integration
|
|
@@ -1128,6 +1283,16 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
1128
1283
|
export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
1129
1284
|
const localVarFp = ProjectsApiFp(configuration);
|
|
1130
1285
|
return {
|
|
1286
|
+
/**
|
|
1287
|
+
* Create an auth token for the project
|
|
1288
|
+
* @summary Create auth token
|
|
1289
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
createAuth(requestParameters, options) {
|
|
1294
|
+
return localVarFp.createAuth(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1295
|
+
},
|
|
1131
1296
|
/**
|
|
1132
1297
|
* Creates an invite for the project
|
|
1133
1298
|
* @summary Creates an invite
|
|
@@ -1148,6 +1313,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1148
1313
|
createProject(requestParameters, options) {
|
|
1149
1314
|
return localVarFp.createProject(requestParameters.createProjectRequest, options).then((request) => request(axios, basePath));
|
|
1150
1315
|
},
|
|
1316
|
+
/**
|
|
1317
|
+
* Delete an auth token for the project
|
|
1318
|
+
* @summary Delete auth token
|
|
1319
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
*/
|
|
1323
|
+
deleteAuth(requestParameters, options) {
|
|
1324
|
+
return localVarFp.deleteAuth(requestParameters.project, requestParameters.auth, options).then((request) => request(axios, basePath));
|
|
1325
|
+
},
|
|
1151
1326
|
/**
|
|
1152
1327
|
* Deletes an invite to the project
|
|
1153
1328
|
* @summary Deletes an invite
|
|
@@ -1178,6 +1353,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1178
1353
|
deleteUser(requestParameters, options) {
|
|
1179
1354
|
return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
1180
1355
|
},
|
|
1356
|
+
/**
|
|
1357
|
+
* Lists the auth tokens for the project
|
|
1358
|
+
* @summary List auth tokens
|
|
1359
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
getAuth(requestParameters, options) {
|
|
1364
|
+
return localVarFp.getAuth(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1365
|
+
},
|
|
1181
1366
|
/**
|
|
1182
1367
|
* Get an integration
|
|
1183
1368
|
* @summary Get integration
|
|
@@ -1327,6 +1512,17 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1327
1512
|
* @extends {BaseAPI}
|
|
1328
1513
|
*/
|
|
1329
1514
|
export class ProjectsApi extends BaseAPI {
|
|
1515
|
+
/**
|
|
1516
|
+
* Create an auth token for the project
|
|
1517
|
+
* @summary Create auth token
|
|
1518
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
* @memberof ProjectsApi
|
|
1522
|
+
*/
|
|
1523
|
+
createAuth(requestParameters, options) {
|
|
1524
|
+
return ProjectsApiFp(this.configuration).createAuth(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1525
|
+
}
|
|
1330
1526
|
/**
|
|
1331
1527
|
* Creates an invite for the project
|
|
1332
1528
|
* @summary Creates an invite
|
|
@@ -1349,6 +1545,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
1349
1545
|
createProject(requestParameters, options) {
|
|
1350
1546
|
return ProjectsApiFp(this.configuration).createProject(requestParameters.createProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1351
1547
|
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Delete an auth token for the project
|
|
1550
|
+
* @summary Delete auth token
|
|
1551
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1552
|
+
* @param {*} [options] Override http request option.
|
|
1553
|
+
* @throws {RequiredError}
|
|
1554
|
+
* @memberof ProjectsApi
|
|
1555
|
+
*/
|
|
1556
|
+
deleteAuth(requestParameters, options) {
|
|
1557
|
+
return ProjectsApiFp(this.configuration).deleteAuth(requestParameters.project, requestParameters.auth, options).then((request) => request(this.axios, this.basePath));
|
|
1558
|
+
}
|
|
1352
1559
|
/**
|
|
1353
1560
|
* Deletes an invite to the project
|
|
1354
1561
|
* @summary Deletes an invite
|
|
@@ -1382,6 +1589,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
1382
1589
|
deleteUser(requestParameters, options) {
|
|
1383
1590
|
return ProjectsApiFp(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
1384
1591
|
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Lists the auth tokens for the project
|
|
1594
|
+
* @summary List auth tokens
|
|
1595
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1596
|
+
* @param {*} [options] Override http request option.
|
|
1597
|
+
* @throws {RequiredError}
|
|
1598
|
+
* @memberof ProjectsApi
|
|
1599
|
+
*/
|
|
1600
|
+
getAuth(requestParameters, options) {
|
|
1601
|
+
return ProjectsApiFp(this.configuration).getAuth(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1602
|
+
}
|
|
1385
1603
|
/**
|
|
1386
1604
|
* Get an integration
|
|
1387
1605
|
* @summary Get integration
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.24.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.24.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.24.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.24.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.24.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.24.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|