@argos-ci/api-client 0.1.0 → 0.1.1-alpha.34
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/dist/index.d.ts +95 -19
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,48 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
interface paths {
|
|
6
|
+
"/project": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
get: operations["getAuthProject"];
|
|
14
|
+
put?: never;
|
|
15
|
+
post?: never;
|
|
16
|
+
delete?: never;
|
|
17
|
+
options?: never;
|
|
18
|
+
head?: never;
|
|
19
|
+
patch?: never;
|
|
20
|
+
trace?: never;
|
|
21
|
+
};
|
|
6
22
|
"/project/builds": {
|
|
23
|
+
parameters: {
|
|
24
|
+
query?: never;
|
|
25
|
+
header?: never;
|
|
26
|
+
path?: never;
|
|
27
|
+
cookie?: never;
|
|
28
|
+
};
|
|
7
29
|
get: operations["getAuthProjectBuilds"];
|
|
30
|
+
put?: never;
|
|
31
|
+
post?: never;
|
|
32
|
+
delete?: never;
|
|
33
|
+
options?: never;
|
|
34
|
+
head?: never;
|
|
35
|
+
patch?: never;
|
|
36
|
+
trace?: never;
|
|
8
37
|
};
|
|
9
38
|
}
|
|
10
39
|
interface components {
|
|
11
40
|
schemas: {
|
|
41
|
+
/** @description Error response */
|
|
42
|
+
Error: {
|
|
43
|
+
error: string;
|
|
44
|
+
details: {
|
|
45
|
+
message: string;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
12
48
|
/** @description Build */
|
|
13
49
|
Build: {
|
|
14
50
|
id: string;
|
|
@@ -29,13 +65,6 @@ interface components {
|
|
|
29
65
|
};
|
|
30
66
|
} | null;
|
|
31
67
|
};
|
|
32
|
-
/** @description Error response */
|
|
33
|
-
Error: {
|
|
34
|
-
error: string;
|
|
35
|
-
details: {
|
|
36
|
-
message: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
68
|
};
|
|
40
69
|
responses: never;
|
|
41
70
|
parameters: never;
|
|
@@ -44,6 +73,48 @@ interface components {
|
|
|
44
73
|
pathItems: never;
|
|
45
74
|
}
|
|
46
75
|
interface operations {
|
|
76
|
+
getAuthProject: {
|
|
77
|
+
parameters: {
|
|
78
|
+
query?: never;
|
|
79
|
+
header?: never;
|
|
80
|
+
path?: never;
|
|
81
|
+
cookie?: never;
|
|
82
|
+
};
|
|
83
|
+
requestBody?: never;
|
|
84
|
+
responses: {
|
|
85
|
+
/** @description Project */
|
|
86
|
+
200: {
|
|
87
|
+
headers: {
|
|
88
|
+
[name: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
content: {
|
|
91
|
+
"application/json": {
|
|
92
|
+
id: string;
|
|
93
|
+
defaultBaseBranch: string;
|
|
94
|
+
hasRemoteContentAccess: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/** @description Unauthorized */
|
|
99
|
+
401: {
|
|
100
|
+
headers: {
|
|
101
|
+
[name: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
content: {
|
|
104
|
+
"application/json": components["schemas"]["Error"];
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
/** @description Server error */
|
|
108
|
+
500: {
|
|
109
|
+
headers: {
|
|
110
|
+
[name: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
content: {
|
|
113
|
+
"application/json": components["schemas"]["Error"];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
47
118
|
getAuthProjectBuilds: {
|
|
48
119
|
parameters: {
|
|
49
120
|
query?: {
|
|
@@ -56,10 +127,17 @@ interface operations {
|
|
|
56
127
|
/** @description Only return the latest builds created, unique by name and commit. */
|
|
57
128
|
distinctName?: string;
|
|
58
129
|
};
|
|
130
|
+
header?: never;
|
|
131
|
+
path?: never;
|
|
132
|
+
cookie?: never;
|
|
59
133
|
};
|
|
134
|
+
requestBody?: never;
|
|
60
135
|
responses: {
|
|
61
136
|
/** @description List of builds */
|
|
62
137
|
200: {
|
|
138
|
+
headers: {
|
|
139
|
+
[name: string]: unknown;
|
|
140
|
+
};
|
|
63
141
|
content: {
|
|
64
142
|
"application/json": {
|
|
65
143
|
results: components["schemas"]["Build"][];
|
|
@@ -73,18 +151,27 @@ interface operations {
|
|
|
73
151
|
};
|
|
74
152
|
/** @description Invalid parameters */
|
|
75
153
|
400: {
|
|
154
|
+
headers: {
|
|
155
|
+
[name: string]: unknown;
|
|
156
|
+
};
|
|
76
157
|
content: {
|
|
77
158
|
"application/json": components["schemas"]["Error"];
|
|
78
159
|
};
|
|
79
160
|
};
|
|
80
161
|
/** @description Unauthorized */
|
|
81
162
|
401: {
|
|
163
|
+
headers: {
|
|
164
|
+
[name: string]: unknown;
|
|
165
|
+
};
|
|
82
166
|
content: {
|
|
83
167
|
"application/json": components["schemas"]["Error"];
|
|
84
168
|
};
|
|
85
169
|
};
|
|
86
170
|
/** @description Server error */
|
|
87
171
|
500: {
|
|
172
|
+
headers: {
|
|
173
|
+
[name: string]: unknown;
|
|
174
|
+
};
|
|
88
175
|
content: {
|
|
89
176
|
"application/json": components["schemas"]["Error"];
|
|
90
177
|
};
|
|
@@ -99,16 +186,5 @@ type ArgosAPIClient = ReturnType<typeof createClient>;
|
|
|
99
186
|
declare function createClient(options: {
|
|
100
187
|
baseUrl?: string;
|
|
101
188
|
authToken: string;
|
|
102
|
-
}): {
|
|
103
|
-
GET: import("openapi-fetch").ClientMethod<paths, "get">;
|
|
104
|
-
PUT: import("openapi-fetch").ClientMethod<paths, "put">;
|
|
105
|
-
POST: import("openapi-fetch").ClientMethod<paths, "post">;
|
|
106
|
-
DELETE: import("openapi-fetch").ClientMethod<paths, "delete">;
|
|
107
|
-
OPTIONS: import("openapi-fetch").ClientMethod<paths, "options">;
|
|
108
|
-
HEAD: import("openapi-fetch").ClientMethod<paths, "head">;
|
|
109
|
-
PATCH: import("openapi-fetch").ClientMethod<paths, "patch">;
|
|
110
|
-
TRACE: import("openapi-fetch").ClientMethod<paths, "trace">;
|
|
111
|
-
use(...middleware: import("openapi-fetch").Middleware[]): void;
|
|
112
|
-
eject(...middleware: import("openapi-fetch").Middleware[]): void;
|
|
113
|
-
};
|
|
189
|
+
}): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
114
190
|
export { ArgosAPIClient, createClient };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/api-client",
|
|
3
3
|
"description": "Argos API client.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1-alpha.34+6b6c15f",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"prebuild": "rm -rf dist",
|
|
40
40
|
"build-schema-types": "openapi-typescript https://api.argos-ci.com/v2/openapi.yaml -o src/schema.ts",
|
|
41
|
+
"build-schema-types-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 openapi-typescript https://api.argos-ci.dev:4001/v2/openapi.yaml -o src/schema.ts",
|
|
41
42
|
"build": "rollup -c"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^18.
|
|
45
|
-
"openapi-typescript": "^
|
|
45
|
+
"@types/node": "^18.19.44",
|
|
46
|
+
"openapi-typescript": "^7.3.0"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"openapi-fetch": "^0.
|
|
49
|
+
"openapi-fetch": "^0.11.1"
|
|
49
50
|
},
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "6b6c15f62882eb38e36a59f80f5ad2aa6d7ee3ff"
|
|
51
52
|
}
|