@siteping/server 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/concurrency.d.cts +14 -0
- package/dist/concurrency.d.ts +14 -0
- package/dist/deep-link.d.cts +14 -0
- package/dist/deep-link.d.ts +14 -0
- package/dist/email.d.cts +22 -0
- package/dist/email.d.ts +22 -0
- package/dist/errors.d.cts +55 -0
- package/dist/errors.d.ts +55 -0
- package/dist/filters.d.cts +82 -0
- package/dist/filters.d.ts +82 -0
- package/dist/i18n.d.cts +85 -0
- package/dist/i18n.d.ts +85 -0
- package/dist/index.cjs +1270 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +488 -0
- package/dist/index.d.ts +488 -0
- package/dist/index.js +1237 -0
- package/dist/index.js.map +1 -0
- package/dist/schema.d.cts +317 -0
- package/dist/schema.d.ts +317 -0
- package/dist/screenshot-storage.d.cts +103 -0
- package/dist/screenshot-storage.d.ts +103 -0
- package/dist/siteping-core.d.cts +20 -0
- package/dist/siteping-core.d.ts +20 -0
- package/dist/store-helpers.d.cts +140 -0
- package/dist/store-helpers.d.ts +140 -0
- package/dist/type-utils.d.cts +66 -0
- package/dist/type-utils.d.ts +66 -0
- package/dist/types.d.cts +1206 -0
- package/dist/types.d.ts +1206 -0
- package/dist/wire.d.cts +68 -0
- package/dist/wire.d.ts +68 -0
- package/package.json +64 -4
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Siteping database models — single source of truth.
|
|
3
|
+
*
|
|
4
|
+
* Used by:
|
|
5
|
+
* - CLI to generate Prisma schema (via prisma-ast)
|
|
6
|
+
* - Adapter for Zod validation
|
|
7
|
+
* - Type exports
|
|
8
|
+
*
|
|
9
|
+
* This is a TS representation, NOT a .prisma file.
|
|
10
|
+
* The CLI generates the actual Prisma schema from this definition.
|
|
11
|
+
*/
|
|
12
|
+
/** Prisma scalar types supported by Siteping field definitions. */
|
|
13
|
+
export type PrismaScalarType = "String" | "Boolean" | "Int" | "BigInt" | "Float" | "Decimal" | "DateTime" | "Json" | "Bytes";
|
|
14
|
+
/** Prisma native column hints applied via `@db.<NativeType>`. */
|
|
15
|
+
export type PrismaNativeType = "Text" | "VarChar" | "Char" | "MediumText" | "LongText" | (string & {});
|
|
16
|
+
/** Relation cardinality between two Siteping models. */
|
|
17
|
+
export type RelationKind = "1-to-many" | "many-to-1";
|
|
18
|
+
/** Prisma `onDelete` referential action. */
|
|
19
|
+
export type RelationOnDelete = "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
20
|
+
/**
|
|
21
|
+
* Relation metadata attached to a {@link FieldDef}.
|
|
22
|
+
*
|
|
23
|
+
* - `1-to-many` fields point at the related model and require no inverse
|
|
24
|
+
* column on this side (`fields`/`references` are inferred by Prisma).
|
|
25
|
+
* - `many-to-1` fields own the foreign key — Prisma needs `fields` and
|
|
26
|
+
* `references` to wire it up.
|
|
27
|
+
*/
|
|
28
|
+
export interface RelationDef {
|
|
29
|
+
kind: RelationKind;
|
|
30
|
+
model: string;
|
|
31
|
+
fields?: readonly string[];
|
|
32
|
+
references?: readonly string[];
|
|
33
|
+
onDelete?: RelationOnDelete;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Definition of a single field in a Siteping database model.
|
|
37
|
+
*
|
|
38
|
+
* The interface intentionally keeps a wide structural shape so it stays
|
|
39
|
+
* easy to extend, but consumers can narrow via {@link isRelationField} /
|
|
40
|
+
* {@link isScalarField} when relation vs. scalar logic diverges.
|
|
41
|
+
*/
|
|
42
|
+
export interface FieldDef {
|
|
43
|
+
/** Prisma type (e.g. "String", "Int") for scalars, model name for relations. */
|
|
44
|
+
type: PrismaScalarType | (string & {});
|
|
45
|
+
/** Default literal (`"open"`) or function call (`now()`, `cuid()`). */
|
|
46
|
+
default?: string;
|
|
47
|
+
/** Whether the column is nullable. */
|
|
48
|
+
optional?: boolean;
|
|
49
|
+
/** Set on relation fields — absent on scalars. */
|
|
50
|
+
relation?: RelationDef;
|
|
51
|
+
isId?: boolean;
|
|
52
|
+
isUnique?: boolean;
|
|
53
|
+
/** Prisma native type attribute (e.g. "Text" for @db.Text) — used for MySQL compatibility on long strings */
|
|
54
|
+
nativeType?: PrismaNativeType;
|
|
55
|
+
/** Prisma @updatedAt attribute */
|
|
56
|
+
isUpdatedAt?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/** Narrowing predicate: returns `true` when `field` declares a Prisma relation. */
|
|
59
|
+
export declare function isRelationField(field: FieldDef): field is FieldDef & {
|
|
60
|
+
relation: RelationDef;
|
|
61
|
+
};
|
|
62
|
+
/** Narrowing predicate: returns `true` when `field` is a Prisma scalar (no relation metadata). */
|
|
63
|
+
export declare function isScalarField(field: FieldDef): field is FieldDef & {
|
|
64
|
+
relation?: undefined;
|
|
65
|
+
};
|
|
66
|
+
/** Definition of a composite index on a Siteping database model. */
|
|
67
|
+
export interface IndexDef {
|
|
68
|
+
fields: readonly string[];
|
|
69
|
+
}
|
|
70
|
+
/** Definition of a single Siteping database model (fields + indexes). */
|
|
71
|
+
export interface ModelDef {
|
|
72
|
+
fields: Record<string, FieldDef>;
|
|
73
|
+
indexes?: readonly IndexDef[];
|
|
74
|
+
}
|
|
75
|
+
declare const _SITEPING_MODELS: {
|
|
76
|
+
readonly SitepingFeedback: {
|
|
77
|
+
readonly fields: {
|
|
78
|
+
readonly id: {
|
|
79
|
+
readonly type: "String";
|
|
80
|
+
readonly isId: true;
|
|
81
|
+
readonly default: "cuid()";
|
|
82
|
+
};
|
|
83
|
+
readonly projectName: {
|
|
84
|
+
readonly type: "String";
|
|
85
|
+
};
|
|
86
|
+
readonly type: {
|
|
87
|
+
readonly type: "String";
|
|
88
|
+
};
|
|
89
|
+
readonly message: {
|
|
90
|
+
readonly type: "String";
|
|
91
|
+
readonly nativeType: "Text";
|
|
92
|
+
};
|
|
93
|
+
readonly status: {
|
|
94
|
+
readonly type: "String";
|
|
95
|
+
readonly default: "\"open\"";
|
|
96
|
+
};
|
|
97
|
+
readonly url: {
|
|
98
|
+
readonly type: "String";
|
|
99
|
+
};
|
|
100
|
+
readonly urlPattern: {
|
|
101
|
+
readonly type: "String";
|
|
102
|
+
readonly optional: true;
|
|
103
|
+
};
|
|
104
|
+
readonly screenshotUrl: {
|
|
105
|
+
readonly type: "String";
|
|
106
|
+
readonly optional: true;
|
|
107
|
+
readonly nativeType: "Text";
|
|
108
|
+
};
|
|
109
|
+
readonly screenshotRegion: {
|
|
110
|
+
readonly type: "Json";
|
|
111
|
+
readonly optional: true;
|
|
112
|
+
};
|
|
113
|
+
readonly diagnostics: {
|
|
114
|
+
readonly type: "Json";
|
|
115
|
+
readonly optional: true;
|
|
116
|
+
};
|
|
117
|
+
readonly viewport: {
|
|
118
|
+
readonly type: "String";
|
|
119
|
+
};
|
|
120
|
+
readonly userAgent: {
|
|
121
|
+
readonly type: "String";
|
|
122
|
+
};
|
|
123
|
+
readonly authorName: {
|
|
124
|
+
readonly type: "String";
|
|
125
|
+
};
|
|
126
|
+
readonly authorEmail: {
|
|
127
|
+
readonly type: "String";
|
|
128
|
+
};
|
|
129
|
+
readonly clientId: {
|
|
130
|
+
readonly type: "String";
|
|
131
|
+
readonly isUnique: true;
|
|
132
|
+
};
|
|
133
|
+
readonly resolvedAt: {
|
|
134
|
+
readonly type: "DateTime";
|
|
135
|
+
readonly optional: true;
|
|
136
|
+
};
|
|
137
|
+
readonly createdAt: {
|
|
138
|
+
readonly type: "DateTime";
|
|
139
|
+
readonly default: "now()";
|
|
140
|
+
};
|
|
141
|
+
readonly updatedAt: {
|
|
142
|
+
readonly type: "DateTime";
|
|
143
|
+
readonly isUpdatedAt: true;
|
|
144
|
+
};
|
|
145
|
+
readonly annotations: {
|
|
146
|
+
readonly type: "SitepingAnnotation";
|
|
147
|
+
readonly relation: {
|
|
148
|
+
readonly kind: "1-to-many";
|
|
149
|
+
readonly model: "SitepingAnnotation";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly comments: {
|
|
153
|
+
readonly type: "SitepingComment";
|
|
154
|
+
readonly relation: {
|
|
155
|
+
readonly kind: "1-to-many";
|
|
156
|
+
readonly model: "SitepingComment";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly indexes: readonly [{
|
|
161
|
+
readonly fields: readonly ["projectName"];
|
|
162
|
+
}, {
|
|
163
|
+
readonly fields: readonly ["projectName", "status", "createdAt"];
|
|
164
|
+
}, {
|
|
165
|
+
readonly fields: readonly ["projectName", "url"];
|
|
166
|
+
}];
|
|
167
|
+
};
|
|
168
|
+
readonly SitepingAnnotation: {
|
|
169
|
+
readonly fields: {
|
|
170
|
+
readonly id: {
|
|
171
|
+
readonly type: "String";
|
|
172
|
+
readonly isId: true;
|
|
173
|
+
readonly default: "cuid()";
|
|
174
|
+
};
|
|
175
|
+
readonly feedbackId: {
|
|
176
|
+
readonly type: "String";
|
|
177
|
+
};
|
|
178
|
+
readonly feedback: {
|
|
179
|
+
readonly type: "SitepingFeedback";
|
|
180
|
+
readonly relation: {
|
|
181
|
+
readonly kind: "many-to-1";
|
|
182
|
+
readonly model: "SitepingFeedback";
|
|
183
|
+
readonly fields: readonly ["feedbackId"];
|
|
184
|
+
readonly references: readonly ["id"];
|
|
185
|
+
readonly onDelete: "Cascade";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly cssSelector: {
|
|
189
|
+
readonly type: "String";
|
|
190
|
+
readonly nativeType: "Text";
|
|
191
|
+
};
|
|
192
|
+
readonly xpath: {
|
|
193
|
+
readonly type: "String";
|
|
194
|
+
readonly nativeType: "Text";
|
|
195
|
+
};
|
|
196
|
+
readonly textSnippet: {
|
|
197
|
+
readonly type: "String";
|
|
198
|
+
readonly nativeType: "Text";
|
|
199
|
+
};
|
|
200
|
+
readonly elementTag: {
|
|
201
|
+
readonly type: "String";
|
|
202
|
+
};
|
|
203
|
+
readonly elementId: {
|
|
204
|
+
readonly type: "String";
|
|
205
|
+
readonly optional: true;
|
|
206
|
+
};
|
|
207
|
+
readonly textPrefix: {
|
|
208
|
+
readonly type: "String";
|
|
209
|
+
readonly nativeType: "Text";
|
|
210
|
+
};
|
|
211
|
+
readonly textSuffix: {
|
|
212
|
+
readonly type: "String";
|
|
213
|
+
readonly nativeType: "Text";
|
|
214
|
+
};
|
|
215
|
+
readonly fingerprint: {
|
|
216
|
+
readonly type: "String";
|
|
217
|
+
};
|
|
218
|
+
readonly neighborText: {
|
|
219
|
+
readonly type: "String";
|
|
220
|
+
readonly nativeType: "Text";
|
|
221
|
+
};
|
|
222
|
+
readonly anchorKey: {
|
|
223
|
+
readonly type: "String";
|
|
224
|
+
readonly optional: true;
|
|
225
|
+
};
|
|
226
|
+
readonly xPct: {
|
|
227
|
+
readonly type: "Float";
|
|
228
|
+
};
|
|
229
|
+
readonly yPct: {
|
|
230
|
+
readonly type: "Float";
|
|
231
|
+
};
|
|
232
|
+
readonly wPct: {
|
|
233
|
+
readonly type: "Float";
|
|
234
|
+
};
|
|
235
|
+
readonly hPct: {
|
|
236
|
+
readonly type: "Float";
|
|
237
|
+
};
|
|
238
|
+
readonly scrollX: {
|
|
239
|
+
readonly type: "Float";
|
|
240
|
+
};
|
|
241
|
+
readonly scrollY: {
|
|
242
|
+
readonly type: "Float";
|
|
243
|
+
};
|
|
244
|
+
readonly viewportW: {
|
|
245
|
+
readonly type: "Int";
|
|
246
|
+
};
|
|
247
|
+
readonly viewportH: {
|
|
248
|
+
readonly type: "Int";
|
|
249
|
+
};
|
|
250
|
+
readonly devicePixelRatio: {
|
|
251
|
+
readonly type: "Float";
|
|
252
|
+
readonly default: "1";
|
|
253
|
+
};
|
|
254
|
+
readonly createdAt: {
|
|
255
|
+
readonly type: "DateTime";
|
|
256
|
+
readonly default: "now()";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly indexes: readonly [{
|
|
260
|
+
readonly fields: readonly ["feedbackId"];
|
|
261
|
+
}];
|
|
262
|
+
};
|
|
263
|
+
readonly SitepingComment: {
|
|
264
|
+
readonly fields: {
|
|
265
|
+
readonly id: {
|
|
266
|
+
readonly type: "String";
|
|
267
|
+
readonly isId: true;
|
|
268
|
+
readonly default: "cuid()";
|
|
269
|
+
};
|
|
270
|
+
readonly feedbackId: {
|
|
271
|
+
readonly type: "String";
|
|
272
|
+
};
|
|
273
|
+
readonly feedback: {
|
|
274
|
+
readonly type: "SitepingFeedback";
|
|
275
|
+
readonly relation: {
|
|
276
|
+
readonly kind: "many-to-1";
|
|
277
|
+
readonly model: "SitepingFeedback";
|
|
278
|
+
readonly fields: readonly ["feedbackId"];
|
|
279
|
+
readonly references: readonly ["id"];
|
|
280
|
+
readonly onDelete: "Cascade";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly body: {
|
|
284
|
+
readonly type: "String";
|
|
285
|
+
readonly nativeType: "Text";
|
|
286
|
+
};
|
|
287
|
+
readonly authorName: {
|
|
288
|
+
readonly type: "String";
|
|
289
|
+
};
|
|
290
|
+
readonly authorEmail: {
|
|
291
|
+
readonly type: "String";
|
|
292
|
+
};
|
|
293
|
+
readonly authorRole: {
|
|
294
|
+
readonly type: "String";
|
|
295
|
+
readonly default: "\"client\"";
|
|
296
|
+
};
|
|
297
|
+
readonly clientId: {
|
|
298
|
+
readonly type: "String";
|
|
299
|
+
readonly isUnique: true;
|
|
300
|
+
};
|
|
301
|
+
readonly createdAt: {
|
|
302
|
+
readonly type: "DateTime";
|
|
303
|
+
readonly default: "now()";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly indexes: readonly [{
|
|
307
|
+
readonly fields: readonly ["feedbackId", "createdAt"];
|
|
308
|
+
}];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/** Map of Siteping models keyed by model name — frozen at runtime. */
|
|
312
|
+
export declare const SITEPING_MODELS: typeof _SITEPING_MODELS;
|
|
313
|
+
/** Union of every Siteping model name as a string literal. */
|
|
314
|
+
export type SitepingModelName = keyof typeof SITEPING_MODELS;
|
|
315
|
+
/** Field names declared on a specific Siteping model. */
|
|
316
|
+
export type SitepingModelFieldName<M extends SitepingModelName> = keyof (typeof SITEPING_MODELS)[M]["fields"];
|
|
317
|
+
export {};
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Siteping database models — single source of truth.
|
|
3
|
+
*
|
|
4
|
+
* Used by:
|
|
5
|
+
* - CLI to generate Prisma schema (via prisma-ast)
|
|
6
|
+
* - Adapter for Zod validation
|
|
7
|
+
* - Type exports
|
|
8
|
+
*
|
|
9
|
+
* This is a TS representation, NOT a .prisma file.
|
|
10
|
+
* The CLI generates the actual Prisma schema from this definition.
|
|
11
|
+
*/
|
|
12
|
+
/** Prisma scalar types supported by Siteping field definitions. */
|
|
13
|
+
export type PrismaScalarType = "String" | "Boolean" | "Int" | "BigInt" | "Float" | "Decimal" | "DateTime" | "Json" | "Bytes";
|
|
14
|
+
/** Prisma native column hints applied via `@db.<NativeType>`. */
|
|
15
|
+
export type PrismaNativeType = "Text" | "VarChar" | "Char" | "MediumText" | "LongText" | (string & {});
|
|
16
|
+
/** Relation cardinality between two Siteping models. */
|
|
17
|
+
export type RelationKind = "1-to-many" | "many-to-1";
|
|
18
|
+
/** Prisma `onDelete` referential action. */
|
|
19
|
+
export type RelationOnDelete = "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
20
|
+
/**
|
|
21
|
+
* Relation metadata attached to a {@link FieldDef}.
|
|
22
|
+
*
|
|
23
|
+
* - `1-to-many` fields point at the related model and require no inverse
|
|
24
|
+
* column on this side (`fields`/`references` are inferred by Prisma).
|
|
25
|
+
* - `many-to-1` fields own the foreign key — Prisma needs `fields` and
|
|
26
|
+
* `references` to wire it up.
|
|
27
|
+
*/
|
|
28
|
+
export interface RelationDef {
|
|
29
|
+
kind: RelationKind;
|
|
30
|
+
model: string;
|
|
31
|
+
fields?: readonly string[];
|
|
32
|
+
references?: readonly string[];
|
|
33
|
+
onDelete?: RelationOnDelete;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Definition of a single field in a Siteping database model.
|
|
37
|
+
*
|
|
38
|
+
* The interface intentionally keeps a wide structural shape so it stays
|
|
39
|
+
* easy to extend, but consumers can narrow via {@link isRelationField} /
|
|
40
|
+
* {@link isScalarField} when relation vs. scalar logic diverges.
|
|
41
|
+
*/
|
|
42
|
+
export interface FieldDef {
|
|
43
|
+
/** Prisma type (e.g. "String", "Int") for scalars, model name for relations. */
|
|
44
|
+
type: PrismaScalarType | (string & {});
|
|
45
|
+
/** Default literal (`"open"`) or function call (`now()`, `cuid()`). */
|
|
46
|
+
default?: string;
|
|
47
|
+
/** Whether the column is nullable. */
|
|
48
|
+
optional?: boolean;
|
|
49
|
+
/** Set on relation fields — absent on scalars. */
|
|
50
|
+
relation?: RelationDef;
|
|
51
|
+
isId?: boolean;
|
|
52
|
+
isUnique?: boolean;
|
|
53
|
+
/** Prisma native type attribute (e.g. "Text" for @db.Text) — used for MySQL compatibility on long strings */
|
|
54
|
+
nativeType?: PrismaNativeType;
|
|
55
|
+
/** Prisma @updatedAt attribute */
|
|
56
|
+
isUpdatedAt?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/** Narrowing predicate: returns `true` when `field` declares a Prisma relation. */
|
|
59
|
+
export declare function isRelationField(field: FieldDef): field is FieldDef & {
|
|
60
|
+
relation: RelationDef;
|
|
61
|
+
};
|
|
62
|
+
/** Narrowing predicate: returns `true` when `field` is a Prisma scalar (no relation metadata). */
|
|
63
|
+
export declare function isScalarField(field: FieldDef): field is FieldDef & {
|
|
64
|
+
relation?: undefined;
|
|
65
|
+
};
|
|
66
|
+
/** Definition of a composite index on a Siteping database model. */
|
|
67
|
+
export interface IndexDef {
|
|
68
|
+
fields: readonly string[];
|
|
69
|
+
}
|
|
70
|
+
/** Definition of a single Siteping database model (fields + indexes). */
|
|
71
|
+
export interface ModelDef {
|
|
72
|
+
fields: Record<string, FieldDef>;
|
|
73
|
+
indexes?: readonly IndexDef[];
|
|
74
|
+
}
|
|
75
|
+
declare const _SITEPING_MODELS: {
|
|
76
|
+
readonly SitepingFeedback: {
|
|
77
|
+
readonly fields: {
|
|
78
|
+
readonly id: {
|
|
79
|
+
readonly type: "String";
|
|
80
|
+
readonly isId: true;
|
|
81
|
+
readonly default: "cuid()";
|
|
82
|
+
};
|
|
83
|
+
readonly projectName: {
|
|
84
|
+
readonly type: "String";
|
|
85
|
+
};
|
|
86
|
+
readonly type: {
|
|
87
|
+
readonly type: "String";
|
|
88
|
+
};
|
|
89
|
+
readonly message: {
|
|
90
|
+
readonly type: "String";
|
|
91
|
+
readonly nativeType: "Text";
|
|
92
|
+
};
|
|
93
|
+
readonly status: {
|
|
94
|
+
readonly type: "String";
|
|
95
|
+
readonly default: "\"open\"";
|
|
96
|
+
};
|
|
97
|
+
readonly url: {
|
|
98
|
+
readonly type: "String";
|
|
99
|
+
};
|
|
100
|
+
readonly urlPattern: {
|
|
101
|
+
readonly type: "String";
|
|
102
|
+
readonly optional: true;
|
|
103
|
+
};
|
|
104
|
+
readonly screenshotUrl: {
|
|
105
|
+
readonly type: "String";
|
|
106
|
+
readonly optional: true;
|
|
107
|
+
readonly nativeType: "Text";
|
|
108
|
+
};
|
|
109
|
+
readonly screenshotRegion: {
|
|
110
|
+
readonly type: "Json";
|
|
111
|
+
readonly optional: true;
|
|
112
|
+
};
|
|
113
|
+
readonly diagnostics: {
|
|
114
|
+
readonly type: "Json";
|
|
115
|
+
readonly optional: true;
|
|
116
|
+
};
|
|
117
|
+
readonly viewport: {
|
|
118
|
+
readonly type: "String";
|
|
119
|
+
};
|
|
120
|
+
readonly userAgent: {
|
|
121
|
+
readonly type: "String";
|
|
122
|
+
};
|
|
123
|
+
readonly authorName: {
|
|
124
|
+
readonly type: "String";
|
|
125
|
+
};
|
|
126
|
+
readonly authorEmail: {
|
|
127
|
+
readonly type: "String";
|
|
128
|
+
};
|
|
129
|
+
readonly clientId: {
|
|
130
|
+
readonly type: "String";
|
|
131
|
+
readonly isUnique: true;
|
|
132
|
+
};
|
|
133
|
+
readonly resolvedAt: {
|
|
134
|
+
readonly type: "DateTime";
|
|
135
|
+
readonly optional: true;
|
|
136
|
+
};
|
|
137
|
+
readonly createdAt: {
|
|
138
|
+
readonly type: "DateTime";
|
|
139
|
+
readonly default: "now()";
|
|
140
|
+
};
|
|
141
|
+
readonly updatedAt: {
|
|
142
|
+
readonly type: "DateTime";
|
|
143
|
+
readonly isUpdatedAt: true;
|
|
144
|
+
};
|
|
145
|
+
readonly annotations: {
|
|
146
|
+
readonly type: "SitepingAnnotation";
|
|
147
|
+
readonly relation: {
|
|
148
|
+
readonly kind: "1-to-many";
|
|
149
|
+
readonly model: "SitepingAnnotation";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly comments: {
|
|
153
|
+
readonly type: "SitepingComment";
|
|
154
|
+
readonly relation: {
|
|
155
|
+
readonly kind: "1-to-many";
|
|
156
|
+
readonly model: "SitepingComment";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly indexes: readonly [{
|
|
161
|
+
readonly fields: readonly ["projectName"];
|
|
162
|
+
}, {
|
|
163
|
+
readonly fields: readonly ["projectName", "status", "createdAt"];
|
|
164
|
+
}, {
|
|
165
|
+
readonly fields: readonly ["projectName", "url"];
|
|
166
|
+
}];
|
|
167
|
+
};
|
|
168
|
+
readonly SitepingAnnotation: {
|
|
169
|
+
readonly fields: {
|
|
170
|
+
readonly id: {
|
|
171
|
+
readonly type: "String";
|
|
172
|
+
readonly isId: true;
|
|
173
|
+
readonly default: "cuid()";
|
|
174
|
+
};
|
|
175
|
+
readonly feedbackId: {
|
|
176
|
+
readonly type: "String";
|
|
177
|
+
};
|
|
178
|
+
readonly feedback: {
|
|
179
|
+
readonly type: "SitepingFeedback";
|
|
180
|
+
readonly relation: {
|
|
181
|
+
readonly kind: "many-to-1";
|
|
182
|
+
readonly model: "SitepingFeedback";
|
|
183
|
+
readonly fields: readonly ["feedbackId"];
|
|
184
|
+
readonly references: readonly ["id"];
|
|
185
|
+
readonly onDelete: "Cascade";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly cssSelector: {
|
|
189
|
+
readonly type: "String";
|
|
190
|
+
readonly nativeType: "Text";
|
|
191
|
+
};
|
|
192
|
+
readonly xpath: {
|
|
193
|
+
readonly type: "String";
|
|
194
|
+
readonly nativeType: "Text";
|
|
195
|
+
};
|
|
196
|
+
readonly textSnippet: {
|
|
197
|
+
readonly type: "String";
|
|
198
|
+
readonly nativeType: "Text";
|
|
199
|
+
};
|
|
200
|
+
readonly elementTag: {
|
|
201
|
+
readonly type: "String";
|
|
202
|
+
};
|
|
203
|
+
readonly elementId: {
|
|
204
|
+
readonly type: "String";
|
|
205
|
+
readonly optional: true;
|
|
206
|
+
};
|
|
207
|
+
readonly textPrefix: {
|
|
208
|
+
readonly type: "String";
|
|
209
|
+
readonly nativeType: "Text";
|
|
210
|
+
};
|
|
211
|
+
readonly textSuffix: {
|
|
212
|
+
readonly type: "String";
|
|
213
|
+
readonly nativeType: "Text";
|
|
214
|
+
};
|
|
215
|
+
readonly fingerprint: {
|
|
216
|
+
readonly type: "String";
|
|
217
|
+
};
|
|
218
|
+
readonly neighborText: {
|
|
219
|
+
readonly type: "String";
|
|
220
|
+
readonly nativeType: "Text";
|
|
221
|
+
};
|
|
222
|
+
readonly anchorKey: {
|
|
223
|
+
readonly type: "String";
|
|
224
|
+
readonly optional: true;
|
|
225
|
+
};
|
|
226
|
+
readonly xPct: {
|
|
227
|
+
readonly type: "Float";
|
|
228
|
+
};
|
|
229
|
+
readonly yPct: {
|
|
230
|
+
readonly type: "Float";
|
|
231
|
+
};
|
|
232
|
+
readonly wPct: {
|
|
233
|
+
readonly type: "Float";
|
|
234
|
+
};
|
|
235
|
+
readonly hPct: {
|
|
236
|
+
readonly type: "Float";
|
|
237
|
+
};
|
|
238
|
+
readonly scrollX: {
|
|
239
|
+
readonly type: "Float";
|
|
240
|
+
};
|
|
241
|
+
readonly scrollY: {
|
|
242
|
+
readonly type: "Float";
|
|
243
|
+
};
|
|
244
|
+
readonly viewportW: {
|
|
245
|
+
readonly type: "Int";
|
|
246
|
+
};
|
|
247
|
+
readonly viewportH: {
|
|
248
|
+
readonly type: "Int";
|
|
249
|
+
};
|
|
250
|
+
readonly devicePixelRatio: {
|
|
251
|
+
readonly type: "Float";
|
|
252
|
+
readonly default: "1";
|
|
253
|
+
};
|
|
254
|
+
readonly createdAt: {
|
|
255
|
+
readonly type: "DateTime";
|
|
256
|
+
readonly default: "now()";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly indexes: readonly [{
|
|
260
|
+
readonly fields: readonly ["feedbackId"];
|
|
261
|
+
}];
|
|
262
|
+
};
|
|
263
|
+
readonly SitepingComment: {
|
|
264
|
+
readonly fields: {
|
|
265
|
+
readonly id: {
|
|
266
|
+
readonly type: "String";
|
|
267
|
+
readonly isId: true;
|
|
268
|
+
readonly default: "cuid()";
|
|
269
|
+
};
|
|
270
|
+
readonly feedbackId: {
|
|
271
|
+
readonly type: "String";
|
|
272
|
+
};
|
|
273
|
+
readonly feedback: {
|
|
274
|
+
readonly type: "SitepingFeedback";
|
|
275
|
+
readonly relation: {
|
|
276
|
+
readonly kind: "many-to-1";
|
|
277
|
+
readonly model: "SitepingFeedback";
|
|
278
|
+
readonly fields: readonly ["feedbackId"];
|
|
279
|
+
readonly references: readonly ["id"];
|
|
280
|
+
readonly onDelete: "Cascade";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly body: {
|
|
284
|
+
readonly type: "String";
|
|
285
|
+
readonly nativeType: "Text";
|
|
286
|
+
};
|
|
287
|
+
readonly authorName: {
|
|
288
|
+
readonly type: "String";
|
|
289
|
+
};
|
|
290
|
+
readonly authorEmail: {
|
|
291
|
+
readonly type: "String";
|
|
292
|
+
};
|
|
293
|
+
readonly authorRole: {
|
|
294
|
+
readonly type: "String";
|
|
295
|
+
readonly default: "\"client\"";
|
|
296
|
+
};
|
|
297
|
+
readonly clientId: {
|
|
298
|
+
readonly type: "String";
|
|
299
|
+
readonly isUnique: true;
|
|
300
|
+
};
|
|
301
|
+
readonly createdAt: {
|
|
302
|
+
readonly type: "DateTime";
|
|
303
|
+
readonly default: "now()";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly indexes: readonly [{
|
|
307
|
+
readonly fields: readonly ["feedbackId", "createdAt"];
|
|
308
|
+
}];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/** Map of Siteping models keyed by model name — frozen at runtime. */
|
|
312
|
+
export declare const SITEPING_MODELS: typeof _SITEPING_MODELS;
|
|
313
|
+
/** Union of every Siteping model name as a string literal. */
|
|
314
|
+
export type SitepingModelName = keyof typeof SITEPING_MODELS;
|
|
315
|
+
/** Field names declared on a specific Siteping model. */
|
|
316
|
+
export type SitepingModelFieldName<M extends SitepingModelName> = keyof (typeof SITEPING_MODELS)[M]["fields"];
|
|
317
|
+
export {};
|