eh-commons 0.0.1-testing.75 → 0.0.1-testing.76
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 +4 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/models/rewards/embedded/rewards.embedded.d.ts +22 -0
- package/dist/models/rewards/embedded/rewards.embedded.js +57 -0
- package/dist/models/rewards/embedded/rewards.embedded.js.map +1 -0
- package/dist/models/rewards/enums/reward-quality.enum.d.ts +5 -0
- package/dist/models/rewards/enums/reward-quality.enum.js +10 -0
- package/dist/models/rewards/enums/reward-quality.enum.js.map +1 -0
- package/dist/models/rewards/enums/reward-type.enum.d.ts +4 -0
- package/dist/models/rewards/enums/reward-type.enum.js +9 -0
- package/dist/models/rewards/enums/reward-type.enum.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -1
- package/src/models/rewards/embedded/rewards.embedded.ts +39 -0
- package/src/models/rewards/enums/reward-quality.enum.ts +5 -0
- package/src/models/rewards/enums/reward-type.enum.ts +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -91,4 +91,7 @@ import { DictionaryService } from './modules/dictionary/services/dictionary.serv
|
|
|
91
91
|
import { APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGODB__CS, KAFKAJS_NO_PARTITIONER_WARNING } from './models/commons/consts/env.variables';
|
|
92
92
|
import { AccessTokenGuard } from './guards/access-token.guard';
|
|
93
93
|
import { ValidatePIDPipe } from './pipes/validate-pid.pipe';
|
|
94
|
-
|
|
94
|
+
import { Reward, RewardDocument, RewardSchema } from './models/rewards/embedded/rewards.embedded';
|
|
95
|
+
import { RewardQuality } from './models/rewards/enums/reward-quality.enum';
|
|
96
|
+
import { RewardType } from './models/rewards/enums/reward-type.enum';
|
|
97
|
+
export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, SortDirection, Sort, Page, SortPage, RESTSort, RESTPaging, RESTRequestBody, RESTPage, RESTResult, RESTError, RESTResponseBody, ConfigUtil, ISession, ISessionUserData, SessionClient, RedisService, SessionService, CacheModule, PermissionGuard, generateUUID, Permission, PermissionsIncludeStrategy, PermissionGuardConfig, ClientPermissions, ValidateMongoIdPipe, ValidatePIDPipe, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, LoggerClient, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ClientType, IClient, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IPermission, IPerson, Person, PersonSchema, PersonDocument, IRecord, Record, RecordSchema, RecordDocument, IRole, IUserClient, IUser, AuthorDTO, IAuthor, Author, AuthorSchema, IS3File, S3File, S3FileSchema, S3FileDocument, IFileLog, FileLog, FileLogSchema, FileLogDocument, IFileMeta, FileMeta, FileMetaSchema, FileMetaDocument, IFileRecord, FileRecord, FileRecordSchema, FileRecordDocument, IFileState, FileState, FileStateSchema, FileStateDocument, ILogInitiator, LogInitiator, LogInitiatorDocument, LogInitiatorSchema, IS3, S3, S3Document, S3Schema, S3FileState, IDictionarySetting, IDictionary, RESTQueryParams, IMongoPage, ResourceType, ICredentials, IProfInfo, generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword, getSortObj, I18nDTO, Base, IBase, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, DictionaryEmbedded, IDictionaryEmbedded, IDictionaryEvent, DictionaryModule, DictionaryService, AccessTokenGuard, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGODB__CS, KAFKAJS_NO_PARTITIONER_WARNING, Reward, RewardSchema, RewardDocument, RewardQuality, RewardType, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContactSchema = exports.Contact = exports.ContactType = exports.ClientType = exports.AddressSchema = exports.Address = exports.ConsoleLogger = exports.Env = exports.LoggerClient = exports.LogService = exports.LogModule = exports.HTTPMethod = exports.sizeOfJson = exports.getRandomNumberFromRange = exports.translitGeorgiaToLatin = exports.escapeRegex = exports.ValidatePIDPipe = exports.ValidateMongoIdPipe = exports.ClientPermissions = exports.PermissionGuardConfig = exports.PermissionsIncludeStrategy = exports.Permission = exports.generateUUID = exports.PermissionGuard = exports.CacheModule = exports.SessionService = exports.RedisService = exports.SessionClient = exports.ConfigUtil = exports.RESTResponseBody = exports.RESTError = exports.RESTResult = exports.RESTPage = exports.RESTRequestBody = exports.RESTPaging = exports.RESTSort = exports.SortPage = exports.Page = exports.Sort = exports.SortDirection = exports.RecordState = exports.StateParamDTO = exports.RecordDTO = exports.BaseExceptionsFilter = exports.validationExceptionFactory = exports.HandledException = exports.IsRoute = exports.IsMapOfStrings = exports.IsRouteConstraint = exports.IsMapOfStringsConstraint = void 0;
|
|
4
|
-
exports.KAFKAJS_NO_PARTITIONER_WARNING = exports.MONGODB__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AccessTokenGuard = exports.DictionaryService = exports.DictionaryModule = exports.DictionaryEmbedded = exports.DictionaryEmbeddedSchema = exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ResourceType = exports.RESTQueryParams = exports.S3FileState = exports.S3Schema = exports.S3 = exports.LogInitiatorSchema = exports.LogInitiator = exports.FileStateSchema = exports.FileState = exports.FileRecordSchema = exports.FileRecord = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.S3FileSchema = exports.S3File = exports.AuthorSchema = exports.Author = exports.AuthorDTO = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = void 0;
|
|
4
|
+
exports.RewardType = exports.RewardQuality = exports.RewardSchema = exports.Reward = exports.KAFKAJS_NO_PARTITIONER_WARNING = exports.MONGODB__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AccessTokenGuard = exports.DictionaryService = exports.DictionaryModule = exports.DictionaryEmbedded = exports.DictionaryEmbeddedSchema = exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ResourceType = exports.RESTQueryParams = exports.S3FileState = exports.S3Schema = exports.S3 = exports.LogInitiatorSchema = exports.LogInitiator = exports.FileStateSchema = exports.FileState = exports.FileRecordSchema = exports.FileRecord = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.S3FileSchema = exports.S3File = exports.AuthorSchema = exports.Author = exports.AuthorDTO = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = void 0;
|
|
5
5
|
const is_map_of_strings_constraint_1 = require("./constraints/is-map-of-strings.constraint");
|
|
6
6
|
Object.defineProperty(exports, "IsMapOfStringsConstraint", { enumerable: true, get: function () { return is_map_of_strings_constraint_1.IsMapOfStringsConstraint; } });
|
|
7
7
|
const is_route_constraint_1 = require("./constraints/is-route.constraint");
|
|
@@ -161,4 +161,11 @@ const access_token_guard_1 = require("./guards/access-token.guard");
|
|
|
161
161
|
Object.defineProperty(exports, "AccessTokenGuard", { enumerable: true, get: function () { return access_token_guard_1.AccessTokenGuard; } });
|
|
162
162
|
const validate_pid_pipe_1 = require("./pipes/validate-pid.pipe");
|
|
163
163
|
Object.defineProperty(exports, "ValidatePIDPipe", { enumerable: true, get: function () { return validate_pid_pipe_1.ValidatePIDPipe; } });
|
|
164
|
+
const rewards_embedded_1 = require("./models/rewards/embedded/rewards.embedded");
|
|
165
|
+
Object.defineProperty(exports, "Reward", { enumerable: true, get: function () { return rewards_embedded_1.Reward; } });
|
|
166
|
+
Object.defineProperty(exports, "RewardSchema", { enumerable: true, get: function () { return rewards_embedded_1.RewardSchema; } });
|
|
167
|
+
const reward_quality_enum_1 = require("./models/rewards/enums/reward-quality.enum");
|
|
168
|
+
Object.defineProperty(exports, "RewardQuality", { enumerable: true, get: function () { return reward_quality_enum_1.RewardQuality; } });
|
|
169
|
+
const reward_type_enum_1 = require("./models/rewards/enums/reward-type.enum");
|
|
170
|
+
Object.defineProperty(exports, "RewardType", { enumerable: true, get: function () { return reward_type_enum_1.RewardType; } });
|
|
164
171
|
//# 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,6FAAsF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,6FAAsF;AA0KpF,yGA1KO,uDAAwB,OA0KP;AAzK1B,2EAAsE;AA0KpE,kGA1KO,uCAAiB,OA0KP;AAzKnB,0FAA0E;AA0KxE,+FA1KO,4CAAc,OA0KP;AAzKhB,wEAA0D;AA0KxD,wFA1KO,4BAAO,OA0KP;AAzKT,oEAAiE;AA0K/D,iGA1KO,mCAAgB,OA0KP;AAzKlB,qEAA2E;AA0KzE,2GA1KO,8CAA0B,OA0KP;AAzK5B,2EAAuE;AA0KrE,qGA1KO,4CAAoB,OA0KP;AAzKtB,yDAAqD;AA0KnD,0FA1KO,sBAAS,OA0KP;AAzKX,qEAA+D;AA0K7D,8FA1KO,gCAAa,OA0KP;AAzKf,6EAAoE;AA0KlE,4FA1KO,+BAAW,OA0KP;AAzKb,6EAW8C;AAwK5C,0FAjLA,8BAAS,OAiLA;AAFT,yFA9KA,6BAAQ,OA8KA;AAFR,2FA3KA,+BAAU,OA2KA;AAi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C,qFA3GA,oBAAI,OA2GA;AACJ,2FA3GA,0BAAU,OA2GA;AAxGZ,4EAIgD;AAwG9C,uFA3GA,wBAAM,OA2GA;AACN,6FA3GA,8BAAY,OA2GA;AAxGd,4EAIgD;AAuG9C,uFA1GA,wBAAM,OA0GA;AACN,6FA1GA,8BAAY,OA0GA;AAlGd,2EAI8C;AA2I5C,uGA9IA,yCAAsB,OA8IA;AACtB,0GA9IA,4CAAyB,OA8IA;AACzB,oHA9IA,sDAAmC,OA8IA;AA5IrC,2EAA8D;AA6I5D,2FA7IO,iCAAU,OA6IP;AA5IZ,qDAAiD;AA6I/C,wFA7IO,kBAAO,OA6IP;AA3IT,sEAA4D;AA4I1D,qFA5IO,kBAAI,OA4IP;AA3IN,0FAI0D;AA2IxD,mGA9IA,wCAAkB,OA8IA;AAFlB,yGA1IA,8CAAwB,OA0IA;AAtI1B,8EAA0E;AA2IxE,iGA3IO,oCAAgB,OA2IP;AA1IlB,yFAAqF;AA2InF,kGA3IO,sCAAiB,OA2IP;AA1InB,yEAA8I;AA4I5I,0FA5IO,yBAAS,OA4IP;AACT,2FA7IkB,0BAAU,OA6IlB;AACV,kGA9I8B,iCAAiB,OA8I9B;AACjB,4FA/IiD,2BAAW,OA+IjD;AACX,+GAhJ8D,8CAA8B,OAgJ9D;AA/IhC,oEAA+D;AA0I7D,iGA1IO,qCAAgB,OA0IP;AAzIlB,iEAA4D;AAyC1D,gGAzCO,mCAAe,OAyCP;AAxCjB,iFAAkG;AA8IhG,uFA9IO,yBAAM,OA8IP;AACN,6FA/I+B,+BAAY,OA+I/B;AA9Id,oFAA2E;AAgJzE,8FAhJO,mCAAa,OAgJP;AA/If,8EAAqE;AAgJnE,2FAhJO,6BAAU,OAgJP"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RewardType } from '../enums/reward-type.enum';
|
|
2
|
+
import { RewardQuality } from '../enums/reward-quality.enum';
|
|
3
|
+
import { HydratedDocument } from 'mongoose';
|
|
4
|
+
import { I18n } from '../../../models/util/embedded/i18n.embedded';
|
|
5
|
+
import { Record } from '../../../models/util/embedded/record.embedded';
|
|
6
|
+
export declare class Reward {
|
|
7
|
+
title: I18n;
|
|
8
|
+
type: RewardType;
|
|
9
|
+
quality?: RewardQuality;
|
|
10
|
+
description?: string;
|
|
11
|
+
record: Record;
|
|
12
|
+
}
|
|
13
|
+
export declare const RewardSchema: import("mongoose").Schema<Reward, import("mongoose").Model<Reward, any, any, any, import("mongoose").Document<unknown, any, Reward> & Reward & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Reward, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Reward>> & import("mongoose").FlatRecord<Reward> & {
|
|
18
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
} & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}>;
|
|
22
|
+
export type RewardDocument = HydratedDocument<Reward>;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.RewardSchema = exports.Reward = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const reward_type_enum_1 = require("../enums/reward-type.enum");
|
|
15
|
+
const reward_quality_enum_1 = require("../enums/reward-quality.enum");
|
|
16
|
+
const i18n_embedded_1 = require("../../../models/util/embedded/i18n.embedded");
|
|
17
|
+
const record_embedded_1 = require("../../../models/util/embedded/record.embedded");
|
|
18
|
+
let Reward = class Reward {
|
|
19
|
+
};
|
|
20
|
+
exports.Reward = Reward;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: i18n_embedded_1.I18nSchema, required: false }),
|
|
23
|
+
__metadata("design:type", i18n_embedded_1.I18n)
|
|
24
|
+
], Reward.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({
|
|
27
|
+
type: String,
|
|
28
|
+
enum: reward_type_enum_1.RewardType,
|
|
29
|
+
required: true,
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Reward.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({
|
|
35
|
+
type: String,
|
|
36
|
+
enum: reward_quality_enum_1.RewardQuality,
|
|
37
|
+
required: true,
|
|
38
|
+
default: reward_quality_enum_1.RewardQuality.Common,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Reward.prototype, "quality", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({
|
|
44
|
+
type: String,
|
|
45
|
+
required: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Reward.prototype, "description", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ type: record_embedded_1.RecordSchema, required: true }),
|
|
51
|
+
__metadata("design:type", record_embedded_1.Record)
|
|
52
|
+
], Reward.prototype, "record", void 0);
|
|
53
|
+
exports.Reward = Reward = __decorate([
|
|
54
|
+
(0, mongoose_1.Schema)()
|
|
55
|
+
], Reward);
|
|
56
|
+
exports.RewardSchema = mongoose_1.SchemaFactory.createForClass(Reward);
|
|
57
|
+
//# sourceMappingURL=rewards.embedded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewards.embedded.js","sourceRoot":"","sources":["../../../../src/models/rewards/embedded/rewards.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,gEAAuD;AACvD,sEAA6D;AAE7D,+EAA+E;AAC/E,mFAAqF;AAG9E,IAAM,MAAM,GAAZ,MAAM,MAAM;CA2BlB,CAAA;AA3BY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,oBAAI;qCAAC;AAOZ;IALC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAU;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;;oCACe;AAQjB;IANC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mCAAa;QACnB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,mCAAa,CAAC,MAAM;KAC9B,CAAC;;uCACsB;AAMxB;IAJC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB,CAAC;;2CACmB;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACrC,wBAAM;sCAAC;iBA1BJ,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CA2BlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RewardQuality = void 0;
|
|
4
|
+
var RewardQuality;
|
|
5
|
+
(function (RewardQuality) {
|
|
6
|
+
RewardQuality["Common"] = "common";
|
|
7
|
+
RewardQuality["Rare"] = "rare";
|
|
8
|
+
RewardQuality["Epic"] = "epic";
|
|
9
|
+
})(RewardQuality || (exports.RewardQuality = RewardQuality = {}));
|
|
10
|
+
//# sourceMappingURL=reward-quality.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reward-quality.enum.js","sourceRoot":"","sources":["../../../../src/models/rewards/enums/reward-quality.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RewardType = void 0;
|
|
4
|
+
var RewardType;
|
|
5
|
+
(function (RewardType) {
|
|
6
|
+
RewardType["Certificate"] = "certificate";
|
|
7
|
+
RewardType["Badge"] = "badge";
|
|
8
|
+
})(RewardType || (exports.RewardType = RewardType = {}));
|
|
9
|
+
//# sourceMappingURL=reward-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reward-type.enum.js","sourceRoot":"","sources":["../../../../src/models/rewards/enums/reward-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yCAA2B,CAAA;IAC3B,6BAAe,CAAA;AACjB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|