jp.db.schemas 2.0.19 → 2.0.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/setting.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAExD,qBACa,OAAO;IAMhB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAG3B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,OAAO,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;EAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"setting.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/setting.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAExD,qBACa,OAAO;IAMhB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAG3B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,OAAO,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;EAAwC,CAAC"}
|
|
@@ -50,6 +50,14 @@ __decorate([
|
|
|
50
50
|
(0, mongoose_1.Prop)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], Setting.prototype, "productId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Setting.prototype, "url", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Setting.prototype, "icon", void 0);
|
|
53
61
|
__decorate([
|
|
54
62
|
(0, mongoose_1.Prop)(),
|
|
55
63
|
__metadata("design:type", Boolean)
|
|
@@ -63,7 +71,7 @@ __decorate([
|
|
|
63
71
|
__metadata("design:type", String)
|
|
64
72
|
], Setting.prototype, "hasChevron", void 0);
|
|
65
73
|
exports.Setting = Setting = __decorate([
|
|
66
|
-
(0, mongoose_1.Schema)()
|
|
74
|
+
(0, mongoose_1.Schema)({ collection: 'settings' })
|
|
67
75
|
], Setting);
|
|
68
76
|
exports.SettingSchema = mongoose_1.SchemaFactory.createForClass(Setting);
|
|
69
77
|
//# sourceMappingURL=setting.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.schema.js","sourceRoot":"","sources":["../../src/schemas/setting.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;
|
|
1
|
+
{"version":3,"file":"setting.schema.js","sourceRoot":"","sources":["../../src/schemas/setting.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;CA2CnB,CAAA;AA3CY,0BAAO;AAMP;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;0CACyB;AAG3B;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;sCACO;AAGd;IADC,IAAA,eAAI,GAAE;;wCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;oCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;wCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;2CACa;kBA1CX,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;GACtB,OAAO,CA2CnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Document, HydratedDocument } from 'mongoose';
|
|
|
3
3
|
|
|
4
4
|
export type SettingDocument = HydratedDocument<Setting>;
|
|
5
5
|
|
|
6
|
-
@Schema()
|
|
6
|
+
@Schema({ collection: 'settings' })
|
|
7
7
|
export class Setting {
|
|
8
8
|
@Virtual({
|
|
9
9
|
get: function (this: Document) {
|
|
@@ -33,6 +33,12 @@ export class Setting {
|
|
|
33
33
|
@Prop()
|
|
34
34
|
productId?: string;
|
|
35
35
|
|
|
36
|
+
@Prop()
|
|
37
|
+
url: string;
|
|
38
|
+
|
|
39
|
+
@Prop()
|
|
40
|
+
icon: string;
|
|
41
|
+
|
|
36
42
|
@Prop()
|
|
37
43
|
premium?: boolean;
|
|
38
44
|
|