@silexpert/core 2.0.68-3 → 2.0.68-4
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/types/Interface/api/account/Create.d.ts +5 -1
- package/dist/types/Interface/api/account/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/account/Create.js +38 -4
- package/dist/types/Interface/api/account/Create.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Interface/api/account/Create.ts +29 -3
|
@@ -2,8 +2,12 @@ import { IAccount } from '../../../index.js';
|
|
|
2
2
|
export declare class CreateAccountSociety {
|
|
3
3
|
number: number;
|
|
4
4
|
name: string;
|
|
5
|
-
|
|
5
|
+
idNature?: number;
|
|
6
|
+
idAccountType?: number;
|
|
6
7
|
idVat?: number;
|
|
8
|
+
idParentAccount?: number;
|
|
9
|
+
isGeneric?: boolean;
|
|
10
|
+
metadata?: Record<string, any>;
|
|
7
11
|
}
|
|
8
12
|
export declare class CreateAccount {
|
|
9
13
|
account: Partial<IAccount>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBAAa,oBAAoB;IAG/B,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;IAKb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,eAAe,CAAC,EAAE,MAAM,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAC;IAKpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,qBAAa,aAAa;IAExB,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAKhB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAK1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -7,30 +7,64 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsArray, IsDateString, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
10
|
+
import { IsArray, IsDateString, IsNumber, IsOptional, IsString, IsBoolean, IsObject, IsInt } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
12
12
|
export class CreateAccountSociety {
|
|
13
13
|
number;
|
|
14
14
|
name;
|
|
15
|
-
|
|
15
|
+
idNature;
|
|
16
|
+
idAccountType;
|
|
16
17
|
idVat;
|
|
18
|
+
idParentAccount;
|
|
19
|
+
isGeneric;
|
|
20
|
+
metadata;
|
|
17
21
|
}
|
|
18
22
|
__decorate([
|
|
19
23
|
ApiProperty(),
|
|
24
|
+
IsInt(),
|
|
20
25
|
__metadata("design:type", Number)
|
|
21
26
|
], CreateAccountSociety.prototype, "number", void 0);
|
|
22
27
|
__decorate([
|
|
23
28
|
ApiProperty(),
|
|
29
|
+
IsString(),
|
|
24
30
|
__metadata("design:type", String)
|
|
25
31
|
], CreateAccountSociety.prototype, "name", void 0);
|
|
26
32
|
__decorate([
|
|
27
|
-
|
|
33
|
+
ApiPropertyOptional(),
|
|
34
|
+
IsInt(),
|
|
35
|
+
IsOptional(),
|
|
28
36
|
__metadata("design:type", Number)
|
|
29
|
-
], CreateAccountSociety.prototype, "
|
|
37
|
+
], CreateAccountSociety.prototype, "idNature", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
ApiPropertyOptional(),
|
|
40
|
+
IsInt(),
|
|
41
|
+
IsOptional(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateAccountSociety.prototype, "idAccountType", void 0);
|
|
30
44
|
__decorate([
|
|
31
45
|
ApiPropertyOptional(),
|
|
46
|
+
IsInt(),
|
|
47
|
+
IsOptional(),
|
|
32
48
|
__metadata("design:type", Number)
|
|
33
49
|
], CreateAccountSociety.prototype, "idVat", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
ApiPropertyOptional(),
|
|
52
|
+
IsInt(),
|
|
53
|
+
IsOptional(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], CreateAccountSociety.prototype, "idParentAccount", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
ApiPropertyOptional(),
|
|
58
|
+
IsBoolean(),
|
|
59
|
+
IsOptional(),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], CreateAccountSociety.prototype, "isGeneric", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
ApiPropertyOptional(),
|
|
64
|
+
IsObject(),
|
|
65
|
+
IsOptional(),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], CreateAccountSociety.prototype, "metadata", void 0);
|
|
34
68
|
export class CreateAccount {
|
|
35
69
|
account;
|
|
36
70
|
idSociety;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,E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AK1B,cAAc,CAAU;CACzB;AA/BC;IADC,WAAW,EAAE;;8CACa;AAK3B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;gDACM;AAKnB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACW;AAKxB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;2CACG;AAKhB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;8BACE,KAAK;gDAAS;AAK1B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;uDACW;AAK1B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;qDACS","sourcesContent":["import { IsArray, IsDateString, IsNumber, IsOptional, IsString, IsBoolean, IsObject, IsInt } from 'class-validator';\nimport { IAccount } from '../../../index.js';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\n\nexport class CreateAccountSociety {\n @ApiProperty()\n @IsInt()\n number: number;\n\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idNature?: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idVat?: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idParentAccount?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n isGeneric?: boolean;\n\n @ApiPropertyOptional()\n @IsObject()\n @IsOptional()\n metadata?: Record<string, any>;\n}\n\nexport class CreateAccount {\n @ApiProperty()\n account: Partial<IAccount>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string | null;\n\n @ApiPropertyOptional()\n @IsString({ each: true })\n @IsOptional()\n tags?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSectors?: Array<number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n centuryStartDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n centuryEndDate?: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,19 +1,45 @@
|
|
|
1
|
-
import { IsArray, IsDateString, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsArray, IsDateString, IsNumber, IsOptional, IsString, IsBoolean, IsObject, IsInt } from 'class-validator';
|
|
2
2
|
import { IAccount } from '../../../index.js';
|
|
3
3
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
4
4
|
|
|
5
5
|
export class CreateAccountSociety {
|
|
6
6
|
@ApiProperty()
|
|
7
|
+
@IsInt()
|
|
7
8
|
number: number;
|
|
8
9
|
|
|
9
10
|
@ApiProperty()
|
|
11
|
+
@IsString()
|
|
10
12
|
name: string;
|
|
11
13
|
|
|
12
|
-
@
|
|
13
|
-
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsInt()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
idNature?: number;
|
|
14
18
|
|
|
15
19
|
@ApiPropertyOptional()
|
|
20
|
+
@IsInt()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
idAccountType?: number;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
@IsInt()
|
|
26
|
+
@IsOptional()
|
|
16
27
|
idVat?: number;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsInt()
|
|
31
|
+
@IsOptional()
|
|
32
|
+
idParentAccount?: number;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsBoolean()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
isGeneric?: boolean;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional()
|
|
40
|
+
@IsObject()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
metadata?: Record<string, any>;
|
|
17
43
|
}
|
|
18
44
|
|
|
19
45
|
export class CreateAccount {
|