mblabs-roccato-backend-commons 1.0.7 → 1.1.0
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/bitbucket-pipelines.yml +6 -48
- package/dist/database/entities/account.d.ts +1 -2
- package/dist/database/entities/account.js +2 -7
- package/dist/database/entities/address.d.ts +2 -1
- package/dist/database/entities/address.js +6 -5
- package/dist/database/entities/company-address.d.ts +2 -0
- package/dist/database/entities/company-address.js +7 -0
- package/dist/database/migrations/1748448589934-CreateAccountsTable.js +1 -6
- package/dist/database/migrations/1750432386920-CreateAddressTable.js +0 -5
- package/dist/database/migrations/index.js +0 -4
- package/dist/interfaces/aws.d.ts +41 -67
- package/dist/interfaces/azure.d.ts +38 -61
- package/dist/interfaces/firebase.d.ts +3 -7
- package/dist/interfaces/gcp.d.ts +5 -11
- package/dist/interfaces/grafana.d.ts +2 -6
- package/dist/interfaces/keycloak.d.ts +4 -171
- package/dist/interfaces/nodemailer.d.ts +16 -20
- package/dist/interfaces/redis.d.ts +8 -49
- package/dist/interfaces/sendgrid.d.ts +13 -15
- package/dist/services/aws/cloudwatch.d.ts +1 -1
- package/dist/services/aws/cloudwatch.js +38 -38
- package/dist/services/aws/pinpoint.d.ts +3 -3
- package/dist/services/aws/pinpoint.js +29 -29
- package/dist/services/aws/s3.d.ts +5 -5
- package/dist/services/aws/s3.js +55 -59
- package/dist/services/aws/secret-manager.d.ts +1 -1
- package/dist/services/aws/secret-manager.js +5 -5
- package/dist/services/aws/sqs.d.ts +3 -3
- package/dist/services/aws/sqs.js +16 -16
- package/dist/services/azure/application-insights.d.ts +4 -4
- package/dist/services/azure/application-insights.js +12 -12
- package/dist/services/azure/communication.d.ts +3 -3
- package/dist/services/azure/communication.js +17 -17
- package/dist/services/azure/keyvault.d.ts +1 -1
- package/dist/services/azure/keyvault.js +3 -3
- package/dist/services/azure/storage-blob.d.ts +3 -3
- package/dist/services/azure/storage-blob.js +22 -22
- package/dist/services/firebase.d.ts +2 -2
- package/dist/services/firebase.js +10 -12
- package/dist/services/gcp/drive.d.ts +1 -1
- package/dist/services/gcp/drive.js +4 -4
- package/dist/services/gcp/secrets.d.ts +1 -1
- package/dist/services/gcp/secrets.js +8 -6
- package/dist/services/gcp/sheets.d.ts +1 -1
- package/dist/services/gcp/sheets.js +6 -6
- package/dist/services/grafana.d.ts +2 -2
- package/dist/services/grafana.js +12 -12
- package/dist/services/keycloak.d.ts +2 -14
- package/dist/services/keycloak.js +24 -300
- package/dist/services/nodemailer.d.ts +2 -2
- package/dist/services/nodemailer.js +109 -19
- package/dist/services/redis.d.ts +8 -6
- package/dist/services/redis.js +24 -53
- package/dist/services/sendgrid.d.ts +1 -1
- package/dist/services/sendgrid.js +10 -10
- package/package.json +1 -1
- package/src/database/entities/account.ts +3 -5
- package/src/database/entities/address.ts +7 -4
- package/src/database/entities/company-address.ts +5 -0
- package/src/database/migrations/1748448589934-CreateAccountsTable.ts +1 -6
- package/src/database/migrations/1750432386920-CreateAddressTable.ts +0 -5
- package/src/database/migrations/index.ts +0 -4
- package/src/interfaces/aws.ts +55 -81
- package/src/interfaces/azure.ts +50 -71
- package/src/interfaces/firebase.ts +6 -10
- package/src/interfaces/gcp.ts +8 -14
- package/src/interfaces/grafana.ts +5 -9
- package/src/interfaces/keycloak.ts +7 -190
- package/src/interfaces/nodemailer.ts +18 -22
- package/src/interfaces/redis.ts +8 -54
- package/src/interfaces/sendgrid.ts +14 -16
- package/src/services/aws/cloudwatch.ts +39 -39
- package/src/services/aws/pinpoint.ts +30 -30
- package/src/services/aws/s3.ts +55 -59
- package/src/services/aws/secret-manager.ts +7 -8
- package/src/services/aws/sqs.ts +17 -23
- package/src/services/azure/application-insights.ts +12 -12
- package/src/services/azure/communication.ts +18 -18
- package/src/services/azure/keyvault.ts +3 -3
- package/src/services/azure/storage-blob.ts +30 -34
- package/src/services/firebase.ts +11 -21
- package/src/services/gcp/drive.ts +5 -8
- package/src/services/gcp/secrets.ts +10 -9
- package/src/services/gcp/sheets.ts +7 -10
- package/src/services/grafana.ts +12 -18
- package/src/services/keycloak.ts +25 -381
- package/src/services/nodemailer.ts +110 -19
- package/src/services/redis.ts +22 -58
- package/src/services/sendgrid.ts +11 -11
- package/dist/database/migrations/1750690818577-CreateAccountAddressTable.d.ts +0 -5
- package/dist/database/migrations/1750690818577-CreateAccountAddressTable.js +0 -94
- package/dist/database/migrations/1750691840822-CreateAccountDetailsTable.d.ts +0 -5
- package/dist/database/migrations/1750691840822-CreateAccountDetailsTable.js +0 -99
- package/src/database/migrations/1750690818577-CreateAccountAddressTable.ts +0 -98
- package/src/database/migrations/1750691840822-CreateAccountDetailsTable.ts +0 -99
package/bitbucket-pipelines.yml
CHANGED
|
@@ -48,47 +48,11 @@ pipelines:
|
|
|
48
48
|
caches:
|
|
49
49
|
- node
|
|
50
50
|
script:
|
|
51
|
-
-
|
|
52
|
-
- PACKAGE_NAME=$(jq -r .name package.json)
|
|
53
|
-
- PUBLISHED_VERSION=$(npm view $PACKAGE_NAME version)
|
|
54
|
-
|
|
55
|
-
- jq --arg version "$PUBLISHED_VERSION" '.version = $version' package.json > pkg.json && mv pkg.json package.json
|
|
56
|
-
- PATCH_VERSION=$(npm version patch --no-git-tag-version)
|
|
57
|
-
|
|
58
|
-
- git add package.json
|
|
59
|
-
- git commit -m "chore(release):bump patch version [skip ci]"
|
|
60
|
-
- git tag $PATCH_VERSION
|
|
61
|
-
- git push origin $PATCH_VERSION
|
|
62
|
-
- pipe: atlassian/npm-publish:0.2.0
|
|
63
|
-
variables:
|
|
64
|
-
NPM_TOKEN: $NPM_TOKEN
|
|
65
|
-
homolog:
|
|
66
|
-
- step:
|
|
67
|
-
name: "Build SDK"
|
|
68
|
-
caches:
|
|
69
|
-
- node
|
|
70
|
-
script:
|
|
71
|
-
- yarn clean-install
|
|
72
|
-
- yarn build
|
|
73
|
-
artifacts:
|
|
74
|
-
- dist/**
|
|
75
|
-
|
|
76
|
-
- step:
|
|
77
|
-
name: "Publish SDK"
|
|
78
|
-
caches:
|
|
79
|
-
- node
|
|
80
|
-
script:
|
|
81
|
-
- apt-get update && apt-get install -y jq
|
|
82
|
-
- PACKAGE_NAME=$(jq -r .name package.json)
|
|
83
|
-
- PUBLISHED_VERSION=$(npm view $PACKAGE_NAME version)
|
|
84
|
-
|
|
85
|
-
- jq --arg version "$PUBLISHED_VERSION" '.version = $version' package.json > pkg.json && mv pkg.json package.json
|
|
86
|
-
- MINOR_VERSION=$(npm version minor --no-git-tag-version)
|
|
87
|
-
|
|
51
|
+
- VERSION=$(npm version minor --no-git-tag-version)
|
|
88
52
|
- git add package.json
|
|
89
53
|
- git commit -m "chore(release):bump minor version [skip ci]"
|
|
90
|
-
- git tag $
|
|
91
|
-
- git push origin $
|
|
54
|
+
- git tag $VERSION
|
|
55
|
+
- git push origin $VERSION
|
|
92
56
|
- pipe: atlassian/npm-publish:0.2.0
|
|
93
57
|
variables:
|
|
94
58
|
NPM_TOKEN: $NPM_TOKEN
|
|
@@ -108,17 +72,11 @@ pipelines:
|
|
|
108
72
|
caches:
|
|
109
73
|
- node
|
|
110
74
|
script:
|
|
111
|
-
-
|
|
112
|
-
- PACKAGE_NAME=$(jq -r .name package.json)
|
|
113
|
-
- PUBLISHED_VERSION=$(npm view $PACKAGE_NAME version)
|
|
114
|
-
|
|
115
|
-
- jq --arg version "$PUBLISHED_VERSION" '.version = $version' package.json > pkg.json && mv pkg.json package.json
|
|
116
|
-
- MAJOR_VERSION=$(npm version major --no-git-tag-version)
|
|
117
|
-
|
|
75
|
+
- VERSION=$(npm version major --no-git-tag-version)
|
|
118
76
|
- git add package.json
|
|
119
77
|
- git commit -m "chore(release):bump major version [skip ci]"
|
|
120
|
-
- git tag $
|
|
121
|
-
- git push origin $
|
|
78
|
+
- git tag $VERSION
|
|
79
|
+
- git push origin $VERSION
|
|
122
80
|
- pipe: atlassian/npm-publish:0.2.0
|
|
123
81
|
variables:
|
|
124
82
|
NPM_TOKEN: $NPM_TOKEN
|
|
@@ -4,8 +4,7 @@ export default class AccountEntity extends BaseEntity {
|
|
|
4
4
|
tenantId?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
email?: string;
|
|
7
|
-
|
|
8
|
-
businessDocument?: string;
|
|
7
|
+
cellphone?: string;
|
|
9
8
|
profile?: ProfileEntity;
|
|
10
9
|
lastAccessAt?: Date;
|
|
11
10
|
constructor(partial: Partial<AccountEntity>);
|
|
@@ -19,8 +19,7 @@ let AccountEntity = class AccountEntity extends base_1.default {
|
|
|
19
19
|
tenantId;
|
|
20
20
|
name;
|
|
21
21
|
email;
|
|
22
|
-
|
|
23
|
-
businessDocument;
|
|
22
|
+
cellphone;
|
|
24
23
|
profile;
|
|
25
24
|
lastAccessAt;
|
|
26
25
|
constructor(partial) {
|
|
@@ -43,11 +42,7 @@ __decorate([
|
|
|
43
42
|
__decorate([
|
|
44
43
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
45
44
|
__metadata("design:type", String)
|
|
46
|
-
], AccountEntity.prototype, "
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], AccountEntity.prototype, "businessDocument", void 0);
|
|
45
|
+
], AccountEntity.prototype, "cellphone", void 0);
|
|
51
46
|
__decorate([
|
|
52
47
|
(0, typeorm_1.ManyToOne)(() => profile_1.default),
|
|
53
48
|
(0, typeorm_1.JoinColumn)({ name: 'profileId', referencedColumnName: 'id' }),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import BaseEntity from './base';
|
|
2
|
+
import CompanyAddressEntity from './company-address';
|
|
2
3
|
export default class AddressEntity extends BaseEntity {
|
|
3
4
|
zipcode?: string;
|
|
4
5
|
street?: string;
|
|
5
6
|
streetNumber?: string;
|
|
6
7
|
complement?: string;
|
|
7
8
|
city?: string;
|
|
8
|
-
neighborhood?: string;
|
|
9
9
|
state?: string;
|
|
10
|
+
companyAddresses?: CompanyAddressEntity[];
|
|
10
11
|
constructor(partial: Partial<AddressEntity>);
|
|
11
12
|
}
|
|
@@ -14,14 +14,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const base_1 = __importDefault(require("./base"));
|
|
17
|
+
const company_address_1 = __importDefault(require("./company-address"));
|
|
17
18
|
let AddressEntity = class AddressEntity extends base_1.default {
|
|
18
19
|
zipcode;
|
|
19
20
|
street;
|
|
20
21
|
streetNumber;
|
|
21
22
|
complement;
|
|
22
23
|
city;
|
|
23
|
-
neighborhood;
|
|
24
24
|
state;
|
|
25
|
+
companyAddresses;
|
|
25
26
|
constructor(partial) {
|
|
26
27
|
super();
|
|
27
28
|
Object.assign(this, partial);
|
|
@@ -47,14 +48,14 @@ __decorate([
|
|
|
47
48
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
48
49
|
__metadata("design:type", String)
|
|
49
50
|
], AddressEntity.prototype, "city", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], AddressEntity.prototype, "neighborhood", void 0);
|
|
54
51
|
__decorate([
|
|
55
52
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
53
|
__metadata("design:type", String)
|
|
57
54
|
], AddressEntity.prototype, "state", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.OneToMany)(() => company_address_1.default, (companyAddress) => companyAddress.address),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], AddressEntity.prototype, "companyAddresses", void 0);
|
|
58
59
|
AddressEntity = __decorate([
|
|
59
60
|
(0, typeorm_1.Entity)('address'),
|
|
60
61
|
__metadata("design:paramtypes", [Object])
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import AddressEntity from './address';
|
|
1
2
|
import BaseEntity from './base';
|
|
2
3
|
import CompanyEntity from './company';
|
|
3
4
|
export default class CompanyAddressEntity extends BaseEntity {
|
|
4
5
|
companyId?: string;
|
|
5
6
|
addressId?: string;
|
|
6
7
|
company?: CompanyEntity;
|
|
8
|
+
address?: AddressEntity;
|
|
7
9
|
constructor(partial: Partial<CompanyAddressEntity>);
|
|
8
10
|
}
|
|
@@ -13,12 +13,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
|
+
const address_1 = __importDefault(require("./address"));
|
|
16
17
|
const base_1 = __importDefault(require("./base"));
|
|
17
18
|
const company_1 = __importDefault(require("./company"));
|
|
18
19
|
let CompanyAddressEntity = class CompanyAddressEntity extends base_1.default {
|
|
19
20
|
companyId;
|
|
20
21
|
addressId;
|
|
21
22
|
company;
|
|
23
|
+
address;
|
|
22
24
|
constructor(partial) {
|
|
23
25
|
super();
|
|
24
26
|
Object.assign(this, partial);
|
|
@@ -37,6 +39,11 @@ __decorate([
|
|
|
37
39
|
(0, typeorm_1.JoinColumn)({ name: 'companyId' }),
|
|
38
40
|
__metadata("design:type", company_1.default)
|
|
39
41
|
], CompanyAddressEntity.prototype, "company", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => address_1.default, (address) => address.companyAddresses),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: 'addressId' }),
|
|
45
|
+
__metadata("design:type", address_1.default)
|
|
46
|
+
], CompanyAddressEntity.prototype, "address", void 0);
|
|
40
47
|
CompanyAddressEntity = __decorate([
|
|
41
48
|
(0, typeorm_1.Entity)({ name: 'company_address' }),
|
|
42
49
|
__metadata("design:paramtypes", [Object])
|
|
@@ -37,12 +37,7 @@ class CreateAccountsTable1748448589934 {
|
|
|
37
37
|
isNullable: true,
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
name: '
|
|
41
|
-
type: 'varchar',
|
|
42
|
-
isNullable: true,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'businessDocument',
|
|
40
|
+
name: 'cellphone',
|
|
46
41
|
type: 'varchar',
|
|
47
42
|
isNullable: true,
|
|
48
43
|
},
|
|
@@ -15,8 +15,6 @@ const _1750432386914_CreateAccountContactTable_1 = require("./1750432386914-Crea
|
|
|
15
15
|
const _1750432386920_CreateAddressTable_1 = require("./1750432386920-CreateAddressTable");
|
|
16
16
|
const _1750437883213_CreateCompanyTable_1 = require("./1750437883213-CreateCompanyTable");
|
|
17
17
|
const _1750440116105_CreateCompanyAddressTable_1 = require("./1750440116105-CreateCompanyAddressTable");
|
|
18
|
-
const _1750690818577_CreateAccountAddressTable_1 = require("./1750690818577-CreateAccountAddressTable");
|
|
19
|
-
const _1750691840822_CreateAccountDetailsTable_1 = require("./1750691840822-CreateAccountDetailsTable");
|
|
20
18
|
exports.Migrations = [
|
|
21
19
|
_1748448461165_Init_1.Init1748448461165,
|
|
22
20
|
_1748448589743_CreateProfilesTable_1.CreateProfilesTable1748448589743,
|
|
@@ -32,6 +30,4 @@ exports.Migrations = [
|
|
|
32
30
|
_1750432386920_CreateAddressTable_1.CreateAddressTable1750432386920,
|
|
33
31
|
_1750437883213_CreateCompanyTable_1.CreateCompanyTable1750437883213,
|
|
34
32
|
_1750440116105_CreateCompanyAddressTable_1.CreateCompanyAddressTable1750440116105,
|
|
35
|
-
_1750690818577_CreateAccountAddressTable_1.CreateAccountAddressTable1750690818577,
|
|
36
|
-
_1750691840822_CreateAccountDetailsTable_1.CreateAccountDetailsTable1750691840822,
|
|
37
33
|
];
|
package/dist/interfaces/aws.d.ts
CHANGED
|
@@ -16,12 +16,10 @@ interface UploadOptions {
|
|
|
16
16
|
export declare namespace AmazonCloudwatch {
|
|
17
17
|
namespace CreateLogEvent {
|
|
18
18
|
interface Request {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
events: InputLogEvent[];
|
|
24
|
-
};
|
|
19
|
+
application: string;
|
|
20
|
+
group: string;
|
|
21
|
+
stream: string;
|
|
22
|
+
events: InputLogEvent[];
|
|
25
23
|
credentials: Credentials;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
@@ -29,39 +27,33 @@ export declare namespace AmazonCloudwatch {
|
|
|
29
27
|
export declare namespace AmazonPinpoint {
|
|
30
28
|
namespace SendMail {
|
|
31
29
|
interface Request {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
variables?: Record<string, string | number>;
|
|
39
|
-
};
|
|
30
|
+
applicationId: string;
|
|
31
|
+
subject: string;
|
|
32
|
+
text: string;
|
|
33
|
+
emails: string | string[];
|
|
34
|
+
from: string;
|
|
35
|
+
variables?: Record<string, string | number>;
|
|
40
36
|
credentials: Credentials;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
namespace SendTemplateMail {
|
|
44
40
|
interface Request {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
variables?: Record<string, string | number>;
|
|
51
|
-
};
|
|
41
|
+
applicationId: string;
|
|
42
|
+
template: string;
|
|
43
|
+
emails: string | string[];
|
|
44
|
+
from: string;
|
|
45
|
+
variables?: Record<string, string | number>;
|
|
52
46
|
credentials: Credentials;
|
|
53
47
|
}
|
|
54
48
|
}
|
|
55
49
|
namespace SendSMS {
|
|
56
50
|
interface Request {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
variables?: Record<string, string | number>;
|
|
64
|
-
};
|
|
51
|
+
applicationId: string;
|
|
52
|
+
sender: string;
|
|
53
|
+
text: string;
|
|
54
|
+
phones: string | string[];
|
|
55
|
+
type?: 'PROMOTIONAL' | 'TRANSACTIONAL';
|
|
56
|
+
variables?: Record<string, string | number>;
|
|
65
57
|
credentials: Credentials;
|
|
66
58
|
}
|
|
67
59
|
}
|
|
@@ -69,12 +61,10 @@ export declare namespace AmazonPinpoint {
|
|
|
69
61
|
export declare namespace AmazonS3 {
|
|
70
62
|
namespace GetSignedUrl {
|
|
71
63
|
interface Request {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
isUpload?: boolean;
|
|
77
|
-
};
|
|
64
|
+
filename: string;
|
|
65
|
+
bucket: string;
|
|
66
|
+
folder?: string;
|
|
67
|
+
isUpload?: boolean;
|
|
78
68
|
credentials: Credentials;
|
|
79
69
|
}
|
|
80
70
|
interface Response {
|
|
@@ -83,11 +73,9 @@ export declare namespace AmazonS3 {
|
|
|
83
73
|
}
|
|
84
74
|
namespace UploadBase64 {
|
|
85
75
|
interface Request {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
options?: UploadOptions;
|
|
90
|
-
};
|
|
76
|
+
file: string;
|
|
77
|
+
bucket: string;
|
|
78
|
+
options?: UploadOptions;
|
|
91
79
|
credentials: Credentials;
|
|
92
80
|
}
|
|
93
81
|
interface Response {
|
|
@@ -98,11 +86,9 @@ export declare namespace AmazonS3 {
|
|
|
98
86
|
}
|
|
99
87
|
namespace UploadBuffer {
|
|
100
88
|
interface Request {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
options?: UploadOptions;
|
|
105
|
-
};
|
|
89
|
+
file: Buffer;
|
|
90
|
+
bucket: string;
|
|
91
|
+
options?: UploadOptions;
|
|
106
92
|
credentials: Credentials;
|
|
107
93
|
}
|
|
108
94
|
interface Response {
|
|
@@ -113,20 +99,16 @@ export declare namespace AmazonS3 {
|
|
|
113
99
|
}
|
|
114
100
|
namespace DeleteFile {
|
|
115
101
|
interface Request {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
folder?: string;
|
|
120
|
-
};
|
|
102
|
+
filename: string;
|
|
103
|
+
bucket: string;
|
|
104
|
+
folder?: string;
|
|
121
105
|
credentials: Credentials;
|
|
122
106
|
}
|
|
123
107
|
}
|
|
124
108
|
namespace ListFiles {
|
|
125
109
|
interface Request {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
folder?: string;
|
|
129
|
-
};
|
|
110
|
+
bucket: string;
|
|
111
|
+
folder?: string;
|
|
130
112
|
credentials: Credentials;
|
|
131
113
|
}
|
|
132
114
|
interface Response {
|
|
@@ -137,9 +119,7 @@ export declare namespace AmazonS3 {
|
|
|
137
119
|
export declare namespace AmazonSecretManager {
|
|
138
120
|
namespace GetSecret {
|
|
139
121
|
interface Request {
|
|
140
|
-
|
|
141
|
-
secret: string;
|
|
142
|
-
};
|
|
122
|
+
secretId: string;
|
|
143
123
|
credentials: Credentials;
|
|
144
124
|
}
|
|
145
125
|
interface Response<T> {
|
|
@@ -150,18 +130,14 @@ export declare namespace AmazonSecretManager {
|
|
|
150
130
|
export declare namespace AmazonSQS {
|
|
151
131
|
namespace PublishMessage {
|
|
152
132
|
interface Request {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
message: unknown;
|
|
156
|
-
};
|
|
133
|
+
queue: string;
|
|
134
|
+
message: unknown;
|
|
157
135
|
credentials: Credentials;
|
|
158
136
|
}
|
|
159
137
|
}
|
|
160
138
|
namespace ConsumeMessage {
|
|
161
139
|
interface Request {
|
|
162
|
-
|
|
163
|
-
queue: string;
|
|
164
|
-
};
|
|
140
|
+
queue: string;
|
|
165
141
|
credentials: Credentials;
|
|
166
142
|
}
|
|
167
143
|
interface Response<T> {
|
|
@@ -170,9 +146,7 @@ export declare namespace AmazonSQS {
|
|
|
170
146
|
}
|
|
171
147
|
namespace ConsumeMessages {
|
|
172
148
|
interface Request {
|
|
173
|
-
|
|
174
|
-
queue: string;
|
|
175
|
-
};
|
|
149
|
+
queue: string;
|
|
176
150
|
credentials: Credentials;
|
|
177
151
|
}
|
|
178
152
|
interface Response<T> {
|
|
@@ -6,38 +6,30 @@ interface Credentials {
|
|
|
6
6
|
export declare namespace AzureApplicationInsights {
|
|
7
7
|
namespace TrackTrace {
|
|
8
8
|
interface Request {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
severity: string;
|
|
12
|
-
};
|
|
9
|
+
message: string;
|
|
10
|
+
severity: string;
|
|
13
11
|
credentials: Credentials;
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
namespace TrackEvent {
|
|
17
15
|
interface Request {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
16
|
+
name: string;
|
|
17
|
+
properties?: {
|
|
18
|
+
[key: string]: string;
|
|
23
19
|
};
|
|
24
20
|
credentials: Credentials;
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
namespace TrackException {
|
|
28
24
|
interface Request {
|
|
29
|
-
|
|
30
|
-
error: Error;
|
|
31
|
-
};
|
|
25
|
+
error: Error;
|
|
32
26
|
credentials: Credentials;
|
|
33
27
|
}
|
|
34
28
|
}
|
|
35
29
|
namespace TrackMetric {
|
|
36
30
|
interface Request {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
value: number;
|
|
40
|
-
};
|
|
31
|
+
name: string;
|
|
32
|
+
value: number;
|
|
41
33
|
credentials: Credentials;
|
|
42
34
|
}
|
|
43
35
|
}
|
|
@@ -45,35 +37,29 @@ export declare namespace AzureApplicationInsights {
|
|
|
45
37
|
export declare namespace AzureCommunication {
|
|
46
38
|
namespace SendMail {
|
|
47
39
|
interface Request {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
variables?: Record<string, string | number>;
|
|
54
|
-
};
|
|
40
|
+
subject: string;
|
|
41
|
+
text: string;
|
|
42
|
+
emails: string | string[];
|
|
43
|
+
from: string;
|
|
44
|
+
variables?: Record<string, string | number>;
|
|
55
45
|
credentials: Credentials;
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
48
|
namespace SendTemplateMail {
|
|
59
49
|
interface Request {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
variables?: Record<string, string | number>;
|
|
66
|
-
};
|
|
50
|
+
subject: string;
|
|
51
|
+
template: string;
|
|
52
|
+
emails: string | string[];
|
|
53
|
+
from: string;
|
|
54
|
+
variables?: Record<string, string | number>;
|
|
67
55
|
credentials: Credentials;
|
|
68
56
|
}
|
|
69
57
|
}
|
|
70
58
|
namespace SendSMS {
|
|
71
59
|
interface Request {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
phones: string | string[];
|
|
76
|
-
};
|
|
60
|
+
sender: string;
|
|
61
|
+
text: string;
|
|
62
|
+
phones: string | string[];
|
|
77
63
|
credentials: Credentials;
|
|
78
64
|
}
|
|
79
65
|
}
|
|
@@ -81,11 +67,8 @@ export declare namespace AzureCommunication {
|
|
|
81
67
|
export declare namespace AzureKeyVault {
|
|
82
68
|
namespace GetSecret {
|
|
83
69
|
interface Request {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
secretName: string;
|
|
87
|
-
};
|
|
88
|
-
credentials: Credentials;
|
|
70
|
+
vault: string;
|
|
71
|
+
secretName: string;
|
|
89
72
|
}
|
|
90
73
|
interface Response<T> {
|
|
91
74
|
secret: T;
|
|
@@ -95,22 +78,18 @@ export declare namespace AzureKeyVault {
|
|
|
95
78
|
export declare namespace AzureStorageBlob {
|
|
96
79
|
namespace UploadBuffer {
|
|
97
80
|
interface Request {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
file: Buffer;
|
|
103
|
-
};
|
|
81
|
+
storageContainer: string;
|
|
82
|
+
storageUrl: string;
|
|
83
|
+
filename: string;
|
|
84
|
+
file: Buffer;
|
|
104
85
|
credentials: Credentials;
|
|
105
86
|
}
|
|
106
87
|
}
|
|
107
88
|
namespace DownloadBuffer {
|
|
108
89
|
interface Request {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
filename: string;
|
|
113
|
-
};
|
|
90
|
+
storageContainer: string;
|
|
91
|
+
storageUrl: string;
|
|
92
|
+
filename: string;
|
|
114
93
|
credentials: Credentials;
|
|
115
94
|
}
|
|
116
95
|
interface Response {
|
|
@@ -119,16 +98,14 @@ export declare namespace AzureStorageBlob {
|
|
|
119
98
|
}
|
|
120
99
|
namespace GetPreSignedUrl {
|
|
121
100
|
interface Request {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
contentEncoding?: string;
|
|
131
|
-
};
|
|
101
|
+
filename: string;
|
|
102
|
+
storageContainer: string;
|
|
103
|
+
storageUrl: string;
|
|
104
|
+
options?: {
|
|
105
|
+
version?: string;
|
|
106
|
+
hoursToExpire?: number;
|
|
107
|
+
contentType?: string;
|
|
108
|
+
contentEncoding?: string;
|
|
132
109
|
};
|
|
133
110
|
credentials: Credentials;
|
|
134
111
|
}
|
|
@@ -7,18 +7,14 @@ interface Credentials {
|
|
|
7
7
|
export declare namespace Firebase {
|
|
8
8
|
namespace SendNotification {
|
|
9
9
|
interface Request {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isTest: boolean;
|
|
13
|
-
};
|
|
10
|
+
message: FirebaseAdmin.messaging.MulticastMessage;
|
|
11
|
+
isTest: boolean;
|
|
14
12
|
credentials: Credentials;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
namespace PublishConfig {
|
|
18
16
|
interface Request {
|
|
19
|
-
|
|
20
|
-
template: string;
|
|
21
|
-
};
|
|
17
|
+
template: string;
|
|
22
18
|
credentials: Credentials;
|
|
23
19
|
}
|
|
24
20
|
}
|
package/dist/interfaces/gcp.d.ts
CHANGED
|
@@ -5,9 +5,7 @@ interface Credentials {
|
|
|
5
5
|
export declare namespace GoogleDrive {
|
|
6
6
|
namespace ReadFile {
|
|
7
7
|
interface Request {
|
|
8
|
-
|
|
9
|
-
file: string;
|
|
10
|
-
};
|
|
8
|
+
fileId: string;
|
|
11
9
|
credentials: Credentials;
|
|
12
10
|
}
|
|
13
11
|
interface Response {
|
|
@@ -18,10 +16,8 @@ export declare namespace GoogleDrive {
|
|
|
18
16
|
export declare namespace GoogleSheets {
|
|
19
17
|
namespace ReadSheet {
|
|
20
18
|
interface Request {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
tabs: string[];
|
|
24
|
-
};
|
|
19
|
+
spreadsheetId: string;
|
|
20
|
+
tabs: string[];
|
|
25
21
|
credentials: Credentials;
|
|
26
22
|
}
|
|
27
23
|
interface Response {
|
|
@@ -32,10 +28,8 @@ export declare namespace GoogleSheets {
|
|
|
32
28
|
export declare namespace GoogleSecrets {
|
|
33
29
|
namespace GetSecret {
|
|
34
30
|
interface Request {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
secret: string;
|
|
38
|
-
};
|
|
31
|
+
projectId: string;
|
|
32
|
+
secretId: string;
|
|
39
33
|
credentials: Credentials;
|
|
40
34
|
}
|
|
41
35
|
interface Response<T> {
|
|
@@ -5,9 +5,7 @@ interface Credentials {
|
|
|
5
5
|
export declare namespace Grafana {
|
|
6
6
|
namespace GetDashboard {
|
|
7
7
|
interface Request {
|
|
8
|
-
|
|
9
|
-
uid: string;
|
|
10
|
-
};
|
|
8
|
+
uid: string;
|
|
11
9
|
credentials: Credentials;
|
|
12
10
|
}
|
|
13
11
|
interface Response {
|
|
@@ -16,9 +14,7 @@ export declare namespace Grafana {
|
|
|
16
14
|
}
|
|
17
15
|
namespace SearchDashboard {
|
|
18
16
|
interface Request {
|
|
19
|
-
|
|
20
|
-
query: string;
|
|
21
|
-
};
|
|
17
|
+
query: string;
|
|
22
18
|
credentials: Credentials;
|
|
23
19
|
}
|
|
24
20
|
interface Response {
|