@weekendgoals/weekendgoals-common 1.1736.20307349891 → 1.1737.20308844206

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.
@@ -0,0 +1,62 @@
1
+ import * as mongoose from "mongoose";
2
+ export declare const CountrySchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ }, {
5
+ name: string;
6
+ iso2: string;
7
+ rank: number;
8
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
9
+ name: string;
10
+ iso2: string;
11
+ rank: number;
12
+ } & mongoose.DefaultTimestampProps>, {}, mongoose.ResolveSchemaOptions<{
13
+ timestamps: true;
14
+ }>> & mongoose.FlatRecord<{
15
+ name: string;
16
+ iso2: string;
17
+ rank: number;
18
+ } & mongoose.DefaultTimestampProps> & {
19
+ _id: mongoose.Types.ObjectId;
20
+ } & {
21
+ __v: number;
22
+ }>;
23
+ export declare const CountryModel: mongoose.Model<{
24
+ name: string;
25
+ iso2: string;
26
+ rank: number;
27
+ } & mongoose.DefaultTimestampProps, {}, {}, {}, mongoose.Document<unknown, {}, {
28
+ name: string;
29
+ iso2: string;
30
+ rank: number;
31
+ } & mongoose.DefaultTimestampProps, {}, {
32
+ timestamps: true;
33
+ }> & {
34
+ name: string;
35
+ iso2: string;
36
+ rank: number;
37
+ } & mongoose.DefaultTimestampProps & {
38
+ _id: mongoose.Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
42
+ timestamps: true;
43
+ }, {
44
+ name: string;
45
+ iso2: string;
46
+ rank: number;
47
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
48
+ name: string;
49
+ iso2: string;
50
+ rank: number;
51
+ } & mongoose.DefaultTimestampProps>, {}, mongoose.ResolveSchemaOptions<{
52
+ timestamps: true;
53
+ }>> & mongoose.FlatRecord<{
54
+ name: string;
55
+ iso2: string;
56
+ rank: number;
57
+ } & mongoose.DefaultTimestampProps> & {
58
+ _id: mongoose.Types.ObjectId;
59
+ } & {
60
+ __v: number;
61
+ }>>;
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/countries/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountryModel = exports.CountrySchema = void 0;
4
+ const mongoose = require("mongoose");
5
+ exports.CountrySchema = new mongoose.Schema({
6
+ name: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ },
11
+ iso2: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ rank: {
16
+ type: Number,
17
+ default: 999,
18
+ },
19
+ }, { timestamps: true });
20
+ exports.CountryModel = mongoose.model("Country", exports.CountrySchema, "Countries");
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/countries/index.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAExB,QAAA,aAAa,GAAG,IAAI,QAAQ,CAAC,MAAM,CAC9C;IACE,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;KACb;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG;KACb;CACF,EACD,EAAE,UAAU,EAAE,IAAI,EAAE,CACrB,CAAC;AAEW,QAAA,YAAY,GAAG,QAAQ,CAAC,KAAK,CACxC,SAAS,EACT,qBAAa,EACb,WAAW,CACZ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weekendgoals/weekendgoals-common",
3
- "version": "1.1736.20307349891",
3
+ "version": "1.1737.20308844206",
4
4
  "description": "Weekend Goals Common",
5
5
  "private": false,
6
6
  "files": [