@venturialstd/tenant 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/tenant-user.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEpF,qBAEa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"tenant-user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/tenant-user.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEpF,qBAEa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAKX,QAAQ,EAAE,MAAM,CAAC;IAKjB,MAAM,EAAE,MAAM,CAAC;IASf,IAAI,EAAE,gBAAgB,CAAC;IASvB,MAAM,EAAE,kBAAkB,CAAC;IAI3B,SAAS,EAAE,OAAO,CAAC;IAKnB,SAAS,EAAE,MAAM,CAAC;IAKlB,SAAS,EAAE,IAAI,CAAC;IAKhB,QAAQ,EAAE,IAAI,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQrC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -36,14 +36,12 @@ __decorate([
|
|
|
36
36
|
(0, class_validator_1.IsString)(),
|
|
37
37
|
(0, class_validator_1.IsNotEmpty)(),
|
|
38
38
|
(0, typeorm_1.Column)(),
|
|
39
|
-
(0, typeorm_1.Index)(),
|
|
40
39
|
__metadata("design:type", String)
|
|
41
40
|
], TenantUser.prototype, "tenantId", void 0);
|
|
42
41
|
__decorate([
|
|
43
42
|
(0, class_validator_1.IsString)(),
|
|
44
43
|
(0, class_validator_1.IsNotEmpty)(),
|
|
45
44
|
(0, typeorm_1.Column)(),
|
|
46
|
-
(0, typeorm_1.Index)(),
|
|
47
45
|
__metadata("design:type", String)
|
|
48
46
|
], TenantUser.prototype, "userId", void 0);
|
|
49
47
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-user.entity.js","sourceRoot":"","sources":["../../src/entities/tenant-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAC9E,qCAOiB;AAEjB,kEAAoF;AAI7E,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAS;
|
|
1
|
+
{"version":3,"file":"tenant-user.entity.js","sourceRoot":"","sources":["../../src/entities/tenant-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAC9E,qCAOiB;AAEjB,kEAAoF;AAI7E,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAS;IAKX,QAAQ,CAAS;IAKjB,MAAM,CAAS;IASf,IAAI,CAAmB;IASvB,MAAM,CAAqB;IAI3B,SAAS,CAAU;IAKnB,SAAS,CAAS;IAKlB,SAAS,CAAO;IAKhB,QAAQ,CAAO;IAKf,WAAW,CAA0B;IAQrC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAvEY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACpB;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;4CACQ;AAKjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;0CACM;AASf;IAPC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kCAAgB;QACtB,OAAO,EAAE,kCA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EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;6CAAC;qBAtEL,UAAU;IAFtB,IAAA,gBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,UAAU,CAuEtB"}
|
package/dist/tenant.module.js
CHANGED
|
@@ -19,7 +19,7 @@ let TenantModule = class TenantModule {
|
|
|
19
19
|
exports.TenantModule = TenantModule;
|
|
20
20
|
exports.TenantModule = TenantModule = __decorate([
|
|
21
21
|
(0, common_1.Module)({
|
|
22
|
-
imports: [core_1.SharedModule
|
|
22
|
+
imports: [core_1.SharedModule, typeorm_1.TypeOrmModule.forFeature([tenant_entity_1.Tenant, tenant_user_entity_1.TenantUser])],
|
|
23
23
|
providers: [tenant_service_1.TenantService, tenant_user_service_1.TenantUserService],
|
|
24
24
|
controllers: [],
|
|
25
25
|
exports: [tenant_service_1.TenantService, tenant_user_service_1.TenantUserService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.module.js","sourceRoot":"","sources":["../src/tenant.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;AAElD,4DAAkD;AAClD,sEAA2D;AAC3D,8DAA0D;AAC1D,wEAAmE;AAQ5D,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IANxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,mBAAY,
|
|
1
|
+
{"version":3,"file":"tenant.module.js","sourceRoot":"","sources":["../src/tenant.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;AAElD,4DAAkD;AAClD,sEAA2D;AAC3D,8DAA0D;AAC1D,wEAAmE;AAQ5D,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IANxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,mBAAY,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,sBAAM,EAAE,+BAAU,CAAC,CAAC,CAAC;QACvE,SAAS,EAAE,CAAC,8BAAa,EAAE,uCAAiB,CAAC;QAC7C,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,CAAC,8BAAa,EAAE,uCAAiB,CAAC;KAC5C,CAAC;GACW,YAAY,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/tenant",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Multi-tenant SaaS Platform Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -p tsconfig.json",
|
|
16
|
-
"prepublishOnly": "npm run build",
|
|
17
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
18
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
19
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
20
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
21
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
22
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@nestjs/config": "^3.0.0",
|
|
26
|
-
"@types/node": "^20.0.0",
|
|
27
|
-
"dotenv": "^17.2.3",
|
|
28
|
-
"nodemon": "^3.0.0",
|
|
29
|
-
"ts-node": "^10.9.0",
|
|
30
|
-
"tsconfig-paths": "^4.2.0",
|
|
31
|
-
"typescript": "^5.9.3"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"@nestjs/common": "^11.0.11",
|
|
35
|
-
"@nestjs/core": "^11.0.5",
|
|
36
|
-
"@nestjs/typeorm": "^10.0.0",
|
|
37
|
-
"@venturialstd/core": "^1.0.16",
|
|
38
|
-
"class-transformer": "^0.5.1",
|
|
39
|
-
"class-validator": "^0.14.1",
|
|
40
|
-
"typeorm": "^0.3.20"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/tenant",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Multi-tenant SaaS Platform Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
18
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
19
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
20
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
21
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
22
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@nestjs/config": "^3.0.0",
|
|
26
|
+
"@types/node": "^20.0.0",
|
|
27
|
+
"dotenv": "^17.2.3",
|
|
28
|
+
"nodemon": "^3.0.0",
|
|
29
|
+
"ts-node": "^10.9.0",
|
|
30
|
+
"tsconfig-paths": "^4.2.0",
|
|
31
|
+
"typescript": "^5.9.3"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@nestjs/common": "^11.0.11",
|
|
35
|
+
"@nestjs/core": "^11.0.5",
|
|
36
|
+
"@nestjs/typeorm": "^10.0.0",
|
|
37
|
+
"@venturialstd/core": "^1.0.16",
|
|
38
|
+
"class-transformer": "^0.5.1",
|
|
39
|
+
"class-validator": "^0.14.1",
|
|
40
|
+
"typeorm": "^0.3.20"
|
|
41
|
+
}
|
|
42
|
+
}
|