first commit v3 initialiazed a temporary repository for darmanet client

This commit is contained in:
2026-09-08 16:04:01 +03:30
commit 5c7fd95052
216 changed files with 30050 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
@Schema({
timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' },
versionKey: false,
collection: 'externalTokens',
_id: true,
})
export class ExternalTokensModel {
@Prop({ type: String })
token: string;
@Prop({ type: 'string' })
url: string;
@Prop({ type: Boolean })
isActive: boolean;
@Prop({ type: String })
method: 'access' | 'refresh';
@Prop({ type: String })
tokenType: 'Bearer' | 'Basic';
@Prop({ type: String })
expiresIn: string;
@Prop({ type: String })
scope: string;
@Prop({ type: Number })
timestamps: Number;
@Prop({ type: Array })
createdAt: [];
@Prop({ type: Array })
updatedAt: [];
}
export const ExternalTokenSchema =
SchemaFactory.createForClass(ExternalTokensModel);