store-scrapper-js-common 1.0.113 → 1.0.114
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/entities/user.d.ts
CHANGED
package/dist/entities/user.js
CHANGED
|
@@ -17,6 +17,7 @@ var USER_ROLES;
|
|
|
17
17
|
(function (USER_ROLES) {
|
|
18
18
|
USER_ROLES["ADMIN"] = "admin";
|
|
19
19
|
USER_ROLES["VIP"] = "vip";
|
|
20
|
+
USER_ROLES["RESELLER_GROUP"] = "reseller_group";
|
|
20
21
|
USER_ROLES["NORMAL"] = "normal";
|
|
21
22
|
})(USER_ROLES = exports.USER_ROLES || (exports.USER_ROLES = {}));
|
|
22
23
|
let User = class User extends abstract_base_1.AbstractBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"/","sources":["entities/user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAEiB;AACjB,qDAA6C;AAC7C,mDAA+C;AAI/C,IAAY,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"/","sources":["entities/user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAEiB;AACjB,qDAA6C;AAC7C,mDAA+C;AAI/C,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,+CAAiC,CAAA;IACjC,+BAAiB,CAAA;AACrB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAID,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,4BAAY;IAAtC;;QA0BI,YAAO,GAAG,IAAI,CAAC;IAOnB,CAAC;CAAA,CAAA;AA/BG;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;;mCACrB;AAIpB;IAFC,gBAAM,EAAE;IACR,4BAAU,EAAE;;sCACI;AAIjB;IAFC,gBAAM,EAAE;IACR,4BAAU,EAAE;;mCACC;AAGd;IADC,gBAAM,EAAE;;mCACM;AAGf;IADC,gBAAM,EAAE;;mCACM;AAIf;IAFC,gBAAM,EAAE;IACR,eAAK,EAAE;;4CACgB;AAGxB;IADC,gBAAM,EAAE;;sCACS;AAGlB;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACX;AAGf;IADC,gBAAM,EAAE;;0CACwB;AAGjC;IADC,gBAAM,EAAE;;8CACoB;AAhCpB,IAAI;IAFhB,gBAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACzB,gBAAM,CAAC,CAAC,UAAU,CAAC,CAAC;GACR,IAAI,CAiChB;AAjCY,oBAAI","sourcesContent":["import {\n Column, Entity, Index, Unique,\n} from 'typeorm';\nimport { IsNotEmpty } from 'class-validator';\nimport { AbstractBase } from './abstract-base';\nimport { Product } from './product';\nimport { AlertConditions } from './alert-conditions';\n\nexport enum USER_ROLES {\n ADMIN = 'admin',\n VIP = 'vip',\n RESELLER_GROUP = 'reseller_group',\n NORMAL = 'normal'\n}\n\n@Entity({ name: 'users' })\n@Unique(['username'])\nexport class User extends AbstractBase {\n @Column({ default: [USER_ROLES.NORMAL] })\n roles: USER_ROLES[];\n\n @Column()\n @IsNotEmpty()\n username: string;\n\n @Column()\n @IsNotEmpty()\n email: string;\n\n @Column()\n phone?: number;\n\n @Column()\n alias?: string;\n\n @Column()\n @Index()\n telegramChatId?: number;\n\n @Column()\n cloudRef?: string;\n\n @Column({ default: true })\n enabled = true;\n\n @Column()\n productAlert?: AlertConditions[];\n\n @Column()\n productWatchList?: Product[];\n}\n"]}
|
package/package.json
CHANGED