@dazl/api-client 1.0.1 → 1.0.3
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/db/generated-types.d.ts +10 -0
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +43 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +101 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +825 -0
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/client/client.gen.d.ts +3 -0
- package/dist/public/client/client.gen.d.ts.map +1 -0
- package/dist/public/client/client.gen.js +217 -0
- package/dist/public/client/client.gen.js.map +1 -0
- package/dist/public/client/index.d.ts +11 -0
- package/dist/public/client/index.d.ts.map +1 -0
- package/dist/public/client/index.js +7 -0
- package/dist/public/client/index.js.map +1 -0
- package/dist/public/client/types.gen.d.ts +121 -0
- package/dist/public/client/types.gen.d.ts.map +1 -0
- package/dist/public/client/types.gen.js +3 -0
- package/dist/public/client/types.gen.js.map +1 -0
- package/dist/public/client/utils.gen.d.ts +38 -0
- package/dist/public/client/utils.gen.d.ts.map +1 -0
- package/dist/public/client/utils.gen.js +229 -0
- package/dist/public/client/utils.gen.js.map +1 -0
- package/dist/public/client.gen.d.ts +13 -0
- package/dist/public/client.gen.d.ts.map +1 -0
- package/dist/public/client.gen.js +4 -0
- package/dist/public/client.gen.js.map +1 -0
- package/dist/public/core/auth.gen.d.ts +26 -0
- package/dist/public/core/auth.gen.d.ts.map +1 -0
- package/dist/public/core/auth.gen.js +15 -0
- package/dist/public/core/auth.gen.js.map +1 -0
- package/dist/public/core/bodySerializer.gen.d.ts +26 -0
- package/dist/public/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/public/core/bodySerializer.gen.js +58 -0
- package/dist/public/core/bodySerializer.gen.js.map +1 -0
- package/dist/public/core/params.gen.d.ts +44 -0
- package/dist/public/core/params.gen.d.ts.map +1 -0
- package/dist/public/core/params.gen.js +110 -0
- package/dist/public/core/params.gen.js.map +1 -0
- package/dist/public/core/pathSerializer.gen.d.ts +34 -0
- package/dist/public/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/public/core/pathSerializer.gen.js +107 -0
- package/dist/public/core/pathSerializer.gen.js.map +1 -0
- package/dist/public/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/public/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/public/core/queryKeySerializer.gen.js +93 -0
- package/dist/public/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/public/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/public/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/public/core/serverSentEvents.gen.js +133 -0
- package/dist/public/core/serverSentEvents.gen.js.map +1 -0
- package/dist/public/core/types.gen.d.ts +84 -0
- package/dist/public/core/types.gen.d.ts.map +1 -0
- package/dist/public/core/types.gen.js +3 -0
- package/dist/public/core/types.gen.js.map +1 -0
- package/dist/public/core/utils.gen.d.ts +20 -0
- package/dist/public/core/utils.gen.d.ts.map +1 -0
- package/dist/public/core/utils.gen.js +88 -0
- package/dist/public/core/utils.gen.js.map +1 -0
- package/dist/public/index.d.ts +3 -0
- package/dist/public/index.d.ts.map +1 -0
- package/dist/public/index.js +3 -0
- package/dist/public/index.js.map +1 -0
- package/dist/public/sdk.gen.d.ts +22 -0
- package/dist/public/sdk.gen.d.ts.map +1 -0
- package/dist/public/sdk.gen.js +10 -0
- package/dist/public/sdk.gen.js.map +1 -0
- package/dist/public/types.gen.d.ts +56 -0
- package/dist/public/types.gen.d.ts.map +1 -0
- package/dist/public/types.gen.js +3 -0
- package/dist/public/types.gen.js.map +1 -0
- package/package.json +4 -1
- package/src/db/generated-types.ts +11 -0
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +114 -1
- package/src/internal/types.gen.ts +889 -0
- package/src/public/client/client.gen.ts +277 -0
- package/src/public/client/index.ts +27 -0
- package/src/public/client/types.gen.ts +218 -0
- package/src/public/client/utils.gen.ts +316 -0
- package/src/public/client.gen.ts +16 -0
- package/src/public/core/auth.gen.ts +48 -0
- package/src/public/core/bodySerializer.gen.ts +82 -0
- package/src/public/core/params.gen.ts +178 -0
- package/src/public/core/pathSerializer.gen.ts +171 -0
- package/src/public/core/queryKeySerializer.gen.ts +117 -0
- package/src/public/core/serverSentEvents.gen.ts +242 -0
- package/src/public/core/types.gen.ts +110 -0
- package/src/public/core/utils.gen.ts +140 -0
- package/src/public/index.ts +4 -0
- package/src/public/sdk.gen.ts +27 -0
- package/src/public/types.gen.ts +63 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from "./pathSerializer.gen.js";
|
|
3
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
export const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) {
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
let explode = false;
|
|
10
|
+
let name = match.substring(1, match.length - 1);
|
|
11
|
+
let style = 'simple';
|
|
12
|
+
if (name.endsWith('*')) {
|
|
13
|
+
explode = true;
|
|
14
|
+
name = name.substring(0, name.length - 1);
|
|
15
|
+
}
|
|
16
|
+
if (name.startsWith('.')) {
|
|
17
|
+
name = name.substring(1);
|
|
18
|
+
style = 'label';
|
|
19
|
+
}
|
|
20
|
+
else if (name.startsWith(';')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'matrix';
|
|
23
|
+
}
|
|
24
|
+
const value = path[name];
|
|
25
|
+
if (value === undefined || value === null) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'object') {
|
|
33
|
+
url = url.replace(match, serializeObjectParam({
|
|
34
|
+
explode,
|
|
35
|
+
name,
|
|
36
|
+
style,
|
|
37
|
+
value: value,
|
|
38
|
+
valueOnly: true,
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (style === 'matrix') {
|
|
43
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
44
|
+
name,
|
|
45
|
+
value: value,
|
|
46
|
+
})}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
50
|
+
url = url.replace(match, replaceValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
56
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
58
|
+
if (path) {
|
|
59
|
+
url = defaultPathSerializer({ path, url });
|
|
60
|
+
}
|
|
61
|
+
let search = query ? querySerializer(query) : '';
|
|
62
|
+
if (search.startsWith('?')) {
|
|
63
|
+
search = search.substring(1);
|
|
64
|
+
}
|
|
65
|
+
if (search) {
|
|
66
|
+
url += `?${search}`;
|
|
67
|
+
}
|
|
68
|
+
return url;
|
|
69
|
+
};
|
|
70
|
+
export function getValidRequestBody(options) {
|
|
71
|
+
const hasBody = options.body !== undefined;
|
|
72
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
73
|
+
if (isSerializedBody) {
|
|
74
|
+
if ('serializedBody' in options) {
|
|
75
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
76
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
77
|
+
}
|
|
78
|
+
// not all clients implement a serializedBody property (i.e., client-axios)
|
|
79
|
+
return options.body !== '' ? options.body : null;
|
|
80
|
+
}
|
|
81
|
+
// plain/text body
|
|
82
|
+
if (hasBody) {
|
|
83
|
+
return options.body;
|
|
84
|
+
}
|
|
85
|
+
// no body was provided
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=utils.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.gen.js","sourceRoot":"","sources":["../../../src/public/core/utils.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/public/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/public/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAgB,IAAI,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.ts';
|
|
2
|
+
import type { GetPingData, GetPingErrors, GetPingResponses } from './types.gen.ts';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
|
+
};
|
|
16
|
+
export declare class Ping {
|
|
17
|
+
/**
|
|
18
|
+
* Ping endpoint for test
|
|
19
|
+
*/
|
|
20
|
+
static getPing<ThrowOnError extends boolean = false>(options: Options<GetPingData, ThrowOnError>): RequestResult<GetPingResponses, GetPingErrors, ThrowOnError>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/public/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,YAAY,SAAS,OAAO,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,CAAC,GAAG;IACjK;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,UAAU,SAAS,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,UAAU,CAAC;CAChF,CAAC;AAEF,qBAAa,IAAI;IACb;;OAEG;WACW,OAAO,CAAC,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,aAAa,CAAC,gBAAgB,EAAE,aAAa,EAAE,YAAY,CAAC;CAGzK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../../src/public/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAmBrD,MAAM,OAAO,IAAI;IACb;;OAEG;IACI,MAAM,CAAC,OAAO,CAAuC,OAA2C;QACnG,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAgD,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACJ"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type ErrorResponse = {
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export type GetPingData = {
|
|
8
|
+
body?: never;
|
|
9
|
+
path?: never;
|
|
10
|
+
query?: never;
|
|
11
|
+
url: '/ping';
|
|
12
|
+
};
|
|
13
|
+
export type GetPingErrors = {
|
|
14
|
+
/**
|
|
15
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
16
|
+
*/
|
|
17
|
+
400: {
|
|
18
|
+
message: string;
|
|
19
|
+
issues?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Unauthorized
|
|
23
|
+
*/
|
|
24
|
+
401: ErrorResponse;
|
|
25
|
+
/**
|
|
26
|
+
* Forbidden
|
|
27
|
+
*/
|
|
28
|
+
403: ErrorResponse;
|
|
29
|
+
/**
|
|
30
|
+
* Not Found
|
|
31
|
+
*/
|
|
32
|
+
404: ErrorResponse;
|
|
33
|
+
/**
|
|
34
|
+
* Conflict
|
|
35
|
+
*/
|
|
36
|
+
409: ErrorResponse;
|
|
37
|
+
/**
|
|
38
|
+
* Internal server error
|
|
39
|
+
*/
|
|
40
|
+
500: ErrorResponse;
|
|
41
|
+
/**
|
|
42
|
+
* Service Unavailable
|
|
43
|
+
*/
|
|
44
|
+
503: ErrorResponse;
|
|
45
|
+
};
|
|
46
|
+
export type GetPingError = GetPingErrors[keyof GetPingErrors];
|
|
47
|
+
export type GetPingResponses = {
|
|
48
|
+
/**
|
|
49
|
+
* Returns a pong message
|
|
50
|
+
*/
|
|
51
|
+
200: {
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type GetPingResponse = GetPingResponses[keyof GetPingResponses];
|
|
56
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../src/public/types.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,GAAG,MAAM,MAAM,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,GAAG,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,aAAa,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,GAAG,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../src/public/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dazl/api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Type-safe SDK for Dazl APIs, generated from OpenAPI specifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
+
".": "./dist/internal/index.js",
|
|
7
8
|
"./internal": "./dist/internal/index.js",
|
|
8
9
|
"./internal/fetch-client": "./dist/internal/client/index.js",
|
|
10
|
+
"./public": "./dist/public/index.js",
|
|
11
|
+
"./public/fetch-client": "./dist/public/client/index.js",
|
|
9
12
|
"./db-types": "./dist/db/generated-types.js",
|
|
10
13
|
"./feature-toggles-config": "./dist/feature-toggles-config.js",
|
|
11
14
|
"./package.json": "./package.json"
|
|
@@ -157,6 +157,7 @@ export interface NetlifyAccount {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
export interface Product {
|
|
160
|
+
comments: Json | null;
|
|
160
161
|
createdAt: Generated<Timestamp>;
|
|
161
162
|
id: string;
|
|
162
163
|
name: string;
|
|
@@ -179,6 +180,15 @@ export interface Project {
|
|
|
179
180
|
userId: number;
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
export interface ProjectInitData {
|
|
184
|
+
createdAt: Generated<Timestamp>;
|
|
185
|
+
gitBranchToClone: string | null;
|
|
186
|
+
gitBranchToCreate: string | null;
|
|
187
|
+
gitRepoURL: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
updatedAt: Generated<Timestamp>;
|
|
190
|
+
}
|
|
191
|
+
|
|
182
192
|
export interface ProjectInvitation {
|
|
183
193
|
createdAt: Generated<Timestamp>;
|
|
184
194
|
email: string | null;
|
|
@@ -298,6 +308,7 @@ export interface DB {
|
|
|
298
308
|
Project: Project;
|
|
299
309
|
ProjectInvitation: ProjectInvitation;
|
|
300
310
|
ProjectOnGitHub: ProjectOnGitHub;
|
|
311
|
+
ProjectInitData: ProjectInitData;
|
|
301
312
|
StripePrice: StripePrice;
|
|
302
313
|
StripeProduct: StripeProduct;
|
|
303
314
|
Template: Template;
|
package/src/internal/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
export { Admin, Billing, Capture, Comments, EnvConfig, GitHub, Media, type Options, Project, Promotions, Publish, Search, Template, User, UserKeyValue, UserSettings } from './sdk.gen.ts';
|
|
4
|
-
export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithError, AddTemplateSharedWithErrors, AddTemplateSharedWithResponse, AddTemplateSharedWithResponses, AddUserToPromotionData, AddUserToPromotionError, AddUserToPromotionErrors, AddUserToPromotionResponse, AddUserToPromotionResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, AdminLogActionData, AdminLogActionError, AdminLogActionErrors, AdminLogActionResponse, AdminLogActionResponses, AdminUpdateCreditsData, AdminUpdateCreditsError, AdminUpdateCreditsErrors, AdminUpdateCreditsResponse, AdminUpdateCreditsResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, CleanupProjectInput, ClientOptions, CloneProjectCreateInput, CloneProjectLogInput, CloseFeatureToggleData, CloseFeatureToggleError, CloseFeatureToggleErrors, CloseFeatureToggleResponse, CloseFeatureToggleResponses, CommentContext, CommentResolved, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CreditBucketCategories, CustomerInfo, DeactivateUserPromotionData, DeactivateUserPromotionError, DeactivateUserPromotionErrors, DeactivateUserPromotionResponse, DeactivateUserPromotionResponses, DeleteCategValuesData, DeleteCategValuesError, DeleteCategValuesErrors, DeleteCategValuesResponse, DeleteCategValuesResponses, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectInput, DeleteProjectInvitationData, DeleteProjectInvitationError, DeleteProjectInvitationErrors, DeleteProjectInvitationResponse, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberError, DeleteProjectMemberErrors, DeleteProjectMemberResponse, DeleteProjectMemberResponses, DeleteProjectResponse, DeleteProjectResponses, DeleteSiteData, DeleteSiteError, DeleteSiteErrors, DeleteSiteResponse, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DisconnectUserData, DisconnectUserError, DisconnectUserErrors, DisconnectUserResponse, DisconnectUserResponses, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, FileCommentContext, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAppInstallUrlData, GetAppInstallUrlError, GetAppInstallUrlErrors, GetAppInstallUrlResponse, GetAppInstallUrlResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigError, GetEntriConfigErrors, GetEntriConfigResponse, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetOAuthUrlData, GetOAuthUrlError, GetOAuthUrlErrors, GetOAuthUrlResponse, GetOAuthUrlResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsError, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponse, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserActivePromotionsData, GetUserActivePromotionsError, GetUserActivePromotionsErrors, GetUserActivePromotionsResponse, GetUserActivePromotionsResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsError, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponse, GetUsersByDazlIdsResponses, GetUsersByEmailsData, GetUsersByEmailsError, GetUsersByEmailsErrors, GetUsersByEmailsResponse, GetUsersByEmailsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, GetValuesData, GetValuesError, GetValuesErrors, GetValuesResponse, GetValuesResponses, InternalCreateCommentData, InternalCreateCommentError, InternalCreateCommentErrors, InternalCreateCommentInput, InternalCreateCommentResponse, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyError, InternalCreateReplyErrors, InternalCreateReplyInput, InternalCreateReplyResponse, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentError, InternalDeleteCommentErrors, InternalDeleteCommentResponse, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyError, InternalDeleteReplyErrors, InternalDeleteReplyResponse, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentError, InternalEditCommentErrors, InternalEditCommentInput, InternalEditCommentResponse, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyError, InternalEditReplyErrors, InternalEditReplyInput, InternalEditReplyResponse, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentError, InternalGetProjectCommentErrors, InternalGetProjectCommentResponse, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsError, InternalListProjectCommentsErrors, InternalListProjectCommentsResponse, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentError, InternalReopenCommentErrors, InternalReopenCommentResponse, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentError, InternalResolveCommentErrors, InternalResolveCommentResponse, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberError, InviteProjectMemberErrors, InviteProjectMemberResponse, InviteProjectMemberResponses, IsPromotionOpenData, IsPromotionOpenError, IsPromotionOpenErrors, IsPromotionOpenResponse, IsPromotionOpenResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, ManualSubtractCreditsEvent, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, PlanCommentContext, ProjectRaw, PromotionNames, PurgeUserAccountData, PurgeUserAccountError, PurgeUserAccountErrors, PurgeUserAccountInput, PurgeUserAccountResponse, PurgeUserAccountResponses, RemoveTemplateSharedWithData, RemoveTemplateSharedWithError, RemoveTemplateSharedWithErrors, RemoveTemplateSharedWithResponse, RemoveTemplateSharedWithResponses, ReplaceCategValuesData, ReplaceCategValuesError, ReplaceCategValuesErrors, ReplaceCategValuesResponse, ReplaceCategValuesResponses, SaveMediaData, SaveMediaError, SaveMediaErrors, SaveMediaResponses, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, SetValueData, SetValueError, SetValueErrors, SetValueResponse, SetValueResponses, StageCommentContext, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateCreditsInput, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserDisplayInfoResponse, UserMention, UserRaw } from './types.gen.ts';
|
|
4
|
+
export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithError, AddTemplateSharedWithErrors, AddTemplateSharedWithResponse, AddTemplateSharedWithResponses, AddUserToPromotionData, AddUserToPromotionError, AddUserToPromotionErrors, AddUserToPromotionResponse, AddUserToPromotionResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, AdminLogActionData, AdminLogActionError, AdminLogActionErrors, AdminLogActionResponse, AdminLogActionResponses, AdminUpdateCreditsData, AdminUpdateCreditsError, AdminUpdateCreditsErrors, AdminUpdateCreditsResponse, AdminUpdateCreditsResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, CleanupProjectInput, ClientOptions, CloneProjectCreateInput, CloneProjectLogInput, CloseFeatureToggleData, CloseFeatureToggleError, CloseFeatureToggleErrors, CloseFeatureToggleResponse, CloseFeatureToggleResponses, CommentContext, CommentResolved, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentInput, CreateCommentResponse, CreateCommentResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateReplyData, CreateReplyError, CreateReplyErrors, CreateReplyInput, CreateReplyResponse, CreateReplyResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CreditBucketCategories, CustomerInfo, DeactivateUserPromotionData, DeactivateUserPromotionError, DeactivateUserPromotionErrors, DeactivateUserPromotionResponse, DeactivateUserPromotionResponses, DeleteCategValuesData, DeleteCategValuesError, DeleteCategValuesErrors, DeleteCategValuesResponse, DeleteCategValuesResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentResponse, DeleteCommentResponses, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectInput, DeleteProjectInvitationData, DeleteProjectInvitationError, DeleteProjectInvitationErrors, DeleteProjectInvitationResponse, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberError, DeleteProjectMemberErrors, DeleteProjectMemberResponse, DeleteProjectMemberResponses, DeleteProjectResponse, DeleteProjectResponses, DeleteReplyData, DeleteReplyError, DeleteReplyErrors, DeleteReplyResponse, DeleteReplyResponses, DeleteSiteData, DeleteSiteError, DeleteSiteErrors, DeleteSiteResponse, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DisconnectUserData, DisconnectUserError, DisconnectUserErrors, DisconnectUserResponse, DisconnectUserResponses, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentInput, EditCommentResponse, EditCommentResponses, EditReplyData, EditReplyError, EditReplyErrors, EditReplyInput, EditReplyResponse, EditReplyResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, FileCommentContext, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAppInstallUrlData, GetAppInstallUrlError, GetAppInstallUrlErrors, GetAppInstallUrlResponse, GetAppInstallUrlResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCommentData, GetCommentError, GetCommentErrors, GetCommentResponse, GetCommentResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigError, GetEntriConfigErrors, GetEntriConfigResponse, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetOAuthUrlData, GetOAuthUrlError, GetOAuthUrlErrors, GetOAuthUrlResponse, GetOAuthUrlResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsError, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponse, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetProjectInitDataData, GetProjectInitDataError, GetProjectInitDataErrors, GetProjectInitDataResponse, GetProjectInitDataResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserActivePromotionsData, GetUserActivePromotionsError, GetUserActivePromotionsErrors, GetUserActivePromotionsResponse, GetUserActivePromotionsResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsError, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponse, GetUsersByDazlIdsResponses, GetUsersByEmailsData, GetUsersByEmailsError, GetUsersByEmailsErrors, GetUsersByEmailsResponse, GetUsersByEmailsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, GetValuesData, GetValuesError, GetValuesErrors, GetValuesResponse, GetValuesResponses, InternalCreateCommentData, InternalCreateCommentError, InternalCreateCommentErrors, InternalCreateCommentInput, InternalCreateCommentResponse, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyError, InternalCreateReplyErrors, InternalCreateReplyInput, InternalCreateReplyResponse, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentError, InternalDeleteCommentErrors, InternalDeleteCommentResponse, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyError, InternalDeleteReplyErrors, InternalDeleteReplyResponse, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentError, InternalEditCommentErrors, InternalEditCommentInput, InternalEditCommentResponse, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyError, InternalEditReplyErrors, InternalEditReplyInput, InternalEditReplyResponse, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentError, InternalGetProjectCommentErrors, InternalGetProjectCommentResponse, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsError, InternalListProjectCommentsErrors, InternalListProjectCommentsResponse, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentError, InternalReopenCommentErrors, InternalReopenCommentResponse, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentError, InternalResolveCommentErrors, InternalResolveCommentResponse, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberError, InviteProjectMemberErrors, InviteProjectMemberResponse, InviteProjectMemberResponses, IsPromotionOpenData, IsPromotionOpenError, IsPromotionOpenErrors, IsPromotionOpenResponse, IsPromotionOpenResponses, ListCommentsData, ListCommentsError, ListCommentsErrors, ListCommentsResponse, ListCommentsResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, ManualSubtractCreditsEvent, MarkProjectAsInitializedData, MarkProjectAsInitializedError, MarkProjectAsInitializedErrors, MarkProjectAsInitializedResponse, MarkProjectAsInitializedResponses, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, PlanCommentContext, ProjectRaw, PromotionNames, PurgeUserAccountData, PurgeUserAccountError, PurgeUserAccountErrors, PurgeUserAccountInput, PurgeUserAccountResponse, PurgeUserAccountResponses, RemoveTemplateSharedWithData, RemoveTemplateSharedWithError, RemoveTemplateSharedWithErrors, RemoveTemplateSharedWithResponse, RemoveTemplateSharedWithResponses, ReopenCommentData, ReopenCommentError, ReopenCommentErrors, ReopenCommentResponse, ReopenCommentResponses, ReplaceCategValuesData, ReplaceCategValuesError, ReplaceCategValuesErrors, ReplaceCategValuesResponse, ReplaceCategValuesResponses, ResolveCommentData, ResolveCommentError, ResolveCommentErrors, ResolveCommentResponse, ResolveCommentResponses, SaveMediaData, SaveMediaError, SaveMediaErrors, SaveMediaResponses, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, SetValueData, SetValueError, SetValueErrors, SetValueResponse, SetValueResponses, StageCommentContext, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateCreditsInput, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserDisplayInfoResponse, UserMention, UserRaw } from './types.gen.ts';
|
package/src/internal/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.ts';
|
|
4
|
-
import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithErrors, AddTemplateSharedWithResponses, AddUserToPromotionData, AddUserToPromotionErrors, AddUserToPromotionResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminLogActionData, AdminLogActionErrors, AdminLogActionResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CloseFeatureToggleData, CloseFeatureToggleErrors, CloseFeatureToggleResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeactivateUserPromotionData, DeactivateUserPromotionErrors, DeactivateUserPromotionResponses, DeleteCategValuesData, DeleteCategValuesErrors, DeleteCategValuesResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectInvitationData, DeleteProjectInvitationErrors, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberErrors, DeleteProjectMemberResponses, DeleteProjectResponses, DeleteSiteData, DeleteSiteErrors, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DisconnectUserData, DisconnectUserErrors, DisconnectUserResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureMyUserData, EnsureMyUserErrors, EnsureMyUserResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetAppInstallUrlData, GetAppInstallUrlErrors, GetAppInstallUrlResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetOAuthUrlData, GetOAuthUrlErrors, GetOAuthUrlResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetPublicTemplatesData, GetPublicTemplatesErrors, GetPublicTemplatesResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserActivePromotionsData, GetUserActivePromotionsErrors, GetUserActivePromotionsResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponses, GetUsersByEmailsData, GetUsersByEmailsErrors, GetUsersByEmailsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, GetValuesData, GetValuesErrors, GetValuesResponses, InternalCreateCommentData, InternalCreateCommentErrors, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyErrors, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentErrors, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyErrors, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentErrors, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyErrors, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentErrors, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsErrors, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentErrors, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentErrors, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberErrors, InviteProjectMemberResponses, IsPromotionOpenData, IsPromotionOpenErrors, IsPromotionOpenResponses, ListFilesData, ListFilesErrors, ListFilesResponses, OpenFeatureToggleData, OpenFeatureToggleErrors, OpenFeatureToggleResponses, PurgeUserAccountData, PurgeUserAccountErrors, PurgeUserAccountResponses, RemoveTemplateSharedWithData, RemoveTemplateSharedWithErrors, RemoveTemplateSharedWithResponses, ReplaceCategValuesData, ReplaceCategValuesErrors, ReplaceCategValuesResponses, SaveMediaData, SaveMediaErrors, SaveMediaResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, SetValueData, SetValueErrors, SetValueResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
4
|
+
import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithErrors, AddTemplateSharedWithResponses, AddUserToPromotionData, AddUserToPromotionErrors, AddUserToPromotionResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminLogActionData, AdminLogActionErrors, AdminLogActionResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CloseFeatureToggleData, CloseFeatureToggleErrors, CloseFeatureToggleResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateReplyData, CreateReplyErrors, CreateReplyResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeactivateUserPromotionData, DeactivateUserPromotionErrors, DeactivateUserPromotionResponses, DeleteCategValuesData, DeleteCategValuesErrors, DeleteCategValuesResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectInvitationData, DeleteProjectInvitationErrors, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberErrors, DeleteProjectMemberResponses, DeleteProjectResponses, DeleteReplyData, DeleteReplyErrors, DeleteReplyResponses, DeleteSiteData, DeleteSiteErrors, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DisconnectUserData, DisconnectUserErrors, DisconnectUserResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditReplyData, EditReplyErrors, EditReplyResponses, EnsureMyUserData, EnsureMyUserErrors, EnsureMyUserResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetAppInstallUrlData, GetAppInstallUrlErrors, GetAppInstallUrlResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCommentData, GetCommentErrors, GetCommentResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetOAuthUrlData, GetOAuthUrlErrors, GetOAuthUrlResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetProjectInitDataData, GetProjectInitDataErrors, GetProjectInitDataResponses, GetPublicTemplatesData, GetPublicTemplatesErrors, GetPublicTemplatesResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserActivePromotionsData, GetUserActivePromotionsErrors, GetUserActivePromotionsResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponses, GetUsersByEmailsData, GetUsersByEmailsErrors, GetUsersByEmailsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, GetValuesData, GetValuesErrors, GetValuesResponses, InternalCreateCommentData, InternalCreateCommentErrors, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyErrors, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentErrors, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyErrors, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentErrors, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyErrors, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentErrors, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsErrors, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentErrors, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentErrors, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberErrors, InviteProjectMemberResponses, IsPromotionOpenData, IsPromotionOpenErrors, IsPromotionOpenResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, MarkProjectAsInitializedData, MarkProjectAsInitializedErrors, MarkProjectAsInitializedResponses, OpenFeatureToggleData, OpenFeatureToggleErrors, OpenFeatureToggleResponses, PurgeUserAccountData, PurgeUserAccountErrors, PurgeUserAccountResponses, RemoveTemplateSharedWithData, RemoveTemplateSharedWithErrors, RemoveTemplateSharedWithResponses, ReopenCommentData, ReopenCommentErrors, ReopenCommentResponses, ReplaceCategValuesData, ReplaceCategValuesErrors, ReplaceCategValuesResponses, ResolveCommentData, ResolveCommentErrors, ResolveCommentResponses, SaveMediaData, SaveMediaErrors, SaveMediaResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, SetValueData, SetValueErrors, SetValueResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
5
5
|
|
|
6
6
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
7
7
|
/**
|
|
@@ -307,6 +307,21 @@ export class Project {
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
public static markProjectAsInitialized<ThrowOnError extends boolean = false>(options: Options<MarkProjectAsInitializedData, ThrowOnError>): RequestResult<MarkProjectAsInitializedResponses, MarkProjectAsInitializedErrors, ThrowOnError> {
|
|
311
|
+
return options.client.delete<MarkProjectAsInitializedResponses, MarkProjectAsInitializedErrors, ThrowOnError>({
|
|
312
|
+
url: '/project/{projectId}/project-init-data',
|
|
313
|
+
...options,
|
|
314
|
+
headers: {
|
|
315
|
+
'Content-Type': 'application/json',
|
|
316
|
+
...options.headers
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
public static getProjectInitData<ThrowOnError extends boolean = false>(options: Options<GetProjectInitDataData, ThrowOnError>): RequestResult<GetProjectInitDataResponses, GetProjectInitDataErrors, ThrowOnError> {
|
|
322
|
+
return options.client.get<GetProjectInitDataResponses, GetProjectInitDataErrors, ThrowOnError>({ url: '/project/{projectId}/project-init-data', ...options });
|
|
323
|
+
}
|
|
324
|
+
|
|
310
325
|
public static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError> {
|
|
311
326
|
return options.client.post<CreateProjectResponses, CreateProjectErrors, ThrowOnError>({
|
|
312
327
|
url: '/project',
|
|
@@ -358,14 +373,23 @@ export class Project {
|
|
|
358
373
|
}
|
|
359
374
|
|
|
360
375
|
export class Comments {
|
|
376
|
+
/**
|
|
377
|
+
* @deprecated
|
|
378
|
+
*/
|
|
361
379
|
public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>): RequestResult<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError> {
|
|
362
380
|
return options.client.delete<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
|
|
363
381
|
}
|
|
364
382
|
|
|
383
|
+
/**
|
|
384
|
+
* @deprecated
|
|
385
|
+
*/
|
|
365
386
|
public static internalGetProjectComment<ThrowOnError extends boolean = false>(options: Options<InternalGetProjectCommentData, ThrowOnError>): RequestResult<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError> {
|
|
366
387
|
return options.client.get<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
|
|
367
388
|
}
|
|
368
389
|
|
|
390
|
+
/**
|
|
391
|
+
* @deprecated
|
|
392
|
+
*/
|
|
369
393
|
public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>): RequestResult<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError> {
|
|
370
394
|
return options.client.patch<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError>({
|
|
371
395
|
url: '/project/{projectId}/comments/{commentId}',
|
|
@@ -377,10 +401,16 @@ export class Comments {
|
|
|
377
401
|
});
|
|
378
402
|
}
|
|
379
403
|
|
|
404
|
+
/**
|
|
405
|
+
* @deprecated
|
|
406
|
+
*/
|
|
380
407
|
public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>): RequestResult<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError> {
|
|
381
408
|
return options.client.get<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError>({ url: '/project/{projectId}/comments', ...options });
|
|
382
409
|
}
|
|
383
410
|
|
|
411
|
+
/**
|
|
412
|
+
* @deprecated
|
|
413
|
+
*/
|
|
384
414
|
public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>): RequestResult<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError> {
|
|
385
415
|
return options.client.post<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError>({
|
|
386
416
|
url: '/project/{projectId}/comments',
|
|
@@ -392,14 +422,23 @@ export class Comments {
|
|
|
392
422
|
});
|
|
393
423
|
}
|
|
394
424
|
|
|
425
|
+
/**
|
|
426
|
+
* @deprecated
|
|
427
|
+
*/
|
|
395
428
|
public static internalResolveComment<ThrowOnError extends boolean = false>(options: Options<InternalResolveCommentData, ThrowOnError>): RequestResult<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError> {
|
|
396
429
|
return options.client.post<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/resolve', ...options });
|
|
397
430
|
}
|
|
398
431
|
|
|
432
|
+
/**
|
|
433
|
+
* @deprecated
|
|
434
|
+
*/
|
|
399
435
|
public static internalReopenComment<ThrowOnError extends boolean = false>(options: Options<InternalReopenCommentData, ThrowOnError>): RequestResult<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError> {
|
|
400
436
|
return options.client.post<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/reopen', ...options });
|
|
401
437
|
}
|
|
402
438
|
|
|
439
|
+
/**
|
|
440
|
+
* @deprecated
|
|
441
|
+
*/
|
|
403
442
|
public static internalCreateReply<ThrowOnError extends boolean = false>(options: Options<InternalCreateReplyData, ThrowOnError>): RequestResult<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError> {
|
|
404
443
|
return options.client.post<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError>({
|
|
405
444
|
url: '/project/{projectId}/comments/{commentId}/replies',
|
|
@@ -411,10 +450,16 @@ export class Comments {
|
|
|
411
450
|
});
|
|
412
451
|
}
|
|
413
452
|
|
|
453
|
+
/**
|
|
454
|
+
* @deprecated
|
|
455
|
+
*/
|
|
414
456
|
public static internalDeleteReply<ThrowOnError extends boolean = false>(options: Options<InternalDeleteReplyData, ThrowOnError>): RequestResult<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError> {
|
|
415
457
|
return options.client.delete<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}', ...options });
|
|
416
458
|
}
|
|
417
459
|
|
|
460
|
+
/**
|
|
461
|
+
* @deprecated
|
|
462
|
+
*/
|
|
418
463
|
public static internalEditReply<ThrowOnError extends boolean = false>(options: Options<InternalEditReplyData, ThrowOnError>): RequestResult<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError> {
|
|
419
464
|
return options.client.patch<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError>({
|
|
420
465
|
url: '/project/{projectId}/comments/{commentId}/replies/{replyId}',
|
|
@@ -425,6 +470,74 @@ export class Comments {
|
|
|
425
470
|
}
|
|
426
471
|
});
|
|
427
472
|
}
|
|
473
|
+
|
|
474
|
+
public static deleteComment<ThrowOnError extends boolean = false>(options: Options<DeleteCommentData, ThrowOnError>): RequestResult<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError> {
|
|
475
|
+
return options.client.delete<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}/{commentId}', ...options });
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
public static getComment<ThrowOnError extends boolean = false>(options: Options<GetCommentData, ThrowOnError>): RequestResult<GetCommentResponses, GetCommentErrors, ThrowOnError> {
|
|
479
|
+
return options.client.get<GetCommentResponses, GetCommentErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}/{commentId}', ...options });
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
public static editComment<ThrowOnError extends boolean = false>(options: Options<EditCommentData, ThrowOnError>): RequestResult<EditCommentResponses, EditCommentErrors, ThrowOnError> {
|
|
483
|
+
return options.client.patch<EditCommentResponses, EditCommentErrors, ThrowOnError>({
|
|
484
|
+
url: '/comments/{hostType}/{hostId}/{commentId}',
|
|
485
|
+
...options,
|
|
486
|
+
headers: {
|
|
487
|
+
'Content-Type': 'application/json',
|
|
488
|
+
...options.headers
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
public static listComments<ThrowOnError extends boolean = false>(options: Options<ListCommentsData, ThrowOnError>): RequestResult<ListCommentsResponses, ListCommentsErrors, ThrowOnError> {
|
|
494
|
+
return options.client.get<ListCommentsResponses, ListCommentsErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}', ...options });
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
public static createComment<ThrowOnError extends boolean = false>(options: Options<CreateCommentData, ThrowOnError>): RequestResult<CreateCommentResponses, CreateCommentErrors, ThrowOnError> {
|
|
498
|
+
return options.client.post<CreateCommentResponses, CreateCommentErrors, ThrowOnError>({
|
|
499
|
+
url: '/comments/{hostType}/{hostId}',
|
|
500
|
+
...options,
|
|
501
|
+
headers: {
|
|
502
|
+
'Content-Type': 'application/json',
|
|
503
|
+
...options.headers
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
public static resolveComment<ThrowOnError extends boolean = false>(options: Options<ResolveCommentData, ThrowOnError>): RequestResult<ResolveCommentResponses, ResolveCommentErrors, ThrowOnError> {
|
|
509
|
+
return options.client.post<ResolveCommentResponses, ResolveCommentErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}/{commentId}/resolve', ...options });
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
public static reopenComment<ThrowOnError extends boolean = false>(options: Options<ReopenCommentData, ThrowOnError>): RequestResult<ReopenCommentResponses, ReopenCommentErrors, ThrowOnError> {
|
|
513
|
+
return options.client.post<ReopenCommentResponses, ReopenCommentErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}/{commentId}/reopen', ...options });
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
public static createReply<ThrowOnError extends boolean = false>(options: Options<CreateReplyData, ThrowOnError>): RequestResult<CreateReplyResponses, CreateReplyErrors, ThrowOnError> {
|
|
517
|
+
return options.client.post<CreateReplyResponses, CreateReplyErrors, ThrowOnError>({
|
|
518
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies',
|
|
519
|
+
...options,
|
|
520
|
+
headers: {
|
|
521
|
+
'Content-Type': 'application/json',
|
|
522
|
+
...options.headers
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
public static deleteReply<ThrowOnError extends boolean = false>(options: Options<DeleteReplyData, ThrowOnError>): RequestResult<DeleteReplyResponses, DeleteReplyErrors, ThrowOnError> {
|
|
528
|
+
return options.client.delete<DeleteReplyResponses, DeleteReplyErrors, ThrowOnError>({ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}', ...options });
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
public static editReply<ThrowOnError extends boolean = false>(options: Options<EditReplyData, ThrowOnError>): RequestResult<EditReplyResponses, EditReplyErrors, ThrowOnError> {
|
|
532
|
+
return options.client.patch<EditReplyResponses, EditReplyErrors, ThrowOnError>({
|
|
533
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}',
|
|
534
|
+
...options,
|
|
535
|
+
headers: {
|
|
536
|
+
'Content-Type': 'application/json',
|
|
537
|
+
...options.headers
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
428
541
|
}
|
|
429
542
|
|
|
430
543
|
export class Template {
|