@n8n/db 1.42.0 → 1.42.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.
@@ -1,5 +1,7 @@
1
1
  import { DataSource, Repository } from '@n8n/typeorm';
2
2
  import { AuthIdentity } from '../entities';
3
+ import type { AuthProviderType } from '../entities/types-db';
3
4
  export declare class AuthIdentityRepository extends Repository<AuthIdentity> {
4
5
  constructor(dataSource: DataSource);
6
+ findByProviderIdWithUser(providerId: string, providerType: AuthProviderType): Promise<AuthIdentity | null>;
5
7
  }
@@ -17,6 +17,12 @@ let AuthIdentityRepository = class AuthIdentityRepository extends typeorm_1.Repo
17
17
  constructor(dataSource) {
18
18
  super(entities_1.AuthIdentity, dataSource.manager);
19
19
  }
20
+ async findByProviderIdWithUser(providerId, providerType) {
21
+ return await this.findOne({
22
+ where: { providerId, providerType },
23
+ relations: { user: { role: true, authIdentities: true } },
24
+ });
25
+ }
20
26
  };
21
27
  exports.AuthIdentityRepository = AuthIdentityRepository;
22
28
  exports.AuthIdentityRepository = AuthIdentityRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"auth-identity.repository.js","sourceRoot":"","sources":["../../src/repositories/auth-identity.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,0CAAsD;AAEtD,0CAA2C;AAGpC,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAwB;IACnE,YAAY,UAAsB;QACjC,KAAK,CAAC,uBAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;CACD,CAAA;;iCAJY,sBAAsB;IADlC,IAAA,YAAO,GAAE;qCAEe,oBAAU;GADtB,sBAAsB,CAIlC"}
1
+ {"version":3,"file":"auth-identity.repository.js","sourceRoot":"","sources":["../../src/repositories/auth-identity.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,0CAAsD;AAEtD,0CAA2C;AAIpC,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAwB;IACnE,YAAY,UAAsB;QACjC,KAAK,CAAC,uBAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAOD,KAAK,CAAC,wBAAwB,CAC7B,UAAkB,EAClB,YAA8B;QAE9B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACzB,KAAK,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE;YACnC,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE;SACzD,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;;iCAnBY,sBAAsB;IADlC,IAAA,YAAO,GAAE;qCAEe,oBAAU;GADtB,sBAAsB,CAmBlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/db",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -10,11 +10,11 @@
10
10
  "LICENSE_EE.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@n8n/api-types": "1.42.0",
14
- "@n8n/backend-common": "1.42.0",
13
+ "@n8n/api-types": "1.42.1",
14
+ "@n8n/backend-common": "1.42.1",
15
15
  "@n8n/config": "2.40.0",
16
16
  "@n8n/constants": "0.40.0",
17
- "@n8n/decorators": "1.42.0",
17
+ "@n8n/decorators": "1.42.1",
18
18
  "@n8n/di": "0.17.0",
19
19
  "@n8n/permissions": "0.79.0",
20
20
  "@n8n/utils": "1.49.0",
@@ -22,8 +22,8 @@
22
22
  "class-validator": "0.14.0",
23
23
  "flatted": "3.4.2",
24
24
  "lodash": "4.18.1",
25
- "n8n-core": "2.42.0",
26
- "n8n-workflow": "2.42.0",
25
+ "n8n-core": "2.42.1",
26
+ "n8n-workflow": "2.42.1",
27
27
  "nanoid": "3.3.18",
28
28
  "p-lazy": "3.1.0",
29
29
  "uuid": "11.1.1",