eh-commons 0.0.1-testing.45 → 0.0.1-testing.48

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.
Files changed (44) hide show
  1. package/dist/index.d.ts +4 -10
  2. package/dist/index.js +5 -26
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/dictionary/embedded/dictionary.embedded.d.ts +18 -0
  5. package/dist/models/dictionary/embedded/dictionary.embedded.js +44 -0
  6. package/dist/models/dictionary/embedded/dictionary.embedded.js.map +1 -0
  7. package/dist/models/dictionary/interfaces/dictionary-embedded.interface.d.ts +10 -0
  8. package/dist/models/dictionary/interfaces/dictionary-embedded.interface.js +3 -0
  9. package/dist/models/dictionary/interfaces/dictionary-embedded.interface.js.map +1 -0
  10. package/dist/models/dictionary/interfaces/dictionary-event.interface.d.ts +5 -0
  11. package/dist/models/dictionary/interfaces/dictionary-event.interface.js +3 -0
  12. package/dist/models/dictionary/interfaces/dictionary-event.interface.js.map +1 -0
  13. package/dist/models/um/embedded/prof-info.embedded.d.ts +2 -2
  14. package/dist/models/um/embedded/prof-info.embedded.js +2 -2
  15. package/dist/models/um/embedded/prof-info.embedded.js.map +1 -1
  16. package/dist/models/um/embedded/user-client.embedded.d.ts +2 -2
  17. package/dist/models/um/embedded/user-client.embedded.js +2 -2
  18. package/dist/models/um/embedded/user-client.embedded.js.map +1 -1
  19. package/dist/models/um/interfaces/client.interface.d.ts +9 -6
  20. package/dist/models/um/interfaces/prof-info.interface.d.ts +2 -2
  21. package/dist/models/um/interfaces/user-client.interface.d.ts +3 -3
  22. package/dist/models/um/interfaces/user.interface.d.ts +1 -1
  23. package/dist/models/um/schemas/client.schema.d.ts +3 -3
  24. package/dist/models/um/schemas/client.schema.js +5 -5
  25. package/dist/models/um/schemas/client.schema.js.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +1 -1
  28. package/src/index.ts +9 -67
  29. package/src/models/dictionary/embedded/dictionary.embedded.ts +28 -0
  30. package/src/models/dictionary/interfaces/dictionary-embedded.interface.ts +11 -0
  31. package/src/models/dictionary/interfaces/dictionary-event.interface.ts +6 -0
  32. package/src/models/um/interfaces/client.interface.ts +9 -6
  33. package/src/models/um/interfaces/prof-info.interface.ts +2 -2
  34. package/src/models/um/interfaces/user-client.interface.ts +3 -3
  35. package/src/models/um/interfaces/user.interface.ts +1 -1
  36. package/src/models/um/embedded/client-dictionary.embedded.ts +0 -20
  37. package/src/models/um/embedded/credentials.embedded.ts +0 -15
  38. package/src/models/um/embedded/prof-info.embedded.ts +0 -13
  39. package/src/models/um/embedded/user-client.embedded.ts +0 -19
  40. package/src/models/um/interfaces/client.dictionary.interface.ts +0 -9
  41. package/src/models/um/schemas/client.schema.ts +0 -54
  42. package/src/models/um/schemas/permission.schema.ts +0 -27
  43. package/src/models/um/schemas/role.schema.ts +0 -32
  44. package/src/models/um/schemas/user.schema.ts +0 -37
package/dist/index.d.ts CHANGED
@@ -34,14 +34,12 @@ import { LoggerClient } from './clients/logger.client';
34
34
  import { Env } from './models/util/enums/env.enum';
35
35
  import { ConsoleLogger } from './utils/console-logger.class';
36
36
  import { IClient } from './models/um/interfaces/client.interface';
37
- import { Client, ClientSchema, ClientDocument } from './models/um/schemas/client.schema';
38
37
  import { IGeoLocation } from './models/util/interfaces/geo-location.interface';
39
38
  import { II18n } from './models/util/interfaces/i18n.interface';
40
39
  import { IPerson } from './models/util/interfaces/person.interface';
41
40
  import { IRole } from './models/um/interfaces/role.interface';
