@silexpert/core 1.3.154 → 1.3.155
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.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/InternalService.d.ts +4 -0
- package/dist/cjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InternalService.js +4 -0
- package/dist/cjs/types/Enum/InternalService.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +17 -6
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -6
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -6
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.js +8 -14
- package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/InternalService.d.ts +4 -0
- package/dist/mjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InternalService.js +4 -0
- package/dist/mjs/types/Enum/InternalService.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +17 -6
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -6
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -6
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.js +3 -9
- package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/InternalService.ts +4 -0
- package/ts/types/Enum/ReasonTerminationType.ts +6 -0
- package/ts/types/Enum/TaskResponseType.ts +17 -6
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +0 -6
- package/ts/utils/vat/3517/century25.ts +3 -9
- package/dist/cjs/api/resources/Contest.d.ts +0 -12
- package/dist/cjs/api/resources/Contest.d.ts.map +0 -1
- package/dist/cjs/api/resources/Contest.js +0 -43
- package/dist/cjs/api/resources/Contest.js.map +0 -1
- package/dist/cjs/types/Enum/Contest.d.ts +0 -6
- package/dist/cjs/types/Enum/Contest.d.ts.map +0 -1
- package/dist/cjs/types/Enum/Contest.js +0 -10
- package/dist/cjs/types/Enum/Contest.js.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Create.d.ts +0 -47
- package/dist/cjs/types/Interface/api/contest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Create.js +0 -201
- package/dist/cjs/types/Interface/api/contest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Query.d.ts +0 -9
- package/dist/cjs/types/Interface/api/contest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Query.js +0 -46
- package/dist/cjs/types/Interface/api/contest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Read.d.ts +0 -6
- package/dist/cjs/types/Interface/api/contest/Read.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/contest/Read.js +0 -3
- package/dist/cjs/types/Interface/api/contest/Read.js.map +0 -1
- package/dist/cjs/types/Interface/models/IContest.d.ts +0 -18
- package/dist/cjs/types/Interface/models/IContest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IContest.js +0 -3
- package/dist/cjs/types/Interface/models/IContest.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUserContest.d.ts +0 -24
- package/dist/cjs/types/Interface/models/IUserContest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUserContest.js +0 -3
- package/dist/cjs/types/Interface/models/IUserContest.js.map +0 -1
- package/dist/mjs/api/resources/Contest.d.ts +0 -12
- package/dist/mjs/api/resources/Contest.d.ts.map +0 -1
- package/dist/mjs/api/resources/Contest.js +0 -39
- package/dist/mjs/api/resources/Contest.js.map +0 -1
- package/dist/mjs/types/Enum/Contest.d.ts +0 -6
- package/dist/mjs/types/Enum/Contest.d.ts.map +0 -1
- package/dist/mjs/types/Enum/Contest.js +0 -7
- package/dist/mjs/types/Enum/Contest.js.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Create.d.ts +0 -47
- package/dist/mjs/types/Interface/api/contest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Create.js +0 -228
- package/dist/mjs/types/Interface/api/contest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Query.d.ts +0 -9
- package/dist/mjs/types/Interface/api/contest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Query.js +0 -48
- package/dist/mjs/types/Interface/api/contest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Read.d.ts +0 -6
- package/dist/mjs/types/Interface/api/contest/Read.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/contest/Read.js +0 -2
- package/dist/mjs/types/Interface/api/contest/Read.js.map +0 -1
- package/dist/mjs/types/Interface/models/IContest.d.ts +0 -18
- package/dist/mjs/types/Interface/models/IContest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IContest.js +0 -2
- package/dist/mjs/types/Interface/models/IContest.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUserContest.d.ts +0 -24
- package/dist/mjs/types/Interface/models/IUserContest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUserContest.js +0 -2
- package/dist/mjs/types/Interface/models/IUserContest.js.map +0 -1
- package/ts/api/resources/Contest.ts +0 -45
- package/ts/types/Enum/Contest.ts +0 -5
- package/ts/types/Interface/api/contest/Create.ts +0 -149
- package/ts/types/Interface/api/contest/Query.ts +0 -26
- package/ts/types/Interface/api/contest/Read.ts +0 -6
- package/ts/types/Interface/models/IContest.ts +0 -20
- package/ts/types/Interface/models/IUserContest.ts +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.155",
|
|
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",
|
package/ts/api/resources.ts
CHANGED
|
@@ -142,7 +142,6 @@ import { ExercicePrestation } from './resources/ExercicePrestation';
|
|
|
142
142
|
import { Equipment } from './resources/Equipment';
|
|
143
143
|
import { CustomerSignature } from './resources/CustomerSignature';
|
|
144
144
|
import { IntermediateManagementRebate } from './resources/IntermediateManagementRebate';
|
|
145
|
-
import { Contest } from './resources/Contest';
|
|
146
145
|
import { UserSpecialDay } from './resources/UserSpecialDay';
|
|
147
146
|
import { OldExpertInfo } from './resources/OldExpertInfos';
|
|
148
147
|
import { ReportMessage } from './resources/ReportMessage';
|
|
@@ -333,7 +332,6 @@ export const resources = {
|
|
|
333
332
|
timeTracking: TimeTracking,
|
|
334
333
|
exercicePrestation: ExercicePrestation,
|
|
335
334
|
intermediateManagementRebate: IntermediateManagementRebate,
|
|
336
|
-
contest: Contest,
|
|
337
335
|
equipment: Equipment,
|
|
338
336
|
customerSignature: CustomerSignature,
|
|
339
337
|
userSpecialDay: UserSpecialDay,
|
|
@@ -26,6 +26,7 @@ export enum ReasonTerminationType {
|
|
|
26
26
|
LAB_REFUSED = 25,
|
|
27
27
|
CHANGES_NEW_OFFERS = 26,
|
|
28
28
|
REJECTION_OF_THE_AMENDMENT = 27,
|
|
29
|
+
CLEANING = 28, //Demandée par Morgane pour supprimer des sociétés qui n'ont pas lieu d'exister
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
export const ReasonTerminationTypeDetail = [
|
|
@@ -164,4 +165,9 @@ export const ReasonTerminationTypeDetail = [
|
|
|
164
165
|
label: "Refus de l'avenant",
|
|
165
166
|
active: true,
|
|
166
167
|
},
|
|
168
|
+
{
|
|
169
|
+
id: ReasonTerminationType.CLEANING,
|
|
170
|
+
label: 'Nettoyage Clementinier',
|
|
171
|
+
active: true,
|
|
172
|
+
},
|
|
167
173
|
];
|
|
@@ -98,7 +98,7 @@ export const TaskResponseType = {
|
|
|
98
98
|
backToClient: false,
|
|
99
99
|
goToCalendar: false,
|
|
100
100
|
responseType: null,
|
|
101
|
-
description:
|
|
101
|
+
description: "Comment annoter une facture d'achat SFR ?",
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
id: 6,
|
|
@@ -146,7 +146,7 @@ export const TaskResponseType = {
|
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: 10,
|
|
149
|
-
label:
|
|
149
|
+
label: "Préparation d'un bilan",
|
|
150
150
|
role: Role.MANAGER,
|
|
151
151
|
deadline: Deadline,
|
|
152
152
|
isForWholeRole: false,
|
|
@@ -331,6 +331,17 @@ export const TaskResponseType = {
|
|
|
331
331
|
responseType: null,
|
|
332
332
|
description: 'Le client à rempli le formulaire de création de société',
|
|
333
333
|
},
|
|
334
|
+
{
|
|
335
|
+
id: 27,
|
|
336
|
+
label: 'Mise à jour INPI',
|
|
337
|
+
role: Role.FACTURATION,
|
|
338
|
+
deadline: Deadline,
|
|
339
|
+
isForWholeRole: true,
|
|
340
|
+
backToClient: false,
|
|
341
|
+
goToCalendar: false,
|
|
342
|
+
responseType: null,
|
|
343
|
+
description: "la société à été mise à jour sur l'INPI",
|
|
344
|
+
},
|
|
334
345
|
],
|
|
335
346
|
},
|
|
336
347
|
EXTERN: {
|
|
@@ -401,7 +412,7 @@ export const TaskResponseType = {
|
|
|
401
412
|
backToClient: true,
|
|
402
413
|
goToCalendar: false,
|
|
403
414
|
responseType: ResponseType.MAIL,
|
|
404
|
-
description:
|
|
415
|
+
description: "Resiliation du client car 6 mois d'impayés.",
|
|
405
416
|
},
|
|
406
417
|
{
|
|
407
418
|
id: 10,
|
|
@@ -526,7 +537,7 @@ export const TaskResponseType = {
|
|
|
526
537
|
},
|
|
527
538
|
{
|
|
528
539
|
id: 34,
|
|
529
|
-
label:
|
|
540
|
+
label: "Mettre à jour l'application",
|
|
530
541
|
role: Role.DATA_OFFICER,
|
|
531
542
|
deadline: Deadline,
|
|
532
543
|
isForWholeRole: true,
|
|
@@ -537,7 +548,7 @@ export const TaskResponseType = {
|
|
|
537
548
|
},
|
|
538
549
|
{
|
|
539
550
|
id: 35,
|
|
540
|
-
label:
|
|
551
|
+
label: "Mettre à jour l'application",
|
|
541
552
|
role: Role.DATA_OFFICER,
|
|
542
553
|
deadline: Deadline,
|
|
543
554
|
isForWholeRole: false,
|
|
@@ -570,7 +581,7 @@ export const TaskResponseType = {
|
|
|
570
581
|
},
|
|
571
582
|
{
|
|
572
583
|
id: 38,
|
|
573
|
-
label:
|
|
584
|
+
label: "Pas de réponse à l'onboarding",
|
|
574
585
|
role: Role.COMMERCIAL,
|
|
575
586
|
deadline: Deadline,
|
|
576
587
|
isForWholeRole: false,
|
|
@@ -141,6 +141,7 @@ export interface ISociety {
|
|
|
141
141
|
folderNote?: string | null;
|
|
142
142
|
oldNafCode?: string | null;
|
|
143
143
|
dateSendAdvise?: Date | null;
|
|
144
|
+
inpiDate?: Date | null;
|
|
144
145
|
idUserAdvise?: number | null;
|
|
145
146
|
idVatForInternalInvoicing?: number;
|
|
146
147
|
dateFirstSendUnpaid?: Date | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -300,8 +300,6 @@ export * from './Interface/models/IBalanceSheetHistory';
|
|
|
300
300
|
export * from './Interface/models/ICard';
|
|
301
301
|
export * from './Interface/models/ICardHistory';
|
|
302
302
|
export * from './Interface/models/IDubiousCustomer';
|
|
303
|
-
export * from './Interface/models/IUserContest';
|
|
304
|
-
export * from './Interface/models/IContest';
|
|
305
303
|
export * from './Interface/models/IEquipment';
|
|
306
304
|
export * from './Interface/models/IUserRoomEquipment';
|
|
307
305
|
export * from './Interface/models/IUserSpecialDay';
|
|
@@ -535,7 +533,6 @@ export * from './Enum/ZoneCode';
|
|
|
535
533
|
export * from './Enum/TimeSlot';
|
|
536
534
|
export * from './Enum/StateSynchro';
|
|
537
535
|
export * from './Enum/RefundReason';
|
|
538
|
-
export * from './Enum/Contest';
|
|
539
536
|
export * from './Enum/LetterResponseType';
|
|
540
537
|
export * from './Enum/StatusRating';
|
|
541
538
|
export * from './Enum/TypeSupportForNotation';
|
|
@@ -1076,9 +1073,6 @@ export * from './Interface/api/card/UpdateCard';
|
|
|
1076
1073
|
export * from './Interface/api/card/ModifyPlanning';
|
|
1077
1074
|
export * from './Interface/api/notion/NotionResponse';
|
|
1078
1075
|
export * from './Interface/api/IntermediateManagementRebate';
|
|
1079
|
-
export * from './Interface/api/contest/Create';
|
|
1080
|
-
export * from './Interface/api/contest/Query';
|
|
1081
|
-
export * from './Interface/api/contest/Read';
|
|
1082
1076
|
export * from './Interface/api/equipment/Query';
|
|
1083
1077
|
export * from './Interface/api/userRoomEquipment/Query';
|
|
1084
1078
|
export * from './Interface/api/equipment/StockAmount';
|
|
@@ -425,7 +425,7 @@ export function getCerfa3517Century25Payload(
|
|
|
425
425
|
},
|
|
426
426
|
total: 0, // Calculé plus bas
|
|
427
427
|
refund: {
|
|
428
|
-
creditRefundable:
|
|
428
|
+
creditRefundable: 0, // Calculé plus bas
|
|
429
429
|
surplus: 0, // Calculé plus bas
|
|
430
430
|
maximum: 0, // Calculé plus bas
|
|
431
431
|
asked: isNil ? 0 : _round(payload.refund?.asked ?? 0),
|
|
@@ -548,6 +548,7 @@ export function getCerfa3517Century25Payload(
|
|
|
548
548
|
data.recapitulation.toPay =
|
|
549
549
|
data.recapitulation.vatNetDue + data.recapitulation.assimiledTax + data.recapitulation.consumsion;
|
|
550
550
|
|
|
551
|
+
data.refund.creditRefundable = shouldFillRefund ? data.net.credit : 0;
|
|
551
552
|
data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
|
|
552
553
|
data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
|
|
553
554
|
data.refund.reportable =
|
|
@@ -2398,13 +2399,6 @@ export const cerfa3517Century25Fields: CerfaPayloadForm[] = [
|
|
|
2398
2399
|
},
|
|
2399
2400
|
{
|
|
2400
2401
|
sectionName: 'Demande de remboursement',
|
|
2401
|
-
childrens: [
|
|
2402
|
-
{ label: 'Remboursement demandé', key: 'refund.asked', type: 'number' },
|
|
2403
|
-
{
|
|
2404
|
-
label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice',
|
|
2405
|
-
key: 'refund.creditRefundable',
|
|
2406
|
-
type: 'number',
|
|
2407
|
-
},
|
|
2408
|
-
],
|
|
2402
|
+
childrens: [{ label: 'Remboursement demandé', key: 'refund.asked', type: 'number' }],
|
|
2409
2403
|
},
|
|
2410
2404
|
];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IUserContest, IContest, QueryFetchUserContest, CreateUserContest, CreateVoteContest } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
export declare class Contest extends Resource {
|
|
4
|
-
fetchUsers(params: QueryFetchUserContest): Promise<IUserContest[]>;
|
|
5
|
-
fetchUsersCount(): Promise<number>;
|
|
6
|
-
fetchVotesCount(): Promise<number>;
|
|
7
|
-
fethTopThree(): Promise<IUserContest[]>;
|
|
8
|
-
createUser(payload: CreateUserContest): Promise<IUserContest>;
|
|
9
|
-
checkIdentity(payload: CreateVoteContest): Promise<boolean>;
|
|
10
|
-
createVote(payload: CreateVoteContest): Promise<IContest>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Contest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Contest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Contest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,UAAU,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAIlE,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,YAAY,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAIvC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAgB7D,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3D,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG1D"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Contest = void 0;
|
|
4
|
-
const class_validator_1 = require("class-validator");
|
|
5
|
-
const Resource_1 = require("../Resource");
|
|
6
|
-
class Contest extends Resource_1.Resource {
|
|
7
|
-
fetchUsers(params) {
|
|
8
|
-
return this.axios.$get('contest/users', { params });
|
|
9
|
-
}
|
|
10
|
-
fetchUsersCount() {
|
|
11
|
-
return this.axios.$get('contest/users/count');
|
|
12
|
-
}
|
|
13
|
-
fetchVotesCount() {
|
|
14
|
-
return this.axios.$get('contest/votes/count');
|
|
15
|
-
}
|
|
16
|
-
fethTopThree() {
|
|
17
|
-
return this.axios.$get('contest/users/top');
|
|
18
|
-
}
|
|
19
|
-
createUser(payload) {
|
|
20
|
-
const formData = new FormData();
|
|
21
|
-
Object.entries(payload).forEach(([key, value]) => {
|
|
22
|
-
if ((0, class_validator_1.isDefined)(value) || key === 'writeDpae') {
|
|
23
|
-
if (['logo', 'photo'].includes(key)) {
|
|
24
|
-
formData.append(key, value);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
formData.append(key, `${value}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return this.axios.$post('contest/user', formData, {
|
|
32
|
-
headers: { 'Content-Type': 'multipart/form-data' },
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
checkIdentity(payload) {
|
|
36
|
-
return this.axios.$post('contest/vote/check', payload);
|
|
37
|
-
}
|
|
38
|
-
createVote(payload) {
|
|
39
|
-
return this.axios.$post('contest/vote', payload);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.Contest = Contest;
|
|
43
|
-
//# sourceMappingURL=Contest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Contest.js","sourceRoot":"","sources":["../../../../ts/api/resources/Contest.ts"],"names":[],"mappings":";;;AAAA,qDAA4C;AAE5C,0CAAuC;AAEvC,MAAa,OAAQ,SAAQ,mBAAQ;IACnC,UAAU,CAAC,MAA6B;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU,CAAC,OAA0B;QACnC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC/C,IAAI,IAAA,2BAAS,EAAC,KAAK,CAAC,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;gBAC5C,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;oBACpC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,KAAa,CAAC,CAAC;gBACtC,CAAC;qBAAM,CAAC;oBACN,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,QAAQ,EAAE;YAChD,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,UAAU,CAAC,OAA0B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAxCD,0BAwCC","sourcesContent":["import { isDefined } from 'class-validator';\nimport { IUserContest, IContest, QueryFetchUserContest, CreateUserContest, CreateVoteContest } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Contest extends Resource {\n fetchUsers(params: QueryFetchUserContest): Promise<IUserContest[]> {\n return this.axios.$get('contest/users', { params });\n }\n\n fetchUsersCount(): Promise<number> {\n return this.axios.$get('contest/users/count');\n }\n\n fetchVotesCount(): Promise<number> {\n return this.axios.$get('contest/votes/count');\n }\n\n fethTopThree(): Promise<IUserContest[]> {\n return this.axios.$get('contest/users/top');\n }\n\n createUser(payload: CreateUserContest): Promise<IUserContest> {\n const formData = new FormData();\n Object.entries(payload).forEach(([key, value]) => {\n if (isDefined(value) || key === 'writeDpae') {\n if (['logo', 'photo'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$post('contest/user', formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n checkIdentity(payload: CreateVoteContest): Promise<boolean> {\n return this.axios.$post('contest/vote/check', payload);\n }\n\n createVote(payload: CreateVoteContest): Promise<IContest> {\n return this.axios.$post('contest/vote', payload);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Contest.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Contest.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,YAAY,IAAI;IAChB,MAAM,IAAI;IACV,MAAM,IAAI;CACX"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContestType = void 0;
|
|
4
|
-
var ContestType;
|
|
5
|
-
(function (ContestType) {
|
|
6
|
-
ContestType[ContestType["ENTREPRENEUR"] = 1] = "ENTREPRENEUR";
|
|
7
|
-
ContestType[ContestType["BIKE_1"] = 2] = "BIKE_1";
|
|
8
|
-
ContestType[ContestType["BIKE_2"] = 3] = "BIKE_2";
|
|
9
|
-
})(ContestType || (exports.ContestType = ContestType = {}));
|
|
10
|
-
//# sourceMappingURL=Contest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Contest.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Contest.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6DAAgB,CAAA;IAChB,iDAAU,CAAA;IACV,iDAAU,CAAA;AACZ,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB","sourcesContent":["export enum ContestType {\n ENTREPRENEUR = 1,\n BIKE_1 = 2,\n BIKE_2 = 3,\n}\n"]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { TFile } from '../file/TFile';
|
|
2
|
-
export declare class CreateUserContest {
|
|
3
|
-
firstname: string;
|
|
4
|
-
lastname: string;
|
|
5
|
-
email: string;
|
|
6
|
-
phone: string;
|
|
7
|
-
societyName: string;
|
|
8
|
-
siren: string;
|
|
9
|
-
companyWebsite?: string;
|
|
10
|
-
productDescription?: string;
|
|
11
|
-
societyDescription?: string;
|
|
12
|
-
photo: TFile;
|
|
13
|
-
logo?: TFile;
|
|
14
|
-
banner?: TFile;
|
|
15
|
-
acceptNewsletter: boolean;
|
|
16
|
-
acceptPromotion: boolean;
|
|
17
|
-
isTestMode?: boolean;
|
|
18
|
-
recaptcha?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare class CreateCheckVote {
|
|
21
|
-
email: string;
|
|
22
|
-
ipAddress: string;
|
|
23
|
-
idVoter: number;
|
|
24
|
-
acceptContact: boolean;
|
|
25
|
-
recaptcha?: string;
|
|
26
|
-
isTestMode?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare class CreateVoteContest {
|
|
29
|
-
hashMail: string;
|
|
30
|
-
userHash: string;
|
|
31
|
-
}
|
|
32
|
-
export declare class CreateGeneriqueContestResult {
|
|
33
|
-
email: string;
|
|
34
|
-
ipAddress: string;
|
|
35
|
-
acceptContact: boolean;
|
|
36
|
-
idTypeContest: number;
|
|
37
|
-
result: string;
|
|
38
|
-
recaptcha?: string;
|
|
39
|
-
isTestMode?: boolean;
|
|
40
|
-
secret?: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class CreateEmail {
|
|
43
|
-
winnerId: number;
|
|
44
|
-
idTypeContest: number;
|
|
45
|
-
secret?: string;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAItC,qBAAa,iBAAiB;IAE5B,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,KAAK,EAAE,KAAK,CAAC;IAIb,IAAI,CAAC,EAAE,KAAK,CAAC;IAIb,MAAM,CAAC,EAAE,KAAK,CAAC;IAKf,gBAAgB,EAAE,OAAO,CAAC;IAK1B,eAAe,EAAE,OAAO,CAAC;IAMzB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAe;IAE1B,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAKhB,aAAa,EAAE,OAAO,CAAC;IAGvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,qBAAa,iBAAiB;IAE5B,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,4BAA4B;IAEvC,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAKlB,aAAa,EAAE,OAAO,CAAC;IAKvB,aAAa,EAAE,MAAM,CAAC;IAItB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,WAAW;IAGtB,QAAQ,EAAE,MAAM,CAAC;IAKjB,aAAa,EAAE,MAAM,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateEmail = exports.CreateGeneriqueContestResult = exports.CreateVoteContest = exports.CreateCheckVote = exports.CreateUserContest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
16
|
-
const Contest_1 = require("../../../Enum/Contest");
|
|
17
|
-
class CreateUserContest {
|
|
18
|
-
}
|
|
19
|
-
exports.CreateUserContest = CreateUserContest;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, utils_1.ApiProperty)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CreateUserContest.prototype, "firstname", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, utils_1.ApiProperty)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CreateUserContest.prototype, "lastname", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, utils_1.ApiProperty)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CreateUserContest.prototype, "email", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, utils_1.ApiProperty)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], CreateUserContest.prototype, "phone", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, utils_1.ApiProperty)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CreateUserContest.prototype, "societyName", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, utils_1.ApiProperty)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], CreateUserContest.prototype, "siren", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], CreateUserContest.prototype, "companyWebsite", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], CreateUserContest.prototype, "productDescription", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], CreateUserContest.prototype, "societyDescription", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, utils_1.ApiProperty)(),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], CreateUserContest.prototype, "photo", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
62
|
-
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], CreateUserContest.prototype, "logo", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
67
|
-
(0, class_validator_1.IsOptional)(),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], CreateUserContest.prototype, "banner", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, utils_1.ApiProperty)(),
|
|
72
|
-
(0, class_validator_1.IsBoolean)(),
|
|
73
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
74
|
-
__metadata("design:type", Boolean)
|
|
75
|
-
], CreateUserContest.prototype, "acceptNewsletter", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, utils_1.ApiProperty)(),
|
|
78
|
-
(0, class_validator_1.IsBoolean)(),
|
|
79
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], CreateUserContest.prototype, "acceptPromotion", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
84
|
-
(0, class_validator_1.IsOptional)(),
|
|
85
|
-
(0, class_validator_1.IsBoolean)(),
|
|
86
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
87
|
-
__metadata("design:type", Boolean)
|
|
88
|
-
], CreateUserContest.prototype, "isTestMode", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], CreateUserContest.prototype, "recaptcha", void 0);
|
|
93
|
-
class CreateCheckVote {
|
|
94
|
-
}
|
|
95
|
-
exports.CreateCheckVote = CreateCheckVote;
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, utils_1.ApiProperty)(),
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], CreateCheckVote.prototype, "email", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, utils_1.ApiProperty)(),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], CreateCheckVote.prototype, "ipAddress", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, utils_1.ApiProperty)(),
|
|
106
|
-
__metadata("design:type", Number)
|
|
107
|
-
], CreateCheckVote.prototype, "idVoter", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, utils_1.ApiProperty)(),
|
|
110
|
-
(0, class_validator_1.IsBoolean)(),
|
|
111
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
112
|
-
__metadata("design:type", Boolean)
|
|
113
|
-
], CreateCheckVote.prototype, "acceptContact", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], CreateCheckVote.prototype, "recaptcha", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
120
|
-
(0, class_validator_1.IsOptional)(),
|
|
121
|
-
(0, class_validator_1.IsBoolean)(),
|
|
122
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
123
|
-
__metadata("design:type", Boolean)
|
|
124
|
-
], CreateCheckVote.prototype, "isTestMode", void 0);
|
|
125
|
-
class CreateVoteContest {
|
|
126
|
-
}
|
|
127
|
-
exports.CreateVoteContest = CreateVoteContest;
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, utils_1.ApiProperty)(),
|
|
130
|
-
__metadata("design:type", String)
|
|
131
|
-
], CreateVoteContest.prototype, "hashMail", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, utils_1.ApiProperty)(),
|
|
134
|
-
__metadata("design:type", String)
|
|
135
|
-
], CreateVoteContest.prototype, "userHash", void 0);
|
|
136
|
-
class CreateGeneriqueContestResult {
|
|
137
|
-
}
|
|
138
|
-
exports.CreateGeneriqueContestResult = CreateGeneriqueContestResult;
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, utils_1.ApiProperty)(),
|
|
141
|
-
__metadata("design:type", String)
|
|
142
|
-
], CreateGeneriqueContestResult.prototype, "email", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, utils_1.ApiProperty)(),
|
|
145
|
-
__metadata("design:type", String)
|
|
146
|
-
], CreateGeneriqueContestResult.prototype, "ipAddress", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, utils_1.ApiProperty)(),
|
|
149
|
-
(0, class_validator_1.IsBoolean)(),
|
|
150
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
151
|
-
__metadata("design:type", Boolean)
|
|
152
|
-
], CreateGeneriqueContestResult.prototype, "acceptContact", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, utils_1.ApiProperty)(),
|
|
155
|
-
(0, class_validator_1.IsNumber)(),
|
|
156
|
-
(0, class_validator_1.IsIn)([Contest_1.ContestType.ENTREPRENEUR, Contest_1.ContestType.BIKE_1, Contest_1.ContestType.BIKE_2]),
|
|
157
|
-
__metadata("design:type", Number)
|
|
158
|
-
], CreateGeneriqueContestResult.prototype, "idTypeContest", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, utils_1.ApiProperty)(),
|
|
161
|
-
(0, class_validator_1.IsString)(),
|
|
162
|
-
__metadata("design:type", String)
|
|
163
|
-
], CreateGeneriqueContestResult.prototype, "result", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
166
|
-
__metadata("design:type", String)
|
|
167
|
-
], CreateGeneriqueContestResult.prototype, "recaptcha", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
170
|
-
(0, class_validator_1.IsOptional)(),
|
|
171
|
-
(0, class_validator_1.IsBoolean)(),
|
|
172
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
173
|
-
__metadata("design:type", Boolean)
|
|
174
|
-
], CreateGeneriqueContestResult.prototype, "isTestMode", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
177
|
-
(0, class_validator_1.IsOptional)(),
|
|
178
|
-
(0, class_validator_1.IsString)(),
|
|
179
|
-
__metadata("design:type", String)
|
|
180
|
-
], CreateGeneriqueContestResult.prototype, "secret", void 0);
|
|
181
|
-
class CreateEmail {
|
|
182
|
-
}
|
|
183
|
-
exports.CreateEmail = CreateEmail;
|
|
184
|
-
__decorate([
|
|
185
|
-
(0, utils_1.ApiProperty)(),
|
|
186
|
-
(0, class_validator_1.IsNumber)(),
|
|
187
|
-
__metadata("design:type", Number)
|
|
188
|
-
], CreateEmail.prototype, "winnerId", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, utils_1.ApiProperty)(),
|
|
191
|
-
(0, class_validator_1.IsNumber)(),
|
|
192
|
-
(0, class_validator_1.IsIn)([Contest_1.ContestType.ENTREPRENEUR, Contest_1.ContestType.BIKE_1, Contest_1.ContestType.BIKE_2]),
|
|
193
|
-
__metadata("design:type", Number)
|
|
194
|
-
], CreateEmail.prototype, "idTypeContest", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
197
|
-
(0, class_validator_1.IsOptional)(),
|
|
198
|
-
(0, class_validator_1.IsString)(),
|
|
199
|
-
__metadata("design:type", String)
|
|
200
|
-
], CreateEmail.prototype, "secret", void 0);
|
|
201
|
-
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Create.ts"],"names":[],"mappings":"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","sourcesContent":["import { IsOptional, IsBoolean, IsNumber, IsString, IsIn } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { ContestType } from '../../../Enum/Contest';\n\nexport class CreateUserContest {\n @ApiProperty()\n firstname: string;\n\n @ApiProperty()\n lastname: string;\n\n @ApiProperty()\n email: string;\n\n @ApiProperty()\n phone: string;\n\n @ApiProperty()\n societyName: string;\n\n @ApiProperty()\n siren: string;\n\n @ApiPropertyOptional()\n companyWebsite?: string;\n\n @ApiPropertyOptional()\n productDescription?: string;\n\n @ApiPropertyOptional()\n societyDescription?: string;\n\n @ApiProperty()\n photo: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n logo?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n banner?: TFile;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n acceptNewsletter: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n acceptPromotion: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isTestMode?: boolean;\n\n @ApiPropertyOptional()\n recaptcha?: string;\n}\n\nexport class CreateCheckVote {\n @ApiProperty()\n email: string;\n\n @ApiProperty()\n ipAddress: string;\n\n @ApiProperty()\n idVoter: number;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n acceptContact: boolean;\n\n @ApiPropertyOptional()\n recaptcha?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isTestMode?: boolean;\n}\n\nexport class CreateVoteContest {\n @ApiProperty()\n hashMail: string;\n\n @ApiProperty()\n userHash: string;\n}\n\nexport class CreateGeneriqueContestResult {\n @ApiProperty()\n email: string;\n\n @ApiProperty()\n ipAddress: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n acceptContact: boolean;\n\n @ApiProperty()\n @IsNumber()\n @IsIn([ContestType.ENTREPRENEUR, ContestType.BIKE_1, ContestType.BIKE_2])\n idTypeContest: number;\n\n @ApiProperty()\n @IsString()\n result: string;\n\n @ApiPropertyOptional()\n recaptcha?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isTestMode?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n secret?: string;\n}\n\nexport class CreateEmail {\n @ApiProperty()\n @IsNumber()\n winnerId: number;\n\n @ApiProperty()\n @IsNumber()\n @IsIn([ContestType.ENTREPRENEUR, ContestType.BIKE_1, ContestType.BIKE_2])\n idTypeContest: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n secret?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Query.ts"],"names":[],"mappings":"AAIA,qBAAa,qBAAqB;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryFetchUserContest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
16
|
-
class QueryFetchUserContest {
|
|
17
|
-
}
|
|
18
|
-
exports.QueryFetchUserContest = QueryFetchUserContest;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], QueryFetchUserContest.prototype, "search", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], QueryFetchUserContest.prototype, "page", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], QueryFetchUserContest.prototype, "limit", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], QueryFetchUserContest.prototype, "orderBy", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
37
|
-
(0, class_validator_1.IsBoolean)(),
|
|
38
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], QueryFetchUserContest.prototype, "top", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], QueryFetchUserContest.prototype, "idToPutFirst", void 0);
|
|
46
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6CAAwD;AACxD,sFAA2E;AAE3E,MAAa,qBAAqB;CAqBjC;AArBD,sDAqBC;AAnBC;IADC,IAAA,2BAAmB,GAAE;;qDACN;AAGhB;IADC,IAAA,2BAAmB,GAAE;;mDACR;AAGd;IADC,IAAA,2BAAmB,GAAE;;oDACP;AAGf;IADC,IAAA,2BAAmB,GAAE;;sDACL;AAMjB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kDACQ;AAGrB;IADC,IAAA,2BAAmB,GAAE;;2DACA","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryFetchUserContest {\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n page?: number;\n\n @ApiPropertyOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n top?: boolean | null;\n\n @ApiPropertyOptional()\n idToPutFirst?: number;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,YAAY,GAAG,IAAI,CAAC;CACvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { IUserContest } from '../../models/IUserContest';\n\nexport type ReadVoteChecking = {\n success: boolean;\n existingVoteUser: IUserContest | null;\n};\n"]}
|