@venturialstd/slack 0.1.7 → 0.1.8
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/dist/slack/clients/slack.client.js +0 -1
- package/dist/slack/clients/slack.client.js.map +1 -1
- package/dist/slack/index.d.ts +0 -1
- package/dist/slack/index.js.map +1 -1
- package/dist/slack/slack.module.d.ts +1 -1
- package/dist/slack/slack.module.js +8 -15
- package/dist/slack/slack.module.js.map +1 -1
- package/dist/slack/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/slack/dtos/slack-webhook-event.dto.d.ts +0 -21
- package/dist/slack/dtos/slack-webhook-event.dto.js +0 -139
- package/dist/slack/dtos/slack-webhook-event.dto.js.map +0 -1
- package/dist/slack/interfaces/logger.interface.d.ts +0 -8
- package/dist/slack/interfaces/logger.interface.js +0 -3
- package/dist/slack/interfaces/logger.interface.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class SlackEventDto {
|
|
2
|
-
type: string;
|
|
3
|
-
user?: string;
|
|
4
|
-
text?: string;
|
|
5
|
-
channel: string;
|
|
6
|
-
ts: string;
|
|
7
|
-
thread_ts?: string;
|
|
8
|
-
bot_id?: string;
|
|
9
|
-
client_msg_id?: string;
|
|
10
|
-
team?: string;
|
|
11
|
-
event_ts?: string;
|
|
12
|
-
channel_type?: string;
|
|
13
|
-
blocks?: unknown[];
|
|
14
|
-
}
|
|
15
|
-
export declare class SlackWebhookEventDto {
|
|
16
|
-
type: string;
|
|
17
|
-
challenge?: string;
|
|
18
|
-
token?: string;
|
|
19
|
-
team_id?: string;
|
|
20
|
-
event?: SlackEventDto;
|
|
21
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SlackWebhookEventDto = exports.SlackEventDto = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
class SlackEventDto {
|
|
17
|
-
type;
|
|
18
|
-
user;
|
|
19
|
-
text;
|
|
20
|
-
channel;
|
|
21
|
-
ts;
|
|
22
|
-
thread_ts;
|
|
23
|
-
bot_id;
|
|
24
|
-
client_msg_id;
|
|
25
|
-
team;
|
|
26
|
-
event_ts;
|
|
27
|
-
channel_type;
|
|
28
|
-
blocks;
|
|
29
|
-
}
|
|
30
|
-
exports.SlackEventDto = SlackEventDto;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)(),
|
|
33
|
-
(0, class_validator_1.IsString)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], SlackEventDto.prototype, "type", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], SlackEventDto.prototype, "user", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], SlackEventDto.prototype, "text", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)(),
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SlackEventDto.prototype, "channel", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)(),
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], SlackEventDto.prototype, "ts", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
60
|
-
(0, class_validator_1.IsOptional)(),
|
|
61
|
-
(0, class_validator_1.IsString)(),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], SlackEventDto.prototype, "thread_ts", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
(0, class_validator_1.IsString)(),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], SlackEventDto.prototype, "bot_id", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
72
|
-
(0, class_validator_1.IsOptional)(),
|
|
73
|
-
(0, class_validator_1.IsString)(),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], SlackEventDto.prototype, "client_msg_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
78
|
-
(0, class_validator_1.IsOptional)(),
|
|
79
|
-
(0, class_validator_1.IsString)(),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], SlackEventDto.prototype, "team", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
84
|
-
(0, class_validator_1.IsOptional)(),
|
|
85
|
-
(0, class_validator_1.IsString)(),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], SlackEventDto.prototype, "event_ts", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
90
|
-
(0, class_validator_1.IsOptional)(),
|
|
91
|
-
(0, class_validator_1.IsString)(),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], SlackEventDto.prototype, "channel_type", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
96
|
-
(0, class_validator_1.IsOptional)(),
|
|
97
|
-
(0, class_validator_1.IsArray)(),
|
|
98
|
-
__metadata("design:type", Array)
|
|
99
|
-
], SlackEventDto.prototype, "blocks", void 0);
|
|
100
|
-
class SlackWebhookEventDto {
|
|
101
|
-
type;
|
|
102
|
-
challenge;
|
|
103
|
-
token;
|
|
104
|
-
team_id;
|
|
105
|
-
event;
|
|
106
|
-
}
|
|
107
|
-
exports.SlackWebhookEventDto = SlackWebhookEventDto;
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, swagger_1.ApiProperty)(),
|
|
110
|
-
(0, class_validator_1.IsString)(),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], SlackWebhookEventDto.prototype, "type", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
115
|
-
(0, class_validator_1.IsOptional)(),
|
|
116
|
-
(0, class_validator_1.IsString)(),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], SlackWebhookEventDto.prototype, "challenge", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
121
|
-
(0, class_validator_1.IsOptional)(),
|
|
122
|
-
(0, class_validator_1.IsString)(),
|
|
123
|
-
__metadata("design:type", String)
|
|
124
|
-
], SlackWebhookEventDto.prototype, "token", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
127
|
-
(0, class_validator_1.IsOptional)(),
|
|
128
|
-
(0, class_validator_1.IsString)(),
|
|
129
|
-
__metadata("design:type", String)
|
|
130
|
-
], SlackWebhookEventDto.prototype, "team_id", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
133
|
-
(0, class_validator_1.IsOptional)(),
|
|
134
|
-
(0, class_validator_1.IsObject)(),
|
|
135
|
-
(0, class_validator_1.ValidateNested)(),
|
|
136
|
-
(0, class_transformer_1.Type)(() => SlackEventDto),
|
|
137
|
-
__metadata("design:type", SlackEventDto)
|
|
138
|
-
], SlackWebhookEventDto.prototype, "event", void 0);
|
|
139
|
-
//# sourceMappingURL=slack-webhook-event.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slack-webhook-event.dto.js","sourceRoot":"","sources":["../../../dtos/slack-webhook-event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAA0F;AAE1F,MAAa,aAAa;IAGxB,IAAI,CAAS;IAKb,IAAI,CAAU;IAKd,IAAI,CAAU;IAId,OAAO,CAAS;IAIhB,EAAE,CAAS;IAKX,SAAS,CAAU;IAKnB,MAAM,CAAU;IAKhB,aAAa,CAAU;IAKvB,IAAI,CAAU;IAKd,QAAQ,CAAU;IAKlB,YAAY,CAAU;IAKtB,MAAM,CAAa;CACpB;AAzDD,sCAyDC;AAtDC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;2CACE;AAKb;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACG;AAKd;IAHC,IAAA,6BAAmB,GAAE;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,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACM;AAOjB;IALC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;8BAClB,aAAa;mDAAC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\r\nimport { Type } from 'class-transformer';\r\nimport { IsArray, IsObject, IsOptional, IsString, ValidateNested } from 'class-validator';\r\n\r\nexport class SlackEventDto {\r\n @ApiProperty()\r\n @IsString()\r\n type: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n user?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n text?: string;\r\n\r\n @ApiProperty()\r\n @IsString()\r\n channel: string;\r\n\r\n @ApiProperty()\r\n @IsString()\r\n ts: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n thread_ts?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n bot_id?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n client_msg_id?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n team?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n event_ts?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n channel_type?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsArray()\r\n blocks?: unknown[];\r\n}\r\n\r\nexport class SlackWebhookEventDto {\r\n @ApiProperty()\r\n @IsString()\r\n type: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n challenge?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n token?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsString()\r\n team_id?: string;\r\n\r\n @ApiPropertyOptional()\r\n @IsOptional()\r\n @IsObject()\r\n @ValidateNested()\r\n @Type(() => SlackEventDto)\r\n event?: SlackEventDto;\r\n}\r\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface ILogger {
|
|
2
|
-
setContext(context: string): void;
|
|
3
|
-
error(message: string, meta?: Record<string, any>): any;
|
|
4
|
-
warn(message: string, meta?: Record<string, any>): any;
|
|
5
|
-
debug(message: string, meta?: Record<string, any>): any;
|
|
6
|
-
verbose(message: string, meta?: Record<string, any>): any;
|
|
7
|
-
log(message: string, meta?: Record<string, any>): any;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.interface.js","sourceRoot":"","sources":["../../../interfaces/logger.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ILogger {\r\n setContext(context: string): void;\r\n error(message: string, meta?: Record<string, any>): any;\r\n warn(message: string, meta?: Record<string, any>): any;\r\n debug(message: string, meta?: Record<string, any>): any;\r\n verbose(message: string, meta?: Record<string, any>): any;\r\n log(message: string, meta?: Record<string, any>): any;\r\n}\r\n"]}
|