@camstack/server 1.2.276 → 1.2.277
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.
|
@@ -2050,6 +2050,15 @@ function createCapRouter_dataStoreProvider(getProvider, createRemoteProxy) {
|
|
|
2050
2050
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2051
2051
|
return p.insert(methodInput);
|
|
2052
2052
|
}),
|
|
2053
|
+
upsert: trpc_middleware_js_1.adminProcedure
|
|
2054
|
+
.input(types_35.dataStoreProviderCapability.methods.upsert.input.loose())
|
|
2055
|
+
.output(types_35.dataStoreProviderCapability.methods.upsert.output)
|
|
2056
|
+
.mutation(async ({ input, ctx }) => {
|
|
2057
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
2058
|
+
const p = resolveProvider('data-store-provider', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
2059
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
2060
|
+
return p.upsert(methodInput);
|
|
2061
|
+
}),
|
|
2053
2062
|
insertMany: trpc_middleware_js_1.adminProcedure
|
|
2054
2063
|
.input(types_35.dataStoreProviderCapability.methods.insertMany.input.loose())
|
|
2055
2064
|
.output(types_35.dataStoreProviderCapability.methods.insertMany.output)
|
|
@@ -8470,6 +8479,15 @@ function createCapRouter_settingsStore(getProvider, createRemoteProxy) {
|
|
|
8470
8479
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8471
8480
|
return p.query(methodInput);
|
|
8472
8481
|
}),
|
|
8482
|
+
upsert: trpc_middleware_js_1.protectedProcedure
|
|
8483
|
+
.input(types_101.settingsStoreCapability.methods.upsert.input.loose())
|
|
8484
|
+
.output(types_101.settingsStoreCapability.methods.upsert.output)
|
|
8485
|
+
.mutation(async ({ input, ctx }) => {
|
|
8486
|
+
const { nodeId, ...methodInput } = input;
|
|
8487
|
+
const p = resolveProvider('settings-store', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
8488
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
8489
|
+
return p.upsert(methodInput);
|
|
8490
|
+
}),
|
|
8473
8491
|
insert: trpc_middleware_js_1.protectedProcedure
|
|
8474
8492
|
.input(types_101.settingsStoreCapability.methods.insert.input.loose())
|
|
8475
8493
|
.output(types_101.settingsStoreCapability.methods.insert.output)
|