@dereekb/nestjs 12.3.13 → 12.4.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [12.4.1](https://github.com/dereekb/dbx-components/compare/v12.4.0-dev...v12.4.1) (2025-09-09)
6
+
7
+
8
+
9
+ # [12.4.0](https://github.com/dereekb/dbx-components/compare/v12.3.12-dev-dev...v12.4.0) (2025-08-30)
10
+
11
+
12
+
5
13
  ## [12.3.13](https://github.com/dereekb/dbx-components/compare/v12.3.12-dev...v12.3.13) (2025-08-22)
6
14
 
7
15
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/mailgun",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/openai",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {},
@@ -20,6 +20,10 @@ export type OpenAIWebhookSecret = string;
20
20
  * Assistant id used by OpenAI.
21
21
  */
22
22
  export type OpenAIAssistantId = string;
23
+ /**
24
+ * OpenAI response
25
+ */
26
+ export type OpenAIResponse = OpenAI.Responses.Response;
23
27
  /**
24
28
  * OpenAI response id
25
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/stripe",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/typeform",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/vapiai",
3
- "version": "12.3.13",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {},
@@ -1,7 +1,15 @@
1
1
  import { VapiClient } from '@vapi-ai/server-sdk';
2
2
  import { VapiAiServiceConfig } from './vapiai.config';
3
+ import { VapiCallWithTranscript } from './vapiai.type';
3
4
  export declare class VapiAiApi {
4
5
  readonly config: VapiAiServiceConfig;
5
6
  readonly vapiClient: VapiClient;
6
7
  constructor(config: VapiAiServiceConfig);
8
+ /**
9
+ * Gets a call by ID.
10
+ *
11
+ * @param callId
12
+ * @returns
13
+ */
14
+ getCall(callId: string): Promise<VapiCallWithTranscript>;
7
15
  }
@@ -12,6 +12,16 @@ let VapiAiApi = class VapiAiApi {
12
12
  this.config = config;
13
13
  this.vapiClient = new server_sdk_1.VapiClient(config.vapiai.config);
14
14
  }
15
+ // MARK: Accessors
16
+ /**
17
+ * Gets a call by ID.
18
+ *
19
+ * @param callId
20
+ * @returns
21
+ */
22
+ getCall(callId) {
23
+ return this.vapiClient.calls.get(callId);
24
+ }
15
25
  };
16
26
  exports.VapiAiApi = VapiAiApi;
17
27
  exports.VapiAiApi = VapiAiApi = tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"vapiai.api.js","sourceRoot":"","sources":["../../../../../../packages/nestjs/vapiai/src/lib/vapiai.api.ts"],"names":[],"mappings":";;;;AAAA,oDAAiD;AACjD,2CAAoD;AACpD,mDAAsD;AAG/C,IAAM,SAAS,GAAf,MAAM,SAAS;IAG8B;IAFzC,UAAU,CAAa;IAEhC,YAAkD,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;QAC3E,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AANY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;IAIE,mBAAA,IAAA,eAAM,EAAC,mCAAmB,CAAC,CAAA;6CAAkB,mCAAmB;GAHlE,SAAS,CAMrB"}
1
+ {"version":3,"file":"vapiai.api.js","sourceRoot":"","sources":["../../../../../../packages/nestjs/vapiai/src/lib/vapiai.api.ts"],"names":[],"mappings":";;;;AAAA,oDAAiD;AACjD,2CAAoD;AACpD,mDAAsD;AAI/C,IAAM,SAAS,GAAf,MAAM,SAAS;IAG8B;IAFzC,UAAU,CAAa;IAEhC,YAAkD,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;QAC3E,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;IAED,kBAAkB;IAClB;;;;;OAKG;IACH,OAAO,CAAC,MAAc;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAoC,CAAC;IAC9E,CAAC;CACF,CAAA;AAjBY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;IAIE,mBAAA,IAAA,eAAM,EAAC,mCAAmB,CAAC,CAAA;6CAAkB,mCAAmB;GAHlE,SAAS,CAiBrB"}
@@ -31,6 +31,10 @@ export type VapiApiWebhookEventVerificationType = 'none' | 'secret' | 'hmac';
31
31
  * Cost item used by Vapi.ai.
32
32
  */
33
33
  export type VapiCostsItem = Vapi.ServerMessageEndOfCallReport.Costs.Item;
34
+ /**
35
+ * Vapi.ai Call identifier
36
+ */
37
+ export type VapiCallId = string;
34
38
  /**
35
39
  * Assistant id used by Vapi.ai.
36
40
  */