supabase-typed-query 0.9.7 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +59 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -5
- package/dist/index.mjs.map +1 -1
- package/dist/src/entity/Entity.d.ts +14 -2
- package/dist/src/entity/Entity.d.ts.map +1 -1
- package/dist/src/entity/PartitionedEntity.d.ts +17 -2
- package/dist/src/entity/PartitionedEntity.d.ts.map +1 -1
- package/dist/src/entity/core.d.ts +29 -29
- package/dist/src/entity/core.d.ts.map +1 -1
- package/dist/src/entity/types.d.ts +46 -37
- package/dist/src/entity/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/query/Query.d.ts +15 -0
- package/dist/src/query/Query.d.ts.map +1 -1
- package/dist/src/query/index.d.ts +10 -10
- package/dist/src/query/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -889,17 +889,43 @@ function createAddItemsMutation(client, name, items, schema) {
|
|
|
889
889
|
}
|
|
890
890
|
function createUpdateItemMutation(client, name, item, whereConditions, is, wherein, schema) {
|
|
891
891
|
return SingleMutationQuery(
|
|
892
|
-
updateEntity(
|
|
892
|
+
updateEntity(
|
|
893
|
+
client,
|
|
894
|
+
name,
|
|
895
|
+
item,
|
|
896
|
+
whereConditions,
|
|
897
|
+
is,
|
|
898
|
+
wherein,
|
|
899
|
+
schema
|
|
900
|
+
)
|
|
893
901
|
);
|
|
894
902
|
}
|
|
895
903
|
function createUpdateItemsMutation(client, name, data, where, is, wherein, schema) {
|
|
896
904
|
return MultiMutationQuery(
|
|
897
|
-
upsertEntities(
|
|
905
|
+
upsertEntities(
|
|
906
|
+
client,
|
|
907
|
+
name,
|
|
908
|
+
[data],
|
|
909
|
+
void 0,
|
|
910
|
+
where,
|
|
911
|
+
is,
|
|
912
|
+
wherein,
|
|
913
|
+
schema
|
|
914
|
+
)
|
|
898
915
|
);
|
|
899
916
|
}
|
|
900
917
|
function createUpsertItemsMutation(client, name, items, identity, schema) {
|
|
901
918
|
return MultiMutationQuery(
|
|
902
|
-
upsertEntities(
|
|
919
|
+
upsertEntities(
|
|
920
|
+
client,
|
|
921
|
+
name,
|
|
922
|
+
items,
|
|
923
|
+
identity,
|
|
924
|
+
void 0,
|
|
925
|
+
void 0,
|
|
926
|
+
void 0,
|
|
927
|
+
schema
|
|
928
|
+
)
|
|
903
929
|
);
|
|
904
930
|
}
|
|
905
931
|
function makeGetItem(client, name, softDeleteMode, schema) {
|
|
@@ -1023,11 +1049,39 @@ function makePartitionedUpsertItems(client, name, _partitionField, schema) {
|
|
|
1023
1049
|
};
|
|
1024
1050
|
}
|
|
1025
1051
|
function createDeleteItemMutation(client, name, whereConditions, is, wherein, softDelete, schema) {
|
|
1026
|
-
const operation = softDelete ? softDeleteEntity(
|
|
1052
|
+
const operation = softDelete ? softDeleteEntity(
|
|
1053
|
+
client,
|
|
1054
|
+
name,
|
|
1055
|
+
whereConditions,
|
|
1056
|
+
is,
|
|
1057
|
+
wherein,
|
|
1058
|
+
schema
|
|
1059
|
+
) : deleteEntity(
|
|
1060
|
+
client,
|
|
1061
|
+
name,
|
|
1062
|
+
whereConditions,
|
|
1063
|
+
is,
|
|
1064
|
+
wherein,
|
|
1065
|
+
schema
|
|
1066
|
+
);
|
|
1027
1067
|
return SingleMutationQuery(operation);
|
|
1028
1068
|
}
|
|
1029
1069
|
function createDeleteItemsMutation(client, name, whereConditions, is, wherein, softDelete, schema) {
|
|
1030
|
-
const operation = softDelete ? softDeleteEntities(
|
|
1070
|
+
const operation = softDelete ? softDeleteEntities(
|
|
1071
|
+
client,
|
|
1072
|
+
name,
|
|
1073
|
+
whereConditions,
|
|
1074
|
+
is,
|
|
1075
|
+
wherein,
|
|
1076
|
+
schema
|
|
1077
|
+
) : deleteEntities(
|
|
1078
|
+
client,
|
|
1079
|
+
name,
|
|
1080
|
+
whereConditions,
|
|
1081
|
+
is,
|
|
1082
|
+
wherein,
|
|
1083
|
+
schema
|
|
1084
|
+
);
|
|
1031
1085
|
return MultiMutationQuery(operation);
|
|
1032
1086
|
}
|
|
1033
1087
|
function makeDeleteItem(client, name, softDelete, schema) {
|