@runnerpro/backend 1.1.0 → 1.1.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.
@@ -11,8 +11,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NOTION_DATABASES_ID = exports.notionAddPage = exports.notionGetDatabase = exports.notionGetUsers = void 0;
13
13
  const client_1 = require("@notionhq/client");
14
+ /*
15
+ Obtener ID de una BBDD de Notion
16
+ 1º Ir al link de la base de datos (no a la página, si no a la BBDD directamente)
17
+ 2º Coger el ID de la url -> notion.so/ID?v=VERSION
18
+ 3º Separar el ID en - con en los mimos lugares que las otras BBDD
19
+ 4º Arriba a la derecha en los 3 puntos horizontales -> Conexiones -> Conectar con API (logo de RunnerPro)
20
+ */
14
21
  const NOTION_DATABASES_ID = {
15
22
  REGISTRADOS_PRUEBA_7_DIAS: '25732354-92bd-4bb5-8937-0ad583b795ab',
23
+ OBSERVAR_CLIENTE: '47fc4035-7028-41c2-8b81-8e91d44a989b',
16
24
  };
17
25
  exports.NOTION_DATABASES_ID = NOTION_DATABASES_ID;
18
26
  const getNotionDatabaseProperties = (databaseId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1,5 +1,6 @@
1
1
  declare const NOTION_DATABASES_ID: {
2
2
  REGISTRADOS_PRUEBA_7_DIAS: string;
3
+ OBSERVAR_CLIENTE: string;
3
4
  };
4
5
  declare const notionGetUsers: () => Promise<import("@notionhq/client/build/src/api-endpoints").ListUsersResponse>;
5
6
  declare const notionGetDatabase: (databaseId: any) => Promise<(import("@notionhq/client/build/src/api-endpoints").PartialDatabaseObjectResponse | import("@notionhq/client/build/src/api-endpoints").DatabaseObjectResponse | import("@notionhq/client/build/src/api-endpoints").PageObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialPageObjectResponse)[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/notion/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB;;CAExB,CAAC;AAcF,QAAA,MAAM,cAAc,qFAEnB,CAAC;AAEF,QAAA,MAAM,iBAAiB,uVAMtB,CAAC;AAEF,QAAA,MAAM,aAAa,kHAwClB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/notion/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,mBAAmB;;;CAGxB,CAAC;AAcF,QAAA,MAAM,cAAc,qFAEnB,CAAC;AAEF,QAAA,MAAM,iBAAiB,uVAMtB,CAAC;AAEF,QAAA,MAAM,aAAa,kHAwClB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"