42
41
  import { IUserClient } from './models/um/interfaces/user-client.interface';
43
42
  import { IUser } from './models/um/interfaces/user.interface';
44
- import { User, UserSchema, UserDocument } from './models/um/schemas/user.schema';
45
43
  import { AuthorDTO } from './models/dtos/author.dto';
46
44
  import { IAuthor } from './models/util/interfaces/author.interface';
47
45
  import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
@@ -67,10 +65,7 @@ import { Sort } from './models/wrappers/sort.wrapper';
67
65
  import { ClientType } from './models/um/enums/client-type.enum';
68
66
  import { ResourceType } from './models/emis/enums/resource-type.enum';
69
67
  import { ContactType } from './models/util/enums/contact-type.enum';
70
- import { UserClient, UserClientDocument, UserClientSchema } from './models/um/embedded/user-client.embedded';
71
68
  import { IPermission } from './models/um/interfaces/permission.interface';
72
- import { Permission as PermissionClass, PermissionSchema, PermissionDocument } from './models/um/schemas/permission.schema';
73
- import { Role, RoleSchema, RoleDocument } from './models/um/schemas/role.schema';
74
69
  import { Address, AddressSchema, AddressDocument } from './models/util/embedded/address.embedded';
75
70
  import { Author, AuthorSchema } from './models/util/embedded/author.embedded';
76
71
  import { Contact, ContactSchema, ContactDocument } from './models/util/embedded/contact.embedded';
@@ -81,10 +76,6 @@ import { Record, RecordSchema, RecordDocument } from './models/util/embedded/rec
81
76
  import { IAddress } from './models/util/interfaces/address.interface';
82
77
  import { IContact } from './models/util/interfaces/contact.interface';
83
78
  import { IRecord } from './models/util/interfaces/record.interface';
84
- import { ClientDictionary, ClientDictionaryDocument, ClientDictionarySchema } from './models/um/embedded/client-dictionary.embedded';
85
- import { IClientDictionary } from './models/um/interfaces/client.dictionary.interface';
86
- import { Credentials, CredentialsSchema, CredentialsDocument } from './models/um/embedded/credentials.embedded';
87
- import { ProfInfo, ProfInfoSchema, ProfInfoDocument } from './models/um/embedded/prof-info.embedded';
88
79
  import { ICredentials } from './models/um/interfaces/credentials.interface';
89
80
  import { IProfInfo } from './models/um/interfaces/prof-info.interface';
90
81
  import { generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword } from './functions/session/keyword.function';
@@ -92,4 +83,7 @@ import { getSortObj } from './functions/sort-object.function';
92
83
  import { I18nDTO } from './models/dtos/i18n.dto';
93
84
  import { IBase } from './models/commons/interfaces/base.interface';
94
85
  import { Base } from './models/commons/schemas/base.schema';
95
- 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, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, LoggerClient, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ClientType, IClient, Client, ClientSchema, ClientDocument, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IPermission, PermissionClass, PermissionSchema, PermissionDocument, IPerson, Person, PersonSchema, PersonDocument, IRecord, Record, RecordSchema, RecordDocument, IRole, Role, RoleSchema, RoleDocument, IUserClient, UserClient, UserClientDocument, UserClientSchema, IUser, User, UserSchema, UserDocument, 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, IClientDictionary, ClientDictionary, ClientDictionaryDocument, ClientDictionarySchema, ICredentials, Credentials, CredentialsSchema, CredentialsDocument, IProfInfo, ProfInfo, ProfInfoSchema, ProfInfoDocument, generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword, getSortObj, I18nDTO, Base, IBase };
86
+ import { DictionaryEmbedded, DictionaryEmbeddedDocument, DictionaryEmbeddedSchema } from './models/dictionary/embedded/dictionary.embedded';
87
+ import { IDictionaryEmbedded } from './models/dictionary/interfaces/dictionary-embedded.interface';
88
+ import { IDictionaryEvent } from './models/dictionary/interfaces/dictionary-event.interface';
89
+ 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, 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, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Contact = exports.ContactType = exports.ClientSchema = exports.Client = 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.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.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ProfInfoSchema = exports.ProfInfo = exports.CredentialsSchema = exports.Credentials = exports.ClientDictionarySchema = exports.ClientDictionary = 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.UserSchema = exports.User = exports.UserClientSchema = exports.UserClient = exports.RoleSchema = exports.Role = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.PermissionSchema = exports.PermissionClass = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = exports.ContactSchema = void 0;
3
+ exports.GeoLocation = 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.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.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 = 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");
@@ -76,12 +76,6 @@ const env_enum_1 = require("./models/util/enums/env.enum");
76
76
  Object.defineProperty(exports, "Env", { enumerable: true, get: function () { return env_enum_1.Env; } });
