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.js
CHANGED
|
@@ -890,17 +890,43 @@ function createAddItemsMutation(client, name, items, schema) {
|
|
|
890
890
|
}
|
|
891
891
|
function createUpdateItemMutation(client, name, item, whereConditions, is, wherein, schema) {
|
|
892
892
|
return SingleMutationQuery(
|
|
893
|
-
updateEntity(
|
|
893
|
+
updateEntity(
|
|
894
|
+
client,
|
|
895
|
+
name,
|
|
896
|
+
item,
|
|
897
|
+
whereConditions,
|
|
898
|
+
is,
|
|
899
|
+
wherein,
|
|
900
|
+
schema
|
|
901
|
+
)
|
|
894
902
|
);
|
|
895
903
|
}
|
|
896
904
|
function createUpdateItemsMutation(client, name, data, where, is, wherein, schema) {
|
|
897
905
|
return MultiMutationQuery(
|
|
898
|
-
upsertEntities(
|
|
906
|
+
upsertEntities(
|
|
907
|
+
client,
|
|
908
|
+
name,
|
|
909
|
+
[data],
|
|
910
|
+
void 0,
|
|
911
|
+
where,
|
|
912
|
+
is,
|
|
913
|
+
wherein,
|
|
914
|
+
schema
|
|
915
|
+
)
|
|
899
916
|
);
|
|
900
917
|
}
|
|
901
918
|
function createUpsertItemsMutation(client, name, items, identity, schema) {
|
|
902
919
|
return MultiMutationQuery(
|
|
903
|
-
upsertEntities(
|
|
920
|
+
upsertEntities(
|
|
921
|
+
client,
|
|
922
|
+
name,
|
|
923
|
+
items,
|
|
924
|
+
identity,
|
|
925
|
+
void 0,
|
|
926
|
+
void 0,
|
|
927
|
+
void 0,
|
|
928
|
+
schema
|
|
929
|
+
)
|
|
904
930
|
);
|
|
905
931
|
}
|
|
906
932
|
function makeGetItem(client, name, softDeleteMode, schema) {
|
|
@@ -1024,11 +1050,39 @@ function makePartitionedUpsertItems(client, name, _partitionField, schema) {
|
|
|
1024
1050
|
};
|
|
1025
1051
|
}
|
|
1026
1052
|
function createDeleteItemMutation(client, name, whereConditions, is, wherein, softDelete, schema) {
|
|
1027
|
-
const operation = softDelete ? softDeleteEntity(
|
|
1053
|
+
const operation = softDelete ? softDeleteEntity(
|
|
1054
|
+
client,
|
|
1055
|
+
name,
|
|
1056
|
+
whereConditions,
|
|
1057
|
+
is,
|
|
1058
|
+
wherein,
|
|
1059
|
+
schema
|
|
1060
|
+
) : deleteEntity(
|
|
1061
|
+
client,
|
|
1062
|
+
name,
|
|
1063
|
+
whereConditions,
|
|
1064
|
+
is,
|
|
1065
|
+
wherein,
|
|
1066
|
+
schema
|
|
1067
|
+
);
|
|
1028
1068
|
return SingleMutationQuery(operation);
|
|
1029
1069
|
}
|
|
1030
1070
|
function createDeleteItemsMutation(client, name, whereConditions, is, wherein, softDelete, schema) {
|
|
1031
|
-
const operation = softDelete ? softDeleteEntities(
|
|
1071
|
+
const operation = softDelete ? softDeleteEntities(
|
|
1072
|
+
client,
|
|
1073
|
+
name,
|
|
1074
|
+
whereConditions,
|
|
1075
|
+
is,
|
|
1076
|
+
wherein,
|
|
1077
|
+
schema
|
|
1078
|
+
) : deleteEntities(
|
|
1079
|
+
client,
|
|
1080
|
+
name,
|
|
1081
|
+
whereConditions,
|
|
1082
|
+
is,
|
|
1083
|
+
wherein,
|
|
1084
|
+
schema
|
|
1085
|
+
);
|
|
1032
1086
|
return MultiMutationQuery(operation);
|
|
1033
1087
|
}
|
|
1034
1088
|
function makeDeleteItem(client, name, softDelete, schema) {
|