@@ -2545,3 +2545,189 @@ Object {
2545
2545
"x-powered-by": "Express",
2546
2546
}
2547
2547
`;
2548
+
2549
+ exports[`Posts API With integration auth can create and update a post with revisions 1: [body] 1`] = `
2550
+ Object {
2551
+ "posts": Array [
2552
+ Object {
2553
+ "authors": Any<Array>,
2554
+ "canonical_url": null,
2555
+ "codeinjection_foot": null,
2556
+ "codeinjection_head": null,
2557
+ "comment_id": Any<String>,
2558
+ "count": Object {
2559
+ "clicks": 0,
2560
+ "negative_feedback": 0,
2561
+ "positive_feedback": 0,
2562
+ },
2563
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2564
+ "custom_excerpt": null,
2565
+ "custom_template": null,
2566
+ "email": null,
2567
+ "email_only": false,
2568
+ "email_segment": "all",
2569
+ "email_subject": null,
2570
+ "excerpt": "Updated content for revision testing.",
2571
+ "feature_image": null,
2572
+ "feature_image_alt": null,
2573
+ "feature_image_caption": null,
2574
+ "featured": false,
2575
+ "frontmatter": null,
2576
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2577
+ "lexical": "{\\"root\\":{\\"children\\":[{\\"children\\":[{\\"detail\\":0,\\"format\\":0,\\"mode\\":\\"normal\\",\\"style\\":\\"\\",\\"text\\":\\"Updated content for revision testing.\\",\\"type\\":\\"text\\",\\"version\\":1}],\\"direction\\":\\"ltr\\",\\"format\\":\\"\\",\\"indent\\":0,\\"type\\":\\"paragraph\\",\\"version\\":1}],\\"direction\\":\\"ltr\\",\\"format\\":\\"\\",\\"indent\\":0,\\"type\\":\\"root\\",\\"version\\":1}}",
2578
+ "meta_description": null,
2579
+ "meta_title": null,
2580
+ "newsletter": null,
2581
+ "og_description": null,
2582
+ "og_image": null,
2583
+ "og_title": null,
2584
+ "primary_author": Any<Object>,
2585
+ "primary_tag": Any<Object>,
2586
+ "published_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2587
+ "reading_time": 0,
2588
+ "slug": "integration-auth-test-post",
2589
+ "status": "published",
2590
+ "tags": Any<Array>,
2591
+ "tiers": Array [
2592
+ Object {
2593
+ "active": true,
2594
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2595
+ "currency": null,
2596
+ "description": null,
2597
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2598
+ "monthly_price": null,
2599
+ "monthly_price_id": null,
2600
+ "name": "Free",
2601
+ "slug": "free",
2602
+ "trial_days": 0,
2603
+ "type": "free",
2604
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2605
+ "visibility": "public",
2606
+ "welcome_page_url": null,
2607
+ "yearly_price": null,
2608
+ "yearly_price_id": null,
2609
+ },
2610
+ Object {
2611
+ "active": true,
2612
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2613
+ "currency": "usd",
2614
+ "description": null,
2615
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2616
+ "monthly_price": 500,
2617
+ "monthly_price_id": null,
2618
+ "name": "Default Product",
2619
+ "slug": "default-product",
2620
+ "trial_days": 0,
2621
+ "type": "paid",
2622
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2623
+ "visibility": "public",
2624
+ "welcome_page_url": null,
2625
+ "yearly_price": 5000,
2626
+ "yearly_price_id": null,
2627
+ },
2628
+ ],
2629
+ "title": "Integration Auth Test Post",
2630
+ "twitter_description": null,
2631
+ "twitter_image": null,
2632
+ "twitter_title": null,
2633
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2634
+ "url": Any<String>,
2635
+ "uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
2636
+ "visibility": "public",
2637
+ },
2638
+ ],
2639
+ }
2640
+ `;
2641
+
2642
+ exports[`Posts API can create and update a post with revisions using integration auth 1: [body] 1`] = `
2643
+ Object {
2644
+ "posts": Array [
2645
+ Object {
2646
+ "authors": Any<Array>,
2647
+ "canonical_url": null,
2648
+ "codeinjection_foot": null,
2649
+ "codeinjection_head": null,
2650
+ "comment_id": Any<String>,
2651
+ "count": Object {
2652
+ "clicks": 0,
2653
+ "negative_feedback": 0,
2654
+ "positive_feedback": 0,
2655
+ },
2656
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2657
+ "custom_excerpt": null,
2658
+ "custom_template": null,
2659
+ "email": null,
2660
+ "email_only": false,
2661
+ "email_segment": "all",
2662
+ "email_subject": null,
2663
+ "excerpt": "Updated content for revision testing.",
2664
+ "feature_image": null,
2665
+ "feature_image_alt": null,
2666
+ "feature_image_caption": null,
2667
+ "featured": false,
2668
+ "frontmatter": null,
2669
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2670
+ "lexical": "{\\"root\\":{\\"children\\":[{\\"children\\":[{\\"detail\\":0,\\"format\\":0,\\"mode\\":\\"normal\\",\\"style\\":\\"\\",\\"text\\":\\"Updated content for revision testing.\\",\\"type\\":\\"text\\",\\"version\\":1}],\\"direction\\":\\"ltr\\",\\"format\\":\\"\\",\\"indent\\":0,\\"type\\":\\"paragraph\\",\\"version\\":1}],\\"direction\\":\\"ltr\\",\\"format\\":\\"\\",\\"indent\\":0,\\"type\\":\\"root\\",\\"version\\":1}}",
2671
+ "meta_description": null,
2672
+ "meta_title": null,
2673
+ "newsletter": null,
2674
+ "og_description": null,
2675
+ "og_image": null,
2676
+ "og_title": null,
2677
+ "primary_author": Any<Object>,
2678
+ "primary_tag": Any<Object>,
2679
+ "published_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2680
+ "reading_time": 0,
2681
+ "slug": "integration-auth-test-post",
2682
+ "status": "published",
2683
+ "tags": Any<Array>,
2684
+ "tiers": Array [
2685
+ Object {
2686
+ "active": true,
2687
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2688
+ "currency": null,
2689
+ "description": null,
2690
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2691
+ "monthly_price": null,
2692
+ "monthly_price_id": null,
2693
+ "name": "Free",
2694
+ "slug": "free",
2695
+ "trial_days": 0,
2696
+ "type": "free",
2697
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2698
+ "visibility": "public",
2699
+ "welcome_page_url": null,
2700
+ "yearly_price": null,
2701
+ "yearly_price_id": null,
2702
+ },
2703
+ Object {
2704
+ "active": true,
2705
+ "created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2706
+ "currency": "usd",
2707
+ "description": null,
2708
+ "id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
2709
+ "monthly_price": 500,
2710
+ "monthly_price_id": null,
2711
+ "name": "Default Product",
2712
+ "slug": "default-product",
2713
+ "trial_days": 0,
2714
+ "type": "paid",
2715
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2716
+ "visibility": "public",
2717
+ "welcome_page_url": null,
2718
+ "yearly_price": 5000,
2719
+ "yearly_price_id": null,
2720
+ },
2721
+ ],
2722
+ "title": "Integration Auth Test Post",
2723
+ "twitter_description": null,
2724
+ "twitter_image": null,
2725
+ "twitter_title": null,
2726
+ "updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}T\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\\\.000Z/,
2727
+ "url": Any<String>,
2728
+ "uuid": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/,
2729
+ "visibility": "public",
2730
+ },
2731
+ ],
2732
+ }
2733
+ `;
0 commit comments