@shopware/api-client 1.2.0 → 1.3.0

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.
@@ -83,6 +83,11 @@
83
83
  }
84
84
  }
85
85
  ],
86
+ "CartItems": [
87
+ {
88
+ "required": ["items"]
89
+ }
90
+ ],
86
91
  "Category": [
87
92
  {
88
93
  "required": ["breadcrumb"],
@@ -450,6 +455,19 @@
450
455
  "enum": ["sales_channel_context"]
451
456
  }
452
457
  }
458
+ },
459
+ {
460
+ "required": ["languageInfo"],
461
+ "properties": {
462
+ "languageInfo": {
463
+ "type": "object",
464
+ "required": ["localeCode", "name"],
465
+ "properties": {
466
+ "name": { "type": "string" },
467
+ "localeCode": { "type": "string" }
468
+ }
469
+ }
470
+ }
453
471
  }
454
472
  ],
455
473
  "Quote": [{ "required": ["price"] }, { "required": ["stateMachineState"] }],
@@ -554,6 +572,28 @@
554
572
  }
555
573
  }
556
574
  }
575
+ },
576
+ {
577
+ "requestBody": {
578
+ "content": {
579
+ "application/json": {
580
+ "schema": {
581
+ "required": "_DELETE_"
582
+ }
583
+ }
584
+ }
585
+ }
586
+ },
587
+ {
588
+ "requestBody": {
589
+ "content": {
590
+ "application/json": {
591
+ "schema": {
592
+ "required": ["firstName", "lastName"]
593
+ }
594
+ }
595
+ }
596
+ }
557
597
  }
558
598
  ]
559
599
  },
@@ -592,7 +632,7 @@
592
632
  ]
593
633
  },
594
634
  "/account/register": {
595
- "post":[
635
+ "post": [
596
636
  {
597
637
  "requestBody": {
598
638
  "content": {
@@ -655,6 +695,36 @@
655
695
  }
656
696
  }
657
697
  }
698
+ },
699
+ {
700
+ "requestBody": {
701
+ "content": {
702
+ "application/json": {
703
+ "schema": {
704
+ "required": "_DELETE_"
705
+ }
706
+ }
707
+ }
708
+ }
709
+ },
710
+ {
711
+ "requestBody": {
712
+ "content": {
713
+ "application/json": {
714
+ "schema": {
715
+ "required": [
716
+ "email",
717
+ "password",
718
+ "firstName",
719
+ "lastName",
720
+ "acceptedDataProtection",
721
+ "storefrontUrl",
722
+ "billingAddress"
723
+ ]
724
+ }
725
+ }
726
+ }
727
+ }
658
728
  }
659
729
  ]
660
730
  },
@@ -779,6 +849,61 @@
779
849
  }
780
850
  }
781
851
  }
852
+ ],
853
+ "patch": [
854
+ {
855
+ "requestBody": {
856
+ "content": {
857
+ "application/json": {
858
+ "schema": {
859
+ "$ref": "_DELETE_",
860
+ "type": "object",
861
+ "required": ["items"],
862
+ "properties": {
863
+ "items": {
864
+ "type": "array",
865
+ "minItems": 1,
866
+ "items": {
867
+ "type": "object",
868
+ "required": ["id", "quantity"],
869
+ "properties": {
870
+ "id": { "type": "string" },
871
+ "quantity": { "type": "number" }
872
+ }
873
+ }
874
+ }
875
+ }
876
+ }
877
+ }
878
+ }
879
+ }
880
+ }
881
+ ]
882
+ },
883
+ "/contact-form": {
884
+ "post": [
885
+ {
886
+ "requestBody": {
887
+ "content": {
888
+ "application/json": {
889
+ "schema": {
890
+ "required": "_DELETE_"
891
+ }
892
+ }
893
+ }
894
+ }
895
+ },
896
+ {
897
+ "requestBody": {
898
+ "content": {
899
+ "application/json": {
900
+ "schema": {
901
+ "required": ["email", "subject", "comment"]
902
+ }
903
+ }
904
+ }
905
+ }
906
+ }
782
907
  ]
783
908
  },
784
909
  "/quote/detail/{id}": {
@@ -804,6 +929,21 @@
804
929
  }
805
930
  }
806
931
  },
932
+ "/product": {
933
+ "post": {
934
+ "responses": {
935
+ "200": {
936
+ "content": {
937
+ "application/json": {
938
+ "schema": {
939
+ "required": ["elements"]
940
+ }
941
+ }
942
+ }
943
+ }
944
+ }
945
+ }
946
+ },
807
947
  "/product/{productId}": {
808
948
  "post": [
809
949
  {
@@ -851,6 +991,21 @@
851
991
  }
852
992
  ]
853
993
  }
994
+ },
995
+ "/shipping-method": {
996
+ "post": {
997
+ "responses": {
998
+ "200": {
999
+ "content": {
1000
+ "application/json": {
1001
+ "schema": {
1002
+ "required": ["elements"]
1003
+ }
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ }
854
1009
  }
855
1010
  }
856
1011
  }