@credo-ts/tenants 0.5.0-alpha.114 → 0.5.0-alpha.116

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.
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  <a
12
12
  href="https://raw.githubusercontent.com/openwallet-foundation/credo-ts/main/LICENSE"
13
13
  ><img
14
- alt="License"
14
+ alt="License"k
15
15
  src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"
16
16
  /></a>
17
17
  <a href="https://www.typescriptlang.org/"
@@ -1,18 +1,21 @@
1
1
  import type { CreateTenantOptions, GetTenantAgentOptions, WithTenantAgentCallback } from './TenantsApiOptions';
2
- import type { DefaultAgentModules, ModulesMap } from '@credo-ts/core';
2
+ import type { TenantRecord } from './repository';
3
+ import type { DefaultAgentModules, ModulesMap, Query } from '@credo-ts/core';
3
4
  import { AgentContext, AgentContextProvider, Logger } from '@credo-ts/core';
4
5
  import { TenantAgent } from './TenantAgent';
5
6
  import { TenantRecordService } from './services';
6
7
  export declare class TenantsApi<AgentModules extends ModulesMap = DefaultAgentModules> {
7
- private agentContext;
8
+ readonly rootAgentContext: AgentContext;
8
9
  private tenantRecordService;
9
10
  private agentContextProvider;
10
11
  private logger;
11
- constructor(tenantRecordService: TenantRecordService, agentContext: AgentContext, agentContextProvider: AgentContextProvider, logger: Logger);
12
+ constructor(tenantRecordService: TenantRecordService, rootAgentContext: AgentContext, agentContextProvider: AgentContextProvider, logger: Logger);
12
13
  getTenantAgent({ tenantId }: GetTenantAgentOptions): Promise<TenantAgent<AgentModules>>;
13
14
  withTenantAgent(options: GetTenantAgentOptions, withTenantAgentCallback: WithTenantAgentCallback<AgentModules>): Promise<void>;
14
- createTenant(options: CreateTenantOptions): Promise<import("./repository").TenantRecord>;
15
- getTenantById(tenantId: string): Promise<import("./repository").TenantRecord>;
15
+ createTenant(options: CreateTenantOptions): Promise<TenantRecord>;
16
+ getTenantById(tenantId: string): Promise<TenantRecord>;
16
17
  deleteTenantById(tenantId: string): Promise<void>;
17
- getAllTenants(): Promise<import("./repository").TenantRecord[]>;
18
+ updateTenant(tenant: TenantRecord): Promise<void>;
19
+ findTenantsByQuery(query: Query<TenantRecord>): Promise<TenantRecord[]>;
20
+ getAllTenants(): Promise<TenantRecord[]>;
18
21
  }
@@ -17,9 +17,9 @@ const core_1 = require("@credo-ts/core");
17
17
  const TenantAgent_1 = require("./TenantAgent");
18
18
  const services_1 = require("./services");
