@mxpicture/gcp-functions-backend 0.1.50 → 0.1.52

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.
@@ -2,7 +2,6 @@ import type { DocumentData, WithKey, ApiFromRoutes, CrudRoutes, WithoutKey, Docu
2
2
  import { Store } from "../store/Store.js";
3
3
  import type { Validation } from "../validation/Validation.js";
4
4
  import { IBackendApi } from "./IBackendApi.js";
5
- import type { MetaItem } from "@mxpicture/gcp-functions-common/meta";
6
5
  export declare class BackendApi<DTO extends DocumentData, STORE extends Store<DTO> = Store<DTO>, VAL extends Validation<DTO> = Validation<DTO>> extends IBackendApi<DTO, STORE, VAL> implements ApiFromRoutes<CrudRoutes<DTO>> {
7
6
  delete(request: DocumentKey): Promise<{
8
7
  deleted: true;
@@ -15,7 +14,6 @@ export declare class BackendApi<DTO extends DocumentData, STORE extends Store<DT
15
14
  exists(request: DocumentKey): Promise<{
16
15
  exists: boolean;
17
16
  }>;
18
- meta(): Promise<MetaItem[]>;
19
17
  create(request: WithoutKey<DTO>): Promise<WithKey<DTO>>;
20
18
  update(request: WithKey<Partial<DTO>>): Promise<WithKey<DTO>>;
21
19
  }
@@ -16,9 +16,6 @@ export class BackendApi extends IBackendApi {
16
16
  async exists(request) {
17
17
  return { exists: await this.store().exists(request.id) };
18
18
  }
19
- async meta() {
20
- throw new Error("not implemented"); // todo
21
- }
22
19
  async create(request) {
23
20
  const result = this.validation().validate(request);
24
21
  return this.store().create(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/gcp-functions-backend",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "Utils for google cloud functions, publishing both CommonJS and ESM builds",
5
5
  "type": "module",
6
6
  "author": "MXPicture",
@@ -27,7 +27,6 @@
27
27
  "scripts": {
28
28
  "clean": "rm -rf dist .tsbuildinfo tsconfig.tsbuildinfo node_modules",
29
29
  "lint": "eslint \"src/**/*.{ts,tsx}\" --ext .ts,.tsx",
30
- "update": "ncu -u && npm install",
31
30
  "build": "tsc -b ."
32
31
  },
33
32
  "publishConfig": {
@@ -35,20 +34,13 @@
35
34
  },
36
35
  "dependencies": {
37
36
  "@mxpicture/gcp-functions-common": "*",
38
- "@mxpicture/http-status-codes": "^0.1.28",
39
- "cookie-parser": "^1.4.7",
40
- "express": "^5.2.1",
41
37
  "firebase-admin": "^13.6.0",
42
38
  "firebase-functions": "^7.0.5",
43
39
  "short-uuid": "^6.0.3",
44
40
  "zod": "^4.3.6"
45
41
  },
46
42
  "devDependencies": {
47
- "@types/cookie-parser": "^1.4.10",
48
- "@types/express": "^4.17.25",
49
43
  "@types/node": "^25.2.0",
50
- "@typescript-eslint/eslint-plugin": "^8.55.0",
51
- "@typescript-eslint/parser": "^8.55.0",
52
44
  "firebase-tools": "^15.5.1",
53
45
  "typescript": "^5.9.3"
54
46
  }