@hed-hog/contact 0.0.33 → 0.0.36
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/address-type/address-type.service.d.ts.map +1 -1
- package/dist/address-type/address-type.service.js +1 -1
- package/dist/address-type/address-type.service.js.map +1 -1
- package/dist/person/person-company/dto/create.dto.d.ts +2 -2
- package/dist/person/person-company/dto/create.dto.d.ts.map +1 -1
- package/dist/person/person-company/dto/create.dto.js +2 -2
- package/dist/person/person-company/dto/create.dto.js.map +1 -1
- package/dist/person/person-company/person-company.controller.js +1 -1
- package/dist/person/person-company/person-company.controller.js.map +1 -1
- package/dist/person/person-company/person-company.service.d.ts +1 -1
- package/dist/person/person-company/person-company.service.d.ts.map +1 -1
- package/dist/person/person-company/person-company.service.js +2 -2
- package/dist/person/person-company/person-company.service.js.map +1 -1
- package/package.json +4 -4
- package/src/address-type/address-type.service.ts +1 -1
- package/src/person/person-company/dto/create.dto.ts +5 -5
- package/src/person/person-company/person-company.controller.ts +1 -1
- package/src/person/person-company/person-company.service.ts +2 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-type.service.d.ts","sourceRoot":"","sources":["../../src/address-type/address-type.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,wBAAwB;IAMjC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAPhC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAC5C,OAAO,CAAC,QAAQ,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"address-type.service.d.ts","sourceRoot":"","sources":["../../src/address-type/address-type.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,wBAAwB;IAMjC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAPhC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAC5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqB;gBAI7B,aAAa,EAAE,aAAa,EAE5B,aAAa,EAAE,aAAa;IAGzC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;;;;;;;;;IAQpD,GAAG,CAAC,EAAE,EAAE,MAAM;IAId,MAAM,CAAC,IAAI,EAAE,SAAS;IAQtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IASpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
|
|
@@ -21,7 +21,7 @@ let PersonAddressTypeService = class PersonAddressTypeService {
|
|
|
21
21
|
this.prismaService = prismaService;
|
|
22
22
|
this.localeService = localeService;
|
|
23
23
|
this.modelName = 'address_type';
|
|
24
|
-
this.foreignKey = '
|
|
24
|
+
this.foreignKey = 'address_type_id';
|
|
25
25
|
}
|
|
26
26
|
async list(locale, paginationParams) {
|
|
27
27
|
return this.localeService.listModelWithLocale(locale, this.modelName, paginationParams);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-type.service.js","sourceRoot":"","sources":["../../src/address-type/address-type.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAAoD;AAEpD,oDAAoD;AACpD,2CAKwB;AAKjB,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAInC,YAEE,aAA6C,EAE7C,aAA6C;QAF5B,kBAAa,GAAb,aAAa,CAAe;QAE5B,kBAAa,GAAb,aAAa,CAAe;QAP9B,cAAS,GAAG,cAAc,CAAC;QAC3B,eAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"address-type.service.js","sourceRoot":"","sources":["../../src/address-type/address-type.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAAoD;AAEpD,oDAAoD;AACpD,2CAKwB;AAKjB,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAInC,YAEE,aAA6C,EAE7C,aAA6C;QAF5B,kBAAa,GAAb,aAAa,CAAe;QAE5B,kBAAa,GAAb,aAAa,CAAe;QAP9B,cAAS,GAAG,cAAc,CAAC;QAC3B,eAAU,GAAG,iBAAiB,CAAC;IAO7C,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,MAAc,EAAE,gBAA+B;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAC3C,MAAM,EACN,IAAI,CAAC,SAAS,EACd,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAe;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAC7C,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,UAAU,EACf,IAAI,CACL,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAmC;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAC7C,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,UAAU,EACf,EAAE,EACF,IAAI,CACL,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAa;QAC7B,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,4BAAmB,CAC3B,8CAA8C,CAC/C,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAChD,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAvDY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;qCADR,0BAAa;QAEb,0BAAa;GARpC,wBAAwB,CAuDpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAIpB,eAAe,
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAIpB,eAAe,EAAE,IAAI,CAAC;IAItB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -16,13 +16,13 @@ class CreateDTO {
|
|
|
16
16
|
}
|
|
17
17
|
exports.CreateDTO = CreateDTO;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, class_validator_1.
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
20
|
(0, class_validator_1.IsDate)(),
|
|
21
21
|
(0, class_transformer_1.Type)(() => Date),
|
|
22
22
|
__metadata("design:type", Date)
|
|
23
23
|
], CreateDTO.prototype, "foundation_date", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, class_validator_1.
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
26
|
(0, class_validator_1.IsString)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], CreateDTO.prototype, "legal_nature", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;kDAAC;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACU"}
|
|
@@ -23,7 +23,7 @@ let PersonCompanyController = class PersonCompanyController {
|
|
|
23
23
|
this.personCompanyService = personCompanyService;
|
|
24
24
|
}
|
|
25
25
|
create(personId, data) {
|
|
26
|
-
return this.personCompanyService.create(
|
|
26
|
+
return this.personCompanyService.create(data);
|
|
27
27
|
}
|
|
28
28
|
get(personId) {
|
|
29
29
|
return this.personCompanyService.get(personId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-company.controller.js","sourceRoot":"","sources":["../../../src/person/person-company/person-company.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,2CAUwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,qEAAgE;AAIzD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEmB,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAC1D,CAAC;IAGJ,MAAM,CAC6B,QAAgB,EACzC,IAAe;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"person-company.controller.js","sourceRoot":"","sources":["../../../src/person/person-company/person-company.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,2CAUwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,qEAAgE;AAIzD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEmB,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAC1D,CAAC;IAGJ,MAAM,CAC6B,QAAgB,EACzC,IAAe;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAGD,GAAG,CAAkC,QAAgB;QACnD,OAAO,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAGD,MAAM,CAC6B,QAAgB,EACzC,IAAe;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;CACF,CAAA;AA1BY,0DAAuB;AAOlC;IADC,IAAA,aAAI,GAAE;IAEJ,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;qDAGxB;AAGD;IADC,IAAA,YAAG,GAAE;IACD,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;;;;kDAEnC;AAGD;IADC,IAAA,cAAK,GAAE;IAEL,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;qDAGxB;kCAzBU,uBAAuB;IAFnC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,iCAAiC,CAAC;IAGzC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC,CAAC,CAAA;qCACR,6CAAoB;GAHlD,uBAAuB,CA0BnC"}
|
|
@@ -4,7 +4,7 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
4
4
|
export declare class PersonCompanyService {
|
|
5
5
|
private readonly prismaService;
|
|
6
6
|
constructor(prismaService: PrismaService);
|
|
7
|
-
create(
|
|
7
|
+
create(data: CreateDTO): Promise<{
|
|
8
8
|
id: number;
|
|
9
9
|
foundation_date: Date;
|
|
10
10
|
legal_nature: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-company.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"person-company.service.d.ts","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,IAAI,EAAE,SAAS;;;;;IAMtB,GAAG,CAAC,QAAQ,EAAE,MAAM;;;;;IAQpB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;;;;;CAQ/C"}
|
|
@@ -16,9 +16,9 @@ let PersonCompanyService = class PersonCompanyService {
|
|
|
16
16
|
constructor(prismaService) {
|
|
17
17
|
this.prismaService = prismaService;
|
|
18
18
|
}
|
|
19
|
-
async create(
|
|
19
|
+
async create(data) {
|
|
20
20
|
return this.prismaService.person_company.create({
|
|
21
|
-
data
|
|
21
|
+
data
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
async get(personId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-company.service.js","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,2CAA4C;AAKrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"person-company.service.js","sourceRoot":"","sources":["../../../src/person/person-company/person-company.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,2CAA4C;AAKrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,IAAe;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC;YAC9C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC;YAClD,KAAK,EAAE;gBACL,EAAE,EAAE,QAAQ;aACb;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,IAAe;QAC5C,OAAO,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC;YAC9C,KAAK,EAAE;gBACL,EAAE,EAAE,QAAQ;aACb;YACD,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAzBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEiC,0BAAa;GAD9C,oBAAoB,CAyBhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
12
|
"@hed-hog/api": "0.0.3",
|
|
13
13
|
"@hed-hog/api-pagination": "0.0.3",
|
|
14
|
-
"@hed-hog/api-locale": "0.0.10",
|
|
15
14
|
"@hed-hog/country": "0.0.9",
|
|
15
|
+
"@hed-hog/api-locale": "0.0.10",
|
|
16
16
|
"@hed-hog/api-mail": "0.0.7",
|
|
17
|
-
"@hed-hog/
|
|
18
|
-
"@hed-hog/
|
|
17
|
+
"@hed-hog/admin": "0.0.129",
|
|
18
|
+
"@hed-hog/api-prisma": "0.0.4"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -14,7 +14,7 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
14
14
|
@Injectable()
|
|
15
15
|
export class PersonAddressTypeService {
|
|
16
16
|
private readonly modelName = 'address_type';
|
|
17
|
-
private readonly foreignKey = '
|
|
17
|
+
private readonly foreignKey = 'address_type_id';
|
|
18
18
|
|
|
19
19
|
constructor(
|
|
20
20
|
@Inject(forwardRef(() => PrismaService))
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Type } from 'class-transformer';
|
|
2
|
-
import { IsDate,
|
|
2
|
+
import { IsDate, IsNotEmpty, IsString } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
export class CreateDTO {
|
|
5
|
-
@
|
|
5
|
+
@IsNotEmpty()
|
|
6
6
|
@IsDate()
|
|
7
7
|
@Type(() => Date)
|
|
8
|
-
foundation_date
|
|
8
|
+
foundation_date: Date;
|
|
9
9
|
|
|
10
|
-
@
|
|
10
|
+
@IsNotEmpty()
|
|
11
11
|
@IsString()
|
|
12
|
-
legal_nature
|
|
12
|
+
legal_nature: string;
|
|
13
13
|
}
|
|
@@ -7,12 +7,9 @@ import { UpdateDTO } from './dto/update.dto';
|
|
|
7
7
|
export class PersonCompanyService {
|
|
8
8
|
constructor(private readonly prismaService: PrismaService) {}
|
|
9
9
|
|
|
10
|
-
async create(
|
|
10
|
+
async create(data: CreateDTO) {
|
|
11
11
|
return this.prismaService.person_company.create({
|
|
12
|
-
data
|
|
13
|
-
id: personId,
|
|
14
|
-
...data
|
|
15
|
-
}
|
|
12
|
+
data
|
|
16
13
|
});
|
|
17
14
|
}
|
|
18
15
|
|