77
77
  const console_logger_class_1 = require("./utils/console-logger.class");
78
78
  Object.defineProperty(exports, "ConsoleLogger", { enumerable: true, get: function () { return console_logger_class_1.ConsoleLogger; } });
79
- const client_schema_1 = require("./models/um/schemas/client.schema");
80
- Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_schema_1.Client; } });
81
- Object.defineProperty(exports, "ClientSchema", { enumerable: true, get: function () { return client_schema_1.ClientSchema; } });
82
- const user_schema_1 = require("./models/um/schemas/user.schema");
83
- Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
84
- Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
85
79
  const author_dto_1 = require("./models/dtos/author.dto");
86
80
  Object.defineProperty(exports, "AuthorDTO", { enumerable: true, get: function () { return author_dto_1.AuthorDTO; } });
87
81
  const file_log_embedded_1 = require("./models/s3/embedded/file-log.embedded");
@@ -119,15 +113,6 @@ const resource_type_enum_1 = require("./models/emis/enums/resource-type.enum");
119
113
  Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_type_enum_1.ResourceType; } });
120
114
  const contact_type_enum_1 = require("./models/util/enums/contact-type.enum");
121
115
  Object.defineProperty(exports, "ContactType", { enumerable: true, get: function () { return contact_type_enum_1.ContactType; } });
122
- const user_client_embedded_1 = require("./models/um/embedded/user-client.embedded");
123
- Object.defineProperty(exports, "UserClient", { enumerable: true, get: function () { return user_client_embedded_1.UserClient; } });
124
- Object.defineProperty(exports, "UserClientSchema", { enumerable: true, get: function () { return user_client_embedded_1.UserClientSchema; } });
125
- const permission_schema_1 = require("./models/um/schemas/permission.schema");
126
- Object.defineProperty(exports, "PermissionClass", { enumerable: true, get: function () { return permission_schema_1.Permission; } });
127
- Object.defineProperty(exports, "PermissionSchema", { enumerable: true, get: function () { return permission_schema_1.PermissionSchema; } });
128
- const role_schema_1 = require("./models/um/schemas/role.schema");
129
- Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return role_schema_1.Role; } });
130
- Object.defineProperty(exports, "RoleSchema", { enumerable: true, get: function () { return role_schema_1.RoleSchema; } });
131
116
  const address_embedded_1 = require("./models/util/embedded/address.embedded");
132
117
  Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_embedded_1.Address; } });
133
118
  Object.defineProperty(exports, "AddressSchema", { enumerable: true, get: function () { return address_embedded_1.AddressSchema; } });
@@ -149,15 +134,6 @@ Object.defineProperty(exports, "PersonSchema", { enumerable: true, get: function
149
134
  const record_embedded_1 = require("./models/util/embedded/record.embedded");
150
135
  Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return record_embedded_1.Record; } });
151
136
  Object.defineProperty(exports, "RecordSchema", { enumerable: true, get: function () { return record_embedded_1.RecordSchema; } });
152
- const client_dictionary_embedded_1 = require("./models/um/embedded/client-dictionary.embedded");
153
- Object.defineProperty(exports, "ClientDictionary", { enumerable: true, get: function () { return client_dictionary_embedded_1.ClientDictionary; } });
154
- Object.defineProperty(exports, "ClientDictionarySchema", { enumerable: true, get: function () { return client_dictionary_embedded_1.ClientDictionarySchema; } });
155
- const credentials_embedded_1 = require("./models/um/embedded/credentials.embedded");
156
- Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_embedded_1.Credentials; } });
157
- Object.defineProperty(exports, "CredentialsSchema", { enumerable: true, get: function () { return credentials_embedded_1.CredentialsSchema; } });
158
- const prof_info_embedded_1 = require("./models/um/embedded/prof-info.embedded");
159
- Object.defineProperty(exports, "ProfInfo", { enumerable: true, get: function () { return prof_info_embedded_1.ProfInfo; } });
160
- Object.defineProperty(exports, "ProfInfoSchema", { enumerable: true, get: function () { return prof_info_embedded_1.ProfInfoSchema; } });
161
137
  const keyword_function_1 = require("./functions/session/keyword.function");
