@wix/data 1.0.161 → 1.0.163
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.
|
@@ -842,6 +842,8 @@ declare class ItemAlreadyExistsWixError extends Error {
|
|
|
842
842
|
name: string;
|
|
843
843
|
/** @hidden */
|
|
844
844
|
errorSchemaName: string;
|
|
845
|
+
/** @hidden */
|
|
846
|
+
errorType: string;
|
|
845
847
|
data: ItemAlreadyExistsError;
|
|
846
848
|
constructor(data: ItemAlreadyExistsError);
|
|
847
849
|
/** @hidden */
|
|
@@ -858,6 +860,8 @@ declare class ItemNotFoundWixError extends Error {
|
|
|
858
860
|
name: string;
|
|
859
861
|
/** @hidden */
|
|
860
862
|
errorSchemaName: string;
|
|
863
|
+
/** @hidden */
|
|
864
|
+
errorType: string;
|
|
861
865
|
data: ItemNotFoundError;
|
|
862
866
|
constructor(data: ItemNotFoundError);
|
|
863
867
|
/** @hidden */
|
|
@@ -874,6 +878,8 @@ declare class CollectionAlreadyExistsWixError extends Error {
|
|
|
874
878
|
name: string;
|
|
875
879
|
/** @hidden */
|
|
876
880
|
errorSchemaName: string;
|
|
881
|
+
/** @hidden */
|
|
882
|
+
errorType: string;
|
|
877
883
|
data: CollectionAlreadyExistsError;
|
|
878
884
|
constructor(data: CollectionAlreadyExistsError);
|
|
879
885
|
/** @hidden */
|
|
@@ -890,6 +896,8 @@ declare class CollectionNotFoundWixError extends Error {
|
|
|
890
896
|
name: string;
|
|
891
897
|
/** @hidden */
|
|
892
898
|
errorSchemaName: string;
|
|
899
|
+
/** @hidden */
|
|
900
|
+
errorType: string;
|
|
893
901
|
data: CollectionNotFoundError;
|
|
894
902
|
constructor(data: CollectionNotFoundError);
|
|
895
903
|
/** @hidden */
|
|
@@ -906,6 +914,8 @@ declare class ReferenceAlreadyExistsWixError extends Error {
|
|
|
906
914
|
name: string;
|
|
907
915
|
/** @hidden */
|
|
908
916
|
errorSchemaName: string;
|
|
917
|
+
/** @hidden */
|
|
918
|
+
errorType: string;
|
|
909
919
|
data: ReferenceAlreadyExistsError;
|
|
910
920
|
constructor(data: ReferenceAlreadyExistsError);
|
|
911
921
|
/** @hidden */
|
|
@@ -922,6 +932,8 @@ declare class ReferenceNotFoundWixError extends Error {
|
|
|
922
932
|
name: string;
|
|
923
933
|
/** @hidden */
|
|
924
934
|
errorSchemaName: string;
|
|
935
|
+
/** @hidden */
|
|
936
|
+
errorType: string;
|
|
925
937
|
data: ReferenceNotFoundError;
|
|
926
938
|
constructor(data: ReferenceNotFoundError);
|
|
927
939
|
/** @hidden */
|
|
@@ -938,6 +950,8 @@ declare class ValidationWixError extends Error {
|
|
|
938
950
|
name: string;
|
|
939
951
|
/** @hidden */
|
|
940
952
|
errorSchemaName: string;
|
|
953
|
+
/** @hidden */
|
|
954
|
+
errorType: string;
|
|
941
955
|
data: ValidationError;
|
|
942
956
|
constructor(data: ValidationError);
|
|
943
957
|
/** @hidden */
|
|
@@ -954,6 +968,8 @@ declare class CollectionChangeNotSupportedWixError extends Error {
|
|
|
954
968
|
name: string;
|
|
955
969
|
/** @hidden */
|
|
956
970
|
errorSchemaName: string;
|
|
971
|
+
/** @hidden */
|
|
972
|
+
errorType: string;
|
|
957
973
|
data: CollectionChangeNotSupported;
|
|
958
974
|
constructor(data: CollectionChangeNotSupported);
|
|
959
975
|
/** @hidden */
|
|
@@ -968,31 +984,34 @@ declare class BadRequestWixError extends Error {
|
|
|
968
984
|
applicationCode: string;
|
|
969
985
|
/** @hidden */
|
|
970
986
|
name: string;
|
|
987
|
+
/** @hidden */
|
|
988
|
+
errorType: string;
|
|
971
989
|
constructor();
|
|
972
990
|
/** @hidden */
|
|
973
991
|
static readonly __type = "wix_spi_error";
|
|
974
992
|
}
|
|
975
993
|
|
|
976
|
-
type ServicePluginMethodInput
|
|
994
|
+
type ServicePluginMethodInput = {
|
|
977
995
|
request: any;
|
|
978
996
|
metadata: any;
|
|
979
997
|
};
|
|
980
|
-
type ServicePluginContract
|
|
981
|
-
type ServicePluginMethodMetadata
|
|
998
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
999
|
+
type ServicePluginMethodMetadata = {
|
|
982
1000
|
name: string;
|
|
983
1001
|
primaryHttpMappingPath: string;
|
|
984
1002
|
transformations: {
|
|
985
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
1003
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
986
1004
|
toREST: (...args: unknown[]) => unknown;
|
|
987
1005
|
};
|
|
988
1006
|
};
|
|
989
|
-
type ServicePluginDefinition
|
|
1007
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
990
1008
|
__type: 'service-plugin-definition';
|
|
991
1009
|
componentType: string;
|
|
992
|
-
methods: ServicePluginMethodMetadata
|
|
1010
|
+
methods: ServicePluginMethodMetadata[];
|
|
993
1011
|
__contract: Contract;
|
|
994
1012
|
};
|
|
995
|
-
declare function ServicePluginDefinition
|
|
1013
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
1014
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
996
1015
|
|
|
997
1016
|
declare global {
|
|
998
1017
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1070,7 +1089,7 @@ interface GetCapabilitiesEnvelope {
|
|
|
1070
1089
|
request: GetCapabilitiesRequest;
|
|
1071
1090
|
metadata: Context;
|
|
1072
1091
|
}
|
|
1073
|
-
declare const provideHandlers$1: ServicePluginDefinition
|
|
1092
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
1074
1093
|
/**
|
|
1075
1094
|
*
|
|
1076
1095
|
* Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
|
|
@@ -1147,35 +1166,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
|
1147
1166
|
getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
|
|
1148
1167
|
}>;
|
|
1149
1168
|
|
|
1150
|
-
type ServicePluginMethodInput = {
|
|
1151
|
-
request: any;
|
|
1152
|
-
metadata: any;
|
|
1153
|
-
};
|
|
1154
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
1155
|
-
type ServicePluginMethodMetadata = {
|
|
1156
|
-
name: string;
|
|
1157
|
-
primaryHttpMappingPath: string;
|
|
1158
|
-
transformations: {
|
|
1159
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
1160
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1161
|
-
};
|
|
1162
|
-
};
|
|
1163
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
1164
|
-
__type: 'service-plugin-definition';
|
|
1165
|
-
componentType: string;
|
|
1166
|
-
methods: ServicePluginMethodMetadata[];
|
|
1167
|
-
__contract: Contract;
|
|
1168
|
-
};
|
|
1169
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
1170
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
1171
|
-
|
|
1172
|
-
declare global {
|
|
1173
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1174
|
-
interface SymbolConstructor {
|
|
1175
|
-
readonly observable: symbol;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
1169
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1180
1170
|
|
|
1181
1171
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -831,26 +831,27 @@ interface IdentificationDataIdOneOf {
|
|
|
831
831
|
appId?: string;
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
type ServicePluginMethodInput
|
|
834
|
+
type ServicePluginMethodInput = {
|
|
835
835
|
request: any;
|
|
836
836
|
metadata: any;
|
|
837
837
|
};
|
|
838
|
-
type ServicePluginContract
|
|
839
|
-
type ServicePluginMethodMetadata
|
|
838
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
839
|
+
type ServicePluginMethodMetadata = {
|
|
840
840
|
name: string;
|
|
841
841
|
primaryHttpMappingPath: string;
|
|
842
842
|
transformations: {
|
|
843
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
843
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
844
844
|
toREST: (...args: unknown[]) => unknown;
|
|
845
845
|
};
|
|
846
846
|
};
|
|
847
|
-
type ServicePluginDefinition
|
|
847
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
848
848
|
__type: 'service-plugin-definition';
|
|
849
849
|
componentType: string;
|
|
850
|
-
methods: ServicePluginMethodMetadata
|
|
850
|
+
methods: ServicePluginMethodMetadata[];
|
|
851
851
|
__contract: Contract;
|
|
852
852
|
};
|
|
853
|
-
declare function ServicePluginDefinition
|
|
853
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
854
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
854
855
|
|
|
855
856
|
declare global {
|
|
856
857
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -928,7 +929,7 @@ interface GetCapabilitiesEnvelope {
|
|
|
928
929
|
request: GetCapabilitiesRequest;
|
|
929
930
|
metadata: Context;
|
|
930
931
|
}
|
|
931
|
-
declare const provideHandlers$1: ServicePluginDefinition
|
|
932
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
932
933
|
/**
|
|
933
934
|
*
|
|
934
935
|
* Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
|
|
@@ -1005,35 +1006,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
|
1005
1006
|
getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
|
|
1006
1007
|
}>;
|
|
1007
1008
|
|
|
1008
|
-
type ServicePluginMethodInput = {
|
|
1009
|
-
request: any;
|
|
1010
|
-
metadata: any;
|
|
1011
|
-
};
|
|
1012
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
1013
|
-
type ServicePluginMethodMetadata = {
|
|
1014
|
-
name: string;
|
|
1015
|
-
primaryHttpMappingPath: string;
|
|
1016
|
-
transformations: {
|
|
1017
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
1018
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
1022
|
-
__type: 'service-plugin-definition';
|
|
1023
|
-
componentType: string;
|
|
1024
|
-
methods: ServicePluginMethodMetadata[];
|
|
1025
|
-
__contract: Contract;
|
|
1026
|
-
};
|
|
1027
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
1028
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
1029
|
-
|
|
1030
|
-
declare global {
|
|
1031
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1032
|
-
interface SymbolConstructor {
|
|
1033
|
-
readonly observable: symbol;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
1009
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1038
1010
|
|
|
1039
1011
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -1050,6 +1022,8 @@ declare class ItemAlreadyExistsWixError extends Error {
|
|
|
1050
1022
|
name: string;
|
|
1051
1023
|
/** @hidden */
|
|
1052
1024
|
errorSchemaName: string;
|
|
1025
|
+
/** @hidden */
|
|
1026
|
+
errorType: string;
|
|
1053
1027
|
data: ItemAlreadyExistsError;
|
|
1054
1028
|
constructor(data: ItemAlreadyExistsError);
|
|
1055
1029
|
/** @hidden */
|
|
@@ -1066,6 +1040,8 @@ declare class ItemNotFoundWixError extends Error {
|
|
|
1066
1040
|
name: string;
|
|
1067
1041
|
/** @hidden */
|
|
1068
1042
|
errorSchemaName: string;
|
|
1043
|
+
/** @hidden */
|
|
1044
|
+
errorType: string;
|
|
1069
1045
|
data: ItemNotFoundError;
|
|
1070
1046
|
constructor(data: ItemNotFoundError);
|
|
1071
1047
|
/** @hidden */
|
|
@@ -1082,6 +1058,8 @@ declare class CollectionAlreadyExistsWixError extends Error {
|
|
|
1082
1058
|
name: string;
|
|
1083
1059
|
/** @hidden */
|
|
1084
1060
|
errorSchemaName: string;
|
|
1061
|
+
/** @hidden */
|
|
1062
|
+
errorType: string;
|
|
1085
1063
|
data: CollectionAlreadyExistsError;
|
|
1086
1064
|
constructor(data: CollectionAlreadyExistsError);
|
|
1087
1065
|
/** @hidden */
|
|
@@ -1098,6 +1076,8 @@ declare class CollectionNotFoundWixError extends Error {
|
|
|
1098
1076
|
name: string;
|
|
1099
1077
|
/** @hidden */
|
|
1100
1078
|
errorSchemaName: string;
|
|
1079
|
+
/** @hidden */
|
|
1080
|
+
errorType: string;
|
|
1101
1081
|
data: CollectionNotFoundError;
|
|
1102
1082
|
constructor(data: CollectionNotFoundError);
|
|
1103
1083
|
/** @hidden */
|
|
@@ -1114,6 +1094,8 @@ declare class ReferenceAlreadyExistsWixError extends Error {
|
|
|
1114
1094
|
name: string;
|
|
1115
1095
|
/** @hidden */
|
|
1116
1096
|
errorSchemaName: string;
|
|
1097
|
+
/** @hidden */
|
|
1098
|
+
errorType: string;
|
|
1117
1099
|
data: ReferenceAlreadyExistsError;
|
|
1118
1100
|
constructor(data: ReferenceAlreadyExistsError);
|
|
1119
1101
|
/** @hidden */
|
|
@@ -1130,6 +1112,8 @@ declare class ReferenceNotFoundWixError extends Error {
|
|
|
1130
1112
|
name: string;
|
|
1131
1113
|
/** @hidden */
|
|
1132
1114
|
errorSchemaName: string;
|
|
1115
|
+
/** @hidden */
|
|
1116
|
+
errorType: string;
|
|
1133
1117
|
data: ReferenceNotFoundError;
|
|
1134
1118
|
constructor(data: ReferenceNotFoundError);
|
|
1135
1119
|
/** @hidden */
|
|
@@ -1146,6 +1130,8 @@ declare class ValidationWixError extends Error {
|
|
|
1146
1130
|
name: string;
|
|
1147
1131
|
/** @hidden */
|
|
1148
1132
|
errorSchemaName: string;
|
|
1133
|
+
/** @hidden */
|
|
1134
|
+
errorType: string;
|
|
1149
1135
|
data: ValidationError;
|
|
1150
1136
|
constructor(data: ValidationError);
|
|
1151
1137
|
/** @hidden */
|
|
@@ -1162,6 +1148,8 @@ declare class CollectionChangeNotSupportedWixError extends Error {
|
|
|
1162
1148
|
name: string;
|
|
1163
1149
|
/** @hidden */
|
|
1164
1150
|
errorSchemaName: string;
|
|
1151
|
+
/** @hidden */
|
|
1152
|
+
errorType: string;
|
|
1165
1153
|
data: CollectionChangeNotSupported;
|
|
1166
1154
|
constructor(data: CollectionChangeNotSupported);
|
|
1167
1155
|
/** @hidden */
|
|
@@ -1176,6 +1164,8 @@ declare class BadRequestWixError extends Error {
|
|
|
1176
1164
|
applicationCode: string;
|
|
1177
1165
|
/** @hidden */
|
|
1178
1166
|
name: string;
|
|
1167
|
+
/** @hidden */
|
|
1168
|
+
errorType: string;
|
|
1179
1169
|
constructor();
|
|
1180
1170
|
/** @hidden */
|
|
1181
1171
|
static readonly __type = "wix_spi_error";
|