@tscircuit/fake-snippets 0.0.208 → 0.0.211

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/schema.d.ts CHANGED
@@ -289,6 +289,14 @@ type PublicAccount = z.infer<typeof publicAccountSchema>;
289
289
  declare const orderSchema: z.ZodObject<{
290
290
  order_id: z.ZodString;
291
291
  account_id: z.ZodNullable<z.ZodString>;
292
+ submitted_package_release_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ adapted_package_release_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ stripe_checkout_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ stripe_checkout_session_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ is_stripe_checkout_session_complete: z.ZodOptional<z.ZodBoolean>;
297
+ is_stripe_checkout_session_expired: z.ZodOptional<z.ZodBoolean>;
298
+ is_stripe_checkout_session_open: z.ZodOptional<z.ZodBoolean>;
299
+ is_stripe_payment_paid: z.ZodOptional<z.ZodBoolean>;
292
300
  is_running: z.ZodBoolean;
293
301
  is_started: z.ZodBoolean;
294
302
  is_finished: z.ZodBoolean;
@@ -322,6 +330,14 @@ declare const orderSchema: z.ZodObject<{
322
330
  started_at: string | null;
323
331
  completed_at: string | null;
324
332
  circuit_json?: any;
333
+ submitted_package_release_id?: string | null | undefined;
334
+ adapted_package_release_id?: string | null | undefined;
335
+ stripe_checkout_session_id?: string | null | undefined;
336
+ stripe_checkout_session_url?: string | null | undefined;
337
+ is_stripe_checkout_session_complete?: boolean | undefined;
338
+ is_stripe_checkout_session_expired?: boolean | undefined;
339
+ is_stripe_checkout_session_open?: boolean | undefined;
340
+ is_stripe_payment_paid?: boolean | undefined;
325
341
  }, {
326
342
  error: z.objectInputType<{
327
343
  error_code: z.ZodString;
@@ -337,6 +353,14 @@ declare const orderSchema: z.ZodObject<{
337
353
  started_at: string | null;
338
354
  completed_at: string | null;
339
355
  circuit_json?: any;
356
+ submitted_package_release_id?: string | null | undefined;
357
+ adapted_package_release_id?: string | null | undefined;
358
+ stripe_checkout_session_id?: string | null | undefined;
359
+ stripe_checkout_session_url?: string | null | undefined;
360
+ is_stripe_checkout_session_complete?: boolean | undefined;
361
+ is_stripe_checkout_session_expired?: boolean | undefined;
362
+ is_stripe_checkout_session_open?: boolean | undefined;
363
+ is_stripe_payment_paid?: boolean | undefined;
340
364
  }>;
341
365
  type Order = z.infer<typeof orderSchema>;
342
366
  declare const orderFileSchema: z.ZodObject<{
@@ -1320,106 +1344,6 @@ declare const packageSchema: z.ZodObject<{
1320
1344
  latest_cad_preview_image_url?: string | null | undefined;
1321
1345
  }>;
1322
1346
  type Package = z.infer<typeof packageSchema>;
1323
- declare const jlcpcbOrderStateSchema: z.ZodObject<{
1324
- jlcpcb_order_state_id: z.ZodString;
1325
- order_id: z.ZodString;
1326
- are_gerbers_uploaded: z.ZodDefault<z.ZodBoolean>;
1327
- is_gerber_analyzed: z.ZodDefault<z.ZodBoolean>;
1328
- are_initial_costs_calculated: z.ZodDefault<z.ZodBoolean>;
1329
- is_pcb_added_to_cart: z.ZodDefault<z.ZodBoolean>;
1330
- is_bom_uploaded: z.ZodDefault<z.ZodBoolean>;
1331
- is_pnp_uploaded: z.ZodDefault<z.ZodBoolean>;
1332
- is_bom_pnp_analyzed: z.ZodDefault<z.ZodBoolean>;
1333
- is_bom_parsing_complete: z.ZodDefault<z.ZodBoolean>;
1334
- are_components_available: z.ZodDefault<z.ZodBoolean>;
1335
- is_patch_map_generated: z.ZodDefault<z.ZodBoolean>;
1336
- is_json_merge_file_created: z.ZodDefault<z.ZodBoolean>;
1337
- is_dfm_result_generated: z.ZodDefault<z.ZodBoolean>;
1338
- are_files_downloaded: z.ZodDefault<z.ZodBoolean>;
1339
- are_product_categories_fetched: z.ZodDefault<z.ZodBoolean>;
1340
- are_final_costs_calculated: z.ZodDefault<z.ZodBoolean>;
1341
- is_json_merge_file_updated: z.ZodDefault<z.ZodBoolean>;
1342
- is_added_to_cart: z.ZodDefault<z.ZodBoolean>;
1343
- uploaded_gerber_metadata: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
1344
- gerber_analysis: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
1345
- created_at: z.ZodString;
1346
- are_gerbers_generated: z.ZodDefault<z.ZodBoolean>;
1347
- current_step: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1348
- }, "strip", z.ZodTypeAny, {
1349
- created_at: string;
1350
- order_id: string;
1351
- jlcpcb_order_state_id: string;
1352
- are_gerbers_uploaded: boolean;
1353
- is_gerber_analyzed: boolean;
1354
- are_initial_costs_calculated: boolean;
1355
- is_pcb_added_to_cart: boolean;
1356
- is_bom_uploaded: boolean;
1357
- is_pnp_uploaded: boolean;
1358
- is_bom_pnp_analyzed: boolean;
1359
- is_bom_parsing_complete: boolean;
1360
- are_components_available: boolean;
1361
- is_patch_map_generated: boolean;
1362
- is_json_merge_file_created: boolean;
1363
- is_dfm_result_generated: boolean;
1364
- are_files_downloaded: boolean;
1365
- are_product_categories_fetched: boolean;
1366
- are_final_costs_calculated: boolean;
1367
- is_json_merge_file_updated: boolean;
1368
- is_added_to_cart: boolean;
1369
- are_gerbers_generated: boolean;
1370
- current_step: string | null;
1371
- uploaded_gerber_metadata?: any;
1372
- gerber_analysis?: any;
1373
- }, {
1374
- created_at: string;
1375
- order_id: string;
1376
- jlcpcb_order_state_id: string;
1377
- are_gerbers_uploaded?: boolean | undefined;
1378
- is_gerber_analyzed?: boolean | undefined;
1379
- are_initial_costs_calculated?: boolean | undefined;
1380
- is_pcb_added_to_cart?: boolean | undefined;
1381
- is_bom_uploaded?: boolean | undefined;
1382
- is_pnp_uploaded?: boolean | undefined;
1383
- is_bom_pnp_analyzed?: boolean | undefined;
1384
- is_bom_parsing_complete?: boolean | undefined;
1385
- are_components_available?: boolean | undefined;
1386
- is_patch_map_generated?: boolean | undefined;
1387
- is_json_merge_file_created?: boolean | undefined;
1388
- is_dfm_result_generated?: boolean | undefined;
1389
- are_files_downloaded?: boolean | undefined;
1390
- are_product_categories_fetched?: boolean | undefined;
1391
- are_final_costs_calculated?: boolean | undefined;
1392
- is_json_merge_file_updated?: boolean | undefined;
1393
- is_added_to_cart?: boolean | undefined;
1394
- uploaded_gerber_metadata?: any;
1395
- gerber_analysis?: any;
1396
- are_gerbers_generated?: boolean | undefined;
1397
- current_step?: string | null | undefined;
1398
- }>;
1399
- type JlcpcbOrderState = z.infer<typeof jlcpcbOrderStateSchema>;
1400
- declare const jlcpcbOrderStepRunSchema: z.ZodObject<{
1401
- jlcpcb_order_step_run_id: z.ZodString;
1402
- is_running: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1403
- step_function_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1404
- jlcpcb_order_state_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1405
- error_message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1406
- created_at: z.ZodString;
1407
- }, "strip", z.ZodTypeAny, {
1408
- created_at: string;
1409
- is_running: boolean | null;
1410
- jlcpcb_order_state_id: string | null;
1411
- jlcpcb_order_step_run_id: string;
1412
- step_function_name: string | null;
1413
- error_message: string | null;
1414
- }, {
1415
- created_at: string;
1416
- jlcpcb_order_step_run_id: string;
1417
- is_running?: boolean | null | undefined;
1418
- jlcpcb_order_state_id?: string | null | undefined;
1419
- step_function_name?: string | null | undefined;
1420
- error_message?: string | null | undefined;
1421
- }>;
1422
- type JlcpcbOrderStepRun = z.infer<typeof jlcpcbOrderStepRunSchema>;
1423
1347
  declare const packageBuildSchema: z.ZodObject<{
1424
1348
  package_build_id: z.ZodString;
1425
1349
  package_release_id: z.ZodString;
@@ -2414,6 +2338,14 @@ declare const databaseSchema: z.ZodObject<{
2414
2338
  orders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2415
2339
  order_id: z.ZodString;
2416
2340
  account_id: z.ZodNullable<z.ZodString>;
2341
+ submitted_package_release_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2342
+ adapted_package_release_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2343
+ stripe_checkout_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2344
+ stripe_checkout_session_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2345
+ is_stripe_checkout_session_complete: z.ZodOptional<z.ZodBoolean>;
2346
+ is_stripe_checkout_session_expired: z.ZodOptional<z.ZodBoolean>;
2347
+ is_stripe_checkout_session_open: z.ZodOptional<z.ZodBoolean>;
2348
+ is_stripe_payment_paid: z.ZodOptional<z.ZodBoolean>;
2417
2349
  is_running: z.ZodBoolean;
2418
2350
  is_started: z.ZodBoolean;
2419
2351
  is_finished: z.ZodBoolean;
@@ -2447,6 +2379,14 @@ declare const databaseSchema: z.ZodObject<{
2447
2379
  started_at: string | null;
2448
2380
  completed_at: string | null;
2449
2381
  circuit_json?: any;
2382
+ submitted_package_release_id?: string | null | undefined;
2383
+ adapted_package_release_id?: string | null | undefined;
2384
+ stripe_checkout_session_id?: string | null | undefined;
2385
+ stripe_checkout_session_url?: string | null | undefined;
2386
+ is_stripe_checkout_session_complete?: boolean | undefined;
2387
+ is_stripe_checkout_session_expired?: boolean | undefined;
2388
+ is_stripe_checkout_session_open?: boolean | undefined;
2389
+ is_stripe_payment_paid?: boolean | undefined;
2450
2390
  }, {
2451
2391
  error: z.objectInputType<{
2452
2392
  error_code: z.ZodString;
@@ -2462,6 +2402,14 @@ declare const databaseSchema: z.ZodObject<{
2462
2402
  started_at: string | null;
2463
2403
  completed_at: string | null;
2464
2404
  circuit_json?: any;
2405
+ submitted_package_release_id?: string | null | undefined;
2406
+ adapted_package_release_id?: string | null | undefined;
2407
+ stripe_checkout_session_id?: string | null | undefined;
2408
+ stripe_checkout_session_url?: string | null | undefined;
2409
+ is_stripe_checkout_session_complete?: boolean | undefined;
2410
+ is_stripe_checkout_session_expired?: boolean | undefined;
2411
+ is_stripe_checkout_session_open?: boolean | undefined;
2412
+ is_stripe_payment_paid?: boolean | undefined;
2465
2413
  }>, "many">>;
2466
2414
  organizations: z.ZodDefault<z.ZodArray<z.ZodObject<{
2467
2415
  org_id: z.ZodString;
@@ -2628,104 +2576,6 @@ declare const databaseSchema: z.ZodObject<{
2628
2576
  account_package_id: string;
2629
2577
  package_id: string;
2630
2578
  }>, "many">>;
2631
- jlcpcbOrderState: z.ZodDefault<z.ZodArray<z.ZodObject<{
2632
- jlcpcb_order_state_id: z.ZodString;
2633
- order_id: z.ZodString;
2634
- are_gerbers_uploaded: z.ZodDefault<z.ZodBoolean>;
2635
- is_gerber_analyzed: z.ZodDefault<z.ZodBoolean>;
2636
- are_initial_costs_calculated: z.ZodDefault<z.ZodBoolean>;
2637
- is_pcb_added_to_cart: z.ZodDefault<z.ZodBoolean>;
2638
- is_bom_uploaded: z.ZodDefault<z.ZodBoolean>;
2639
- is_pnp_uploaded: z.ZodDefault<z.ZodBoolean>;
2640
- is_bom_pnp_analyzed: z.ZodDefault<z.ZodBoolean>;
2641
- is_bom_parsing_complete: z.ZodDefault<z.ZodBoolean>;
2642
- are_components_available: z.ZodDefault<z.ZodBoolean>;
2643
- is_patch_map_generated: z.ZodDefault<z.ZodBoolean>;
2644
- is_json_merge_file_created: z.ZodDefault<z.ZodBoolean>;
2645
- is_dfm_result_generated: z.ZodDefault<z.ZodBoolean>;
2646
- are_files_downloaded: z.ZodDefault<z.ZodBoolean>;
2647
- are_product_categories_fetched: z.ZodDefault<z.ZodBoolean>;
2648
- are_final_costs_calculated: z.ZodDefault<z.ZodBoolean>;
2649
- is_json_merge_file_updated: z.ZodDefault<z.ZodBoolean>;
2650
- is_added_to_cart: z.ZodDefault<z.ZodBoolean>;
2651
- uploaded_gerber_metadata: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
2652
- gerber_analysis: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
2653
- created_at: z.ZodString;
2654
- are_gerbers_generated: z.ZodDefault<z.ZodBoolean>;
2655
- current_step: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2656
- }, "strip", z.ZodTypeAny, {
2657
- created_at: string;
2658
- order_id: string;
2659
- jlcpcb_order_state_id: string;
2660
- are_gerbers_uploaded: boolean;
2661
- is_gerber_analyzed: boolean;
2662
- are_initial_costs_calculated: boolean;
2663
- is_pcb_added_to_cart: boolean;
2664
- is_bom_uploaded: boolean;
2665
- is_pnp_uploaded: boolean;
2666
- is_bom_pnp_analyzed: boolean;
2667
- is_bom_parsing_complete: boolean;
2668
- are_components_available: boolean;
2669
- is_patch_map_generated: boolean;
2670
- is_json_merge_file_created: boolean;
2671
- is_dfm_result_generated: boolean;
2672
- are_files_downloaded: boolean;
2673
- are_product_categories_fetched: boolean;
2674
- are_final_costs_calculated: boolean;
2675
- is_json_merge_file_updated: boolean;
2676
- is_added_to_cart: boolean;
2677
- are_gerbers_generated: boolean;
2678
- current_step: string | null;
2679
- uploaded_gerber_metadata?: any;
2680
- gerber_analysis?: any;
2681
- }, {
2682
- created_at: string;
2683
- order_id: string;
2684
- jlcpcb_order_state_id: string;
2685
- are_gerbers_uploaded?: boolean | undefined;
2686
- is_gerber_analyzed?: boolean | undefined;
2687
- are_initial_costs_calculated?: boolean | undefined;
2688
- is_pcb_added_to_cart?: boolean | undefined;
2689
- is_bom_uploaded?: boolean | undefined;
2690
- is_pnp_uploaded?: boolean | undefined;
2691
- is_bom_pnp_analyzed?: boolean | undefined;
2692
- is_bom_parsing_complete?: boolean | undefined;
2693
- are_components_available?: boolean | undefined;
2694
- is_patch_map_generated?: boolean | undefined;
2695
- is_json_merge_file_created?: boolean | undefined;
2696
- is_dfm_result_generated?: boolean | undefined;
2697
- are_files_downloaded?: boolean | undefined;
2698
- are_product_categories_fetched?: boolean | undefined;
2699
- are_final_costs_calculated?: boolean | undefined;
2700
- is_json_merge_file_updated?: boolean | undefined;
2701
- is_added_to_cart?: boolean | undefined;
2702
- uploaded_gerber_metadata?: any;
2703
- gerber_analysis?: any;
2704
- are_gerbers_generated?: boolean | undefined;
2705
- current_step?: string | null | undefined;
2706
- }>, "many">>;
2707
- jlcpcbOrderStepRuns: z.ZodDefault<z.ZodArray<z.ZodObject<{
2708
- jlcpcb_order_step_run_id: z.ZodString;
2709
- is_running: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
2710
- step_function_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2711
- jlcpcb_order_state_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2712
- error_message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2713
- created_at: z.ZodString;
2714
- }, "strip", z.ZodTypeAny, {
2715
- created_at: string;
2716
- is_running: boolean | null;
2717
- jlcpcb_order_state_id: string | null;
2718
- jlcpcb_order_step_run_id: string;
2719
- step_function_name: string | null;
2720
- error_message: string | null;
2721
- }, {
2722
- created_at: string;
2723
- jlcpcb_order_step_run_id: string;
2724
- is_running?: boolean | null | undefined;
2725
- jlcpcb_order_state_id?: string | null | undefined;
2726
- step_function_name?: string | null | undefined;
2727
- error_message?: string | null | undefined;
2728
- }>, "many">>;
2729
2579
  orderQuotes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2730
2580
  order_quote_id: z.ZodString;
2731
2581
  account_id: z.ZodNullable<z.ZodString>;
@@ -3362,6 +3212,14 @@ declare const databaseSchema: z.ZodObject<{
3362
3212
  started_at: string | null;
3363
3213
  completed_at: string | null;
3364
3214
  circuit_json?: any;
3215
+ submitted_package_release_id?: string | null | undefined;
3216
+ adapted_package_release_id?: string | null | undefined;
3217
+ stripe_checkout_session_id?: string | null | undefined;
3218
+ stripe_checkout_session_url?: string | null | undefined;
3219
+ is_stripe_checkout_session_complete?: boolean | undefined;
3220
+ is_stripe_checkout_session_expired?: boolean | undefined;
3221
+ is_stripe_checkout_session_open?: boolean | undefined;
3222
+ is_stripe_payment_paid?: boolean | undefined;
3365
3223
  }[];
3366
3224
  organizations: {
3367
3225
  created_at: string;
@@ -3422,40 +3280,6 @@ declare const databaseSchema: z.ZodObject<{
3422
3280
  account_package_id: string;
3423
3281
  package_id: string;
3424
3282
  }[];
3425
- jlcpcbOrderState: {
3426
- created_at: string;
3427
- order_id: string;
3428
- jlcpcb_order_state_id: string;
3429
- are_gerbers_uploaded: boolean;
3430
- is_gerber_analyzed: boolean;
3431
- are_initial_costs_calculated: boolean;
3432
- is_pcb_added_to_cart: boolean;
3433
- is_bom_uploaded: boolean;
3434
- is_pnp_uploaded: boolean;
3435
- is_bom_pnp_analyzed: boolean;
3436
- is_bom_parsing_complete: boolean;
3437
- are_components_available: boolean;
3438
- is_patch_map_generated: boolean;
3439
- is_json_merge_file_created: boolean;
3440
- is_dfm_result_generated: boolean;
3441
- are_files_downloaded: boolean;
3442
- are_product_categories_fetched: boolean;
3443
- are_final_costs_calculated: boolean;
3444
- is_json_merge_file_updated: boolean;
3445
- is_added_to_cart: boolean;
3446
- are_gerbers_generated: boolean;
3447
- current_step: string | null;
3448
- uploaded_gerber_metadata?: any;
3449
- gerber_analysis?: any;
3450
- }[];
3451
- jlcpcbOrderStepRuns: {
3452
- created_at: string;
3453
- is_running: boolean | null;
3454
- jlcpcb_order_state_id: string | null;
3455
- jlcpcb_order_step_run_id: string;
3456
- step_function_name: string | null;
3457
- error_message: string | null;
3458
- }[];
3459
3283
  orderQuotes: {
3460
3284
  error: z.objectOutputType<{
3461
3285
  error_code: z.ZodString;
@@ -3790,6 +3614,14 @@ declare const databaseSchema: z.ZodObject<{
3790
3614
  started_at: string | null;
3791
3615
  completed_at: string | null;
3792
3616
  circuit_json?: any;
3617
+ submitted_package_release_id?: string | null | undefined;
3618
+ adapted_package_release_id?: string | null | undefined;
3619
+ stripe_checkout_session_id?: string | null | undefined;
3620
+ stripe_checkout_session_url?: string | null | undefined;
3621
+ is_stripe_checkout_session_complete?: boolean | undefined;
3622
+ is_stripe_checkout_session_expired?: boolean | undefined;
3623
+ is_stripe_checkout_session_open?: boolean | undefined;
3624
+ is_stripe_payment_paid?: boolean | undefined;
3793
3625
  }[] | undefined;
3794
3626
  organizations?: {
3795
3627
  created_at: string;
@@ -3850,40 +3682,6 @@ declare const databaseSchema: z.ZodObject<{
3850
3682
  account_package_id: string;
3851
3683
  package_id: string;
3852
3684
  }[] | undefined;
3853
- jlcpcbOrderState?: {
3854
- created_at: string;
3855
- order_id: string;
3856
- jlcpcb_order_state_id: string;
3857
- are_gerbers_uploaded?: boolean | undefined;
3858
- is_gerber_analyzed?: boolean | undefined;
3859
- are_initial_costs_calculated?: boolean | undefined;
3860
- is_pcb_added_to_cart?: boolean | undefined;
3861
- is_bom_uploaded?: boolean | undefined;
3862
- is_pnp_uploaded?: boolean | undefined;
3863
- is_bom_pnp_analyzed?: boolean | undefined;
3864
- is_bom_parsing_complete?: boolean | undefined;
3865
- are_components_available?: boolean | undefined;
3866
- is_patch_map_generated?: boolean | undefined;
3867
- is_json_merge_file_created?: boolean | undefined;
3868
- is_dfm_result_generated?: boolean | undefined;
3869
- are_files_downloaded?: boolean | undefined;
3870
- are_product_categories_fetched?: boolean | undefined;
3871
- are_final_costs_calculated?: boolean | undefined;
3872
- is_json_merge_file_updated?: boolean | undefined;
3873
- is_added_to_cart?: boolean | undefined;
3874
- uploaded_gerber_metadata?: any;
3875
- gerber_analysis?: any;
3876
- are_gerbers_generated?: boolean | undefined;
3877
- current_step?: string | null | undefined;
3878
- }[] | undefined;
3879
- jlcpcbOrderStepRuns?: {
3880
- created_at: string;
3881
- jlcpcb_order_step_run_id: string;
3882
- is_running?: boolean | null | undefined;
3883
- jlcpcb_order_state_id?: string | null | undefined;
3884
- step_function_name?: string | null | undefined;
3885
- error_message?: string | null | undefined;
3886
- }[] | undefined;
3887
3685
  orderQuotes?: {
3888
3686
  error: z.objectInputType<{
3889
3687
  error_code: z.ZodString;
@@ -4116,4 +3914,4 @@ declare const memberSchema: z.ZodObject<Omit<{
4116
3914
  }>;
4117
3915
  type Member = z.infer<typeof memberSchema>;
4118
3916
 
4119
- export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Member, type Order, type OrderFile, type OrderQuote, type OrgAccount, type OrgDomain, type OrgDomainLinkedPackage, type OrgInvitation, type Organization, type Package, type PackageBuild, type PackageDomain, type PackageFile, type PackageFileLite, type PackageRelease, type PublicAccount, type PublicOrgDomain, type PublicOrgDomainLinkedPackage, type PublicOrgSchema, type PublicPackageDomain, type PublicPackageRelease, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, log, loginPageSchema, memberSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgDomainLinkedPackagePointsToEnum, orgDomainLinkedPackageSchema, orgDomainPointsToEnum, orgDomainSchema, orgInvitationSchema, orgSchema, packageBuildSchema, packageDomainPointsToEnum, packageDomainSchema, packageFileLiteSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgDomainLinkedPackageSchema, publicOrgDomainSchema, publicOrgSchema, publicPackageDomainSchema, publicPackageReleaseSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, tscircuitHandleStrictSchema, userPermissionsSchema };
3917
+ export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type LoginPage, type Member, type Order, type OrderFile, type OrderQuote, type OrgAccount, type OrgDomain, type OrgDomainLinkedPackage, type OrgInvitation, type Organization, type Package, type PackageBuild, type PackageDomain, type PackageFile, type PackageFileLite, type PackageRelease, type PublicAccount, type PublicOrgDomain, type PublicOrgDomainLinkedPackage, type PublicOrgSchema, type PublicPackageDomain, type PublicPackageRelease, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, log, loginPageSchema, memberSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgDomainLinkedPackagePointsToEnum, orgDomainLinkedPackageSchema, orgDomainPointsToEnum, orgDomainSchema, orgInvitationSchema, orgSchema, packageBuildSchema, packageDomainPointsToEnum, packageDomainSchema, packageFileLiteSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgDomainLinkedPackageSchema, publicOrgDomainSchema, publicOrgSchema, publicPackageDomainSchema, publicPackageReleaseSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, tscircuitHandleStrictSchema, userPermissionsSchema };
package/dist/schema.js CHANGED
@@ -78,6 +78,14 @@ var publicAccountSchema = z.object({
78
78
  var orderSchema = z.object({
79
79
  order_id: z.string(),
80
80
  account_id: z.string().nullable(),
81
+ submitted_package_release_id: z.string().nullable().optional(),
82
+ adapted_package_release_id: z.string().nullable().optional(),
83
+ stripe_checkout_session_id: z.string().nullable().optional(),
84
+ stripe_checkout_session_url: z.string().nullable().optional(),
85
+ is_stripe_checkout_session_complete: z.boolean().optional(),
86
+ is_stripe_checkout_session_expired: z.boolean().optional(),
87
+ is_stripe_checkout_session_open: z.boolean().optional(),
88
+ is_stripe_payment_paid: z.boolean().optional(),
81
89
  is_running: z.boolean(),
82
90
  is_started: z.boolean(),
83
91
  is_finished: z.boolean(),
@@ -384,40 +392,6 @@ var packageSchema = z.object({
384
392
  latest_cad_preview_image_url: z.string().nullable().optional(),
385
393
  github_installation_id: z.string().nullable().optional()
386
394
  });
387
- var jlcpcbOrderStateSchema = z.object({
388
- jlcpcb_order_state_id: z.string(),
389
- order_id: z.string(),
390
- are_gerbers_uploaded: z.boolean().default(false),
391
- is_gerber_analyzed: z.boolean().default(false),
392
- are_initial_costs_calculated: z.boolean().default(false),
393
- is_pcb_added_to_cart: z.boolean().default(false),
394
- is_bom_uploaded: z.boolean().default(false),
395
- is_pnp_uploaded: z.boolean().default(false),
396
- is_bom_pnp_analyzed: z.boolean().default(false),
397
- is_bom_parsing_complete: z.boolean().default(false),
398
- are_components_available: z.boolean().default(false),
399
- is_patch_map_generated: z.boolean().default(false),
400
- is_json_merge_file_created: z.boolean().default(false),
401
- is_dfm_result_generated: z.boolean().default(false),
402
- are_files_downloaded: z.boolean().default(false),
403
- are_product_categories_fetched: z.boolean().default(false),
404
- are_final_costs_calculated: z.boolean().default(false),
405
- is_json_merge_file_updated: z.boolean().default(false),
406
- is_added_to_cart: z.boolean().default(false),
407
- uploaded_gerber_metadata: z.any().nullable().default(null),
408
- gerber_analysis: z.any().nullable().default(null),
409
- created_at: z.string(),
410
- are_gerbers_generated: z.boolean().default(false),
411
- current_step: z.string().nullable().default(null)
412
- });
413
- var jlcpcbOrderStepRunSchema = z.object({
414
- jlcpcb_order_step_run_id: z.string(),
415
- is_running: z.boolean().nullable().default(null),
416
- step_function_name: z.string().nullable().default(null),
417
- jlcpcb_order_state_id: z.string().nullable().default(null),
418
- error_message: z.string().nullable().default(null),
419
- created_at: z.string()
420
- });
421
395
  var packageBuildSchema = z.object({
422
396
  package_build_id: z.string().uuid(),
423
397
  package_release_id: z.string(),
@@ -582,8 +556,6 @@ var databaseSchema = z.object({
582
556
  orderFiles: z.array(orderFileSchema).default([]),
583
557
  accountSnippets: z.array(accountSnippetSchema).default([]),
584
558
  accountPackages: z.array(accountPackageSchema).default([]),
585
- jlcpcbOrderState: z.array(jlcpcbOrderStateSchema).default([]),
586
- jlcpcbOrderStepRuns: z.array(jlcpcbOrderStepRunSchema).default([]),
587
559
  orderQuotes: z.array(orderQuoteSchema).default([]),
588
560
  aiReviews: z.array(aiReviewSchema).default([]),
589
561
  datasheets: z.array(datasheetSchema).default([]),
@@ -622,8 +594,6 @@ export {
622
594
  errorResponseSchema,
623
595
  errorSchema,
624
596
  githubInstallationSchema,
625
- jlcpcbOrderStateSchema,
626
- jlcpcbOrderStepRunSchema,
627
597
  log,
628
598
  loginPageSchema,
629
599
  memberSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.208",
3
+ "version": "0.0.211",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,9 @@
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
+ "trustedDependencies": [
13
+ "@tscircuit/fake-stripe"
14
+ ],
12
15
  "main": "dist/index.js",
13
16
  "exports": {
14
17
  ".": "./dist/index.js",
@@ -85,17 +88,18 @@
85
88
  "@tscircuit/3d-viewer": "^0.0.559",
86
89
  "@tscircuit/assembly-viewer": "^0.0.5",
87
90
  "@tscircuit/create-snippet-url": "^0.0.8",
88
- "@tscircuit/eval": "^0.0.836",
91
+ "@tscircuit/eval": "^0.0.864",
89
92
  "@tscircuit/internal-dynamic-import": "^0.0.5",
90
93
  "@tscircuit/layout": "^0.0.29",
91
94
  "@tscircuit/mm": "^0.0.8",
92
- "@tscircuit/pcb-viewer": "1.11.369",
95
+ "@tscircuit/pcb-viewer": "1.11.370",
93
96
  "@tscircuit/prompt-benchmarks": "^0.0.28",
94
97
  "@tscircuit/props": "^0.0.499",
95
- "@tscircuit/runframe": "^0.0.1945",
98
+ "@tscircuit/runframe": "^0.0.1994",
96
99
  "@tscircuit/schematic-viewer": "^2.0.61",
97
100
  "@tscircuit/simple-3d-svg": "^0.0.41",
98
- "@tscircuit/order-dialog": "git+https://github.com/tscircuit/order-dialog.git#7d5cdaf",
101
+ "@tscircuit/order-dialog": "git+https://github.com/tscircuit/order-dialog.git#c1a55b7",
102
+ "@tscircuit/fake-stripe": "git+https://github.com/tscircuit/fake-stripe.git#f1a5b40",
99
103
  "@types/babel__standalone": "^7.1.7",
100
104
  "@types/bun": "^1.1.10",
101
105
  "@types/country-list": "^2.1.4",
@@ -117,7 +121,7 @@
117
121
  "circuit-json-to-bom-csv": "^0.0.7",
118
122
  "circuit-json-to-gerber": "^0.0.51",
119
123
  "circuit-json-to-gltf": "^0.0.91",
120
- "circuit-json-to-kicad": "^0.0.124",
124
+ "circuit-json-to-kicad": "^0.0.137",
121
125
  "circuit-json-to-lbrn": "^0.0.23",
122
126
  "circuit-json-to-pnp-csv": "^0.0.7",
123
127
  "circuit-json-to-readable-netlist": "^0.0.13",
@@ -147,7 +151,7 @@
147
151
  "jose": "^5.9.3",
148
152
  "jszip": "^3.10.1",
149
153
  "kicad-converter": "^0.0.17",
150
- "kicadts": "^0.0.23",
154
+ "kicadts": "^0.0.35",
151
155
  "ky": "^1.7.5",
152
156
  "lucide-react": "^0.488.0",
153
157
  "lz-string": "^1.5.0",