@teemill/projects 1.23.2 → 1.24.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/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/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.0
|
|
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/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.24.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -52,6 +52,40 @@ exports.TemplateCode = {
|
|
|
52
52
|
*/
|
|
53
53
|
const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
54
54
|
return {
|
|
55
|
+
/**
|
|
56
|
+
* Create an auth token for the project
|
|
57
|
+
* @summary Create auth token
|
|
58
|
+
* @param {string} project Projects unique identifier
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
createAuth: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
63
|
+
// verify required parameter 'project' is not null or undefined
|
|
64
|
+
(0, common_1.assertParamExists)('createAuth', 'project', project);
|
|
65
|
+
const localVarPath = `/v1/projects/{project}/auth`
|
|
66
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
67
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
69
|
+
let baseOptions;
|
|
70
|
+
if (configuration) {
|
|
71
|
+
baseOptions = configuration.baseOptions;
|
|
72
|
+
}
|
|
73
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
74
|
+
const localVarHeaderParameter = {};
|
|
75
|
+
const localVarQueryParameter = {};
|
|
76
|
+
// authentication session-oauth required
|
|
77
|
+
// oauth required
|
|
78
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
79
|
+
// authentication api-key required
|
|
80
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
81
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
84
|
+
return {
|
|
85
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
}),
|
|
55
89
|
/**
|
|
56
90
|
* Creates an invite for the project
|
|
57
91
|
* @summary Creates an invite
|
|
@@ -126,6 +160,44 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
126
160
|
options: localVarRequestOptions,
|
|
127
161
|
};
|
|
128
162
|
}),
|
|
163
|
+
/**
|
|
164
|
+
* Delete an auth token for the project
|
|
165
|
+
* @summary Delete auth token
|
|
166
|
+
* @param {string} project Projects unique identifier
|
|
167
|
+
* @param {string} auth The unique id of the auth token
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
deleteAuth: (project_1, auth_1, ...args_1) => __awaiter(this, [project_1, auth_1, ...args_1], void 0, function* (project, auth, options = {}) {
|
|
172
|
+
// verify required parameter 'project' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('deleteAuth', 'project', project);
|
|
174
|
+
// verify required parameter 'auth' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('deleteAuth', 'auth', auth);
|
|
176
|
+
const localVarPath = `/v1/projects/{project}/auth/{auth}`
|
|
177
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
178
|
+
.replace(`{${"auth"}}`, encodeURIComponent(String(auth)));
|
|
179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
|
+
let baseOptions;
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
186
|
+
const localVarHeaderParameter = {};
|
|
187
|
+
const localVarQueryParameter = {};
|
|
188
|
+
// authentication session-oauth required
|
|
189
|
+
// oauth required
|
|
190
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
191
|
+
// authentication api-key required
|
|
192
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
+
return {
|
|
197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
198
|
+
options: localVarRequestOptions,
|
|
199
|
+
};
|
|
200
|
+
}),
|
|
129
201
|
/**
|
|
130
202
|
* Deletes an invite to the project
|
|
131
203
|
* @summary Deletes an invite
|
|
@@ -236,6 +308,40 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
236
308
|
options: localVarRequestOptions,
|
|
237
309
|
};
|
|
238
310
|
}),
|
|
311
|
+
/**
|
|
312
|
+
* Lists the auth tokens for the project
|
|
313
|
+
* @summary List auth tokens
|
|
314
|
+
* @param {string} project Projects unique identifier
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
getAuth: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
319
|
+
// verify required parameter 'project' is not null or undefined
|
|
320
|
+
(0, common_1.assertParamExists)('getAuth', 'project', project);
|
|
321
|
+
const localVarPath = `/v1/projects/{project}/auth`
|
|
322
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
324
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
325
|
+
let baseOptions;
|
|
326
|
+
if (configuration) {
|
|
327
|
+
baseOptions = configuration.baseOptions;
|
|
328
|
+
}
|
|
329
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
330
|
+
const localVarHeaderParameter = {};
|
|
331
|
+
const localVarQueryParameter = {};
|
|
332
|
+
// authentication session-oauth required
|
|
333
|
+
// oauth required
|
|
334
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
335
|
+
// authentication api-key required
|
|
336
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
337
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
+
return {
|
|
341
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions,
|
|
343
|
+
};
|
|
344
|
+
}),
|
|
239
345
|
/**
|
|
240
346
|
* Get an integration
|
|
241
347
|
* @summary Get integration
|
|
@@ -798,6 +904,22 @@ exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
|
|
|
798
904
|
const ProjectsApiFp = function (configuration) {
|
|
799
905
|
const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
|
|
800
906
|
return {
|
|
907
|
+
/**
|
|
908
|
+
* Create an auth token for the project
|
|
909
|
+
* @summary Create auth token
|
|
910
|
+
* @param {string} project Projects unique identifier
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
createAuth(project, options) {
|
|
915
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
916
|
+
var _a, _b, _c;
|
|
917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAuth(project, options);
|
|
918
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
919
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.createAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
920
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
921
|
+
});
|
|
922
|
+
},
|
|
801
923
|
/**
|
|
802
924
|
* Creates an invite for the project
|
|
803
925
|
* @summary Creates an invite
|
|
@@ -831,6 +953,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
831
953
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
832
954
|
});
|
|
833
955
|
},
|
|
956
|
+
/**
|
|
957
|
+
* Delete an auth token for the project
|
|
958
|
+
* @summary Delete auth token
|
|
959
|
+
* @param {string} project Projects unique identifier
|
|
960
|
+
* @param {string} auth The unique id of the auth token
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
deleteAuth(project, auth, options) {
|
|
965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
966
|
+
var _a, _b, _c;
|
|
967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAuth(project, auth, options);
|
|
968
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
969
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.deleteAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
970
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
971
|
+
});
|
|
972
|
+
},
|
|
834
973
|
/**
|
|
835
974
|
* Deletes an invite to the project
|
|
836
975
|
* @summary Deletes an invite
|
|
@@ -881,6 +1020,22 @@ const ProjectsApiFp = function (configuration) {
|
|
|
881
1020
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
882
1021
|
});
|
|
883
1022
|
},
|
|
1023
|
+
/**
|
|
1024
|
+
* Lists the auth tokens for the project
|
|
1025
|
+
* @summary List auth tokens
|
|
1026
|
+
* @param {string} project Projects unique identifier
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
*/
|
|
1030
|
+
getAuth(project, options) {
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
var _a, _b, _c;
|
|
1033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuth(project, options);
|
|
1034
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1035
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1036
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1037
|
+
});
|
|
1038
|
+
},
|
|
884
1039
|
/**
|
|
885
1040
|
* Get an integration
|
|
886
1041
|
* @summary Get integration
|
|
@@ -1133,6 +1288,16 @@ exports.ProjectsApiFp = ProjectsApiFp;
|
|
|
1133
1288
|
const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
1134
1289
|
const localVarFp = (0, exports.ProjectsApiFp)(configuration);
|
|
1135
1290
|
return {
|
|
1291
|
+
/**
|
|
1292
|
+
* Create an auth token for the project
|
|
1293
|
+
* @summary Create auth token
|
|
1294
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
createAuth(requestParameters, options) {
|
|
1299
|
+
return localVarFp.createAuth(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1300
|
+
},
|
|
1136
1301
|
/**
|
|
1137
1302
|
* Creates an invite for the project
|
|
1138
1303
|
* @summary Creates an invite
|
|
@@ -1153,6 +1318,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1153
1318
|
createProject(requestParameters, options) {
|
|
1154
1319
|
return localVarFp.createProject(requestParameters.createProjectRequest, options).then((request) => request(axios, basePath));
|
|
1155
1320
|
},
|
|
1321
|
+
/**
|
|
1322
|
+
* Delete an auth token for the project
|
|
1323
|
+
* @summary Delete auth token
|
|
1324
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1325
|
+
* @param {*} [options] Override http request option.
|
|
1326
|
+
* @throws {RequiredError}
|
|
1327
|
+
*/
|
|
1328
|
+
deleteAuth(requestParameters, options) {
|
|
1329
|
+
return localVarFp.deleteAuth(requestParameters.project, requestParameters.auth, options).then((request) => request(axios, basePath));
|
|
1330
|
+
},
|
|
1156
1331
|
/**
|
|
1157
1332
|
* Deletes an invite to the project
|
|
1158
1333
|
* @summary Deletes an invite
|
|
@@ -1183,6 +1358,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1183
1358
|
deleteUser(requestParameters, options) {
|
|
1184
1359
|
return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
1185
1360
|
},
|
|
1361
|
+
/**
|
|
1362
|
+
* Lists the auth tokens for the project
|
|
1363
|
+
* @summary List auth tokens
|
|
1364
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
getAuth(requestParameters, options) {
|
|
1369
|
+
return localVarFp.getAuth(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1370
|
+
},
|
|
1186
1371
|
/**
|
|
1187
1372
|
* Get an integration
|
|
1188
1373
|
* @summary Get integration
|
|
@@ -1333,6 +1518,17 @@ exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
|
1333
1518
|
* @extends {BaseAPI}
|
|
1334
1519
|
*/
|
|
1335
1520
|
class ProjectsApi extends base_1.BaseAPI {
|
|
1521
|
+
/**
|
|
1522
|
+
* Create an auth token for the project
|
|
1523
|
+
* @summary Create auth token
|
|
1524
|
+
* @param {ProjectsApiCreateAuthRequest} requestParameters Request parameters.
|
|
1525
|
+
* @param {*} [options] Override http request option.
|
|
1526
|
+
* @throws {RequiredError}
|
|
1527
|
+
* @memberof ProjectsApi
|
|
1528
|
+
*/
|
|
1529
|
+
createAuth(requestParameters, options) {
|
|
1530
|
+
return (0, exports.ProjectsApiFp)(this.configuration).createAuth(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1531
|
+
}
|
|
1336
1532
|
/**
|
|
1337
1533
|
* Creates an invite for the project
|
|
1338
1534
|
* @summary Creates an invite
|
|
@@ -1355,6 +1551,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1355
1551
|
createProject(requestParameters, options) {
|
|
1356
1552
|
return (0, exports.ProjectsApiFp)(this.configuration).createProject(requestParameters.createProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1357
1553
|
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Delete an auth token for the project
|
|
1556
|
+
* @summary Delete auth token
|
|
1557
|
+
* @param {ProjectsApiDeleteAuthRequest} requestParameters Request parameters.
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
* @memberof ProjectsApi
|
|
1561
|
+
*/
|
|
1562
|
+
deleteAuth(requestParameters, options) {
|
|
1563
|
+
return (0, exports.ProjectsApiFp)(this.configuration).deleteAuth(requestParameters.project, requestParameters.auth, options).then((request) => request(this.axios, this.basePath));
|
|
1564
|
+
}
|
|
1358
1565
|
/**
|
|
1359
1566
|
* Deletes an invite to the project
|
|
1360
1567
|
* @summary Deletes an invite
|
|
@@ -1388,6 +1595,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1388
1595
|
deleteUser(requestParameters, options) {
|
|
1389
1596
|
return (0, exports.ProjectsApiFp)(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
1390
1597
|
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Lists the auth tokens for the project
|
|
1600
|
+
* @summary List auth tokens
|
|
1601
|
+
* @param {ProjectsApiGetAuthRequest} requestParameters Request parameters.
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
* @memberof ProjectsApi
|
|
1605
|
+
*/
|
|
1606
|
+
getAuth(requestParameters, options) {
|
|
1607
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getAuth(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1608
|
+
}
|
|
1391
1609
|
/**
|
|
1392
1610
|
* Get an integration
|
|
1393
1611
|
* @summary Get integration
|
package/dist/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.0
|
|
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/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.24.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/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.0
|
|
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/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.24.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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.0
|
|
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/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.24.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|