common-tg-service 1.3.54 → 1.3.55
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/components/active-channels/schemas/active-channel.schema.d.ts +4 -5
- package/dist/components/active-channels/schemas/active-channel.schema.js +15 -46
- package/dist/components/active-channels/schemas/active-channel.schema.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
|
-
import * as mongoose from 'mongoose';
|
|
3
2
|
export type ActiveChannelDocument = ActiveChannel & Document;
|
|
4
3
|
export declare class ActiveChannel {
|
|
5
4
|
channelId: string;
|
|
@@ -24,12 +23,12 @@ export declare class ActiveChannel {
|
|
|
24
23
|
tempBan?: boolean;
|
|
25
24
|
deletedCount?: number;
|
|
26
25
|
}
|
|
27
|
-
export declare const ActiveChannelSchema: mongoose.Schema<ActiveChannel, mongoose.Model<ActiveChannel, any, any, any, Document<unknown, any, ActiveChannel, any, {}> & ActiveChannel & {
|
|
28
|
-
_id: mongoose.Types.ObjectId;
|
|
26
|
+
export declare const ActiveChannelSchema: import("mongoose").Schema<ActiveChannel, import("mongoose").Model<ActiveChannel, any, any, any, Document<unknown, any, ActiveChannel, any, {}> & ActiveChannel & {
|
|
27
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
28
|
} & {
|
|
30
29
|
__v: number;
|
|
31
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ActiveChannel, Document<unknown, {}, mongoose.FlatRecord<ActiveChannel>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ActiveChannel> & {
|
|
32
|
-
_id: mongoose.Types.ObjectId;
|
|
30
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ActiveChannel, Document<unknown, {}, import("mongoose").FlatRecord<ActiveChannel>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ActiveChannel> & {
|
|
31
|
+
_id: import("mongoose").Types.ObjectId;
|
|
33
32
|
} & {
|
|
34
33
|
__v: number;
|
|
35
34
|
}>;
|
|
@@ -1,50 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
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;
|
|
22
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
7
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
-
var ownKeys = function(o) {
|
|
26
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
-
var ar = [];
|
|
28
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
-
return ar;
|
|
30
|
-
};
|
|
31
|
-
return ownKeys(o);
|
|
32
|
-
};
|
|
33
|
-
return function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
})();
|
|
41
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
10
|
};
|
|
44
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
12
|
exports.ActiveChannelSchema = exports.ActiveChannel = void 0;
|
|
46
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
47
|
-
const mongoose = __importStar(require("mongoose"));
|
|
48
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
49
15
|
const utils_1 = require("../../../utils");
|
|
50
16
|
let ActiveChannel = class ActiveChannel {
|
|
@@ -62,12 +28,12 @@ __decorate([
|
|
|
62
28
|
], ActiveChannel.prototype, "title", void 0);
|
|
63
29
|
__decorate([
|
|
64
30
|
(0, swagger_1.ApiProperty)({ type: Number, default: 0 }),
|
|
65
|
-
(0, mongoose_1.Prop)({ type:
|
|
31
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
66
32
|
__metadata("design:type", Number)
|
|
67
33
|
], ActiveChannel.prototype, "participantsCount", void 0);
|
|
68
34
|
__decorate([
|
|
69
35
|
(0, swagger_1.ApiProperty)({ required: false, default: null }),
|
|
70
|
-
(0, mongoose_1.Prop)({
|
|
36
|
+
(0, mongoose_1.Prop)({ default: null }),
|
|
71
37
|
__metadata("design:type", String)
|
|
72
38
|
], ActiveChannel.prototype, "username", void 0);
|
|
73
39
|
__decorate([
|
|
@@ -97,12 +63,12 @@ __decorate([
|
|
|
97
63
|
], ActiveChannel.prototype, "megagroup", void 0);
|
|
98
64
|
__decorate([
|
|
99
65
|
(0, swagger_1.ApiProperty)({ type: Number, default: 0 }),
|
|
100
|
-
(0, mongoose_1.Prop)({ type:
|
|
66
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
101
67
|
__metadata("design:type", Number)
|
|
102
68
|
], ActiveChannel.prototype, "wordRestriction", void 0);
|
|
103
69
|
__decorate([
|
|
104
70
|
(0, swagger_1.ApiProperty)({ type: Number, default: 0 }),
|
|
105
|
-
(0, mongoose_1.Prop)({ type:
|
|
71
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
106
72
|
__metadata("design:type", Number)
|
|
107
73
|
], ActiveChannel.prototype, "dMRestriction", void 0);
|
|
108
74
|
__decorate([
|
|
@@ -131,18 +97,18 @@ __decorate([
|
|
|
131
97
|
__metadata("design:type", Boolean)
|
|
132
98
|
], ActiveChannel.prototype, "private", void 0);
|
|
133
99
|
__decorate([
|
|
134
|
-
(0, swagger_1.ApiProperty)({ type: Number, default: null
|
|
135
|
-
(0, mongoose_1.Prop)({ type:
|
|
100
|
+
(0, swagger_1.ApiProperty)({ type: Number, default: null }),
|
|
101
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
136
102
|
__metadata("design:type", Number)
|
|
137
103
|
], ActiveChannel.prototype, "lastMessageTime", void 0);
|
|
138
104
|
__decorate([
|
|
139
|
-
(0, swagger_1.ApiProperty)({ type: Number, default: null
|
|
140
|
-
(0, mongoose_1.Prop)({ type:
|
|
105
|
+
(0, swagger_1.ApiProperty)({ type: Number, default: null }),
|
|
106
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
141
107
|
__metadata("design:type", Number)
|
|
142
108
|
], ActiveChannel.prototype, "messageIndex", void 0);
|
|
143
109
|
__decorate([
|
|
144
|
-
(0, swagger_1.ApiProperty)({ type: Number, default: null
|
|
145
|
-
(0, mongoose_1.Prop)({ type:
|
|
110
|
+
(0, swagger_1.ApiProperty)({ type: Number, default: null }),
|
|
111
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
146
112
|
__metadata("design:type", Number)
|
|
147
113
|
], ActiveChannel.prototype, "messageId", void 0);
|
|
148
114
|
__decorate([
|
|
@@ -152,11 +118,14 @@ __decorate([
|
|
|
152
118
|
], ActiveChannel.prototype, "tempBan", void 0);
|
|
153
119
|
__decorate([
|
|
154
120
|
(0, swagger_1.ApiProperty)({ type: Number, default: 0 }),
|
|
155
|
-
(0, mongoose_1.Prop)({ type:
|
|
121
|
+
(0, mongoose_1.Prop)({ type: Number, default: 0 }),
|
|
156
122
|
__metadata("design:type", Number)
|
|
157
123
|
], ActiveChannel.prototype, "deletedCount", void 0);
|
|
158
124
|
exports.ActiveChannel = ActiveChannel = __decorate([
|
|
159
|
-
(0, mongoose_1.Schema)({
|
|
125
|
+
(0, mongoose_1.Schema)({
|
|
126
|
+
collection: 'activeChannels',
|
|
127
|
+
versionKey: false,
|
|
128
|
+
autoIndex: true,
|
|
160
129
|
timestamps: true,
|
|
161
130
|
toJSON: {
|
|
162
131
|
virtuals: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-channel.schema.js","sourceRoot":"","sources":["../../../../src/components/active-channels/schemas/active-channel.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"active-channel.schema.js","sourceRoot":"","sources":["../../../../src/components/active-channels/schemas/active-channel.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,6CAA8C;AAC9C,0CAAmE;AAgB5D,IAAM,aAAa,GAAnB,MAAM,aAAa;CAoFzB,CAAA;AApFY,sCAAa;AAGxB;IAFC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/B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