jp.db.schemas 2.1.15 → 2.2.1
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 +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/models/account-type.enum.d.ts +9 -0
- package/dist/models/account-type.enum.d.ts.map +1 -0
- package/dist/models/account-type.enum.js +13 -0
- package/dist/models/account-type.enum.js.map +1 -0
- package/dist/models/users-balance-reason.enum.d.ts +9 -0
- package/dist/models/users-balance-reason.enum.d.ts.map +1 -0
- package/dist/models/users-balance-reason.enum.js +13 -0
- package/dist/models/users-balance-reason.enum.js.map +1 -0
- package/dist/repositories/index.d.ts +4 -2
- package/dist/repositories/index.d.ts.map +1 -1
- package/dist/repositories/index.js +7 -3
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/setting.repository.d.ts +1 -1
- package/dist/repositories/setting.repository.d.ts.map +1 -1
- package/dist/repositories/setting.repository.js +1 -1
- package/dist/repositories/setting.repository.js.map +1 -1
- package/dist/repositories/settings-options.repository.d.ts +8 -0
- package/dist/repositories/settings-options.repository.d.ts.map +1 -0
- package/dist/repositories/{balance-history.repository.js → settings-options.repository.js} +14 -12
- package/dist/repositories/settings-options.repository.js.map +1 -0
- package/dist/repositories/users-achievements.repository.d.ts +10 -0
- package/dist/repositories/users-achievements.repository.d.ts.map +1 -0
- package/dist/repositories/users-achievements.repository.js +52 -0
- package/dist/repositories/users-achievements.repository.js.map +1 -0
- package/dist/repositories/users-balances.repository.d.ts +11 -0
- package/dist/repositories/users-balances.repository.d.ts.map +1 -0
- package/dist/repositories/users-balances.repository.js +44 -0
- package/dist/repositories/users-balances.repository.js.map +1 -0
- package/dist/repositories/welcome.repository.d.ts +1 -1
- package/dist/repositories/welcome.repository.d.ts.map +1 -1
- package/dist/repositories/welcome.repository.js +2 -2
- package/dist/repositories/welcome.repository.js.map +1 -1
- package/dist/schemas/product.schema.d.ts +20 -0
- package/dist/schemas/product.schema.d.ts.map +1 -1
- package/dist/schemas/product.schema.js +8 -0
- package/dist/schemas/product.schema.js.map +1 -1
- package/dist/schemas/setting.schema.d.ts +19 -19
- package/dist/schemas/setting.schema.d.ts.map +1 -1
- package/dist/schemas/setting.schema.js +16 -16
- package/dist/schemas/setting.schema.js.map +1 -1
- package/dist/schemas/settings_option.schema.d.ts +125 -0
- package/dist/schemas/settings_option.schema.d.ts.map +1 -0
- package/dist/schemas/settings_option.schema.js +65 -0
- package/dist/schemas/settings_option.schema.js.map +1 -0
- package/dist/schemas/user.schema.d.ts +40 -63
- package/dist/schemas/user.schema.d.ts.map +1 -1
- package/dist/schemas/user.schema.js +72 -21
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/schemas/users_achievement.schema.d.ts +115 -0
- package/dist/schemas/users_achievement.schema.d.ts.map +1 -0
- package/dist/schemas/users_achievement.schema.js +61 -0
- package/dist/schemas/users_achievement.schema.js.map +1 -0
- package/dist/schemas/users_balance.schema.d.ts +95 -0
- package/dist/schemas/users_balance.schema.d.ts.map +1 -0
- package/dist/schemas/{balance_history.schema.js → users_balance.schema.js} +18 -22
- package/dist/schemas/users_balance.schema.js.map +1 -0
- package/package.json +31 -31
- package/readme.md +3 -3
- package/src/index.ts +264 -251
- package/src/models/account-type.enum.ts +8 -0
- package/src/models/activity-log-user-login.interface.ts +9 -9
- package/src/models/activity-log.enum.ts +7 -7
- package/src/models/currency.enum.ts +4 -4
- package/src/models/rating-add-bulk-item.interface.ts +6 -6
- package/src/models/rating-monthly-result.interface.ts +10 -10
- package/src/models/tournament-participant.interface.ts +5 -5
- package/src/models/tournament-status.enum.ts +6 -6
- package/src/models/tournament-template.enum.ts +3 -3
- package/src/models/tournament-winner.interface.ts +7 -7
- package/src/models/users-balance-reason.enum.ts +8 -0
- package/src/repositories/achievement.repository.ts +18 -18
- package/src/repositories/activity-log.repository.ts +110 -110
- package/src/repositories/admin.repository.ts +23 -23
- package/src/repositories/article.repository.ts +33 -33
- package/src/repositories/banners.repository.ts +54 -54
- package/src/repositories/complains.repository.ts +30 -30
- package/src/repositories/daily-bonus.repository.ts +25 -25
- package/src/repositories/friend.repository.ts +19 -19
- package/src/repositories/game-result.repository.ts +15 -15
- package/src/repositories/game-statistic.repository.ts +21 -21
- package/src/repositories/index.ts +61 -57
- package/src/repositories/menu.repository.ts +21 -21
- package/src/repositories/notification.repository.ts +54 -54
- package/src/repositories/premium.repository.ts +17 -17
- package/src/repositories/products.repository.ts +29 -29
- package/src/repositories/purchase.repository.ts +95 -95
- package/src/repositories/rating.repository.ts +83 -83
- package/src/repositories/rooms.repository.ts +17 -17
- package/src/repositories/rule.repository.ts +17 -17
- package/src/repositories/scheduled-tournaments.repository.ts +30 -30
- package/src/repositories/servers.repository.ts +18 -18
- package/src/repositories/setting.repository.ts +19 -19
- package/src/repositories/settings-options.repository.ts +18 -0
- package/src/repositories/simple-rooms.repository.ts +17 -17
- package/src/repositories/tournament-many-tables-rooms.repository.ts +132 -132
- package/src/repositories/tournament-one-table-rooms.repository.ts +106 -106
- package/src/repositories/users-achievements.repository.ts +43 -0
- package/src/repositories/users-balances.repository.ts +28 -0
- package/src/repositories/users.repository.ts +151 -151
- package/src/repositories/welcome.repository.ts +17 -17
- package/src/schemas/achievement.schema.ts +40 -40
- package/src/schemas/activity_log.schema.ts +37 -37
- package/src/schemas/admin.schema.ts +22 -22
- package/src/schemas/article.schema.ts +37 -37
- package/src/schemas/banner.schema.ts +40 -40
- package/src/schemas/channel_message.schema.ts +31 -31
- package/src/schemas/complain.schema.ts +46 -46
- package/src/schemas/daily_bonus.schema.ts +56 -56
- package/src/schemas/feature.schema.ts +28 -28
- package/src/schemas/friend.schema.ts +50 -50
- package/src/schemas/game_result.schema.ts +68 -68
- package/src/schemas/game_statistic.schema.ts +40 -40
- package/src/schemas/menu.schema.ts +40 -40
- package/src/schemas/notification.schema.ts +61 -61
- package/src/schemas/premium.schema.ts +45 -45
- package/src/schemas/product.schema.ts +129 -123
- package/src/schemas/purchase.schema.ts +58 -58
- package/src/schemas/purchase_channel.schema.ts +31 -31
- package/src/schemas/rating.schema.ts +37 -37
- package/src/schemas/rooms.schema.ts +63 -63
- package/src/schemas/rule.schema.ts +45 -45
- package/src/schemas/scheduled_tournament.schema.ts +93 -93
- package/src/schemas/server.schema.ts +22 -22
- package/src/schemas/setting.schema.ts +55 -55
- package/src/schemas/settings_option.schema.ts +43 -0
- package/src/schemas/simple_rooms.schema.ts +46 -46
- package/src/schemas/tournament_many_tables_rooms.schema.ts +84 -84
- package/src/schemas/tournament_one_table_rooms.schema.ts +81 -81
- package/src/schemas/user.fb.schema.ts +33 -33
- package/src/schemas/user.google.schema.ts +24 -24
- package/src/schemas/user.ok.schema.ts +52 -52
- package/src/schemas/user.schema.ts +151 -182
- package/src/schemas/user.tg.schema.ts +30 -30
- package/src/schemas/user.vk.schema.ts +70 -70
- package/src/schemas/user.ya.schema.ts +24 -24
- package/src/schemas/users_achievement.schema.ts +40 -0
- package/src/schemas/users_balance.schema.ts +34 -0
- package/src/schemas/welcome.schema.ts +45 -45
- package/src/utils.ts +3 -3
- package/dist/models/activity-log-user-login.interface copy.d.ts +0 -11
- package/dist/models/activity-log-user-login.interface copy.d.ts.map +0 -1
- package/dist/models/activity-log-user-login.interface copy.js +0 -3
- package/dist/models/activity-log-user-login.interface copy.js.map +0 -1
- package/dist/repositories/balance-history.repository.d.ts +0 -8
- package/dist/repositories/balance-history.repository.d.ts.map +0 -1
- package/dist/repositories/balance-history.repository.js.map +0 -1
- package/dist/schemas/balance_history.schema.d.ts +0 -105
- package/dist/schemas/balance_history.schema.d.ts.map +0 -1
- package/dist/schemas/balance_history.schema.js.map +0 -1
- package/src/models/activity-log-user-login.interface copy.ts +0 -10
- package/src/repositories/balance-history.repository.ts +0 -15
- package/src/schemas/balance_history.schema.ts +0 -37
|
@@ -37,6 +37,8 @@ export declare class Product {
|
|
|
37
37
|
period?: string;
|
|
38
38
|
type?: string;
|
|
39
39
|
game?: string;
|
|
40
|
+
isProduct: boolean;
|
|
41
|
+
enableOnlyForPremium: boolean;
|
|
40
42
|
}
|
|
41
43
|
export declare const ProductSchema: import("mongoose").Schema<Product, import("mongoose").Model<Product, any, any, any, (Document<unknown, any, Product, any, import("mongoose").DefaultSchemaOptions> & Product & {
|
|
42
44
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -381,5 +383,23 @@ export declare const ProductSchema: import("mongoose").Schema<Product, import("m
|
|
|
381
383
|
}, "id"> & {
|
|
382
384
|
id: string;
|
|
383
385
|
}>;
|
|
386
|
+
isProduct?: import("mongoose").SchemaDefinitionProperty<boolean, Product, Document<unknown, {}, Product, {
|
|
387
|
+
id: string;
|
|
388
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Product & {
|
|
389
|
+
_id: import("mongoose").Types.ObjectId;
|
|
390
|
+
} & {
|
|
391
|
+
__v: number;
|
|
392
|
+
}, "id"> & {
|
|
393
|
+
id: string;
|
|
394
|
+
}>;
|
|
395
|
+
enableOnlyForPremium?: import("mongoose").SchemaDefinitionProperty<boolean, Product, Document<unknown, {}, Product, {
|
|
396
|
+
id: string;
|
|
397
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Product & {
|
|
398
|
+
_id: import("mongoose").Types.ObjectId;
|
|
399
|
+
} & {
|
|
400
|
+
__v: number;
|
|
401
|
+
}, "id"> & {
|
|
402
|
+
id: string;
|
|
403
|
+
}>;
|
|
384
404
|
}, Product>;
|
|
385
405
|
//# sourceMappingURL=product.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/product.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,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,cAAc,EAAE,MAAM,CAAC;IAGvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,OAAO,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAGlB,YAAY,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"product.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/product.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,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,cAAc,EAAE,MAAM,CAAC;IAGvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,OAAO,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAGlB,YAAY,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,OAAO,CAAC;IAGnB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAwC,CAAC"}
|
|
@@ -162,6 +162,14 @@ __decorate([
|
|
|
162
162
|
(0, mongoose_1.Prop)(),
|
|
163
163
|
__metadata("design:type", String)
|
|
164
164
|
], Product.prototype, "game", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
167
|
+
__metadata("design:type", Boolean)
|
|
168
|
+
], Product.prototype, "isProduct", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], Product.prototype, "enableOnlyForPremium", void 0);
|
|
165
173
|
exports.Product = Product = __decorate([
|
|
166
174
|
(0, mongoose_1.Schema)()
|
|
167
175
|
], Product);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.schema.js","sourceRoot":"","sources":["../../src/schemas/product.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;
|
|
1
|
+
{"version":3,"file":"product.schema.js","sourceRoot":"","sources":["../../src/schemas/product.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;CAwHnB,CAAA;AAxHY,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;;sCACO;AAGd;IADC,IAAA,eAAI,GAAE;;wCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;4CACa;AAGpB;IADC,IAAA,eAAI,GAAE;;8CACe;AAGtB;IADC,IAAA,eAAI,GAAE;;oDACqB;AAG5B;IADC,IAAA,eAAI,GAAE;;sDACuB;AAG9B;IADC,IAAA,eAAI,GAAE;;+CACgB;AAGvB;IADC,IAAA,eAAI,GAAE;;iDACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;uCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;uCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;sCACO;AAGd;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;yCACW;AAGlB;IADC,IAAA,eAAI,GAAE;;6CACe;AAKtB;IADC,IAAA,eAAI,GAAE;;yCACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;gDACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACe;AAGtB;IADC,IAAA,eAAI,GAAE;;sCACQ;AAGf;IADC,IAAA,eAAI,GAAE;;uCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,GAAE;;qCACO;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACN;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACK;kBAvHrB,OAAO;IADnB,IAAA,iBAAM,GAAE;GACI,OAAO,CAwHnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -2,19 +2,19 @@ import { Document, HydratedDocument } from 'mongoose';
|
|
|
2
2
|
export type SettingDocument = HydratedDocument<Setting>;
|
|
3
3
|
export declare class Setting {
|
|
4
4
|
readonly settingId: string;
|
|
5
|
+
position: number;
|
|
6
|
+
code: string;
|
|
5
7
|
type: string;
|
|
8
|
+
modalType?: string;
|
|
6
9
|
title: string;
|
|
7
10
|
titleEn: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
code: string;
|
|
11
|
-
productId?: string;
|
|
12
|
-
url: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
subtitleEn: string;
|
|
13
13
|
icon: string;
|
|
14
|
-
|
|
14
|
+
hasChevron: boolean;
|
|
15
|
+
url: string;
|
|
15
16
|
game: string;
|
|
16
17
|
channel: string;
|
|
17
|
-
hasChevron: boolean;
|
|
18
18
|
}
|
|
19
19
|
export declare const SettingSchema: import("mongoose").Schema<Setting, import("mongoose").Model<Setting, any, any, any, (Document<unknown, any, Setting, any, import("mongoose").DefaultSchemaOptions> & Setting & {
|
|
20
20
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -44,7 +44,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
44
44
|
}, "id"> & {
|
|
45
45
|
id: string;
|
|
46
46
|
}>;
|
|
47
|
-
|
|
47
|
+
position?: import("mongoose").SchemaDefinitionProperty<number, Setting, Document<unknown, {}, Setting, {
|
|
48
48
|
id: string;
|
|
49
49
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
50
50
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -53,7 +53,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
53
53
|
}, "id"> & {
|
|
54
54
|
id: string;
|
|
55
55
|
}>;
|
|
56
|
-
|
|
56
|
+
code?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
57
57
|
id: string;
|
|
58
58
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
59
59
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -62,7 +62,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
62
62
|
}, "id"> & {
|
|
63
63
|
id: string;
|
|
64
64
|
}>;
|
|
65
|
-
|
|
65
|
+
type?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
66
66
|
id: string;
|
|
67
67
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
68
68
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -71,7 +71,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
71
71
|
}, "id"> & {
|
|
72
72
|
id: string;
|
|
73
73
|
}>;
|
|
74
|
-
|
|
74
|
+
modalType?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
75
75
|
id: string;
|
|
76
76
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
77
77
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -80,7 +80,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
80
80
|
}, "id"> & {
|
|
81
81
|
id: string;
|
|
82
82
|
}>;
|
|
83
|
-
|
|
83
|
+
title?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
84
84
|
id: string;
|
|
85
85
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
86
86
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -89,7 +89,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
89
89
|
}, "id"> & {
|
|
90
90
|
id: string;
|
|
91
91
|
}>;
|
|
92
|
-
|
|
92
|
+
titleEn?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
93
93
|
id: string;
|
|
94
94
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
95
95
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -98,7 +98,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
98
98
|
}, "id"> & {
|
|
99
99
|
id: string;
|
|
100
100
|
}>;
|
|
101
|
-
|
|
101
|
+
subtitle?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
102
102
|
id: string;
|
|
103
103
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
104
104
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -107,7 +107,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
107
107
|
}, "id"> & {
|
|
108
108
|
id: string;
|
|
109
109
|
}>;
|
|
110
|
-
|
|
110
|
+
subtitleEn?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
111
111
|
id: string;
|
|
112
112
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
113
113
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -125,7 +125,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
125
125
|
}, "id"> & {
|
|
126
126
|
id: string;
|
|
127
127
|
}>;
|
|
128
|
-
|
|
128
|
+
hasChevron?: import("mongoose").SchemaDefinitionProperty<boolean, Setting, Document<unknown, {}, Setting, {
|
|
129
129
|
id: string;
|
|
130
130
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
131
131
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -134,7 +134,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
134
134
|
}, "id"> & {
|
|
135
135
|
id: string;
|
|
136
136
|
}>;
|
|
137
|
-
|
|
137
|
+
url?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
138
138
|
id: string;
|
|
139
139
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
140
140
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -143,7 +143,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
143
143
|
}, "id"> & {
|
|
144
144
|
id: string;
|
|
145
145
|
}>;
|
|
146
|
-
|
|
146
|
+
game?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
147
147
|
id: string;
|
|
148
148
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
149
149
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -152,7 +152,7 @@ export declare const SettingSchema: import("mongoose").Schema<Setting, import("m
|
|
|
152
152
|
}, "id"> & {
|
|
153
153
|
id: string;
|
|
154
154
|
}>;
|
|
155
|
-
|
|
155
|
+
channel?: import("mongoose").SchemaDefinitionProperty<string, Setting, Document<unknown, {}, Setting, {
|
|
156
156
|
id: string;
|
|
157
157
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Setting & {
|
|
158
158
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -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,
|
|
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,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAA;IAGhB,UAAU,EAAE,MAAM,CAAA;IAGlB,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,OAAO,CAAC;IAGpB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAwC,CAAC"}
|
|
@@ -24,36 +24,36 @@ __decorate([
|
|
|
24
24
|
], Setting.prototype, "settingId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, mongoose_1.Prop)(),
|
|
27
|
-
__metadata("design:type",
|
|
28
|
-
], Setting.prototype, "
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], Setting.prototype, "position", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, mongoose_1.Prop)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
], Setting.prototype, "
|
|
32
|
+
], Setting.prototype, "code", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, mongoose_1.Prop)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
], Setting.prototype, "
|
|
36
|
+
], Setting.prototype, "type", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, mongoose_1.Prop)(),
|
|
39
|
-
__metadata("design:type",
|
|
40
|
-
], Setting.prototype, "
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Setting.prototype, "modalType", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, mongoose_1.Prop)(),
|
|
43
|
-
__metadata("design:type",
|
|
44
|
-
], Setting.prototype, "
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Setting.prototype, "title", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, mongoose_1.Prop)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
], Setting.prototype, "
|
|
48
|
+
], Setting.prototype, "titleEn", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, mongoose_1.Prop)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
], Setting.prototype, "
|
|
52
|
+
], Setting.prototype, "subtitle", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, mongoose_1.Prop)(),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
|
-
], Setting.prototype, "
|
|
56
|
+
], Setting.prototype, "subtitleEn", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, mongoose_1.Prop)(),
|
|
59
59
|
__metadata("design:type", String)
|
|
@@ -61,19 +61,19 @@ __decorate([
|
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, mongoose_1.Prop)(),
|
|
63
63
|
__metadata("design:type", Boolean)
|
|
64
|
-
], Setting.prototype, "
|
|
64
|
+
], Setting.prototype, "hasChevron", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, mongoose_1.Prop)(),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
], Setting.prototype, "
|
|
68
|
+
], Setting.prototype, "url", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, mongoose_1.Prop)(),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
|
-
], Setting.prototype, "
|
|
72
|
+
], Setting.prototype, "game", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, mongoose_1.Prop)(),
|
|
75
|
-
__metadata("design:type",
|
|
76
|
-
], Setting.prototype, "
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Setting.prototype, "channel", void 0);
|
|
77
77
|
exports.Setting = Setting = __decorate([
|
|
78
78
|
(0, mongoose_1.Schema)({ collection: 'settings' })
|
|
79
79
|
], Setting);
|
|
@@ -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;CA8CnB,CAAA;AA9CY,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;;
|
|
1
|
+
{"version":3,"file":"setting.schema.js","sourceRoot":"","sources":["../../src/schemas/setting.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,OAAO,GAAb,MAAM,OAAO;CA8CnB,CAAA;AA9CY,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;;yCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;0CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;sCACO;AAGd;IADC,IAAA,eAAI,GAAE;;wCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;yCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;2CACW;AAGlB;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;2CACa;AAGpB;IADC,IAAA,eAAI,GAAE;;oCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;qCACM;AAGb;IADC,IAAA,eAAI,GAAE;;wCACS;kBA7CP,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;GACtB,OAAO,CA8CnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Document, HydratedDocument } from 'mongoose';
|
|
2
|
+
export type SettingsOptionDocument = HydratedDocument<SettingsOption>;
|
|
3
|
+
export declare class SettingsOption {
|
|
4
|
+
readonly settingOptionId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
position: number;
|
|
7
|
+
title: string;
|
|
8
|
+
titleEn: string;
|
|
9
|
+
payd?: boolean;
|
|
10
|
+
code: string;
|
|
11
|
+
productId?: string;
|
|
12
|
+
premium?: boolean;
|
|
13
|
+
platformAvatar?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const SettingsOptionSchema: import("mongoose").Schema<SettingsOption, import("mongoose").Model<SettingsOption, any, any, any, (Document<unknown, any, SettingsOption, any, import("mongoose").DefaultSchemaOptions> & SettingsOption & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
} & {
|
|
20
|
+
id: string;
|
|
21
|
+
}) | (Document<unknown, any, SettingsOption, any, import("mongoose").DefaultSchemaOptions> & SettingsOption & {
|
|
22
|
+
_id: import("mongoose").Types.ObjectId;
|
|
23
|
+
} & {
|
|
24
|
+
__v: number;
|
|
25
|
+
}), any, SettingsOption>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & {
|
|
32
|
+
id: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly settingOptionId?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
35
|
+
id: string;
|
|
36
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}, "id"> & {
|
|
41
|
+
id: string;
|
|
42
|
+
}>;
|
|
43
|
+
type?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
44
|
+
id: string;
|
|
45
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}, "id"> & {
|
|
50
|
+
id: string;
|
|
51
|
+
}>;
|
|
52
|
+
position?: import("mongoose").SchemaDefinitionProperty<number, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
53
|
+
id: string;
|
|
54
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
55
|
+
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}, "id"> & {
|
|
59
|
+
id: string;
|
|
60
|
+
}>;
|
|
61
|
+
title?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
62
|
+
id: string;
|
|
63
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
67
|
+
}, "id"> & {
|
|
68
|
+
id: string;
|
|
69
|
+
}>;
|
|
70
|
+
titleEn?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
71
|
+
id: string;
|
|
72
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
73
|
+
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
76
|
+
}, "id"> & {
|
|
77
|
+
id: string;
|
|
78
|
+
}>;
|
|
79
|
+
payd?: import("mongoose").SchemaDefinitionProperty<boolean, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
80
|
+
id: string;
|
|
81
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
82
|
+
_id: import("mongoose").Types.ObjectId;
|
|
83
|
+
} & {
|
|
84
|
+
__v: number;
|
|
85
|
+
}, "id"> & {
|
|
86
|
+
id: string;
|
|
87
|
+
}>;
|
|
88
|
+
code?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
89
|
+
id: string;
|
|
90
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, "id"> & {
|
|
95
|
+
id: string;
|
|
96
|
+
}>;
|
|
97
|
+
productId?: import("mongoose").SchemaDefinitionProperty<string, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
98
|
+
id: string;
|
|
99
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
100
|
+
_id: import("mongoose").Types.ObjectId;
|
|
101
|
+
} & {
|
|
102
|
+
__v: number;
|
|
103
|
+
}, "id"> & {
|
|
104
|
+
id: string;
|
|
105
|
+
}>;
|
|
106
|
+
premium?: import("mongoose").SchemaDefinitionProperty<boolean, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
107
|
+
id: string;
|
|
108
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
109
|
+
_id: import("mongoose").Types.ObjectId;
|
|
110
|
+
} & {
|
|
111
|
+
__v: number;
|
|
112
|
+
}, "id"> & {
|
|
113
|
+
id: string;
|
|
114
|
+
}>;
|
|
115
|
+
platformAvatar?: import("mongoose").SchemaDefinitionProperty<boolean, SettingsOption, Document<unknown, {}, SettingsOption, {
|
|
116
|
+
id: string;
|
|
117
|
+
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<SettingsOption & {
|
|
118
|
+
_id: import("mongoose").Types.ObjectId;
|
|
119
|
+
} & {
|
|
120
|
+
__v: number;
|
|
121
|
+
}, "id"> & {
|
|
122
|
+
id: string;
|
|
123
|
+
}>;
|
|
124
|
+
}, SettingsOption>;
|
|
125
|
+
//# sourceMappingURL=settings_option.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings_option.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/settings_option.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAEtE,qBACa,cAAc;IAMvB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,OAAO,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA+C,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.SettingsOptionSchema = exports.SettingsOption = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let SettingsOption = class SettingsOption {
|
|
15
|
+
};
|
|
16
|
+
exports.SettingsOption = SettingsOption;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Virtual)({
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._id.toString();
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SettingsOption.prototype, "settingOptionId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SettingsOption.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], SettingsOption.prototype, "position", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SettingsOption.prototype, "title", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SettingsOption.prototype, "titleEn", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], SettingsOption.prototype, "payd", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], SettingsOption.prototype, "code", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SettingsOption.prototype, "productId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], SettingsOption.prototype, "premium", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], SettingsOption.prototype, "platformAvatar", void 0);
|
|
61
|
+
exports.SettingsOption = SettingsOption = __decorate([
|
|
62
|
+
(0, mongoose_1.Schema)({ collection: 'settings_options' })
|
|
63
|
+
], SettingsOption);
|
|
64
|
+
exports.SettingsOptionSchema = mongoose_1.SchemaFactory.createForClass(SettingsOption);
|
|
65
|
+
//# sourceMappingURL=settings_option.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings_option.schema.js","sourceRoot":"","sources":["../../src/schemas/settings_option.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAMjE,IAAM,cAAc,GAApB,MAAM,cAAc;CAkC1B,CAAA;AAlCY,wCAAc;AAMd;IALR,IAAA,kBAAO,EAAC;QACL,GAAG,EAAE;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/B,CAAC;KACJ,CAAC;;uDAC+B;AAGjC;IADC,IAAA,eAAI,GAAE;;4CACM;AAGb;IADC,IAAA,eAAI,GAAE;;gDACU;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACO;AAGd;IADC,IAAA,eAAI,GAAE;;+CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;4CACM;AAGb;IADC,IAAA,eAAI,GAAE;;iDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;+CACW;AAGlB;IADC,IAAA,eAAI,GAAE;;sDACkB;yBAjChB,cAAc;IAD1B,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC;GAC9B,cAAc,CAkC1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
|