@silexpert/core 1.3.158-10 → 1.3.158-11

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.
@@ -20,7 +20,15 @@ export declare enum ReportTypeEnum {
20
20
  ACCOUNTANT_CHANGE = 18,
21
21
  VOLONTARY_UNPAID = 19,
22
22
  LACK_OF_COMMUNICATION = 20,
23
- LACK_OF_ADVICE = 21
23
+ LACK_OF_ADVICE = 21,
24
+ LAWYER = 22,
25
+ JURIDICAL_PROTECTION = 23,
26
+ TAXES = 24,
27
+ VAT = 25,
28
+ VAT_DELAYS = 26,
29
+ BALANCE_SHEET = 27,
30
+ THREAT = 28,
31
+ LOGICIEL = 29
24
32
  }
25
33
  interface ReportTypeInterface {
26
34
  id: ReportTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,aAAa,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,cAAc,IAAI;IAClB,YAAY,KAAK;IACjB,oBAAoB,KAAK;IACzB,wBAAwB,KAAK;IAC7B,iBAAiB,KAAK;IACtB,WAAW,KAAK;IAChB,kBAAkB,KAAK;IACvB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,iBAAiB,KAAK;IACtB,gBAAgB,KAAK;IACrB,qBAAqB,KAAK;IAC1B,cAAc,KAAK;CACpB;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAq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,CAAC"}
@@ -25,11 +25,19 @@ var ReportTypeEnum;
25
25
  ReportTypeEnum[ReportTypeEnum["VOLONTARY_UNPAID"] = 19] = "VOLONTARY_UNPAID";
26
26
  ReportTypeEnum[ReportTypeEnum["LACK_OF_COMMUNICATION"] = 20] = "LACK_OF_COMMUNICATION";
27
27
  ReportTypeEnum[ReportTypeEnum["LACK_OF_ADVICE"] = 21] = "LACK_OF_ADVICE";
28
+ ReportTypeEnum[ReportTypeEnum["LAWYER"] = 22] = "LAWYER";
29
+ ReportTypeEnum[ReportTypeEnum["JURIDICAL_PROTECTION"] = 23] = "JURIDICAL_PROTECTION";
30
+ ReportTypeEnum[ReportTypeEnum["TAXES"] = 24] = "TAXES";
31
+ ReportTypeEnum[ReportTypeEnum["VAT"] = 25] = "VAT";
32
+ ReportTypeEnum[ReportTypeEnum["VAT_DELAYS"] = 26] = "VAT_DELAYS";
33
+ ReportTypeEnum[ReportTypeEnum["BALANCE_SHEET"] = 27] = "BALANCE_SHEET";
34
+ ReportTypeEnum[ReportTypeEnum["THREAT"] = 28] = "THREAT";
35
+ ReportTypeEnum[ReportTypeEnum["LOGICIEL"] = 29] = "LOGICIEL";
28
36
  })(ReportTypeEnum || (exports.ReportTypeEnum = ReportTypeEnum = {}));