19
19
  let TenantsApi = class TenantsApi {
20
- constructor(tenantRecordService, agentContext, agentContextProvider, logger) {
20
+ constructor(tenantRecordService, rootAgentContext, agentContextProvider, logger) {
21
21
  this.tenantRecordService = tenantRecordService;
22
- this.agentContext = agentContext;
22
+ this.rootAgentContext = rootAgentContext;
23
23
  this.agentContextProvider = agentContextProvider;
24
24
  this.logger = logger;
25
25
  }
@@ -50,7 +50,7 @@ let TenantsApi = class TenantsApi {
50
50
  }
51
51
  async createTenant(options) {
52
52
  this.logger.debug(`Creating tenant with label ${options.config.label}`);
53
- const tenantRecord = await this.tenantRecordService.createTenant(this.agentContext, options.config);
53
+ const tenantRecord = await this.tenantRecordService.createTenant(this.rootAgentContext, options.config);
54
54
  // This initializes the tenant agent, creates the wallet etc...
55
55
  const tenantAgent = await this.getTenantAgent({ tenantId: tenantRecord.id });
56
56
  await tenantAgent.endSession();
@@ -59,7 +59,7 @@ let TenantsApi = class TenantsApi {
59
59
  }
60
60
  async getTenantById(tenantId) {
61
61
  this.logger.debug(`Getting tenant by id '${tenantId}'`);
62
- return this.tenantRecordService.getTenantById(this.agentContext, tenantId);
62
+ return this.tenantRecordService.getTenantById(this.rootAgentContext, tenantId);
63
63
  }
64
64
  async deleteTenantById(tenantId) {
65
65
  this.logger.debug(`Deleting tenant by id '${tenantId}'`);
@@ -69,11 +69,17 @@ let TenantsApi = class TenantsApi {
69
69
  await tenantAgent.wallet.delete();
70
70
  this.logger.trace(`Shutting down agent for tenant '${tenantId}'`);
71
71
  await tenantAgent.endSession();
72
- return this.tenantRecordService.deleteTenantById(this.agentContext, tenantId);
72
+ return this.tenantRecordService.deleteTenantById(this.rootAgentContext, tenantId);
73
+ }
74
+ async updateTenant(tenant) {
75
+ await this.tenantRecordService.updateTenant(this.rootAgentContext, tenant);
76
+ }
77
+ async findTenantsByQuery(query) {
78
+ return this.tenantRecordService.findTenantsByQuery(this.rootAgentContext, query);
73
79
  }
74
80
  async getAllTenants() {
75
81
  this.logger.debug('Getting all tenants');
76
- return this.tenantRecordService.getAllTenants(this.agentContext);
82
+ return this.tenantRecordService.getAllTenants(this.rootAgentContext);
77
83
  }
78
84
  };
79
85
  TenantsApi = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"TenantsApi.js","sourceRoot":"","sources":["../src/TenantsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,yCAAiH;AAEjH,+CAA2C;AAC3C,yCAAgD;AAGzC,IAAM,UAAU,GAAhB,MAAM,UAAU;IAMrB,YACE,mBAAwC,EACxC,YAA0B,EACqB,oBAA0C,EACxD,MAAc;QAE/C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAyB;QAC7D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,QAAQ,GAAG,CAAC,CAAA;QAClE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,QAAQ,CAAC,CAAA;QAEtG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kCAAkC,QAAQ,GAAG,CAAC,CAAA;QAChE,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAe,aAAa,CAAC,CAAA;QAChE,MAAM,WAAW,CAAC,UAA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AoB,CAAC,CAAA;IAC7C,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,MAAM,CAAC,CAAA;qCAHX,8BAAmB;QACtB,mBAAY;GARrB,UAAU,CA4FtB;AA5FY,gCAAU"}
@@ -1,5 +1,5 @@
1
1
  import type { TenantConfig } from '../models/TenantConfig';
2
- import type { AgentContext, Key } from '@credo-ts/core';
2
+ import type { AgentContext, Key, Query } from '@credo-ts/core';
3
3
  import { TenantRepository, TenantRecord, TenantRoutingRepository, TenantRoutingRecord } from '../repository';
4
4
  export declare class TenantRecordService {
5
5
  private tenantRepository;
@@ -9,6 +9,8 @@ export declare class TenantRecordService {
9
9
  getTenantById(agentContext: AgentContext, tenantId: string): Promise<TenantRecord>;
10
10
  getAllTenants(agentContext: AgentContext): Promise<TenantRecord[]>;
11
11
  deleteTenantById(agentContext: AgentContext, tenantId: string): Promise<void>;
12
+ updateTenant(agentContext: AgentContext, tenantRecord: TenantRecord): Promise<void>;
13
+ findTenantsByQuery(agentContext: AgentContext, query: Query<TenantRecord>): Promise<TenantRecord[]>;
12
14
  findTenantRoutingRecordByRecipientKey(agentContext: AgentContext, recipientKey: Key): Promise<TenantRoutingRecord | null>;
13
15
  addTenantRoutingRecord(agentContext: AgentContext, tenantId: string, recipientKey: Key): Promise<TenantRoutingRecord>;
14
16
  }
@@ -48,6 +48,12 @@ let TenantRecordService = class TenantRecordService {
48
48
  // Delete tenant record
49
49
  await this.tenantRepository.delete(agentContext, tenantRecord);
50
50
  }
51
+ async updateTenant(agentContext, tenantRecord) {
52
+ return this.tenantRepository.update(agentContext, tenantRecord);
53
+ }
54
+ async findTenantsByQuery(agentContext, query) {
55
+ return this.tenantRepository.findByQuery(agentContext, query);
56
+ }
51
57
  async findTenantRoutingRecordByRecipientKey(agentContext, recipientKey) {
52
58
  return this.tenantRoutingRepository.findByRecipientKey(agentContext, recipientKey);
53
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TenantRecordService.js","sourceRoot":"","sources":["../../src/services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ts/tenants",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "0.5.0-alpha.114+e0b971e8",
5
+ "version": "0.5.0-alpha.116+e4b99a86",
6
6
  "files": [
7
7
  "build"
8
8
  ],
@@ -24,14 +24,14 @@
24
24
  "test": "jest"
25
25
  },
26
26
  "dependencies": {
27
- "@credo-ts/core": "0.5.0-alpha.114+e0b971e8",
27
+ "@credo-ts/core": "0.5.0-alpha.116+e4b99a86",
28
28
  "async-mutex": "^0.4.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@credo-ts/node": "0.5.0-alpha.114+e0b971e8",
31
+ "@credo-ts/node": "0.5.0-alpha.116+e4b99a86",
32
32
  "reflect-metadata": "^0.1.13",
33
33
  "rimraf": "^4.4.0",
34
34
  "typescript": "~4.9.5"
35
35
  },
36
- "gitHead": "e0b971e86b506bb78dafa21f76ae3b193abe9a9d"
36
+ "gitHead": "e4b99a86c76a1a4a41aebb94da0b57f774dd6aaf"
37
37
  }