@djvlc/openapi-registry-client 1.4.10 → 1.4.11
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/index.d.mts +1598 -1123
- package/dist/index.d.ts +1598 -1123
- package/dist/index.js +1249 -911
- package/dist/index.mjs +1138 -822
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -641,21 +641,85 @@ function BlockComponentVersionRequestToJSON(value) {
|
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
// src/generated/models/
|
|
645
|
-
|
|
644
|
+
// src/generated/models/CompleteUploadRequestFilesInner.ts
|
|
645
|
+
function instanceOfCompleteUploadRequestFilesInner(value) {
|
|
646
|
+
let isInstance = true;
|
|
647
|
+
isInstance = isInstance && "path" in value;
|
|
648
|
+
isInstance = isInstance && "integrity" in value;
|
|
649
|
+
return isInstance;
|
|
650
|
+
}
|
|
651
|
+
function CompleteUploadRequestFilesInnerFromJSON(json) {
|
|
652
|
+
return CompleteUploadRequestFilesInnerFromJSONTyped(json, false);
|
|
653
|
+
}
|
|
654
|
+
function CompleteUploadRequestFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
655
|
+
if (json === void 0 || json === null) {
|
|
656
|
+
return json;
|
|
657
|
+
}
|
|
658
|
+
return {
|
|
659
|
+
"path": json["path"],
|
|
660
|
+
"integrity": json["integrity"]
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
function CompleteUploadRequestFilesInnerToJSON(value) {
|
|
664
|
+
if (value === void 0) {
|
|
665
|
+
return void 0;
|
|
666
|
+
}
|
|
667
|
+
if (value === null) {
|
|
668
|
+
return null;
|
|
669
|
+
}
|
|
670
|
+
return {
|
|
671
|
+
"path": value.path,
|
|
672
|
+
"integrity": value.integrity
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// src/generated/models/CompleteUploadRequest.ts
|
|
677
|
+
function instanceOfCompleteUploadRequest(value) {
|
|
678
|
+
let isInstance = true;
|
|
679
|
+
isInstance = isInstance && "uploadId" in value;
|
|
680
|
+
isInstance = isInstance && "files" in value;
|
|
681
|
+
return isInstance;
|
|
682
|
+
}
|
|
683
|
+
function CompleteUploadRequestFromJSON(json) {
|
|
684
|
+
return CompleteUploadRequestFromJSONTyped(json, false);
|
|
685
|
+
}
|
|
686
|
+
function CompleteUploadRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
687
|
+
if (json === void 0 || json === null) {
|
|
688
|
+
return json;
|
|
689
|
+
}
|
|
690
|
+
return {
|
|
691
|
+
"uploadId": json["uploadId"],
|
|
692
|
+
"files": json["files"].map(CompleteUploadRequestFilesInnerFromJSON)
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
function CompleteUploadRequestToJSON(value) {
|
|
696
|
+
if (value === void 0) {
|
|
697
|
+
return void 0;
|
|
698
|
+
}
|
|
699
|
+
if (value === null) {
|
|
700
|
+
return null;
|
|
701
|
+
}
|
|
702
|
+
return {
|
|
703
|
+
"uploadId": value.uploadId,
|
|
704
|
+
"files": value.files.map(CompleteUploadRequestFilesInnerToJSON)
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// src/generated/models/VersionIntegrity.ts
|
|
709
|
+
var VersionIntegrityAlgorithmEnum = {
|
|
646
710
|
SHA384: "sha384",
|
|
647
711
|
SHA512: "sha512"
|
|
648
712
|
};
|
|
649
|
-
function
|
|
713
|
+
function instanceOfVersionIntegrity(value) {
|
|
650
714
|
let isInstance = true;
|
|
651
715
|
isInstance = isInstance && "algorithm" in value;
|
|
652
716
|
isInstance = isInstance && "hash" in value;
|
|
653
717
|
return isInstance;
|
|
654
718
|
}
|
|
655
|
-
function
|
|
656
|
-
return
|
|
719
|
+
function VersionIntegrityFromJSON(json) {
|
|
720
|
+
return VersionIntegrityFromJSONTyped(json, false);
|
|
657
721
|
}
|
|
658
|
-
function
|
|
722
|
+
function VersionIntegrityFromJSONTyped(json, ignoreDiscriminator) {
|
|
659
723
|
if (json === void 0 || json === null) {
|
|
660
724
|
return json;
|
|
661
725
|
}
|
|
@@ -664,7 +728,7 @@ function ListVersions200ResponseDataInnerIntegrityFromJSONTyped(json, ignoreDisc
|
|
|
664
728
|
"hash": json["hash"]
|
|
665
729
|
};
|
|
666
730
|
}
|
|
667
|
-
function
|
|
731
|
+
function VersionIntegrityToJSON(value) {
|
|
668
732
|
if (value === void 0) {
|
|
669
733
|
return void 0;
|
|
670
734
|
}
|
|
@@ -677,25 +741,25 @@ function ListVersions200ResponseDataInnerIntegrityToJSON(value) {
|
|
|
677
741
|
};
|
|
678
742
|
}
|
|
679
743
|
|
|
680
|
-
// src/generated/models/
|
|
681
|
-
var
|
|
744
|
+
// src/generated/models/VersionInfo.ts
|
|
745
|
+
var VersionInfoStatusEnum = {
|
|
682
746
|
DRAFT: "draft",
|
|
683
747
|
CANARY: "canary",
|
|
684
748
|
STABLE: "stable",
|
|
685
749
|
DEPRECATED: "deprecated",
|
|
686
750
|
BLOCKED: "blocked"
|
|
687
751
|
};
|
|
688
|
-
function
|
|
752
|
+
function instanceOfVersionInfo(value) {
|
|
689
753
|
let isInstance = true;
|
|
690
754
|
isInstance = isInstance && "version" in value;
|
|
691
755
|
isInstance = isInstance && "status" in value;
|
|
692
756
|
isInstance = isInstance && "createdAt" in value;
|
|
693
757
|
return isInstance;
|
|
694
758
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
759
|
+
function VersionInfoFromJSON(json) {
|
|
760
|
+
return VersionInfoFromJSONTyped(json, false);
|
|
697
761
|
}
|
|
698
|
-
function
|
|
762
|
+
function VersionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
699
763
|
if (json === void 0 || json === null) {
|
|
700
764
|
return json;
|
|
701
765
|
}
|
|
@@ -703,7 +767,7 @@ function ListVersions200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator
|
|
|
703
767
|
"version": json["version"],
|
|
704
768
|
"status": json["status"],
|
|
705
769
|
"changelog": !exists(json, "changelog") ? void 0 : json["changelog"],
|
|
706
|
-
"integrity": !exists(json, "integrity") ? void 0 :
|
|
770
|
+
"integrity": !exists(json, "integrity") ? void 0 : VersionIntegrityFromJSON(json["integrity"]),
|
|
707
771
|
"size": !exists(json, "size") ? void 0 : json["size"],
|
|
708
772
|
"createdAt": new Date(json["createdAt"]),
|
|
709
773
|
"publishedAt": !exists(json, "publishedAt") ? void 0 : new Date(json["publishedAt"]),
|
|
@@ -712,7 +776,7 @@ function ListVersions200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator
|
|
|
712
776
|
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"]
|
|
713
777
|
};
|
|
714
778
|
}
|
|
715
|
-
function
|
|
779
|
+
function VersionInfoToJSON(value) {
|
|
716
780
|
if (value === void 0) {
|
|
717
781
|
return void 0;
|
|
718
782
|
}
|
|
@@ -723,7 +787,7 @@ function ListVersions200ResponseDataInnerToJSON(value) {
|
|
|
723
787
|
"version": value.version,
|
|
724
788
|
"status": value.status,
|
|
725
789
|
"changelog": value.changelog,
|
|
726
|
-
"integrity":
|
|
790
|
+
"integrity": VersionIntegrityToJSON(value.integrity),
|
|
727
791
|
"size": value.size,
|
|
728
792
|
"createdAt": value.createdAt.toISOString(),
|
|
729
793
|
"publishedAt": value.publishedAt === void 0 ? void 0 : value.publishedAt.toISOString(),
|
|
@@ -733,27 +797,27 @@ function ListVersions200ResponseDataInnerToJSON(value) {
|
|
|
733
797
|
};
|
|
734
798
|
}
|
|
735
799
|
|
|
736
|
-
// src/generated/models/
|
|
737
|
-
function
|
|
800
|
+
// src/generated/models/CompleteUploadResponseData.ts
|
|
801
|
+
function instanceOfCompleteUploadResponseData(value) {
|
|
738
802
|
let isInstance = true;
|
|
739
803
|
isInstance = isInstance && "success" in value;
|
|
740
804
|
isInstance = isInstance && "version" in value;
|
|
741
805
|
return isInstance;
|
|
742
806
|
}
|
|
743
|
-
function
|
|
744
|
-
return
|
|
807
|
+
function CompleteUploadResponseDataFromJSON(json) {
|
|
808
|
+
return CompleteUploadResponseDataFromJSONTyped(json, false);
|
|
745
809
|
}
|
|
746
|
-
function
|
|
810
|
+
function CompleteUploadResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
747
811
|
if (json === void 0 || json === null) {
|
|
748
812
|
return json;
|
|
749
813
|
}
|
|
750
814
|
return {
|
|
751
815
|
"success": json["success"],
|
|
752
|
-
"version":
|
|
816
|
+
"version": VersionInfoFromJSON(json["version"]),
|
|
753
817
|
"warnings": !exists(json, "warnings") ? void 0 : json["warnings"]
|
|
754
818
|
};
|
|
755
819
|
}
|
|
756
|
-
function
|
|
820
|
+
function CompleteUploadResponseDataToJSON(value) {
|
|
757
821
|
if (value === void 0) {
|
|
758
822
|
return void 0;
|
|
759
823
|
}
|
|
@@ -762,29 +826,29 @@ function CompleteUpload200ResponseDataToJSON(value) {
|
|
|
762
826
|
}
|
|
763
827
|
return {
|
|
764
828
|
"success": value.success,
|
|
765
|
-
"version":
|
|
829
|
+
"version": VersionInfoToJSON(value.version),
|
|
766
830
|
"warnings": value.warnings
|
|
767
831
|
};
|
|
768
832
|
}
|
|
769
833
|
|
|
770
|
-
// src/generated/models/
|
|
771
|
-
function
|
|
834
|
+
// src/generated/models/CompleteUploadResponse.ts
|
|
835
|
+
function instanceOfCompleteUploadResponse(value) {
|
|
772
836
|
let isInstance = true;
|
|
773
837
|
isInstance = isInstance && "data" in value;
|
|
774
838
|
return isInstance;
|
|
775
839
|
}
|
|
776
|
-
function
|
|
777
|
-
return
|
|
840
|
+
function CompleteUploadResponseFromJSON(json) {
|
|
841
|
+
return CompleteUploadResponseFromJSONTyped(json, false);
|
|
778
842
|
}
|
|
779
|
-
function
|
|
843
|
+
function CompleteUploadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
780
844
|
if (json === void 0 || json === null) {
|
|
781
845
|
return json;
|
|
782
846
|
}
|
|
783
847
|
return {
|
|
784
|
-
"data":
|
|
848
|
+
"data": CompleteUploadResponseDataFromJSON(json["data"])
|
|
785
849
|
};
|
|
786
850
|
}
|
|
787
|
-
function
|
|
851
|
+
function CompleteUploadResponseToJSON(value) {
|
|
788
852
|
if (value === void 0) {
|
|
789
853
|
return void 0;
|
|
790
854
|
}
|
|
@@ -792,30 +856,46 @@ function CompleteUpload200ResponseToJSON(value) {
|
|
|
792
856
|
return null;
|
|
793
857
|
}
|
|
794
858
|
return {
|
|
795
|
-
"data":
|
|
859
|
+
"data": CompleteUploadResponseDataToJSON(value.data)
|
|
796
860
|
};
|
|
797
861
|
}
|
|
798
862
|
|
|
799
|
-
// src/generated/models/
|
|
800
|
-
function
|
|
863
|
+
// src/generated/models/ComponentInfo.ts
|
|
864
|
+
function instanceOfComponentInfo(value) {
|
|
801
865
|
let isInstance = true;
|
|
802
|
-
isInstance = isInstance && "
|
|
803
|
-
isInstance = isInstance && "
|
|
866
|
+
isInstance = isInstance && "id" in value;
|
|
867
|
+
isInstance = isInstance && "name" in value;
|
|
868
|
+
isInstance = isInstance && "category" in value;
|
|
869
|
+
isInstance = isInstance && "owner" in value;
|
|
870
|
+
isInstance = isInstance && "createdAt" in value;
|
|
804
871
|
return isInstance;
|
|
805
872
|
}
|
|
806
|
-
function
|
|
807
|
-
return
|
|
873
|
+
function ComponentInfoFromJSON(json) {
|
|
874
|
+
return ComponentInfoFromJSONTyped(json, false);
|
|
808
875
|
}
|
|
809
|
-
function
|
|
876
|
+
function ComponentInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
810
877
|
if (json === void 0 || json === null) {
|
|
811
878
|
return json;
|
|
812
879
|
}
|
|
813
880
|
return {
|
|
814
|
-
"
|
|
815
|
-
"
|
|
881
|
+
"id": json["id"],
|
|
882
|
+
"name": json["name"],
|
|
883
|
+
"displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
|
|
884
|
+
"description": !exists(json, "description") ? void 0 : json["description"],
|
|
885
|
+
"category": json["category"],
|
|
886
|
+
"tags": !exists(json, "tags") ? void 0 : json["tags"],
|
|
887
|
+
"icon": !exists(json, "icon") ? void 0 : json["icon"],
|
|
888
|
+
"homepage": !exists(json, "homepage") ? void 0 : json["homepage"],
|
|
889
|
+
"repository": !exists(json, "repository") ? void 0 : json["repository"],
|
|
890
|
+
"owner": json["owner"],
|
|
891
|
+
"latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
|
|
892
|
+
"publishedVersions": !exists(json, "publishedVersions") ? void 0 : json["publishedVersions"],
|
|
893
|
+
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"],
|
|
894
|
+
"createdAt": new Date(json["createdAt"]),
|
|
895
|
+
"updatedAt": !exists(json, "updatedAt") ? void 0 : new Date(json["updatedAt"])
|
|
816
896
|
};
|
|
817
897
|
}
|
|
818
|
-
function
|
|
898
|
+
function ComponentInfoToJSON(value) {
|
|
819
899
|
if (value === void 0) {
|
|
820
900
|
return void 0;
|
|
821
901
|
}
|
|
@@ -823,31 +903,48 @@ function CompleteUploadRequestFilesInnerToJSON(value) {
|
|
|
823
903
|
return null;
|
|
824
904
|
}
|
|
825
905
|
return {
|
|
826
|
-
"
|
|
827
|
-
"
|
|
906
|
+
"id": value.id,
|
|
907
|
+
"name": value.name,
|
|
908
|
+
"displayName": value.displayName,
|
|
909
|
+
"description": value.description,
|
|
910
|
+
"category": value.category,
|
|
911
|
+
"tags": value.tags,
|
|
912
|
+
"icon": value.icon,
|
|
913
|
+
"homepage": value.homepage,
|
|
914
|
+
"repository": value.repository,
|
|
915
|
+
"owner": value.owner,
|
|
916
|
+
"latestVersion": value.latestVersion,
|
|
917
|
+
"publishedVersions": value.publishedVersions,
|
|
918
|
+
"downloads": value.downloads,
|
|
919
|
+
"createdAt": value.createdAt.toISOString(),
|
|
920
|
+
"updatedAt": value.updatedAt === void 0 ? void 0 : value.updatedAt.toISOString()
|
|
828
921
|
};
|
|
829
922
|
}
|
|
830
923
|
|
|
831
|
-
// src/generated/models/
|
|
832
|
-
function
|
|
924
|
+
// src/generated/models/PaginationMeta.ts
|
|
925
|
+
function instanceOfPaginationMeta(value) {
|
|
833
926
|
let isInstance = true;
|
|
834
|
-
isInstance = isInstance && "
|
|
835
|
-
isInstance = isInstance && "
|
|
927
|
+
isInstance = isInstance && "page" in value;
|
|
928
|
+
isInstance = isInstance && "limit" in value;
|
|
929
|
+
isInstance = isInstance && "total" in value;
|
|
930
|
+
isInstance = isInstance && "totalPages" in value;
|
|
836
931
|
return isInstance;
|
|
837
932
|
}
|
|
838
|
-
function
|
|
839
|
-
return
|
|
933
|
+
function PaginationMetaFromJSON(json) {
|
|
934
|
+
return PaginationMetaFromJSONTyped(json, false);
|
|
840
935
|
}
|
|
841
|
-
function
|
|
936
|
+
function PaginationMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
842
937
|
if (json === void 0 || json === null) {
|
|
843
938
|
return json;
|
|
844
939
|
}
|
|
845
940
|
return {
|
|
846
|
-
"
|
|
847
|
-
"
|
|
941
|
+
"page": json["page"],
|
|
942
|
+
"limit": json["limit"],
|
|
943
|
+
"total": json["total"],
|
|
944
|
+
"totalPages": json["totalPages"]
|
|
848
945
|
};
|
|
849
946
|
}
|
|
850
|
-
function
|
|
947
|
+
function PaginationMetaToJSON(value) {
|
|
851
948
|
if (value === void 0) {
|
|
852
949
|
return void 0;
|
|
853
950
|
}
|
|
@@ -855,29 +952,33 @@ function CompleteUploadRequestToJSON(value) {
|
|
|
855
952
|
return null;
|
|
856
953
|
}
|
|
857
954
|
return {
|
|
858
|
-
"
|
|
859
|
-
"
|
|
955
|
+
"page": value.page,
|
|
956
|
+
"limit": value.limit,
|
|
957
|
+
"total": value.total,
|
|
958
|
+
"totalPages": value.totalPages
|
|
860
959
|
};
|
|
861
960
|
}
|
|
862
961
|
|
|
863
|
-
// src/generated/models/
|
|
864
|
-
function
|
|
962
|
+
// src/generated/models/ComponentListResponse.ts
|
|
963
|
+
function instanceOfComponentListResponse(value) {
|
|
865
964
|
let isInstance = true;
|
|
866
965
|
isInstance = isInstance && "data" in value;
|
|
966
|
+
isInstance = isInstance && "meta" in value;
|
|
867
967
|
return isInstance;
|
|
868
968
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
969
|
+
function ComponentListResponseFromJSON(json) {
|
|
970
|
+
return ComponentListResponseFromJSONTyped(json, false);
|
|
871
971
|
}
|
|
872
|
-
function
|
|
972
|
+
function ComponentListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
873
973
|
if (json === void 0 || json === null) {
|
|
874
974
|
return json;
|
|
875
975
|
}
|
|
876
976
|
return {
|
|
877
|
-
"data":
|
|
977
|
+
"data": json["data"].map(ComponentInfoFromJSON),
|
|
978
|
+
"meta": PaginationMetaFromJSON(json["meta"])
|
|
878
979
|
};
|
|
879
980
|
}
|
|
880
|
-
function
|
|
981
|
+
function ComponentListResponseToJSON(value) {
|
|
881
982
|
if (value === void 0) {
|
|
882
983
|
return void 0;
|
|
883
984
|
}
|
|
@@ -885,46 +986,320 @@ function CompleteUploadResponseToJSON(value) {
|
|
|
885
986
|
return null;
|
|
886
987
|
}
|
|
887
988
|
return {
|
|
888
|
-
"data":
|
|
989
|
+
"data": value.data.map(ComponentInfoToJSON),
|
|
990
|
+
"meta": PaginationMetaToJSON(value.meta)
|
|
889
991
|
};
|
|
890
992
|
}
|
|
891
993
|
|
|
892
|
-
// src/generated/models/
|
|
893
|
-
|
|
994
|
+
// src/generated/models/ComponentRegisterRequestCapabilitiesInner.ts
|
|
995
|
+
var ComponentRegisterRequestCapabilitiesInnerNameEnum = {
|
|
996
|
+
NAVIGATE: "navigate",
|
|
997
|
+
DIALOG: "dialog",
|
|
998
|
+
TOAST: "toast",
|
|
999
|
+
TRACK: "track",
|
|
1000
|
+
REQUEST_DATA: "requestData",
|
|
1001
|
+
EXECUTE_ACTION: "executeAction",
|
|
1002
|
+
STORAGE: "storage",
|
|
1003
|
+
CLIPBOARD: "clipboard",
|
|
1004
|
+
SHARE: "share",
|
|
1005
|
+
MEDIA: "media",
|
|
1006
|
+
GEOLOCATION: "geolocation",
|
|
1007
|
+
CAMERA: "camera",
|
|
1008
|
+
NOTIFICATION: "notification",
|
|
1009
|
+
VIBRATION: "vibration",
|
|
1010
|
+
FULLSCREEN: "fullscreen"
|
|
1011
|
+
};
|
|
1012
|
+
function instanceOfComponentRegisterRequestCapabilitiesInner(value) {
|
|
894
1013
|
let isInstance = true;
|
|
895
|
-
isInstance = isInstance && "id" in value;
|
|
896
1014
|
isInstance = isInstance && "name" in value;
|
|
897
|
-
isInstance = isInstance && "
|
|
898
|
-
isInstance = isInstance && "owner" in value;
|
|
899
|
-
isInstance = isInstance && "createdAt" in value;
|
|
1015
|
+
isInstance = isInstance && "required" in value;
|
|
900
1016
|
return isInstance;
|
|
901
1017
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
1018
|
+
function ComponentRegisterRequestCapabilitiesInnerFromJSON(json) {
|
|
1019
|
+
return ComponentRegisterRequestCapabilitiesInnerFromJSONTyped(json, false);
|
|
904
1020
|
}
|
|
905
|
-
function
|
|
1021
|
+
function ComponentRegisterRequestCapabilitiesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
906
1022
|
if (json === void 0 || json === null) {
|
|
907
1023
|
return json;
|
|
908
1024
|
}
|
|
909
1025
|
return {
|
|
910
|
-
"id": json["id"],
|
|
911
1026
|
"name": json["name"],
|
|
912
|
-
"
|
|
1027
|
+
"required": json["required"],
|
|
913
1028
|
"description": !exists(json, "description") ? void 0 : json["description"],
|
|
914
|
-
"
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
1029
|
+
"config": !exists(json, "config") ? void 0 : json["config"]
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
function ComponentRegisterRequestCapabilitiesInnerToJSON(value) {
|
|
1033
|
+
if (value === void 0) {
|
|
1034
|
+
return void 0;
|
|
1035
|
+
}
|
|
1036
|
+
if (value === null) {
|
|
1037
|
+
return null;
|
|
1038
|
+
}
|
|
1039
|
+
return {
|
|
1040
|
+
"name": value.name,
|
|
1041
|
+
"required": value.required,
|
|
1042
|
+
"description": value.description,
|
|
1043
|
+
"config": value.config
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
// src/generated/models/ComponentRegisterRequestCompatBrowsers.ts
|
|
1048
|
+
function instanceOfComponentRegisterRequestCompatBrowsers(value) {
|
|
1049
|
+
let isInstance = true;
|
|
1050
|
+
return isInstance;
|
|
1051
|
+
}
|
|
1052
|
+
function ComponentRegisterRequestCompatBrowsersFromJSON(json) {
|
|
1053
|
+
return ComponentRegisterRequestCompatBrowsersFromJSONTyped(json, false);
|
|
1054
|
+
}
|
|
1055
|
+
function ComponentRegisterRequestCompatBrowsersFromJSONTyped(json, ignoreDiscriminator) {
|
|
1056
|
+
if (json === void 0 || json === null) {
|
|
1057
|
+
return json;
|
|
1058
|
+
}
|
|
1059
|
+
return {
|
|
1060
|
+
"chrome": !exists(json, "chrome") ? void 0 : json["chrome"],
|
|
1061
|
+
"firefox": !exists(json, "firefox") ? void 0 : json["firefox"],
|
|
1062
|
+
"safari": !exists(json, "safari") ? void 0 : json["safari"],
|
|
1063
|
+
"edge": !exists(json, "edge") ? void 0 : json["edge"],
|
|
1064
|
+
"ios": !exists(json, "ios") ? void 0 : json["ios"],
|
|
1065
|
+
"android": !exists(json, "android") ? void 0 : json["android"]
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
function ComponentRegisterRequestCompatBrowsersToJSON(value) {
|
|
1069
|
+
if (value === void 0) {
|
|
1070
|
+
return void 0;
|
|
1071
|
+
}
|
|
1072
|
+
if (value === null) {
|
|
1073
|
+
return null;
|
|
1074
|
+
}
|
|
1075
|
+
return {
|
|
1076
|
+
"chrome": value.chrome,
|
|
1077
|
+
"firefox": value.firefox,
|
|
1078
|
+
"safari": value.safari,
|
|
1079
|
+
"edge": value.edge,
|
|
1080
|
+
"ios": value.ios,
|
|
1081
|
+
"android": value.android
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// src/generated/models/ComponentRegisterRequestCompatDependenciesInner.ts
|
|
1086
|
+
function instanceOfComponentRegisterRequestCompatDependenciesInner(value) {
|
|
1087
|
+
let isInstance = true;
|
|
1088
|
+
return isInstance;
|
|
1089
|
+
}
|
|
1090
|
+
function ComponentRegisterRequestCompatDependenciesInnerFromJSON(json) {
|
|
1091
|
+
return ComponentRegisterRequestCompatDependenciesInnerFromJSONTyped(json, false);
|
|
1092
|
+
}
|
|
1093
|
+
function ComponentRegisterRequestCompatDependenciesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1094
|
+
if (json === void 0 || json === null) {
|
|
1095
|
+
return json;
|
|
1096
|
+
}
|
|
1097
|
+
return {
|
|
1098
|
+
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
1099
|
+
"versionRange": !exists(json, "versionRange") ? void 0 : json["versionRange"],
|
|
1100
|
+
"optional": !exists(json, "optional") ? void 0 : json["optional"]
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
function ComponentRegisterRequestCompatDependenciesInnerToJSON(value) {
|
|
1104
|
+
if (value === void 0) {
|
|
1105
|
+
return void 0;
|
|
1106
|
+
}
|
|
1107
|
+
if (value === null) {
|
|
1108
|
+
return null;
|
|
1109
|
+
}
|
|
1110
|
+
return {
|
|
1111
|
+
"name": value.name,
|
|
1112
|
+
"versionRange": value.versionRange,
|
|
1113
|
+
"optional": value.optional
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// src/generated/models/ComponentRegisterRequestCompat.ts
|
|
1118
|
+
function instanceOfComponentRegisterRequestCompat(value) {
|
|
1119
|
+
let isInstance = true;
|
|
1120
|
+
isInstance = isInstance && "minRuntimeVersion" in value;
|
|
1121
|
+
isInstance = isInstance && "hasBreakingChange" in value;
|
|
1122
|
+
return isInstance;
|
|
1123
|
+
}
|
|
1124
|
+
function ComponentRegisterRequestCompatFromJSON(json) {
|
|
1125
|
+
return ComponentRegisterRequestCompatFromJSONTyped(json, false);
|
|
1126
|
+
}
|
|
1127
|
+
function ComponentRegisterRequestCompatFromJSONTyped(json, ignoreDiscriminator) {
|
|
1128
|
+
if (json === void 0 || json === null) {
|
|
1129
|
+
return json;
|
|
1130
|
+
}
|
|
1131
|
+
return {
|
|
1132
|
+
"minRuntimeVersion": json["minRuntimeVersion"],
|
|
1133
|
+
"recommendedRuntimeVersion": !exists(json, "recommendedRuntimeVersion") ? void 0 : json["recommendedRuntimeVersion"],
|
|
1134
|
+
"hasBreakingChange": json["hasBreakingChange"],
|
|
1135
|
+
"breakingChangeDescription": !exists(json, "breakingChangeDescription") ? void 0 : json["breakingChangeDescription"],
|
|
1136
|
+
"deprecationWarning": !exists(json, "deprecationWarning") ? void 0 : json["deprecationWarning"],
|
|
1137
|
+
"migrationGuideUrl": !exists(json, "migrationGuideUrl") ? void 0 : json["migrationGuideUrl"],
|
|
1138
|
+
"dependencies": !exists(json, "dependencies") ? void 0 : json["dependencies"].map(ComponentRegisterRequestCompatDependenciesInnerFromJSON),
|
|
1139
|
+
"incompatibleWith": !exists(json, "incompatibleWith") ? void 0 : json["incompatibleWith"],
|
|
1140
|
+
"browsers": !exists(json, "browsers") ? void 0 : ComponentRegisterRequestCompatBrowsersFromJSON(json["browsers"])
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
function ComponentRegisterRequestCompatToJSON(value) {
|
|
1144
|
+
if (value === void 0) {
|
|
1145
|
+
return void 0;
|
|
1146
|
+
}
|
|
1147
|
+
if (value === null) {
|
|
1148
|
+
return null;
|
|
1149
|
+
}
|
|
1150
|
+
return {
|
|
1151
|
+
"minRuntimeVersion": value.minRuntimeVersion,
|
|
1152
|
+
"recommendedRuntimeVersion": value.recommendedRuntimeVersion,
|
|
1153
|
+
"hasBreakingChange": value.hasBreakingChange,
|
|
1154
|
+
"breakingChangeDescription": value.breakingChangeDescription,
|
|
1155
|
+
"deprecationWarning": value.deprecationWarning,
|
|
1156
|
+
"migrationGuideUrl": value.migrationGuideUrl,
|
|
1157
|
+
"dependencies": value.dependencies === void 0 ? void 0 : value.dependencies.map(ComponentRegisterRequestCompatDependenciesInnerToJSON),
|
|
1158
|
+
"incompatibleWith": value.incompatibleWith,
|
|
1159
|
+
"browsers": ComponentRegisterRequestCompatBrowsersToJSON(value.browsers)
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
// src/generated/models/ComponentRegisterRequestEventsInner.ts
|
|
1164
|
+
var ComponentRegisterRequestEventsInnerCategoryEnum = {
|
|
1165
|
+
INTERACTION: "interaction",
|
|
1166
|
+
LIFECYCLE: "lifecycle",
|
|
1167
|
+
DATA: "data",
|
|
1168
|
+
CUSTOM: "custom"
|
|
1169
|
+
};
|
|
1170
|
+
function instanceOfComponentRegisterRequestEventsInner(value) {
|
|
1171
|
+
let isInstance = true;
|
|
1172
|
+
isInstance = isInstance && "name" in value;
|
|
1173
|
+
isInstance = isInstance && "displayName" in value;
|
|
1174
|
+
return isInstance;
|
|
1175
|
+
}
|
|
1176
|
+
function ComponentRegisterRequestEventsInnerFromJSON(json) {
|
|
1177
|
+
return ComponentRegisterRequestEventsInnerFromJSONTyped(json, false);
|
|
1178
|
+
}
|
|
1179
|
+
function ComponentRegisterRequestEventsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1180
|
+
if (json === void 0 || json === null) {
|
|
1181
|
+
return json;
|
|
1182
|
+
}
|
|
1183
|
+
return {
|
|
1184
|
+
"name": json["name"],
|
|
1185
|
+
"displayName": json["displayName"],
|
|
1186
|
+
"description": !exists(json, "description") ? void 0 : json["description"],
|
|
1187
|
+
"payloadSchema": !exists(json, "payloadSchema") ? void 0 : json["payloadSchema"],
|
|
1188
|
+
"cancelable": !exists(json, "cancelable") ? void 0 : json["cancelable"],
|
|
1189
|
+
"bubbles": !exists(json, "bubbles") ? void 0 : json["bubbles"],
|
|
1190
|
+
"category": !exists(json, "category") ? void 0 : json["category"]
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
function ComponentRegisterRequestEventsInnerToJSON(value) {
|
|
1194
|
+
if (value === void 0) {
|
|
1195
|
+
return void 0;
|
|
1196
|
+
}
|
|
1197
|
+
if (value === null) {
|
|
1198
|
+
return null;
|
|
1199
|
+
}
|
|
1200
|
+
return {
|
|
1201
|
+
"name": value.name,
|
|
1202
|
+
"displayName": value.displayName,
|
|
1203
|
+
"description": value.description,
|
|
1204
|
+
"payloadSchema": value.payloadSchema,
|
|
1205
|
+
"cancelable": value.cancelable,
|
|
1206
|
+
"bubbles": value.bubbles,
|
|
1207
|
+
"category": value.category
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
// src/generated/models/ComponentRegisterRequestIntegrityChunksValue.ts
|
|
1212
|
+
function instanceOfComponentRegisterRequestIntegrityChunksValue(value) {
|
|
1213
|
+
let isInstance = true;
|
|
1214
|
+
isInstance = isInstance && "path" in value;
|
|
1215
|
+
isInstance = isInstance && "sha384" in value;
|
|
1216
|
+
isInstance = isInstance && "size" in value;
|
|
1217
|
+
return isInstance;
|
|
1218
|
+
}
|
|
1219
|
+
function ComponentRegisterRequestIntegrityChunksValueFromJSON(json) {
|
|
1220
|
+
return ComponentRegisterRequestIntegrityChunksValueFromJSONTyped(json, false);
|
|
1221
|
+
}
|
|
1222
|
+
function ComponentRegisterRequestIntegrityChunksValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
1223
|
+
if (json === void 0 || json === null) {
|
|
1224
|
+
return json;
|
|
1225
|
+
}
|
|
1226
|
+
return {
|
|
1227
|
+
"path": json["path"],
|
|
1228
|
+
"sha384": json["sha384"],
|
|
1229
|
+
"size": json["size"]
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
function ComponentRegisterRequestIntegrityChunksValueToJSON(value) {
|
|
1233
|
+
if (value === void 0) {
|
|
1234
|
+
return void 0;
|
|
1235
|
+
}
|
|
1236
|
+
if (value === null) {
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
return {
|
|
1240
|
+
"path": value.path,
|
|
1241
|
+
"sha384": value.sha384,
|
|
1242
|
+
"size": value.size
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
// src/generated/models/ComponentRegisterRequestIntegrityMain.ts
|
|
1247
|
+
function instanceOfComponentRegisterRequestIntegrityMain(value) {
|
|
1248
|
+
let isInstance = true;
|
|
1249
|
+
isInstance = isInstance && "path" in value;
|
|
1250
|
+
isInstance = isInstance && "sha384" in value;
|
|
1251
|
+
isInstance = isInstance && "size" in value;
|
|
1252
|
+
return isInstance;
|
|
1253
|
+
}
|
|
1254
|
+
function ComponentRegisterRequestIntegrityMainFromJSON(json) {
|
|
1255
|
+
return ComponentRegisterRequestIntegrityMainFromJSONTyped(json, false);
|
|
1256
|
+
}
|
|
1257
|
+
function ComponentRegisterRequestIntegrityMainFromJSONTyped(json, ignoreDiscriminator) {
|
|
1258
|
+
if (json === void 0 || json === null) {
|
|
1259
|
+
return json;
|
|
1260
|
+
}
|
|
1261
|
+
return {
|
|
1262
|
+
"path": json["path"],
|
|
1263
|
+
"sha384": json["sha384"],
|
|
1264
|
+
"size": json["size"]
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
function ComponentRegisterRequestIntegrityMainToJSON(value) {
|
|
1268
|
+
if (value === void 0) {
|
|
1269
|
+
return void 0;
|
|
1270
|
+
}
|
|
1271
|
+
if (value === null) {
|
|
1272
|
+
return null;
|
|
1273
|
+
}
|
|
1274
|
+
return {
|
|
1275
|
+
"path": value.path,
|
|
1276
|
+
"sha384": value.sha384,
|
|
1277
|
+
"size": value.size
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
// src/generated/models/ComponentRegisterRequestIntegrityStyle.ts
|
|
1282
|
+
function instanceOfComponentRegisterRequestIntegrityStyle(value) {
|
|
1283
|
+
let isInstance = true;
|
|
1284
|
+
isInstance = isInstance && "path" in value;
|
|
1285
|
+
isInstance = isInstance && "sha384" in value;
|
|
1286
|
+
isInstance = isInstance && "size" in value;
|
|
1287
|
+
return isInstance;
|
|
1288
|
+
}
|
|
1289
|
+
function ComponentRegisterRequestIntegrityStyleFromJSON(json) {
|
|
1290
|
+
return ComponentRegisterRequestIntegrityStyleFromJSONTyped(json, false);
|
|
1291
|
+
}
|
|
1292
|
+
function ComponentRegisterRequestIntegrityStyleFromJSONTyped(json, ignoreDiscriminator) {
|
|
1293
|
+
if (json === void 0 || json === null) {
|
|
1294
|
+
return json;
|
|
1295
|
+
}
|
|
1296
|
+
return {
|
|
1297
|
+
"path": json["path"],
|
|
1298
|
+
"sha384": json["sha384"],
|
|
1299
|
+
"size": json["size"]
|
|
925
1300
|
};
|
|
926
1301
|
}
|
|
927
|
-
function
|
|
1302
|
+
function ComponentRegisterRequestIntegrityStyleToJSON(value) {
|
|
928
1303
|
if (value === void 0) {
|
|
929
1304
|
return void 0;
|
|
930
1305
|
}
|
|
@@ -932,60 +1307,36 @@ function ComponentInfoToJSON(value) {
|
|
|
932
1307
|
return null;
|
|
933
1308
|
}
|
|
934
1309
|
return {
|
|
935
|
-
"
|
|
936
|
-
"
|
|
937
|
-
"
|
|
938
|
-
"description": value.description,
|
|
939
|
-
"category": value.category,
|
|
940
|
-
"tags": value.tags,
|
|
941
|
-
"icon": value.icon,
|
|
942
|
-
"homepage": value.homepage,
|
|
943
|
-
"repository": value.repository,
|
|
944
|
-
"owner": value.owner,
|
|
945
|
-
"latestVersion": value.latestVersion,
|
|
946
|
-
"publishedVersions": value.publishedVersions,
|
|
947
|
-
"downloads": value.downloads,
|
|
948
|
-
"createdAt": value.createdAt.toISOString(),
|
|
949
|
-
"updatedAt": value.updatedAt === void 0 ? void 0 : value.updatedAt.toISOString()
|
|
1310
|
+
"path": value.path,
|
|
1311
|
+
"sha384": value.sha384,
|
|
1312
|
+
"size": value.size
|
|
950
1313
|
};
|
|
951
1314
|
}
|
|
952
1315
|
|
|
953
|
-
// src/generated/models/
|
|
954
|
-
function
|
|
1316
|
+
// src/generated/models/ComponentRegisterRequestIntegrity.ts
|
|
1317
|
+
function instanceOfComponentRegisterRequestIntegrity(value) {
|
|
955
1318
|
let isInstance = true;
|
|
956
|
-
isInstance = isInstance && "
|
|
957
|
-
isInstance = isInstance && "
|
|
958
|
-
isInstance = isInstance && "
|
|
959
|
-
isInstance = isInstance && "owner" in value;
|
|
960
|
-
isInstance = isInstance && "createdAt" in value;
|
|
1319
|
+
isInstance = isInstance && "main" in value;
|
|
1320
|
+
isInstance = isInstance && "generatedAt" in value;
|
|
1321
|
+
isInstance = isInstance && "generatorVersion" in value;
|
|
961
1322
|
return isInstance;
|
|
962
1323
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
1324
|
+
function ComponentRegisterRequestIntegrityFromJSON(json) {
|
|
1325
|
+
return ComponentRegisterRequestIntegrityFromJSONTyped(json, false);
|
|
965
1326
|
}
|
|
966
|
-
function
|
|
1327
|
+
function ComponentRegisterRequestIntegrityFromJSONTyped(json, ignoreDiscriminator) {
|
|
967
1328
|
if (json === void 0 || json === null) {
|
|
968
1329
|
return json;
|
|
969
1330
|
}
|
|
970
1331
|
return {
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"tags": !exists(json, "tags") ? void 0 : json["tags"],
|
|
977
|
-
"icon": !exists(json, "icon") ? void 0 : json["icon"],
|
|
978
|
-
"homepage": !exists(json, "homepage") ? void 0 : json["homepage"],
|
|
979
|
-
"repository": !exists(json, "repository") ? void 0 : json["repository"],
|
|
980
|
-
"owner": json["owner"],
|
|
981
|
-
"latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
|
|
982
|
-
"publishedVersions": !exists(json, "publishedVersions") ? void 0 : json["publishedVersions"],
|
|
983
|
-
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"],
|
|
984
|
-
"createdAt": new Date(json["createdAt"]),
|
|
985
|
-
"updatedAt": !exists(json, "updatedAt") ? void 0 : new Date(json["updatedAt"])
|
|
1332
|
+
"main": ComponentRegisterRequestIntegrityMainFromJSON(json["main"]),
|
|
1333
|
+
"style": !exists(json, "style") ? void 0 : ComponentRegisterRequestIntegrityStyleFromJSON(json["style"]),
|
|
1334
|
+
"chunks": !exists(json, "chunks") ? void 0 : mapValues(json["chunks"], ComponentRegisterRequestIntegrityChunksValueFromJSON),
|
|
1335
|
+
"generatedAt": new Date(json["generatedAt"]),
|
|
1336
|
+
"generatorVersion": json["generatorVersion"]
|
|
986
1337
|
};
|
|
987
1338
|
}
|
|
988
|
-
function
|
|
1339
|
+
function ComponentRegisterRequestIntegrityToJSON(value) {
|
|
989
1340
|
if (value === void 0) {
|
|
990
1341
|
return void 0;
|
|
991
1342
|
}
|
|
@@ -993,48 +1344,41 @@ function ListComponents200ResponseDataInnerToJSON(value) {
|
|
|
993
1344
|
return null;
|
|
994
1345
|
}
|
|
995
1346
|
return {
|
|
996
|
-
"
|
|
997
|
-
"
|
|
998
|
-
"
|
|
999
|
-
"
|
|
1000
|
-
"
|
|
1001
|
-
"tags": value.tags,
|
|
1002
|
-
"icon": value.icon,
|
|
1003
|
-
"homepage": value.homepage,
|
|
1004
|
-
"repository": value.repository,
|
|
1005
|
-
"owner": value.owner,
|
|
1006
|
-
"latestVersion": value.latestVersion,
|
|
1007
|
-
"publishedVersions": value.publishedVersions,
|
|
1008
|
-
"downloads": value.downloads,
|
|
1009
|
-
"createdAt": value.createdAt.toISOString(),
|
|
1010
|
-
"updatedAt": value.updatedAt === void 0 ? void 0 : value.updatedAt.toISOString()
|
|
1347
|
+
"main": ComponentRegisterRequestIntegrityMainToJSON(value.main),
|
|
1348
|
+
"style": ComponentRegisterRequestIntegrityStyleToJSON(value.style),
|
|
1349
|
+
"chunks": value.chunks === void 0 ? void 0 : mapValues(value.chunks, ComponentRegisterRequestIntegrityChunksValueToJSON),
|
|
1350
|
+
"generatedAt": value.generatedAt.toISOString(),
|
|
1351
|
+
"generatorVersion": value.generatorVersion
|
|
1011
1352
|
};
|
|
1012
1353
|
}
|
|
1013
1354
|
|
|
1014
|
-
// src/generated/models/
|
|
1015
|
-
|
|
1355
|
+
// src/generated/models/ComponentRegisterRequestPropsSchema.ts
|
|
1356
|
+
var ComponentRegisterRequestPropsSchemaTypeEnum = {
|
|
1357
|
+
OBJECT: "object"
|
|
1358
|
+
};
|
|
1359
|
+
function instanceOfComponentRegisterRequestPropsSchema(value) {
|
|
1016
1360
|
let isInstance = true;
|
|
1017
|
-
isInstance = isInstance && "
|
|
1018
|
-
isInstance = isInstance && "
|
|
1019
|
-
isInstance = isInstance && "total" in value;
|
|
1020
|
-
isInstance = isInstance && "totalPages" in value;
|
|
1361
|
+
isInstance = isInstance && "type" in value;
|
|
1362
|
+
isInstance = isInstance && "properties" in value;
|
|
1021
1363
|
return isInstance;
|
|
1022
1364
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1365
|
+
function ComponentRegisterRequestPropsSchemaFromJSON(json) {
|
|
1366
|
+
return ComponentRegisterRequestPropsSchemaFromJSONTyped(json, false);
|
|
1025
1367
|
}
|
|
1026
|
-
function
|
|
1368
|
+
function ComponentRegisterRequestPropsSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
1027
1369
|
if (json === void 0 || json === null) {
|
|
1028
1370
|
return json;
|
|
1029
1371
|
}
|
|
1030
1372
|
return {
|
|
1031
|
-
"
|
|
1032
|
-
"
|
|
1033
|
-
"
|
|
1034
|
-
"
|
|
1373
|
+
"type": json["type"],
|
|
1374
|
+
"properties": json["properties"],
|
|
1375
|
+
"required": !exists(json, "required") ? void 0 : json["required"],
|
|
1376
|
+
"groups": !exists(json, "groups") ? void 0 : json["groups"],
|
|
1377
|
+
"dependencies": !exists(json, "dependencies") ? void 0 : json["dependencies"],
|
|
1378
|
+
"additionalProperties": !exists(json, "additionalProperties") ? void 0 : json["additionalProperties"]
|
|
1035
1379
|
};
|
|
1036
1380
|
}
|
|
1037
|
-
function
|
|
1381
|
+
function ComponentRegisterRequestPropsSchemaToJSON(value) {
|
|
1038
1382
|
if (value === void 0) {
|
|
1039
1383
|
return void 0;
|
|
1040
1384
|
}
|
|
@@ -1042,33 +1386,44 @@ function ListComponents200ResponseMetaToJSON(value) {
|
|
|
1042
1386
|
return null;
|
|
1043
1387
|
}
|
|
1044
1388
|
return {
|
|
1045
|
-
"
|
|
1046
|
-
"
|
|
1047
|
-
"
|
|
1048
|
-
"
|
|
1389
|
+
"type": value.type,
|
|
1390
|
+
"properties": value.properties,
|
|
1391
|
+
"required": value.required,
|
|
1392
|
+
"groups": value.groups,
|
|
1393
|
+
"dependencies": value.dependencies,
|
|
1394
|
+
"additionalProperties": value.additionalProperties
|
|
1049
1395
|
};
|
|
1050
1396
|
}
|
|
1051
1397
|
|
|
1052
|
-
// src/generated/models/
|
|
1053
|
-
|
|
1398
|
+
// src/generated/models/ComponentRegisterRequestStyle.ts
|
|
1399
|
+
var ComponentRegisterRequestStyleIsolationEnum = {
|
|
1400
|
+
SHADOW: "shadow",
|
|
1401
|
+
SCOPED: "scoped",
|
|
1402
|
+
MODULE: "module",
|
|
1403
|
+
NAMESPACE: "namespace",
|
|
1404
|
+
NONE: "none"
|
|
1405
|
+
};
|
|
1406
|
+
function instanceOfComponentRegisterRequestStyle(value) {
|
|
1054
1407
|
let isInstance = true;
|
|
1055
|
-
isInstance = isInstance && "
|
|
1056
|
-
isInstance = isInstance && "meta" in value;
|
|
1408
|
+
isInstance = isInstance && "isolation" in value;
|
|
1057
1409
|
return isInstance;
|
|
1058
1410
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1411
|
+
function ComponentRegisterRequestStyleFromJSON(json) {
|
|
1412
|
+
return ComponentRegisterRequestStyleFromJSONTyped(json, false);
|
|
1061
1413
|
}
|
|
1062
|
-
function
|
|
1414
|
+
function ComponentRegisterRequestStyleFromJSONTyped(json, ignoreDiscriminator) {
|
|
1063
1415
|
if (json === void 0 || json === null) {
|
|
1064
1416
|
return json;
|
|
1065
1417
|
}
|
|
1066
1418
|
return {
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1419
|
+
"isolation": json["isolation"],
|
|
1420
|
+
"namespace": !exists(json, "namespace") ? void 0 : json["namespace"],
|
|
1421
|
+
"cssVarPrefix": !exists(json, "cssVarPrefix") ? void 0 : json["cssVarPrefix"],
|
|
1422
|
+
"allowGlobalStyles": !exists(json, "allowGlobalStyles") ? void 0 : json["allowGlobalStyles"],
|
|
1423
|
+
"externalStyles": !exists(json, "externalStyles") ? void 0 : json["externalStyles"]
|
|
1069
1424
|
};
|
|
1070
1425
|
}
|
|
1071
|
-
function
|
|
1426
|
+
function ComponentRegisterRequestStyleToJSON(value) {
|
|
1072
1427
|
if (value === void 0) {
|
|
1073
1428
|
return void 0;
|
|
1074
1429
|
}
|
|
@@ -1076,29 +1431,52 @@ function ComponentListResponseToJSON(value) {
|
|
|
1076
1431
|
return null;
|
|
1077
1432
|
}
|
|
1078
1433
|
return {
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1434
|
+
"isolation": value.isolation,
|
|
1435
|
+
"namespace": value.namespace,
|
|
1436
|
+
"cssVarPrefix": value.cssVarPrefix,
|
|
1437
|
+
"allowGlobalStyles": value.allowGlobalStyles,
|
|
1438
|
+
"externalStyles": value.externalStyles
|
|
1081
1439
|
};
|
|
1082
1440
|
}
|
|
1083
1441
|
|
|
1084
|
-
// src/generated/models/
|
|
1085
|
-
function
|
|
1442
|
+
// src/generated/models/ComponentRegisterRequest.ts
|
|
1443
|
+
function instanceOfComponentRegisterRequest(value) {
|
|
1086
1444
|
let isInstance = true;
|
|
1087
|
-
isInstance = isInstance && "
|
|
1445
|
+
isInstance = isInstance && "name" in value;
|
|
1446
|
+
isInstance = isInstance && "version" in value;
|
|
1447
|
+
isInstance = isInstance && "entry" in value;
|
|
1448
|
+
isInstance = isInstance && "integrity" in value;
|
|
1449
|
+
isInstance = isInstance && "propsSchema" in value;
|
|
1450
|
+
isInstance = isInstance && "events" in value;
|
|
1451
|
+
isInstance = isInstance && "capabilities" in value;
|
|
1452
|
+
isInstance = isInstance && "compat" in value;
|
|
1453
|
+
isInstance = isInstance && "style" in value;
|
|
1088
1454
|
return isInstance;
|
|
1089
1455
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return
|
|
1456
|
+
function ComponentRegisterRequestFromJSON(json) {
|
|
1457
|
+
return ComponentRegisterRequestFromJSONTyped(json, false);
|
|
1092
1458
|
}
|
|
1093
|
-
function
|
|
1459
|
+
function ComponentRegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1094
1460
|
if (json === void 0 || json === null) {
|
|
1095
1461
|
return json;
|
|
1096
1462
|
}
|
|
1097
1463
|
return {
|
|
1098
|
-
"
|
|
1464
|
+
"name": json["name"],
|
|
1465
|
+
"version": json["version"],
|
|
1466
|
+
"entry": json["entry"],
|
|
1467
|
+
"styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
|
|
1468
|
+
"chunksBaseUrl": !exists(json, "chunksBaseUrl") ? void 0 : json["chunksBaseUrl"],
|
|
1469
|
+
"integrity": ComponentRegisterRequestIntegrityFromJSON(json["integrity"]),
|
|
1470
|
+
"propsSchema": ComponentRegisterRequestPropsSchemaFromJSON(json["propsSchema"]),
|
|
1471
|
+
"events": json["events"].map(ComponentRegisterRequestEventsInnerFromJSON),
|
|
1472
|
+
"capabilities": json["capabilities"].map(ComponentRegisterRequestCapabilitiesInnerFromJSON),
|
|
1473
|
+
"compat": ComponentRegisterRequestCompatFromJSON(json["compat"]),
|
|
1474
|
+
"style": ComponentRegisterRequestStyleFromJSON(json["style"]),
|
|
1475
|
+
"changelog": !exists(json, "changelog") ? void 0 : json["changelog"],
|
|
1476
|
+
"releaseNotes": !exists(json, "releaseNotes") ? void 0 : json["releaseNotes"]
|
|
1099
1477
|
};
|
|
1100
1478
|
}
|
|
1101
|
-
function
|
|
1479
|
+
function ComponentRegisterRequestToJSON(value) {
|
|
1102
1480
|
if (value === void 0) {
|
|
1103
1481
|
return void 0;
|
|
1104
1482
|
}
|
|
@@ -1106,28 +1484,40 @@ function ComponentResponseToJSON(value) {
|
|
|
1106
1484
|
return null;
|
|
1107
1485
|
}
|
|
1108
1486
|
return {
|
|
1109
|
-
"
|
|
1487
|
+
"name": value.name,
|
|
1488
|
+
"version": value.version,
|
|
1489
|
+
"entry": value.entry,
|
|
1490
|
+
"styleUrl": value.styleUrl,
|
|
1491
|
+
"chunksBaseUrl": value.chunksBaseUrl,
|
|
1492
|
+
"integrity": ComponentRegisterRequestIntegrityToJSON(value.integrity),
|
|
1493
|
+
"propsSchema": ComponentRegisterRequestPropsSchemaToJSON(value.propsSchema),
|
|
1494
|
+
"events": value.events.map(ComponentRegisterRequestEventsInnerToJSON),
|
|
1495
|
+
"capabilities": value.capabilities.map(ComponentRegisterRequestCapabilitiesInnerToJSON),
|
|
1496
|
+
"compat": ComponentRegisterRequestCompatToJSON(value.compat),
|
|
1497
|
+
"style": ComponentRegisterRequestStyleToJSON(value.style),
|
|
1498
|
+
"changelog": value.changelog,
|
|
1499
|
+
"releaseNotes": value.releaseNotes
|
|
1110
1500
|
};
|
|
1111
1501
|
}
|
|
1112
1502
|
|
|
1113
|
-
// src/generated/models/
|
|
1114
|
-
function
|
|
1503
|
+
// src/generated/models/ComponentResponse.ts
|
|
1504
|
+
function instanceOfComponentResponse(value) {
|
|
1115
1505
|
let isInstance = true;
|
|
1116
1506
|
isInstance = isInstance && "data" in value;
|
|
1117
1507
|
return isInstance;
|
|
1118
1508
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return
|
|
1509
|
+
function ComponentResponseFromJSON(json) {
|
|
1510
|
+
return ComponentResponseFromJSONTyped(json, false);
|
|
1121
1511
|
}
|
|
1122
|
-
function
|
|
1512
|
+
function ComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1123
1513
|
if (json === void 0 || json === null) {
|
|
1124
1514
|
return json;
|
|
1125
1515
|
}
|
|
1126
1516
|
return {
|
|
1127
|
-
"data":
|
|
1517
|
+
"data": ComponentInfoFromJSON(json["data"])
|
|
1128
1518
|
};
|
|
1129
1519
|
}
|
|
1130
|
-
function
|
|
1520
|
+
function ComponentResponseToJSON(value) {
|
|
1131
1521
|
if (value === void 0) {
|
|
1132
1522
|
return void 0;
|
|
1133
1523
|
}
|
|
@@ -1135,7 +1525,7 @@ function CreateComponent200ResponseToJSON(value) {
|
|
|
1135
1525
|
return null;
|
|
1136
1526
|
}
|
|
1137
1527
|
return {
|
|
1138
|
-
"data":
|
|
1528
|
+
"data": ComponentInfoToJSON(value.data)
|
|
1139
1529
|
};
|
|
1140
1530
|
}
|
|
1141
1531
|
|
|
@@ -1181,35 +1571,6 @@ function CreateComponentRequestToJSON(value) {
|
|
|
1181
1571
|
};
|
|
1182
1572
|
}
|
|
1183
1573
|
|
|
1184
|
-
// src/generated/models/CreateVersion200Response.ts
|
|
1185
|
-
function instanceOfCreateVersion200Response(value) {
|
|
1186
|
-
let isInstance = true;
|
|
1187
|
-
isInstance = isInstance && "data" in value;
|
|
1188
|
-
return isInstance;
|
|
1189
|
-
}
|
|
1190
|
-
function CreateVersion200ResponseFromJSON(json) {
|
|
1191
|
-
return CreateVersion200ResponseFromJSONTyped(json, false);
|
|
1192
|
-
}
|
|
1193
|
-
function CreateVersion200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1194
|
-
if (json === void 0 || json === null) {
|
|
1195
|
-
return json;
|
|
1196
|
-
}
|
|
1197
|
-
return {
|
|
1198
|
-
"data": ListVersions200ResponseDataInnerFromJSON(json["data"])
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
function CreateVersion200ResponseToJSON(value) {
|
|
1202
|
-
if (value === void 0) {
|
|
1203
|
-
return void 0;
|
|
1204
|
-
}
|
|
1205
|
-
if (value === null) {
|
|
1206
|
-
return null;
|
|
1207
|
-
}
|
|
1208
|
-
return {
|
|
1209
|
-
"data": ListVersions200ResponseDataInnerToJSON(value.data)
|
|
1210
|
-
};
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
1574
|
// src/generated/models/CreateVersionRequest.ts
|
|
1214
1575
|
function instanceOfCreateVersionRequest(value) {
|
|
1215
1576
|
let isInstance = true;
|
|
@@ -1361,24 +1722,25 @@ function DeprecateVersionRequestToJSON(value) {
|
|
|
1361
1722
|
};
|
|
1362
1723
|
}
|
|
1363
1724
|
|
|
1364
|
-
// src/generated/models/
|
|
1365
|
-
function
|
|
1725
|
+
// src/generated/models/ErrorDetail.ts
|
|
1726
|
+
function instanceOfErrorDetail(value) {
|
|
1366
1727
|
let isInstance = true;
|
|
1367
1728
|
return isInstance;
|
|
1368
1729
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1730
|
+
function ErrorDetailFromJSON(json) {
|
|
1731
|
+
return ErrorDetailFromJSONTyped(json, false);
|
|
1371
1732
|
}
|
|
1372
|
-
function
|
|
1733
|
+
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
1373
1734
|
if (json === void 0 || json === null) {
|
|
1374
1735
|
return json;
|
|
1375
1736
|
}
|
|
1376
1737
|
return {
|
|
1377
1738
|
"field": !exists(json, "field") ? void 0 : json["field"],
|
|
1378
|
-
"message": !exists(json, "message") ? void 0 : json["message"]
|
|
1739
|
+
"message": !exists(json, "message") ? void 0 : json["message"],
|
|
1740
|
+
"code": !exists(json, "code") ? void 0 : json["code"]
|
|
1379
1741
|
};
|
|
1380
1742
|
}
|
|
1381
|
-
function
|
|
1743
|
+
function ErrorDetailToJSON(value) {
|
|
1382
1744
|
if (value === void 0) {
|
|
1383
1745
|
return void 0;
|
|
1384
1746
|
}
|
|
@@ -1387,15 +1749,19 @@ function ListComponents401ResponseDetailsInnerToJSON(value) {
|
|
|
1387
1749
|
}
|
|
1388
1750
|
return {
|
|
1389
1751
|
"field": value.field,
|
|
1390
|
-
"message": value.message
|
|
1752
|
+
"message": value.message,
|
|
1753
|
+
"code": value.code
|
|
1391
1754
|
};
|
|
1392
1755
|
}
|
|
1393
1756
|
|
|
1394
1757
|
// src/generated/models/ErrorResponse.ts
|
|
1395
1758
|
function instanceOfErrorResponse(value) {
|
|
1396
1759
|
let isInstance = true;
|
|
1760
|
+
isInstance = isInstance && "success" in value;
|
|
1397
1761
|
isInstance = isInstance && "code" in value;
|
|
1398
1762
|
isInstance = isInstance && "message" in value;
|
|
1763
|
+
isInstance = isInstance && "timestamp" in value;
|
|
1764
|
+
isInstance = isInstance && "path" in value;
|
|
1399
1765
|
return isInstance;
|
|
1400
1766
|
}
|
|
1401
1767
|
function ErrorResponseFromJSON(json) {
|
|
@@ -1406,179 +1772,53 @@ function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1406
1772
|
return json;
|
|
1407
1773
|
}
|
|
1408
1774
|
return {
|
|
1775
|
+
"success": json["success"],
|
|
1409
1776
|
"code": json["code"],
|
|
1410
1777
|
"message": json["message"],
|
|
1411
|
-
"
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1414
|
-
function ErrorResponseToJSON(value) {
|
|
1415
|
-
if (value === void 0) {
|
|
1416
|
-
return void 0;
|
|
1417
|
-
}
|
|
1418
|
-
if (value === null) {
|
|
1419
|
-
return null;
|
|
1420
|
-
}
|
|
1421
|
-
return {
|
|
1422
|
-
"code": value.code,
|
|
1423
|
-
"message": value.message,
|
|
1424
|
-
"details": value.details === void 0 ? void 0 : value.details.map(ListComponents401ResponseDetailsInnerToJSON)
|
|
1425
|
-
};
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
// src/generated/models/FileInfo.ts
|
|
1429
|
-
function instanceOfFileInfo(value) {
|
|
1430
|
-
let isInstance = true;
|
|
1431
|
-
isInstance = isInstance && "path" in value;
|
|
1432
|
-
isInstance = isInstance && "size" in value;
|
|
1433
|
-
isInstance = isInstance && "integrity" in value;
|
|
1434
|
-
return isInstance;
|
|
1435
|
-
}
|
|
1436
|
-
function FileInfoFromJSON(json) {
|
|
1437
|
-
return FileInfoFromJSONTyped(json, false);
|
|
1438
|
-
}
|
|
1439
|
-
function FileInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1440
|
-
if (json === void 0 || json === null) {
|
|
1441
|
-
return json;
|
|
1442
|
-
}
|
|
1443
|
-
return {
|
|
1444
|
-
"path": json["path"],
|
|
1445
|
-
"size": json["size"],
|
|
1446
|
-
"integrity": json["integrity"],
|
|
1447
|
-
"contentType": !exists(json, "contentType") ? void 0 : json["contentType"]
|
|
1448
|
-
};
|
|
1449
|
-
}
|
|
1450
|
-
function FileInfoToJSON(value) {
|
|
1451
|
-
if (value === void 0) {
|
|
1452
|
-
return void 0;
|
|
1453
|
-
}
|
|
1454
|
-
if (value === null) {
|
|
1455
|
-
return null;
|
|
1456
|
-
}
|
|
1457
|
-
return {
|
|
1458
|
-
"path": value.path,
|
|
1459
|
-
"size": value.size,
|
|
1460
|
-
"integrity": value.integrity,
|
|
1461
|
-
"contentType": value.contentType
|
|
1462
|
-
};
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
// src/generated/models/GetVersion200ResponseDataAllOfFilesInner.ts
|
|
1466
|
-
function instanceOfGetVersion200ResponseDataAllOfFilesInner(value) {
|
|
1467
|
-
let isInstance = true;
|
|
1468
|
-
isInstance = isInstance && "path" in value;
|
|
1469
|
-
isInstance = isInstance && "size" in value;
|
|
1470
|
-
isInstance = isInstance && "integrity" in value;
|
|
1471
|
-
return isInstance;
|
|
1472
|
-
}
|
|
1473
|
-
function GetVersion200ResponseDataAllOfFilesInnerFromJSON(json) {
|
|
1474
|
-
return GetVersion200ResponseDataAllOfFilesInnerFromJSONTyped(json, false);
|
|
1475
|
-
}
|
|
1476
|
-
function GetVersion200ResponseDataAllOfFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1477
|
-
if (json === void 0 || json === null) {
|
|
1478
|
-
return json;
|
|
1479
|
-
}
|
|
1480
|
-
return {
|
|
1778
|
+
"data": !exists(json, "data") ? void 0 : json["data"],
|
|
1779
|
+
"timestamp": json["timestamp"],
|
|
1481
1780
|
"path": json["path"],
|
|
1482
|
-
"
|
|
1483
|
-
"
|
|
1484
|
-
"contentType": !exists(json, "contentType") ? void 0 : json["contentType"]
|
|
1485
|
-
};
|
|
1486
|
-
}
|
|
1487
|
-
function GetVersion200ResponseDataAllOfFilesInnerToJSON(value) {
|
|
1488
|
-
if (value === void 0) {
|
|
1489
|
-
return void 0;
|
|
1490
|
-
}
|
|
1491
|
-
if (value === null) {
|
|
1492
|
-
return null;
|
|
1493
|
-
}
|
|
1494
|
-
return {
|
|
1495
|
-
"path": value.path,
|
|
1496
|
-
"size": value.size,
|
|
1497
|
-
"integrity": value.integrity,
|
|
1498
|
-
"contentType": value.contentType
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
// src/generated/models/GetVersion200ResponseData.ts
|
|
1503
|
-
var GetVersion200ResponseDataStatusEnum = {
|
|
1504
|
-
DRAFT: "draft",
|
|
1505
|
-
CANARY: "canary",
|
|
1506
|
-
STABLE: "stable",
|
|
1507
|
-
DEPRECATED: "deprecated",
|
|
1508
|
-
BLOCKED: "blocked"
|
|
1509
|
-
};
|
|
1510
|
-
function instanceOfGetVersion200ResponseData(value) {
|
|
1511
|
-
let isInstance = true;
|
|
1512
|
-
isInstance = isInstance && "version" in value;
|
|
1513
|
-
isInstance = isInstance && "status" in value;
|
|
1514
|
-
isInstance = isInstance && "createdAt" in value;
|
|
1515
|
-
return isInstance;
|
|
1516
|
-
}
|
|
1517
|
-
function GetVersion200ResponseDataFromJSON(json) {
|
|
1518
|
-
return GetVersion200ResponseDataFromJSONTyped(json, false);
|
|
1519
|
-
}
|
|
1520
|
-
function GetVersion200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
1521
|
-
if (json === void 0 || json === null) {
|
|
1522
|
-
return json;
|
|
1523
|
-
}
|
|
1524
|
-
return {
|
|
1525
|
-
"version": json["version"],
|
|
1526
|
-
"status": json["status"],
|
|
1527
|
-
"changelog": !exists(json, "changelog") ? void 0 : json["changelog"],
|
|
1528
|
-
"integrity": !exists(json, "integrity") ? void 0 : ListVersions200ResponseDataInnerIntegrityFromJSON(json["integrity"]),
|
|
1529
|
-
"size": !exists(json, "size") ? void 0 : json["size"],
|
|
1530
|
-
"createdAt": new Date(json["createdAt"]),
|
|
1531
|
-
"publishedAt": !exists(json, "publishedAt") ? void 0 : new Date(json["publishedAt"]),
|
|
1532
|
-
"deprecatedAt": !exists(json, "deprecatedAt") ? void 0 : new Date(json["deprecatedAt"]),
|
|
1533
|
-
"deprecationMessage": !exists(json, "deprecationMessage") ? void 0 : json["deprecationMessage"],
|
|
1534
|
-
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"],
|
|
1535
|
-
"meta": !exists(json, "meta") ? void 0 : json["meta"],
|
|
1536
|
-
"entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
|
|
1537
|
-
"files": !exists(json, "files") ? void 0 : json["files"].map(GetVersion200ResponseDataAllOfFilesInnerFromJSON)
|
|
1781
|
+
"requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
|
|
1782
|
+
"traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
|
|
1538
1783
|
};
|
|
1539
1784
|
}
|
|
1540
|
-
function
|
|
1541
|
-
if (value === void 0) {
|
|
1542
|
-
return void 0;
|
|
1543
|
-
}
|
|
1544
|
-
if (value === null) {
|
|
1545
|
-
return null;
|
|
1546
|
-
}
|
|
1547
|
-
return {
|
|
1548
|
-
"
|
|
1549
|
-
"
|
|
1550
|
-
"
|
|
1551
|
-
"
|
|
1552
|
-
"
|
|
1553
|
-
"
|
|
1554
|
-
"
|
|
1555
|
-
"
|
|
1556
|
-
"deprecationMessage": value.deprecationMessage,
|
|
1557
|
-
"downloads": value.downloads,
|
|
1558
|
-
"meta": value.meta,
|
|
1559
|
-
"entryUrl": value.entryUrl,
|
|
1560
|
-
"files": value.files === void 0 ? void 0 : value.files.map(GetVersion200ResponseDataAllOfFilesInnerToJSON)
|
|
1785
|
+
function ErrorResponseToJSON(value) {
|
|
1786
|
+
if (value === void 0) {
|
|
1787
|
+
return void 0;
|
|
1788
|
+
}
|
|
1789
|
+
if (value === null) {
|
|
1790
|
+
return null;
|
|
1791
|
+
}
|
|
1792
|
+
return {
|
|
1793
|
+
"success": value.success,
|
|
1794
|
+
"code": value.code,
|
|
1795
|
+
"message": value.message,
|
|
1796
|
+
"data": value.data,
|
|
1797
|
+
"timestamp": value.timestamp,
|
|
1798
|
+
"path": value.path,
|
|
1799
|
+
"requestId": value.requestId,
|
|
1800
|
+
"traceId": value.traceId
|
|
1561
1801
|
};
|
|
1562
1802
|
}
|
|
1563
1803
|
|
|
1564
|
-
// src/generated/models/
|
|
1565
|
-
function
|
|
1804
|
+
// src/generated/models/ErrorResponseDataObject.ts
|
|
1805
|
+
function instanceOfErrorResponseDataObject(value) {
|
|
1566
1806
|
let isInstance = true;
|
|
1567
|
-
isInstance = isInstance && "data" in value;
|
|
1568
1807
|
return isInstance;
|
|
1569
1808
|
}
|
|
1570
|
-
function
|
|
1571
|
-
return
|
|
1809
|
+
function ErrorResponseDataObjectFromJSON(json) {
|
|
1810
|
+
return ErrorResponseDataObjectFromJSONTyped(json, false);
|
|
1572
1811
|
}
|
|
1573
|
-
function
|
|
1812
|
+
function ErrorResponseDataObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
1574
1813
|
if (json === void 0 || json === null) {
|
|
1575
1814
|
return json;
|
|
1576
1815
|
}
|
|
1577
1816
|
return {
|
|
1578
|
-
|
|
1817
|
+
...json,
|
|
1818
|
+
"u": !exists(json, "_") ? void 0 : json["_"]
|
|
1579
1819
|
};
|
|
1580
1820
|
}
|
|
1581
|
-
function
|
|
1821
|
+
function ErrorResponseDataObjectToJSON(value) {
|
|
1582
1822
|
if (value === void 0) {
|
|
1583
1823
|
return void 0;
|
|
1584
1824
|
}
|
|
@@ -1586,34 +1826,34 @@ function GetVersion200ResponseToJSON(value) {
|
|
|
1586
1826
|
return null;
|
|
1587
1827
|
}
|
|
1588
1828
|
return {
|
|
1589
|
-
|
|
1829
|
+
...value,
|
|
1830
|
+
"_": value.u
|
|
1590
1831
|
};
|
|
1591
1832
|
}
|
|
1592
1833
|
|
|
1593
|
-
// src/generated/models/
|
|
1594
|
-
|
|
1595
|
-
HEALTHY: "healthy",
|
|
1596
|
-
DEGRADED: "degraded",
|
|
1597
|
-
UNHEALTHY: "unhealthy"
|
|
1598
|
-
};
|
|
1599
|
-
function instanceOfHealthCheck200ResponseDependenciesValue(value) {
|
|
1834
|
+
// src/generated/models/FileInfo.ts
|
|
1835
|
+
function instanceOfFileInfo(value) {
|
|
1600
1836
|
let isInstance = true;
|
|
1837
|
+
isInstance = isInstance && "path" in value;
|
|
1838
|
+
isInstance = isInstance && "size" in value;
|
|
1839
|
+
isInstance = isInstance && "integrity" in value;
|
|
1601
1840
|
return isInstance;
|
|
1602
1841
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return
|
|
1842
|
+
function FileInfoFromJSON(json) {
|
|
1843
|
+
return FileInfoFromJSONTyped(json, false);
|
|
1605
1844
|
}
|
|
1606
|
-
function
|
|
1845
|
+
function FileInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1607
1846
|
if (json === void 0 || json === null) {
|
|
1608
1847
|
return json;
|
|
1609
1848
|
}
|
|
1610
1849
|
return {
|
|
1611
|
-
"
|
|
1612
|
-
"
|
|
1613
|
-
"
|
|
1850
|
+
"path": json["path"],
|
|
1851
|
+
"size": json["size"],
|
|
1852
|
+
"integrity": json["integrity"],
|
|
1853
|
+
"contentType": !exists(json, "contentType") ? void 0 : json["contentType"]
|
|
1614
1854
|
};
|
|
1615
1855
|
}
|
|
1616
|
-
function
|
|
1856
|
+
function FileInfoToJSON(value) {
|
|
1617
1857
|
if (value === void 0) {
|
|
1618
1858
|
return void 0;
|
|
1619
1859
|
}
|
|
@@ -1621,40 +1861,37 @@ function HealthCheck200ResponseDependenciesValueToJSON(value) {
|
|
|
1621
1861
|
return null;
|
|
1622
1862
|
}
|
|
1623
1863
|
return {
|
|
1624
|
-
"
|
|
1625
|
-
"
|
|
1626
|
-
"
|
|
1864
|
+
"path": value.path,
|
|
1865
|
+
"size": value.size,
|
|
1866
|
+
"integrity": value.integrity,
|
|
1867
|
+
"contentType": value.contentType
|
|
1627
1868
|
};
|
|
1628
1869
|
}
|
|
1629
1870
|
|
|
1630
|
-
// src/generated/models/
|
|
1631
|
-
var
|
|
1871
|
+
// src/generated/models/HealthResponseDependenciesValue.ts
|
|
1872
|
+
var HealthResponseDependenciesValueStatusEnum = {
|
|
1632
1873
|
HEALTHY: "healthy",
|
|
1633
1874
|
DEGRADED: "degraded",
|
|
1634
1875
|
UNHEALTHY: "unhealthy"
|
|
1635
1876
|
};
|
|
1636
|
-
function
|
|
1877
|
+
function instanceOfHealthResponseDependenciesValue(value) {
|
|
1637
1878
|
let isInstance = true;
|
|
1638
|
-
isInstance = isInstance && "status" in value;
|
|
1639
|
-
isInstance = isInstance && "version" in value;
|
|
1640
1879
|
return isInstance;
|
|
1641
1880
|
}
|
|
1642
|
-
function
|
|
1643
|
-
return
|
|
1881
|
+
function HealthResponseDependenciesValueFromJSON(json) {
|
|
1882
|
+
return HealthResponseDependenciesValueFromJSONTyped(json, false);
|
|
1644
1883
|
}
|
|
1645
|
-
function
|
|
1884
|
+
function HealthResponseDependenciesValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
1646
1885
|
if (json === void 0 || json === null) {
|
|
1647
1886
|
return json;
|
|
1648
1887
|
}
|
|
1649
1888
|
return {
|
|
1650
|
-
"status": json["status"],
|
|
1651
|
-
"
|
|
1652
|
-
"
|
|
1653
|
-
"timestamp": !exists(json, "timestamp") ? void 0 : new Date(json["timestamp"]),
|
|
1654
|
-
"dependencies": !exists(json, "dependencies") ? void 0 : mapValues(json["dependencies"], HealthCheck200ResponseDependenciesValueFromJSON)
|
|
1889
|
+
"status": !exists(json, "status") ? void 0 : json["status"],
|
|
1890
|
+
"latency": !exists(json, "latency") ? void 0 : json["latency"],
|
|
1891
|
+
"message": !exists(json, "message") ? void 0 : json["message"]
|
|
1655
1892
|
};
|
|
1656
1893
|
}
|
|
1657
|
-
function
|
|
1894
|
+
function HealthResponseDependenciesValueToJSON(value) {
|
|
1658
1895
|
if (value === void 0) {
|
|
1659
1896
|
return void 0;
|
|
1660
1897
|
}
|
|
@@ -1663,10 +1900,8 @@ function HealthCheck200ResponseToJSON(value) {
|
|
|
1663
1900
|
}
|
|
1664
1901
|
return {
|
|
1665
1902
|
"status": value.status,
|
|
1666
|
-
"
|
|
1667
|
-
"
|
|
1668
|
-
"timestamp": value.timestamp === void 0 ? void 0 : value.timestamp.toISOString(),
|
|
1669
|
-
"dependencies": value.dependencies === void 0 ? void 0 : mapValues(value.dependencies, HealthCheck200ResponseDependenciesValueToJSON)
|
|
1903
|
+
"latency": value.latency,
|
|
1904
|
+
"message": value.message
|
|
1670
1905
|
};
|
|
1671
1906
|
}
|
|
1672
1907
|
|
|
@@ -1694,7 +1929,7 @@ function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1694
1929
|
"version": json["version"],
|
|
1695
1930
|
"uptime": !exists(json, "uptime") ? void 0 : json["uptime"],
|
|
1696
1931
|
"timestamp": !exists(json, "timestamp") ? void 0 : new Date(json["timestamp"]),
|
|
1697
|
-
"dependencies": !exists(json, "dependencies") ? void 0 : mapValues(json["dependencies"],
|
|
1932
|
+
"dependencies": !exists(json, "dependencies") ? void 0 : mapValues(json["dependencies"], HealthResponseDependenciesValueFromJSON)
|
|
1698
1933
|
};
|
|
1699
1934
|
}
|
|
1700
1935
|
function HealthResponseToJSON(value) {
|
|
@@ -1709,7 +1944,7 @@ function HealthResponseToJSON(value) {
|
|
|
1709
1944
|
"version": value.version,
|
|
1710
1945
|
"uptime": value.uptime,
|
|
1711
1946
|
"timestamp": value.timestamp === void 0 ? void 0 : value.timestamp.toISOString(),
|
|
1712
|
-
"dependencies": value.dependencies === void 0 ? void 0 : mapValues(value.dependencies,
|
|
1947
|
+
"dependencies": value.dependencies === void 0 ? void 0 : mapValues(value.dependencies, HealthResponseDependenciesValueToJSON)
|
|
1713
1948
|
};
|
|
1714
1949
|
}
|
|
1715
1950
|
|
|
@@ -1779,26 +2014,23 @@ function ListBlockedComponents200ResponseToJSON(value) {
|
|
|
1779
2014
|
};
|
|
1780
2015
|
}
|
|
1781
2016
|
|
|
1782
|
-
// src/generated/models/
|
|
1783
|
-
function
|
|
2017
|
+
// src/generated/models/LivenessCheck200Response.ts
|
|
2018
|
+
function instanceOfLivenessCheck200Response(value) {
|
|
1784
2019
|
let isInstance = true;
|
|
1785
|
-
isInstance = isInstance && "data" in value;
|
|
1786
|
-
isInstance = isInstance && "meta" in value;
|
|
1787
2020
|
return isInstance;
|
|
1788
2021
|
}
|
|
1789
|
-
function
|
|
1790
|
-
return
|
|
2022
|
+
function LivenessCheck200ResponseFromJSON(json) {
|
|
2023
|
+
return LivenessCheck200ResponseFromJSONTyped(json, false);
|
|
1791
2024
|
}
|
|
1792
|
-
function
|
|
2025
|
+
function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1793
2026
|
if (json === void 0 || json === null) {
|
|
1794
2027
|
return json;
|
|
1795
2028
|
}
|
|
1796
2029
|
return {
|
|
1797
|
-
"
|
|
1798
|
-
"meta": ListComponents200ResponseMetaFromJSON(json["meta"])
|
|
2030
|
+
"alive": !exists(json, "alive") ? void 0 : json["alive"]
|
|
1799
2031
|
};
|
|
1800
2032
|
}
|
|
1801
|
-
function
|
|
2033
|
+
function LivenessCheck200ResponseToJSON(value) {
|
|
1802
2034
|
if (value === void 0) {
|
|
1803
2035
|
return void 0;
|
|
1804
2036
|
}
|
|
@@ -1806,32 +2038,32 @@ function ListComponents200ResponseToJSON(value) {
|
|
|
1806
2038
|
return null;
|
|
1807
2039
|
}
|
|
1808
2040
|
return {
|
|
1809
|
-
"
|
|
1810
|
-
"meta": ListComponents200ResponseMetaToJSON(value.meta)
|
|
2041
|
+
"alive": value.alive
|
|
1811
2042
|
};
|
|
1812
2043
|
}
|
|
1813
2044
|
|
|
1814
|
-
// src/generated/models/
|
|
1815
|
-
function
|
|
2045
|
+
// src/generated/models/PrepareUploadRequestFilesInner.ts
|
|
2046
|
+
function instanceOfPrepareUploadRequestFilesInner(value) {
|
|
1816
2047
|
let isInstance = true;
|
|
1817
|
-
isInstance = isInstance && "
|
|
1818
|
-
isInstance = isInstance && "
|
|
2048
|
+
isInstance = isInstance && "path" in value;
|
|
2049
|
+
isInstance = isInstance && "size" in value;
|
|
2050
|
+
isInstance = isInstance && "contentType" in value;
|
|
1819
2051
|
return isInstance;
|
|
1820
2052
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return
|
|
2053
|
+
function PrepareUploadRequestFilesInnerFromJSON(json) {
|
|
2054
|
+
return PrepareUploadRequestFilesInnerFromJSONTyped(json, false);
|
|
1823
2055
|
}
|
|
1824
|
-
function
|
|
2056
|
+
function PrepareUploadRequestFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1825
2057
|
if (json === void 0 || json === null) {
|
|
1826
2058
|
return json;
|
|
1827
2059
|
}
|
|
1828
2060
|
return {
|
|
1829
|
-
"
|
|
1830
|
-
"
|
|
1831
|
-
"
|
|
2061
|
+
"path": json["path"],
|
|
2062
|
+
"size": json["size"],
|
|
2063
|
+
"contentType": json["contentType"]
|
|
1832
2064
|
};
|
|
1833
2065
|
}
|
|
1834
|
-
function
|
|
2066
|
+
function PrepareUploadRequestFilesInnerToJSON(value) {
|
|
1835
2067
|
if (value === void 0) {
|
|
1836
2068
|
return void 0;
|
|
1837
2069
|
}
|
|
@@ -1839,32 +2071,34 @@ function ListComponents401ResponseToJSON(value) {
|
|
|
1839
2071
|
return null;
|
|
1840
2072
|
}
|
|
1841
2073
|
return {
|
|
1842
|
-
"
|
|
1843
|
-
"
|
|
1844
|
-
"
|
|
2074
|
+
"path": value.path,
|
|
2075
|
+
"size": value.size,
|
|
2076
|
+
"contentType": value.contentType
|
|
1845
2077
|
};
|
|
1846
2078
|
}
|
|
1847
2079
|
|
|
1848
|
-
// src/generated/models/
|
|
1849
|
-
function
|
|
2080
|
+
// src/generated/models/PrepareUploadRequest.ts
|
|
2081
|
+
function instanceOfPrepareUploadRequest(value) {
|
|
1850
2082
|
let isInstance = true;
|
|
1851
|
-
isInstance = isInstance && "
|
|
1852
|
-
isInstance = isInstance && "
|
|
2083
|
+
isInstance = isInstance && "componentId" in value;
|
|
2084
|
+
isInstance = isInstance && "version" in value;
|
|
2085
|
+
isInstance = isInstance && "files" in value;
|
|
1853
2086
|
return isInstance;
|
|
1854
2087
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
2088
|
+
function PrepareUploadRequestFromJSON(json) {
|
|
2089
|
+
return PrepareUploadRequestFromJSONTyped(json, false);
|
|
1857
2090
|
}
|
|
1858
|
-
function
|
|
2091
|
+
function PrepareUploadRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1859
2092
|
if (json === void 0 || json === null) {
|
|
1860
2093
|
return json;
|
|
1861
2094
|
}
|
|
1862
2095
|
return {
|
|
1863
|
-
"
|
|
1864
|
-
"
|
|
2096
|
+
"componentId": json["componentId"],
|
|
2097
|
+
"version": json["version"],
|
|
2098
|
+
"files": json["files"].map(PrepareUploadRequestFilesInnerFromJSON)
|
|
1865
2099
|
};
|
|
1866
2100
|
}
|
|
1867
|
-
function
|
|
2101
|
+
function PrepareUploadRequestToJSON(value) {
|
|
1868
2102
|
if (value === void 0) {
|
|
1869
2103
|
return void 0;
|
|
1870
2104
|
}
|
|
@@ -1872,28 +2106,33 @@ function ListVersions200ResponseToJSON(value) {
|
|
|
1872
2106
|
return null;
|
|
1873
2107
|
}
|
|
1874
2108
|
return {
|
|
1875
|
-
"
|
|
1876
|
-
"
|
|
2109
|
+
"componentId": value.componentId,
|
|
2110
|
+
"version": value.version,
|
|
2111
|
+
"files": value.files.map(PrepareUploadRequestFilesInnerToJSON)
|
|
1877
2112
|
};
|
|
1878
2113
|
}
|
|
1879
2114
|
|
|
1880
|
-
// src/generated/models/
|
|
1881
|
-
function
|
|
2115
|
+
// src/generated/models/PrepareUploadResponseDataFilesInner.ts
|
|
2116
|
+
function instanceOfPrepareUploadResponseDataFilesInner(value) {
|
|
1882
2117
|
let isInstance = true;
|
|
2118
|
+
isInstance = isInstance && "path" in value;
|
|
2119
|
+
isInstance = isInstance && "uploadUrl" in value;
|
|
1883
2120
|
return isInstance;
|
|
1884
2121
|
}
|
|
1885
|
-
function
|
|
1886
|
-
return
|
|
2122
|
+
function PrepareUploadResponseDataFilesInnerFromJSON(json) {
|
|
2123
|
+
return PrepareUploadResponseDataFilesInnerFromJSONTyped(json, false);
|
|
1887
2124
|
}
|
|
1888
|
-
function
|
|
2125
|
+
function PrepareUploadResponseDataFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1889
2126
|
if (json === void 0 || json === null) {
|
|
1890
2127
|
return json;
|
|
1891
2128
|
}
|
|
1892
2129
|
return {
|
|
1893
|
-
"
|
|
2130
|
+
"path": json["path"],
|
|
2131
|
+
"uploadUrl": json["uploadUrl"],
|
|
2132
|
+
"headers": !exists(json, "headers") ? void 0 : json["headers"]
|
|
1894
2133
|
};
|
|
1895
2134
|
}
|
|
1896
|
-
function
|
|
2135
|
+
function PrepareUploadResponseDataFilesInnerToJSON(value) {
|
|
1897
2136
|
if (value === void 0) {
|
|
1898
2137
|
return void 0;
|
|
1899
2138
|
}
|
|
@@ -1901,34 +2140,34 @@ function LivenessCheck200ResponseToJSON(value) {
|
|
|
1901
2140
|
return null;
|
|
1902
2141
|
}
|
|
1903
2142
|
return {
|
|
1904
|
-
"
|
|
2143
|
+
"path": value.path,
|
|
2144
|
+
"uploadUrl": value.uploadUrl,
|
|
2145
|
+
"headers": value.headers
|
|
1905
2146
|
};
|
|
1906
2147
|
}
|
|
1907
2148
|
|
|
1908
|
-
// src/generated/models/
|
|
1909
|
-
function
|
|
2149
|
+
// src/generated/models/PrepareUploadResponseData.ts
|
|
2150
|
+
function instanceOfPrepareUploadResponseData(value) {
|
|
1910
2151
|
let isInstance = true;
|
|
1911
|
-
isInstance = isInstance && "
|
|
1912
|
-
isInstance = isInstance && "
|
|
1913
|
-
isInstance = isInstance && "
|
|
1914
|
-
isInstance = isInstance && "totalPages" in value;
|
|
2152
|
+
isInstance = isInstance && "uploadId" in value;
|
|
2153
|
+
isInstance = isInstance && "files" in value;
|
|
2154
|
+
isInstance = isInstance && "expiresAt" in value;
|
|
1915
2155
|
return isInstance;
|
|
1916
2156
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return
|
|
2157
|
+
function PrepareUploadResponseDataFromJSON(json) {
|
|
2158
|
+
return PrepareUploadResponseDataFromJSONTyped(json, false);
|
|
1919
2159
|
}
|
|
1920
|
-
function
|
|
2160
|
+
function PrepareUploadResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
1921
2161
|
if (json === void 0 || json === null) {
|
|
1922
2162
|
return json;
|
|
1923
2163
|
}
|
|
1924
2164
|
return {
|
|
1925
|
-
"
|
|
1926
|
-
"
|
|
1927
|
-
"
|
|
1928
|
-
"totalPages": json["totalPages"]
|
|
2165
|
+
"uploadId": json["uploadId"],
|
|
2166
|
+
"files": json["files"].map(PrepareUploadResponseDataFilesInnerFromJSON),
|
|
2167
|
+
"expiresAt": new Date(json["expiresAt"])
|
|
1929
2168
|
};
|
|
1930
2169
|
}
|
|
1931
|
-
function
|
|
2170
|
+
function PrepareUploadResponseDataToJSON(value) {
|
|
1932
2171
|
if (value === void 0) {
|
|
1933
2172
|
return void 0;
|
|
1934
2173
|
}
|
|
@@ -1936,34 +2175,30 @@ function PaginationMetaToJSON(value) {
|
|
|
1936
2175
|
return null;
|
|
1937
2176
|
}
|
|
1938
2177
|
return {
|
|
1939
|
-
"
|
|
1940
|
-
"
|
|
1941
|
-
"
|
|
1942
|
-
"totalPages": value.totalPages
|
|
2178
|
+
"uploadId": value.uploadId,
|
|
2179
|
+
"files": value.files.map(PrepareUploadResponseDataFilesInnerToJSON),
|
|
2180
|
+
"expiresAt": value.expiresAt.toISOString()
|
|
1943
2181
|
};
|
|
1944
2182
|
}
|
|
1945
2183
|
|
|
1946
|
-
// src/generated/models/
|
|
1947
|
-
function
|
|
2184
|
+
// src/generated/models/PrepareUploadResponse.ts
|
|
2185
|
+
function instanceOfPrepareUploadResponse(value) {
|
|
1948
2186
|
let isInstance = true;
|
|
1949
|
-
isInstance = isInstance && "
|
|
1950
|
-
isInstance = isInstance && "uploadUrl" in value;
|
|
2187
|
+
isInstance = isInstance && "data" in value;
|
|
1951
2188
|
return isInstance;
|
|
1952
2189
|
}
|
|
1953
|
-
function
|
|
1954
|
-
return
|
|
2190
|
+
function PrepareUploadResponseFromJSON(json) {
|
|
2191
|
+
return PrepareUploadResponseFromJSONTyped(json, false);
|
|
1955
2192
|
}
|
|
1956
|
-
function
|
|
2193
|
+
function PrepareUploadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1957
2194
|
if (json === void 0 || json === null) {
|
|
1958
2195
|
return json;
|
|
1959
2196
|
}
|
|
1960
2197
|
return {
|
|
1961
|
-
"
|
|
1962
|
-
"uploadUrl": json["uploadUrl"],
|
|
1963
|
-
"headers": !exists(json, "headers") ? void 0 : json["headers"]
|
|
2198
|
+
"data": PrepareUploadResponseDataFromJSON(json["data"])
|
|
1964
2199
|
};
|
|
1965
2200
|
}
|
|
1966
|
-
function
|
|
2201
|
+
function PrepareUploadResponseToJSON(value) {
|
|
1967
2202
|
if (value === void 0) {
|
|
1968
2203
|
return void 0;
|
|
1969
2204
|
}
|
|
@@ -1971,34 +2206,27 @@ function PrepareUpload200ResponseDataFilesInnerToJSON(value) {
|
|
|
1971
2206
|
return null;
|
|
1972
2207
|
}
|
|
1973
2208
|
return {
|
|
1974
|
-
"
|
|
1975
|
-
"uploadUrl": value.uploadUrl,
|
|
1976
|
-
"headers": value.headers
|
|
2209
|
+
"data": PrepareUploadResponseDataToJSON(value.data)
|
|
1977
2210
|
};
|
|
1978
2211
|
}
|
|
1979
2212
|
|
|
1980
|
-
// src/generated/models/
|
|
1981
|
-
function
|
|
2213
|
+
// src/generated/models/PublishVersionRequest.ts
|
|
2214
|
+
function instanceOfPublishVersionRequest(value) {
|
|
1982
2215
|
let isInstance = true;
|
|
1983
|
-
isInstance = isInstance && "uploadId" in value;
|
|
1984
|
-
isInstance = isInstance && "files" in value;
|
|
1985
|
-
isInstance = isInstance && "expiresAt" in value;
|
|
1986
2216
|
return isInstance;
|
|
1987
2217
|
}
|
|
1988
|
-
function
|
|
1989
|
-
return
|
|
2218
|
+
function PublishVersionRequestFromJSON(json) {
|
|
2219
|
+
return PublishVersionRequestFromJSONTyped(json, false);
|
|
1990
2220
|
}
|
|
1991
|
-
function
|
|
2221
|
+
function PublishVersionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1992
2222
|
if (json === void 0 || json === null) {
|
|
1993
2223
|
return json;
|
|
1994
2224
|
}
|
|
1995
2225
|
return {
|
|
1996
|
-
"
|
|
1997
|
-
"files": json["files"].map(PrepareUpload200ResponseDataFilesInnerFromJSON),
|
|
1998
|
-
"expiresAt": new Date(json["expiresAt"])
|
|
2226
|
+
"changelog": !exists(json, "changelog") ? void 0 : json["changelog"]
|
|
1999
2227
|
};
|
|
2000
2228
|
}
|
|
2001
|
-
function
|
|
2229
|
+
function PublishVersionRequestToJSON(value) {
|
|
2002
2230
|
if (value === void 0) {
|
|
2003
2231
|
return void 0;
|
|
2004
2232
|
}
|
|
@@ -2006,30 +2234,27 @@ function PrepareUpload200ResponseDataToJSON(value) {
|
|
|
2006
2234
|
return null;
|
|
2007
2235
|
}
|
|
2008
2236
|
return {
|
|
2009
|
-
"
|
|
2010
|
-
"files": value.files.map(PrepareUpload200ResponseDataFilesInnerToJSON),
|
|
2011
|
-
"expiresAt": value.expiresAt.toISOString()
|
|
2237
|
+
"changelog": value.changelog
|
|
2012
2238
|
};
|
|
2013
2239
|
}
|
|
2014
2240
|
|
|
2015
|
-
// src/generated/models/
|
|
2016
|
-
function
|
|
2241
|
+
// src/generated/models/ReadinessCheck200Response.ts
|
|
2242
|
+
function instanceOfReadinessCheck200Response(value) {
|
|
2017
2243
|
let isInstance = true;
|
|
2018
|
-
isInstance = isInstance && "data" in value;
|
|
2019
2244
|
return isInstance;
|
|
2020
2245
|
}
|
|
2021
|
-
function
|
|
2022
|
-
return
|
|
2246
|
+
function ReadinessCheck200ResponseFromJSON(json) {
|
|
2247
|
+
return ReadinessCheck200ResponseFromJSONTyped(json, false);
|
|
2023
2248
|
}
|
|
2024
|
-
function
|
|
2249
|
+
function ReadinessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2025
2250
|
if (json === void 0 || json === null) {
|
|
2026
2251
|
return json;
|
|
2027
2252
|
}
|
|
2028
2253
|
return {
|
|
2029
|
-
"
|
|
2254
|
+
"ready": !exists(json, "ready") ? void 0 : json["ready"]
|
|
2030
2255
|
};
|
|
2031
2256
|
}
|
|
2032
|
-
function
|
|
2257
|
+
function ReadinessCheck200ResponseToJSON(value) {
|
|
2033
2258
|
if (value === void 0) {
|
|
2034
2259
|
return void 0;
|
|
2035
2260
|
}
|
|
@@ -2037,32 +2262,28 @@ function PrepareUpload200ResponseToJSON(value) {
|
|
|
2037
2262
|
return null;
|
|
2038
2263
|
}
|
|
2039
2264
|
return {
|
|
2040
|
-
"
|
|
2265
|
+
"ready": value.ready
|
|
2041
2266
|
};
|
|
2042
2267
|
}
|
|
2043
2268
|
|
|
2044
|
-
// src/generated/models/
|
|
2045
|
-
function
|
|
2269
|
+
// src/generated/models/ReadinessCheck503Response.ts
|
|
2270
|
+
function instanceOfReadinessCheck503Response(value) {
|
|
2046
2271
|
let isInstance = true;
|
|
2047
|
-
isInstance = isInstance && "path" in value;
|
|
2048
|
-
isInstance = isInstance && "size" in value;
|
|
2049
|
-
isInstance = isInstance && "contentType" in value;
|
|
2050
2272
|
return isInstance;
|
|
2051
2273
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
2274
|
+
function ReadinessCheck503ResponseFromJSON(json) {
|
|
2275
|
+
return ReadinessCheck503ResponseFromJSONTyped(json, false);
|
|
2054
2276
|
}
|
|
2055
|
-
function
|
|
2277
|
+
function ReadinessCheck503ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2056
2278
|
if (json === void 0 || json === null) {
|
|
2057
2279
|
return json;
|
|
2058
2280
|
}
|
|
2059
2281
|
return {
|
|
2060
|
-
"
|
|
2061
|
-
"
|
|
2062
|
-
"contentType": json["contentType"]
|
|
2282
|
+
"ready": !exists(json, "ready") ? void 0 : json["ready"],
|
|
2283
|
+
"reason": !exists(json, "reason") ? void 0 : json["reason"]
|
|
2063
2284
|
};
|
|
2064
2285
|
}
|
|
2065
|
-
function
|
|
2286
|
+
function ReadinessCheck503ResponseToJSON(value) {
|
|
2066
2287
|
if (value === void 0) {
|
|
2067
2288
|
return void 0;
|
|
2068
2289
|
}
|
|
@@ -2070,34 +2291,80 @@ function PrepareUploadRequestFilesInnerToJSON(value) {
|
|
|
2070
2291
|
return null;
|
|
2071
2292
|
}
|
|
2072
2293
|
return {
|
|
2073
|
-
"
|
|
2074
|
-
"
|
|
2075
|
-
|
|
2294
|
+
"ready": value.ready,
|
|
2295
|
+
"reason": value.reason
|
|
2296
|
+
};
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
// src/generated/models/ResolveManifest200ResponseComponentsInner.ts
|
|
2300
|
+
var ResolveManifest200ResponseComponentsInnerPriorityEnum = {
|
|
2301
|
+
CRITICAL: "critical",
|
|
2302
|
+
HIGH: "high",
|
|
2303
|
+
NORMAL: "normal",
|
|
2304
|
+
LOW: "low"
|
|
2305
|
+
};
|
|
2306
|
+
function instanceOfResolveManifest200ResponseComponentsInner(value) {
|
|
2307
|
+
let isInstance = true;
|
|
2308
|
+
return isInstance;
|
|
2309
|
+
}
|
|
2310
|
+
function ResolveManifest200ResponseComponentsInnerFromJSON(json) {
|
|
2311
|
+
return ResolveManifest200ResponseComponentsInnerFromJSONTyped(json, false);
|
|
2312
|
+
}
|
|
2313
|
+
function ResolveManifest200ResponseComponentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2314
|
+
if (json === void 0 || json === null) {
|
|
2315
|
+
return json;
|
|
2316
|
+
}
|
|
2317
|
+
return {
|
|
2318
|
+
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
2319
|
+
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
2320
|
+
"entry": !exists(json, "entry") ? void 0 : json["entry"],
|
|
2321
|
+
"styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
|
|
2322
|
+
"integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
|
|
2323
|
+
"preload": !exists(json, "preload") ? void 0 : json["preload"],
|
|
2324
|
+
"priority": !exists(json, "priority") ? void 0 : json["priority"],
|
|
2325
|
+
"blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
|
|
2326
|
+
"fallback": !exists(json, "fallback") ? void 0 : json["fallback"]
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
function ResolveManifest200ResponseComponentsInnerToJSON(value) {
|
|
2330
|
+
if (value === void 0) {
|
|
2331
|
+
return void 0;
|
|
2332
|
+
}
|
|
2333
|
+
if (value === null) {
|
|
2334
|
+
return null;
|
|
2335
|
+
}
|
|
2336
|
+
return {
|
|
2337
|
+
"name": value.name,
|
|
2338
|
+
"version": value.version,
|
|
2339
|
+
"entry": value.entry,
|
|
2340
|
+
"styleUrl": value.styleUrl,
|
|
2341
|
+
"integrity": value.integrity,
|
|
2342
|
+
"preload": value.preload,
|
|
2343
|
+
"priority": value.priority,
|
|
2344
|
+
"blocked": value.blocked,
|
|
2345
|
+
"fallback": value.fallback
|
|
2076
2346
|
};
|
|
2077
2347
|
}
|
|
2078
2348
|
|
|
2079
|
-
// src/generated/models/
|
|
2080
|
-
function
|
|
2349
|
+
// src/generated/models/ResolveVersions200ResponseBlockedInner.ts
|
|
2350
|
+
function instanceOfResolveVersions200ResponseBlockedInner(value) {
|
|
2081
2351
|
let isInstance = true;
|
|
2082
|
-
isInstance = isInstance && "componentId" in value;
|
|
2083
|
-
isInstance = isInstance && "version" in value;
|
|
2084
|
-
isInstance = isInstance && "files" in value;
|
|
2085
2352
|
return isInstance;
|
|
2086
2353
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2354
|
+
function ResolveVersions200ResponseBlockedInnerFromJSON(json) {
|
|
2355
|
+
return ResolveVersions200ResponseBlockedInnerFromJSONTyped(json, false);
|
|
2089
2356
|
}
|
|
2090
|
-
function
|
|
2357
|
+
function ResolveVersions200ResponseBlockedInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2091
2358
|
if (json === void 0 || json === null) {
|
|
2092
2359
|
return json;
|
|
2093
2360
|
}
|
|
2094
2361
|
return {
|
|
2095
|
-
"
|
|
2096
|
-
"version": json["version"],
|
|
2097
|
-
"
|
|
2362
|
+
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
2363
|
+
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
2364
|
+
"reason": !exists(json, "reason") ? void 0 : json["reason"]
|
|
2098
2365
|
};
|
|
2099
2366
|
}
|
|
2100
|
-
function
|
|
2367
|
+
function ResolveVersions200ResponseBlockedInnerToJSON(value) {
|
|
2101
2368
|
if (value === void 0) {
|
|
2102
2369
|
return void 0;
|
|
2103
2370
|
}
|
|
@@ -2105,30 +2372,31 @@ function PrepareUploadRequestToJSON(value) {
|
|
|
2105
2372
|
return null;
|
|
2106
2373
|
}
|
|
2107
2374
|
return {
|
|
2108
|
-
"
|
|
2375
|
+
"name": value.name,
|
|
2109
2376
|
"version": value.version,
|
|
2110
|
-
"
|
|
2377
|
+
"reason": value.reason
|
|
2111
2378
|
};
|
|
2112
2379
|
}
|
|
2113
2380
|
|
|
2114
|
-
// src/generated/models/
|
|
2115
|
-
function
|
|
2381
|
+
// src/generated/models/ResolveManifest200Response.ts
|
|
2382
|
+
function instanceOfResolveManifest200Response(value) {
|
|
2116
2383
|
let isInstance = true;
|
|
2117
|
-
isInstance = isInstance && "data" in value;
|
|
2118
2384
|
return isInstance;
|
|
2119
2385
|
}
|
|
2120
|
-
function
|
|
2121
|
-
return
|
|
2386
|
+
function ResolveManifest200ResponseFromJSON(json) {
|
|
2387
|
+
return ResolveManifest200ResponseFromJSONTyped(json, false);
|
|
2122
2388
|
}
|
|
2123
|
-
function
|
|
2389
|
+
function ResolveManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2124
2390
|
if (json === void 0 || json === null) {
|
|
2125
2391
|
return json;
|
|
2126
2392
|
}
|
|
2127
2393
|
return {
|
|
2128
|
-
"
|
|
2394
|
+
"components": !exists(json, "components") ? void 0 : json["components"].map(ResolveManifest200ResponseComponentsInnerFromJSON),
|
|
2395
|
+
"blockedComponents": !exists(json, "blockedComponents") ? void 0 : json["blockedComponents"].map(ResolveVersions200ResponseBlockedInnerFromJSON),
|
|
2396
|
+
"preloadHints": !exists(json, "preloadHints") ? void 0 : json["preloadHints"]
|
|
2129
2397
|
};
|
|
2130
2398
|
}
|
|
2131
|
-
function
|
|
2399
|
+
function ResolveManifest200ResponseToJSON(value) {
|
|
2132
2400
|
if (value === void 0) {
|
|
2133
2401
|
return void 0;
|
|
2134
2402
|
}
|
|
@@ -2136,27 +2404,32 @@ function PrepareUploadResponseToJSON(value) {
|
|
|
2136
2404
|
return null;
|
|
2137
2405
|
}
|
|
2138
2406
|
return {
|
|
2139
|
-
"
|
|
2407
|
+
"components": value.components === void 0 ? void 0 : value.components.map(ResolveManifest200ResponseComponentsInnerToJSON),
|
|
2408
|
+
"blockedComponents": value.blockedComponents === void 0 ? void 0 : value.blockedComponents.map(ResolveVersions200ResponseBlockedInnerToJSON),
|
|
2409
|
+
"preloadHints": value.preloadHints
|
|
2140
2410
|
};
|
|
2141
2411
|
}
|
|
2142
2412
|
|
|
2143
|
-
// src/generated/models/
|
|
2144
|
-
function
|
|
2413
|
+
// src/generated/models/ResolveManifestRequest.ts
|
|
2414
|
+
function instanceOfResolveManifestRequest(value) {
|
|
2145
2415
|
let isInstance = true;
|
|
2416
|
+
isInstance = isInstance && "manifestId" in value;
|
|
2146
2417
|
return isInstance;
|
|
2147
2418
|
}
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2419
|
+
function ResolveManifestRequestFromJSON(json) {
|
|
2420
|
+
return ResolveManifestRequestFromJSONTyped(json, false);
|
|
2150
2421
|
}
|
|
2151
|
-
function
|
|
2422
|
+
function ResolveManifestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2152
2423
|
if (json === void 0 || json === null) {
|
|
2153
2424
|
return json;
|
|
2154
2425
|
}
|
|
2155
2426
|
return {
|
|
2156
|
-
"
|
|
2427
|
+
"manifestId": json["manifestId"],
|
|
2428
|
+
"preload": !exists(json, "preload") ? void 0 : json["preload"],
|
|
2429
|
+
"checkIntegrity": !exists(json, "checkIntegrity") ? void 0 : json["checkIntegrity"]
|
|
2157
2430
|
};
|
|
2158
2431
|
}
|
|
2159
|
-
function
|
|
2432
|
+
function ResolveManifestRequestToJSON(value) {
|
|
2160
2433
|
if (value === void 0) {
|
|
2161
2434
|
return void 0;
|
|
2162
2435
|
}
|
|
@@ -2164,27 +2437,31 @@ function PublishVersionRequestToJSON(value) {
|
|
|
2164
2437
|
return null;
|
|
2165
2438
|
}
|
|
2166
2439
|
return {
|
|
2167
|
-
"
|
|
2440
|
+
"manifestId": value.manifestId,
|
|
2441
|
+
"preload": value.preload,
|
|
2442
|
+
"checkIntegrity": value.checkIntegrity
|
|
2168
2443
|
};
|
|
2169
2444
|
}
|
|
2170
2445
|
|
|
2171
|
-
// src/generated/models/
|
|
2172
|
-
function
|
|
2446
|
+
// src/generated/models/ResolveVersions200ResponseErrorsInner.ts
|
|
2447
|
+
function instanceOfResolveVersions200ResponseErrorsInner(value) {
|
|
2173
2448
|
let isInstance = true;
|
|
2174
2449
|
return isInstance;
|
|
2175
2450
|
}
|
|
2176
|
-
function
|
|
2177
|
-
return
|
|
2451
|
+
function ResolveVersions200ResponseErrorsInnerFromJSON(json) {
|
|
2452
|
+
return ResolveVersions200ResponseErrorsInnerFromJSONTyped(json, false);
|
|
2178
2453
|
}
|
|
2179
|
-
function
|
|
2454
|
+
function ResolveVersions200ResponseErrorsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2180
2455
|
if (json === void 0 || json === null) {
|
|
2181
2456
|
return json;
|
|
2182
2457
|
}
|
|
2183
2458
|
return {
|
|
2184
|
-
"
|
|
2459
|
+
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
2460
|
+
"versionRange": !exists(json, "versionRange") ? void 0 : json["versionRange"],
|
|
2461
|
+
"error": !exists(json, "error") ? void 0 : json["error"]
|
|
2185
2462
|
};
|
|
2186
2463
|
}
|
|
2187
|
-
function
|
|
2464
|
+
function ResolveVersions200ResponseErrorsInnerToJSON(value) {
|
|
2188
2465
|
if (value === void 0) {
|
|
2189
2466
|
return void 0;
|
|
2190
2467
|
}
|
|
@@ -2192,28 +2469,39 @@ function ReadinessCheck200ResponseToJSON(value) {
|
|
|
2192
2469
|
return null;
|
|
2193
2470
|
}
|
|
2194
2471
|
return {
|
|
2195
|
-
"
|
|
2472
|
+
"name": value.name,
|
|
2473
|
+
"versionRange": value.versionRange,
|
|
2474
|
+
"error": value.error
|
|
2196
2475
|
};
|
|
2197
2476
|
}
|
|
2198
2477
|
|
|
2199
|
-
// src/generated/models/
|
|
2200
|
-
|
|
2478
|
+
// src/generated/models/ResolveVersions200ResponseResolvedInner.ts
|
|
2479
|
+
var ResolveVersions200ResponseResolvedInnerStatusEnum = {
|
|
2480
|
+
STABLE: "stable",
|
|
2481
|
+
DEPRECATED: "deprecated"
|
|
2482
|
+
};
|
|
2483
|
+
function instanceOfResolveVersions200ResponseResolvedInner(value) {
|
|
2201
2484
|
let isInstance = true;
|
|
2202
2485
|
return isInstance;
|
|
2203
2486
|
}
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2487
|
+
function ResolveVersions200ResponseResolvedInnerFromJSON(json) {
|
|
2488
|
+
return ResolveVersions200ResponseResolvedInnerFromJSONTyped(json, false);
|
|
2206
2489
|
}
|
|
2207
|
-
function
|
|
2490
|
+
function ResolveVersions200ResponseResolvedInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2208
2491
|
if (json === void 0 || json === null) {
|
|
2209
2492
|
return json;
|
|
2210
2493
|
}
|
|
2211
2494
|
return {
|
|
2212
|
-
"
|
|
2213
|
-
"
|
|
2495
|
+
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
2496
|
+
"versionRange": !exists(json, "versionRange") ? void 0 : json["versionRange"],
|
|
2497
|
+
"resolvedVersion": !exists(json, "resolvedVersion") ? void 0 : json["resolvedVersion"],
|
|
2498
|
+
"entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
|
|
2499
|
+
"integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
|
|
2500
|
+
"status": !exists(json, "status") ? void 0 : json["status"],
|
|
2501
|
+
"compat": !exists(json, "compat") ? void 0 : json["compat"]
|
|
2214
2502
|
};
|
|
2215
2503
|
}
|
|
2216
|
-
function
|
|
2504
|
+
function ResolveVersions200ResponseResolvedInnerToJSON(value) {
|
|
2217
2505
|
if (value === void 0) {
|
|
2218
2506
|
return void 0;
|
|
2219
2507
|
}
|
|
@@ -2221,30 +2509,35 @@ function ReadinessCheck503ResponseToJSON(value) {
|
|
|
2221
2509
|
return null;
|
|
2222
2510
|
}
|
|
2223
2511
|
return {
|
|
2224
|
-
"
|
|
2225
|
-
"
|
|
2512
|
+
"name": value.name,
|
|
2513
|
+
"versionRange": value.versionRange,
|
|
2514
|
+
"resolvedVersion": value.resolvedVersion,
|
|
2515
|
+
"entryUrl": value.entryUrl,
|
|
2516
|
+
"integrity": value.integrity,
|
|
2517
|
+
"status": value.status,
|
|
2518
|
+
"compat": value.compat
|
|
2226
2519
|
};
|
|
2227
2520
|
}
|
|
2228
2521
|
|
|
2229
|
-
// src/generated/models/
|
|
2230
|
-
function
|
|
2522
|
+
// src/generated/models/ResolveVersions200Response.ts
|
|
2523
|
+
function instanceOfResolveVersions200Response(value) {
|
|
2231
2524
|
let isInstance = true;
|
|
2232
2525
|
return isInstance;
|
|
2233
2526
|
}
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2527
|
+
function ResolveVersions200ResponseFromJSON(json) {
|
|
2528
|
+
return ResolveVersions200ResponseFromJSONTyped(json, false);
|
|
2236
2529
|
}
|
|
2237
|
-
function
|
|
2530
|
+
function ResolveVersions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2238
2531
|
if (json === void 0 || json === null) {
|
|
2239
2532
|
return json;
|
|
2240
2533
|
}
|
|
2241
2534
|
return {
|
|
2242
|
-
"
|
|
2243
|
-
"
|
|
2244
|
-
"
|
|
2535
|
+
"resolved": !exists(json, "resolved") ? void 0 : json["resolved"].map(ResolveVersions200ResponseResolvedInnerFromJSON),
|
|
2536
|
+
"blocked": !exists(json, "blocked") ? void 0 : json["blocked"].map(ResolveVersions200ResponseBlockedInnerFromJSON),
|
|
2537
|
+
"errors": !exists(json, "errors") ? void 0 : json["errors"].map(ResolveVersions200ResponseErrorsInnerFromJSON)
|
|
2245
2538
|
};
|
|
2246
2539
|
}
|
|
2247
|
-
function
|
|
2540
|
+
function ResolveVersions200ResponseToJSON(value) {
|
|
2248
2541
|
if (value === void 0) {
|
|
2249
2542
|
return void 0;
|
|
2250
2543
|
}
|
|
@@ -2252,43 +2545,32 @@ function ResolveManifest200ResponseBlockedComponentsInnerToJSON(value) {
|
|
|
2252
2545
|
return null;
|
|
2253
2546
|
}
|
|
2254
2547
|
return {
|
|
2255
|
-
"
|
|
2256
|
-
"
|
|
2257
|
-
"
|
|
2548
|
+
"resolved": value.resolved === void 0 ? void 0 : value.resolved.map(ResolveVersions200ResponseResolvedInnerToJSON),
|
|
2549
|
+
"blocked": value.blocked === void 0 ? void 0 : value.blocked.map(ResolveVersions200ResponseBlockedInnerToJSON),
|
|
2550
|
+
"errors": value.errors === void 0 ? void 0 : value.errors.map(ResolveVersions200ResponseErrorsInnerToJSON)
|
|
2258
2551
|
};
|
|
2259
2552
|
}
|
|
2260
2553
|
|
|
2261
|
-
// src/generated/models/
|
|
2262
|
-
|
|
2263
|
-
CRITICAL: "critical",
|
|
2264
|
-
HIGH: "high",
|
|
2265
|
-
NORMAL: "normal",
|
|
2266
|
-
LOW: "low"
|
|
2267
|
-
};
|
|
2268
|
-
function instanceOfResolveManifest200ResponseComponentsInner(value) {
|
|
2554
|
+
// src/generated/models/ResolveVersionsRequestComponentsInner.ts
|
|
2555
|
+
function instanceOfResolveVersionsRequestComponentsInner(value) {
|
|
2269
2556
|
let isInstance = true;
|
|
2557
|
+
isInstance = isInstance && "name" in value;
|
|
2558
|
+
isInstance = isInstance && "versionRange" in value;
|
|
2270
2559
|
return isInstance;
|
|
2271
2560
|
}
|
|
2272
|
-
function
|
|
2273
|
-
return
|
|
2561
|
+
function ResolveVersionsRequestComponentsInnerFromJSON(json) {
|
|
2562
|
+
return ResolveVersionsRequestComponentsInnerFromJSONTyped(json, false);
|
|
2274
2563
|
}
|
|
2275
|
-
function
|
|
2564
|
+
function ResolveVersionsRequestComponentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2276
2565
|
if (json === void 0 || json === null) {
|
|
2277
2566
|
return json;
|
|
2278
2567
|
}
|
|
2279
2568
|
return {
|
|
2280
|
-
"name":
|
|
2281
|
-
"
|
|
2282
|
-
"entry": !exists(json, "entry") ? void 0 : json["entry"],
|
|
2283
|
-
"styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
|
|
2284
|
-
"integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
|
|
2285
|
-
"preload": !exists(json, "preload") ? void 0 : json["preload"],
|
|
2286
|
-
"priority": !exists(json, "priority") ? void 0 : json["priority"],
|
|
2287
|
-
"blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
|
|
2288
|
-
"fallback": !exists(json, "fallback") ? void 0 : json["fallback"]
|
|
2569
|
+
"name": json["name"],
|
|
2570
|
+
"versionRange": json["versionRange"]
|
|
2289
2571
|
};
|
|
2290
2572
|
}
|
|
2291
|
-
function
|
|
2573
|
+
function ResolveVersionsRequestComponentsInnerToJSON(value) {
|
|
2292
2574
|
if (value === void 0) {
|
|
2293
2575
|
return void 0;
|
|
2294
2576
|
}
|
|
@@ -2297,36 +2579,30 @@ function ResolveManifest200ResponseComponentsInnerToJSON(value) {
|
|
|
2297
2579
|
}
|
|
2298
2580
|
return {
|
|
2299
2581
|
"name": value.name,
|
|
2300
|
-
"
|
|
2301
|
-
"entry": value.entry,
|
|
2302
|
-
"styleUrl": value.styleUrl,
|
|
2303
|
-
"integrity": value.integrity,
|
|
2304
|
-
"preload": value.preload,
|
|
2305
|
-
"priority": value.priority,
|
|
2306
|
-
"blocked": value.blocked,
|
|
2307
|
-
"fallback": value.fallback
|
|
2582
|
+
"versionRange": value.versionRange
|
|
2308
2583
|
};
|
|
2309
2584
|
}
|
|
2310
2585
|
|
|
2311
|
-
// src/generated/models/
|
|
2312
|
-
function
|
|
2586
|
+
// src/generated/models/ResolveVersionsRequest.ts
|
|
2587
|
+
function instanceOfResolveVersionsRequest(value) {
|
|
2313
2588
|
let isInstance = true;
|
|
2589
|
+
isInstance = isInstance && "components" in value;
|
|
2314
2590
|
return isInstance;
|
|
2315
2591
|
}
|
|
2316
|
-
function
|
|
2317
|
-
return
|
|
2592
|
+
function ResolveVersionsRequestFromJSON(json) {
|
|
2593
|
+
return ResolveVersionsRequestFromJSONTyped(json, false);
|
|
2318
2594
|
}
|
|
2319
|
-
function
|
|
2595
|
+
function ResolveVersionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2320
2596
|
if (json === void 0 || json === null) {
|
|
2321
2597
|
return json;
|
|
2322
2598
|
}
|
|
2323
2599
|
return {
|
|
2324
|
-
"components":
|
|
2325
|
-
"
|
|
2326
|
-
"
|
|
2600
|
+
"components": json["components"].map(ResolveVersionsRequestComponentsInnerFromJSON),
|
|
2601
|
+
"runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"],
|
|
2602
|
+
"skipBlocked": !exists(json, "skipBlocked") ? void 0 : json["skipBlocked"]
|
|
2327
2603
|
};
|
|
2328
2604
|
}
|
|
2329
|
-
function
|
|
2605
|
+
function ResolveVersionsRequestToJSON(value) {
|
|
2330
2606
|
if (value === void 0) {
|
|
2331
2607
|
return void 0;
|
|
2332
2608
|
}
|
|
@@ -2334,32 +2610,41 @@ function ResolveManifest200ResponseToJSON(value) {
|
|
|
2334
2610
|
return null;
|
|
2335
2611
|
}
|
|
2336
2612
|
return {
|
|
2337
|
-
"components": value.components
|
|
2338
|
-
"
|
|
2339
|
-
"
|
|
2613
|
+
"components": value.components.map(ResolveVersionsRequestComponentsInnerToJSON),
|
|
2614
|
+
"runtimeVersion": value.runtimeVersion,
|
|
2615
|
+
"skipBlocked": value.skipBlocked
|
|
2340
2616
|
};
|
|
2341
2617
|
}
|
|
2342
2618
|
|
|
2343
|
-
// src/generated/models/
|
|
2344
|
-
function
|
|
2619
|
+
// src/generated/models/SuccessResponse.ts
|
|
2620
|
+
function instanceOfSuccessResponse(value) {
|
|
2345
2621
|
let isInstance = true;
|
|
2346
|
-
isInstance = isInstance && "
|
|
2622
|
+
isInstance = isInstance && "success" in value;
|
|
2623
|
+
isInstance = isInstance && "code" in value;
|
|
2624
|
+
isInstance = isInstance && "message" in value;
|
|
2625
|
+
isInstance = isInstance && "data" in value;
|
|
2626
|
+
isInstance = isInstance && "timestamp" in value;
|
|
2627
|
+
isInstance = isInstance && "path" in value;
|
|
2347
2628
|
return isInstance;
|
|
2348
2629
|
}
|
|
2349
|
-
function
|
|
2350
|
-
return
|
|
2630
|
+
function SuccessResponseFromJSON(json) {
|
|
2631
|
+
return SuccessResponseFromJSONTyped(json, false);
|
|
2351
2632
|
}
|
|
2352
|
-
function
|
|
2633
|
+
function SuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2353
2634
|
if (json === void 0 || json === null) {
|
|
2354
2635
|
return json;
|
|
2355
2636
|
}
|
|
2356
2637
|
return {
|
|
2357
|
-
"
|
|
2358
|
-
"
|
|
2359
|
-
"
|
|
2638
|
+
"success": json["success"],
|
|
2639
|
+
"code": json["code"],
|
|
2640
|
+
"message": json["message"],
|
|
2641
|
+
"data": json["data"],
|
|
2642
|
+
"timestamp": json["timestamp"],
|
|
2643
|
+
"path": json["path"],
|
|
2644
|
+
"requestId": !exists(json, "requestId") ? void 0 : json["requestId"]
|
|
2360
2645
|
};
|
|
2361
2646
|
}
|
|
2362
|
-
function
|
|
2647
|
+
function SuccessResponseToJSON(value) {
|
|
2363
2648
|
if (value === void 0) {
|
|
2364
2649
|
return void 0;
|
|
2365
2650
|
}
|
|
@@ -2367,9 +2652,13 @@ function ResolveManifestRequestToJSON(value) {
|
|
|
2367
2652
|
return null;
|
|
2368
2653
|
}
|
|
2369
2654
|
return {
|
|
2370
|
-
"
|
|
2371
|
-
"
|
|
2372
|
-
"
|
|
2655
|
+
"success": value.success,
|
|
2656
|
+
"code": value.code,
|
|
2657
|
+
"message": value.message,
|
|
2658
|
+
"data": value.data,
|
|
2659
|
+
"timestamp": value.timestamp,
|
|
2660
|
+
"path": value.path,
|
|
2661
|
+
"requestId": value.requestId
|
|
2373
2662
|
};
|
|
2374
2663
|
}
|
|
2375
2664
|
|
|
@@ -2490,54 +2779,25 @@ function UpdateComponentRequestToJSON(value) {
|
|
|
2490
2779
|
};
|
|
2491
2780
|
}
|
|
2492
2781
|
|
|
2493
|
-
// src/generated/models/
|
|
2494
|
-
|
|
2495
|
-
let isInstance = true;
|
|
2496
|
-
isInstance = isInstance && "data" in value;
|
|
2497
|
-
return isInstance;
|
|
2498
|
-
}
|
|
2499
|
-
function VersionDetailResponseFromJSON(json) {
|
|
2500
|
-
return VersionDetailResponseFromJSONTyped(json, false);
|
|
2501
|
-
}
|
|
2502
|
-
function VersionDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2503
|
-
if (json === void 0 || json === null) {
|
|
2504
|
-
return json;
|
|
2505
|
-
}
|
|
2506
|
-
return {
|
|
2507
|
-
"data": GetVersion200ResponseDataFromJSON(json["data"])
|
|
2508
|
-
};
|
|
2509
|
-
}
|
|
2510
|
-
function VersionDetailResponseToJSON(value) {
|
|
2511
|
-
if (value === void 0) {
|
|
2512
|
-
return void 0;
|
|
2513
|
-
}
|
|
2514
|
-
if (value === null) {
|
|
2515
|
-
return null;
|
|
2516
|
-
}
|
|
2517
|
-
return {
|
|
2518
|
-
"data": GetVersion200ResponseDataToJSON(value.data)
|
|
2519
|
-
};
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
// src/generated/models/VersionInfo.ts
|
|
2523
|
-
var VersionInfoStatusEnum = {
|
|
2782
|
+
// src/generated/models/VersionDetailResponseData.ts
|
|
2783
|
+
var VersionDetailResponseDataStatusEnum = {
|
|
2524
2784
|
DRAFT: "draft",
|
|
2525
2785
|
CANARY: "canary",
|
|
2526
2786
|
STABLE: "stable",
|
|
2527
2787
|
DEPRECATED: "deprecated",
|
|
2528
2788
|
BLOCKED: "blocked"
|
|
2529
2789
|
};
|
|
2530
|
-
function
|
|
2790
|
+
function instanceOfVersionDetailResponseData(value) {
|
|
2531
2791
|
let isInstance = true;
|
|
2532
2792
|
isInstance = isInstance && "version" in value;
|
|
2533
2793
|
isInstance = isInstance && "status" in value;
|
|
2534
2794
|
isInstance = isInstance && "createdAt" in value;
|
|
2535
2795
|
return isInstance;
|
|
2536
2796
|
}
|
|
2537
|
-
function
|
|
2538
|
-
return
|
|
2797
|
+
function VersionDetailResponseDataFromJSON(json) {
|
|
2798
|
+
return VersionDetailResponseDataFromJSONTyped(json, false);
|
|
2539
2799
|
}
|
|
2540
|
-
function
|
|
2800
|
+
function VersionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
2541
2801
|
if (json === void 0 || json === null) {
|
|
2542
2802
|
return json;
|
|
2543
2803
|
}
|
|
@@ -2545,16 +2805,19 @@ function VersionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2545
2805
|
"version": json["version"],
|
|
2546
2806
|
"status": json["status"],
|
|
2547
2807
|
"changelog": !exists(json, "changelog") ? void 0 : json["changelog"],
|
|
2548
|
-
"integrity": !exists(json, "integrity") ? void 0 :
|
|
2808
|
+
"integrity": !exists(json, "integrity") ? void 0 : VersionIntegrityFromJSON(json["integrity"]),
|
|
2549
2809
|
"size": !exists(json, "size") ? void 0 : json["size"],
|
|
2550
2810
|
"createdAt": new Date(json["createdAt"]),
|
|
2551
2811
|
"publishedAt": !exists(json, "publishedAt") ? void 0 : new Date(json["publishedAt"]),
|
|
2552
2812
|
"deprecatedAt": !exists(json, "deprecatedAt") ? void 0 : new Date(json["deprecatedAt"]),
|
|
2553
2813
|
"deprecationMessage": !exists(json, "deprecationMessage") ? void 0 : json["deprecationMessage"],
|
|
2554
|
-
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"]
|
|
2814
|
+
"downloads": !exists(json, "downloads") ? void 0 : json["downloads"],
|
|
2815
|
+
"meta": !exists(json, "meta") ? void 0 : json["meta"],
|
|
2816
|
+
"entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
|
|
2817
|
+
"files": !exists(json, "files") ? void 0 : json["files"].map(FileInfoFromJSON)
|
|
2555
2818
|
};
|
|
2556
2819
|
}
|
|
2557
|
-
function
|
|
2820
|
+
function VersionDetailResponseDataToJSON(value) {
|
|
2558
2821
|
if (value === void 0) {
|
|
2559
2822
|
return void 0;
|
|
2560
2823
|
}
|
|
@@ -2565,40 +2828,37 @@ function VersionInfoToJSON(value) {
|
|
|
2565
2828
|
"version": value.version,
|
|
2566
2829
|
"status": value.status,
|
|
2567
2830
|
"changelog": value.changelog,
|
|
2568
|
-
"integrity":
|
|
2831
|
+
"integrity": VersionIntegrityToJSON(value.integrity),
|
|
2569
2832
|
"size": value.size,
|
|
2570
2833
|
"createdAt": value.createdAt.toISOString(),
|
|
2571
2834
|
"publishedAt": value.publishedAt === void 0 ? void 0 : value.publishedAt.toISOString(),
|
|
2572
2835
|
"deprecatedAt": value.deprecatedAt === void 0 ? void 0 : value.deprecatedAt.toISOString(),
|
|
2573
2836
|
"deprecationMessage": value.deprecationMessage,
|
|
2574
|
-
"downloads": value.downloads
|
|
2837
|
+
"downloads": value.downloads,
|
|
2838
|
+
"meta": value.meta,
|
|
2839
|
+
"entryUrl": value.entryUrl,
|
|
2840
|
+
"files": value.files === void 0 ? void 0 : value.files.map(FileInfoToJSON)
|
|
2575
2841
|
};
|
|
2576
2842
|
}
|
|
2577
2843
|
|
|
2578
|
-
// src/generated/models/
|
|
2579
|
-
|
|
2580
|
-
SHA384: "sha384",
|
|
2581
|
-
SHA512: "sha512"
|
|
2582
|
-
};
|
|
2583
|
-
function instanceOfVersionIntegrity(value) {
|
|
2844
|
+
// src/generated/models/VersionDetailResponse.ts
|
|
2845
|
+
function instanceOfVersionDetailResponse(value) {
|
|
2584
2846
|
let isInstance = true;
|
|
2585
|
-
isInstance = isInstance && "
|
|
2586
|
-
isInstance = isInstance && "hash" in value;
|
|
2847
|
+
isInstance = isInstance && "data" in value;
|
|
2587
2848
|
return isInstance;
|
|
2588
2849
|
}
|
|
2589
|
-
function
|
|
2590
|
-
return
|
|
2850
|
+
function VersionDetailResponseFromJSON(json) {
|
|
2851
|
+
return VersionDetailResponseFromJSONTyped(json, false);
|
|
2591
2852
|
}
|
|
2592
|
-
function
|
|
2853
|
+
function VersionDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2593
2854
|
if (json === void 0 || json === null) {
|
|
2594
2855
|
return json;
|
|
2595
2856
|
}
|
|
2596
2857
|
return {
|
|
2597
|
-
"
|
|
2598
|
-
"hash": json["hash"]
|
|
2858
|
+
"data": VersionDetailResponseDataFromJSON(json["data"])
|
|
2599
2859
|
};
|
|
2600
2860
|
}
|
|
2601
|
-
function
|
|
2861
|
+
function VersionDetailResponseToJSON(value) {
|
|
2602
2862
|
if (value === void 0) {
|
|
2603
2863
|
return void 0;
|
|
2604
2864
|
}
|
|
@@ -2606,8 +2866,7 @@ function VersionIntegrityToJSON(value) {
|
|
|
2606
2866
|
return null;
|
|
2607
2867
|
}
|
|
2608
2868
|
return {
|
|
2609
|
-
"
|
|
2610
|
-
"hash": value.hash
|
|
2869
|
+
"data": VersionDetailResponseDataToJSON(value.data)
|
|
2611
2870
|
};
|
|
2612
2871
|
}
|
|
2613
2872
|
|
|
@@ -2626,8 +2885,8 @@ function VersionListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2626
2885
|
return json;
|
|
2627
2886
|
}
|
|
2628
2887
|
return {
|
|
2629
|
-
"data": json["data"].map(
|
|
2630
|
-
"meta":
|
|
2888
|
+
"data": json["data"].map(VersionInfoFromJSON),
|
|
2889
|
+
"meta": PaginationMetaFromJSON(json["meta"])
|
|
2631
2890
|
};
|
|
2632
2891
|
}
|
|
2633
2892
|
function VersionListResponseToJSON(value) {
|
|
@@ -2638,8 +2897,8 @@ function VersionListResponseToJSON(value) {
|
|
|
2638
2897
|
return null;
|
|
2639
2898
|
}
|
|
2640
2899
|
return {
|
|
2641
|
-
"data": value.data.map(
|
|
2642
|
-
"meta":
|
|
2900
|
+
"data": value.data.map(VersionInfoToJSON),
|
|
2901
|
+
"meta": PaginationMetaToJSON(value.meta)
|
|
2643
2902
|
};
|
|
2644
2903
|
}
|
|
2645
2904
|
|
|
@@ -2657,7 +2916,7 @@ function VersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2657
2916
|
return json;
|
|
2658
2917
|
}
|
|
2659
2918
|
return {
|
|
2660
|
-
"data":
|
|
2919
|
+
"data": VersionInfoFromJSON(json["data"])
|
|
2661
2920
|
};
|
|
2662
2921
|
}
|
|
2663
2922
|
function VersionResponseToJSON(value) {
|
|
@@ -2668,7 +2927,7 @@ function VersionResponseToJSON(value) {
|
|
|
2668
2927
|
return null;
|
|
2669
2928
|
}
|
|
2670
2929
|
return {
|
|
2671
|
-
"data":
|
|
2930
|
+
"data": VersionInfoToJSON(value.data)
|
|
2672
2931
|
};
|
|
2673
2932
|
}
|
|
2674
2933
|
|
|
@@ -2745,8 +3004,8 @@ var BatchApi = class extends BaseAPI {
|
|
|
2745
3004
|
return await response.value();
|
|
2746
3005
|
}
|
|
2747
3006
|
/**
|
|
2748
|
-
* 根据 Manifest 解析所有组件的加载信息。 返回可直接用于 Runtime 加载的组件配置。
|
|
2749
|
-
* 解析 Manifest
|
|
3007
|
+
* 根据 Manifest ID 解析所有组件的加载信息。 返回可直接用于 Runtime 加载的组件配置。
|
|
3008
|
+
* 解析 Manifest(根据 Manifest ID)
|
|
2750
3009
|
*/
|
|
2751
3010
|
async resolveManifestRaw(requestParameters, initOverrides) {
|
|
2752
3011
|
if (requestParameters.resolveManifestRequest === null || requestParameters.resolveManifestRequest === void 0) {
|
|
@@ -2763,7 +3022,7 @@ var BatchApi = class extends BaseAPI {
|
|
|
2763
3022
|
}
|
|
2764
3023
|
}
|
|
2765
3024
|
const response = await this.request({
|
|
2766
|
-
path: `/batch/resolve`,
|
|
3025
|
+
path: `/batch/resolve/manifest`,
|
|
2767
3026
|
method: "POST",
|
|
2768
3027
|
headers: headerParameters,
|
|
2769
3028
|
query: queryParameters,
|
|
@@ -2772,13 +3031,48 @@ var BatchApi = class extends BaseAPI {
|
|
|
2772
3031
|
return new JSONApiResponse(response, (jsonValue) => ResolveManifest200ResponseFromJSON(jsonValue));
|
|
2773
3032
|
}
|
|
2774
3033
|
/**
|
|
2775
|
-
* 根据 Manifest 解析所有组件的加载信息。 返回可直接用于 Runtime 加载的组件配置。
|
|
2776
|
-
* 解析 Manifest
|
|
3034
|
+
* 根据 Manifest ID 解析所有组件的加载信息。 返回可直接用于 Runtime 加载的组件配置。
|
|
3035
|
+
* 解析 Manifest(根据 Manifest ID)
|
|
2777
3036
|
*/
|
|
2778
3037
|
async resolveManifest(requestParameters, initOverrides) {
|
|
2779
3038
|
const response = await this.resolveManifestRaw(requestParameters, initOverrides);
|
|
2780
3039
|
return await response.value();
|
|
2781
3040
|
}
|
|
3041
|
+
/**
|
|
3042
|
+
* 根据组件名称和版本范围解析组件版本。 支持 versionRange(如 ^1.0.0)和运行时版本兼容性检查。 这是设计总纲要求的核心接口,用于: - Editor 发布前校验组件兼容性 - Runtime 按版本范围解析组件 说明:规范中仅定义 POST /batch/resolve。若服务端需同时提供 POST /resolve 作为别名, 可让该路由指向同一实现,客户端统一使用 resolveVersions 调用 /batch/resolve 即可。
|
|
3043
|
+
* 版本解析
|
|
3044
|
+
*/
|
|
3045
|
+
async resolveVersionsRaw(requestParameters, initOverrides) {
|
|
3046
|
+
if (requestParameters.resolveVersionsRequest === null || requestParameters.resolveVersionsRequest === void 0) {
|
|
3047
|
+
throw new RequiredError("resolveVersionsRequest", "Required parameter requestParameters.resolveVersionsRequest was null or undefined when calling resolveVersions.");
|
|
3048
|
+
}
|
|
3049
|
+
const queryParameters = {};
|
|
3050
|
+
const headerParameters = {};
|
|
3051
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3052
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3053
|
+
const token = this.configuration.accessToken;
|
|
3054
|
+
const tokenString = await token("BearerAuth", []);
|
|
3055
|
+
if (tokenString) {
|
|
3056
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
const response = await this.request({
|
|
3060
|
+
path: `/batch/resolve`,
|
|
3061
|
+
method: "POST",
|
|
3062
|
+
headers: headerParameters,
|
|
3063
|
+
query: queryParameters,
|
|
3064
|
+
body: ResolveVersionsRequestToJSON(requestParameters.resolveVersionsRequest)
|
|
3065
|
+
}, initOverrides);
|
|
3066
|
+
return new JSONApiResponse(response, (jsonValue) => ResolveVersions200ResponseFromJSON(jsonValue));
|
|
3067
|
+
}
|
|
3068
|
+
/**
|
|
3069
|
+
* 根据组件名称和版本范围解析组件版本。 支持 versionRange(如 ^1.0.0)和运行时版本兼容性检查。 这是设计总纲要求的核心接口,用于: - Editor 发布前校验组件兼容性 - Runtime 按版本范围解析组件 说明:规范中仅定义 POST /batch/resolve。若服务端需同时提供 POST /resolve 作为别名, 可让该路由指向同一实现,客户端统一使用 resolveVersions 调用 /batch/resolve 即可。
|
|
3070
|
+
* 版本解析
|
|
3071
|
+
*/
|
|
3072
|
+
async resolveVersions(requestParameters, initOverrides) {
|
|
3073
|
+
const response = await this.resolveVersionsRaw(requestParameters, initOverrides);
|
|
3074
|
+
return await response.value();
|
|
3075
|
+
}
|
|
2782
3076
|
};
|
|
2783
3077
|
|
|
2784
3078
|
// src/generated/apis/ComponentsApi.ts
|
|
@@ -2808,7 +3102,7 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2808
3102
|
query: queryParameters,
|
|
2809
3103
|
body: CreateComponentRequestToJSON(requestParameters.createComponentRequest)
|
|
2810
3104
|
}, initOverrides);
|
|
2811
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3105
|
+
return new JSONApiResponse(response, (jsonValue) => ComponentResponseFromJSON(jsonValue));
|
|
2812
3106
|
}
|
|
2813
3107
|
/**
|
|
2814
3108
|
* 在注册中心注册一个新组件
|
|
@@ -2876,7 +3170,7 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2876
3170
|
headers: headerParameters,
|
|
2877
3171
|
query: queryParameters
|
|
2878
3172
|
}, initOverrides);
|
|
2879
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3173
|
+
return new JSONApiResponse(response, (jsonValue) => ComponentResponseFromJSON(jsonValue));
|
|
2880
3174
|
}
|
|
2881
3175
|
/**
|
|
2882
3176
|
* 获取指定组件的完整信息
|
|
@@ -2921,7 +3215,7 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2921
3215
|
headers: headerParameters,
|
|
2922
3216
|
query: queryParameters
|
|
2923
3217
|
}, initOverrides);
|
|
2924
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3218
|
+
return new JSONApiResponse(response, (jsonValue) => ComponentListResponseFromJSON(jsonValue));
|
|
2925
3219
|
}
|
|
2926
3220
|
/**
|
|
2927
3221
|
* 获取注册中心中的所有组件
|
|
@@ -2959,7 +3253,7 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2959
3253
|
query: queryParameters,
|
|
2960
3254
|
body: UpdateComponentRequestToJSON(requestParameters.updateComponentRequest)
|
|
2961
3255
|
}, initOverrides);
|
|
2962
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3256
|
+
return new JSONApiResponse(response, (jsonValue) => ComponentResponseFromJSON(jsonValue));
|
|
2963
3257
|
}
|
|
2964
3258
|
/**
|
|
2965
3259
|
* 更新组件的元数据
|
|
@@ -3004,7 +3298,7 @@ var StatusApi = class extends BaseAPI {
|
|
|
3004
3298
|
query: queryParameters,
|
|
3005
3299
|
body: BlockComponentVersionRequestToJSON(requestParameters.blockComponentVersionRequest)
|
|
3006
3300
|
}, initOverrides);
|
|
3007
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3301
|
+
return new JSONApiResponse(response, (jsonValue) => VersionInfoFromJSON(jsonValue));
|
|
3008
3302
|
}
|
|
3009
3303
|
/**
|
|
3010
3304
|
* 紧急阻断某个组件版本,阻止其被加载。 阻断后,Runtime 将使用 fallback 组件渲染。
|
|
@@ -3081,7 +3375,7 @@ var StatusApi = class extends BaseAPI {
|
|
|
3081
3375
|
query: queryParameters,
|
|
3082
3376
|
body: TransitionComponentStatusRequestToJSON(requestParameters.transitionComponentStatusRequest)
|
|
3083
3377
|
}, initOverrides);
|
|
3084
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3378
|
+
return new JSONApiResponse(response, (jsonValue) => VersionInfoFromJSON(jsonValue));
|
|
3085
3379
|
}
|
|
3086
3380
|
/**
|
|
3087
3381
|
* 组件版本状态流转。 状态机规则: - draft → canary → stable - stable → deprecated → blocked - blocked → stable (需审批)
|
|
@@ -3122,7 +3416,7 @@ var StatusApi = class extends BaseAPI {
|
|
|
3122
3416
|
query: queryParameters,
|
|
3123
3417
|
body: UnblockComponentVersionRequestToJSON(requestParameters.unblockComponentVersionRequest)
|
|
3124
3418
|
}, initOverrides);
|
|
3125
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3419
|
+
return new JSONApiResponse(response, (jsonValue) => VersionInfoFromJSON(jsonValue));
|
|
3126
3420
|
}
|
|
3127
3421
|
/**
|
|
3128
3422
|
* 解除组件版本的阻断状态,恢复其可用性
|
|
@@ -3161,7 +3455,7 @@ var UploadApi = class extends BaseAPI {
|
|
|
3161
3455
|
query: queryParameters,
|
|
3162
3456
|
body: CompleteUploadRequestToJSON(requestParameters.completeUploadRequest)
|
|
3163
3457
|
}, initOverrides);
|
|
3164
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3458
|
+
return new JSONApiResponse(response, (jsonValue) => CompleteUploadResponseFromJSON(jsonValue));
|
|
3165
3459
|
}
|
|
3166
3460
|
/**
|
|
3167
3461
|
* 通知服务器上传完成,进行文件验证和处理。 验证包括: - 文件完整性校验 - 格式验证 - 安全扫描
|
|
@@ -3196,7 +3490,7 @@ var UploadApi = class extends BaseAPI {
|
|
|
3196
3490
|
query: queryParameters,
|
|
3197
3491
|
body: PrepareUploadRequestToJSON(requestParameters.prepareUploadRequest)
|
|
3198
3492
|
}, initOverrides);
|
|
3199
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3493
|
+
return new JSONApiResponse(response, (jsonValue) => PrepareUploadResponseFromJSON(jsonValue));
|
|
3200
3494
|
}
|
|
3201
3495
|
/**
|
|
3202
3496
|
* 获取上传凭证和 URL。 支持多文件上传,返回每个文件的上传 URL。
|
|
@@ -3238,7 +3532,7 @@ var VersionsApi = class extends BaseAPI {
|
|
|
3238
3532
|
query: queryParameters,
|
|
3239
3533
|
body: CreateVersionRequestToJSON(requestParameters.createVersionRequest)
|
|
3240
3534
|
}, initOverrides);
|
|
3241
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3535
|
+
return new JSONApiResponse(response, (jsonValue) => VersionResponseFromJSON(jsonValue));
|
|
3242
3536
|
}
|
|
3243
3537
|
/**
|
|
3244
3538
|
* 为组件创建一个新版本(草稿状态)
|
|
@@ -3314,7 +3608,7 @@ var VersionsApi = class extends BaseAPI {
|
|
|
3314
3608
|
query: queryParameters,
|
|
3315
3609
|
body: DeprecateVersionRequestToJSON(requestParameters.deprecateVersionRequest)
|
|
3316
3610
|
}, initOverrides);
|
|
3317
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3611
|
+
return new JSONApiResponse(response, (jsonValue) => VersionResponseFromJSON(jsonValue));
|
|
3318
3612
|
}
|
|
3319
3613
|
/**
|
|
3320
3614
|
* 将已发布版本标记为废弃
|
|
@@ -3350,7 +3644,7 @@ var VersionsApi = class extends BaseAPI {
|
|
|
3350
3644
|
headers: headerParameters,
|
|
3351
3645
|
query: queryParameters
|
|
3352
3646
|
}, initOverrides);
|
|
3353
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3647
|
+
return new JSONApiResponse(response, (jsonValue) => VersionDetailResponseFromJSON(jsonValue));
|
|
3354
3648
|
}
|
|
3355
3649
|
/**
|
|
3356
3650
|
* 获取指定版本的完整信息
|
|
@@ -3392,7 +3686,7 @@ var VersionsApi = class extends BaseAPI {
|
|
|
3392
3686
|
headers: headerParameters,
|
|
3393
3687
|
query: queryParameters
|
|
3394
3688
|
}, initOverrides);
|
|
3395
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3689
|
+
return new JSONApiResponse(response, (jsonValue) => VersionListResponseFromJSON(jsonValue));
|
|
3396
3690
|
}
|
|
3397
3691
|
/**
|
|
3398
3692
|
* 获取指定组件的所有版本
|
|
@@ -3430,7 +3724,7 @@ var VersionsApi = class extends BaseAPI {
|
|
|
3430
3724
|
query: queryParameters,
|
|
3431
3725
|
body: PublishVersionRequestToJSON(requestParameters.publishVersionRequest)
|
|
3432
3726
|
}, initOverrides);
|
|
3433
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3727
|
+
return new JSONApiResponse(response, (jsonValue) => VersionResponseFromJSON(jsonValue));
|
|
3434
3728
|
}
|
|
3435
3729
|
/**
|
|
3436
3730
|
* 将草稿版本发布为正式版本
|
|
@@ -3553,18 +3847,15 @@ export {
|
|
|
3553
3847
|
BlockComponentVersionRequestFromJSON,
|
|
3554
3848
|
BlockComponentVersionRequestFromJSONTyped,
|
|
3555
3849
|
BlockComponentVersionRequestToJSON,
|
|
3556
|
-
CompleteUpload200ResponseDataFromJSON,
|
|
3557
|
-
CompleteUpload200ResponseDataFromJSONTyped,
|
|
3558
|
-
CompleteUpload200ResponseDataToJSON,
|
|
3559
|
-
CompleteUpload200ResponseFromJSON,
|
|
3560
|
-
CompleteUpload200ResponseFromJSONTyped,
|
|
3561
|
-
CompleteUpload200ResponseToJSON,
|
|
3562
3850
|
CompleteUploadRequestFilesInnerFromJSON,
|
|
3563
3851
|
CompleteUploadRequestFilesInnerFromJSONTyped,
|
|
3564
3852
|
CompleteUploadRequestFilesInnerToJSON,
|
|
3565
3853
|
CompleteUploadRequestFromJSON,
|
|
3566
3854
|
CompleteUploadRequestFromJSONTyped,
|
|
3567
3855
|
CompleteUploadRequestToJSON,
|
|
3856
|
+
CompleteUploadResponseDataFromJSON,
|
|
3857
|
+
CompleteUploadResponseDataFromJSONTyped,
|
|
3858
|
+
CompleteUploadResponseDataToJSON,
|
|
3568
3859
|
CompleteUploadResponseFromJSON,
|
|
3569
3860
|
CompleteUploadResponseFromJSONTyped,
|
|
3570
3861
|
CompleteUploadResponseToJSON,
|
|
@@ -3574,20 +3865,54 @@ export {
|
|
|
3574
3865
|
ComponentListResponseFromJSON,
|
|
3575
3866
|
ComponentListResponseFromJSONTyped,
|
|
3576
3867
|
ComponentListResponseToJSON,
|
|
3868
|
+
ComponentRegisterRequestCapabilitiesInnerFromJSON,
|
|
3869
|
+
ComponentRegisterRequestCapabilitiesInnerFromJSONTyped,
|
|
3870
|
+
ComponentRegisterRequestCapabilitiesInnerNameEnum,
|
|
3871
|
+
ComponentRegisterRequestCapabilitiesInnerToJSON,
|
|
3872
|
+
ComponentRegisterRequestCompatBrowsersFromJSON,
|
|
3873
|
+
ComponentRegisterRequestCompatBrowsersFromJSONTyped,
|
|
3874
|
+
ComponentRegisterRequestCompatBrowsersToJSON,
|
|
3875
|
+
ComponentRegisterRequestCompatDependenciesInnerFromJSON,
|
|
3876
|
+
ComponentRegisterRequestCompatDependenciesInnerFromJSONTyped,
|
|
3877
|
+
ComponentRegisterRequestCompatDependenciesInnerToJSON,
|
|
3878
|
+
ComponentRegisterRequestCompatFromJSON,
|
|
3879
|
+
ComponentRegisterRequestCompatFromJSONTyped,
|
|
3880
|
+
ComponentRegisterRequestCompatToJSON,
|
|
3881
|
+
ComponentRegisterRequestEventsInnerCategoryEnum,
|
|
3882
|
+
ComponentRegisterRequestEventsInnerFromJSON,
|
|
3883
|
+
ComponentRegisterRequestEventsInnerFromJSONTyped,
|
|
3884
|
+
ComponentRegisterRequestEventsInnerToJSON,
|
|
3885
|
+
ComponentRegisterRequestFromJSON,
|
|
3886
|
+
ComponentRegisterRequestFromJSONTyped,
|
|
3887
|
+
ComponentRegisterRequestIntegrityChunksValueFromJSON,
|
|
3888
|
+
ComponentRegisterRequestIntegrityChunksValueFromJSONTyped,
|
|
3889
|
+
ComponentRegisterRequestIntegrityChunksValueToJSON,
|
|
3890
|
+
ComponentRegisterRequestIntegrityFromJSON,
|
|
3891
|
+
ComponentRegisterRequestIntegrityFromJSONTyped,
|
|
3892
|
+
ComponentRegisterRequestIntegrityMainFromJSON,
|
|
3893
|
+
ComponentRegisterRequestIntegrityMainFromJSONTyped,
|
|
3894
|
+
ComponentRegisterRequestIntegrityMainToJSON,
|
|
3895
|
+
ComponentRegisterRequestIntegrityStyleFromJSON,
|
|
3896
|
+
ComponentRegisterRequestIntegrityStyleFromJSONTyped,
|
|
3897
|
+
ComponentRegisterRequestIntegrityStyleToJSON,
|
|
3898
|
+
ComponentRegisterRequestIntegrityToJSON,
|
|
3899
|
+
ComponentRegisterRequestPropsSchemaFromJSON,
|
|
3900
|
+
ComponentRegisterRequestPropsSchemaFromJSONTyped,
|
|
3901
|
+
ComponentRegisterRequestPropsSchemaToJSON,
|
|
3902
|
+
ComponentRegisterRequestPropsSchemaTypeEnum,
|
|
3903
|
+
ComponentRegisterRequestStyleFromJSON,
|
|
3904
|
+
ComponentRegisterRequestStyleFromJSONTyped,
|
|
3905
|
+
ComponentRegisterRequestStyleIsolationEnum,
|
|
3906
|
+
ComponentRegisterRequestStyleToJSON,
|
|
3907
|
+
ComponentRegisterRequestToJSON,
|
|
3577
3908
|
ComponentResponseFromJSON,
|
|
3578
3909
|
ComponentResponseFromJSONTyped,
|
|
3579
3910
|
ComponentResponseToJSON,
|
|
3580
3911
|
ComponentsApi,
|
|
3581
3912
|
Configuration,
|
|
3582
|
-
CreateComponent200ResponseFromJSON,
|
|
3583
|
-
CreateComponent200ResponseFromJSONTyped,
|
|
3584
|
-
CreateComponent200ResponseToJSON,
|
|
3585
3913
|
CreateComponentRequestFromJSON,
|
|
3586
3914
|
CreateComponentRequestFromJSONTyped,
|
|
3587
3915
|
CreateComponentRequestToJSON,
|
|
3588
|
-
CreateVersion200ResponseFromJSON,
|
|
3589
|
-
CreateVersion200ResponseFromJSONTyped,
|
|
3590
|
-
CreateVersion200ResponseToJSON,
|
|
3591
3916
|
CreateVersionRequestFromJSON,
|
|
3592
3917
|
CreateVersionRequestFromJSONTyped,
|
|
3593
3918
|
CreateVersionRequestToJSON,
|
|
@@ -3603,6 +3928,12 @@ export {
|
|
|
3603
3928
|
DeprecateVersionRequestFromJSON,
|
|
3604
3929
|
DeprecateVersionRequestFromJSONTyped,
|
|
3605
3930
|
DeprecateVersionRequestToJSON,
|
|
3931
|
+
ErrorDetailFromJSON,
|
|
3932
|
+
ErrorDetailFromJSONTyped,
|
|
3933
|
+
ErrorDetailToJSON,
|
|
3934
|
+
ErrorResponseDataObjectFromJSON,
|
|
3935
|
+
ErrorResponseDataObjectFromJSONTyped,
|
|
3936
|
+
ErrorResponseDataObjectToJSON,
|
|
3606
3937
|
ErrorResponseFromJSON,
|
|
3607
3938
|
ErrorResponseFromJSONTyped,
|
|
3608
3939
|
ErrorResponseToJSON,
|
|
@@ -3610,24 +3941,10 @@ export {
|
|
|
3610
3941
|
FileInfoFromJSON,
|
|
3611
3942
|
FileInfoFromJSONTyped,
|
|
3612
3943
|
FileInfoToJSON,
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
GetVersion200ResponseDataFromJSONTyped,
|
|
3618
|
-
GetVersion200ResponseDataStatusEnum,
|
|
3619
|
-
GetVersion200ResponseDataToJSON,
|
|
3620
|
-
GetVersion200ResponseFromJSON,
|
|
3621
|
-
GetVersion200ResponseFromJSONTyped,
|
|
3622
|
-
GetVersion200ResponseToJSON,
|
|
3623
|
-
HealthCheck200ResponseDependenciesValueFromJSON,
|
|
3624
|
-
HealthCheck200ResponseDependenciesValueFromJSONTyped,
|
|
3625
|
-
HealthCheck200ResponseDependenciesValueStatusEnum,
|
|
3626
|
-
HealthCheck200ResponseDependenciesValueToJSON,
|
|
3627
|
-
HealthCheck200ResponseFromJSON,
|
|
3628
|
-
HealthCheck200ResponseFromJSONTyped,
|
|
3629
|
-
HealthCheck200ResponseStatusEnum,
|
|
3630
|
-
HealthCheck200ResponseToJSON,
|
|
3944
|
+
HealthResponseDependenciesValueFromJSON,
|
|
3945
|
+
HealthResponseDependenciesValueFromJSONTyped,
|
|
3946
|
+
HealthResponseDependenciesValueStatusEnum,
|
|
3947
|
+
HealthResponseDependenciesValueToJSON,
|
|
3631
3948
|
HealthResponseFromJSON,
|
|
3632
3949
|
HealthResponseFromJSONTyped,
|
|
3633
3950
|
HealthResponseStatusEnum,
|
|
@@ -3638,32 +3955,6 @@ export {
|
|
|
3638
3955
|
ListBlockedComponents200ResponseFromJSON,
|
|
3639
3956
|
ListBlockedComponents200ResponseFromJSONTyped,
|
|
3640
3957
|
ListBlockedComponents200ResponseToJSON,
|
|
3641
|
-
ListComponents200ResponseDataInnerFromJSON,
|
|
3642
|
-
ListComponents200ResponseDataInnerFromJSONTyped,
|
|
3643
|
-
ListComponents200ResponseDataInnerToJSON,
|
|
3644
|
-
ListComponents200ResponseFromJSON,
|
|
3645
|
-
ListComponents200ResponseFromJSONTyped,
|
|
3646
|
-
ListComponents200ResponseMetaFromJSON,
|
|
3647
|
-
ListComponents200ResponseMetaFromJSONTyped,
|
|
3648
|
-
ListComponents200ResponseMetaToJSON,
|
|
3649
|
-
ListComponents200ResponseToJSON,
|
|
3650
|
-
ListComponents401ResponseDetailsInnerFromJSON,
|
|
3651
|
-
ListComponents401ResponseDetailsInnerFromJSONTyped,
|
|
3652
|
-
ListComponents401ResponseDetailsInnerToJSON,
|
|
3653
|
-
ListComponents401ResponseFromJSON,
|
|
3654
|
-
ListComponents401ResponseFromJSONTyped,
|
|
3655
|
-
ListComponents401ResponseToJSON,
|
|
3656
|
-
ListVersions200ResponseDataInnerFromJSON,
|
|
3657
|
-
ListVersions200ResponseDataInnerFromJSONTyped,
|
|
3658
|
-
ListVersions200ResponseDataInnerIntegrityAlgorithmEnum,
|
|
3659
|
-
ListVersions200ResponseDataInnerIntegrityFromJSON,
|
|
3660
|
-
ListVersions200ResponseDataInnerIntegrityFromJSONTyped,
|
|
3661
|
-
ListVersions200ResponseDataInnerIntegrityToJSON,
|
|
3662
|
-
ListVersions200ResponseDataInnerStatusEnum,
|
|
3663
|
-
ListVersions200ResponseDataInnerToJSON,
|
|
3664
|
-
ListVersions200ResponseFromJSON,
|
|
3665
|
-
ListVersions200ResponseFromJSONTyped,
|
|
3666
|
-
ListVersions200ResponseToJSON,
|
|
3667
3958
|
LivenessCheck200ResponseFromJSON,
|
|
3668
3959
|
LivenessCheck200ResponseFromJSONTyped,
|
|
3669
3960
|
LivenessCheck200ResponseToJSON,
|
|
@@ -3671,21 +3962,18 @@ export {
|
|
|
3671
3962
|
PaginationMetaFromJSON,
|
|
3672
3963
|
PaginationMetaFromJSONTyped,
|
|
3673
3964
|
PaginationMetaToJSON,
|
|
3674
|
-
PrepareUpload200ResponseDataFilesInnerFromJSON,
|
|
3675
|
-
PrepareUpload200ResponseDataFilesInnerFromJSONTyped,
|
|
3676
|
-
PrepareUpload200ResponseDataFilesInnerToJSON,
|
|
3677
|
-
PrepareUpload200ResponseDataFromJSON,
|
|
3678
|
-
PrepareUpload200ResponseDataFromJSONTyped,
|
|
3679
|
-
PrepareUpload200ResponseDataToJSON,
|
|
3680
|
-
PrepareUpload200ResponseFromJSON,
|
|
3681
|
-
PrepareUpload200ResponseFromJSONTyped,
|
|
3682
|
-
PrepareUpload200ResponseToJSON,
|
|
3683
3965
|
PrepareUploadRequestFilesInnerFromJSON,
|
|
3684
3966
|
PrepareUploadRequestFilesInnerFromJSONTyped,
|
|
3685
3967
|
PrepareUploadRequestFilesInnerToJSON,
|
|
3686
3968
|
PrepareUploadRequestFromJSON,
|
|
3687
3969
|
PrepareUploadRequestFromJSONTyped,
|
|
3688
3970
|
PrepareUploadRequestToJSON,
|
|
3971
|
+
PrepareUploadResponseDataFilesInnerFromJSON,
|
|
3972
|
+
PrepareUploadResponseDataFilesInnerFromJSONTyped,
|
|
3973
|
+
PrepareUploadResponseDataFilesInnerToJSON,
|
|
3974
|
+
PrepareUploadResponseDataFromJSON,
|
|
3975
|
+
PrepareUploadResponseDataFromJSONTyped,
|
|
3976
|
+
PrepareUploadResponseDataToJSON,
|
|
3689
3977
|
PrepareUploadResponseFromJSON,
|
|
3690
3978
|
PrepareUploadResponseFromJSONTyped,
|
|
3691
3979
|
PrepareUploadResponseToJSON,
|
|
@@ -3700,9 +3988,6 @@ export {
|
|
|
3700
3988
|
ReadinessCheck503ResponseToJSON,
|
|
3701
3989
|
RegistryClient,
|
|
3702
3990
|
RequiredError,
|
|
3703
|
-
ResolveManifest200ResponseBlockedComponentsInnerFromJSON,
|
|
3704
|
-
ResolveManifest200ResponseBlockedComponentsInnerFromJSONTyped,
|
|
3705
|
-
ResolveManifest200ResponseBlockedComponentsInnerToJSON,
|
|
3706
3991
|
ResolveManifest200ResponseComponentsInnerFromJSON,
|
|
3707
3992
|
ResolveManifest200ResponseComponentsInnerFromJSONTyped,
|
|
3708
3993
|
ResolveManifest200ResponseComponentsInnerPriorityEnum,
|
|
@@ -3713,8 +3998,30 @@ export {
|
|
|
3713
3998
|
ResolveManifestRequestFromJSON,
|
|
3714
3999
|
ResolveManifestRequestFromJSONTyped,
|
|
3715
4000
|
ResolveManifestRequestToJSON,
|
|
4001
|
+
ResolveVersions200ResponseBlockedInnerFromJSON,
|
|
4002
|
+
ResolveVersions200ResponseBlockedInnerFromJSONTyped,
|
|
4003
|
+
ResolveVersions200ResponseBlockedInnerToJSON,
|
|
4004
|
+
ResolveVersions200ResponseErrorsInnerFromJSON,
|
|
4005
|
+
ResolveVersions200ResponseErrorsInnerFromJSONTyped,
|
|
4006
|
+
ResolveVersions200ResponseErrorsInnerToJSON,
|
|
4007
|
+
ResolveVersions200ResponseFromJSON,
|
|
4008
|
+
ResolveVersions200ResponseFromJSONTyped,
|
|
4009
|
+
ResolveVersions200ResponseResolvedInnerFromJSON,
|
|
4010
|
+
ResolveVersions200ResponseResolvedInnerFromJSONTyped,
|
|
4011
|
+
ResolveVersions200ResponseResolvedInnerStatusEnum,
|
|
4012
|
+
ResolveVersions200ResponseResolvedInnerToJSON,
|
|
4013
|
+
ResolveVersions200ResponseToJSON,
|
|
4014
|
+
ResolveVersionsRequestComponentsInnerFromJSON,
|
|
4015
|
+
ResolveVersionsRequestComponentsInnerFromJSONTyped,
|
|
4016
|
+
ResolveVersionsRequestComponentsInnerToJSON,
|
|
4017
|
+
ResolveVersionsRequestFromJSON,
|
|
4018
|
+
ResolveVersionsRequestFromJSONTyped,
|
|
4019
|
+
ResolveVersionsRequestToJSON,
|
|
3716
4020
|
ResponseError,
|
|
3717
4021
|
StatusApi,
|
|
4022
|
+
SuccessResponseFromJSON,
|
|
4023
|
+
SuccessResponseFromJSONTyped,
|
|
4024
|
+
SuccessResponseToJSON,
|
|
3718
4025
|
TimeoutError,
|
|
3719
4026
|
TransitionComponentStatusRequestFromJSON,
|
|
3720
4027
|
TransitionComponentStatusRequestFromJSONTyped,
|
|
@@ -3729,6 +4036,10 @@ export {
|
|
|
3729
4036
|
UpdateComponentRequestToJSON,
|
|
3730
4037
|
UploadApi,
|
|
3731
4038
|
VERSION,
|
|
4039
|
+
VersionDetailResponseDataFromJSON,
|
|
4040
|
+
VersionDetailResponseDataFromJSONTyped,
|
|
4041
|
+
VersionDetailResponseDataStatusEnum,
|
|
4042
|
+
VersionDetailResponseDataToJSON,
|
|
3732
4043
|
VersionDetailResponseFromJSON,
|
|
3733
4044
|
VersionDetailResponseFromJSONTyped,
|
|
3734
4045
|
VersionDetailResponseToJSON,
|
|
@@ -3764,59 +4075,64 @@ export {
|
|
|
3764
4075
|
instanceOfBatchQueryComponentsRequest,
|
|
3765
4076
|
instanceOfBatchQueryComponentsRequestComponentsInner,
|
|
3766
4077
|
instanceOfBlockComponentVersionRequest,
|
|
3767
|
-
instanceOfCompleteUpload200Response,
|
|
3768
|
-
instanceOfCompleteUpload200ResponseData,
|
|
3769
4078
|
instanceOfCompleteUploadRequest,
|
|
3770
4079
|
instanceOfCompleteUploadRequestFilesInner,
|
|
3771
4080
|
instanceOfCompleteUploadResponse,
|
|
4081
|
+
instanceOfCompleteUploadResponseData,
|
|
3772
4082
|
instanceOfComponentInfo,
|
|
3773
4083
|
instanceOfComponentListResponse,
|
|
4084
|
+
instanceOfComponentRegisterRequest,
|
|
4085
|
+
instanceOfComponentRegisterRequestCapabilitiesInner,
|
|
4086
|
+
instanceOfComponentRegisterRequestCompat,
|
|
4087
|
+
instanceOfComponentRegisterRequestCompatBrowsers,
|
|
4088
|
+
instanceOfComponentRegisterRequestCompatDependenciesInner,
|
|
4089
|
+
instanceOfComponentRegisterRequestEventsInner,
|
|
4090
|
+
instanceOfComponentRegisterRequestIntegrity,
|
|
4091
|
+
instanceOfComponentRegisterRequestIntegrityChunksValue,
|
|
4092
|
+
instanceOfComponentRegisterRequestIntegrityMain,
|
|
4093
|
+
instanceOfComponentRegisterRequestIntegrityStyle,
|
|
4094
|
+
instanceOfComponentRegisterRequestPropsSchema,
|
|
4095
|
+
instanceOfComponentRegisterRequestStyle,
|
|
3774
4096
|
instanceOfComponentResponse,
|
|
3775
|
-
instanceOfCreateComponent200Response,
|
|
3776
4097
|
instanceOfCreateComponentRequest,
|
|
3777
|
-
instanceOfCreateVersion200Response,
|
|
3778
4098
|
instanceOfCreateVersionRequest,
|
|
3779
4099
|
instanceOfDeleteComponent200Response,
|
|
3780
4100
|
instanceOfDeleteComponentRequest,
|
|
3781
4101
|
instanceOfDeleteVersionRequest,
|
|
3782
4102
|
instanceOfDeprecateVersionRequest,
|
|
4103
|
+
instanceOfErrorDetail,
|
|
3783
4104
|
instanceOfErrorResponse,
|
|
4105
|
+
instanceOfErrorResponseDataObject,
|
|
3784
4106
|
instanceOfFileInfo,
|
|
3785
|
-
instanceOfGetVersion200Response,
|
|
3786
|
-
instanceOfGetVersion200ResponseData,
|
|
3787
|
-
instanceOfGetVersion200ResponseDataAllOfFilesInner,
|
|
3788
|
-
instanceOfHealthCheck200Response,
|
|
3789
|
-
instanceOfHealthCheck200ResponseDependenciesValue,
|
|
3790
4107
|
instanceOfHealthResponse,
|
|
4108
|
+
instanceOfHealthResponseDependenciesValue,
|
|
3791
4109
|
instanceOfListBlockedComponents200Response,
|
|
3792
4110
|
instanceOfListBlockedComponents200ResponseDataInner,
|
|
3793
|
-
instanceOfListComponents200Response,
|
|
3794
|
-
instanceOfListComponents200ResponseDataInner,
|
|
3795
|
-
instanceOfListComponents200ResponseMeta,
|
|
3796
|
-
instanceOfListComponents401Response,
|
|
3797
|
-
instanceOfListComponents401ResponseDetailsInner,
|
|
3798
|
-
instanceOfListVersions200Response,
|
|
3799
|
-
instanceOfListVersions200ResponseDataInner,
|
|
3800
|
-
instanceOfListVersions200ResponseDataInnerIntegrity,
|
|
3801
4111
|
instanceOfLivenessCheck200Response,
|
|
3802
4112
|
instanceOfPaginationMeta,
|
|
3803
|
-
instanceOfPrepareUpload200Response,
|
|
3804
|
-
instanceOfPrepareUpload200ResponseData,
|
|
3805
|
-
instanceOfPrepareUpload200ResponseDataFilesInner,
|
|
3806
4113
|
instanceOfPrepareUploadRequest,
|
|
3807
4114
|
instanceOfPrepareUploadRequestFilesInner,
|
|
3808
4115
|
instanceOfPrepareUploadResponse,
|
|
4116
|
+
instanceOfPrepareUploadResponseData,
|
|
4117
|
+
instanceOfPrepareUploadResponseDataFilesInner,
|
|
3809
4118
|
instanceOfPublishVersionRequest,
|
|
3810
4119
|
instanceOfReadinessCheck200Response,
|
|
3811
4120
|
instanceOfReadinessCheck503Response,
|
|
3812
4121
|
instanceOfResolveManifest200Response,
|
|
3813
|
-
instanceOfResolveManifest200ResponseBlockedComponentsInner,
|
|
3814
4122
|
instanceOfResolveManifest200ResponseComponentsInner,
|
|
3815
4123
|
instanceOfResolveManifestRequest,
|
|
4124
|
+
instanceOfResolveVersions200Response,
|
|
4125
|
+
instanceOfResolveVersions200ResponseBlockedInner,
|
|
4126
|
+
instanceOfResolveVersions200ResponseErrorsInner,
|
|
4127
|
+
instanceOfResolveVersions200ResponseResolvedInner,
|
|
4128
|
+
instanceOfResolveVersionsRequest,
|
|
4129
|
+
instanceOfResolveVersionsRequestComponentsInner,
|
|
4130
|
+
instanceOfSuccessResponse,
|
|
3816
4131
|
instanceOfTransitionComponentStatusRequest,
|
|
3817
4132
|
instanceOfUnblockComponentVersionRequest,
|
|
3818
4133
|
instanceOfUpdateComponentRequest,
|
|
3819
4134
|
instanceOfVersionDetailResponse,
|
|
4135
|
+
instanceOfVersionDetailResponseData,
|
|
3820
4136
|
instanceOfVersionInfo,
|
|
3821
4137
|
instanceOfVersionIntegrity,
|
|
3822
4138
|
instanceOfVersionListResponse,
|