@tscircuit/fake-snippets 0.0.133 → 0.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +591 -557
- package/dist/index.d.ts +30 -7
- package/dist/index.js +15 -1
- package/dist/schema.d.ts +44 -8
- package/dist/schema.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -571,7 +571,16 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
571
571
|
user_code_started_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
572
572
|
user_code_completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
573
573
|
user_code_build_logs: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
574
|
-
user_code_error: z.ZodDefault<z.ZodNullable<z.
|
|
574
|
+
user_code_error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
575
|
+
error_code: z.ZodString;
|
|
576
|
+
message: z.ZodString;
|
|
577
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
578
|
+
error_code: z.ZodString;
|
|
579
|
+
message: z.ZodString;
|
|
580
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
581
|
+
error_code: z.ZodString;
|
|
582
|
+
message: z.ZodString;
|
|
583
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
575
584
|
user_code_log_stream_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
576
585
|
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
577
586
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -619,7 +628,10 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
619
628
|
user_code_started_at: string | null;
|
|
620
629
|
user_code_completed_at: string | null;
|
|
621
630
|
user_code_build_logs: any[] | null;
|
|
622
|
-
user_code_error:
|
|
631
|
+
user_code_error: z.objectOutputType<{
|
|
632
|
+
error_code: z.ZodString;
|
|
633
|
+
message: z.ZodString;
|
|
634
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
623
635
|
user_code_log_stream_url: string | null;
|
|
624
636
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
625
637
|
circuit_json_build_in_progress: boolean;
|
|
@@ -686,7 +698,10 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
686
698
|
user_code_started_at?: string | null | undefined;
|
|
687
699
|
user_code_completed_at?: string | null | undefined;
|
|
688
700
|
user_code_build_logs?: any[] | null | undefined;
|
|
689
|
-
user_code_error?:
|
|
701
|
+
user_code_error?: z.objectInputType<{
|
|
702
|
+
error_code: z.ZodString;
|
|
703
|
+
message: z.ZodString;
|
|
704
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
690
705
|
user_code_log_stream_url?: string | null | undefined;
|
|
691
706
|
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
692
707
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
@@ -1143,7 +1158,10 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1143
1158
|
user_code_started_at: string | null;
|
|
1144
1159
|
user_code_completed_at: string | null;
|
|
1145
1160
|
user_code_build_logs: any[] | null;
|
|
1146
|
-
user_code_error:
|
|
1161
|
+
user_code_error: z.objectOutputType<{
|
|
1162
|
+
error_code: z.ZodString;
|
|
1163
|
+
message: z.ZodString;
|
|
1164
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1147
1165
|
user_code_log_stream_url: string | null;
|
|
1148
1166
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1149
1167
|
circuit_json_build_in_progress: boolean;
|
|
@@ -1466,7 +1484,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1466
1484
|
content_mimetype: string;
|
|
1467
1485
|
is_text: boolean;
|
|
1468
1486
|
}[];
|
|
1469
|
-
}, "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" | "deleteSession" | "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" | "updateOrganizationAccount" | "updateOrganization" | "deleteOrganization"> & {
|
|
1487
|
+
}, "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" | "deleteSession" | "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" | "updateOrganizationAccount" | "updateOrganization" | "deleteOrganization" | "deleteAccount"> & {
|
|
1470
1488
|
addOrder: (order: Omit<Order, "order_id">) => Order;
|
|
1471
1489
|
getOrderById: (orderId: string) => Order | undefined;
|
|
1472
1490
|
getOrderFilesByOrderId: (orderId: string) => OrderFile[];
|
|
@@ -1670,6 +1688,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1670
1688
|
}, updates: Partial<UserPermissions>) => OrgAccount | undefined;
|
|
1671
1689
|
updateOrganization: (orgId: string, updates: Partial<Organization>) => Organization | undefined;
|
|
1672
1690
|
deleteOrganization: (orgId: string) => boolean;
|
|
1691
|
+
deleteAccount: (accountId: string) => boolean;
|
|
1673
1692
|
}> & Omit<{
|
|
1674
1693
|
idCounter: number;
|
|
1675
1694
|
snippets: {
|
|
@@ -1713,7 +1732,10 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1713
1732
|
user_code_started_at: string | null;
|
|
1714
1733
|
user_code_completed_at: string | null;
|
|
1715
1734
|
user_code_build_logs: any[] | null;
|
|
1716
|
-
user_code_error:
|
|
1735
|
+
user_code_error: z.objectOutputType<{
|
|
1736
|
+
error_code: z.ZodString;
|
|
1737
|
+
message: z.ZodString;
|
|
1738
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1717
1739
|
user_code_log_stream_url: string | null;
|
|
1718
1740
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1719
1741
|
circuit_json_build_in_progress: boolean;
|
|
@@ -2036,7 +2058,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
2036
2058
|
content_mimetype: string;
|
|
2037
2059
|
is_text: boolean;
|
|
2038
2060
|
}[];
|
|
2039
|
-
}, "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" | "deleteSession" | "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" | "updateOrganizationAccount" | "updateOrganization" | "deleteOrganization"> & {
|
|
2061
|
+
}, "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" | "deleteSession" | "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" | "updateOrganizationAccount" | "updateOrganization" | "deleteOrganization" | "deleteAccount"> & {
|
|
2040
2062
|
addOrder: (order: Omit<Order, "order_id">) => Order;
|
|
2041
2063
|
getOrderById: (orderId: string) => Order | undefined;
|
|
2042
2064
|
getOrderFilesByOrderId: (orderId: string) => OrderFile[];
|
|
@@ -2240,6 +2262,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
2240
2262
|
}, updates: Partial<UserPermissions>) => OrgAccount | undefined;
|
|
2241
2263
|
updateOrganization: (orgId: string, updates: Partial<Organization>) => Organization | undefined;
|
|
2242
2264
|
deleteOrganization: (orgId: string) => boolean;
|
|
2265
|
+
deleteAccount: (accountId: string) => boolean;
|
|
2243
2266
|
};
|
|
2244
2267
|
type DbClient = ReturnType<typeof createDatabase>;
|
|
2245
2268
|
|
package/dist/index.js
CHANGED
|
@@ -227,7 +227,7 @@ var packageReleaseSchema = z.object({
|
|
|
227
227
|
user_code_started_at: z.string().datetime().nullable().default(null),
|
|
228
228
|
user_code_completed_at: z.string().datetime().nullable().default(null),
|
|
229
229
|
user_code_build_logs: z.array(z.any()).nullable().default(null),
|
|
230
|
-
user_code_error:
|
|
230
|
+
user_code_error: errorSchema.nullable().default(null),
|
|
231
231
|
user_code_log_stream_url: z.string().nullable().default(null),
|
|
232
232
|
// Circuit JSON Build Process
|
|
233
233
|
circuit_json_build_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
@@ -4015,6 +4015,20 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
|
|
|
4015
4015
|
};
|
|
4016
4016
|
});
|
|
4017
4017
|
return deleted;
|
|
4018
|
+
},
|
|
4019
|
+
deleteAccount: (accountId) => {
|
|
4020
|
+
let deleted = false;
|
|
4021
|
+
set((state) => {
|
|
4022
|
+
const index = state.accounts.findIndex(
|
|
4023
|
+
(account) => account.account_id === accountId
|
|
4024
|
+
);
|
|
4025
|
+
if (index !== -1) {
|
|
4026
|
+
state.accounts.splice(index, 1);
|
|
4027
|
+
deleted = true;
|
|
4028
|
+
}
|
|
4029
|
+
return state;
|
|
4030
|
+
});
|
|
4031
|
+
return deleted;
|
|
4018
4032
|
}
|
|
4019
4033
|
}));
|
|
4020
4034
|
|
package/dist/schema.d.ts
CHANGED
|
@@ -768,7 +768,16 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
768
768
|
user_code_started_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
769
769
|
user_code_completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
770
770
|
user_code_build_logs: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
771
|
-
user_code_error: z.ZodDefault<z.ZodNullable<z.
|
|
771
|
+
user_code_error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
772
|
+
error_code: z.ZodString;
|
|
773
|
+
message: z.ZodString;
|
|
774
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
775
|
+
error_code: z.ZodString;
|
|
776
|
+
message: z.ZodString;
|
|
777
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
778
|
+
error_code: z.ZodString;
|
|
779
|
+
message: z.ZodString;
|
|
780
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
772
781
|
user_code_log_stream_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
773
782
|
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
774
783
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -816,7 +825,10 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
816
825
|
user_code_started_at: string | null;
|
|
817
826
|
user_code_completed_at: string | null;
|
|
818
827
|
user_code_build_logs: any[] | null;
|
|
819
|
-
user_code_error:
|
|
828
|
+
user_code_error: z.objectOutputType<{
|
|
829
|
+
error_code: z.ZodString;
|
|
830
|
+
message: z.ZodString;
|
|
831
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
820
832
|
user_code_log_stream_url: string | null;
|
|
821
833
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
822
834
|
circuit_json_build_in_progress: boolean;
|
|
@@ -883,7 +895,10 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
883
895
|
user_code_started_at?: string | null | undefined;
|
|
884
896
|
user_code_completed_at?: string | null | undefined;
|
|
885
897
|
user_code_build_logs?: any[] | null | undefined;
|
|
886
|
-
user_code_error?:
|
|
898
|
+
user_code_error?: z.objectInputType<{
|
|
899
|
+
error_code: z.ZodString;
|
|
900
|
+
message: z.ZodString;
|
|
901
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
887
902
|
user_code_log_stream_url?: string | null | undefined;
|
|
888
903
|
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
889
904
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
@@ -1442,7 +1457,16 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1442
1457
|
user_code_started_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1443
1458
|
user_code_completed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1444
1459
|
user_code_build_logs: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
1445
|
-
user_code_error: z.ZodDefault<z.ZodNullable<z.
|
|
1460
|
+
user_code_error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1461
|
+
error_code: z.ZodString;
|
|
1462
|
+
message: z.ZodString;
|
|
1463
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1464
|
+
error_code: z.ZodString;
|
|
1465
|
+
message: z.ZodString;
|
|
1466
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1467
|
+
error_code: z.ZodString;
|
|
1468
|
+
message: z.ZodString;
|
|
1469
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1446
1470
|
user_code_log_stream_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1447
1471
|
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
1448
1472
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1490,7 +1514,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1490
1514
|
user_code_started_at: string | null;
|
|
1491
1515
|
user_code_completed_at: string | null;
|
|
1492
1516
|
user_code_build_logs: any[] | null;
|
|
1493
|
-
user_code_error:
|
|
1517
|
+
user_code_error: z.objectOutputType<{
|
|
1518
|
+
error_code: z.ZodString;
|
|
1519
|
+
message: z.ZodString;
|
|
1520
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1494
1521
|
user_code_log_stream_url: string | null;
|
|
1495
1522
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1496
1523
|
circuit_json_build_in_progress: boolean;
|
|
@@ -1557,7 +1584,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1557
1584
|
user_code_started_at?: string | null | undefined;
|
|
1558
1585
|
user_code_completed_at?: string | null | undefined;
|
|
1559
1586
|
user_code_build_logs?: any[] | null | undefined;
|
|
1560
|
-
user_code_error?:
|
|
1587
|
+
user_code_error?: z.objectInputType<{
|
|
1588
|
+
error_code: z.ZodString;
|
|
1589
|
+
message: z.ZodString;
|
|
1590
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1561
1591
|
user_code_log_stream_url?: string | null | undefined;
|
|
1562
1592
|
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
1563
1593
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
@@ -2503,7 +2533,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2503
2533
|
user_code_started_at: string | null;
|
|
2504
2534
|
user_code_completed_at: string | null;
|
|
2505
2535
|
user_code_build_logs: any[] | null;
|
|
2506
|
-
user_code_error:
|
|
2536
|
+
user_code_error: z.objectOutputType<{
|
|
2537
|
+
error_code: z.ZodString;
|
|
2538
|
+
message: z.ZodString;
|
|
2539
|
+
}, z.ZodTypeAny, "passthrough"> | null;
|
|
2507
2540
|
user_code_log_stream_url: string | null;
|
|
2508
2541
|
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
2509
2542
|
circuit_json_build_in_progress: boolean;
|
|
@@ -2879,7 +2912,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2879
2912
|
user_code_started_at?: string | null | undefined;
|
|
2880
2913
|
user_code_completed_at?: string | null | undefined;
|
|
2881
2914
|
user_code_build_logs?: any[] | null | undefined;
|
|
2882
|
-
user_code_error?:
|
|
2915
|
+
user_code_error?: z.objectInputType<{
|
|
2916
|
+
error_code: z.ZodString;
|
|
2917
|
+
message: z.ZodString;
|
|
2918
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
2883
2919
|
user_code_log_stream_url?: string | null | undefined;
|
|
2884
2920
|
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
2885
2921
|
circuit_json_build_in_progress?: boolean | undefined;
|
package/dist/schema.js
CHANGED
|
@@ -221,7 +221,7 @@ var packageReleaseSchema = z.object({
|
|
|
221
221
|
user_code_started_at: z.string().datetime().nullable().default(null),
|
|
222
222
|
user_code_completed_at: z.string().datetime().nullable().default(null),
|
|
223
223
|
user_code_build_logs: z.array(z.any()).nullable().default(null),
|
|
224
|
-
user_code_error:
|
|
224
|
+
user_code_error: errorSchema.nullable().default(null),
|
|
225
225
|
user_code_log_stream_url: z.string().nullable().default(null),
|
|
226
226
|
// Circuit JSON Build Process
|
|
227
227
|
circuit_json_build_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/fake-snippets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.135",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"@tscircuit/3d-viewer": "^0.0.407",
|
|
85
85
|
"@tscircuit/assembly-viewer": "^0.0.5",
|
|
86
86
|
"@tscircuit/create-snippet-url": "^0.0.8",
|
|
87
|
-
"@tscircuit/eval": "^0.0.
|
|
87
|
+
"@tscircuit/eval": "^0.0.438",
|
|
88
88
|
"@tscircuit/layout": "^0.0.29",
|
|
89
89
|
"@tscircuit/mm": "^0.0.8",
|
|
90
90
|
"@tscircuit/pcb-viewer": "^1.11.218",
|
|
91
91
|
"@tscircuit/prompt-benchmarks": "^0.0.28",
|
|
92
|
-
"@tscircuit/runframe": "^0.0.
|
|
92
|
+
"@tscircuit/runframe": "^0.0.1164",
|
|
93
93
|
"@tscircuit/schematic-viewer": "^2.0.39",
|
|
94
94
|
"@tscircuit/simple-3d-svg": "^0.0.41",
|
|
95
95
|
"@types/babel__standalone": "^7.1.7",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"circuit-json-to-simple-3d": "^0.0.7",
|
|
120
120
|
"circuit-json-to-spice": "^0.0.6",
|
|
121
121
|
"circuit-json-to-step": "^0.0.2",
|
|
122
|
-
"circuit-json-to-tscircuit": "^0.0.
|
|
122
|
+
"circuit-json-to-tscircuit": "^0.0.11",
|
|
123
123
|
"circuit-to-svg": "^0.0.202",
|
|
124
124
|
"class-variance-authority": "^0.7.1",
|
|
125
125
|
"clsx": "^2.1.1",
|