@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.
- package/dist/cjs/api/resources/WorkingSchedule.js +1 -1
- package/dist/cjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.d.ts +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.js +2 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.js.map +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.js +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.d.ts +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.js +2 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/WorkingSchedule.ts +1 -1
- package/ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts +3 -2
|
@@ -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,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AC,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}"]}
|
|
@@ -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;
|
|
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.
|
|
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;
|
|
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}"]}
|
|
@@ -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
|
|
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}"]}
|
|
@@ -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;
|
|
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
|
-
|
|
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;
|
|
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.
|
|
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",
|