@silexpert/core 1.1.245 → 1.1.246

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.
@@ -22,7 +22,7 @@ class WorkingSchedule extends Resource_1.Resource {
22
22
  }
23
23
  getAvailableTimeSlots(params) {
24
24
  return this.axios.$get('workingSchedule/available-time-slots', {
25
- params: { params },
25
+ params,
26
26
  });
27
27
  }
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WorkingSchedule.js","sourceRoot":"","sources":["../../../../ts/api/resources/WorkingSchedule.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C,8BAA8B,CAAC,MAAc,EAAE,SAAe,EAAE,OAAa;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iDAAiD,EAAE;YACxE,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,SAAkB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClD,MAAM,EAAE,EAAE,SAAS,EAAE;YACrB,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB,CAAC,MAA8B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM,EAAE,EAAE,MAAM,EAAE;SACnB,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,0CA0BC","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAvailableTimeSlot, ReadWorkingSchedule, SpecialHours, TimeSlots } from '../..';\n\nexport class WorkingSchedule extends Resource {\n getSpecialHoursForCollaborator(idUser: number, startDate: Date, endDate: Date): Promise<SpecialHours> {\n return this.axios.$get('/workingSchedule/special-hours-for-collaborator', {\n params: { idUser, startDate, endDate },\n });\n }\n\n getPdf(id: number, modifDate?: string): Promise<Buffer> {\n return this.axios.$get(`workingSchedule/${id}/pdf`, {\n params: { modifDate },\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n get(id: number): Promise<ReadWorkingSchedule> {\n return this.axios.$get(`workingSchedule/${id}`);\n }\n\n getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {\n return this.axios.$get('workingSchedule/available-time-slots', {\n params: { params },\n });\n }\n}"]}
1
+ {"version":3,"file":"WorkingSchedule.js","sourceRoot":"","sources":["../../../../ts/api/resources/WorkingSchedule.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C,8BAA8B,CAAC,MAAc,EAAE,SAAe,EAAE,OAAa;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iDAAiD,EAAE;YACxE,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,SAAkB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClD,MAAM,EAAE,EAAE,SAAS,EAAE;YACrB,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB,CAAC,MAA8B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,0CA0BC","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAvailableTimeSlot, ReadWorkingSchedule, SpecialHours, TimeSlots } from '../..';\n\nexport class WorkingSchedule extends Resource {\n getSpecialHoursForCollaborator(idUser: number, startDate: Date, endDate: Date): Promise<SpecialHours> {\n return this.axios.$get('/workingSchedule/special-hours-for-collaborator', {\n params: { idUser, startDate, endDate },\n });\n }\n\n getPdf(id: number, modifDate?: string): Promise<Buffer> {\n return this.axios.$get(`workingSchedule/${id}/pdf`, {\n params: { modifDate },\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n get(id: number): Promise<ReadWorkingSchedule> {\n return this.axios.$get(`workingSchedule/${id}`);\n }\n\n getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {\n return this.axios.$get('workingSchedule/available-time-slots', {\n params,\n });\n }\n}"]}
@@ -2,7 +2,7 @@ export declare class QueryAvailableTimeSlot {
2
2
  idUser: number;
3
3
  startDate: Date;
4
4
  endDate: Date;
5
- duration: number;
5
+ duration?: number;
6
6
  idType?: number;
7
7
  }
8
8
  //# sourceMappingURL=QueryAvailableTimeSlot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAvailableTimeSlot.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":"AAOA,qBAAa,sBAAsB;IAG/B,MAAM,EAAE,MAAM,CAAE;IAIhB,SAAS,EAAE,IAAI,CAAE;IAIjB,OAAO,EAAE,IAAI,CAAE;IAIf,QAAQ,EAAE,MAAM,CAAE;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"QueryAvailableTimeSlot.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":"AAOA,qBAAa,sBAAsB;IAG/B,MAAM,EAAE,MAAM,CAAE;IAIhB,SAAS,EAAE,IAAI,CAAE;IAIjB,OAAO,EAAE,IAAI,CAAE;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAE;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -30,7 +30,8 @@ __decorate([
30
30
  __metadata("design:type", Date)
31
31
  ], QueryAvailableTimeSlot.prototype, "endDate", void 0);
32
32
  __decorate([
33
- (0, utils_1.ApiProperty)(),
33
+ (0, utils_1.ApiPropertyOptional)(),
34
+ (0, class_validator_1.IsOptional)(),
34
35
  (0, class_validator_1.IsNumber)(),
35
36
  __metadata("design:type", Number)
36
37
  ], QueryAvailableTimeSlot.prototype, "duration", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAvailableTimeSlot.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAIyB;AACzB,6CAAqE;AAErE,MAAa,sBAAsB;CAqBlC;AApBC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;sDACO;AAElB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACI,IAAI;yDAAE;AAEnB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACE,IAAI;uDAAE;AAEjB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wDACS;AAEpB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACO;AApBpB,wDAqBC","sourcesContent":["import {\n IsDate,\n IsNumber,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryAvailableTimeSlot {\n @ApiProperty()\n @IsNumber()\n idUser: number ;\n\n @ApiProperty()\n @IsDate()\n startDate: Date ;\n\n @ApiProperty()\n @IsDate()\n endDate: Date ;\n\n @ApiProperty()\n @IsNumber()\n duration: number ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idType?: number;\n}"]}
1
+ {"version":3,"file":"QueryAvailableTimeSlot.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAIyB;AACzB,6CAAqE;AAErE,MAAa,sBAAsB;CAsBlC;AArBC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;sDACO;AAElB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACI,IAAI;yDAAE;AAEnB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACE,IAAI;uDAAE;AAEjB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACU;AAErB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACO;AArBpB,wDAsBC","sourcesContent":["import {\n IsDate,\n IsNumber,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryAvailableTimeSlot {\n @ApiProperty()\n @IsNumber()\n idUser: number ;\n\n @ApiProperty()\n @IsDate()\n startDate: Date ;\n\n @ApiProperty()\n @IsDate()\n endDate: Date ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n duration?: number ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idType?: number;\n}"]}
@@ -19,7 +19,7 @@ export class WorkingSchedule extends Resource {
19
19
  }
20
20
  getAvailableTimeSlots(params) {
21
21
  return this.axios.$get('workingSchedule/available-time-slots', {
22
- params: { params },
22
+ params,
23
23
  });
24
24
  }
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WorkingSchedule.js","sourceRoot":"","sources":["../../../../ts/api/resources/WorkingSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,8BAA8B,CAAC,MAAc,EAAE,SAAe,EAAE,OAAa;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iDAAiD,EAAE;YACxE,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,SAAkB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClD,MAAM,EAAE,EAAE,SAAS,EAAE;YACrB,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB,CAAC,MAA8B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM,EAAE,EAAE,MAAM,EAAE;SACnB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAvailableTimeSlot, ReadWorkingSchedule, SpecialHours, TimeSlots } from '../..';\n\nexport class WorkingSchedule extends Resource {\n getSpecialHoursForCollaborator(idUser: number, startDate: Date, endDate: Date): Promise<SpecialHours> {\n return this.axios.$get('/workingSchedule/special-hours-for-collaborator', {\n params: { idUser, startDate, endDate },\n });\n }\n\n getPdf(id: number, modifDate?: string): Promise<Buffer> {\n return this.axios.$get(`workingSchedule/${id}/pdf`, {\n params: { modifDate },\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n get(id: number): Promise<ReadWorkingSchedule> {\n return this.axios.$get(`workingSchedule/${id}`);\n }\n\n getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {\n return this.axios.$get('workingSchedule/available-time-slots', {\n params: { params },\n });\n }\n}"]}
1
+ {"version":3,"file":"WorkingSchedule.js","sourceRoot":"","sources":["../../../../ts/api/resources/WorkingSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,8BAA8B,CAAC,MAAc,EAAE,SAAe,EAAE,OAAa;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iDAAiD,EAAE;YACxE,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,SAAkB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClD,MAAM,EAAE,EAAE,SAAS,EAAE;YACrB,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB,CAAC,MAA8B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAvailableTimeSlot, ReadWorkingSchedule, SpecialHours, TimeSlots } from '../..';\n\nexport class WorkingSchedule extends Resource {\n getSpecialHoursForCollaborator(idUser: number, startDate: Date, endDate: Date): Promise<SpecialHours> {\n return this.axios.$get('/workingSchedule/special-hours-for-collaborator', {\n params: { idUser, startDate, endDate },\n });\n }\n\n getPdf(id: number, modifDate?: string): Promise<Buffer> {\n return this.axios.$get(`workingSchedule/${id}/pdf`, {\n params: { modifDate },\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n get(id: number): Promise<ReadWorkingSchedule> {\n return this.axios.$get(`workingSchedule/${id}`);\n }\n\n getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {\n return this.axios.$get('workingSchedule/available-time-slots', {\n params,\n });\n }\n}"]}
@@ -2,7 +2,7 @@ export declare class QueryAvailableTimeSlot {
2
2
  idUser: number;
3
3
  startDate: Date;
4
4
  endDate: Date;
5
- duration: number;
5
+ duration?: number;
6
6
  idType?: number;
7
7
  }
8
8
  //# sourceMappingURL=QueryAvailableTimeSlot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAvailableTimeSlot.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":"AAOA,qBAAa,sBAAsB;IAG/B,MAAM,EAAE,MAAM,CAAE;IAIhB,SAAS,EAAE,IAAI,CAAE;IAIjB,OAAO,EAAE,IAAI,CAAE;IAIf,QAAQ,EAAE,MAAM,CAAE;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"QueryAvailableTimeSlot.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":"AAOA,qBAAa,sBAAsB;IAG/B,MAAM,EAAE,MAAM,CAAE;IAIhB,SAAS,EAAE,IAAI,CAAE;IAIjB,OAAO,EAAE,IAAI,CAAE;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAE;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -32,7 +32,8 @@ __decorate([
32
32
  __metadata("design:type", Date)
33
33
  ], QueryAvailableTimeSlot.prototype, "endDate", void 0);
34
34
  __decorate([
35
- ApiProperty(),
35
+ ApiPropertyOptional(),
36
+ IsOptional(),
36
37
  IsNumber(),
37
38
  __metadata("design:type", Number)
38
39
  ], QueryAvailableTimeSlot.prototype, "duration", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAvailableTimeSlot.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EACR,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAG/B,MAAM,CAAU;IAIhB,SAAS,CAAQ;IAIjB,OAAO,CAAQ;IAIf,QAAQ,CAAU;IAKlB,MAAM,CAAU;CACnB;AApBC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACO;AAElB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACI,IAAI;yDAAE;AAEnB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;uDAAE;AAEjB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;wDACS;AAEpB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACO","sourcesContent":["import {\n IsDate,\n IsNumber,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryAvailableTimeSlot {\n @ApiProperty()\n @IsNumber()\n idUser: number ;\n\n @ApiProperty()\n @IsDate()\n startDate: Date ;\n\n @ApiProperty()\n @IsDate()\n endDate: Date ;\n\n @ApiProperty()\n @IsNumber()\n duration: number ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idType?: number;\n}"]}
1
+ {"version":3,"file":"QueryAvailableTimeSlot.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EACR,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAG/B,MAAM,CAAU;IAIhB,SAAS,CAAQ;IAIjB,OAAO,CAAQ;IAKf,QAAQ,CAAW;IAKnB,MAAM,CAAU;CACnB;AArBC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACO;AAElB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACI,IAAI;yDAAE;AAEnB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;uDAAE;AAEjB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACU;AAErB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACO","sourcesContent":["import {\n IsDate,\n IsNumber,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryAvailableTimeSlot {\n @ApiProperty()\n @IsNumber()\n idUser: number ;\n\n @ApiProperty()\n @IsDate()\n startDate: Date ;\n\n @ApiProperty()\n @IsDate()\n endDate: Date ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n duration?: number ;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idType?: number;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.245",
3
+ "version": "1.1.246",
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": "dist/cjs/index.js",
@@ -24,7 +24,7 @@ export class WorkingSchedule extends Resource {
24
24
 
25
25
  getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {
26
26
  return this.axios.$get('workingSchedule/available-time-slots', {
27
- params: { params },
27
+ params,
28
28
  });
29
29
  }
30
30
  }
@@ -18,9 +18,10 @@ export class QueryAvailableTimeSlot {
18
18
  @IsDate()
19
19
  endDate: Date ;
20
20
 
21
- @ApiProperty()
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
22
23
  @IsNumber()
23
- duration: number ;
24
+ duration?: number ;
24
25
 
25
26
  @ApiPropertyOptional()
26
27
  @IsOptional()