162
138
  Object.defineProperty(exports, "generateSessionKeyword", { enumerable: true, get: function () { return keyword_function_1.generateSessionKeyword; } });
163
139
  Object.defineProperty(exports, "generateUserClientKeyword", { enumerable: true, get: function () { return keyword_function_1.generateUserClientKeyword; } });
@@ -168,4 +144,7 @@ const i18n_dto_1 = require("./models/dtos/i18n.dto");
168
144
  Object.defineProperty(exports, "I18nDTO", { enumerable: true, get: function () { return i18n_dto_1.I18nDTO; } });
169
145
  const base_schema_1 = require("./models/commons/schemas/base.schema");
170
146
  Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return base_schema_1.Base; } });
147
+ const dictionary_embedded_1 = require("./models/dictionary/embedded/dictionary.embedded");
148
+ Object.defineProperty(exports, "DictionaryEmbedded", { enumerable: true, get: function () { return dictionary_embedded_1.DictionaryEmbedded; } });
149
+ Object.defineProperty(exports, "DictionaryEmbeddedSchema", { enumerable: true, get: function () { return dictionary_embedded_1.DictionaryEmbeddedSchema; } });
171
150
  //# 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;AAoMpF,yGApMO,uDAAwB,OAoMP;AAnM1B,2EAAsE;AAoMpE,kGApMO,uCAAiB,OAoMP;AAnMnB,0FAA0E;AAoMxE,+FApMO,4CAAc,OAoMP;AAnMhB,wEAA0D;AAoMxD,wFApMO,4BAAO,OAoMP;AAnMT,oEAAiE;AAoM/D,iGApMO,mCAAgB,OAoMP;AAnMlB,qEAA2E;AAoMzE,2GApMO,8CAA0B,OAoMP;AAnM5B,2EAAuE;AAoMrE,qGApMO,4CAAoB,OAoMP;AAnMtB,yDAAqD;AAoMnD,0FApMO,sBAAS,OAoMP;AAnMX,qEAA+D;AAoM7D,8FApMO,gCAAa,OAoMP;AAnMf,6EAAoE;AAoMlE,4FApMO,+BAAW,OAoMP;AAnMb,6EAW8C;AAkM5C,0FA3MA,8BAAS,OA2MA;AAF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from '../interfaces/dictionary-embedded.interface';
