@dazl/internal-api-client 1.22.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +103 -119
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +4 -2
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +5 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/db/generated-types.d.ts +3 -0
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/types.gen.d.ts +8 -1
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/client.gen.ts +111 -129
- package/src/client/types.gen.ts +4 -2
- package/src/client/utils.gen.ts +4 -2
- package/src/db/generated-types.ts +3 -0
- package/src/index.ts +1 -1
- package/src/types.gen.ts +9 -1
package/src/client/client.gen.ts
CHANGED
|
@@ -75,171 +75,154 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
const request: Client['request'] = async (options) => {
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
redirect: 'follow',
|
|
81
|
-
...opts,
|
|
82
|
-
body: getValidRequestBody(opts),
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
let request = new Request(url, requestInit);
|
|
86
|
-
|
|
87
|
-
for (const fn of interceptors.request.fns) {
|
|
88
|
-
if (fn) {
|
|
89
|
-
request = await fn(request, opts);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
78
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
79
|
+
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
92
80
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const _fetch = opts.fetch!;
|
|
96
|
-
let response: Response;
|
|
81
|
+
let request: Request | undefined;
|
|
82
|
+
let response: Response | undefined;
|
|
97
83
|
|
|
98
84
|
try {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
85
|
+
const { opts, url } = await beforeRequest(options);
|
|
86
|
+
const requestInit: ReqInit = {
|
|
87
|
+
redirect: 'follow',
|
|
88
|
+
...opts,
|
|
89
|
+
body: getValidRequestBody(opts),
|
|
90
|
+
};
|
|
103
91
|
|
|
104
|
-
|
|
92
|
+
request = new Request(url, requestInit);
|
|
93
|
+
|
|
94
|
+
for (const fn of interceptors.request.fns) {
|
|
105
95
|
if (fn) {
|
|
106
|
-
|
|
96
|
+
request = await fn(request, opts);
|
|
107
97
|
}
|
|
108
98
|
}
|
|
109
99
|
|
|
110
|
-
|
|
100
|
+
// fetch must be assigned here, otherwise it would throw the error:
|
|
101
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
102
|
+
const _fetch = opts.fetch!;
|
|
111
103
|
|
|
112
|
-
|
|
113
|
-
throw finalError;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Return error response
|
|
117
|
-
return opts.responseStyle === 'data'
|
|
118
|
-
? undefined
|
|
119
|
-
: {
|
|
120
|
-
error: finalError,
|
|
121
|
-
request,
|
|
122
|
-
response: undefined as any,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
104
|
+
response = await _fetch(request);
|
|
125
105
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
106
|
+
for (const fn of interceptors.response.fns) {
|
|
107
|
+
if (fn) {
|
|
108
|
+
response = await fn(response, request, opts);
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const result = {
|
|
133
|
-
request,
|
|
134
|
-
response,
|
|
135
|
-
};
|
|
136
111
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
112
|
+
const result = {
|
|
113
|
+
request,
|
|
114
|
+
response,
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
if (response.ok) {
|
|
118
|
+
const parseAs =
|
|
119
|
+
(opts.parseAs === 'auto'
|
|
120
|
+
? getParseAs(response.headers.get('Content-Type'))
|
|
121
|
+
: opts.parseAs) ?? 'json';
|
|
122
|
+
|
|
123
|
+
if (response.status === 204 || response.headers.get('Content-Length') === '0') {
|
|
124
|
+
let emptyData: any;
|
|
125
|
+
switch (parseAs) {
|
|
126
|
+
case 'arrayBuffer':
|
|
127
|
+
case 'blob':
|
|
128
|
+
case 'text':
|
|
129
|
+
emptyData = await response[parseAs]();
|
|
130
|
+
break;
|
|
131
|
+
case 'formData':
|
|
132
|
+
emptyData = new FormData();
|
|
133
|
+
break;
|
|
134
|
+
case 'stream':
|
|
135
|
+
emptyData = response.body;
|
|
136
|
+
break;
|
|
137
|
+
case 'json':
|
|
138
|
+
default:
|
|
139
|
+
emptyData = {};
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
return opts.responseStyle === 'data'
|
|
143
|
+
? emptyData
|
|
144
|
+
: {
|
|
145
|
+
data: emptyData,
|
|
146
|
+
...result,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
142
149
|
|
|
143
|
-
|
|
144
|
-
let emptyData: any;
|
|
150
|
+
let data: any;
|
|
145
151
|
switch (parseAs) {
|
|
146
152
|
case 'arrayBuffer':
|
|
147
153
|
case 'blob':
|
|
154
|
+
case 'formData':
|
|
148
155
|
case 'text':
|
|
149
|
-
|
|
156
|
+
data = await response[parseAs]();
|
|
150
157
|
break;
|
|
151
|
-
case '
|
|
152
|
-
|
|
158
|
+
case 'json': {
|
|
159
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
160
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
161
|
+
const text = await response.text();
|
|
162
|
+
data = text ? JSON.parse(text) : {};
|
|
153
163
|
break;
|
|
164
|
+
}
|
|
154
165
|
case 'stream':
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
166
|
+
return opts.responseStyle === 'data'
|
|
167
|
+
? response.body
|
|
168
|
+
: {
|
|
169
|
+
data: response.body,
|
|
170
|
+
...result,
|
|
171
|
+
};
|
|
161
172
|
}
|
|
173
|
+
|
|
174
|
+
if (parseAs === 'json') {
|
|
175
|
+
if (opts.responseValidator) {
|
|
176
|
+
await opts.responseValidator(data);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (opts.responseTransformer) {
|
|
180
|
+
data = await opts.responseTransformer(data);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
162
184
|
return opts.responseStyle === 'data'
|
|
163
|
-
?
|
|
185
|
+
? data
|
|
164
186
|
: {
|
|
165
|
-
data
|
|
187
|
+
data,
|
|
166
188
|
...result,
|
|
167
189
|
};
|
|
168
190
|
}
|
|
169
191
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
break;
|
|
178
|
-
case 'json': {
|
|
179
|
-
// Some servers return 200 with no Content-Length and empty body.
|
|
180
|
-
// response.json() would throw; read as text and parse if non-empty.
|
|
181
|
-
const text = await response.text();
|
|
182
|
-
data = text ? JSON.parse(text) : {};
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case 'stream':
|
|
186
|
-
return opts.responseStyle === 'data'
|
|
187
|
-
? response.body
|
|
188
|
-
: {
|
|
189
|
-
data: response.body,
|
|
190
|
-
...result,
|
|
191
|
-
};
|
|
192
|
+
const textError = await response.text();
|
|
193
|
+
let jsonError: unknown;
|
|
194
|
+
|
|
195
|
+
try {
|
|
196
|
+
jsonError = JSON.parse(textError);
|
|
197
|
+
} catch {
|
|
198
|
+
// noop
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
201
|
+
throw jsonError ?? textError;
|
|
202
|
+
} catch (error) {
|
|
203
|
+
let finalError = error;
|
|
198
204
|
|
|
199
|
-
|
|
200
|
-
|
|
205
|
+
for (const fn of interceptors.error.fns) {
|
|
206
|
+
if (fn) {
|
|
207
|
+
finalError = await fn(finalError, response, request, options as ResolvedRequestOptions);
|
|
201
208
|
}
|
|
202
209
|
}
|
|
203
210
|
|
|
204
|
-
|
|
205
|
-
? data
|
|
206
|
-
: {
|
|
207
|
-
data,
|
|
208
|
-
...result,
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const textError = await response.text();
|
|
213
|
-
let jsonError: unknown;
|
|
214
|
-
|
|
215
|
-
try {
|
|
216
|
-
jsonError = JSON.parse(textError);
|
|
217
|
-
} catch {
|
|
218
|
-
// noop
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const error = jsonError ?? textError;
|
|
222
|
-
let finalError = error;
|
|
211
|
+
finalError = finalError || {};
|
|
223
212
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
finalError = (await fn(error, response, request, opts)) as string;
|
|
213
|
+
if (throwOnError) {
|
|
214
|
+
throw finalError;
|
|
227
215
|
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
finalError = finalError || ({} as string);
|
|
231
216
|
|
|
232
|
-
|
|
233
|
-
|
|
217
|
+
// TODO: we probably want to return error and improve types
|
|
218
|
+
return responseStyle === 'data'
|
|
219
|
+
? undefined
|
|
220
|
+
: {
|
|
221
|
+
error: finalError,
|
|
222
|
+
request,
|
|
223
|
+
response,
|
|
224
|
+
};
|
|
234
225
|
}
|
|
235
|
-
|
|
236
|
-
// TODO: we probably want to return error and improve types
|
|
237
|
-
return opts.responseStyle === 'data'
|
|
238
|
-
? undefined
|
|
239
|
-
: {
|
|
240
|
-
error: finalError,
|
|
241
|
-
...result,
|
|
242
|
-
};
|
|
243
226
|
};
|
|
244
227
|
|
|
245
228
|
const makeMethodFn = (method: Uppercase<HttpMethod>) => (options: RequestOptions) =>
|
|
@@ -250,7 +233,6 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
250
233
|
return createSseClient({
|
|
251
234
|
...opts,
|
|
252
235
|
body: opts.body as BodyInit | null | undefined,
|
|
253
|
-
headers: opts.headers as unknown as Record<string, string>,
|
|
254
236
|
method,
|
|
255
237
|
onRequest: async (url, init) => {
|
|
256
238
|
let request = new Request(url, init);
|
package/src/client/types.gen.ts
CHANGED
|
@@ -127,8 +127,10 @@ export type RequestResult<
|
|
|
127
127
|
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
128
128
|
}
|
|
129
129
|
) & {
|
|
130
|
-
request
|
|
131
|
-
|
|
130
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
131
|
+
request?: Request;
|
|
132
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
133
|
+
response?: Response;
|
|
132
134
|
}
|
|
133
135
|
>;
|
|
134
136
|
|
package/src/client/utils.gen.ts
CHANGED
|
@@ -218,8 +218,10 @@ export const mergeHeaders = (
|
|
|
218
218
|
|
|
219
219
|
type ErrInterceptor<Err, Res, Req, Options> = (
|
|
220
220
|
error: Err,
|
|
221
|
-
response
|
|
222
|
-
|
|
221
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
222
|
+
response: Res | undefined,
|
|
223
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
224
|
+
request: Req | undefined,
|
|
223
225
|
options: Options,
|
|
224
226
|
) => Err | Promise<Err>;
|
|
225
227
|
|
|
@@ -94,6 +94,7 @@ export interface FeatureToggle {
|
|
|
94
94
|
export interface GitHubUser {
|
|
95
95
|
accessToken: string | null;
|
|
96
96
|
createdAt: Generated<Timestamp>;
|
|
97
|
+
dazlUserId: string | null;
|
|
97
98
|
refreshToken: string | null;
|
|
98
99
|
updatedAt: Generated<Timestamp>;
|
|
99
100
|
userDazlId: string;
|
|
@@ -117,6 +118,7 @@ export interface Media {
|
|
|
117
118
|
|
|
118
119
|
export interface NetlifyAccount {
|
|
119
120
|
createdAt: Generated<Timestamp>;
|
|
121
|
+
dazlUserId: string | null;
|
|
120
122
|
netlifyAccountId: string;
|
|
121
123
|
netlifySlug: string;
|
|
122
124
|
typeId: string | null;
|
|
@@ -221,6 +223,7 @@ export interface UserKeyValue {
|
|
|
221
223
|
|
|
222
224
|
export interface UserSettings {
|
|
223
225
|
createdAt: Generated<Timestamp>;
|
|
226
|
+
dazlUserId: string | null;
|
|
224
227
|
settings: Json;
|
|
225
228
|
updatedAt: Generated<Timestamp>;
|
|
226
229
|
userId: string;
|
package/src/index.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
export { client, type CreateClientConfig } from './client.gen.ts';
|
|
4
4
|
export { Admin, Billing, Capture, Comments, EnvConfig, GitHub, Media, type Options, Project, Publish, Search, Template, User, UserKeyValue, UserSettings } from './sdk.gen.ts';
|
|
5
|
-
export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithError, AddTemplateSharedWithErrors, AddTemplateSharedWithResponse, AddTemplateSharedWithResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, 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, CustomerInfo, 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, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, 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, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, 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, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, 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, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, PlanCommentContext, ProjectRaw, ProjectWithScreenshot, 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, Screenshot, 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';
|
|
5
|
+
export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithError, AddTemplateSharedWithErrors, AddTemplateSharedWithResponse, AddTemplateSharedWithResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, 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, CustomerInfo, 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, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, FileCommentContext, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, 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, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, 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, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, 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, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, PlanCommentContext, ProjectRaw, ProjectWithScreenshot, 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, Screenshot, 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/types.gen.ts
CHANGED
|
@@ -139,7 +139,9 @@ export type CommentContext = ({
|
|
|
139
139
|
type: 'stage';
|
|
140
140
|
} & StageCommentContext) | ({
|
|
141
141
|
type: 'plan';
|
|
142
|
-
} & PlanCommentContext)
|
|
142
|
+
} & PlanCommentContext) | ({
|
|
143
|
+
type: 'file';
|
|
144
|
+
} & FileCommentContext);
|
|
143
145
|
|
|
144
146
|
export type PageCommentContext = {
|
|
145
147
|
type: 'page';
|
|
@@ -177,6 +179,12 @@ export type PlanCommentContext = {
|
|
|
177
179
|
type: 'plan';
|
|
178
180
|
};
|
|
179
181
|
|
|
182
|
+
export type FileCommentContext = {
|
|
183
|
+
type: 'file';
|
|
184
|
+
filePath: string;
|
|
185
|
+
anchor?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
180
188
|
export type InternalCreateCommentInput = {
|
|
181
189
|
content: string;
|
|
182
190
|
authorDazlUserId: string;
|