@wix/data 1.0.154 → 1.0.155
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/build/cjs/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/service-plugins-context.js +1 -0
- package/build/cjs/service-plugins-context.js.map +1 -0
- package/build/cjs/service-plugins.js +1 -0
- package/build/cjs/service-plugins.js.map +1 -0
- package/package.json +7 -7
- package/type-bundles/context.bundle.d.ts +1746 -94
- package/type-bundles/index.bundle.d.ts +1746 -94
- package/type-bundles/service-plugins-context.bundle.d.ts +42 -9
- package/type-bundles/service-plugins.bundle.d.ts +42 -9
|
@@ -973,27 +973,26 @@ declare class BadRequestWixError extends Error {
|
|
|
973
973
|
static readonly __type = "wix_spi_error";
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
type ServicePluginMethodInput = {
|
|
976
|
+
type ServicePluginMethodInput$1 = {
|
|
977
977
|
request: any;
|
|
978
978
|
metadata: any;
|
|
979
979
|
};
|
|
980
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
981
|
-
type ServicePluginMethodMetadata = {
|
|
980
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
981
|
+
type ServicePluginMethodMetadata$1 = {
|
|
982
982
|
name: string;
|
|
983
983
|
primaryHttpMappingPath: string;
|
|
984
984
|
transformations: {
|
|
985
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
985
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
986
986
|
toREST: (...args: unknown[]) => unknown;
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
989
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
990
990
|
__type: 'service-plugin-definition';
|
|
991
991
|
componentType: string;
|
|
992
|
-
methods: ServicePluginMethodMetadata[];
|
|
992
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
993
993
|
__contract: Contract;
|
|
994
994
|
};
|
|
995
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
996
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
995
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
997
996
|
|
|
998
997
|
declare global {
|
|
999
998
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1002,6 +1001,11 @@ declare global {
|
|
|
1002
1001
|
}
|
|
1003
1002
|
}
|
|
1004
1003
|
|
|
1004
|
+
declare global {
|
|
1005
|
+
interface ContextualClient {
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1005
1009
|
interface QueryDataItemsEnvelope {
|
|
1006
1010
|
request: QueryDataItemsRequest;
|
|
1007
1011
|
metadata: Context;
|
|
@@ -1066,7 +1070,7 @@ interface GetCapabilitiesEnvelope {
|
|
|
1066
1070
|
request: GetCapabilitiesRequest;
|
|
1067
1071
|
metadata: Context;
|
|
1068
1072
|
}
|
|
1069
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
1073
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
1070
1074
|
/**
|
|
1071
1075
|
*
|
|
1072
1076
|
* Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
|
|
@@ -1143,6 +1147,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
1143
1147
|
getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
|
|
1144
1148
|
}>;
|
|
1145
1149
|
|
|
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
|
+
|
|
1146
1179
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1147
1180
|
|
|
1148
1181
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -831,27 +831,26 @@ interface IdentificationDataIdOneOf {
|
|
|
831
831
|
appId?: string;
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
type ServicePluginMethodInput = {
|
|
834
|
+
type ServicePluginMethodInput$1 = {
|
|
835
835
|
request: any;
|
|
836
836
|
metadata: any;
|
|
837
837
|
};
|
|
838
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
839
|
-
type ServicePluginMethodMetadata = {
|
|
838
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
839
|
+
type ServicePluginMethodMetadata$1 = {
|
|
840
840
|
name: string;
|
|
841
841
|
primaryHttpMappingPath: string;
|
|
842
842
|
transformations: {
|
|
843
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
843
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
844
844
|
toREST: (...args: unknown[]) => unknown;
|
|
845
845
|
};
|
|
846
846
|
};
|
|
847
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
847
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
848
848
|
__type: 'service-plugin-definition';
|
|
849
849
|
componentType: string;
|
|
850
|
-
methods: ServicePluginMethodMetadata[];
|
|
850
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
851
851
|
__contract: Contract;
|
|
852
852
|
};
|
|
853
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
854
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
853
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
855
854
|
|
|
856
855
|
declare global {
|
|
857
856
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -860,6 +859,11 @@ declare global {
|
|
|
860
859
|
}
|
|
861
860
|
}
|
|
862
861
|
|
|
862
|
+
declare global {
|
|
863
|
+
interface ContextualClient {
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
863
867
|
interface QueryDataItemsEnvelope {
|
|
864
868
|
request: QueryDataItemsRequest;
|
|
865
869
|
metadata: Context;
|
|
@@ -924,7 +928,7 @@ interface GetCapabilitiesEnvelope {
|
|
|
924
928
|
request: GetCapabilitiesRequest;
|
|
925
929
|
metadata: Context;
|
|
926
930
|
}
|
|
927
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
931
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
928
932
|
/**
|
|
929
933
|
*
|
|
930
934
|
* Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
|
|
@@ -1001,6 +1005,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
1001
1005
|
getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
|
|
1002
1006
|
}>;
|
|
1003
1007
|
|
|
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
|
+
|
|
1004
1037
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1005
1038
|
|
|
1006
1039
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|