@silexpert/core 1.0.121 → 1.0.123
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/es/types/Enum/BrandClementine.d.ts +2 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +1 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/PrestationType.js +1 -1
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts +2 -0
- package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts.map +1 -1
- package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +16 -2
- package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -1
- package/es/types/Interface/api/user/CreateUser.d.ts +1 -0
- package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -1
- package/es/types/Interface/api/user/CreateUser.js +4 -0
- package/es/types/Interface/api/user/CreateUser.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +2 -1
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/PrestationType.js +1 -1
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +4 -0
- package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -1
- package/js/types/Interface/api/user/CreateUser.js +2 -0
- package/js/types/Interface/api/user/CreateUser.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/PrestationType.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts +16 -2
- package/ts/types/Interface/api/user/CreateUser.ts +3 -0
|
@@ -26,4 +26,8 @@ class GetLastInvalidateEvent {}
|
|
|
26
26
|
exports.GetLastInvalidateEvent = GetLastInvalidateEvent;
|
|
27
27
|
|
|
28
28
|
__decorate([(0, _decorators.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], GetLastInvalidateEvent.prototype, "idUser", void 0);
|
|
29
|
+
|
|
30
|
+
__decorate([(0, _decorators.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsDateString)(), __metadata("design:type", String)], GetLastInvalidateEvent.prototype, "dateStart", void 0);
|
|
31
|
+
|
|
32
|
+
__decorate([(0, _decorators.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsDateString)(), __metadata("design:type", String)], GetLastInvalidateEvent.prototype, "dateEnd", void 0);
|
|
29
33
|
//# sourceMappingURL=getLastInvalidateEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLastInvalidateEvent.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"getLastInvalidateEvent.js","mappings":";;;;;;;AAAA;;AAGA;;;;;;;;;;;;;;AAEM,MAAOA,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXC,YAFC,8BAED,EADC,4BACD;;AAMAA,YAJC,sCAID,EAHC,iCAGD,EAFC,+BAED,EADC,mCACD;;AAMAA,YAJC,sCAID,EAHC,iCAGD,EAFC,+BAED,EADC,mCACD","names":["GetLastInvalidateEvent","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts"],"sourcesContent":["import {\n IsDateString, IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\n\nexport class GetLastInvalidateEvent {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n @IsDateString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n @IsDateString()\n dateEnd?: string;\n}"]}
|
|
@@ -41,6 +41,8 @@ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Boolean)], Crea
|
|
|
41
41
|
|
|
42
42
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Boolean)], CreateUser.prototype, "acceptNewsletter", void 0);
|
|
43
43
|
|
|
44
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], CreateUser.prototype, "prefix", void 0);
|
|
45
|
+
|
|
44
46
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _classValidator.IsOptional)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], CreateUser.prototype, "disableTracking", void 0);
|
|
45
47
|
|
|
46
48
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], CreateUser.prototype, "affiliateTrackingId", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateUser.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,UAAP,CAAiB;;QAAVA,U,GAAAA,U;;AAEXC,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,iCAED,EADC,yBACD;;AAGAA,YADC,iCACD","names":["CreateUser","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/CreateUser.ts"],"sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateUser {\n @ApiProperty()\n email: string;\n @ApiProperty()\n phone: string;\n @ApiProperty()\n password: string;\n @ApiProperty()\n firstname: string;\n @ApiProperty()\n lastname: string;\n @ApiProperty()\n acceptCgv?: boolean; // not sure if needed (maybe more a front notion)\n @ApiPropertyOptional()\n acceptNewsletter?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n @ToBoolean()\n disableTracking?: boolean;\n\n @ApiPropertyOptional()\n affiliateTrackingId?: number;\n}"]}
|
|
1
|
+
{"version":3,"file":"CreateUser.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,UAAP,CAAiB;;QAAVA,U,GAAAA,U;;AAEXC,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,yBACD;;AAEAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,iCAED,EADC,yBACD;;AAGAA,YADC,iCACD","names":["CreateUser","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/CreateUser.ts"],"sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateUser {\n @ApiProperty()\n email: string;\n @ApiProperty()\n phone: string;\n @ApiProperty()\n password: string;\n @ApiProperty()\n firstname: string;\n @ApiProperty()\n lastname: string;\n @ApiProperty()\n acceptCgv?: boolean; // not sure if needed (maybe more a front notion)\n @ApiPropertyOptional()\n acceptNewsletter?: boolean;\n\n @ApiPropertyOptional()\n prefix?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n @ToBoolean()\n disableTracking?: boolean;\n\n @ApiPropertyOptional()\n affiliateTrackingId?: number;\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.123",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
IsDateString, IsInt, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
5
|
|
|
4
6
|
export class GetLastInvalidateEvent {
|
|
5
7
|
@ApiProperty()
|
|
6
8
|
@IsInt()
|
|
7
9
|
idUser: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsDateString()
|
|
15
|
+
dateStart?: string;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
20
|
+
@IsDateString()
|
|
21
|
+
dateEnd?: string;
|
|
8
22
|
}
|