jp.db.schemas 1.0.1 → 1.0.2

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/index.d.ts CHANGED
@@ -9,5 +9,6 @@ import { Purchase, PurchaseSchema } from './schemas/purchase.schema';
9
9
  import { Complain, ComplainSchema } from './schemas/complain.schema';
10
10
  import { Notification, NotificationSchema } from './schemas/notification.schema';
11
11
  import { ScheduledTournament, ScheduledTournamentSchema } from './schemas/scheduled_tournament.schema';
12
- export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, };
12
+ import { Admin, AdminSchema } from './schemas/admin.schema';
13
+ export { User, UserSchema, FBUser, FBUserSchema, GoogleUser, GoogleUserSchema, OKUser, OKUserSchema, TGUser, TGUserSchema, VKUser, VKUserSchema, YAUser, YAUserSchema, Purchase, PurchaseSchema, Complain, ComplainSchema, Notification, NotificationSchema, ScheduledTournament, ScheduledTournamentSchema, Admin, AdminSchema, };
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,0BAA0B,C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MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvG,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EACH,IAAI,EACJ,UAAU,EACV,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,EACL,WAAW,GACd,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScheduledTournamentSchema = exports.ScheduledTournament = exports.NotificationSchema = exports.Notification = exports.ComplainSchema = exports.Complain = exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
3
+ exports.AdminSchema = exports.Admin = exports.ScheduledTournamentSchema = exports.ScheduledTournament = exports.NotificationSchema = exports.Notification = exports.ComplainSchema = exports.Complain = exports.PurchaseSchema = exports.Purchase = exports.YAUserSchema = exports.YAUser = exports.VKUserSchema = exports.VKUser = exports.TGUserSchema = exports.TGUser = exports.OKUserSchema = exports.OKUser = exports.GoogleUserSchema = exports.GoogleUser = exports.FBUserSchema = exports.FBUser = exports.UserSchema = exports.User = void 0;
4
4
  const user_schema_1 = require("./schemas/user.schema");
5
5
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
6
6
  Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
@@ -34,4 +34,7 @@ Object.defineProperty(exports, "NotificationSchema", { enumerable: true, get: fu
34
34
  const scheduled_tournament_schema_1 = require("./schemas/scheduled_tournament.schema");
35
35
  Object.defineProperty(exports, "ScheduledTournament", { enumerable: true, get: function () { return scheduled_tournament_schema_1.ScheduledTournament; } });
36
36
  Object.defineProperty(exports, "ScheduledTournamentSchema", { enumerable: true, get: function () { return scheduled_tournament_schema_1.ScheduledTournamentSchema; } });
37
+ const admin_schema_1 = require("./schemas/admin.schema");
38
+ Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return admin_schema_1.Admin; } });
39
+ Object.defineProperty(exports, "AdminSchema", { enumerable: true, get: function () { return admin_schema_1.AdminSchema; } });
37
40
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AAarD,qFAbK,kBAAI,OAaL;AACJ,2FAdW,wBAAU,OAcX;AAbd,6DAAgE;AAc5D,uFAdK,uBAAM,OAcL;AACN,6FAfa,6BAAY,OAeb;AAdhB,qEAA4E;AAexE,2FAfK,+BAAU,OAeL;AACV,iGAhBiB,qCAAgB,OAgBjB;AAfpB,6DAAgE;AAgB5D,uFAhBK,uBAAM,OAgBL;AACN,6FAjBa,6BAAY,OAiBb;AAhBhB,6DAAgE;AAiB5D,uFAjBK,uBAAM,OAiBL;AACN,6FAlBa,6BAAY,OAkBb;AAjBhB,6DAAgE;AAkB5D,uFAlBK,uBAAM,OAkBL;AACN,6FAnBa,6BAAY,OAmBb;AAlBhB,6DAAgE;AAmB5D,uFAnBK,uBAAM,OAmBL;AACN,6FApBa,6BAAY,OAoBb;AAnBhB,+DAAqE;AAoBjE,yFApBK,0BAAQ,OAoBL;AACR,+FArBe,gCAAc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16 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ export type AdminDocument = HydratedDocument<Admin>;
3
+ export declare class Admin {
4
+ login: string;
5
+ pass: string;
6
+ }
7
+ export declare const AdminSchema: import("mongoose").Schema<Admin, import("mongoose").Model<Admin, any, any, any, import("mongoose").Document<unknown, any, Admin, any> & Admin & {
8
+ _id: import("mongoose").Types.ObjectId;
9
+ } & {
10
+ __v: number;
11
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Admin, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Admin>, {}> & import("mongoose").FlatRecord<Admin> & {
12
+ _id: import("mongoose").Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }>;
16
+ //# sourceMappingURL=admin.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEpD,qBACa,KAAK;IAEd,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW;;;;;;;;EAAsC,CAAC"}
@@ -0,0 +1,29 @@
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.AdminSchema = exports.Admin = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ let Admin = class Admin {
15
+ };
16
+ exports.Admin = Admin;
17
+ __decorate([
18
+ (0, mongoose_1.Prop)(),
19
+ __metadata("design:type", String)
20
+ ], Admin.prototype, "login", void 0);
21
+ __decorate([
22
+ (0, mongoose_1.Prop)(),
23
+ __metadata("design:type", String)
24
+ ], Admin.prototype, "pass", void 0);
25
+ exports.Admin = Admin = __decorate([
26
+ (0, mongoose_1.Schema)()
27
+ ], Admin);
28
+ exports.AdminSchema = mongoose_1.SchemaFactory.createForClass(Admin);
29
+ //# sourceMappingURL=admin.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.schema.js","sourceRoot":"","sources":["../../src/schemas/admin.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,KAAK,GAAX,MAAM,KAAK;CAMjB,CAAA;AANY,sBAAK;AAEd;IADC,IAAA,eAAI,GAAE;;oCACO;AAGd;IADC,IAAA,eAAI,GAAE;;mCACM;gBALJ,KAAK;IADjB,IAAA,iBAAM,GAAE;GACI,KAAK,CAMjB;AAEY,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -9,6 +9,7 @@ import { Purchase, PurchaseSchema } from './schemas/purchase.schema';
9
9
  import { Complain, ComplainSchema } from './schemas/complain.schema';
10
10
  import { Notification, NotificationSchema } from './schemas/notification.schema';
11
11
  import { ScheduledTournament, ScheduledTournamentSchema } from './schemas/scheduled_tournament.schema';
12
+ import { Admin, AdminSchema } from './schemas/admin.schema';
12
13
 
13
14
  export {
14
15
  User,
@@ -33,4 +34,6 @@ export {
33
34
  NotificationSchema,
34
35
  ScheduledTournament,
35
36
  ScheduledTournamentSchema,
37
+ Admin,
38
+ AdminSchema,
36
39
  }
@@ -0,0 +1,15 @@
1
+ import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
2
+ import { HydratedDocument } from 'mongoose';
3
+
4
+ export type AdminDocument = HydratedDocument<Admin>;
5
+
6
+ @Schema()
7
+ export class Admin {
8
+ @Prop()
9
+ login: string;
10
+
11
+ @Prop()
12
+ pass: string;
13
+ }
14
+
15
+ export const AdminSchema = SchemaFactory.createForClass(Admin);