@secrecy/lib 1.49.0 → 1.50.0-feat-delete-nodes.1

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.
@@ -431,6 +431,11 @@ export class SecrecyCloudClient {
431
431
  });
432
432
  return isDeleted;
433
433
  }
434
+ async deleteNodes({ nodeIds, }) {
435
+ return this.#apiClient.cloud.deleteNodes.mutate({
436
+ ids: nodeIds,
437
+ });
438
+ }
434
439
  async emptyTrash() {
435
440
  const { isCleaned } = await this.#apiClient.cloud.emptyNodeCloudTrash.mutate({});
436
441
  return isCleaned;
@@ -82,6 +82,11 @@ export declare class SecrecyCloudClient {
82
82
  deleteNode({ nodeId }: {
83
83
  nodeId: string;
84
84
  }): Promise<boolean>;
85
+ deleteNodes({ nodeIds, }: {
86
+ nodeIds: string[];
87
+ }): Promise<{
88
+ count: number;
89
+ }>;
85
90
  emptyTrash(): Promise<boolean>;
86
91
  recoverNode(id: string): Promise<boolean>;
87
92
  moveNodes({ nodeIds, parentNodeId, }: {
@@ -3948,17 +3948,15 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3948
3948
  _ctx_out: {};
3949
3949
  _input_in: {
3950
3950
  id: string;
3951
- } & {
3952
- force?: boolean | undefined;
3953
3951
  } & {
3954
3952
  appId?: string | null | undefined;
3953
+ force?: boolean | undefined;
3955
3954
  };
3956
3955
  _input_out: {
3957
3956
  id: string;
3958
- } & {
3959
- force?: boolean | undefined;
3960
3957
  } & {
3961
3958
  appId?: string | null | undefined;
3959
+ force?: boolean | undefined;
3962
3960
  };
3963
3961
  _output_in: {
3964
3962
  isDeleted: boolean;
@@ -3968,6 +3966,48 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3968
3966
  };
3969
3967
  }, unknown>>;
3970
3968
  };
3969
+ deleteNodes: {
3970
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
3971
+ _config: import("@trpc/server").RootConfig<{
3972
+ ctx: {};
3973
+ meta: object;
3974
+ errorShape: {
3975
+ message: string;
3976
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
3977
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
3978
+ } | {
3979
+ data: {
3980
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
3981
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
3982
+ httpStatus: number;
3983
+ path?: string;
3984
+ stack?: string;
3985
+ };
3986
+ message: string;
3987
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
3988
+ };
3989
+ transformer: typeof superjson;
3990
+ }>;
3991
+ _meta: object;
3992
+ _ctx_out: {};
3993
+ _input_in: {
3994
+ ids: string[];
3995
+ appId?: string | null | undefined;
3996
+ force?: boolean | undefined;
3997
+ };
3998
+ _input_out: {
3999
+ ids: string[];
4000
+ appId?: string | null | undefined;
4001
+ force?: boolean | undefined;
4002
+ };
4003
+ _output_in: {
4004
+ count: number;
4005
+ };
4006
+ _output_out: {
4007
+ count: number;
4008
+ };
4009
+ }, unknown>>;
4010
+ };
3971
4011
  duplicateNode: {
3972
4012
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
3973
4013
  _config: import("@trpc/server").RootConfig<{
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Anonymize <anonymize@gmail.com>",
4
4
  "description": "Anonymize Secrecy Library",
5
- "version": "1.49.0",
5
+ "version": "1.50.0-feat-delete-nodes.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -74,7 +74,7 @@
74
74
  "typescript": "^5.6.2"
75
75
  },
76
76
  "dependencies": {
77
- "@secrecy/trpc-api-types": "1.33.0-feat-report-data-content.6",
77
+ "@secrecy/trpc-api-types": "1.33.0-feat-delete-nodes.2",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",