kleisterjs 2.5.1 → 2.6.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/.github/RELEASE +1 -1
- package/.github/workflows/flake.yml +1 -1
- package/.github/workflows/general.yml +1 -1
- package/.github/workflows/openapi.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.openapi-generator/FILES +56 -55
- package/CHANGELOG.md +12 -0
- package/README.md +2 -2
- package/api/auth-api.ts +251 -147
- package/api/fabric-api.ts +47 -67
- package/api/forge-api.ts +47 -67
- package/api/{team-api.ts → group-api.ts} +921 -936
- package/api/minecraft-api.ts +44 -67
- package/api/mod-api.ts +1016 -461
- package/api/neoforge-api.ts +47 -67
- package/api/pack-api.ts +378 -419
- package/api/profile-api.ts +18 -21
- package/api/quilt-api.ts +48 -68
- package/api/user-api.ts +554 -580
- package/api.ts +1 -1
- package/flake.lock +9 -9
- package/model/attach-build-to-version-request.ts +33 -0
- package/model/attach-minecraft-to-build-request.ts +33 -0
- package/model/build.ts +0 -6
- package/model/create-build-request.ts +87 -0
- package/model/{quilt-build-params.ts → create-group-request.ts} +7 -7
- package/model/{pack-icon.ts → create-mod-request.ts} +19 -25
- package/model/create-pack-request.ts +45 -0
- package/model/create-user-request.ts +57 -0
- package/model/create-version-request.ts +39 -0
- package/model/delete-group-from-mod-request.ts +27 -0
- package/model/delete-group-from-pack-request.ts +27 -0
- package/model/delete-pack-from-group-request.ts +27 -0
- package/model/delete-pack-from-user-request.ts +27 -0
- package/model/{team-mod.ts → group-mod.ts} +19 -19
- package/model/{team-pack.ts → group-pack.ts} +19 -19
- package/model/{team.ts → group.ts} +8 -8
- package/model/index.ts +55 -54
- package/model/{build-versions.ts → list-build-versions200-response.ts} +25 -13
- package/model/{builds.ts → list-builds200-response.ts} +20 -8
- package/model/{fabric-builds.ts → list-fabric-builds200-response.ts} +22 -10
- package/model/{fabrics.ts → list-fabrics200-response.ts} +19 -7
- package/model/{forge-builds.ts → list-forge-builds200-response.ts} +22 -10
- package/model/{forges.ts → list-forges200-response.ts} +19 -7
- package/model/list-group-mods200-response.ts +58 -0
- package/model/list-group-packs200-response.ts +58 -0
- package/model/list-group-users200-response.ts +58 -0
- package/model/list-groups200-response.ts +49 -0
- package/model/{minecraft-builds.ts → list-minecraft-builds200-response.ts} +22 -10
- package/model/{minecrafts.ts → list-minecrafts200-response.ts} +19 -7
- package/model/{mod-teams.ts → list-mod-groups200-response.ts} +25 -13
- package/model/{mod-users.ts → list-mod-users200-response.ts} +22 -10
- package/model/{mods.ts → list-mods200-response.ts} +19 -7
- package/model/{neoforge-builds.ts → list-neoforge-builds200-response.ts} +22 -10
- package/model/{neoforges.ts → list-neoforges200-response.ts} +19 -7
- package/model/{pack-teams.ts → list-pack-groups200-response.ts} +25 -13
- package/model/{pack-users.ts → list-pack-users200-response.ts} +22 -10
- package/model/{packs.ts → list-packs200-response.ts} +19 -7
- package/model/{providers.ts → list-providers200-response.ts} +7 -7
- package/model/{quilt-builds.ts → list-quilt-builds200-response.ts} +22 -10
- package/model/{quilts.ts → list-quilts200-response.ts} +19 -7
- package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
- package/model/{user-mods.ts → list-user-mods200-response.ts} +22 -10
- package/model/{user-packs.ts → list-user-packs200-response.ts} +22 -10
- package/model/{users.ts → list-users200-response.ts} +19 -7
- package/model/{version-builds.ts → list-version-builds200-response.ts} +25 -13
- package/model/{versions.ts → list-versions200-response.ts} +20 -8
- package/model/{auth-login.ts → login-auth-request.ts} +4 -4
- package/model/mod-avatar.ts +45 -0
- package/model/mod.ts +10 -0
- package/model/pack-avatar.ts +45 -0
- package/model/pack.ts +3 -21
- package/model/{build-version-params.ts → permit-group-mod-request.ts} +6 -6
- package/model/{forge-build-params.ts → permit-group-pack-request.ts} +6 -6
- package/model/{fabric-build-params.ts → permit-pack-group-request.ts} +7 -7
- package/model/permit-pack-user-request.ts +33 -0
- package/model/profile.ts +9 -9
- package/model/redirect-auth-request.ts +27 -0
- package/model/update-profile-request.ts +45 -0
- package/model/update-user-request.ts +57 -0
- package/model/{user-team.ts → user-group.ts} +19 -19
- package/model/version-file.ts +0 -12
- package/model/version.ts +0 -6
- package/openapi.yml +1 -1
- package/package.json +1 -1
- package/model/minecraft-build-params.ts +0 -33
- package/model/mod-team-params.ts +0 -42
- package/model/mod-user-params.ts +0 -42
- package/model/neoforge-build-params.ts +0 -33
- package/model/pack-back.ts +0 -75
- package/model/pack-logo.ts +0 -75
- package/model/pack-team-params.ts +0 -42
- package/model/pack-user-params.ts +0 -42
- package/model/team-mod-params.ts +0 -42
- package/model/team-mods.ts +0 -46
- package/model/team-pack-params.ts +0 -42
- package/model/team-packs.ts +0 -46
- package/model/team-user-params.ts +0 -42
- package/model/team-users.ts +0 -46
- package/model/teams.ts +0 -37
- package/model/user-mod-params.ts +0 -42
- package/model/user-pack-params.ts +0 -42
- package/model/user-team-params.ts +0 -42
- package/model/version-build-params.ts +0 -33
package/api/profile-api.ts
CHANGED
|
@@ -47,6 +47,8 @@ import type { AuthToken } from "../model";
|
|
|
47
47
|
import type { Notification } from "../model";
|
|
48
48
|
// @ts-ignore
|
|
49
49
|
import type { Profile } from "../model";
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { UpdateProfileRequest } from "../model";
|
|
50
52
|
/**
|
|
51
53
|
* ProfileApi - axios parameter creator
|
|
52
54
|
* @export
|
|
@@ -80,9 +82,6 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
80
82
|
const localVarHeaderParameter = {} as any;
|
|
81
83
|
const localVarQueryParameter = {} as any;
|
|
82
84
|
|
|
83
|
-
// authentication Cookie required
|
|
84
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
85
|
-
|
|
86
85
|
// authentication Basic required
|
|
87
86
|
// http basic authentication required
|
|
88
87
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -137,9 +136,6 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
137
136
|
const localVarHeaderParameter = {} as any;
|
|
138
137
|
const localVarQueryParameter = {} as any;
|
|
139
138
|
|
|
140
|
-
// authentication Cookie required
|
|
141
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
142
|
-
|
|
143
139
|
// authentication Basic required
|
|
144
140
|
// http basic authentication required
|
|
145
141
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -172,16 +168,20 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
172
168
|
/**
|
|
173
169
|
*
|
|
174
170
|
* @summary Update your own profile information
|
|
175
|
-
* @param {
|
|
171
|
+
* @param {UpdateProfileRequest} updateProfileRequest The profile data to update
|
|
176
172
|
* @param {*} [options] Override http request option.
|
|
177
173
|
* @throws {RequiredError}
|
|
178
174
|
*/
|
|
179
175
|
updateProfile: async (
|
|
180
|
-
|
|
176
|
+
updateProfileRequest: UpdateProfileRequest,
|
|
181
177
|
options: RawAxiosRequestConfig = {},
|
|
182
178
|
): Promise<RequestArgs> => {
|
|
183
|
-
// verify required parameter '
|
|
184
|
-
assertParamExists(
|
|
179
|
+
// verify required parameter 'updateProfileRequest' is not null or undefined
|
|
180
|
+
assertParamExists(
|
|
181
|
+
"updateProfile",
|
|
182
|
+
"updateProfileRequest",
|
|
183
|
+
updateProfileRequest,
|
|
184
|
+
);
|
|
185
185
|
const localVarPath = `/profile/self`;
|
|
186
186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
187
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -198,9 +198,6 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
198
198
|
const localVarHeaderParameter = {} as any;
|
|
199
199
|
const localVarQueryParameter = {} as any;
|
|
200
200
|
|
|
201
|
-
// authentication Cookie required
|
|
202
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
203
|
-
|
|
204
201
|
// authentication Basic required
|
|
205
202
|
// http basic authentication required
|
|
206
203
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -227,7 +224,7 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
227
224
|
...options.headers,
|
|
228
225
|
};
|
|
229
226
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
230
|
-
|
|
227
|
+
updateProfileRequest,
|
|
231
228
|
localVarRequestOptions,
|
|
232
229
|
configuration,
|
|
233
230
|
);
|
|
@@ -302,18 +299,18 @@ export const ProfileApiFp = function (configuration?: Configuration) {
|
|
|
302
299
|
/**
|
|
303
300
|
*
|
|
304
301
|
* @summary Update your own profile information
|
|
305
|
-
* @param {
|
|
302
|
+
* @param {UpdateProfileRequest} updateProfileRequest The profile data to update
|
|
306
303
|
* @param {*} [options] Override http request option.
|
|
307
304
|
* @throws {RequiredError}
|
|
308
305
|
*/
|
|
309
306
|
async updateProfile(
|
|
310
|
-
|
|
307
|
+
updateProfileRequest: UpdateProfileRequest,
|
|
311
308
|
options?: RawAxiosRequestConfig,
|
|
312
309
|
): Promise<
|
|
313
310
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>
|
|
314
311
|
> {
|
|
315
312
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfile(
|
|
316
|
-
|
|
313
|
+
updateProfileRequest,
|
|
317
314
|
options,
|
|
318
315
|
);
|
|
319
316
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
@@ -377,7 +374,7 @@ export const ProfileApiFactory = function (
|
|
|
377
374
|
options?: RawAxiosRequestConfig,
|
|
378
375
|
): AxiosPromise<Profile> {
|
|
379
376
|
return localVarFp
|
|
380
|
-
.updateProfile(requestParameters.
|
|
377
|
+
.updateProfile(requestParameters.updateProfileRequest, options)
|
|
381
378
|
.then((request) => request(axios, basePath));
|
|
382
379
|
},
|
|
383
380
|
};
|
|
@@ -391,10 +388,10 @@ export const ProfileApiFactory = function (
|
|
|
391
388
|
export interface ProfileApiUpdateProfileRequest {
|
|
392
389
|
/**
|
|
393
390
|
* The profile data to update
|
|
394
|
-
* @type {
|
|
391
|
+
* @type {UpdateProfileRequest}
|
|
395
392
|
* @memberof ProfileApiUpdateProfile
|
|
396
393
|
*/
|
|
397
|
-
readonly
|
|
394
|
+
readonly updateProfileRequest: UpdateProfileRequest;
|
|
398
395
|
}
|
|
399
396
|
|
|
400
397
|
/**
|
|
@@ -443,7 +440,7 @@ export class ProfileApi extends BaseAPI {
|
|
|
443
440
|
options?: RawAxiosRequestConfig,
|
|
444
441
|
) {
|
|
445
442
|
return ProfileApiFp(this.configuration)
|
|
446
|
-
.updateProfile(requestParameters.
|
|
443
|
+
.updateProfile(requestParameters.updateProfileRequest, options)
|
|
447
444
|
.then((request) => request(this.axios, this.basePath));
|
|
448
445
|
}
|
|
449
446
|
}
|
package/api/quilt-api.ts
CHANGED
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
operationServerMap,
|
|
43
43
|
} from "../base";
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
import type {
|
|
45
|
+
import type { AttachMinecraftToBuildRequest } from "../model";
|
|
46
46
|
// @ts-ignore
|
|
47
|
-
import type {
|
|
47
|
+
import type { ListQuiltBuilds200Response } from "../model";
|
|
48
48
|
// @ts-ignore
|
|
49
|
-
import type {
|
|
49
|
+
import type { ListQuilts200Response } from "../model";
|
|
50
50
|
// @ts-ignore
|
|
51
|
-
import type {
|
|
51
|
+
import type { Notification } from "../model";
|
|
52
52
|
/**
|
|
53
53
|
* QuiltApi - axios parameter creator
|
|
54
54
|
* @export
|
|
@@ -61,22 +61,22 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
61
61
|
*
|
|
62
62
|
* @summary Attach a build to a Quilt version
|
|
63
63
|
* @param {string} quiltId A quilt identifier or slug
|
|
64
|
-
* @param {
|
|
64
|
+
* @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The quilt build data to create or update
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
68
68
|
attachQuiltToBuild: async (
|
|
69
69
|
quiltId: string,
|
|
70
|
-
|
|
70
|
+
attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
|
|
71
71
|
options: RawAxiosRequestConfig = {},
|
|
72
72
|
): Promise<RequestArgs> => {
|
|
73
73
|
// verify required parameter 'quiltId' is not null or undefined
|
|
74
74
|
assertParamExists("attachQuiltToBuild", "quiltId", quiltId);
|
|
75
|
-
// verify required parameter '
|
|
75
|
+
// verify required parameter 'attachMinecraftToBuildRequest' is not null or undefined
|
|
76
76
|
assertParamExists(
|
|
77
77
|
"attachQuiltToBuild",
|
|
78
|
-
"
|
|
79
|
-
|
|
78
|
+
"attachMinecraftToBuildRequest",
|
|
79
|
+
attachMinecraftToBuildRequest,
|
|
80
80
|
);
|
|
81
81
|
const localVarPath = `/quilt/{quilt_id}/builds`.replace(
|
|
82
82
|
`{${"quilt_id"}}`,
|
|
@@ -97,9 +97,6 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
97
97
|
const localVarHeaderParameter = {} as any;
|
|
98
98
|
const localVarQueryParameter = {} as any;
|
|
99
99
|
|
|
100
|
-
// authentication Cookie required
|
|
101
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
102
|
-
|
|
103
100
|
// authentication Basic required
|
|
104
101
|
// http basic authentication required
|
|
105
102
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -126,7 +123,7 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
126
123
|
...options.headers,
|
|
127
124
|
};
|
|
128
125
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
129
|
-
|
|
126
|
+
attachMinecraftToBuildRequest,
|
|
130
127
|
localVarRequestOptions,
|
|
131
128
|
configuration,
|
|
132
129
|
);
|
|
@@ -140,22 +137,22 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
140
137
|
*
|
|
141
138
|
* @summary Unlink a build from a Quilt version
|
|
142
139
|
* @param {string} quiltId A quilt identifier or slug
|
|
143
|
-
* @param {
|
|
140
|
+
* @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The quilt build data to create or update
|
|
144
141
|
* @param {*} [options] Override http request option.
|
|
145
142
|
* @throws {RequiredError}
|
|
146
143
|
*/
|
|
147
144
|
deleteQuiltFromBuild: async (
|
|
148
145
|
quiltId: string,
|
|
149
|
-
|
|
146
|
+
attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
|
|
150
147
|
options: RawAxiosRequestConfig = {},
|
|
151
148
|
): Promise<RequestArgs> => {
|
|
152
149
|
// verify required parameter 'quiltId' is not null or undefined
|
|
153
150
|
assertParamExists("deleteQuiltFromBuild", "quiltId", quiltId);
|
|
154
|
-
// verify required parameter '
|
|
151
|
+
// verify required parameter 'attachMinecraftToBuildRequest' is not null or undefined
|
|
155
152
|
assertParamExists(
|
|
156
153
|
"deleteQuiltFromBuild",
|
|
157
|
-
"
|
|
158
|
-
|
|
154
|
+
"attachMinecraftToBuildRequest",
|
|
155
|
+
attachMinecraftToBuildRequest,
|
|
159
156
|
);
|
|
160
157
|
const localVarPath = `/quilt/{quilt_id}/builds`.replace(
|
|
161
158
|
`{${"quilt_id"}}`,
|
|
@@ -176,9 +173,6 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
176
173
|
const localVarHeaderParameter = {} as any;
|
|
177
174
|
const localVarQueryParameter = {} as any;
|
|
178
175
|
|
|
179
|
-
// authentication Cookie required
|
|
180
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
181
|
-
|
|
182
176
|
// authentication Basic required
|
|
183
177
|
// http basic authentication required
|
|
184
178
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -205,7 +199,7 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
205
199
|
...options.headers,
|
|
206
200
|
};
|
|
207
201
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
208
|
-
|
|
202
|
+
attachMinecraftToBuildRequest,
|
|
209
203
|
localVarRequestOptions,
|
|
210
204
|
configuration,
|
|
211
205
|
);
|
|
@@ -220,7 +214,7 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
220
214
|
* @summary Fetch the builds attached to a Quilt version
|
|
221
215
|
* @param {string} quiltId A quilt identifier or slug
|
|
222
216
|
* @param {string} [search] Search query
|
|
223
|
-
* @param {
|
|
217
|
+
* @param {string} [sort] Sorting column
|
|
224
218
|
* @param {ListQuiltBuildsOrderEnum} [order] Sorting order
|
|
225
219
|
* @param {number} [limit] Paging limit
|
|
226
220
|
* @param {number} [offset] Paging offset
|
|
@@ -230,7 +224,7 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
230
224
|
listQuiltBuilds: async (
|
|
231
225
|
quiltId: string,
|
|
232
226
|
search?: string,
|
|
233
|
-
sort?:
|
|
227
|
+
sort?: string,
|
|
234
228
|
order?: ListQuiltBuildsOrderEnum,
|
|
235
229
|
limit?: number,
|
|
236
230
|
offset?: number,
|
|
@@ -257,9 +251,6 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
257
251
|
const localVarHeaderParameter = {} as any;
|
|
258
252
|
const localVarQueryParameter = {} as any;
|
|
259
253
|
|
|
260
|
-
// authentication Cookie required
|
|
261
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
262
|
-
|
|
263
254
|
// authentication Basic required
|
|
264
255
|
// http basic authentication required
|
|
265
256
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -336,9 +327,6 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
336
327
|
const localVarHeaderParameter = {} as any;
|
|
337
328
|
const localVarQueryParameter = {} as any;
|
|
338
329
|
|
|
339
|
-
// authentication Cookie required
|
|
340
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
341
|
-
|
|
342
330
|
// authentication Basic required
|
|
343
331
|
// http basic authentication required
|
|
344
332
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -397,9 +385,6 @@ export const QuiltApiAxiosParamCreator = function (
|
|
|
397
385
|
const localVarHeaderParameter = {} as any;
|
|
398
386
|
const localVarQueryParameter = {} as any;
|
|
399
387
|
|
|
400
|
-
// authentication Cookie required
|
|
401
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
402
|
-
|
|
403
388
|
// authentication Basic required
|
|
404
389
|
// http basic authentication required
|
|
405
390
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -443,13 +428,13 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
443
428
|
*
|
|
444
429
|
* @summary Attach a build to a Quilt version
|
|
445
430
|
* @param {string} quiltId A quilt identifier or slug
|
|
446
|
-
* @param {
|
|
431
|
+
* @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The quilt build data to create or update
|
|
447
432
|
* @param {*} [options] Override http request option.
|
|
448
433
|
* @throws {RequiredError}
|
|
449
434
|
*/
|
|
450
435
|
async attachQuiltToBuild(
|
|
451
436
|
quiltId: string,
|
|
452
|
-
|
|
437
|
+
attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
|
|
453
438
|
options?: RawAxiosRequestConfig,
|
|
454
439
|
): Promise<
|
|
455
440
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
@@ -457,7 +442,7 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
457
442
|
const localVarAxiosArgs =
|
|
458
443
|
await localVarAxiosParamCreator.attachQuiltToBuild(
|
|
459
444
|
quiltId,
|
|
460
|
-
|
|
445
|
+
attachMinecraftToBuildRequest,
|
|
461
446
|
options,
|
|
462
447
|
);
|
|
463
448
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
@@ -477,13 +462,13 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
477
462
|
*
|
|
478
463
|
* @summary Unlink a build from a Quilt version
|
|
479
464
|
* @param {string} quiltId A quilt identifier or slug
|
|
480
|
-
* @param {
|
|
465
|
+
* @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The quilt build data to create or update
|
|
481
466
|
* @param {*} [options] Override http request option.
|
|
482
467
|
* @throws {RequiredError}
|
|
483
468
|
*/
|
|
484
469
|
async deleteQuiltFromBuild(
|
|
485
470
|
quiltId: string,
|
|
486
|
-
|
|
471
|
+
attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
|
|
487
472
|
options?: RawAxiosRequestConfig,
|
|
488
473
|
): Promise<
|
|
489
474
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
@@ -491,7 +476,7 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
491
476
|
const localVarAxiosArgs =
|
|
492
477
|
await localVarAxiosParamCreator.deleteQuiltFromBuild(
|
|
493
478
|
quiltId,
|
|
494
|
-
|
|
479
|
+
attachMinecraftToBuildRequest,
|
|
495
480
|
options,
|
|
496
481
|
);
|
|
497
482
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
@@ -512,7 +497,7 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
512
497
|
* @summary Fetch the builds attached to a Quilt version
|
|
513
498
|
* @param {string} quiltId A quilt identifier or slug
|
|
514
499
|
* @param {string} [search] Search query
|
|
515
|
-
* @param {
|
|
500
|
+
* @param {string} [sort] Sorting column
|
|
516
501
|
* @param {ListQuiltBuildsOrderEnum} [order] Sorting order
|
|
517
502
|
* @param {number} [limit] Paging limit
|
|
518
503
|
* @param {number} [offset] Paging offset
|
|
@@ -522,13 +507,16 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
522
507
|
async listQuiltBuilds(
|
|
523
508
|
quiltId: string,
|
|
524
509
|
search?: string,
|
|
525
|
-
sort?:
|
|
510
|
+
sort?: string,
|
|
526
511
|
order?: ListQuiltBuildsOrderEnum,
|
|
527
512
|
limit?: number,
|
|
528
513
|
offset?: number,
|
|
529
514
|
options?: RawAxiosRequestConfig,
|
|
530
515
|
): Promise<
|
|
531
|
-
(
|
|
516
|
+
(
|
|
517
|
+
axios?: AxiosInstance,
|
|
518
|
+
basePath?: string,
|
|
519
|
+
) => AxiosPromise<ListQuiltBuilds200Response>
|
|
532
520
|
> {
|
|
533
521
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listQuiltBuilds(
|
|
534
522
|
quiltId,
|
|
@@ -563,7 +551,10 @@ export const QuiltApiFp = function (configuration?: Configuration) {
|
|
|
563
551
|
search?: string,
|
|
564
552
|
options?: RawAxiosRequestConfig,
|
|
565
553
|
): Promise<
|
|
566
|
-
(
|
|
554
|
+
(
|
|
555
|
+
axios?: AxiosInstance,
|
|
556
|
+
basePath?: string,
|
|
557
|
+
) => AxiosPromise<ListQuilts200Response>
|
|
567
558
|
> {
|
|
568
559
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listQuilts(
|
|
569
560
|
search,
|
|
@@ -636,7 +627,7 @@ export const QuiltApiFactory = function (
|
|
|
636
627
|
return localVarFp
|
|
637
628
|
.attachQuiltToBuild(
|
|
638
629
|
requestParameters.quiltId,
|
|
639
|
-
requestParameters.
|
|
630
|
+
requestParameters.attachMinecraftToBuildRequest,
|
|
640
631
|
options,
|
|
641
632
|
)
|
|
642
633
|
.then((request) => request(axios, basePath));
|
|
@@ -655,7 +646,7 @@ export const QuiltApiFactory = function (
|
|
|
655
646
|
return localVarFp
|
|
656
647
|
.deleteQuiltFromBuild(
|
|
657
648
|
requestParameters.quiltId,
|
|
658
|
-
requestParameters.
|
|
649
|
+
requestParameters.attachMinecraftToBuildRequest,
|
|
659
650
|
options,
|
|
660
651
|
)
|
|
661
652
|
.then((request) => request(axios, basePath));
|
|
@@ -670,7 +661,7 @@ export const QuiltApiFactory = function (
|
|
|
670
661
|
listQuiltBuilds(
|
|
671
662
|
requestParameters: QuiltApiListQuiltBuildsRequest,
|
|
672
663
|
options?: RawAxiosRequestConfig,
|
|
673
|
-
): AxiosPromise<
|
|
664
|
+
): AxiosPromise<ListQuiltBuilds200Response> {
|
|
674
665
|
return localVarFp
|
|
675
666
|
.listQuiltBuilds(
|
|
676
667
|
requestParameters.quiltId,
|
|
@@ -693,7 +684,7 @@ export const QuiltApiFactory = function (
|
|
|
693
684
|
listQuilts(
|
|
694
685
|
requestParameters: QuiltApiListQuiltsRequest = {},
|
|
695
686
|
options?: RawAxiosRequestConfig,
|
|
696
|
-
): AxiosPromise<
|
|
687
|
+
): AxiosPromise<ListQuilts200Response> {
|
|
697
688
|
return localVarFp
|
|
698
689
|
.listQuilts(requestParameters.search, options)
|
|
699
690
|
.then((request) => request(axios, basePath));
|
|
@@ -726,11 +717,11 @@ export interface QuiltApiAttachQuiltToBuildRequest {
|
|
|
726
717
|
readonly quiltId: string;
|
|
727
718
|
|
|
728
719
|
/**
|
|
729
|
-
* The build data to
|
|
730
|
-
* @type {
|
|
720
|
+
* The quilt build data to create or update
|
|
721
|
+
* @type {AttachMinecraftToBuildRequest}
|
|
731
722
|
* @memberof QuiltApiAttachQuiltToBuild
|
|
732
723
|
*/
|
|
733
|
-
readonly
|
|
724
|
+
readonly attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest;
|
|
734
725
|
}
|
|
735
726
|
|
|
736
727
|
/**
|
|
@@ -747,11 +738,11 @@ export interface QuiltApiDeleteQuiltFromBuildRequest {
|
|
|
747
738
|
readonly quiltId: string;
|
|
748
739
|
|
|
749
740
|
/**
|
|
750
|
-
* The build data to
|
|
751
|
-
* @type {
|
|
741
|
+
* The quilt build data to create or update
|
|
742
|
+
* @type {AttachMinecraftToBuildRequest}
|
|
752
743
|
* @memberof QuiltApiDeleteQuiltFromBuild
|
|
753
744
|
*/
|
|
754
|
-
readonly
|
|
745
|
+
readonly attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest;
|
|
755
746
|
}
|
|
756
747
|
|
|
757
748
|
/**
|
|
@@ -776,10 +767,10 @@ export interface QuiltApiListQuiltBuildsRequest {
|
|
|
776
767
|
|
|
777
768
|
/**
|
|
778
769
|
* Sorting column
|
|
779
|
-
* @type {
|
|
770
|
+
* @type {string}
|
|
780
771
|
* @memberof QuiltApiListQuiltBuilds
|
|
781
772
|
*/
|
|
782
|
-
readonly sort?:
|
|
773
|
+
readonly sort?: string;
|
|
783
774
|
|
|
784
775
|
/**
|
|
785
776
|
* Sorting order
|
|
@@ -839,7 +830,7 @@ export class QuiltApi extends BaseAPI {
|
|
|
839
830
|
return QuiltApiFp(this.configuration)
|
|
840
831
|
.attachQuiltToBuild(
|
|
841
832
|
requestParameters.quiltId,
|
|
842
|
-
requestParameters.
|
|
833
|
+
requestParameters.attachMinecraftToBuildRequest,
|
|
843
834
|
options,
|
|
844
835
|
)
|
|
845
836
|
.then((request) => request(this.axios, this.basePath));
|
|
@@ -860,7 +851,7 @@ export class QuiltApi extends BaseAPI {
|
|
|
860
851
|
return QuiltApiFp(this.configuration)
|
|
861
852
|
.deleteQuiltFromBuild(
|
|
862
853
|
requestParameters.quiltId,
|
|
863
|
-
requestParameters.
|
|
854
|
+
requestParameters.attachMinecraftToBuildRequest,
|
|
864
855
|
options,
|
|
865
856
|
)
|
|
866
857
|
.then((request) => request(this.axios, this.basePath));
|
|
@@ -922,17 +913,6 @@ export class QuiltApi extends BaseAPI {
|
|
|
922
913
|
}
|
|
923
914
|
}
|
|
924
915
|
|
|
925
|
-
/**
|
|
926
|
-
* @export
|
|
927
|
-
*/
|
|
928
|
-
export const ListQuiltBuildsSortEnum = {
|
|
929
|
-
BuildName: "build_name",
|
|
930
|
-
BuildPublic: "build_public",
|
|
931
|
-
PackSlug: "pack_slug",
|
|
932
|
-
PackName: "pack_name",
|
|
933
|
-
} as const;
|
|
934
|
-
export type ListQuiltBuildsSortEnum =
|
|
935
|
-
(typeof ListQuiltBuildsSortEnum)[keyof typeof ListQuiltBuildsSortEnum];
|
|
936
916
|
/**
|
|
937
917
|
* @export
|
|
938
918
|
*/
|