5
+ import { RecordState } from '../../util/enums/record-state.enum';
6
+ export declare class DictionaryEmbedded implements IDictionaryEmbedded {
7
+ title: I18n;
8
+ keyword: string;
9
+ record: RecordState;
10
+ originId: ObjectId;
11
+ dictionaryId: ObjectId;
12
+ }
13
+ export declare const DictionaryEmbeddedSchema: import("mongoose").Schema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & {
14
+ _id: import("mongoose").Types.ObjectId;
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>> & import("mongoose").FlatRecord<DictionaryEmbedded> & {
16
+ _id: import("mongoose").Types.ObjectId;
17
+ }>;
18
+ export type DictionaryEmbeddedDocument = HydratedDocument<DictionaryEmbedded>;
@@ -0,0 +1,44 @@
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.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const bson_1 = require("bson");
15
+ const i18n_embedded_1 = require("../../util/embedded/i18n.embedded");
16
+ const record_state_enum_1 = require("../../util/enums/record-state.enum");
17
+ let DictionaryEmbedded = class DictionaryEmbedded {
18
+ };
19
+ exports.DictionaryEmbedded = DictionaryEmbedded;
20
+ __decorate([
21
+ (0, mongoose_1.Prop)({ type: i18n_embedded_1.I18nSchema, required: false }),
22
+ __metadata("design:type", i18n_embedded_1.I18n)
23
+ ], DictionaryEmbedded.prototype, "title", void 0);
24
+ __decorate([
25
+ (0, mongoose_1.Prop)({ type: String, required: false }),
26
+ __metadata("design:type", String)
27
+ ], DictionaryEmbedded.prototype, "keyword", void 0);
28
+ __decorate([
29
+ (0, mongoose_1.Prop)({ type: String, required: false, enum: record_state_enum_1.RecordState }),
30
+ __metadata("design:type", String)
31
+ ], DictionaryEmbedded.prototype, "record", void 0);
32
+ __decorate([
33
+ (0, mongoose_1.Prop)({ type: bson_1.ObjectId, required: false }),
34
+ __metadata("design:type", bson_1.ObjectId)
35
+ ], DictionaryEmbedded.prototype, "originId", void 0);
36
+ __decorate([
37
+ (0, mongoose_1.Prop)({ type: bson_1.ObjectId, required: false }),
38
+ __metadata("design:type", bson_1.ObjectId)
39
+ ], DictionaryEmbedded.prototype, "dictionaryId", void 0);
40
+ exports.DictionaryEmbedded = DictionaryEmbedded = __decorate([
41
+ (0, mongoose_1.Schema)({ _id: false })
42
+ ], DictionaryEmbedded);
43
+ exports.DictionaryEmbeddedSchema = mongoose_1.SchemaFactory.createForClass(DictionaryEmbedded);
44
+ //# sourceMappingURL=dictionary.embedded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/dictionary/embedded/dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,+BAAgC;AAChC,qEAAqE;AAErE,0EAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAe9B,CAAA;AAfY,gDAAkB;AAE7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,oBAAI;iDAAC;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mDACxB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAW,EAAE,CAAC;;kDACvC;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChC,eAAQ;oDAAC;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC5B,eAAQ;wDAAC;6BAdZ,kBAAkB;IAD9B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,kBAAkB,CAe9B;AAEY,QAAA,wBAAwB,GACnC,wBAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ObjectId } from 'bson';
2
+ import { II18n } from '../../util/interfaces/i18n.interface';
3
+ import { RecordState } from '../../util/enums/record-state.enum';
4
+ export interface IDictionaryEmbedded {
5
+ originId: ObjectId;
6
+ dictionaryId: ObjectId;
7
+ title: II18n;
8
+ keyword: string;
9
+ record: RecordState;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dictionary-embedded.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary-embedded.interface.js","sourceRoot":"","sources":["../../../../src/models/dictionary/interfaces/dictionary-embedded.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IDictionary } from "./dictionary.interface";
2
+ export interface IDictionaryEvent {
3
+ event: 'create' | 'update' | 'delete';
4
+ data: IDictionary;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dictionary-event.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary-event.interface.js","sourceRoot":"","sources":["../../../../src/models/dictionary/interfaces/dictionary-event.interface.ts"],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
1
  import { IProfInfo } from '../interfaces/prof-info.interface';
2
- import { ClientDictionary } from './client-dictionary.embedded';
2
+ import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
3
3
  import { HydratedDocument } from 'mongoose';
4
4
  export declare class ProfInfo implements IProfInfo {
5
- subjects: ClientDictionary[];
5
+ subjects: DictionaryEmbedded[];
6
6
  }
7
7
  export declare const ProfInfoSchema: import("mongoose").Schema<ProfInfo, import("mongoose").Model<ProfInfo, any, any, any, import("mongoose").Document<unknown, any, ProfInfo> & ProfInfo & {
8
8
  _id: import("mongoose").Types.ObjectId;
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ProfInfoSchema = exports.ProfInfo = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
- const client_dictionary_embedded_1 = require("./client-dictionary.embedded");
14
+ const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
15
15
  let ProfInfo = class ProfInfo {
16
16
  };
17
17
  exports.ProfInfo = ProfInfo;
18
18
  __decorate([
19
- (0, mongoose_1.Prop)({ type: [client_dictionary_embedded_1.ClientDictionarySchema], required: false }),
19
+ (0, mongoose_1.Prop)({ type: [dictionary_embedded_1.DictionaryEmbeddedSchema], required: false }),
20
20
  __metadata("design:type", Array)
21
21
  ], ProfInfo.prototype, "subjects", void 0);
22
22
  exports.ProfInfo = ProfInfo = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,6EAAwF;AAIjF,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAGpB,CAAA;AAHY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,mDAAsB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CAC7B;mBAFlB,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAGpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,uFAA6G;AAItG,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAGpB,CAAA;AAHY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,8CAAwB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CAC7B;mBAFpB,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAGpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { Schema as MongooseSchema, HydratedDocument } from 'mongoose';
2
2
  import { IUserClient } from '../interfaces/user-client.interface';
3
- import { ClientDictionary } from './client-dictionary.embedded';
3
+ import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
4
4
  export declare class UserClient implements IUserClient {
5
5
  clientId: MongooseSchema.Types.ObjectId;
6
6
  roleIds: MongooseSchema.Types.ObjectId[];
7
- subjects: ClientDictionary[];
7
+ subjects: DictionaryEmbedded[];
8
8
  }
9
9
  export declare const UserClientSchema: MongooseSchema<UserClient, import("mongoose").Model<UserClient, any, any, any, import("mongoose").Document<unknown, any, UserClient> & UserClient & {
10
10
  _id: import("mongoose").Types.ObjectId;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserClientSchema = exports.UserClient = void 0;
13
13
  const mongoose_1 = require("mongoose");
14
14
  const mongoose_2 = require("@nestjs/mongoose");
15
- const client_dictionary_embedded_1 = require("./client-dictionary.embedded");
15
+ const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
16
16
  let UserClient = class UserClient {
17
17
  };
18
18
  exports.UserClient = UserClient;
@@ -25,7 +25,7 @@ __decorate([
25
25
  __metadata("design:type", Array)
26
26
  ], UserClient.prototype, "roleIds", void 0);
27
27
  __decorate([
28
- (0, mongoose_2.Prop)({ type: [client_dictionary_embedded_1.ClientDictionarySchema], required: false }),
28
+ (0, mongoose_2.Prop)({ type: [dictionary_embedded_1.DictionaryEmbeddedSchema], required: false }),
29
29
  __metadata("design:type", Array)
30
30
  ], UserClient.prototype, "subjects", void 0);
31
31
  exports.UserClient = UserClient = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,6EAAwF;AAGjF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;4CAAC;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACxB;AAGzC;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,CAAC,mDAAsB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CAC3B;qBARlB,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,uFAA6G;AAGtG,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;4CAAC;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACxB;AAGzC;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,CAAC,8CAAwB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CAC3B;qBARpB,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
@@ -1,19 +1,22 @@
1
- import { ObjectId } from 'mongoose';
2
- import { ClientType } from '../enums/client-type.enum';
1
+ import { ObjectId } from 'bson';
3
2
  import { II18n } from '../../util/interfaces/i18n.interface';
4
3
  import { IRecord } from '../../../models/util/interfaces/record.interface';
5
4
  import { IAddress } from '../../../models/util/interfaces/address.interface';
6
5
  import { IContact } from '../../../models/util/interfaces/contact.interface';
7
- import { IClientDictionary } from './client.dictionary.interface';
6
+ import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
8
7
  export interface IClient {
9
8
  _id: ObjectId;
10
9
  originId: ObjectId;
11
- type: ClientType;
10
+ type: IDictionaryEmbedded;
12
11
  parentId: ObjectId;
13
12
  name: II18n;
14
13
  address: IAddress;
14
+ highland: boolean;
15
+ code: string;
15
16
  contacts: IContact[];
16
17
  record: IRecord;
17
- region: IClientDictionary;
18
- district: IClientDictionary;
18
+ region: IDictionaryEmbedded;
19
+ district: IDictionaryEmbedded;
20
+ languageSectors: IDictionaryEmbedded[];
21
+ levels: IDictionaryEmbedded[];
19
22
  }
@@ -1,4 +1,4 @@
1
- import { IClientDictionary } from './client.dictionary.interface';
1
+ import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
2
2
  export interface IProfInfo {
3
- subjects: IClientDictionary[];
3
+ subjects: IDictionaryEmbedded[];
4
4
  }
@@ -1,7 +1,7 @@
1
- import { ObjectId } from 'mongoose';
2
- import { IClientDictionary } from './client.dictionary.interface';
1
+ import { ObjectId } from 'bson';
2
+ import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
3
3
  export interface IUserClient {
4
4
  clientId: ObjectId;
5
5
  roleIds: ObjectId[];
6
- subjects: IClientDictionary[];
6
+ subjects: IDictionaryEmbedded[];
7
7
  }
@@ -1,4 +1,4 @@
1
- import { ObjectId } from 'mongoose';
1
+ import { ObjectId } from 'bson';
2
2
  import { IPerson } from '../../util/interfaces/person.interface';
3
3
  import { IContact } from '../../util/interfaces/contact.interface';
4
4
  import { IUserClient } from './user-client.interface';
@@ -5,7 +5,7 @@ import { I18n } from '../../../models/util/embedded/i18n.embedded';
5
5
  import { Contact } from '../../../models/util/embedded/contact.embedded';
6
6
  import { Address } from '../../../models/util/embedded/address.embedded';
7
7
  import { Record } from '../../../models/util/embedded/record.embedded';
8
- import { ClientDictionary } from '../embedded/client-dictionary.embedded';
8
+ import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
9
9
  export declare class Client implements IClient {
10
10
  _id: MongooseSchema.Types.ObjectId;
11
11
  originId: ObjectId;
@@ -15,8 +15,8 @@ export declare class Client implements IClient {
15
15
  address: Address;
16
16
  contacts: Contact[];
17
17
  record: Record;
18
- region: ClientDictionary;
19
- district: ClientDictionary;
18
+ region: DictionaryEmbedded;
19
+ district: DictionaryEmbedded;
20
20
  }
21
21
  export declare const ClientSchema: MongooseSchema<Client, import("mongoose").Model<Client, any, any, any, import("mongoose").Document<unknown, any, Client> & Client & Required<{
22
22
  _id: MongooseSchema.Types.ObjectId;
@@ -17,7 +17,7 @@ const i18n_embedded_1 = require("../../../models/util/embedded/i18n.embedded");
17
17
  const contact_embedded_1 = require("../../../models/util/embedded/contact.embedded");
18
18
  const address_embedded_1 = require("../../../models/util/embedded/address.embedded");
19
19
  const record_embedded_1 = require("../../../models/util/embedded/record.embedded");
20
- const client_dictionary_embedded_1 = require("../embedded/client-dictionary.embedded");
20
+ const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
21
21
  let Client = class Client {
22
22
  };
23
23
  exports.Client = Client;
@@ -63,12 +63,12 @@ __decorate([
63
63
  __metadata("design:type", record_embedded_1.Record)
64
64
  ], Client.prototype, "record", void 0);
65
65
  __decorate([
66
- (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
67
- __metadata("design:type", client_dictionary_embedded_1.ClientDictionary)
66
+ (0, mongoose_2.Prop)({ type: dictionary_embedded_1.DictionaryEmbedded, required: false }),
67
+ __metadata("design:type", dictionary_embedded_1.DictionaryEmbedded)
68
68
  ], Client.prototype, "region", void 0);
69
69
  __decorate([
70
- (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
71
- __metadata("design:type", client_dictionary_embedded_1.ClientDictionary)
70
+ (0, mongoose_2.Prop)({ type: dictionary_embedded_1.DictionaryEmbedded, required: false }),
71
+ __metadata("design:type", dictionary_embedded_1.DictionaryEmbedded)
72
72
  ], Client.prototype, "district", void 0);
73
73
  exports.Client = Client = __decorate([
74
74
  (0, mongoose_2.Schema)()
@@ -1 +1 @@
1
- {"version":3,"file":"client.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/client.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,gEAAuD;AAEvD,+CAA+D;AAC/D,+EAAmE;AACnE,qFAAyE;AACzE,qFAAyE;AACzE,mFAAuE;AACvE,uFAA0E;AAGnE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAuClB,CAAA;AAvCY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;mCAAC;AAGnC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCAC5C;AAOnB;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,iBAAc,CAAC,KAAK,CAAC,QAAQ;QACnC,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;;wCACiB;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,oBAAI;oCAAC;AAGX;IADC,IAAA,e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