@tscircuit/fake-snippets 0.0.120 → 0.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/bun-pver-release.yml +29 -4
- package/dist/assets/404-CnNkOMw-.js +1 -0
- package/dist/assets/Analytics-DIw7l2gi.js +84 -0
- package/dist/assets/BuildsList-CeqVVhbz.js +1 -0
- package/dist/assets/CodeAndPreview-Dycd0s15.js +722 -0
- package/dist/assets/DownloadButtonAndMenu-OIUhbKkj.js +194 -0
- package/dist/assets/FileSaver.min-BDsOlqKl.js +1 -0
- package/dist/assets/Footer-DU-HdqGk.js +1 -0
- package/dist/assets/GithubAvatarWithFallback-CQhrBiKP.js +6 -0
- package/dist/assets/Header-CI4GZVOv.js +1 -0
- package/dist/assets/Header2-CrMDmo3P.js +5 -0
- package/dist/assets/NotFound-DaXtEPsC.js +1 -0
- package/dist/assets/OrganizationCard-Bs2dw-AL.js +1 -0
- package/dist/assets/PackageBreadcrumb-DpOpPbGc.js +6 -0
- package/dist/assets/PackageCard-ejE2dLlA.js +16 -0
- package/dist/assets/PackageSearchResults-BI3Rtmr2.js +1 -0
- package/dist/assets/ProfileRouter-4xNgtXr5.js +6 -0
- package/dist/assets/alert-dialog-DrOB4Tui.js +1 -0
- package/dist/assets/authorize-D-5R3QHA.js +16 -0
- package/dist/assets/badge-Bk-k6kyg.js +1 -0
- package/dist/assets/card-CzXDit7x.js +1 -0
- package/dist/assets/circle-alert-Du9-4of0.js +6 -0
- package/dist/assets/circle-check-big-KaRyRsht.js +6 -0
- package/dist/assets/cpu-BnvjzmIA.js +6 -0
- package/dist/assets/create-organization-BHNFvE7B.js +1 -0
- package/dist/assets/dashboard-DDH4V91X.js +11 -0
- package/dist/assets/datasheet-DqKtWt-O.js +1 -0
- package/dist/assets/datasheets-4W6pEMf3.js +1 -0
- package/dist/assets/dev-login-CbHdDthp.js +1 -0
- package/dist/assets/editor-bqg9Yv91.js +1 -0
- package/dist/assets/editor_example_1-1000w.webp +0 -0
- package/dist/assets/editor_example_1-1200w.webp +0 -0
- package/dist/assets/editor_example_1-1600w.webp +0 -0
- package/dist/assets/editor_example_1-2000w.webp +0 -0
- package/dist/assets/editor_example_1-400w.webp +0 -0
- package/dist/assets/editor_example_1-600w.webp +0 -0
- package/dist/assets/editor_example_1-800w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-1000w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-1200w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-1600w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-2000w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-400w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-600w.webp +0 -0
- package/dist/assets/editor_example_1_more_square-800w.webp +0 -0
- package/dist/assets/editor_example_2-1000w.webp +0 -0
- package/dist/assets/editor_example_2-1200w.webp +0 -0
- package/dist/assets/editor_example_2-1600w.webp +0 -0
- package/dist/assets/editor_example_2-2000w.webp +0 -0
- package/dist/assets/editor_example_2-400w.webp +0 -0
- package/dist/assets/editor_example_2-600w.webp +0 -0
- package/dist/assets/editor_example_2-800w.webp +0 -0
- package/dist/assets/example_schematic-1000w.webp +0 -0
- package/dist/assets/example_schematic-1200w.webp +0 -0
- package/dist/assets/example_schematic-1600w.webp +0 -0
- package/dist/assets/example_schematic-2000w.webp +0 -0
- package/dist/assets/example_schematic-400w.webp +0 -0
- package/dist/assets/example_schematic-600w.webp +0 -0
- package/dist/assets/example_schematic-800w.webp +0 -0
- package/dist/assets/eye-B_NMTTT7.js +6 -0
- package/dist/assets/fallback-image.svg +1 -0
- package/dist/assets/favicon-BwEjZKGP.ico +0 -0
- package/dist/assets/formatTimeAgo-CawXna5h.js +6 -0
- package/dist/assets/github-DjKGjbX1.js +6 -0
- package/dist/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/assets/hash-DfKYpqTm.js +6 -0
- package/dist/assets/index-B17tE1vy.js +1 -0
- package/dist/assets/index-BQPj88OW.js +6051 -0
- package/dist/assets/index-DvNLZBaq.js +6 -0
- package/dist/assets/keyboard-4b_qLHIF.js +11 -0
- package/dist/assets/label-CTudXc4q.js +1 -0
- package/dist/assets/landing-Cjvvx-9q.js +11 -0
- package/dist/assets/latest-DMk4BmXW.js +1 -0
- package/dist/assets/layers-BJ1iwaVM.js +6 -0
- package/dist/assets/load-prettier-DgbV1Jgu.js +1 -0
- package/dist/assets/lock-BOZRJdUv.js +6 -0
- package/dist/assets/main-DPEM9abA.js +26 -0
- package/dist/assets/main-MTKdI4FA.css +1 -0
- package/dist/assets/my-orders-B7lEyNR9.js +1 -0
- package/dist/assets/organization-settings-rNvhYFgZ.js +6 -0
- package/dist/assets/package-editor-T4WIRP49.js +1 -0
- package/dist/assets/pen-D54fxNRf.js +6 -0
- package/dist/assets/plus-KkE_6Dq2.js +6 -0
- package/dist/assets/preview-release-DWhKHFWp.js +1 -0
- package/dist/assets/quickstart-WF3HR9Dc.js +1 -0
- package/dist/assets/refresh-cw-aWASTRku.js +6 -0
- package/dist/assets/release-builds-COa5ndHa.js +1 -0
- package/dist/assets/release-detail-iclJPUO-.js +6 -0
- package/dist/assets/releases-Clsyp-7n.js +1 -0
- package/dist/assets/role-badge-BGF_IMlO.js +16 -0
- package/dist/assets/search-CwH23pAU.js +1 -0
- package/dist/assets/select-BN8AF1J7.js +1 -0
- package/dist/assets/settings-B2bMEtS4.js +6 -0
- package/dist/assets/skeleton-DLAS40-y.js +1 -0
- package/dist/assets/svg-to-png-BX4YEHCP-JcDm8Hc5.js +1 -0
- package/dist/assets/svg-to-png-BX4YEHCP-pNo9Afg8.js +1 -0
- package/dist/assets/tabs-Ce0NFuwd.js +1 -0
- package/dist/assets/timeAgo-VY0F2EV9.js +10 -0
- package/dist/assets/tooltip-C1pwvC0K.js +11 -0
- package/dist/assets/trash-2-BW3eClHz.js +6 -0
- package/dist/assets/trending-C8246HGf.js +1 -0
- package/dist/assets/triangle-alert-BMIBEO1D.js +6 -0
- package/dist/assets/tsx-COt5Ahok.js +1 -0
- package/dist/assets/use-create-datasheet-B7TDsTUt.js +1 -0
- package/dist/assets/use-delete-package-DLKtoTOj.js +1 -0
- package/dist/assets/use-download-zip-CAOKjGXW.js +1 -0
- package/dist/assets/use-list-user-orgs-CgJIT7N4.js +1 -0
- package/dist/assets/use-organization-XwYYTFck.js +1 -0
- package/dist/assets/use-package-builds-Bx8rfxi1.js +1 -0
- package/dist/assets/use-package-by-package-name-1s1Pcarw.js +1 -0
- package/dist/assets/use-package-files-CmmWVuGn.js +1 -0
- package/dist/assets/use-package-release-by-id-or-version-BuuXcSZq.js +1 -0
- package/dist/assets/use-package-release-images-BMaZtvmk.js +1 -0
- package/dist/assets/use-packages-base-api-url-DA1hucM7.js +1 -0
- package/dist/assets/useQueries-BJ7Ue7HV.js +1 -0
- package/dist/assets/user-settings-BqO5FkMf.js +1 -0
- package/dist/assets/view-package-C-OvJr_Q.js +165 -0
- package/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/index.html +127 -0
- package/dist/landing.html +34 -0
- package/dist/robots.txt +9 -0
- package/dist/sitemap.xml +118 -0
- package/dist/stats.html +4949 -0
- package/package.json +1 -1
- package/dist/bundle.js +0 -9288
- package/dist/index.d.ts +0 -2190
- package/dist/index.js +0 -3826
- package/dist/schema.d.ts +0 -3142
- package/dist/schema.js +0 -454
- package/fake-snippets-api/bun.lockb +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,2190 +0,0 @@
|
|
|
1
|
-
import * as zustand_vanilla from 'zustand/vanilla';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { Middleware } from 'winterspec';
|
|
4
|
-
|
|
5
|
-
declare const snippetSchema: z.ZodObject<{
|
|
6
|
-
snippet_id: z.ZodString;
|
|
7
|
-
package_release_id: z.ZodString;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
unscoped_name: z.ZodString;
|
|
10
|
-
owner_name: z.ZodString;
|
|
11
|
-
is_starred: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
code: z.ZodString;
|
|
13
|
-
dts: z.ZodOptional<z.ZodString>;
|
|
14
|
-
compiled_js: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
-
circuit_json: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
|
|
16
|
-
manual_edits_json_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
created_at: z.ZodString;
|
|
18
|
-
updated_at: z.ZodString;
|
|
19
|
-
starred_at: z.ZodOptional<z.ZodString>;
|
|
20
|
-
snippet_type: z.ZodEnum<["board", "package", "model", "footprint"]>;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
version: z.ZodDefault<z.ZodString>;
|
|
23
|
-
star_count: z.ZodDefault<z.ZodNumber>;
|
|
24
|
-
is_private: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
is_public: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
is_unlisted: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
code: string;
|
|
30
|
-
snippet_id: string;
|
|
31
|
-
package_release_id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
unscoped_name: string;
|
|
34
|
-
owner_name: string;
|
|
35
|
-
is_starred: boolean;
|
|
36
|
-
created_at: string;
|
|
37
|
-
updated_at: string;
|
|
38
|
-
snippet_type: "board" | "package" | "model" | "footprint";
|
|
39
|
-
version: string;
|
|
40
|
-
star_count: number;
|
|
41
|
-
is_private: boolean;
|
|
42
|
-
is_public: boolean;
|
|
43
|
-
is_unlisted: boolean;
|
|
44
|
-
dts?: string | undefined;
|
|
45
|
-
compiled_js?: string | null | undefined;
|
|
46
|
-
circuit_json?: Record<string, any>[] | null | undefined;
|
|
47
|
-
manual_edits_json_content?: string | null | undefined;
|
|
48
|
-
starred_at?: string | undefined;
|
|
49
|
-
description?: string | undefined;
|
|
50
|
-
tags?: string[] | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
code: string;
|
|
53
|
-
snippet_id: string;
|
|
54
|
-
package_release_id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
unscoped_name: string;
|
|
57
|
-
owner_name: string;
|
|
58
|
-
created_at: string;
|
|
59
|
-
updated_at: string;
|
|
60
|
-
snippet_type: "board" | "package" | "model" | "footprint";
|
|
61
|
-
is_starred?: boolean | undefined;
|
|
62
|
-
dts?: string | undefined;
|
|
63
|
-
compiled_js?: string | null | undefined;
|
|
64
|
-
circuit_json?: Record<string, any>[] | null | undefined;
|
|
65
|
-
manual_edits_json_content?: string | null | undefined;
|
|
66
|
-
starred_at?: string | undefined;
|
|
67
|
-
description?: string | undefined;
|
|
68
|
-
version?: string | undefined;
|
|
69
|
-
star_count?: number | undefined;
|
|
70
|
-
is_private?: boolean | undefined;
|
|
71
|
-
is_public?: boolean | undefined;
|
|
72
|
-
is_unlisted?: boolean | undefined;
|
|
73
|
-
tags?: string[] | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
type Snippet = z.infer<typeof snippetSchema>;
|
|
76
|
-
declare const sessionSchema: z.ZodObject<{
|
|
77
|
-
session_id: z.ZodString;
|
|
78
|
-
account_id: z.ZodString;
|
|
79
|
-
expires_at: z.ZodString;
|
|
80
|
-
is_cli_session: z.ZodBoolean;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
session_id: string;
|
|
83
|
-
account_id: string;
|
|
84
|
-
expires_at: string;
|
|
85
|
-
is_cli_session: boolean;
|
|
86
|
-
}, {
|
|
87
|
-
session_id: string;
|
|
88
|
-
account_id: string;
|
|
89
|
-
expires_at: string;
|
|
90
|
-
is_cli_session: boolean;
|
|
91
|
-
}>;
|
|
92
|
-
type Session = z.infer<typeof sessionSchema>;
|
|
93
|
-
declare const loginPageSchema: z.ZodObject<{
|
|
94
|
-
login_page_id: z.ZodString;
|
|
95
|
-
login_page_auth_token: z.ZodString;
|
|
96
|
-
was_login_successful: z.ZodBoolean;
|
|
97
|
-
has_been_used_to_create_session: z.ZodBoolean;
|
|
98
|
-
created_at: z.ZodString;
|
|
99
|
-
expires_at: z.ZodString;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
created_at: string;
|
|
102
|
-
expires_at: string;
|
|
103
|
-
login_page_id: string;
|
|
104
|
-
login_page_auth_token: string;
|
|
105
|
-
was_login_successful: boolean;
|
|
106
|
-
has_been_used_to_create_session: boolean;
|
|
107
|
-
}, {
|
|
108
|
-
created_at: string;
|
|
109
|
-
expires_at: string;
|
|
110
|
-
login_page_id: string;
|
|
111
|
-
login_page_auth_token: string;
|
|
112
|
-
was_login_successful: boolean;
|
|
113
|
-
has_been_used_to_create_session: boolean;
|
|
114
|
-
}>;
|
|
115
|
-
type LoginPage = z.infer<typeof loginPageSchema>;
|
|
116
|
-
declare const accountSchema: z.ZodObject<{
|
|
117
|
-
account_id: z.ZodString;
|
|
118
|
-
github_username: z.ZodString;
|
|
119
|
-
shippingInfo: z.ZodOptional<z.ZodObject<{
|
|
120
|
-
firstName: z.ZodString;
|
|
121
|
-
lastName: z.ZodString;
|
|
122
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
123
|
-
address: z.ZodString;
|
|
124
|
-
apartment: z.ZodOptional<z.ZodString>;
|
|
125
|
-
city: z.ZodString;
|
|
126
|
-
state: z.ZodString;
|
|
127
|
-
zipCode: z.ZodString;
|
|
128
|
-
country: z.ZodString;
|
|
129
|
-
phone: z.ZodString;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
firstName: string;
|
|
132
|
-
lastName: string;
|
|
133
|
-
address: string;
|
|
134
|
-
city: string;
|
|
135
|
-
state: string;
|
|
136
|
-
zipCode: string;
|
|
137
|
-
country: string;
|
|
138
|
-
phone: string;
|
|
139
|
-
companyName?: string | undefined;
|
|
140
|
-
apartment?: string | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
firstName: string;
|
|
143
|
-
lastName: string;
|
|
144
|
-
address: string;
|
|
145
|
-
city: string;
|
|
146
|
-
state: string;
|
|
147
|
-
zipCode: string;
|
|
148
|
-
country: string;
|
|
149
|
-
phone: string;
|
|
150
|
-
companyName?: string | undefined;
|
|
151
|
-
apartment?: string | undefined;
|
|
152
|
-
}>>;
|
|
153
|
-
personal_org_id: z.ZodOptional<z.ZodString>;
|
|
154
|
-
is_tscircuit_staff: z.ZodDefault<z.ZodBoolean>;
|
|
155
|
-
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
account_id: string;
|
|
157
|
-
github_username: string;
|
|
158
|
-
is_tscircuit_staff: boolean;
|
|
159
|
-
shippingInfo?: {
|
|
160
|
-
firstName: string;
|
|
161
|
-
lastName: string;
|
|
162
|
-
address: string;
|
|
163
|
-
city: string;
|
|
164
|
-
state: string;
|
|
165
|
-
zipCode: string;
|
|
166
|
-
country: string;
|
|
167
|
-
phone: string;
|
|
168
|
-
companyName?: string | undefined;
|
|
169
|
-
apartment?: string | undefined;
|
|
170
|
-
} | undefined;
|
|
171
|
-
personal_org_id?: string | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
account_id: string;
|
|
174
|
-
github_username: string;
|
|
175
|
-
shippingInfo?: {
|
|
176
|
-
firstName: string;
|
|
177
|
-
lastName: string;
|
|
178
|
-
address: string;
|
|
179
|
-
city: string;
|
|
180
|
-
state: string;
|
|
181
|
-
zipCode: string;
|
|
182
|
-
country: string;
|
|
183
|
-
phone: string;
|
|
184
|
-
companyName?: string | undefined;
|
|
185
|
-
apartment?: string | undefined;
|
|
186
|
-
} | undefined;
|
|
187
|
-
personal_org_id?: string | undefined;
|
|
188
|
-
is_tscircuit_staff?: boolean | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
type Account = z.infer<typeof accountSchema>;
|
|
191
|
-
declare const orderSchema: z.ZodObject<{
|
|
192
|
-
order_id: z.ZodString;
|
|
193
|
-
account_id: z.ZodNullable<z.ZodString>;
|
|
194
|
-
is_running: z.ZodBoolean;
|
|
195
|
-
is_started: z.ZodBoolean;
|
|
196
|
-
is_finished: z.ZodBoolean;
|
|
197
|
-
error: z.ZodNullable<z.ZodObject<{
|
|
198
|
-
error_code: z.ZodString;
|
|
199
|
-
message: z.ZodString;
|
|
200
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
201
|
-
error_code: z.ZodString;
|
|
202
|
-
message: z.ZodString;
|
|
203
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
204
|
-
error_code: z.ZodString;
|
|
205
|
-
message: z.ZodString;
|
|
206
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
207
|
-
has_error: z.ZodBoolean;
|
|
208
|
-
created_at: z.ZodString;
|
|
209
|
-
started_at: z.ZodNullable<z.ZodString>;
|
|
210
|
-
completed_at: z.ZodNullable<z.ZodString>;
|
|
211
|
-
circuit_json: z.ZodAny;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
error: z.objectOutputType<{
|
|
214
|
-
error_code: z.ZodString;
|
|
215
|
-
message: z.ZodString;
|
|
216
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
217
|
-
created_at: string;
|
|
218
|
-
account_id: string | null;
|
|
219
|
-
order_id: string;
|
|
220
|
-
is_running: boolean;
|
|
221
|
-
is_started: boolean;
|
|
222
|
-
is_finished: boolean;
|
|
223
|
-
has_error: boolean;
|
|
224
|
-
started_at: string | null;
|
|
225
|
-
completed_at: string | null;
|
|
226
|
-
circuit_json?: any;
|
|
227
|
-
}, {
|
|
228
|
-
error: z.objectInputType<{
|
|
229
|
-
error_code: z.ZodString;
|
|
230
|
-
message: z.ZodString;
|
|
231
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
232
|
-
created_at: string;
|
|
233
|
-
account_id: string | null;
|
|
234
|
-
order_id: string;
|
|
235
|
-
is_running: boolean;
|
|
236
|
-
is_started: boolean;
|
|
237
|
-
is_finished: boolean;
|
|
238
|
-
has_error: boolean;
|
|
239
|
-
started_at: string | null;
|
|
240
|
-
completed_at: string | null;
|
|
241
|
-
circuit_json?: any;
|
|
242
|
-
}>;
|
|
243
|
-
type Order = z.infer<typeof orderSchema>;
|
|
244
|
-
declare const orderFileSchema: z.ZodObject<{
|
|
245
|
-
order_file_id: z.ZodString;
|
|
246
|
-
order_id: z.ZodString;
|
|
247
|
-
is_gerbers_zip: z.ZodBoolean;
|
|
248
|
-
content_type: z.ZodString;
|
|
249
|
-
for_provider: z.ZodNullable<z.ZodString>;
|
|
250
|
-
uploaded_at: z.ZodString;
|
|
251
|
-
content_text: z.ZodNullable<z.ZodString>;
|
|
252
|
-
content_bytes: z.ZodNullable<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>>;
|
|
253
|
-
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
order_id: string;
|
|
255
|
-
order_file_id: string;
|
|
256
|
-
is_gerbers_zip: boolean;
|
|
257
|
-
content_type: string;
|
|
258
|
-
for_provider: string | null;
|
|
259
|
-
uploaded_at: string;
|
|
260
|
-
content_text: string | null;
|
|
261
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
262
|
-
}, {
|
|
263
|
-
order_id: string;
|
|
264
|
-
order_file_id: string;
|
|
265
|
-
is_gerbers_zip: boolean;
|
|
266
|
-
content_type: string;
|
|
267
|
-
for_provider: string | null;
|
|
268
|
-
uploaded_at: string;
|
|
269
|
-
content_text: string | null;
|
|
270
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
271
|
-
}>;
|
|
272
|
-
type OrderFile = z.infer<typeof orderFileSchema>;
|
|
273
|
-
declare const bugReportSchema: z.ZodObject<{
|
|
274
|
-
bug_report_id: z.ZodString;
|
|
275
|
-
reporter_account_id: z.ZodString;
|
|
276
|
-
text: z.ZodNullable<z.ZodString>;
|
|
277
|
-
is_auto_deleted: z.ZodDefault<z.ZodBoolean>;
|
|
278
|
-
delete_at: z.ZodNullable<z.ZodString>;
|
|
279
|
-
created_at: z.ZodString;
|
|
280
|
-
file_count: z.ZodNumber;
|
|
281
|
-
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
created_at: string;
|
|
283
|
-
bug_report_id: string;
|
|
284
|
-
reporter_account_id: string;
|
|
285
|
-
text: string | null;
|
|
286
|
-
is_auto_deleted: boolean;
|
|
287
|
-
delete_at: string | null;
|
|
288
|
-
file_count: number;
|
|
289
|
-
}, {
|
|
290
|
-
created_at: string;
|
|
291
|
-
bug_report_id: string;
|
|
292
|
-
reporter_account_id: string;
|
|
293
|
-
text: string | null;
|
|
294
|
-
delete_at: string | null;
|
|
295
|
-
file_count: number;
|
|
296
|
-
is_auto_deleted?: boolean | undefined;
|
|
297
|
-
}>;
|
|
298
|
-
type BugReport = z.infer<typeof bugReportSchema>;
|
|
299
|
-
declare const bugReportFileSchema: z.ZodObject<{
|
|
300
|
-
bug_report_file_id: z.ZodString;
|
|
301
|
-
bug_report_id: z.ZodString;
|
|
302
|
-
file_path: z.ZodString;
|
|
303
|
-
content_mimetype: z.ZodString;
|
|
304
|
-
is_text: z.ZodBoolean;
|
|
305
|
-
created_at: z.ZodString;
|
|
306
|
-
content_text: z.ZodNullable<z.ZodString>;
|
|
307
|
-
content_bytes: z.ZodNullable<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>>;
|
|
308
|
-
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
created_at: string;
|
|
310
|
-
content_text: string | null;
|
|
311
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
312
|
-
bug_report_id: string;
|
|
313
|
-
bug_report_file_id: string;
|
|
314
|
-
file_path: string;
|
|
315
|
-
content_mimetype: string;
|
|
316
|
-
is_text: boolean;
|
|
317
|
-
}, {
|
|
318
|
-
created_at: string;
|
|
319
|
-
content_text: string | null;
|
|
320
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
321
|
-
bug_report_id: string;
|
|
322
|
-
bug_report_file_id: string;
|
|
323
|
-
file_path: string;
|
|
324
|
-
content_mimetype: string;
|
|
325
|
-
is_text: boolean;
|
|
326
|
-
}>;
|
|
327
|
-
type BugReportFile = z.infer<typeof bugReportFileSchema>;
|
|
328
|
-
declare const orderQuoteSchema: z.ZodObject<{
|
|
329
|
-
order_quote_id: z.ZodString;
|
|
330
|
-
account_id: z.ZodNullable<z.ZodString>;
|
|
331
|
-
package_release_id: z.ZodNullable<z.ZodString>;
|
|
332
|
-
is_completed: z.ZodDefault<z.ZodBoolean>;
|
|
333
|
-
is_processing: z.ZodDefault<z.ZodBoolean>;
|
|
334
|
-
vendor_name: z.ZodString;
|
|
335
|
-
error: z.ZodNullable<z.ZodObject<{
|
|
336
|
-
error_code: z.ZodString;
|
|
337
|
-
message: z.ZodString;
|
|
338
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
339
|
-
error_code: z.ZodString;
|
|
340
|
-
message: z.ZodString;
|
|
341
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
342
|
-
error_code: z.ZodString;
|
|
343
|
-
message: z.ZodString;
|
|
344
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
345
|
-
has_error: z.ZodDefault<z.ZodBoolean>;
|
|
346
|
-
created_at: z.ZodString;
|
|
347
|
-
updated_at: z.ZodString;
|
|
348
|
-
completed_at: z.ZodNullable<z.ZodString>;
|
|
349
|
-
quoted_components: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
350
|
-
manufacturer_part_number: z.ZodNullable<z.ZodString>;
|
|
351
|
-
supplier_part_number: z.ZodNullable<z.ZodString>;
|
|
352
|
-
quantity: z.ZodDefault<z.ZodNumber>;
|
|
353
|
-
unit_price: z.ZodDefault<z.ZodNumber>;
|
|
354
|
-
total_price: z.ZodDefault<z.ZodNumber>;
|
|
355
|
-
available: z.ZodDefault<z.ZodBoolean>;
|
|
356
|
-
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
manufacturer_part_number: string | null;
|
|
358
|
-
supplier_part_number: string | null;
|
|
359
|
-
quantity: number;
|
|
360
|
-
unit_price: number;
|
|
361
|
-
total_price: number;
|
|
362
|
-
available: boolean;
|
|
363
|
-
}, {
|
|
364
|
-
manufacturer_part_number: string | null;
|
|
365
|
-
supplier_part_number: string | null;
|
|
366
|
-
quantity?: number | undefined;
|
|
367
|
-
unit_price?: number | undefined;
|
|
368
|
-
total_price?: number | undefined;
|
|
369
|
-
available?: boolean | undefined;
|
|
370
|
-
}>, "many">>;
|
|
371
|
-
bare_pcb_cost: z.ZodDefault<z.ZodNumber>;
|
|
372
|
-
shipping_options: z.ZodArray<z.ZodObject<{
|
|
373
|
-
carrier: z.ZodString;
|
|
374
|
-
service: z.ZodString;
|
|
375
|
-
cost: z.ZodNumber;
|
|
376
|
-
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
carrier: string;
|
|
378
|
-
service: string;
|
|
379
|
-
cost: number;
|
|
380
|
-
}, {
|
|
381
|
-
carrier: string;
|
|
382
|
-
service: string;
|
|
383
|
-
cost: number;
|
|
384
|
-
}>, "many">;
|
|
385
|
-
total_cost_without_shipping: z.ZodDefault<z.ZodNumber>;
|
|
386
|
-
}, "strip", z.ZodTypeAny, {
|
|
387
|
-
error: z.objectOutputType<{
|
|
388
|
-
error_code: z.ZodString;
|
|
389
|
-
message: z.ZodString;
|
|
390
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
391
|
-
package_release_id: string | null;
|
|
392
|
-
created_at: string;
|
|
393
|
-
updated_at: string;
|
|
394
|
-
account_id: string | null;
|
|
395
|
-
has_error: boolean;
|
|
396
|
-
completed_at: string | null;
|
|
397
|
-
order_quote_id: string;
|
|
398
|
-
is_completed: boolean;
|
|
399
|
-
is_processing: boolean;
|
|
400
|
-
vendor_name: string;
|
|
401
|
-
quoted_components: {
|
|
402
|
-
manufacturer_part_number: string | null;
|
|
403
|
-
supplier_part_number: string | null;
|
|
404
|
-
quantity: number;
|
|
405
|
-
unit_price: number;
|
|
406
|
-
total_price: number;
|
|
407
|
-
available: boolean;
|
|
408
|
-
}[] | null;
|
|
409
|
-
bare_pcb_cost: number;
|
|
410
|
-
shipping_options: {
|
|
411
|
-
carrier: string;
|
|
412
|
-
service: string;
|
|
413
|
-
cost: number;
|
|
414
|
-
}[];
|
|
415
|
-
total_cost_without_shipping: number;
|
|
416
|
-
}, {
|
|
417
|
-
error: z.objectInputType<{
|
|
418
|
-
error_code: z.ZodString;
|
|
419
|
-
message: z.ZodString;
|
|
420
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
421
|
-
package_release_id: string | null;
|
|
422
|
-
created_at: string;
|
|
423
|
-
updated_at: string;
|
|
424
|
-
account_id: string | null;
|
|
425
|
-
completed_at: string | null;
|
|
426
|
-
order_quote_id: string;
|
|
427
|
-
vendor_name: string;
|
|
428
|
-
quoted_components: {
|
|
429
|
-
manufacturer_part_number: string | null;
|
|
430
|
-
supplier_part_number: string | null;
|
|
431
|
-
quantity?: number | undefined;
|
|
432
|
-
unit_price?: number | undefined;
|
|
433
|
-
total_price?: number | undefined;
|
|
434
|
-
available?: boolean | undefined;
|
|
435
|
-
}[] | null;
|
|
436
|
-
shipping_options: {
|
|
437
|
-
carrier: string;
|
|
438
|
-
service: string;
|
|
439
|
-
cost: number;
|
|
440
|
-
}[];
|
|
441
|
-
has_error?: boolean | undefined;
|
|
442
|
-
is_completed?: boolean | undefined;
|
|
443
|
-
is_processing?: boolean | undefined;
|
|
444
|
-
bare_pcb_cost?: number | undefined;
|
|
445
|
-
total_cost_without_shipping?: number | undefined;
|
|
446
|
-
}>;
|
|
447
|
-
type OrderQuote = z.infer<typeof orderQuoteSchema>;
|
|
448
|
-
declare const aiReviewSchema: z.ZodObject<{
|
|
449
|
-
ai_review_id: z.ZodString;
|
|
450
|
-
package_release_id: z.ZodOptional<z.ZodString>;
|
|
451
|
-
ai_review_text: z.ZodNullable<z.ZodString>;
|
|
452
|
-
start_processing_at: z.ZodNullable<z.ZodString>;
|
|
453
|
-
finished_processing_at: z.ZodNullable<z.ZodString>;
|
|
454
|
-
processing_error: z.ZodNullable<z.ZodAny>;
|
|
455
|
-
created_at: z.ZodString;
|
|
456
|
-
display_status: z.ZodEnum<["pending", "completed", "failed"]>;
|
|
457
|
-
}, "strip", z.ZodTypeAny, {
|
|
458
|
-
created_at: string;
|
|
459
|
-
ai_review_id: string;
|
|
460
|
-
ai_review_text: string | null;
|
|
461
|
-
start_processing_at: string | null;
|
|
462
|
-
finished_processing_at: string | null;
|
|
463
|
-
display_status: "pending" | "completed" | "failed";
|
|
464
|
-
package_release_id?: string | undefined;
|
|
465
|
-
processing_error?: any;
|
|
466
|
-
}, {
|
|
467
|
-
created_at: string;
|
|
468
|
-
ai_review_id: string;
|
|
469
|
-
ai_review_text: string | null;
|
|
470
|
-
start_processing_at: string | null;
|
|
471
|
-
finished_processing_at: string | null;
|
|
472
|
-
display_status: "pending" | "completed" | "failed";
|
|
473
|
-
package_release_id?: string | undefined;
|
|
474
|
-
processing_error?: any;
|
|
475
|
-
}>;
|
|
476
|
-
type AiReview = z.infer<typeof aiReviewSchema>;
|
|
477
|
-
declare const datasheetSchema: z.ZodObject<{
|
|
478
|
-
datasheet_id: z.ZodString;
|
|
479
|
-
chip_name: z.ZodString;
|
|
480
|
-
created_at: z.ZodString;
|
|
481
|
-
pin_information: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
482
|
-
pin_number: z.ZodString;
|
|
483
|
-
name: z.ZodString;
|
|
484
|
-
description: z.ZodString;
|
|
485
|
-
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
486
|
-
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
name: string;
|
|
488
|
-
description: string;
|
|
489
|
-
pin_number: string;
|
|
490
|
-
capabilities: string[];
|
|
491
|
-
}, {
|
|
492
|
-
name: string;
|
|
493
|
-
description: string;
|
|
494
|
-
pin_number: string;
|
|
495
|
-
capabilities: string[];
|
|
496
|
-
}>, "many">>;
|
|
497
|
-
datasheet_pdf_urls: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
498
|
-
ai_description: z.ZodNullable<z.ZodString>;
|
|
499
|
-
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
created_at: string;
|
|
501
|
-
datasheet_id: string;
|
|
502
|
-
chip_name: string;
|
|
503
|
-
pin_information: {
|
|
504
|
-
name: string;
|
|
505
|
-
description: string;
|
|
506
|
-
pin_number: string;
|
|
507
|
-
capabilities: string[];
|
|
508
|
-
}[] | null;
|
|
509
|
-
datasheet_pdf_urls: string[] | null;
|
|
510
|
-
ai_description: string | null;
|
|
511
|
-
}, {
|
|
512
|
-
created_at: string;
|
|
513
|
-
datasheet_id: string;
|
|
514
|
-
chip_name: string;
|
|
515
|
-
pin_information: {
|
|
516
|
-
name: string;
|
|
517
|
-
description: string;
|
|
518
|
-
pin_number: string;
|
|
519
|
-
capabilities: string[];
|
|
520
|
-
}[] | null;
|
|
521
|
-
datasheet_pdf_urls: string[] | null;
|
|
522
|
-
ai_description: string | null;
|
|
523
|
-
}>;
|
|
524
|
-
type Datasheet = z.infer<typeof datasheetSchema>;
|
|
525
|
-
declare const accountPackageSchema: z.ZodObject<{
|
|
526
|
-
account_package_id: z.ZodString;
|
|
527
|
-
account_id: z.ZodString;
|
|
528
|
-
package_id: z.ZodString;
|
|
529
|
-
is_starred: z.ZodBoolean;
|
|
530
|
-
created_at: z.ZodString;
|
|
531
|
-
updated_at: z.ZodString;
|
|
532
|
-
}, "strip", z.ZodTypeAny, {
|
|
533
|
-
is_starred: boolean;
|
|
534
|
-
created_at: string;
|
|
535
|
-
updated_at: string;
|
|
536
|
-
account_id: string;
|
|
537
|
-
account_package_id: string;
|
|
538
|
-
package_id: string;
|
|
539
|
-
}, {
|
|
540
|
-
is_starred: boolean;
|
|
541
|
-
created_at: string;
|
|
542
|
-
updated_at: string;
|
|
543
|
-
account_id: string;
|
|
544
|
-
account_package_id: string;
|
|
545
|
-
package_id: string;
|
|
546
|
-
}>;
|
|
547
|
-
type AccountPackage = z.infer<typeof accountPackageSchema>;
|
|
548
|
-
declare const packageReleaseSchema: z.ZodObject<{
|
|
549
|
-
package_release_id: z.ZodString;
|
|
550
|
-
package_id: z.ZodString;
|
|
551
|
-
version: z.ZodNullable<z.ZodString>;
|
|
552
|
-
is_locked: z.ZodBoolean;
|
|
553
|
-
is_latest: z.ZodBoolean;
|
|
554
|
-
created_at: z.ZodString;
|
|
555
|
-
commit_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
556
|
-
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
557
|
-
circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
558
|
-
circuit_json_build_error_last_updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
559
|
-
has_transpiled: z.ZodDefault<z.ZodBoolean>;
|
|
560
|
-
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
561
|
-
fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
-
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
563
|
-
total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
564
|
-
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
565
|
-
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
566
|
-
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
-
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
568
|
-
transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
569
|
-
transpilation_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
570
|
-
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
571
|
-
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
-
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
573
|
-
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
|
-
circuit_json_build_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
575
|
-
circuit_json_build_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
576
|
-
image_generation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
577
|
-
image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
578
|
-
image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
-
image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
-
image_generation_logs: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
581
|
-
image_generation_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
582
|
-
image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
583
|
-
image_generation_error_last_updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
-
ai_review_text: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
585
|
-
ai_review_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
ai_review_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
-
ai_review_error: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
588
|
-
ai_review_logs: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
589
|
-
ai_review_requested: z.ZodDefault<z.ZodBoolean>;
|
|
590
|
-
is_pr_preview: z.ZodDefault<z.ZodBoolean>;
|
|
591
|
-
github_pr_number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
592
|
-
latest_package_build_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
-
branch_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
|
-
commit_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
595
|
-
commit_author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
596
|
-
pcb_preview_image_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
597
|
-
sch_preview_image_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
598
|
-
cad_preview_image_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
599
|
-
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
package_release_id: string;
|
|
601
|
-
created_at: string;
|
|
602
|
-
version: string | null;
|
|
603
|
-
display_status: "error" | "pending" | "building" | "complete";
|
|
604
|
-
package_id: string;
|
|
605
|
-
is_locked: boolean;
|
|
606
|
-
is_latest: boolean;
|
|
607
|
-
has_transpiled: boolean;
|
|
608
|
-
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
609
|
-
transpilation_in_progress: boolean;
|
|
610
|
-
transpilation_logs: any[];
|
|
611
|
-
transpilation_is_stale: boolean;
|
|
612
|
-
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
613
|
-
circuit_json_build_in_progress: boolean;
|
|
614
|
-
circuit_json_build_logs: any[];
|
|
615
|
-
circuit_json_build_is_stale: boolean;
|
|
616
|
-
image_generation_display_status: "error" | "pending" | "building" | "complete";
|
|
617
|
-
image_generation_in_progress: boolean;
|
|
618
|
-
image_generation_logs: any[] | null;
|
|
619
|
-
image_generation_is_stale: boolean;
|
|
620
|
-
ai_review_requested: boolean;
|
|
621
|
-
is_pr_preview: boolean;
|
|
622
|
-
pcb_preview_image_url: string | null;
|
|
623
|
-
sch_preview_image_url: string | null;
|
|
624
|
-
cad_preview_image_url: string | null;
|
|
625
|
-
ai_review_text?: string | null | undefined;
|
|
626
|
-
commit_sha?: string | null | undefined;
|
|
627
|
-
license?: string | null | undefined;
|
|
628
|
-
circuit_json_build_error?: string | null | undefined;
|
|
629
|
-
circuit_json_build_error_last_updated_at?: string | null | undefined;
|
|
630
|
-
transpilation_error?: string | null | undefined;
|
|
631
|
-
fs_sha?: string | null | undefined;
|
|
632
|
-
total_build_duration_ms?: number | null | undefined;
|
|
633
|
-
transpilation_started_at?: string | null | undefined;
|
|
634
|
-
transpilation_completed_at?: string | null | undefined;
|
|
635
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
636
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
637
|
-
image_generation_started_at?: string | null | undefined;
|
|
638
|
-
image_generation_completed_at?: string | null | undefined;
|
|
639
|
-
image_generation_error?: string | null | undefined;
|
|
640
|
-
image_generation_error_last_updated_at?: string | null | undefined;
|
|
641
|
-
ai_review_started_at?: string | null | undefined;
|
|
642
|
-
ai_review_completed_at?: string | null | undefined;
|
|
643
|
-
ai_review_error?: any;
|
|
644
|
-
ai_review_logs?: any[] | null | undefined;
|
|
645
|
-
github_pr_number?: number | null | undefined;
|
|
646
|
-
latest_package_build_id?: string | null | undefined;
|
|
647
|
-
branch_name?: string | null | undefined;
|
|
648
|
-
commit_message?: string | null | undefined;
|
|
649
|
-
commit_author?: string | null | undefined;
|
|
650
|
-
}, {
|
|
651
|
-
package_release_id: string;
|
|
652
|
-
created_at: string;
|
|
653
|
-
version: string | null;
|
|
654
|
-
package_id: string;
|
|
655
|
-
is_locked: boolean;
|
|
656
|
-
is_latest: boolean;
|
|
657
|
-
ai_review_text?: string | null | undefined;
|
|
658
|
-
display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
659
|
-
commit_sha?: string | null | undefined;
|
|
660
|
-
license?: string | null | undefined;
|
|
661
|
-
circuit_json_build_error?: string | null | undefined;
|
|
662
|
-
circuit_json_build_error_last_updated_at?: string | null | undefined;
|
|
663
|
-
has_transpiled?: boolean | undefined;
|
|
664
|
-
transpilation_error?: string | null | undefined;
|
|
665
|
-
fs_sha?: string | null | undefined;
|
|
666
|
-
total_build_duration_ms?: number | null | undefined;
|
|
667
|
-
transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
668
|
-
transpilation_in_progress?: boolean | undefined;
|
|
669
|
-
transpilation_started_at?: string | null | undefined;
|
|
670
|
-
transpilation_completed_at?: string | null | undefined;
|
|
671
|
-
transpilation_logs?: any[] | undefined;
|
|
672
|
-
transpilation_is_stale?: boolean | undefined;
|
|
673
|
-
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
674
|
-
circuit_json_build_in_progress?: boolean | undefined;
|
|
675
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
676
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
677
|
-
circuit_json_build_logs?: any[] | undefined;
|
|
678
|
-
circuit_json_build_is_stale?: boolean | undefined;
|
|
679
|
-
image_generation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
680
|
-
image_generation_in_progress?: boolean | undefined;
|
|
681
|
-
image_generation_started_at?: string | null | undefined;
|
|
682
|
-
image_generation_completed_at?: string | null | undefined;
|
|
683
|
-
image_generation_logs?: any[] | null | undefined;
|
|
684
|
-
image_generation_is_stale?: boolean | undefined;
|
|
685
|
-
image_generation_error?: string | null | undefined;
|
|
686
|
-
image_generation_error_last_updated_at?: string | null | undefined;
|
|
687
|
-
ai_review_started_at?: string | null | undefined;
|
|
688
|
-
ai_review_completed_at?: string | null | undefined;
|
|
689
|
-
ai_review_error?: any;
|
|
690
|
-
ai_review_logs?: any[] | null | undefined;
|
|
691
|
-
ai_review_requested?: boolean | undefined;
|
|
692
|
-
is_pr_preview?: boolean | undefined;
|
|
693
|
-
github_pr_number?: number | null | undefined;
|
|
694
|
-
latest_package_build_id?: string | null | undefined;
|
|
695
|
-
branch_name?: string | null | undefined;
|
|
696
|
-
commit_message?: string | null | undefined;
|
|
697
|
-
commit_author?: string | null | undefined;
|
|
698
|
-
pcb_preview_image_url?: string | null | undefined;
|
|
699
|
-
sch_preview_image_url?: string | null | undefined;
|
|
700
|
-
cad_preview_image_url?: string | null | undefined;
|
|
701
|
-
}>;
|
|
702
|
-
type PackageRelease = z.infer<typeof packageReleaseSchema>;
|
|
703
|
-
declare const packageFileSchema: z.ZodObject<{
|
|
704
|
-
package_file_id: z.ZodString;
|
|
705
|
-
package_release_id: z.ZodString;
|
|
706
|
-
file_path: z.ZodString;
|
|
707
|
-
content_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
708
|
-
created_at: z.ZodString;
|
|
709
|
-
content_mimetype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
710
|
-
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
-
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
712
|
-
}, "strip", z.ZodTypeAny, {
|
|
713
|
-
package_release_id: string;
|
|
714
|
-
created_at: string;
|
|
715
|
-
file_path: string;
|
|
716
|
-
package_file_id: string;
|
|
717
|
-
content_text?: string | null | undefined;
|
|
718
|
-
content_mimetype?: string | null | undefined;
|
|
719
|
-
is_release_tarball?: boolean | undefined;
|
|
720
|
-
npm_pack_output?: any;
|
|
721
|
-
}, {
|
|
722
|
-
package_release_id: string;
|
|
723
|
-
created_at: string;
|
|
724
|
-
file_path: string;
|
|
725
|
-
package_file_id: string;
|
|
726
|
-
content_text?: string | null | undefined;
|
|
727
|
-
content_mimetype?: string | null | undefined;
|
|
728
|
-
is_release_tarball?: boolean | undefined;
|
|
729
|
-
npm_pack_output?: any;
|
|
730
|
-
}>;
|
|
731
|
-
type PackageFile = z.infer<typeof packageFileSchema>;
|
|
732
|
-
declare const packageSchema: z.ZodObject<{
|
|
733
|
-
package_id: z.ZodString;
|
|
734
|
-
creator_account_id: z.ZodString;
|
|
735
|
-
owner_org_id: z.ZodString;
|
|
736
|
-
owner_github_username: z.ZodNullable<z.ZodString>;
|
|
737
|
-
github_repo_full_name: z.ZodNullable<z.ZodString>;
|
|
738
|
-
name: z.ZodString;
|
|
739
|
-
unscoped_name: z.ZodString;
|
|
740
|
-
description: z.ZodNullable<z.ZodString>;
|
|
741
|
-
created_at: z.ZodString;
|
|
742
|
-
updated_at: z.ZodString;
|
|
743
|
-
is_snippet: z.ZodDefault<z.ZodBoolean>;
|
|
744
|
-
is_board: z.ZodDefault<z.ZodBoolean>;
|
|
745
|
-
is_package: z.ZodDefault<z.ZodBoolean>;
|
|
746
|
-
is_model: z.ZodDefault<z.ZodBoolean>;
|
|
747
|
-
is_footprint: z.ZodDefault<z.ZodBoolean>;
|
|
748
|
-
is_private: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
749
|
-
is_public: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
750
|
-
is_unlisted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
751
|
-
is_source_from_github: z.ZodDefault<z.ZodBoolean>;
|
|
752
|
-
snippet_type: z.ZodOptional<z.ZodEnum<["board", "package", "model", "footprint"]>>;
|
|
753
|
-
latest_package_release_id: z.ZodNullable<z.ZodString>;
|
|
754
|
-
latest_version: z.ZodNullable<z.ZodString>;
|
|
755
|
-
license: z.ZodNullable<z.ZodString>;
|
|
756
|
-
website: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
757
|
-
star_count: z.ZodDefault<z.ZodNumber>;
|
|
758
|
-
ai_description: z.ZodNullable<z.ZodString>;
|
|
759
|
-
latest_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
760
|
-
ai_usage_instructions: z.ZodNullable<z.ZodString>;
|
|
761
|
-
latest_package_release_fs_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
762
|
-
default_view: z.ZodOptional<z.ZodDefault<z.ZodEnum<["files", "3d", "pcb", "schematic"]>>>;
|
|
763
|
-
allow_pr_previews: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
764
|
-
is_starred: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
765
|
-
latest_pcb_preview_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
766
|
-
latest_sch_preview_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
767
|
-
latest_cad_preview_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
768
|
-
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
name: string;
|
|
770
|
-
unscoped_name: string;
|
|
771
|
-
created_at: string;
|
|
772
|
-
updated_at: string;
|
|
773
|
-
description: string | null;
|
|
774
|
-
star_count: number;
|
|
775
|
-
is_private: boolean | null;
|
|
776
|
-
is_public: boolean | null;
|
|
777
|
-
is_unlisted: boolean | null;
|
|
778
|
-
ai_description: string | null;
|
|
779
|
-
package_id: string;
|
|
780
|
-
license: string | null;
|
|
781
|
-
creator_account_id: string;
|
|
782
|
-
owner_org_id: string;
|
|
783
|
-
owner_github_username: string | null;
|
|
784
|
-
github_repo_full_name: string | null;
|
|
785
|
-
is_snippet: boolean;
|
|
786
|
-
is_board: boolean;
|
|
787
|
-
is_package: boolean;
|
|
788
|
-
is_model: boolean;
|
|
789
|
-
is_footprint: boolean;
|
|
790
|
-
is_source_from_github: boolean;
|
|
791
|
-
latest_package_release_id: string | null;
|
|
792
|
-
latest_version: string | null;
|
|
793
|
-
website: string | null;
|
|
794
|
-
ai_usage_instructions: string | null;
|
|
795
|
-
latest_package_release_fs_sha: string | null;
|
|
796
|
-
is_starred?: boolean | undefined;
|
|
797
|
-
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
798
|
-
latest_license?: string | null | undefined;
|
|
799
|
-
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
800
|
-
allow_pr_previews?: boolean | undefined;
|
|
801
|
-
latest_pcb_preview_image_url?: string | null | undefined;
|
|
802
|
-
latest_sch_preview_image_url?: string | null | undefined;
|
|
803
|
-
latest_cad_preview_image_url?: string | null | undefined;
|
|
804
|
-
}, {
|
|
805
|
-
name: string;
|
|
806
|
-
unscoped_name: string;
|
|
807
|
-
created_at: string;
|
|
808
|
-
updated_at: string;
|
|
809
|
-
description: string | null;
|
|
810
|
-
ai_description: string | null;
|
|
811
|
-
package_id: string;
|
|
812
|
-
license: string | null;
|
|
813
|
-
creator_account_id: string;
|
|
814
|
-
owner_org_id: string;
|
|
815
|
-
owner_github_username: string | null;
|
|
816
|
-
github_repo_full_name: string | null;
|
|
817
|
-
latest_package_release_id: string | null;
|
|
818
|
-
latest_version: string | null;
|
|
819
|
-
ai_usage_instructions: string | null;
|
|
820
|
-
is_starred?: boolean | undefined;
|
|
821
|
-
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
822
|
-
star_count?: number | undefined;
|
|
823
|
-
is_private?: boolean | null | undefined;
|
|
824
|
-
is_public?: boolean | null | undefined;
|
|
825
|
-
is_unlisted?: boolean | null | undefined;
|
|
826
|
-
is_snippet?: boolean | undefined;
|
|
827
|
-
is_board?: boolean | undefined;
|
|
828
|
-
is_package?: boolean | undefined;
|
|
829
|
-
is_model?: boolean | undefined;
|
|
830
|
-
is_footprint?: boolean | undefined;
|
|
831
|
-
is_source_from_github?: boolean | undefined;
|
|
832
|
-
website?: string | null | undefined;
|
|
833
|
-
latest_license?: string | null | undefined;
|
|
834
|
-
latest_package_release_fs_sha?: string | null | undefined;
|
|
835
|
-
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
836
|
-
allow_pr_previews?: boolean | undefined;
|
|
837
|
-
latest_pcb_preview_image_url?: string | null | undefined;
|
|
838
|
-
latest_sch_preview_image_url?: string | null | undefined;
|
|
839
|
-
latest_cad_preview_image_url?: string | null | undefined;
|
|
840
|
-
}>;
|
|
841
|
-
type Package = z.infer<typeof packageSchema>;
|
|
842
|
-
declare const jlcpcbOrderStateSchema: z.ZodObject<{
|
|
843
|
-
jlcpcb_order_state_id: z.ZodString;
|
|
844
|
-
order_id: z.ZodString;
|
|
845
|
-
are_gerbers_uploaded: z.ZodDefault<z.ZodBoolean>;
|
|
846
|
-
is_gerber_analyzed: z.ZodDefault<z.ZodBoolean>;
|
|
847
|
-
are_initial_costs_calculated: z.ZodDefault<z.ZodBoolean>;
|
|
848
|
-
is_pcb_added_to_cart: z.ZodDefault<z.ZodBoolean>;
|
|
849
|
-
is_bom_uploaded: z.ZodDefault<z.ZodBoolean>;
|
|
850
|
-
is_pnp_uploaded: z.ZodDefault<z.ZodBoolean>;
|
|
851
|
-
is_bom_pnp_analyzed: z.ZodDefault<z.ZodBoolean>;
|
|
852
|
-
is_bom_parsing_complete: z.ZodDefault<z.ZodBoolean>;
|
|
853
|
-
are_components_available: z.ZodDefault<z.ZodBoolean>;
|
|
854
|
-
is_patch_map_generated: z.ZodDefault<z.ZodBoolean>;
|
|
855
|
-
is_json_merge_file_created: z.ZodDefault<z.ZodBoolean>;
|
|
856
|
-
is_dfm_result_generated: z.ZodDefault<z.ZodBoolean>;
|
|
857
|
-
are_files_downloaded: z.ZodDefault<z.ZodBoolean>;
|
|
858
|
-
are_product_categories_fetched: z.ZodDefault<z.ZodBoolean>;
|
|
859
|
-
are_final_costs_calculated: z.ZodDefault<z.ZodBoolean>;
|
|
860
|
-
is_json_merge_file_updated: z.ZodDefault<z.ZodBoolean>;
|
|
861
|
-
is_added_to_cart: z.ZodDefault<z.ZodBoolean>;
|
|
862
|
-
uploaded_gerber_metadata: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
863
|
-
gerber_analysis: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
864
|
-
created_at: z.ZodString;
|
|
865
|
-
are_gerbers_generated: z.ZodDefault<z.ZodBoolean>;
|
|
866
|
-
current_step: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
867
|
-
}, "strip", z.ZodTypeAny, {
|
|
868
|
-
created_at: string;
|
|
869
|
-
order_id: string;
|
|
870
|
-
jlcpcb_order_state_id: string;
|
|
871
|
-
are_gerbers_uploaded: boolean;
|
|
872
|
-
is_gerber_analyzed: boolean;
|
|
873
|
-
are_initial_costs_calculated: boolean;
|
|
874
|
-
is_pcb_added_to_cart: boolean;
|
|
875
|
-
is_bom_uploaded: boolean;
|
|
876
|
-
is_pnp_uploaded: boolean;
|
|
877
|
-
is_bom_pnp_analyzed: boolean;
|
|
878
|
-
is_bom_parsing_complete: boolean;
|
|
879
|
-
are_components_available: boolean;
|
|
880
|
-
is_patch_map_generated: boolean;
|
|
881
|
-
is_json_merge_file_created: boolean;
|
|
882
|
-
is_dfm_result_generated: boolean;
|
|
883
|
-
are_files_downloaded: boolean;
|
|
884
|
-
are_product_categories_fetched: boolean;
|
|
885
|
-
are_final_costs_calculated: boolean;
|
|
886
|
-
is_json_merge_file_updated: boolean;
|
|
887
|
-
is_added_to_cart: boolean;
|
|
888
|
-
are_gerbers_generated: boolean;
|
|
889
|
-
current_step: string | null;
|
|
890
|
-
uploaded_gerber_metadata?: any;
|
|
891
|
-
gerber_analysis?: any;
|
|
892
|
-
}, {
|
|
893
|
-
created_at: string;
|
|
894
|
-
order_id: string;
|
|
895
|
-
jlcpcb_order_state_id: string;
|
|
896
|
-
are_gerbers_uploaded?: boolean | undefined;
|
|
897
|
-
is_gerber_analyzed?: boolean | undefined;
|
|
898
|
-
are_initial_costs_calculated?: boolean | undefined;
|
|
899
|
-
is_pcb_added_to_cart?: boolean | undefined;
|
|
900
|
-
is_bom_uploaded?: boolean | undefined;
|
|
901
|
-
is_pnp_uploaded?: boolean | undefined;
|
|
902
|
-
is_bom_pnp_analyzed?: boolean | undefined;
|
|
903
|
-
is_bom_parsing_complete?: boolean | undefined;
|
|
904
|
-
are_components_available?: boolean | undefined;
|
|
905
|
-
is_patch_map_generated?: boolean | undefined;
|
|
906
|
-
is_json_merge_file_created?: boolean | undefined;
|
|
907
|
-
is_dfm_result_generated?: boolean | undefined;
|
|
908
|
-
are_files_downloaded?: boolean | undefined;
|
|
909
|
-
are_product_categories_fetched?: boolean | undefined;
|
|
910
|
-
are_final_costs_calculated?: boolean | undefined;
|
|
911
|
-
is_json_merge_file_updated?: boolean | undefined;
|
|
912
|
-
is_added_to_cart?: boolean | undefined;
|
|
913
|
-
uploaded_gerber_metadata?: any;
|
|
914
|
-
gerber_analysis?: any;
|
|
915
|
-
are_gerbers_generated?: boolean | undefined;
|
|
916
|
-
current_step?: string | null | undefined;
|
|
917
|
-
}>;
|
|
918
|
-
type JlcpcbOrderState = z.infer<typeof jlcpcbOrderStateSchema>;
|
|
919
|
-
declare const jlcpcbOrderStepRunSchema: z.ZodObject<{
|
|
920
|
-
jlcpcb_order_step_run_id: z.ZodString;
|
|
921
|
-
is_running: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
922
|
-
step_function_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
923
|
-
jlcpcb_order_state_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
924
|
-
error_message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
925
|
-
created_at: z.ZodString;
|
|
926
|
-
}, "strip", z.ZodTypeAny, {
|
|
927
|
-
created_at: string;
|
|
928
|
-
is_running: boolean | null;
|
|
929
|
-
jlcpcb_order_state_id: string | null;
|
|
930
|
-
jlcpcb_order_step_run_id: string;
|
|
931
|
-
step_function_name: string | null;
|
|
932
|
-
error_message: string | null;
|
|
933
|
-
}, {
|
|
934
|
-
created_at: string;
|
|
935
|
-
jlcpcb_order_step_run_id: string;
|
|
936
|
-
is_running?: boolean | null | undefined;
|
|
937
|
-
jlcpcb_order_state_id?: string | null | undefined;
|
|
938
|
-
step_function_name?: string | null | undefined;
|
|
939
|
-
error_message?: string | null | undefined;
|
|
940
|
-
}>;
|
|
941
|
-
type JlcpcbOrderStepRun = z.infer<typeof jlcpcbOrderStepRunSchema>;
|
|
942
|
-
declare const packageBuildSchema: z.ZodObject<{
|
|
943
|
-
package_build_id: z.ZodString;
|
|
944
|
-
package_release_id: z.ZodString;
|
|
945
|
-
created_at: z.ZodString;
|
|
946
|
-
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
947
|
-
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
|
-
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
|
-
transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
950
|
-
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
951
|
-
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
952
|
-
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
953
|
-
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
954
|
-
circuit_json_build_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
955
|
-
circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
956
|
-
image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
957
|
-
image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
-
image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
959
|
-
image_generation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
960
|
-
image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
|
-
build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
962
|
-
build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
963
|
-
build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
-
build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
|
-
build_error_last_updated_at: z.ZodString;
|
|
966
|
-
preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
-
build_logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
|
-
}, "strip", z.ZodTypeAny, {
|
|
969
|
-
package_release_id: string;
|
|
970
|
-
created_at: string;
|
|
971
|
-
transpilation_in_progress: boolean;
|
|
972
|
-
transpilation_logs: any[];
|
|
973
|
-
circuit_json_build_in_progress: boolean;
|
|
974
|
-
circuit_json_build_logs: any[];
|
|
975
|
-
image_generation_in_progress: boolean;
|
|
976
|
-
image_generation_logs: any[];
|
|
977
|
-
package_build_id: string;
|
|
978
|
-
build_in_progress: boolean;
|
|
979
|
-
build_error_last_updated_at: string;
|
|
980
|
-
circuit_json_build_error?: string | null | undefined;
|
|
981
|
-
transpilation_error?: string | null | undefined;
|
|
982
|
-
transpilation_started_at?: string | null | undefined;
|
|
983
|
-
transpilation_completed_at?: string | null | undefined;
|
|
984
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
985
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
986
|
-
image_generation_started_at?: string | null | undefined;
|
|
987
|
-
image_generation_completed_at?: string | null | undefined;
|
|
988
|
-
image_generation_error?: string | null | undefined;
|
|
989
|
-
build_started_at?: string | null | undefined;
|
|
990
|
-
build_completed_at?: string | null | undefined;
|
|
991
|
-
build_error?: string | null | undefined;
|
|
992
|
-
preview_url?: string | null | undefined;
|
|
993
|
-
build_logs?: string | null | undefined;
|
|
994
|
-
}, {
|
|
995
|
-
package_release_id: string;
|
|
996
|
-
created_at: string;
|
|
997
|
-
package_build_id: string;
|
|
998
|
-
build_error_last_updated_at: string;
|
|
999
|
-
circuit_json_build_error?: string | null | undefined;
|
|
1000
|
-
transpilation_error?: string | null | undefined;
|
|
1001
|
-
transpilation_in_progress?: boolean | undefined;
|
|
1002
|
-
transpilation_started_at?: string | null | undefined;
|
|
1003
|
-
transpilation_completed_at?: string | null | undefined;
|
|
1004
|
-
transpilation_logs?: any[] | undefined;
|
|
1005
|
-
circuit_json_build_in_progress?: boolean | undefined;
|
|
1006
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
1007
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
1008
|
-
circuit_json_build_logs?: any[] | undefined;
|
|
1009
|
-
image_generation_in_progress?: boolean | undefined;
|
|
1010
|
-
image_generation_started_at?: string | null | undefined;
|
|
1011
|
-
image_generation_completed_at?: string | null | undefined;
|
|
1012
|
-
image_generation_logs?: any[] | undefined;
|
|
1013
|
-
image_generation_error?: string | null | undefined;
|
|
1014
|
-
build_in_progress?: boolean | undefined;
|
|
1015
|
-
build_started_at?: string | null | undefined;
|
|
1016
|
-
build_completed_at?: string | null | undefined;
|
|
1017
|
-
build_error?: string | null | undefined;
|
|
1018
|
-
preview_url?: string | null | undefined;
|
|
1019
|
-
build_logs?: string | null | undefined;
|
|
1020
|
-
}>;
|
|
1021
|
-
type PackageBuild = z.infer<typeof packageBuildSchema>;
|
|
1022
|
-
declare const orgSchema: z.ZodObject<{
|
|
1023
|
-
org_id: z.ZodString;
|
|
1024
|
-
github_handle: z.ZodOptional<z.ZodString>;
|
|
1025
|
-
owner_account_id: z.ZodString;
|
|
1026
|
-
is_personal_org: z.ZodDefault<z.ZodBoolean>;
|
|
1027
|
-
created_at: z.ZodString;
|
|
1028
|
-
org_display_name: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
org_name: z.ZodString;
|
|
1030
|
-
}, "strip", z.ZodTypeAny, {
|
|
1031
|
-
created_at: string;
|
|
1032
|
-
org_id: string;
|
|
1033
|
-
owner_account_id: string;
|
|
1034
|
-
is_personal_org: boolean;
|
|
1035
|
-
org_name: string;
|
|
1036
|
-
github_handle?: string | undefined;
|
|
1037
|
-
org_display_name?: string | undefined;
|
|
1038
|
-
}, {
|
|
1039
|
-
created_at: string;
|
|
1040
|
-
org_id: string;
|
|
1041
|
-
owner_account_id: string;
|
|
1042
|
-
org_name: string;
|
|
1043
|
-
github_handle?: string | undefined;
|
|
1044
|
-
is_personal_org?: boolean | undefined;
|
|
1045
|
-
org_display_name?: string | undefined;
|
|
1046
|
-
}>;
|
|
1047
|
-
type Organization = z.infer<typeof orgSchema>;
|
|
1048
|
-
declare const orgAccountSchema: z.ZodObject<{
|
|
1049
|
-
org_account_id: z.ZodString;
|
|
1050
|
-
org_id: z.ZodString;
|
|
1051
|
-
account_id: z.ZodString;
|
|
1052
|
-
is_owner: z.ZodDefault<z.ZodBoolean>;
|
|
1053
|
-
created_at: z.ZodString;
|
|
1054
|
-
}, "strip", z.ZodTypeAny, {
|
|
1055
|
-
created_at: string;
|
|
1056
|
-
account_id: string;
|
|
1057
|
-
org_id: string;
|
|
1058
|
-
org_account_id: string;
|
|
1059
|
-
is_owner: boolean;
|
|
1060
|
-
}, {
|
|
1061
|
-
created_at: string;
|
|
1062
|
-
account_id: string;
|
|
1063
|
-
org_id: string;
|
|
1064
|
-
org_account_id: string;
|
|
1065
|
-
is_owner?: boolean | undefined;
|
|
1066
|
-
}>;
|
|
1067
|
-
type OrgAccount = z.infer<typeof orgAccountSchema>;
|
|
1068
|
-
|
|
1069
|
-
declare const createDatabase: ({ seed }?: {
|
|
1070
|
-
seed?: boolean;
|
|
1071
|
-
}) => zustand_vanilla.StoreApi<Omit<{
|
|
1072
|
-
idCounter: number;
|
|
1073
|
-
snippets: {
|
|
1074
|
-
code: string;
|
|
1075
|
-
snippet_id: string;
|
|
1076
|
-
package_release_id: string;
|
|
1077
|
-
name: string;
|
|
1078
|
-
unscoped_name: string;
|
|
1079
|
-
owner_name: string;
|
|
1080
|
-
is_starred: boolean;
|
|
1081
|
-
created_at: string;
|
|
1082
|
-
updated_at: string;
|
|
1083
|
-
snippet_type: "board" | "package" | "model" | "footprint";
|
|
1084
|
-
version: string;
|
|
1085
|
-
star_count: number;
|
|
1086
|
-
is_private: boolean;
|
|
1087
|
-
is_public: boolean;
|
|
1088
|
-
is_unlisted: boolean;
|
|
1089
|
-
dts?: string | undefined;
|
|
1090
|
-
compiled_js?: string | null | undefined;
|
|
1091
|
-
circuit_json?: Record<string, any>[] | null | undefined;
|
|
1092
|
-
manual_edits_json_content?: string | null | undefined;
|
|
1093
|
-
starred_at?: string | undefined;
|
|
1094
|
-
description?: string | undefined;
|
|
1095
|
-
tags?: string[] | undefined;
|
|
1096
|
-
}[];
|
|
1097
|
-
packageReleases: {
|
|
1098
|
-
package_release_id: string;
|
|
1099
|
-
created_at: string;
|
|
1100
|
-
version: string | null;
|
|
1101
|
-
display_status: "error" | "pending" | "building" | "complete";
|
|
1102
|
-
package_id: string;
|
|
1103
|
-
is_locked: boolean;
|
|
1104
|
-
is_latest: boolean;
|
|
1105
|
-
has_transpiled: boolean;
|
|
1106
|
-
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
1107
|
-
transpilation_in_progress: boolean;
|
|
1108
|
-
transpilation_logs: any[];
|
|
1109
|
-
transpilation_is_stale: boolean;
|
|
1110
|
-
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1111
|
-
circuit_json_build_in_progress: boolean;
|
|
1112
|
-
circuit_json_build_logs: any[];
|
|
1113
|
-
circuit_json_build_is_stale: boolean;
|
|
1114
|
-
image_generation_display_status: "error" | "pending" | "building" | "complete";
|
|
1115
|
-
image_generation_in_progress: boolean;
|
|
1116
|
-
image_generation_logs: any[] | null;
|
|
1117
|
-
image_generation_is_stale: boolean;
|
|
1118
|
-
ai_review_requested: boolean;
|
|
1119
|
-
is_pr_preview: boolean;
|
|
1120
|
-
pcb_preview_image_url: string | null;
|
|
1121
|
-
sch_preview_image_url: string | null;
|
|
1122
|
-
cad_preview_image_url: string | null;
|
|
1123
|
-
ai_review_text?: string | null | undefined;
|
|
1124
|
-
commit_sha?: string | null | undefined;
|
|
1125
|
-
license?: string | null | undefined;
|
|
1126
|
-
circuit_json_build_error?: string | null | undefined;
|
|
1127
|
-
circuit_json_build_error_last_updated_at?: string | null | undefined;
|
|
1128
|
-
transpilation_error?: string | null | undefined;
|
|
1129
|
-
fs_sha?: string | null | undefined;
|
|
1130
|
-
total_build_duration_ms?: number | null | undefined;
|
|
1131
|
-
transpilation_started_at?: string | null | undefined;
|
|
1132
|
-
transpilation_completed_at?: string | null | undefined;
|
|
1133
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
1134
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
1135
|
-
image_generation_started_at?: string | null | undefined;
|
|
1136
|
-
image_generation_completed_at?: string | null | undefined;
|
|
1137
|
-
image_generation_error?: string | null | undefined;
|
|
1138
|
-
image_generation_error_last_updated_at?: string | null | undefined;
|
|
1139
|
-
ai_review_started_at?: string | null | undefined;
|
|
1140
|
-
ai_review_completed_at?: string | null | undefined;
|
|
1141
|
-
ai_review_error?: any;
|
|
1142
|
-
ai_review_logs?: any[] | null | undefined;
|
|
1143
|
-
github_pr_number?: number | null | undefined;
|
|
1144
|
-
latest_package_build_id?: string | null | undefined;
|
|
1145
|
-
branch_name?: string | null | undefined;
|
|
1146
|
-
commit_message?: string | null | undefined;
|
|
1147
|
-
commit_author?: string | null | undefined;
|
|
1148
|
-
}[];
|
|
1149
|
-
packageFiles: {
|
|
1150
|
-
package_release_id: string;
|
|
1151
|
-
created_at: string;
|
|
1152
|
-
file_path: string;
|
|
1153
|
-
package_file_id: string;
|
|
1154
|
-
content_text?: string | null | undefined;
|
|
1155
|
-
content_mimetype?: string | null | undefined;
|
|
1156
|
-
is_release_tarball?: boolean | undefined;
|
|
1157
|
-
npm_pack_output?: any;
|
|
1158
|
-
}[];
|
|
1159
|
-
sessions: {
|
|
1160
|
-
session_id: string;
|
|
1161
|
-
account_id: string;
|
|
1162
|
-
expires_at: string;
|
|
1163
|
-
is_cli_session: boolean;
|
|
1164
|
-
}[];
|
|
1165
|
-
loginPages: {
|
|
1166
|
-
created_at: string;
|
|
1167
|
-
expires_at: string;
|
|
1168
|
-
login_page_id: string;
|
|
1169
|
-
login_page_auth_token: string;
|
|
1170
|
-
was_login_successful: boolean;
|
|
1171
|
-
has_been_used_to_create_session: boolean;
|
|
1172
|
-
}[];
|
|
1173
|
-
accounts: {
|
|
1174
|
-
account_id: string;
|
|
1175
|
-
github_username: string;
|
|
1176
|
-
is_tscircuit_staff: boolean;
|
|
1177
|
-
shippingInfo?: {
|
|
1178
|
-
firstName: string;
|
|
1179
|
-
lastName: string;
|
|
1180
|
-
address: string;
|
|
1181
|
-
city: string;
|
|
1182
|
-
state: string;
|
|
1183
|
-
zipCode: string;
|
|
1184
|
-
country: string;
|
|
1185
|
-
phone: string;
|
|
1186
|
-
companyName?: string | undefined;
|
|
1187
|
-
apartment?: string | undefined;
|
|
1188
|
-
} | undefined;
|
|
1189
|
-
personal_org_id?: string | undefined;
|
|
1190
|
-
}[];
|
|
1191
|
-
packages: {
|
|
1192
|
-
name: string;
|
|
1193
|
-
unscoped_name: string;
|
|
1194
|
-
created_at: string;
|
|
1195
|
-
updated_at: string;
|
|
1196
|
-
description: string | null;
|
|
1197
|
-
star_count: number;
|
|
1198
|
-
is_private: boolean | null;
|
|
1199
|
-
is_public: boolean | null;
|
|
1200
|
-
is_unlisted: boolean | null;
|
|
1201
|
-
ai_description: string | null;
|
|
1202
|
-
package_id: string;
|
|
1203
|
-
license: string | null;
|
|
1204
|
-
creator_account_id: string;
|
|
1205
|
-
owner_org_id: string;
|
|
1206
|
-
owner_github_username: string | null;
|
|
1207
|
-
github_repo_full_name: string | null;
|
|
1208
|
-
is_snippet: boolean;
|
|
1209
|
-
is_board: boolean;
|
|
1210
|
-
is_package: boolean;
|
|
1211
|
-
is_model: boolean;
|
|
1212
|
-
is_footprint: boolean;
|
|
1213
|
-
is_source_from_github: boolean;
|
|
1214
|
-
latest_package_release_id: string | null;
|
|
1215
|
-
latest_version: string | null;
|
|
1216
|
-
website: string | null;
|
|
1217
|
-
ai_usage_instructions: string | null;
|
|
1218
|
-
latest_package_release_fs_sha: string | null;
|
|
1219
|
-
is_starred?: boolean | undefined;
|
|
1220
|
-
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1221
|
-
latest_license?: string | null | undefined;
|
|
1222
|
-
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
1223
|
-
allow_pr_previews?: boolean | undefined;
|
|
1224
|
-
latest_pcb_preview_image_url?: string | null | undefined;
|
|
1225
|
-
latest_sch_preview_image_url?: string | null | undefined;
|
|
1226
|
-
latest_cad_preview_image_url?: string | null | undefined;
|
|
1227
|
-
}[];
|
|
1228
|
-
orders: {
|
|
1229
|
-
error: z.objectOutputType<{
|
|
1230
|
-
error_code: z.ZodString;
|
|
1231
|
-
message: z.ZodString;
|
|
1232
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1233
|
-
created_at: string;
|
|
1234
|
-
account_id: string | null;
|
|
1235
|
-
order_id: string;
|
|
1236
|
-
is_running: boolean;
|
|
1237
|
-
is_started: boolean;
|
|
1238
|
-
is_finished: boolean;
|
|
1239
|
-
has_error: boolean;
|
|
1240
|
-
started_at: string | null;
|
|
1241
|
-
completed_at: string | null;
|
|
1242
|
-
circuit_json?: any;
|
|
1243
|
-
}[];
|
|
1244
|
-
organizations: {
|
|
1245
|
-
created_at: string;
|
|
1246
|
-
org_id: string;
|
|
1247
|
-
owner_account_id: string;
|
|
1248
|
-
is_personal_org: boolean;
|
|
1249
|
-
org_name: string;
|
|
1250
|
-
github_handle?: string | undefined;
|
|
1251
|
-
org_display_name?: string | undefined;
|
|
1252
|
-
}[];
|
|
1253
|
-
orgAccounts: {
|
|
1254
|
-
created_at: string;
|
|
1255
|
-
account_id: string;
|
|
1256
|
-
org_id: string;
|
|
1257
|
-
org_account_id: string;
|
|
1258
|
-
is_owner: boolean;
|
|
1259
|
-
}[];
|
|
1260
|
-
orderFiles: {
|
|
1261
|
-
order_id: string;
|
|
1262
|
-
order_file_id: string;
|
|
1263
|
-
is_gerbers_zip: boolean;
|
|
1264
|
-
content_type: string;
|
|
1265
|
-
for_provider: string | null;
|
|
1266
|
-
uploaded_at: string;
|
|
1267
|
-
content_text: string | null;
|
|
1268
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
1269
|
-
}[];
|
|
1270
|
-
accountSnippets: {
|
|
1271
|
-
snippet_id: string;
|
|
1272
|
-
created_at: string;
|
|
1273
|
-
updated_at: string;
|
|
1274
|
-
account_id: string;
|
|
1275
|
-
has_starred: boolean;
|
|
1276
|
-
}[];
|
|
1277
|
-
accountPackages: {
|
|
1278
|
-
is_starred: boolean;
|
|
1279
|
-
created_at: string;
|
|
1280
|
-
updated_at: string;
|
|
1281
|
-
account_id: string;
|
|
1282
|
-
account_package_id: string;
|
|
1283
|
-
package_id: string;
|
|
1284
|
-
}[];
|
|
1285
|
-
jlcpcbOrderState: {
|
|
1286
|
-
created_at: string;
|
|
1287
|
-
order_id: string;
|
|
1288
|
-
jlcpcb_order_state_id: string;
|
|
1289
|
-
are_gerbers_uploaded: boolean;
|
|
1290
|
-
is_gerber_analyzed: boolean;
|
|
1291
|
-
are_initial_costs_calculated: boolean;
|
|
1292
|
-
is_pcb_added_to_cart: boolean;
|
|
1293
|
-
is_bom_uploaded: boolean;
|
|
1294
|
-
is_pnp_uploaded: boolean;
|
|
1295
|
-
is_bom_pnp_analyzed: boolean;
|
|
1296
|
-
is_bom_parsing_complete: boolean;
|
|
1297
|
-
are_components_available: boolean;
|
|
1298
|
-
is_patch_map_generated: boolean;
|
|
1299
|
-
is_json_merge_file_created: boolean;
|
|
1300
|
-
is_dfm_result_generated: boolean;
|
|
1301
|
-
are_files_downloaded: boolean;
|
|
1302
|
-
are_product_categories_fetched: boolean;
|
|
1303
|
-
are_final_costs_calculated: boolean;
|
|
1304
|
-
is_json_merge_file_updated: boolean;
|
|
1305
|
-
is_added_to_cart: boolean;
|
|
1306
|
-
are_gerbers_generated: boolean;
|
|
1307
|
-
current_step: string | null;
|
|
1308
|
-
uploaded_gerber_metadata?: any;
|
|
1309
|
-
gerber_analysis?: any;
|
|
1310
|
-
}[];
|
|
1311
|
-
jlcpcbOrderStepRuns: {
|
|
1312
|
-
created_at: string;
|
|
1313
|
-
is_running: boolean | null;
|
|
1314
|
-
jlcpcb_order_state_id: string | null;
|
|
1315
|
-
jlcpcb_order_step_run_id: string;
|
|
1316
|
-
step_function_name: string | null;
|
|
1317
|
-
error_message: string | null;
|
|
1318
|
-
}[];
|
|
1319
|
-
orderQuotes: {
|
|
1320
|
-
error: z.objectOutputType<{
|
|
1321
|
-
error_code: z.ZodString;
|
|
1322
|
-
message: z.ZodString;
|
|
1323
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1324
|
-
package_release_id: string | null;
|
|
1325
|
-
created_at: string;
|
|
1326
|
-
updated_at: string;
|
|
1327
|
-
account_id: string | null;
|
|
1328
|
-
has_error: boolean;
|
|
1329
|
-
completed_at: string | null;
|
|
1330
|
-
order_quote_id: string;
|
|
1331
|
-
is_completed: boolean;
|
|
1332
|
-
is_processing: boolean;
|
|
1333
|
-
vendor_name: string;
|
|
1334
|
-
quoted_components: {
|
|
1335
|
-
manufacturer_part_number: string | null;
|
|
1336
|
-
supplier_part_number: string | null;
|
|
1337
|
-
quantity: number;
|
|
1338
|
-
unit_price: number;
|
|
1339
|
-
total_price: number;
|
|
1340
|
-
available: boolean;
|
|
1341
|
-
}[] | null;
|
|
1342
|
-
bare_pcb_cost: number;
|
|
1343
|
-
shipping_options: {
|
|
1344
|
-
carrier: string;
|
|
1345
|
-
service: string;
|
|
1346
|
-
cost: number;
|
|
1347
|
-
}[];
|
|
1348
|
-
total_cost_without_shipping: number;
|
|
1349
|
-
}[];
|
|
1350
|
-
aiReviews: {
|
|
1351
|
-
created_at: string;
|
|
1352
|
-
ai_review_id: string;
|
|
1353
|
-
ai_review_text: string | null;
|
|
1354
|
-
start_processing_at: string | null;
|
|
1355
|
-
finished_processing_at: string | null;
|
|
1356
|
-
display_status: "pending" | "completed" | "failed";
|
|
1357
|
-
package_release_id?: string | undefined;
|
|
1358
|
-
processing_error?: any;
|
|
1359
|
-
}[];
|
|
1360
|
-
datasheets: {
|
|
1361
|
-
created_at: string;
|
|
1362
|
-
datasheet_id: string;
|
|
1363
|
-
chip_name: string;
|
|
1364
|
-
pin_information: {
|
|
1365
|
-
name: string;
|
|
1366
|
-
description: string;
|
|
1367
|
-
pin_number: string;
|
|
1368
|
-
capabilities: string[];
|
|
1369
|
-
}[] | null;
|
|
1370
|
-
datasheet_pdf_urls: string[] | null;
|
|
1371
|
-
ai_description: string | null;
|
|
1372
|
-
}[];
|
|
1373
|
-
githubInstallations: {
|
|
1374
|
-
created_at: string;
|
|
1375
|
-
updated_at: string;
|
|
1376
|
-
account_id: string;
|
|
1377
|
-
github_username: string;
|
|
1378
|
-
github_installation_id: string;
|
|
1379
|
-
installation_id: string;
|
|
1380
|
-
is_active: boolean;
|
|
1381
|
-
access_token?: string | null | undefined;
|
|
1382
|
-
access_token_expires_at?: string | null | undefined;
|
|
1383
|
-
}[];
|
|
1384
|
-
packageBuilds: {
|
|
1385
|
-
package_release_id: string;
|
|
1386
|
-
created_at: string;
|
|
1387
|
-
transpilation_in_progress: boolean;
|
|
1388
|
-
transpilation_logs: any[];
|
|
1389
|
-
circuit_json_build_in_progress: boolean;
|
|
1390
|
-
circuit_json_build_logs: any[];
|
|
1391
|
-
image_generation_in_progress: boolean;
|
|
1392
|
-
image_generation_logs: any[];
|
|
1393
|
-
package_build_id: string;
|
|
1394
|
-
build_in_progress: boolean;
|
|
1395
|
-
build_error_last_updated_at: string;
|
|
1396
|
-
circuit_json_build_error?: string | null | undefined;
|
|
1397
|
-
transpilation_error?: string | null | undefined;
|
|
1398
|
-
transpilation_started_at?: string | null | undefined;
|
|
1399
|
-
transpilation_completed_at?: string | null | undefined;
|
|
1400
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
1401
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
1402
|
-
image_generation_started_at?: string | null | undefined;
|
|
1403
|
-
image_generation_completed_at?: string | null | undefined;
|
|
1404
|
-
image_generation_error?: string | null | undefined;
|
|
1405
|
-
build_started_at?: string | null | undefined;
|
|
1406
|
-
build_completed_at?: string | null | undefined;
|
|
1407
|
-
build_error?: string | null | undefined;
|
|
1408
|
-
preview_url?: string | null | undefined;
|
|
1409
|
-
build_logs?: string | null | undefined;
|
|
1410
|
-
}[];
|
|
1411
|
-
bugReports: {
|
|
1412
|
-
created_at: string;
|
|
1413
|
-
bug_report_id: string;
|
|
1414
|
-
reporter_account_id: string;
|
|
1415
|
-
text: string | null;
|
|
1416
|
-
is_auto_deleted: boolean;
|
|
1417
|
-
delete_at: string | null;
|
|
1418
|
-
file_count: number;
|
|
1419
|
-
}[];
|
|
1420
|
-
bugReportFiles: {
|
|
1421
|
-
created_at: string;
|
|
1422
|
-
content_text: string | null;
|
|
1423
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
1424
|
-
bug_report_id: string;
|
|
1425
|
-
bug_report_file_id: string;
|
|
1426
|
-
file_path: string;
|
|
1427
|
-
content_mimetype: string;
|
|
1428
|
-
is_text: boolean;
|
|
1429
|
-
}[];
|
|
1430
|
-
}, "addOrder" | "getOrderById" | "getOrderFilesByOrderId" | "addOrderQuote" | "getOrderQuoteById" | "getJlcpcbOrderStatesByOrderId" | "getJlcpcbOrderStepRunsByJlcpcbOrderStateId" | "updateOrder" | "addJlcpcbOrderState" | "updateJlcpcbOrderState" | "addOrderFile" | "getOrderFileById" | "addBugReport" | "getBugReportById" | "addBugReportFile" | "getBugReportFilesByBugReportId" | "addAccount" | "addAccountPackage" | "getAccountPackageById" | "updateAccountPackage" | "deleteAccountPackage" | "addSnippet" | "getLatestSnippets" | "getTrendingSnippets" | "getPackagesByAuthor" | "getSnippetByAuthorAndName" | "updateSnippet" | "getSnippetById" | "searchSnippets" | "searchPackages" | "searchAccounts" | "deleteSnippet" | "addSession" | "getSessions" | "createLoginPage" | "getLoginPage" | "updateLoginPage" | "getAccount" | "updateAccount" | "createSession" | "addStar" | "removeStar" | "hasStarred" | "addPackage" | "updatePackage" | "getPackageById" | "getPackageReleaseById" | "addPackageRelease" | "updatePackageRelease" | "deletePackageFile" | "addPackageFile" | "updatePackageFile" | "getStarCount" | "getPackageFilesByReleaseId" | "updatePackageReleaseFsSha" | "addAiReview" | "updateAiReview" | "getAiReviewById" | "listAiReviews" | "addDatasheet" | "getDatasheetById" | "getDatasheetByChipName" | "listDatasheets" | "updateDatasheet" | "addPackageBuild" | "getPackageBuildById" | "getPackageBuildsByReleaseId" | "updatePackageBuild" | "addOrganization" | "getOrgs" | "getOrg" | "addOrganizationAccount" | "getOrganizationAccount" | "getOrganizationAccounts" | "removeOrganizationAccount" | "updateOrganization"> & {
|
|
1431
|
-
addOrder: (order: Omit<Order, "order_id">) => Order;
|
|
1432
|
-
getOrderById: (orderId: string) => Order | undefined;
|
|
1433
|
-
getOrderFilesByOrderId: (orderId: string) => OrderFile[];
|
|
1434
|
-
addOrderQuote: ({ account_id, package_release_id, vendor_name, }: {
|
|
1435
|
-
account_id: string;
|
|
1436
|
-
package_release_id?: string;
|
|
1437
|
-
vendor_name: string;
|
|
1438
|
-
}) => string;
|
|
1439
|
-
getOrderQuoteById: (orderQuoteId: string) => OrderQuote | undefined;
|
|
1440
|
-
getJlcpcbOrderStatesByOrderId: (orderId: string) => JlcpcbOrderState | undefined;
|
|
1441
|
-
getJlcpcbOrderStepRunsByJlcpcbOrderStateId: (jlcpcbOrderStateId: string) => JlcpcbOrderStepRun[];
|
|
1442
|
-
updateOrder: (orderId: string, updates: Partial<Order>) => void;
|
|
1443
|
-
addJlcpcbOrderState: (orderState: Omit<JlcpcbOrderState, "jlcpcb_order_state_id">) => JlcpcbOrderState;
|
|
1444
|
-
updateJlcpcbOrderState: (orderId: string, updates: Partial<JlcpcbOrderState>) => void;
|
|
1445
|
-
addOrderFile: (orderFile: Omit<OrderFile, "order_file_id">) => OrderFile;
|
|
1446
|
-
getOrderFileById: (orderFileId: string) => OrderFile | undefined;
|
|
1447
|
-
addBugReport: ({ reporter_account_id, text, is_auto_deleted, delete_at, }: {
|
|
1448
|
-
reporter_account_id: string;
|
|
1449
|
-
text?: string | null;
|
|
1450
|
-
is_auto_deleted?: boolean;
|
|
1451
|
-
delete_at?: string | null;
|
|
1452
|
-
}) => BugReport;
|
|
1453
|
-
getBugReportById: (bugReportId: string) => BugReport | undefined;
|
|
1454
|
-
addBugReportFile: ({ bug_report_id, file_path, content_mimetype, is_text, content_text, content_bytes, }: {
|
|
1455
|
-
bug_report_id: string;
|
|
1456
|
-
file_path: string;
|
|
1457
|
-
content_mimetype: string;
|
|
1458
|
-
is_text: boolean;
|
|
1459
|
-
content_text: string | null;
|
|
1460
|
-
content_bytes: Uint8Array | null;
|
|
1461
|
-
}) => BugReportFile;
|
|
1462
|
-
getBugReportFilesByBugReportId: (bugReportId: string) => BugReportFile[];
|
|
1463
|
-
addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
|
|
1464
|
-
is_tscircuit_staff: boolean;
|
|
1465
|
-
github_username: string;
|
|
1466
|
-
shippingInfo?: {
|
|
1467
|
-
firstName: string;
|
|
1468
|
-
lastName: string;
|
|
1469
|
-
address: string;
|
|
1470
|
-
city: string;
|
|
1471
|
-
state: string;
|
|
1472
|
-
zipCode: string;
|
|
1473
|
-
country: string;
|
|
1474
|
-
phone: string;
|
|
1475
|
-
companyName?: string | undefined;
|
|
1476
|
-
apartment?: string | undefined;
|
|
1477
|
-
} | undefined;
|
|
1478
|
-
personal_org_id?: string | undefined;
|
|
1479
|
-
account_id: string;
|
|
1480
|
-
};
|
|
1481
|
-
addAccountPackage: (accountPackage: Omit<AccountPackage, "account_package_id">) => AccountPackage;
|
|
1482
|
-
getAccountPackageById: (accountPackageId: string) => AccountPackage | undefined;
|
|
1483
|
-
updateAccountPackage: (accountPackageId: string, updates: Partial<AccountPackage>) => void;
|
|
1484
|
-
deleteAccountPackage: (accountPackageId: string) => boolean;
|
|
1485
|
-
addSnippet: (snippet: Omit<z.input<typeof snippetSchema>, "snippet_id" | "package_release_id"> & {
|
|
1486
|
-
creator_account_id?: string;
|
|
1487
|
-
github_repo_full_name?: string;
|
|
1488
|
-
branch_name?: string;
|
|
1489
|
-
commit_message?: string;
|
|
1490
|
-
commit_author?: string;
|
|
1491
|
-
}) => Snippet;
|
|
1492
|
-
getLatestSnippets: (limit: number) => Snippet[];
|
|
1493
|
-
getTrendingSnippets: (limit: number, since: string) => Snippet[];
|
|
1494
|
-
getPackagesByAuthor: (authorName?: string) => Package[];
|
|
1495
|
-
getSnippetByAuthorAndName: (authorName: string, snippetName: string) => Snippet | undefined;
|
|
1496
|
-
updateSnippet: (snippetId: string, updates: Partial<Snippet>) => Snippet | undefined;
|
|
1497
|
-
getSnippetById: (snippetId: string, auth?: {
|
|
1498
|
-
github_username: string;
|
|
1499
|
-
}) => Snippet | undefined;
|
|
1500
|
-
searchSnippets: (query: string) => Snippet[];
|
|
1501
|
-
searchPackages: (query: string) => Package[];
|
|
1502
|
-
searchAccounts: (query: string, limit?: number) => Account[];
|
|
1503
|
-
deleteSnippet: (snippetId: string) => boolean;
|
|
1504
|
-
addSession: (session: Omit<Session, "session_id">) => Session;
|
|
1505
|
-
getSessions: ({ account_id, is_cli_session, }: {
|
|
1506
|
-
account_id: string;
|
|
1507
|
-
is_cli_session?: boolean;
|
|
1508
|
-
}) => Session[];
|
|
1509
|
-
createLoginPage: () => LoginPage;
|
|
1510
|
-
getLoginPage: (loginPageId: string) => LoginPage | undefined;
|
|
1511
|
-
updateLoginPage: (loginPageId: string, updates: Partial<LoginPage>) => void;
|
|
1512
|
-
getAccount: (accountId: string) => Account | undefined;
|
|
1513
|
-
updateAccount: (accountId: string, updates: Partial<Account>) => Account | undefined;
|
|
1514
|
-
createSession: (session: Omit<Session, "session_id">) => Session;
|
|
1515
|
-
addStar: (accountId: string, packageId: string) => AccountPackage;
|
|
1516
|
-
removeStar: (accountId: string, packageId: string) => void;
|
|
1517
|
-
hasStarred: (accountId: string, packageId: string) => boolean;
|
|
1518
|
-
addPackage: (_package: Omit<z.input<typeof packageSchema>, "package_id" | "github_repo_full_name">) => Package;
|
|
1519
|
-
updatePackage: (packageId: string, updates: Partial<Package>) => Package | undefined;
|
|
1520
|
-
getPackageById: (packageId: string) => Package | undefined;
|
|
1521
|
-
getPackageReleaseById: (packageReleaseId: string) => PackageRelease | undefined;
|
|
1522
|
-
addPackageRelease: (packageRelease: Omit<z.input<typeof packageReleaseSchema>, "package_release_id">) => PackageRelease;
|
|
1523
|
-
updatePackageRelease: (packageRelease: PackageRelease) => void;
|
|
1524
|
-
deletePackageFile: (packageFileId: string) => boolean;
|
|
1525
|
-
addPackageFile: (packageFile: Omit<PackageFile, "package_file_id">) => PackageFile;
|
|
1526
|
-
updatePackageFile: (packageFileId: string, updates: Partial<Omit<PackageFile, "package_file_id">>) => PackageFile;
|
|
1527
|
-
getStarCount: (packageId: string) => number;
|
|
1528
|
-
getPackageFilesByReleaseId: (packageReleaseId: string) => PackageFile[];
|
|
1529
|
-
/**
|
|
1530
|
-
* Update fs_sha for a package release based on its files
|
|
1531
|
-
*/
|
|
1532
|
-
updatePackageReleaseFsSha: (packageReleaseId: string) => void;
|
|
1533
|
-
addAiReview: (review: Omit<AiReview, "ai_review_id">) => AiReview;
|
|
1534
|
-
updateAiReview: (aiReviewId: string, updates: Partial<AiReview>) => AiReview | undefined;
|
|
1535
|
-
getAiReviewById: (aiReviewId: string) => AiReview | undefined;
|
|
1536
|
-
listAiReviews: () => AiReview[];
|
|
1537
|
-
addDatasheet: ({ chip_name }: {
|
|
1538
|
-
chip_name: string;
|
|
1539
|
-
}) => Datasheet;
|
|
1540
|
-
getDatasheetById: (datasheetId: string) => Datasheet | undefined;
|
|
1541
|
-
getDatasheetByChipName: (chipName: string) => Datasheet | undefined;
|
|
1542
|
-
listDatasheets: ({ chip_name, is_popular, }?: {
|
|
1543
|
-
chip_name?: string;
|
|
1544
|
-
is_popular?: boolean;
|
|
1545
|
-
}) => Datasheet[];
|
|
1546
|
-
updateDatasheet: (datasheetId: string, updates: Partial<Datasheet>) => Datasheet | undefined;
|
|
1547
|
-
addPackageBuild: (packageBuild: Omit<z.input<typeof packageBuildSchema>, "package_build_id">) => PackageBuild;
|
|
1548
|
-
getPackageBuildById: (packageBuildId: string) => PackageBuild | undefined;
|
|
1549
|
-
getPackageBuildsByReleaseId: (packageReleaseId: string) => PackageBuild[];
|
|
1550
|
-
updatePackageBuild: (packageBuildId: string, updates: Partial<PackageBuild>) => PackageBuild | undefined;
|
|
1551
|
-
addOrganization: (organization: {
|
|
1552
|
-
name: string;
|
|
1553
|
-
org_id?: string;
|
|
1554
|
-
is_personal_org?: boolean;
|
|
1555
|
-
owner_account_id: string;
|
|
1556
|
-
github_handle?: string;
|
|
1557
|
-
}) => {
|
|
1558
|
-
created_at: string;
|
|
1559
|
-
org_id: string;
|
|
1560
|
-
owner_account_id: string;
|
|
1561
|
-
is_personal_org: boolean;
|
|
1562
|
-
org_name: string;
|
|
1563
|
-
github_handle?: string | undefined;
|
|
1564
|
-
org_display_name?: string | undefined;
|
|
1565
|
-
};
|
|
1566
|
-
getOrgs: (filters?: {
|
|
1567
|
-
owner_account_id?: string;
|
|
1568
|
-
github_handle?: string;
|
|
1569
|
-
name?: string;
|
|
1570
|
-
}, auth?: {
|
|
1571
|
-
account_id?: string;
|
|
1572
|
-
}) => {
|
|
1573
|
-
member_count: number;
|
|
1574
|
-
package_count: number;
|
|
1575
|
-
can_manage_org: boolean;
|
|
1576
|
-
created_at: string;
|
|
1577
|
-
org_id: string;
|
|
1578
|
-
owner_account_id: string;
|
|
1579
|
-
is_personal_org: boolean;
|
|
1580
|
-
org_name: string;
|
|
1581
|
-
github_handle?: string | undefined;
|
|
1582
|
-
org_display_name?: string | undefined;
|
|
1583
|
-
}[];
|
|
1584
|
-
getOrg: (filters: {
|
|
1585
|
-
org_id?: string;
|
|
1586
|
-
org_name?: string;
|
|
1587
|
-
github_handle?: string;
|
|
1588
|
-
}, auth?: {
|
|
1589
|
-
account_id: string;
|
|
1590
|
-
}) => {
|
|
1591
|
-
member_count: number;
|
|
1592
|
-
package_count: number;
|
|
1593
|
-
can_manage_org: boolean;
|
|
1594
|
-
created_at: string;
|
|
1595
|
-
org_id: string;
|
|
1596
|
-
owner_account_id: string;
|
|
1597
|
-
is_personal_org: boolean;
|
|
1598
|
-
org_name: string;
|
|
1599
|
-
github_handle?: string | undefined;
|
|
1600
|
-
org_display_name?: string | undefined;
|
|
1601
|
-
} | null;
|
|
1602
|
-
addOrganizationAccount: (organizationAccount: {
|
|
1603
|
-
org_id: string;
|
|
1604
|
-
account_id: string;
|
|
1605
|
-
is_owner?: boolean;
|
|
1606
|
-
}) => {
|
|
1607
|
-
created_at: string;
|
|
1608
|
-
account_id: string;
|
|
1609
|
-
org_id: string;
|
|
1610
|
-
org_account_id: string;
|
|
1611
|
-
is_owner: boolean;
|
|
1612
|
-
};
|
|
1613
|
-
getOrganizationAccount: (filters: {
|
|
1614
|
-
org_id?: string;
|
|
1615
|
-
account_id?: string;
|
|
1616
|
-
}) => OrgAccount | undefined;
|
|
1617
|
-
getOrganizationAccounts: (filters?: {
|
|
1618
|
-
org_id?: string;
|
|
1619
|
-
account_id?: string;
|
|
1620
|
-
}) => OrgAccount[];
|
|
1621
|
-
removeOrganizationAccount: (filters: {
|
|
1622
|
-
org_id: string;
|
|
1623
|
-
account_id: string;
|
|
1624
|
-
}) => boolean;
|
|
1625
|
-
updateOrganization: (orgId: string, updates: Partial<Organization>) => Organization | undefined;
|
|
1626
|
-
}> & Omit<{
|
|
1627
|
-
idCounter: number;
|
|
1628
|
-
snippets: {
|
|
1629
|
-
code: string;
|
|
1630
|
-
snippet_id: string;
|
|
1631
|
-
package_release_id: string;
|
|
1632
|
-
name: string;
|
|
1633
|
-
unscoped_name: string;
|
|
1634
|
-
owner_name: string;
|
|
1635
|
-
is_starred: boolean;
|
|
1636
|
-
created_at: string;
|
|
1637
|
-
updated_at: string;
|
|
1638
|
-
snippet_type: "board" | "package" | "model" | "footprint";
|
|
1639
|
-
version: string;
|
|
1640
|
-
star_count: number;
|
|
1641
|
-
is_private: boolean;
|
|
1642
|
-
is_public: boolean;
|
|
1643
|
-
is_unlisted: boolean;
|
|
1644
|
-
dts?: string | undefined;
|
|
1645
|
-
compiled_js?: string | null | undefined;
|
|
1646
|
-
circuit_json?: Record<string, any>[] | null | undefined;
|
|
1647
|
-
manual_edits_json_content?: string | null | undefined;
|
|
1648
|
-
starred_at?: string | undefined;
|
|
1649
|
-
description?: string | undefined;
|
|
1650
|
-
tags?: string[] | undefined;
|
|
1651
|
-
}[];
|
|
1652
|
-
packageReleases: {
|
|
1653
|
-
package_release_id: string;
|
|
1654
|
-
created_at: string;
|
|
1655
|
-
version: string | null;
|
|
1656
|
-
display_status: "error" | "pending" | "building" | "complete";
|
|
1657
|
-
package_id: string;
|
|
1658
|
-
is_locked: boolean;
|
|
1659
|
-
is_latest: boolean;
|
|
1660
|
-
has_transpiled: boolean;
|
|
1661
|
-
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
1662
|
-
transpilation_in_progress: boolean;
|
|
1663
|
-
transpilation_logs: any[];
|
|
1664
|
-
transpilation_is_stale: boolean;
|
|
1665
|
-
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1666
|
-
circuit_json_build_in_progress: boolean;
|
|
1667
|
-
circuit_json_build_logs: any[];
|
|
1668
|
-
circuit_json_build_is_stale: boolean;
|
|
1669
|
-
image_generation_display_status: "error" | "pending" | "building" | "complete";
|
|
1670
|
-
image_generation_in_progress: boolean;
|
|
1671
|
-
image_generation_logs: any[] | null;
|
|
1672
|
-
image_generation_is_stale: boolean;
|
|
1673
|
-
ai_review_requested: boolean;
|
|
1674
|
-
is_pr_preview: boolean;
|
|
1675
|
-
pcb_preview_image_url: string | null;
|
|
1676
|
-
sch_preview_image_url: string | null;
|
|
1677
|
-
cad_preview_image_url: string | null;
|
|
1678
|
-
ai_review_text?: string | null | undefined;
|
|
1679
|
-
commit_sha?: string | null | undefined;
|
|
1680
|
-
license?: string | null | undefined;
|
|
1681
|
-
circuit_json_build_error?: string | null | undefined;
|
|
1682
|
-
circuit_json_build_error_last_updated_at?: string | null | undefined;
|
|
1683
|
-
transpilation_error?: string | null | undefined;
|
|
1684
|
-
fs_sha?: string | null | undefined;
|
|
1685
|
-
total_build_duration_ms?: number | null | undefined;
|
|
1686
|
-
transpilation_started_at?: string | null | undefined;
|
|
1687
|
-
transpilation_completed_at?: string | null | undefined;
|
|
1688
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
1689
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
1690
|
-
image_generation_started_at?: string | null | undefined;
|
|
1691
|
-
image_generation_completed_at?: string | null | undefined;
|
|
1692
|
-
image_generation_error?: string | null | undefined;
|
|
1693
|
-
image_generation_error_last_updated_at?: string | null | undefined;
|
|
1694
|
-
ai_review_started_at?: string | null | undefined;
|
|
1695
|
-
ai_review_completed_at?: string | null | undefined;
|
|
1696
|
-
ai_review_error?: any;
|
|
1697
|
-
ai_review_logs?: any[] | null | undefined;
|
|
1698
|
-
github_pr_number?: number | null | undefined;
|
|
1699
|
-
latest_package_build_id?: string | null | undefined;
|
|
1700
|
-
branch_name?: string | null | undefined;
|
|
1701
|
-
commit_message?: string | null | undefined;
|
|
1702
|
-
commit_author?: string | null | undefined;
|
|
1703
|
-
}[];
|
|
1704
|
-
packageFiles: {
|
|
1705
|
-
package_release_id: string;
|
|
1706
|
-
created_at: string;
|
|
1707
|
-
file_path: string;
|
|
1708
|
-
package_file_id: string;
|
|
1709
|
-
content_text?: string | null | undefined;
|
|
1710
|
-
content_mimetype?: string | null | undefined;
|
|
1711
|
-
is_release_tarball?: boolean | undefined;
|
|
1712
|
-
npm_pack_output?: any;
|
|
1713
|
-
}[];
|
|
1714
|
-
sessions: {
|
|
1715
|
-
session_id: string;
|
|
1716
|
-
account_id: string;
|
|
1717
|
-
expires_at: string;
|
|
1718
|
-
is_cli_session: boolean;
|
|
1719
|
-
}[];
|
|
1720
|
-
loginPages: {
|
|
1721
|
-
created_at: string;
|
|
1722
|
-
expires_at: string;
|
|
1723
|
-
login_page_id: string;
|
|
1724
|
-
login_page_auth_token: string;
|
|
1725
|
-
was_login_successful: boolean;
|
|
1726
|
-
has_been_used_to_create_session: boolean;
|
|
1727
|
-
}[];
|
|
1728
|
-
accounts: {
|
|
1729
|
-
account_id: string;
|
|
1730
|
-
github_username: string;
|
|
1731
|
-
is_tscircuit_staff: boolean;
|
|
1732
|
-
shippingInfo?: {
|
|
1733
|
-
firstName: string;
|
|
1734
|
-
lastName: string;
|
|
1735
|
-
address: string;
|
|
1736
|
-
city: string;
|
|
1737
|
-
state: string;
|
|
1738
|
-
zipCode: string;
|
|
1739
|
-
country: string;
|
|
1740
|
-
phone: string;
|
|
1741
|
-
companyName?: string | undefined;
|
|
1742
|
-
apartment?: string | undefined;
|
|
1743
|
-
} | undefined;
|
|
1744
|
-
personal_org_id?: string | undefined;
|
|
1745
|
-
}[];
|
|
1746
|
-
packages: {
|
|
1747
|
-
name: string;
|
|
1748
|
-
unscoped_name: string;
|
|
1749
|
-
created_at: string;
|
|
1750
|
-
updated_at: string;
|
|
1751
|
-
description: string | null;
|
|
1752
|
-
star_count: number;
|
|
1753
|
-
is_private: boolean | null;
|
|
1754
|
-
is_public: boolean | null;
|
|
1755
|
-
is_unlisted: boolean | null;
|
|
1756
|
-
ai_description: string | null;
|
|
1757
|
-
package_id: string;
|
|
1758
|
-
license: string | null;
|
|
1759
|
-
creator_account_id: string;
|
|
1760
|
-
owner_org_id: string;
|
|
1761
|
-
owner_github_username: string | null;
|
|
1762
|
-
github_repo_full_name: string | null;
|
|
1763
|
-
is_snippet: boolean;
|
|
1764
|
-
is_board: boolean;
|
|
1765
|
-
is_package: boolean;
|
|
1766
|
-
is_model: boolean;
|
|
1767
|
-
is_footprint: boolean;
|
|
1768
|
-
is_source_from_github: boolean;
|
|
1769
|
-
latest_package_release_id: string | null;
|
|
1770
|
-
latest_version: string | null;
|
|
1771
|
-
website: string | null;
|
|
1772
|
-
ai_usage_instructions: string | null;
|
|
1773
|
-
latest_package_release_fs_sha: string | null;
|
|
1774
|
-
is_starred?: boolean | undefined;
|
|
1775
|
-
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1776
|
-
latest_license?: string | null | undefined;
|
|
1777
|
-
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
1778
|
-
allow_pr_previews?: boolean | undefined;
|
|
1779
|
-
latest_pcb_preview_image_url?: string | null | undefined;
|
|
1780
|
-
latest_sch_preview_image_url?: string | null | undefined;
|
|
1781
|
-
latest_cad_preview_image_url?: string | null | undefined;
|
|
1782
|
-
}[];
|
|
1783
|
-
orders: {
|
|
1784
|
-
error: z.objectOutputType<{
|
|
1785
|
-
error_code: z.ZodString;
|
|
1786
|
-
message: z.ZodString;
|
|
1787
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1788
|
-
created_at: string;
|
|
1789
|
-
account_id: string | null;
|
|
1790
|
-
order_id: string;
|
|
1791
|
-
is_running: boolean;
|
|
1792
|
-
is_started: boolean;
|
|
1793
|
-
is_finished: boolean;
|
|
1794
|
-
has_error: boolean;
|
|
1795
|
-
started_at: string | null;
|
|
1796
|
-
completed_at: string | null;
|
|
1797
|
-
circuit_json?: any;
|
|
1798
|
-
}[];
|
|
1799
|
-
organizations: {
|
|
1800
|
-
created_at: string;
|
|
1801
|
-
org_id: string;
|
|
1802
|
-
owner_account_id: string;
|
|
1803
|
-
is_personal_org: boolean;
|
|
1804
|
-
org_name: string;
|
|
1805
|
-
github_handle?: string | undefined;
|
|
1806
|
-
org_display_name?: string | undefined;
|
|
1807
|
-
}[];
|
|
1808
|
-
orgAccounts: {
|
|
1809
|
-
created_at: string;
|
|
1810
|
-
account_id: string;
|
|
1811
|
-
org_id: string;
|
|
1812
|
-
org_account_id: string;
|
|
1813
|
-
is_owner: boolean;
|
|
1814
|
-
}[];
|
|
1815
|
-
orderFiles: {
|
|
1816
|
-
order_id: string;
|
|
1817
|
-
order_file_id: string;
|
|
1818
|
-
is_gerbers_zip: boolean;
|
|
1819
|
-
content_type: string;
|
|
1820
|
-
for_provider: string | null;
|
|
1821
|
-
uploaded_at: string;
|
|
1822
|
-
content_text: string | null;
|
|
1823
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
1824
|
-
}[];
|
|
1825
|
-
accountSnippets: {
|
|
1826
|
-
snippet_id: string;
|
|
1827
|
-
created_at: string;
|
|
1828
|
-
updated_at: string;
|
|
1829
|
-
account_id: string;
|
|
1830
|
-
has_starred: boolean;
|
|
1831
|
-
}[];
|
|
1832
|
-
accountPackages: {
|
|
1833
|
-
is_starred: boolean;
|
|
1834
|
-
created_at: string;
|
|
1835
|
-
updated_at: string;
|
|
1836
|
-
account_id: string;
|
|
1837
|
-
account_package_id: string;
|
|
1838
|
-
package_id: string;
|
|
1839
|
-
}[];
|
|
1840
|
-
jlcpcbOrderState: {
|
|
1841
|
-
created_at: string;
|
|
1842
|
-
order_id: string;
|
|
1843
|
-
jlcpcb_order_state_id: string;
|
|
1844
|
-
are_gerbers_uploaded: boolean;
|
|
1845
|
-
is_gerber_analyzed: boolean;
|
|
1846
|
-
are_initial_costs_calculated: boolean;
|
|
1847
|
-
is_pcb_added_to_cart: boolean;
|
|
1848
|
-
is_bom_uploaded: boolean;
|
|
1849
|
-
is_pnp_uploaded: boolean;
|
|
1850
|
-
is_bom_pnp_analyzed: boolean;
|
|
1851
|
-
is_bom_parsing_complete: boolean;
|
|
1852
|
-
are_components_available: boolean;
|
|
1853
|
-
is_patch_map_generated: boolean;
|
|
1854
|
-
is_json_merge_file_created: boolean;
|
|
1855
|
-
is_dfm_result_generated: boolean;
|
|
1856
|
-
are_files_downloaded: boolean;
|
|
1857
|
-
are_product_categories_fetched: boolean;
|
|
1858
|
-
are_final_costs_calculated: boolean;
|
|
1859
|
-
is_json_merge_file_updated: boolean;
|
|
1860
|
-
is_added_to_cart: boolean;
|
|
1861
|
-
are_gerbers_generated: boolean;
|
|
1862
|
-
current_step: string | null;
|
|
1863
|
-
uploaded_gerber_metadata?: any;
|
|
1864
|
-
gerber_analysis?: any;
|
|
1865
|
-
}[];
|
|
1866
|
-
jlcpcbOrderStepRuns: {
|
|
1867
|
-
created_at: string;
|
|
1868
|
-
is_running: boolean | null;
|
|
1869
|
-
jlcpcb_order_state_id: string | null;
|
|
1870
|
-
jlcpcb_order_step_run_id: string;
|
|
1871
|
-
step_function_name: string | null;
|
|
1872
|
-
error_message: string | null;
|
|
1873
|
-
}[];
|
|
1874
|
-
orderQuotes: {
|
|
1875
|
-
error: z.objectOutputType<{
|
|
1876
|
-
error_code: z.ZodString;
|
|
1877
|
-
message: z.ZodString;
|
|
1878
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1879
|
-
package_release_id: string | null;
|
|
1880
|
-
created_at: string;
|
|
1881
|
-
updated_at: string;
|
|
1882
|
-
account_id: string | null;
|
|
1883
|
-
has_error: boolean;
|
|
1884
|
-
completed_at: string | null;
|
|
1885
|
-
order_quote_id: string;
|
|
1886
|
-
is_completed: boolean;
|
|
1887
|
-
is_processing: boolean;
|
|
1888
|
-
vendor_name: string;
|
|
1889
|
-
quoted_components: {
|
|
1890
|
-
manufacturer_part_number: string | null;
|
|
1891
|
-
supplier_part_number: string | null;
|
|
1892
|
-
quantity: number;
|
|
1893
|
-
unit_price: number;
|
|
1894
|
-
total_price: number;
|
|
1895
|
-
available: boolean;
|
|
1896
|
-
}[] | null;
|
|
1897
|
-
bare_pcb_cost: number;
|
|
1898
|
-
shipping_options: {
|
|
1899
|
-
carrier: string;
|
|
1900
|
-
service: string;
|
|
1901
|
-
cost: number;
|
|
1902
|
-
}[];
|
|
1903
|
-
total_cost_without_shipping: number;
|
|
1904
|
-
}[];
|
|
1905
|
-
aiReviews: {
|
|
1906
|
-
created_at: string;
|
|
1907
|
-
ai_review_id: string;
|
|
1908
|
-
ai_review_text: string | null;
|
|
1909
|
-
start_processing_at: string | null;
|
|
1910
|
-
finished_processing_at: string | null;
|
|
1911
|
-
display_status: "pending" | "completed" | "failed";
|
|
1912
|
-
package_release_id?: string | undefined;
|
|
1913
|
-
processing_error?: any;
|
|
1914
|
-
}[];
|
|
1915
|
-
datasheets: {
|
|
1916
|
-
created_at: string;
|
|
1917
|
-
datasheet_id: string;
|
|
1918
|
-
chip_name: string;
|
|
1919
|
-
pin_information: {
|
|
1920
|
-
name: string;
|
|
1921
|
-
description: string;
|
|
1922
|
-
pin_number: string;
|
|
1923
|
-
capabilities: string[];
|
|
1924
|
-
}[] | null;
|
|
1925
|
-
datasheet_pdf_urls: string[] | null;
|
|
1926
|
-
ai_description: string | null;
|
|
1927
|
-
}[];
|
|
1928
|
-
githubInstallations: {
|
|
1929
|
-
created_at: string;
|
|
1930
|
-
updated_at: string;
|
|
1931
|
-
account_id: string;
|
|
1932
|
-
github_username: string;
|
|
1933
|
-
github_installation_id: string;
|
|
1934
|
-
installation_id: string;
|
|
1935
|
-
is_active: boolean;
|
|
1936
|
-
access_token?: string | null | undefined;
|
|
1937
|
-
access_token_expires_at?: string | null | undefined;
|
|
1938
|
-
}[];
|
|
1939
|
-
packageBuilds: {
|
|
1940
|
-
package_release_id: string;
|
|
1941
|
-
created_at: string;
|
|
1942
|
-
transpilation_in_progress: boolean;
|
|
1943
|
-
transpilation_logs: any[];
|
|
1944
|
-
circuit_json_build_in_progress: boolean;
|
|
1945
|
-
circuit_json_build_logs: any[];
|
|
1946
|
-
image_generation_in_progress: boolean;
|
|
1947
|
-
image_generation_logs: any[];
|
|
1948
|
-
package_build_id: string;
|
|
1949
|
-
build_in_progress: boolean;
|
|
1950
|
-
build_error_last_updated_at: string;
|
|
1951
|
-
circuit_json_build_error?: string | null | undefined;
|
|
1952
|
-
transpilation_error?: string | null | undefined;
|
|
1953
|
-
transpilation_started_at?: string | null | undefined;
|
|
1954
|
-
transpilation_completed_at?: string | null | undefined;
|
|
1955
|
-
circuit_json_build_started_at?: string | null | undefined;
|
|
1956
|
-
circuit_json_build_completed_at?: string | null | undefined;
|
|
1957
|
-
image_generation_started_at?: string | null | undefined;
|
|
1958
|
-
image_generation_completed_at?: string | null | undefined;
|
|
1959
|
-
image_generation_error?: string | null | undefined;
|
|
1960
|
-
build_started_at?: string | null | undefined;
|
|
1961
|
-
build_completed_at?: string | null | undefined;
|
|
1962
|
-
build_error?: string | null | undefined;
|
|
1963
|
-
preview_url?: string | null | undefined;
|
|
1964
|
-
build_logs?: string | null | undefined;
|
|
1965
|
-
}[];
|
|
1966
|
-
bugReports: {
|
|
1967
|
-
created_at: string;
|
|
1968
|
-
bug_report_id: string;
|
|
1969
|
-
reporter_account_id: string;
|
|
1970
|
-
text: string | null;
|
|
1971
|
-
is_auto_deleted: boolean;
|
|
1972
|
-
delete_at: string | null;
|
|
1973
|
-
file_count: number;
|
|
1974
|
-
}[];
|
|
1975
|
-
bugReportFiles: {
|
|
1976
|
-
created_at: string;
|
|
1977
|
-
content_text: string | null;
|
|
1978
|
-
content_bytes: Uint8Array<ArrayBuffer> | null;
|
|
1979
|
-
bug_report_id: string;
|
|
1980
|
-
bug_report_file_id: string;
|
|
1981
|
-
file_path: string;
|
|
1982
|
-
content_mimetype: string;
|
|
1983
|
-
is_text: boolean;
|
|
1984
|
-
}[];
|
|
1985
|
-
}, "addOrder" | "getOrderById" | "getOrderFilesByOrderId" | "addOrderQuote" | "getOrderQuoteById" | "getJlcpcbOrderStatesByOrderId" | "getJlcpcbOrderStepRunsByJlcpcbOrderStateId" | "updateOrder" | "addJlcpcbOrderState" | "updateJlcpcbOrderState" | "addOrderFile" | "getOrderFileById" | "addBugReport" | "getBugReportById" | "addBugReportFile" | "getBugReportFilesByBugReportId" | "addAccount" | "addAccountPackage" | "getAccountPackageById" | "updateAccountPackage" | "deleteAccountPackage" | "addSnippet" | "getLatestSnippets" | "getTrendingSnippets" | "getPackagesByAuthor" | "getSnippetByAuthorAndName" | "updateSnippet" | "getSnippetById" | "searchSnippets" | "searchPackages" | "searchAccounts" | "deleteSnippet" | "addSession" | "getSessions" | "createLoginPage" | "getLoginPage" | "updateLoginPage" | "getAccount" | "updateAccount" | "createSession" | "addStar" | "removeStar" | "hasStarred" | "addPackage" | "updatePackage" | "getPackageById" | "getPackageReleaseById" | "addPackageRelease" | "updatePackageRelease" | "deletePackageFile" | "addPackageFile" | "updatePackageFile" | "getStarCount" | "getPackageFilesByReleaseId" | "updatePackageReleaseFsSha" | "addAiReview" | "updateAiReview" | "getAiReviewById" | "listAiReviews" | "addDatasheet" | "getDatasheetById" | "getDatasheetByChipName" | "listDatasheets" | "updateDatasheet" | "addPackageBuild" | "getPackageBuildById" | "getPackageBuildsByReleaseId" | "updatePackageBuild" | "addOrganization" | "getOrgs" | "getOrg" | "addOrganizationAccount" | "getOrganizationAccount" | "getOrganizationAccounts" | "removeOrganizationAccount" | "updateOrganization"> & {
|
|
1986
|
-
addOrder: (order: Omit<Order, "order_id">) => Order;
|
|
1987
|
-
getOrderById: (orderId: string) => Order | undefined;
|
|
1988
|
-
getOrderFilesByOrderId: (orderId: string) => OrderFile[];
|
|
1989
|
-
addOrderQuote: ({ account_id, package_release_id, vendor_name, }: {
|
|
1990
|
-
account_id: string;
|
|
1991
|
-
package_release_id?: string;
|
|
1992
|
-
vendor_name: string;
|
|
1993
|
-
}) => string;
|
|
1994
|
-
getOrderQuoteById: (orderQuoteId: string) => OrderQuote | undefined;
|
|
1995
|
-
getJlcpcbOrderStatesByOrderId: (orderId: string) => JlcpcbOrderState | undefined;
|
|
1996
|
-
getJlcpcbOrderStepRunsByJlcpcbOrderStateId: (jlcpcbOrderStateId: string) => JlcpcbOrderStepRun[];
|
|
1997
|
-
updateOrder: (orderId: string, updates: Partial<Order>) => void;
|
|
1998
|
-
addJlcpcbOrderState: (orderState: Omit<JlcpcbOrderState, "jlcpcb_order_state_id">) => JlcpcbOrderState;
|
|
1999
|
-
updateJlcpcbOrderState: (orderId: string, updates: Partial<JlcpcbOrderState>) => void;
|
|
2000
|
-
addOrderFile: (orderFile: Omit<OrderFile, "order_file_id">) => OrderFile;
|
|
2001
|
-
getOrderFileById: (orderFileId: string) => OrderFile | undefined;
|
|
2002
|
-
addBugReport: ({ reporter_account_id, text, is_auto_deleted, delete_at, }: {
|
|
2003
|
-
reporter_account_id: string;
|
|
2004
|
-
text?: string | null;
|
|
2005
|
-
is_auto_deleted?: boolean;
|
|
2006
|
-
delete_at?: string | null;
|
|
2007
|
-
}) => BugReport;
|
|
2008
|
-
getBugReportById: (bugReportId: string) => BugReport | undefined;
|
|
2009
|
-
addBugReportFile: ({ bug_report_id, file_path, content_mimetype, is_text, content_text, content_bytes, }: {
|
|
2010
|
-
bug_report_id: string;
|
|
2011
|
-
file_path: string;
|
|
2012
|
-
content_mimetype: string;
|
|
2013
|
-
is_text: boolean;
|
|
2014
|
-
content_text: string | null;
|
|
2015
|
-
content_bytes: Uint8Array | null;
|
|
2016
|
-
}) => BugReportFile;
|
|
2017
|
-
getBugReportFilesByBugReportId: (bugReportId: string) => BugReportFile[];
|
|
2018
|
-
addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
|
|
2019
|
-
is_tscircuit_staff: boolean;
|
|
2020
|
-
github_username: string;
|
|
2021
|
-
shippingInfo?: {
|
|
2022
|
-
firstName: string;
|
|
2023
|
-
lastName: string;
|
|
2024
|
-
address: string;
|
|
2025
|
-
city: string;
|
|
2026
|
-
state: string;
|
|
2027
|
-
zipCode: string;
|
|
2028
|
-
country: string;
|
|
2029
|
-
phone: string;
|
|
2030
|
-
companyName?: string | undefined;
|
|
2031
|
-
apartment?: string | undefined;
|
|
2032
|
-
} | undefined;
|
|
2033
|
-
personal_org_id?: string | undefined;
|
|
2034
|
-
account_id: string;
|
|
2035
|
-
};
|
|
2036
|
-
addAccountPackage: (accountPackage: Omit<AccountPackage, "account_package_id">) => AccountPackage;
|
|
2037
|
-
getAccountPackageById: (accountPackageId: string) => AccountPackage | undefined;
|
|
2038
|
-
updateAccountPackage: (accountPackageId: string, updates: Partial<AccountPackage>) => void;
|
|
2039
|
-
deleteAccountPackage: (accountPackageId: string) => boolean;
|
|
2040
|
-
addSnippet: (snippet: Omit<z.input<typeof snippetSchema>, "snippet_id" | "package_release_id"> & {
|
|
2041
|
-
creator_account_id?: string;
|
|
2042
|
-
github_repo_full_name?: string;
|
|
2043
|
-
branch_name?: string;
|
|
2044
|
-
commit_message?: string;
|
|
2045
|
-
commit_author?: string;
|
|
2046
|
-
}) => Snippet;
|
|
2047
|
-
getLatestSnippets: (limit: number) => Snippet[];
|
|
2048
|
-
getTrendingSnippets: (limit: number, since: string) => Snippet[];
|
|
2049
|
-
getPackagesByAuthor: (authorName?: string) => Package[];
|
|
2050
|
-
getSnippetByAuthorAndName: (authorName: string, snippetName: string) => Snippet | undefined;
|
|
2051
|
-
updateSnippet: (snippetId: string, updates: Partial<Snippet>) => Snippet | undefined;
|
|
2052
|
-
getSnippetById: (snippetId: string, auth?: {
|
|
2053
|
-
github_username: string;
|
|
2054
|
-
}) => Snippet | undefined;
|
|
2055
|
-
searchSnippets: (query: string) => Snippet[];
|
|
2056
|
-
searchPackages: (query: string) => Package[];
|
|
2057
|
-
searchAccounts: (query: string, limit?: number) => Account[];
|
|
2058
|
-
deleteSnippet: (snippetId: string) => boolean;
|
|
2059
|
-
addSession: (session: Omit<Session, "session_id">) => Session;
|
|
2060
|
-
getSessions: ({ account_id, is_cli_session, }: {
|
|
2061
|
-
account_id: string;
|
|
2062
|
-
is_cli_session?: boolean;
|
|
2063
|
-
}) => Session[];
|
|
2064
|
-
createLoginPage: () => LoginPage;
|
|
2065
|
-
getLoginPage: (loginPageId: string) => LoginPage | undefined;
|
|
2066
|
-
updateLoginPage: (loginPageId: string, updates: Partial<LoginPage>) => void;
|
|
2067
|
-
getAccount: (accountId: string) => Account | undefined;
|
|
2068
|
-
updateAccount: (accountId: string, updates: Partial<Account>) => Account | undefined;
|
|
2069
|
-
createSession: (session: Omit<Session, "session_id">) => Session;
|
|
2070
|
-
addStar: (accountId: string, packageId: string) => AccountPackage;
|
|
2071
|
-
removeStar: (accountId: string, packageId: string) => void;
|
|
2072
|
-
hasStarred: (accountId: string, packageId: string) => boolean;
|
|
2073
|
-
addPackage: (_package: Omit<z.input<typeof packageSchema>, "package_id" | "github_repo_full_name">) => Package;
|
|
2074
|
-
updatePackage: (packageId: string, updates: Partial<Package>) => Package | undefined;
|
|
2075
|
-
getPackageById: (packageId: string) => Package | undefined;
|
|
2076
|
-
getPackageReleaseById: (packageReleaseId: string) => PackageRelease | undefined;
|
|
2077
|
-
addPackageRelease: (packageRelease: Omit<z.input<typeof packageReleaseSchema>, "package_release_id">) => PackageRelease;
|
|
2078
|
-
updatePackageRelease: (packageRelease: PackageRelease) => void;
|
|
2079
|
-
deletePackageFile: (packageFileId: string) => boolean;
|
|
2080
|
-
addPackageFile: (packageFile: Omit<PackageFile, "package_file_id">) => PackageFile;
|
|
2081
|
-
updatePackageFile: (packageFileId: string, updates: Partial<Omit<PackageFile, "package_file_id">>) => PackageFile;
|
|
2082
|
-
getStarCount: (packageId: string) => number;
|
|
2083
|
-
getPackageFilesByReleaseId: (packageReleaseId: string) => PackageFile[];
|
|
2084
|
-
/**
|
|
2085
|
-
* Update fs_sha for a package release based on its files
|
|
2086
|
-
*/
|
|
2087
|
-
updatePackageReleaseFsSha: (packageReleaseId: string) => void;
|
|
2088
|
-
addAiReview: (review: Omit<AiReview, "ai_review_id">) => AiReview;
|
|
2089
|
-
updateAiReview: (aiReviewId: string, updates: Partial<AiReview>) => AiReview | undefined;
|
|
2090
|
-
getAiReviewById: (aiReviewId: string) => AiReview | undefined;
|
|
2091
|
-
listAiReviews: () => AiReview[];
|
|
2092
|
-
addDatasheet: ({ chip_name }: {
|
|
2093
|
-
chip_name: string;
|
|
2094
|
-
}) => Datasheet;
|
|
2095
|
-
getDatasheetById: (datasheetId: string) => Datasheet | undefined;
|
|
2096
|
-
getDatasheetByChipName: (chipName: string) => Datasheet | undefined;
|
|
2097
|
-
listDatasheets: ({ chip_name, is_popular, }?: {
|
|
2098
|
-
chip_name?: string;
|
|
2099
|
-
is_popular?: boolean;
|
|
2100
|
-
}) => Datasheet[];
|
|
2101
|
-
updateDatasheet: (datasheetId: string, updates: Partial<Datasheet>) => Datasheet | undefined;
|
|
2102
|
-
addPackageBuild: (packageBuild: Omit<z.input<typeof packageBuildSchema>, "package_build_id">) => PackageBuild;
|
|
2103
|
-
getPackageBuildById: (packageBuildId: string) => PackageBuild | undefined;
|
|
2104
|
-
getPackageBuildsByReleaseId: (packageReleaseId: string) => PackageBuild[];
|
|
2105
|
-
updatePackageBuild: (packageBuildId: string, updates: Partial<PackageBuild>) => PackageBuild | undefined;
|
|
2106
|
-
addOrganization: (organization: {
|
|
2107
|
-
name: string;
|
|
2108
|
-
org_id?: string;
|
|
2109
|
-
is_personal_org?: boolean;
|
|
2110
|
-
owner_account_id: string;
|
|
2111
|
-
github_handle?: string;
|
|
2112
|
-
}) => {
|
|
2113
|
-
created_at: string;
|
|
2114
|
-
org_id: string;
|
|
2115
|
-
owner_account_id: string;
|
|
2116
|
-
is_personal_org: boolean;
|
|
2117
|
-
org_name: string;
|
|
2118
|
-
github_handle?: string | undefined;
|
|
2119
|
-
org_display_name?: string | undefined;
|
|
2120
|
-
};
|
|
2121
|
-
getOrgs: (filters?: {
|
|
2122
|
-
owner_account_id?: string;
|
|
2123
|
-
github_handle?: string;
|
|
2124
|
-
name?: string;
|
|
2125
|
-
}, auth?: {
|
|
2126
|
-
account_id?: string;
|
|
2127
|
-
}) => {
|
|
2128
|
-
member_count: number;
|
|
2129
|
-
package_count: number;
|
|
2130
|
-
can_manage_org: boolean;
|
|
2131
|
-
created_at: string;
|
|
2132
|
-
org_id: string;
|
|
2133
|
-
owner_account_id: string;
|
|
2134
|
-
is_personal_org: boolean;
|
|
2135
|
-
org_name: string;
|
|
2136
|
-
github_handle?: string | undefined;
|
|
2137
|
-
org_display_name?: string | undefined;
|
|
2138
|
-
}[];
|
|
2139
|
-
getOrg: (filters: {
|
|
2140
|
-
org_id?: string;
|
|
2141
|
-
org_name?: string;
|
|
2142
|
-
github_handle?: string;
|
|
2143
|
-
}, auth?: {
|
|
2144
|
-
account_id: string;
|
|
2145
|
-
}) => {
|
|
2146
|
-
member_count: number;
|
|
2147
|
-
package_count: number;
|
|
2148
|
-
can_manage_org: boolean;
|
|
2149
|
-
created_at: string;
|
|
2150
|
-
org_id: string;
|
|
2151
|
-
owner_account_id: string;
|
|
2152
|
-
is_personal_org: boolean;
|
|
2153
|
-
org_name: string;
|
|
2154
|
-
github_handle?: string | undefined;
|
|
2155
|
-
org_display_name?: string | undefined;
|
|
2156
|
-
} | null;
|
|
2157
|
-
addOrganizationAccount: (organizationAccount: {
|
|
2158
|
-
org_id: string;
|
|
2159
|
-
account_id: string;
|
|
2160
|
-
is_owner?: boolean;
|
|
2161
|
-
}) => {
|
|
2162
|
-
created_at: string;
|
|
2163
|
-
account_id: string;
|
|
2164
|
-
org_id: string;
|
|
2165
|
-
org_account_id: string;
|
|
2166
|
-
is_owner: boolean;
|
|
2167
|
-
};
|
|
2168
|
-
getOrganizationAccount: (filters: {
|
|
2169
|
-
org_id?: string;
|
|
2170
|
-
account_id?: string;
|
|
2171
|
-
}) => OrgAccount | undefined;
|
|
2172
|
-
getOrganizationAccounts: (filters?: {
|
|
2173
|
-
org_id?: string;
|
|
2174
|
-
account_id?: string;
|
|
2175
|
-
}) => OrgAccount[];
|
|
2176
|
-
removeOrganizationAccount: (filters: {
|
|
2177
|
-
org_id: string;
|
|
2178
|
-
account_id: string;
|
|
2179
|
-
}) => boolean;
|
|
2180
|
-
updateOrganization: (orgId: string, updates: Partial<Organization>) => Organization | undefined;
|
|
2181
|
-
};
|
|
2182
|
-
type DbClient = ReturnType<typeof createDatabase>;
|
|
2183
|
-
|
|
2184
|
-
declare const seed: (db: DbClient) => void;
|
|
2185
|
-
|
|
2186
|
-
declare const withDb: Middleware<{}, {
|
|
2187
|
-
db: DbClient;
|
|
2188
|
-
}>;
|
|
2189
|
-
|
|
2190
|
-
export { type DbClient, createDatabase, seed, withDb };
|