@bitblit/ratchet-misc 6.1.174-alpha → 6.1.176-alpha
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.
|
@@ -3,12 +3,15 @@ import { AccountApi } from './generated/apis/AccountApi.js';
|
|
|
3
3
|
import { SMTPApi } from './generated/apis/SMTPApi.js';
|
|
4
4
|
import { ConfigurationParameters } from './generated/runtime.js';
|
|
5
5
|
import { GetAccount } from './generated/models/GetAccount.js';
|
|
6
|
+
import { TransactionalSMSApi } from "./generated/apis/TransactionalSMSApi.ts";
|
|
6
7
|
export declare class BrevoRatchet {
|
|
7
8
|
private keys;
|
|
8
9
|
private configParamTemplate?;
|
|
9
10
|
constructor(keys: Promise<BrevoKeys>, configParamTemplate?: ConfigurationParameters);
|
|
10
11
|
private buildConfig;
|
|
12
|
+
fetchKeys(): Promise<BrevoKeys>;
|
|
11
13
|
accountApi(): Promise<AccountApi>;
|
|
12
14
|
smtpApi(): Promise<SMTPApi>;
|
|
15
|
+
transactionalSMSApi(): Promise<TransactionalSMSApi>;
|
|
13
16
|
fetchAccountData(): Promise<GetAccount>;
|
|
14
17
|
}
|
|
@@ -2,6 +2,7 @@ import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
|
2
2
|
import { AccountApi } from './generated/apis/AccountApi.js';
|
|
3
3
|
import { SMTPApi } from './generated/apis/SMTPApi.js';
|
|
4
4
|
import { Configuration } from './generated/runtime.js';
|
|
5
|
+
import { TransactionalSMSApi } from "./generated/apis/TransactionalSMSApi.js";
|
|
5
6
|
export class BrevoRatchet {
|
|
6
7
|
keys;
|
|
7
8
|
configParamTemplate;
|
|
@@ -21,6 +22,9 @@ export class BrevoRatchet {
|
|
|
21
22
|
rval.middleware = [logger];
|
|
22
23
|
return rval;
|
|
23
24
|
}
|
|
25
|
+
async fetchKeys() {
|
|
26
|
+
return this.keys;
|
|
27
|
+
}
|
|
24
28
|
async accountApi() {
|
|
25
29
|
const config = await this.buildConfig();
|
|
26
30
|
const rval = new AccountApi(new Configuration(config));
|
|
@@ -31,6 +35,11 @@ export class BrevoRatchet {
|
|
|
31
35
|
const rval = new SMTPApi(new Configuration(config));
|
|
32
36
|
return rval;
|
|
33
37
|
}
|
|
38
|
+
async transactionalSMSApi() {
|
|
39
|
+
const config = await this.buildConfig();
|
|
40
|
+
const rval = new TransactionalSMSApi(new Configuration(config));
|
|
41
|
+
return rval;
|
|
42
|
+
}
|
|
34
43
|
async fetchAccountData() {
|
|
35
44
|
const api = await this.accountApi();
|
|
36
45
|
const rval = await api.getAccount();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-ratchet.js","sourceRoot":"","sources":["../../src/brevo/brevo-ratchet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAoE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"brevo-ratchet.js","sourceRoot":"","sources":["../../src/brevo/brevo-ratchet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAoE,MAAM,wBAAwB,CAAC;AAEzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,MAAM,OAAO,YAAY;IAEb;IACA;IAFV,YACU,IAAwB,EACxB,mBAA6C;QAD7C,SAAI,GAAJ,IAAI,CAAoB;QACxB,wBAAmB,GAAnB,mBAAmB,CAA0B;IACpD,CAAC;IAEI,KAAK,CAAC,WAAW;QACvB,MAAM,IAAI,GAAc,MAA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,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAChD,MAAM,IAAI,GAAe,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;CAEF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ratchet-misc",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.176-alpha",
|
|
4
4
|
"description": "Ratchet miscellaneous tooling that requires smallish dependant libraries",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"license": "Apache-2.0",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@bitblit/ratchet-common": "6.1.
|
|
57
|
+
"@bitblit/ratchet-common": "6.1.176-alpha"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
60
|
"handlebars": "4.7.8",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"swagger-model-validator": "3.0.21"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@bitblit/ratchet-common": "6.1.
|
|
67
|
+
"@bitblit/ratchet-common": "6.1.176-alpha",
|
|
68
68
|
"handlebars": "^4.7.8",
|
|
69
69
|
"handlebars-layouts": "^3.1.4",
|
|
70
70
|
"js-yaml": "^4.1.1",
|
|
@@ -7,6 +7,7 @@ import { AccountApi } from './generated/apis/AccountApi.js';
|
|
|
7
7
|
import { SMTPApi } from './generated/apis/SMTPApi.js';
|
|
8
8
|
import { Configuration, ConfigurationParameters, FetchParams, Middleware, RequestContext } from './generated/runtime.js';
|
|
9
9
|
import { GetAccount } from './generated/models/GetAccount.js';
|
|
10
|
+
import { TransactionalSMSApi } from "./generated/apis/TransactionalSMSApi.ts";
|
|
10
11
|
|
|
11
12
|
export class BrevoRatchet {
|
|
12
13
|
constructor(
|
|
@@ -29,6 +30,10 @@ export class BrevoRatchet {
|
|
|
29
30
|
return rval;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
public async fetchKeys(): Promise<BrevoKeys> {
|
|
34
|
+
return this.keys;
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
public async accountApi(): Promise<AccountApi> {
|
|
33
38
|
const config: ConfigurationParameters = await this.buildConfig();
|
|
34
39
|
const rval: AccountApi = new AccountApi(new Configuration(config));
|
|
@@ -41,10 +46,17 @@ export class BrevoRatchet {
|
|
|
41
46
|
return rval;
|
|
42
47
|
}
|
|
43
48
|
|
|
49
|
+
public async transactionalSMSApi(): Promise<TransactionalSMSApi> {
|
|
50
|
+
const config: ConfigurationParameters = await this.buildConfig();
|
|
51
|
+
const rval: TransactionalSMSApi = new TransactionalSMSApi(new Configuration(config));
|
|
52
|
+
return rval;
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
// This is mainly just here to test things
|
|
45
56
|
public async fetchAccountData(): Promise<GetAccount> {
|
|
46
57
|
const api: AccountApi = await this.accountApi();
|
|
47
58
|
const rval: GetAccount = await api.getAccount();
|
|
48
59
|
return rval;
|
|
49
60
|
}
|
|
61
|
+
|
|
50
62
|
}
|