29
37
  exports.ReportType = {
30
38
  LETTER: {
31
39
  id: ReportTypeEnum.LETTER,
32
- name: 'Lettre à l\'ordre',
40
+ name: "Lettre à l'ordre",
33
41
  },
34
42
  FRAUD: {
35
43
  id: ReportTypeEnum.FRAUD,
@@ -111,6 +119,38 @@ exports.ReportType = {
111
119
  id: ReportTypeEnum.LACK_OF_ADVICE,
112
120
  name: 'Manque de conseil',
113
121
  },
122
+ LAWYER: {
123
+ id: ReportTypeEnum.LAWYER,
124
+ name: 'Avocat',
125
+ },
126
+ JURIDICAL_PROTECTION: {
127
+ id: ReportTypeEnum.JURIDICAL_PROTECTION,
128
+ name: 'Protection juridique',
129
+ },
130
+ TAXES: {
131
+ id: ReportTypeEnum.TAXES,
132
+ name: 'Impôts',
133
+ },
134
+ VAT: {
135
+ id: ReportTypeEnum.VAT,
136
+ name: 'TVA',
137
+ },
138
+ VAT_DELAYS: {
139
+ id: ReportTypeEnum.VAT_DELAYS,
140
+ name: 'Retard de TVA',
141
+ },
142
+ BALANCE_SHEET: {
143
+ id: ReportTypeEnum.BALANCE_SHEET,
144
+ name: 'Bilan',
145
+ },
146
+ THREAT: {
147
+ id: ReportTypeEnum.THREAT,
148
+ name: 'Menace de poursuite (Ordre, Avocats, etc...)',
149
+ },
150
+ LOGICIEL: {
151
+ id: ReportTypeEnum.LOGICIEL,
152
+ name: 'Logiciel',
153
+ },
114
154
  };
115
155
  const ReportTypeValues = Object.values(exports.ReportType);
116
156
  exports.reportExternalCategory = [
@@ -1 +1 @@
1
- {"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":";;;AAAA,2CAAmE;AAEnE,IAAY,cAsBX;AAtBD,WAAY,cAAc;IACxB,uDAAU,CAAA;IACV,qDAAS,CAAA;IACT,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,uEAAkB,CAAA;IAClB,oEAAiB,CAAA;IACjB,oFAAyB,CAAA;IACzB,4FAA6B,CAAA;IAC7B,8EAAsB,CAAA;IACtB,kEAAgB,CAAA;IAChB,gFAAuB,CAAA;IACvB,kEAAgB,CAAA;IAChB,gEAAe,CAAA;IACf,8EAAsB,CAAA;IACtB,4EAAqB,CAAA;IACrB,sFAA0B,CAAA;IAC1B,wEAAmB,CAAA;AACrB,CAAC,EAtBW,cAAc,8BAAd,cAAc,QAsBzB;AAOY,QAAA,UAAU,GAA2C;IAChE,MAAM,EAAE;QACN,EAAE,EAAE,cAAc,CAAC,MAAM;QACzB,IAAI,EAAE,mBAAmB;KAC1B;IACD,KAAK,EAAE;QACL,EAAE,EAAE,c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EAAE,CAAC,CAAC;KACtG;IACD;QACE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,CAAC,cAAc,CAAC,qBAAqB,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAC1F;KACF;CACO,CAAC","sourcesContent":["import { IssueType, IssueTypeEnum, issueTypes } from './IssueType';\n\nexport enum ReportTypeEnum {\n LETTER = 1,\n FRAUD = 2,\n ATTITUDE = 3,\n BLOCKED = 4,\n NO_RESPONSE = 5,\n NEGATIVE_OPINION = 6,\n LATE_ANSWER = 7,\n UNHAPPY_CUSTOMER = 8,\n FISCAL_CONTROL = 9,\n REDRESSEMENT = 10,\n BALANCE_SHEET_DELAYS = 11,\n OTHER_DECLARATION_DELAYS = 12,\n CUSTOMER_PLATFORM = 13,\n REVALUATION = 14,\n INVOICING_AND_FEES = 15,\n APPOINTMENT = 16,\n CLAIM_MAIL = 17,\n ACCOUNTANT_CHANGE = 18,\n VOLONTARY_UNPAID = 19,\n LACK_OF_COMMUNICATION = 20,\n LACK_OF_ADVICE = 21,\n}\n\ninterface ReportTypeInterface {\n id: ReportTypeEnum;\n name: string;\n}\n\nexport const ReportType: { [key: string]: ReportTypeInterface } = {\n LETTER: {\n id: ReportTypeEnum.LETTER,\n name: 'Lettre à l\\'ordre',\n },\n FRAUD: {\n id: ReportTypeEnum.FRAUD,\n name: 'Suspicion de fraude',\n },\n ATTITUDE: {\n id: ReportTypeEnum.ATTITUDE,\n name: 'Attitude déplacée',\n },\n BLOCKED: {\n id: ReportTypeEnum.BLOCKED,\n name: 'Dossier bloqué',\n },\n NO_RESPONSE: {\n id: ReportTypeEnum.NO_RESPONSE,\n name: 'Pas de réponse',\n },\n NEGATIVE_OPINION: {\n id: ReportTypeEnum.NEGATIVE_OPINION,\n name: 'Avis négatif',\n },\n LATE_ANSWER: {\n id: ReportTypeEnum.LATE_ANSWER,\n name: 'Réponse de + de 3 mois',\n },\n UNHAPPY_CUSTOMER: {\n id: ReportTypeEnum.UNHAPPY_CUSTOMER,\n name: 'Client mécontent',\n },\n FISCAL_CONTROL: {\n id: ReportTypeEnum.FISCAL_CONTROL,\n name: 'Contrôle fiscal en cours',\n },\n REDRESSEMENT: {\n id: ReportTypeEnum.REDRESSEMENT,\n name: 'Redressement',\n },\n BALANCE_SHEET_DELAYS: {\n id: ReportTypeEnum.BALANCE_SHEET_DELAYS,\n name: 'Retard de production bilan',\n },\n OTHER_DECLARATION_DELAYS: {\n id: ReportTypeEnum.OTHER_DECLARATION_DELAYS,\n name: 'Retard de production autre déclaration',\n },\n CUSTOMER_PLATFORM: {\n id: ReportTypeEnum.CUSTOMER_PLATFORM,\n name: 'Plateforme client',\n },\n REVALUATION: {\n id: ReportTypeEnum.REVALUATION,\n name: 'Revalorisation',\n },\n INVOICING_AND_FEES: {\n id: ReportTypeEnum.INVOICING_AND_FEES,\n name: 'Facturation et honoraires',\n },\n APPOINTMENT: {\n id: ReportTypeEnum.APPOINTMENT,\n name: 'Rendez-vous non honorés',\n },\n CLAIM_MAIL: {\n id: ReportTypeEnum.CLAIM_MAIL,\n name: 'Réclamation courrier reçu',\n },\n ACCOUNTANT_CHANGE: {\n id: ReportTypeEnum.ACCOUNTANT_CHANGE,\n name: 'Demande de changement de comptable',\n },\n VOLONTARY_UNPAID: {\n id: ReportTypeEnum.VOLONTARY_UNPAID,\n name: 'Impayé volontaire',\n },\n LACK_OF_COMMUNICATION: {\n id: ReportTypeEnum.LACK_OF_COMMUNICATION,\n name: 'Manque de communication',\n },\n LACK_OF_ADVICE: {\n id: ReportTypeEnum.LACK_OF_ADVICE,\n name: 'Manque de conseil',\n },\n} as const;\n\nexport interface ReportExternalCategoryInterface {\n label: string;\n options: ReportTypeInterface[] | IssueType[];\n}\n\nconst ReportTypeValues = Object.values(ReportType);\n\nexport const reportExternalCategory: ReportExternalCategoryInterface[] = [\n {\n label: 'Retards de prestations',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.BALANCE_SHEET_DELAYS, ReportTypeEnum.OTHER_DECLARATION_DELAYS].includes(report.id),\n ),\n },\n {\n label: 'Logiciel / Application client',\n options: issueTypes.filter((issue) =>\n [IssueTypeEnum.ANNOTATIONS, IssueTypeEnum.SYNCHRONIZATIONS, IssueTypeEnum.OTHER].includes(issue.id),\n ),\n },\n {\n label: 'Facturation et honoraires',\n options: ReportTypeValues.filter((report) => [ReportTypeEnum.INVOICING_AND_FEES].includes(report.id)),\n },\n {\n label: 'Accompagnement client',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.LACK_OF_COMMUNICATION, ReportTypeEnum.LACK_OF_ADVICE].includes(report.id),\n ),\n },\n] as const;\n"]}
1
+ {"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":";;;AAAA,2CAAmE;AAEnE,IAAY,cA8BX;AA9BD,WAAY,cAAc;IACxB,uDAAU,CAAA;IACV,qDAAS,CAAA;IACT,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,uEAAkB,CAAA;IAClB,oEAAiB,CAAA;IACjB,oFAAyB,CAAA;IACzB,4FAA6B,CAAA;IAC7B,8EAAsB,CAAA;IACtB,kEAAgB,CAAA;IAChB,gFAAuB,CAAA;IACvB,kEAAgB,CAAA;IAChB,gEAAe,CAAA;IACf,8EAAsB,CAAA;IACtB,4EAAqB,CAAA;IACrB,sFAA0B,CAAA;IAC1B,wEAAmB,CAAA;IACnB,wDAAW,CAAA;IACX,oFAAyB,CAAA;IACzB,sDAAU,CAAA;IACV,kDAAQ,CAAA;IACR,gEAAe,CAAA;IACf,sEAAkB,CAAA;IAClB,wDAAW,CAAA;IACX,4DAAa,CAAA;AACf,CAAC,EA9BW,cAAc,8BAAd,cAAc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OPINION = 6,\n LATE_ANSWER = 7,\n UNHAPPY_CUSTOMER = 8,\n FISCAL_CONTROL = 9,\n REDRESSEMENT = 10,\n BALANCE_SHEET_DELAYS = 11,\n OTHER_DECLARATION_DELAYS = 12,\n CUSTOMER_PLATFORM = 13,\n REVALUATION = 14,\n INVOICING_AND_FEES = 15,\n APPOINTMENT = 16,\n CLAIM_MAIL = 17,\n ACCOUNTANT_CHANGE = 18,\n VOLONTARY_UNPAID = 19,\n LACK_OF_COMMUNICATION = 20,\n LACK_OF_ADVICE = 21,\n LAWYER = 22,\n JURIDICAL_PROTECTION = 23,\n TAXES = 24,\n VAT = 25,\n VAT_DELAYS = 26,\n BALANCE_SHEET = 27,\n THREAT = 28,\n LOGICIEL = 29,\n}\n\ninterface ReportTypeInterface {\n id: ReportTypeEnum;\n name: string;\n}\n\nexport const ReportType: { [key: string]: ReportTypeInterface } = {\n LETTER: {\n id: ReportTypeEnum.LETTER,\n name: \"Lettre à l'ordre\",\n },\n FRAUD: {\n id: ReportTypeEnum.FRAUD,\n name: 'Suspicion de fraude',\n },\n ATTITUDE: {\n id: ReportTypeEnum.ATTITUDE,\n name: 'Attitude déplacée',\n },\n BLOCKED: {\n id: ReportTypeEnum.BLOCKED,\n name: 'Dossier bloqué',\n },\n NO_RESPONSE: {\n id: ReportTypeEnum.NO_RESPONSE,\n name: 'Pas de réponse',\n },\n NEGATIVE_OPINION: {\n id: ReportTypeEnum.NEGATIVE_OPINION,\n name: 'Avis négatif',\n },\n LATE_ANSWER: {\n id: ReportTypeEnum.LATE_ANSWER,\n name: 'Réponse de + de 3 mois',\n },\n UNHAPPY_CUSTOMER: {\n id: ReportTypeEnum.UNHAPPY_CUSTOMER,\n name: 'Client mécontent',\n },\n FISCAL_CONTROL: {\n id: ReportTypeEnum.FISCAL_CONTROL,\n name: 'Contrôle fiscal en cours',\n },\n REDRESSEMENT: {\n id: ReportTypeEnum.REDRESSEMENT,\n name: 'Redressement',\n },\n BALANCE_SHEET_DELAYS: {\n id: ReportTypeEnum.BALANCE_SHEET_DELAYS,\n name: 'Retard de production bilan',\n },\n OTHER_DECLARATION_DELAYS: {\n id: ReportTypeEnum.OTHER_DECLARATION_DELAYS,\n name: 'Retard de production autre déclaration',\n },\n CUSTOMER_PLATFORM: {\n id: ReportTypeEnum.CUSTOMER_PLATFORM,\n name: 'Plateforme client',\n },\n REVALUATION: {\n id: ReportTypeEnum.REVALUATION,\n name: 'Revalorisation',\n },\n INVOICING_AND_FEES: {\n id: ReportTypeEnum.INVOICING_AND_FEES,\n name: 'Facturation et honoraires',\n },\n APPOINTMENT: {\n id: ReportTypeEnum.APPOINTMENT,\n name: 'Rendez-vous non honorés',\n },\n CLAIM_MAIL: {\n id: ReportTypeEnum.CLAIM_MAIL,\n name: 'Réclamation courrier reçu',\n },\n ACCOUNTANT_CHANGE: {\n id: ReportTypeEnum.ACCOUNTANT_CHANGE,\n name: 'Demande de changement de comptable',\n },\n VOLONTARY_UNPAID: {\n id: ReportTypeEnum.VOLONTARY_UNPAID,\n name: 'Impayé volontaire',\n },\n LACK_OF_COMMUNICATION: {\n id: ReportTypeEnum.LACK_OF_COMMUNICATION,\n name: 'Manque de communication',\n },\n LACK_OF_ADVICE: {\n id: ReportTypeEnum.LACK_OF_ADVICE,\n name: 'Manque de conseil',\n },\n LAWYER: {\n id: ReportTypeEnum.LAWYER,\n name: 'Avocat',\n },\n JURIDICAL_PROTECTION: {\n id: ReportTypeEnum.JURIDICAL_PROTECTION,\n name: 'Protection juridique',\n },\n TAXES: {\n id: ReportTypeEnum.TAXES,\n name: 'Impôts',\n },\n VAT: {\n id: ReportTypeEnum.VAT,\n name: 'TVA',\n },\n VAT_DELAYS: {\n id: ReportTypeEnum.VAT_DELAYS,\n name: 'Retard de TVA',\n },\n BALANCE_SHEET: {\n id: ReportTypeEnum.BALANCE_SHEET,\n name: 'Bilan',\n },\n THREAT: {\n id: ReportTypeEnum.THREAT,\n name: 'Menace de poursuite (Ordre, Avocats, etc...)',\n },\n LOGICIEL: {\n id: ReportTypeEnum.LOGICIEL,\n name: 'Logiciel',\n },\n} as const;\n\nexport interface ReportExternalCategoryInterface {\n label: string;\n options: ReportTypeInterface[] | IssueType[];\n}\n\nconst ReportTypeValues = Object.values(ReportType);\n\nexport const reportExternalCategory: ReportExternalCategoryInterface[] = [\n {\n label: 'Retards de prestations',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.BALANCE_SHEET_DELAYS, ReportTypeEnum.OTHER_DECLARATION_DELAYS].includes(report.id),\n ),\n },\n {\n label: 'Logiciel / Application client',\n options: issueTypes.filter((issue) =>\n [IssueTypeEnum.ANNOTATIONS, IssueTypeEnum.SYNCHRONIZATIONS, IssueTypeEnum.OTHER].includes(issue.id),\n ),\n },\n {\n label: 'Facturation et honoraires',\n options: ReportTypeValues.filter((report) => [ReportTypeEnum.INVOICING_AND_FEES].includes(report.id)),\n },\n {\n label: 'Accompagnement client',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.LACK_OF_COMMUNICATION, ReportTypeEnum.LACK_OF_ADVICE].includes(report.id),\n ),\n },\n] as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,YAAa,YAAW,OAAO;IAG1C,QAAQ,EAAE,MAAM,CAAC;IAKjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAKf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,eAAe,CAAC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AE,KAAK,CAAC;IAIrB,YAAY,CAAC,EAAE,KAAK,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateReport = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
+ const class_transformer_1 = require("class-transformer");
15
16
  class CreateReport {
16
17
  }
17
18
  exports.CreateReport = CreateReport;
@@ -23,6 +24,13 @@ __decorate([
23
24
  __decorate([
24
25
  (0, utils_1.ApiPropertyOptional)(),
25
26
  (0, class_validator_1.IsOptional)(),
27
+ (0, class_transformer_1.Transform)(({ value }) => {
28
+ if (typeof value === 'string') {
29
+ return value.split(',').map((v) => Number(v.trim()));
30
+ }
31
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
32
+ return value;
33
+ }),
26
34
  (0, class_validator_1.IsInt)({ each: true }),
27
35
  __metadata("design:type", Array)
28
36
  ], CreateReport.prototype, "idReportType", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,6CAAqE;AAGrE,MAAa,YAAY;CAqFxB;AArFD,oCAqFC;AAlFC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACS;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACE;AAKxB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+CACW;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4CACQ;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;4CACO;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;wDACoB;AAI5B;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACK;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACK;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;qDACa;AAK1B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;2CACO;AAIf;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;iDACS;AAKtB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8CACU;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4CACQ;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;+CACO;AAIpB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;kDACQ;AAIrB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;kDACQ;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACI","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { IReport } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\n\nexport class CreateReport implements IReport {\n @ApiProperty()\n @IsInt()\n idSource: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idReportType?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idFile?: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idServiceConcerned?: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n declareSoupcons?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n informerjlb?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n ressenti?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n action?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n processed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n letterDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n responseFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n}\n"]}
1
+ {"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,6CAAqE;AAErE,yDAA8C;AAE9C,MAAa,YAAY;CA4FxB;AA5FD,oCA4FC;AAzFC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACS;AAYjB;IAVC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4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,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4CACQ;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;+CACO;AAIpB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;kDACQ;AAIrB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;kDACQ;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACI","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { IReport } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\nimport { Transform } from 'class-transformer';\n\nexport class CreateReport implements IReport {\n @ApiProperty()\n @IsInt()\n idSource: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @Transform(({ value }) => {\n if (typeof value === 'string') {\n return value.split(',').map((v) => Number(v.trim()));\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n })\n @IsInt({ each: true })\n idReportType?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idFile?: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idServiceConcerned?: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n declareSoupcons?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n informerjlb?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n ressenti?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n action?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n processed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n letterDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n responseFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n}\n"]}
@@ -20,7 +20,15 @@ export declare enum ReportTypeEnum {
20
20
  ACCOUNTANT_CHANGE = 18,
21
21
  VOLONTARY_UNPAID = 19,
22
22
  LACK_OF_COMMUNICATION = 20,
23
- LACK_OF_ADVICE = 21
23
+ LACK_OF_ADVICE = 21,
24
+ LAWYER = 22,
25
+ JURIDICAL_PROTECTION = 23,
26
+ TAXES = 24,
27
+ VAT = 25,
28
+ VAT_DELAYS = 26,
29
+ BALANCE_SHEET = 27,
30
+ THREAT = 28,
31
+ LOGICIEL = 29
24
32
  }
25
33
  interface ReportTypeInterface {
26
34
  id: ReportTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,aAAa,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,cAAc,IAAI;IAClB,YAAY,KAAK;IACjB,oBAAoB,KAAK;IACzB,wBAAwB,KAAK;IAC7B,iBAAiB,KAAK;IACtB,WAAW,KAAK;IAChB,kBAAkB,KAAK;IACvB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,iBAAiB,KAAK;IACtB,gBAAgB,KAAK;IACrB,qBAAqB,KAAK;IAC1B,cAAc,KAAK;CACpB;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAqFnD,CAAC;AAEX,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAAE,CAAC;CAC9C;AAID,eAAO,MAAM,sBAAsB,EAAE,+BAA+B,EAuB1D,CAAC"}
1
+ {"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,aAAa,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,cAAc,IAAI;IAClB,YAAY,KAAK;IACjB,oBAAoB,KAAK;IACzB,wBAAwB,KAAK;IAC7B,iBAAiB,KAAK;IACtB,WAAW,KAAK;IAChB,kBAAkB,KAAK;IACvB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,iBAAiB,KAAK;IACtB,gBAAgB,KAAK;IACrB,qBAAqB,KAAK;IAC1B,cAAc,KAAK;IACnB,MAAM,KAAK;IACX,oBAAoB,KAAK;IACzB,KAAK,KAAK;IACV,GAAG,KAAK;IACR,UAAU,KAAK;IACf,aAAa,KAAK;IAClB,MAAM,KAAK;IACX,QAAQ,KAAK;CACd;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAqHnD,CAAC;AAEX,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAAE,CAAC;CAC9C;AAID,eAAO,MAAM,sBAAsB,EAAE,+BAA+B,EAuB1D,CAAC"}
@@ -22,11 +22,19 @@ export var ReportTypeEnum;
22
22
  ReportTypeEnum[ReportTypeEnum["VOLONTARY_UNPAID"] = 19] = "VOLONTARY_UNPAID";
23
23
  ReportTypeEnum[ReportTypeEnum["LACK_OF_COMMUNICATION"] = 20] = "LACK_OF_COMMUNICATION";
24
24
  ReportTypeEnum[ReportTypeEnum["LACK_OF_ADVICE"] = 21] = "LACK_OF_ADVICE";
25
+ ReportTypeEnum[ReportTypeEnum["LAWYER"] = 22] = "LAWYER";
26
+ ReportTypeEnum[ReportTypeEnum["JURIDICAL_PROTECTION"] = 23] = "JURIDICAL_PROTECTION";
27
+ ReportTypeEnum[ReportTypeEnum["TAXES"] = 24] = "TAXES";
28
+ ReportTypeEnum[ReportTypeEnum["VAT"] = 25] = "VAT";
29
+ ReportTypeEnum[ReportTypeEnum["VAT_DELAYS"] = 26] = "VAT_DELAYS";
30
+ ReportTypeEnum[ReportTypeEnum["BALANCE_SHEET"] = 27] = "BALANCE_SHEET";
31
+ ReportTypeEnum[ReportTypeEnum["THREAT"] = 28] = "THREAT";
32
+ ReportTypeEnum[ReportTypeEnum["LOGICIEL"] = 29] = "LOGICIEL";
25
33
  })(ReportTypeEnum || (ReportTypeEnum = {}));
26
34
  export const ReportType = {
27
35
  LETTER: {
28
36
  id: ReportTypeEnum.LETTER,
29
- name: 'Lettre à l\'ordre',
37
+ name: "Lettre à l'ordre",
30
38
  },
31
39
  FRAUD: {
32
40
  id: ReportTypeEnum.FRAUD,
@@ -108,6 +116,38 @@ export const ReportType = {
108
116
  id: ReportTypeEnum.LACK_OF_ADVICE,
109
117
  name: 'Manque de conseil',
110
118
  },
119
+ LAWYER: {
120
+ id: ReportTypeEnum.LAWYER,
121
+ name: 'Avocat',
122
+ },
123
+ JURIDICAL_PROTECTION: {
124
+ id: ReportTypeEnum.JURIDICAL_PROTECTION,
125
+ name: 'Protection juridique',
126
+ },
127
+ TAXES: {
128
+ id: ReportTypeEnum.TAXES,
129
+ name: 'Impôts',
130
+ },
131
+ VAT: {
132
+ id: ReportTypeEnum.VAT,
133
+ name: 'TVA',
134
+ },
135
+ VAT_DELAYS: {
136
+ id: ReportTypeEnum.VAT_DELAYS,
137
+ name: 'Retard de TVA',
138
+ },
139
+ BALANCE_SHEET: {
140
+ id: ReportTypeEnum.BALANCE_SHEET,
141
+ name: 'Bilan',
142
+ },
143
+ THREAT: {
144
+ id: ReportTypeEnum.THREAT,
145
+ name: 'Menace de poursuite (Ordre, Avocats, etc...)',
146
+ },
147
+ LOGICIEL: {
148
+ id: ReportTypeEnum.LOGICIEL,
149
+ name: 'Logiciel',
150
+ },
111
151
  };
112
152
  const ReportTypeValues = Object.values(ReportType);
113
153
  export const reportExternalCategory = [
@@ -1 +1 @@
1
- {"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,CAAN,IAAY,cAsBX;AAtBD,WAAY,cAAc;IACxB,uDAAU,CAAA;IACV,qDAAS,CAAA;IACT,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,uEAAkB,CAAA;IAClB,oEAAiB,CAAA;IACjB,oFAAyB,CAAA;IACzB,4FAA6B,CAAA;IAC7B,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AE,+BAA+B;QACtC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CACnC,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,gBAAgB,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CACpG;KACF;IACD;QACE,KAAK,EAAE,2BAA2B;QAClC,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KACtG;IACD;QACE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,CAAC,cAAc,CAAC,qBAAqB,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAC1F;KACF;CACO,CAAC","sourcesContent":["import { IssueType, IssueTypeEnum, issueTypes } from './IssueType';\n\nexport enum ReportTypeEnum {\n LETTER = 1,\n FRAUD = 2,\n ATTITUDE = 3,\n BLOCKED = 4,\n NO_RESPONSE = 5,\n NEGATIVE_OPINION = 6,\n LATE_ANSWER = 7,\n UNHAPPY_CUSTOMER = 8,\n FISCAL_CONTROL = 9,\n REDRESSEMENT = 10,\n BALANCE_SHEET_DELAYS = 11,\n OTHER_DECLARATION_DELAYS = 12,\n CUSTOMER_PLATFORM = 13,\n REVALUATION = 14,\n INVOICING_AND_FEES = 15,\n APPOINTMENT = 16,\n CLAIM_MAIL = 17,\n ACCOUNTANT_CHANGE = 18,\n VOLONTARY_UNPAID = 19,\n LACK_OF_COMMUNICATION = 20,\n LACK_OF_ADVICE = 21,\n}\n\ninterface ReportTypeInterface {\n id: ReportTypeEnum;\n name: string;\n}\n\nexport const ReportType: { [key: string]: ReportTypeInterface } = {\n LETTER: {\n id: ReportTypeEnum.LETTER,\n name: 'Lettre à l\\'ordre',\n },\n FRAUD: {\n id: ReportTypeEnum.FRAUD,\n name: 'Suspicion de fraude',\n },\n ATTITUDE: {\n id: ReportTypeEnum.ATTITUDE,\n name: 'Attitude déplacée',\n },\n BLOCKED: {\n id: ReportTypeEnum.BLOCKED,\n name: 'Dossier bloqué',\n },\n NO_RESPONSE: {\n id: ReportTypeEnum.NO_RESPONSE,\n name: 'Pas de réponse',\n },\n NEGATIVE_OPINION: {\n id: ReportTypeEnum.NEGATIVE_OPINION,\n name: 'Avis négatif',\n },\n LATE_ANSWER: {\n id: ReportTypeEnum.LATE_ANSWER,\n name: 'Réponse de + de 3 mois',\n },\n UNHAPPY_CUSTOMER: {\n id: ReportTypeEnum.UNHAPPY_CUSTOMER,\n name: 'Client mécontent',\n },\n FISCAL_CONTROL: {\n id: ReportTypeEnum.FISCAL_CONTROL,\n name: 'Contrôle fiscal en cours',\n },\n REDRESSEMENT: {\n id: ReportTypeEnum.REDRESSEMENT,\n name: 'Redressement',\n },\n BALANCE_SHEET_DELAYS: {\n id: ReportTypeEnum.BALANCE_SHEET_DELAYS,\n name: 'Retard de production bilan',\n },\n OTHER_DECLARATION_DELAYS: {\n id: ReportTypeEnum.OTHER_DECLARATION_DELAYS,\n name: 'Retard de production autre déclaration',\n },\n CUSTOMER_PLATFORM: {\n id: ReportTypeEnum.CUSTOMER_PLATFORM,\n name: 'Plateforme client',\n },\n REVALUATION: {\n id: ReportTypeEnum.REVALUATION,\n name: 'Revalorisation',\n },\n INVOICING_AND_FEES: {\n id: ReportTypeEnum.INVOICING_AND_FEES,\n name: 'Facturation et honoraires',\n },\n APPOINTMENT: {\n id: ReportTypeEnum.APPOINTMENT,\n name: 'Rendez-vous non honorés',\n },\n CLAIM_MAIL: {\n id: ReportTypeEnum.CLAIM_MAIL,\n name: 'Réclamation courrier reçu',\n },\n ACCOUNTANT_CHANGE: {\n id: ReportTypeEnum.ACCOUNTANT_CHANGE,\n name: 'Demande de changement de comptable',\n },\n VOLONTARY_UNPAID: {\n id: ReportTypeEnum.VOLONTARY_UNPAID,\n name: 'Impayé volontaire',\n },\n LACK_OF_COMMUNICATION: {\n id: ReportTypeEnum.LACK_OF_COMMUNICATION,\n name: 'Manque de communication',\n },\n LACK_OF_ADVICE: {\n id: ReportTypeEnum.LACK_OF_ADVICE,\n name: 'Manque de conseil',\n },\n} as const;\n\nexport interface ReportExternalCategoryInterface {\n label: string;\n options: ReportTypeInterface[] | IssueType[];\n}\n\nconst ReportTypeValues = Object.values(ReportType);\n\nexport const reportExternalCategory: ReportExternalCategoryInterface[] = [\n {\n label: 'Retards de prestations',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.BALANCE_SHEET_DELAYS, ReportTypeEnum.OTHER_DECLARATION_DELAYS].includes(report.id),\n ),\n },\n {\n label: 'Logiciel / Application client',\n options: issueTypes.filter((issue) =>\n [IssueTypeEnum.ANNOTATIONS, IssueTypeEnum.SYNCHRONIZATIONS, IssueTypeEnum.OTHER].includes(issue.id),\n ),\n },\n {\n label: 'Facturation et honoraires',\n options: ReportTypeValues.filter((report) => [ReportTypeEnum.INVOICING_AND_FEES].includes(report.id)),\n },\n {\n label: 'Accompagnement client',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.LACK_OF_COMMUNICATION, ReportTypeEnum.LACK_OF_ADVICE].includes(report.id),\n ),\n },\n] as const;\n"]}
1
+ {"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,CAAN,IAAY,cA8BX;AA9BD,WAAY,cAAc;IACxB,uDAAU,CAAA;IACV,qDAAS,CAAA;IACT,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,uEAA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,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KACtG;IACD;QACE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,CAAC,cAAc,CAAC,qBAAqB,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAC1F;KACF;CACO,CAAC","sourcesContent":["import { IssueType, IssueTypeEnum, issueTypes } from './IssueType';\n\nexport enum ReportTypeEnum {\n LETTER = 1,\n FRAUD = 2,\n ATTITUDE = 3,\n BLOCKED = 4,\n NO_RESPONSE = 5,\n NEGATIVE_OPINION = 6,\n LATE_ANSWER = 7,\n UNHAPPY_CUSTOMER = 8,\n FISCAL_CONTROL = 9,\n REDRESSEMENT = 10,\n BALANCE_SHEET_DELAYS = 11,\n OTHER_DECLARATION_DELAYS = 12,\n CUSTOMER_PLATFORM = 13,\n REVALUATION = 14,\n INVOICING_AND_FEES = 15,\n APPOINTMENT = 16,\n CLAIM_MAIL = 17,\n ACCOUNTANT_CHANGE = 18,\n VOLONTARY_UNPAID = 19,\n LACK_OF_COMMUNICATION = 20,\n LACK_OF_ADVICE = 21,\n LAWYER = 22,\n JURIDICAL_PROTECTION = 23,\n TAXES = 24,\n VAT = 25,\n VAT_DELAYS = 26,\n BALANCE_SHEET = 27,\n THREAT = 28,\n LOGICIEL = 29,\n}\n\ninterface ReportTypeInterface {\n id: ReportTypeEnum;\n name: string;\n}\n\nexport const ReportType: { [key: string]: ReportTypeInterface } = {\n LETTER: {\n id: ReportTypeEnum.LETTER,\n name: \"Lettre à l'ordre\",\n },\n FRAUD: {\n id: ReportTypeEnum.FRAUD,\n name: 'Suspicion de fraude',\n },\n ATTITUDE: {\n id: ReportTypeEnum.ATTITUDE,\n name: 'Attitude déplacée',\n },\n BLOCKED: {\n id: ReportTypeEnum.BLOCKED,\n name: 'Dossier bloqué',\n },\n NO_RESPONSE: {\n id: ReportTypeEnum.NO_RESPONSE,\n name: 'Pas de réponse',\n },\n NEGATIVE_OPINION: {\n id: ReportTypeEnum.NEGATIVE_OPINION,\n name: 'Avis négatif',\n },\n LATE_ANSWER: {\n id: ReportTypeEnum.LATE_ANSWER,\n name: 'Réponse de + de 3 mois',\n },\n UNHAPPY_CUSTOMER: {\n id: ReportTypeEnum.UNHAPPY_CUSTOMER,\n name: 'Client mécontent',\n },\n FISCAL_CONTROL: {\n id: ReportTypeEnum.FISCAL_CONTROL,\n name: 'Contrôle fiscal en cours',\n },\n REDRESSEMENT: {\n id: ReportTypeEnum.REDRESSEMENT,\n name: 'Redressement',\n },\n BALANCE_SHEET_DELAYS: {\n id: ReportTypeEnum.BALANCE_SHEET_DELAYS,\n name: 'Retard de production bilan',\n },\n OTHER_DECLARATION_DELAYS: {\n id: ReportTypeEnum.OTHER_DECLARATION_DELAYS,\n name: 'Retard de production autre déclaration',\n },\n CUSTOMER_PLATFORM: {\n id: ReportTypeEnum.CUSTOMER_PLATFORM,\n name: 'Plateforme client',\n },\n REVALUATION: {\n id: ReportTypeEnum.REVALUATION,\n name: 'Revalorisation',\n },\n INVOICING_AND_FEES: {\n id: ReportTypeEnum.INVOICING_AND_FEES,\n name: 'Facturation et honoraires',\n },\n APPOINTMENT: {\n id: ReportTypeEnum.APPOINTMENT,\n name: 'Rendez-vous non honorés',\n },\n CLAIM_MAIL: {\n id: ReportTypeEnum.CLAIM_MAIL,\n name: 'Réclamation courrier reçu',\n },\n ACCOUNTANT_CHANGE: {\n id: ReportTypeEnum.ACCOUNTANT_CHANGE,\n name: 'Demande de changement de comptable',\n },\n VOLONTARY_UNPAID: {\n id: ReportTypeEnum.VOLONTARY_UNPAID,\n name: 'Impayé volontaire',\n },\n LACK_OF_COMMUNICATION: {\n id: ReportTypeEnum.LACK_OF_COMMUNICATION,\n name: 'Manque de communication',\n },\n LACK_OF_ADVICE: {\n id: ReportTypeEnum.LACK_OF_ADVICE,\n name: 'Manque de conseil',\n },\n LAWYER: {\n id: ReportTypeEnum.LAWYER,\n name: 'Avocat',\n },\n JURIDICAL_PROTECTION: {\n id: ReportTypeEnum.JURIDICAL_PROTECTION,\n name: 'Protection juridique',\n },\n TAXES: {\n id: ReportTypeEnum.TAXES,\n name: 'Impôts',\n },\n VAT: {\n id: ReportTypeEnum.VAT,\n name: 'TVA',\n },\n VAT_DELAYS: {\n id: ReportTypeEnum.VAT_DELAYS,\n name: 'Retard de TVA',\n },\n BALANCE_SHEET: {\n id: ReportTypeEnum.BALANCE_SHEET,\n name: 'Bilan',\n },\n THREAT: {\n id: ReportTypeEnum.THREAT,\n name: 'Menace de poursuite (Ordre, Avocats, etc...)',\n },\n LOGICIEL: {\n id: ReportTypeEnum.LOGICIEL,\n name: 'Logiciel',\n },\n} as const;\n\nexport interface ReportExternalCategoryInterface {\n label: string;\n options: ReportTypeInterface[] | IssueType[];\n}\n\nconst ReportTypeValues = Object.values(ReportType);\n\nexport const reportExternalCategory: ReportExternalCategoryInterface[] = [\n {\n label: 'Retards de prestations',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.BALANCE_SHEET_DELAYS, ReportTypeEnum.OTHER_DECLARATION_DELAYS].includes(report.id),\n ),\n },\n {\n label: 'Logiciel / Application client',\n options: issueTypes.filter((issue) =>\n [IssueTypeEnum.ANNOTATIONS, IssueTypeEnum.SYNCHRONIZATIONS, IssueTypeEnum.OTHER].includes(issue.id),\n ),\n },\n {\n label: 'Facturation et honoraires',\n options: ReportTypeValues.filter((report) => [ReportTypeEnum.INVOICING_AND_FEES].includes(report.id)),\n },\n {\n label: 'Accompagnement client',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.LACK_OF_COMMUNICATION, ReportTypeEnum.LACK_OF_ADVICE].includes(report.id),\n ),\n },\n] as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,YAAa,YAAW,OAAO;IAG1C,QAAQ,EAAE,MAAM,CAAC;IAKjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAKf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,WAAW,CAAC,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,YAAY,CAAC,EAAE,KAAK,CAAC;IAIrB,YAAY,CAAC,EAAE,KAAK,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"CreateReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGtC,qBAAa,YAAa,YAAW,OAAO;IAG1C,QAAQ,EAAE,MAAM,CAAC;IAYjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAKf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,WAAW,CAAC,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,YAAY,CAAC,EAAE,KAAK,CAAC;IAIrB,YAAY,CAAC,EAAE,KAAK,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -9,6 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { IsInt, IsOptional, IsString } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
+ import { Transform } from 'class-transformer';
12
13
  export class CreateReport {
13
14
  idSource;
14
15
  idReportType;
@@ -38,6 +39,13 @@ __decorate([
38
39
  __decorate([
39
40
  ApiPropertyOptional(),
40
41
  IsOptional(),
42
+ Transform(({ value }) => {
43
+ if (typeof value === 'string') {
44
+ return value.split(',').map((v) => Number(v.trim()));
45
+ }
46
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
47
+ return value;
48
+ }),
41
49
  IsInt({ each: true }),
42
50
  __metadata("design:type", Array)
43
51
  ], CreateReport.prototype, "idReportType", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB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,EAAE;IACZ,KAAK,EAAE;;8CACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;4CACQ;AAIhB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;+CACO;AAIpB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;8BACA,IAAI;gDAAC;AAIlB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;kDACQ;AAIrB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;kDACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACI","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { IReport } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\n\nexport class CreateReport implements IReport {\n @ApiProperty()\n @IsInt()\n idSource: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idReportType?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idFile?: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idServiceConcerned?: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n declareSoupcons?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n informerjlb?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n ressenti?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n action?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n processed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n letterDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n responseFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n}\n"]}
1
+ {"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,OAAO,YAAY;IAGvB,QAAQ,CAAS;IAYjB,YAAY,CAAY;IAKxB,SAAS,CAAU;IAKnB,MAAM,CAAU;IAIhB,MAAM,CAAS;IAKf,kBAAkB,CAAU;IAI5B,OAAO,CAAS;IAKhB,MAAM,CAAU;IAIhB,eAAe,CAAW;IAK1B,KAAK,CAAU;IAIf,WAAW,CAAW;IAKtB,QAAQ,CAAU;IAKlB,MAAM,CAAU;IAIhB,SAAS,CAAW;IAIpB,UAAU,CAAQ;IAIlB,UAAU,CAAQ;IAIlB,YAAY,CAAS;IAIrB,YAAY,CAAS;IAKrB,KAAK,CAAU;CAChB;AAzFC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;8CACS;AAYjB;IAVC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAA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EAAE;IACZ,QAAQ,EAAE;;2CACI","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { IReport } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\nimport { Transform } from 'class-transformer';\n\nexport class CreateReport implements IReport {\n @ApiProperty()\n @IsInt()\n idSource: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @Transform(({ value }) => {\n if (typeof value === 'string') {\n return value.split(',').map((v) => Number(v.trim()));\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n })\n @IsInt({ each: true })\n idReportType?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idFile?: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idServiceConcerned?: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n declareSoupcons?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n informerjlb?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n ressenti?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n action?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n processed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n letterDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n responseFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.158-10",
3
+ "version": "1.3.158-11",
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",
@@ -22,6 +22,14 @@ export enum ReportTypeEnum {
22
22
  VOLONTARY_UNPAID = 19,
23
23
  LACK_OF_COMMUNICATION = 20,
24
24
  LACK_OF_ADVICE = 21,
25
+ LAWYER = 22,
26
+ JURIDICAL_PROTECTION = 23,
27
+ TAXES = 24,
28
+ VAT = 25,
29
+ VAT_DELAYS = 26,
30
+ BALANCE_SHEET = 27,
31
+ THREAT = 28,
32
+ LOGICIEL = 29,
25
33
  }
26
34
 
27
35
  interface ReportTypeInterface {
@@ -32,7 +40,7 @@ interface ReportTypeInterface {
32
40
  export const ReportType: { [key: string]: ReportTypeInterface } = {
33
41
  LETTER: {
34
42
  id: ReportTypeEnum.LETTER,
35
- name: 'Lettre à l\'ordre',
43
+ name: "Lettre à l'ordre",
36
44
  },
37
45
  FRAUD: {
38
46
  id: ReportTypeEnum.FRAUD,
@@ -114,6 +122,38 @@ export const ReportType: { [key: string]: ReportTypeInterface } = {
114
122
  id: ReportTypeEnum.LACK_OF_ADVICE,
115
123
  name: 'Manque de conseil',
116
124
  },
125
+ LAWYER: {
126
+ id: ReportTypeEnum.LAWYER,
127
+ name: 'Avocat',
128
+ },
129
+ JURIDICAL_PROTECTION: {
130
+ id: ReportTypeEnum.JURIDICAL_PROTECTION,
131
+ name: 'Protection juridique',
132
+ },
133
+ TAXES: {
134
+ id: ReportTypeEnum.TAXES,
135
+ name: 'Impôts',
136
+ },
137
+ VAT: {
138
+ id: ReportTypeEnum.VAT,
139
+ name: 'TVA',
140
+ },
141
+ VAT_DELAYS: {
142
+ id: ReportTypeEnum.VAT_DELAYS,
143
+ name: 'Retard de TVA',
144
+ },
145
+ BALANCE_SHEET: {
146
+ id: ReportTypeEnum.BALANCE_SHEET,
147
+ name: 'Bilan',
148
+ },
149
+ THREAT: {
150
+ id: ReportTypeEnum.THREAT,
151
+ name: 'Menace de poursuite (Ordre, Avocats, etc...)',
152
+ },
153
+ LOGICIEL: {
154
+ id: ReportTypeEnum.LOGICIEL,
155
+ name: 'Logiciel',
156
+ },
117
157
  } as const;
118
158
 
119
159
  export interface ReportExternalCategoryInterface {
@@ -2,6 +2,7 @@ import { IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { IReport } from '../../..';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
4
  import { TFile } from '../file/TFile';
5
+ import { Transform } from 'class-transformer';
5
6
 
6
7
  export class CreateReport implements IReport {
7
8
  @ApiProperty()
@@ -10,6 +11,13 @@ export class CreateReport implements IReport {
10
11
 
11
12
  @ApiPropertyOptional()
12
13
  @IsOptional()
14
+ @Transform(({ value }) => {
15
+ if (typeof value === 'string') {
16
+ return value.split(',').map((v) => Number(v.trim()));
17
+ }
18
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
19
+ return value;
20
+ })
13
21
  @IsInt({ each: true })
14
22
  idReportType?: number[];
15
23