@silexpert/core 1.3.219 → 1.3.220

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.
@@ -1,4 +1,4 @@
1
- import { CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice, IGedFile } from '../../types';
1
+ import { CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice, IGedFile, SendPreviewProjectExercice } from '../../types';
2
2
  import { Resource } from '../Resource';
3
3
  export declare class Exercice extends Resource {
4
4
  create(params: CreateExercice): Promise<IExercice | null>;
@@ -18,6 +18,6 @@ export declare class Exercice extends Resource {
18
18
  * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
19
19
  * For the other clients, the preview project will be send with the endpoint generateProject
20
20
  */
21
- sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void>;
21
+ sendProjectAcceptationEmail(idSociety: number, idExercice: number, params?: SendPreviewProjectExercice): Promise<void>;
22
22
  }
23
23
  //# sourceMappingURL=Exercice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAIzD,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,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AE,CAAC;IAI/D;;;OAGG;IACH,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvH"}
@@ -60,8 +60,8 @@ class Exercice extends Resource_1.Resource {
60
60
  * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
61
61
  * For the other clients, the preview project will be send with the endpoint generateProject
62
62
  */
63
- sendProjectAcceptationEmail(idSociety, idExercice) {
64
- return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
63
+ sendProjectAcceptationEmail(idSociety, idExercice, params) {
64
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);
65
65
  }
66
66
  }
67
67
  exports.Exercice = Exercice;
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":";;;AAWA,0CAAuC;AAEvC,MAAa,QAAS,SAAQ,mBAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,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,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,UAAU,EAAE,QAAQ,EAAE;YAC3F,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,UAAkB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,cAAc,CAAC,CAAC;IAChE,CAAC;IAED,uBAAuB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,2BAA2B,CAAC,SAAiB,EAAE,UAAkB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,kCAAkC,CAAC,CAAC;IAC7G,CAAC;CACF;AAzED,4BAyEC","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n IGedFile,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice | null> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n\n isFeasible(idExercice: number): Promise<boolean> {\n return this.axios.$get(`exercices/${idExercice}/is-feasible`);\n }\n\n checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {\n return this.axios.$get(`/societies/${idSociety}/project-acceptation`);\n }\n\n /**\n * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo\n * For the other clients, the preview project will be send with the endpoint generateProject\n */\n sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);\n }\n}\n"]}
1
+ {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":";;;AAYA,0CAAuC;AAEvC,MAAa,QAAS,SAAQ,mB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C,CAAC;IACrH,CAAC;CACF;AAzED,4BAyEC","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n IGedFile,\n SendPreviewProjectExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice | null> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n\n isFeasible(idExercice: number): Promise<boolean> {\n return this.axios.$get(`exercices/${idExercice}/is-feasible`);\n }\n\n checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {\n return this.axios.$get(`/societies/${idSociety}/project-acceptation`);\n }\n\n /**\n * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo\n * For the other clients, the preview project will be send with the endpoint generateProject\n */\n sendProjectAcceptationEmail(idSociety: number, idExercice: number, params?: SendPreviewProjectExercice): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);\n }\n}\n"]}
@@ -27,4 +27,7 @@ export declare class CreateProjectExercice {
27
27
  idBalanceSheet?: number;
28
28
  files?: TFile[];
29
29
  }
30
+ export declare class SendPreviewProjectExercice {
31
+ idBalanceSheet?: number;
32
+ }
30
33
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,cAAc;IAGzB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAMhC,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAA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OAAO,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,qBAAqB;IAIhC,QAAQ,EAAE,OAAO,CAAC;IAKlB,QAAQ,EAAE,OAAO,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,UAAU,EAAE,MAAM,CAAC;IAKnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AAED,qBAAa,0BAA0B;IAIrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateProjectExercice = exports.CreateExercice = void 0;
12
+ exports.SendPreviewProjectExercice = exports.CreateProjectExercice = exports.CreateExercice = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const decorators_1 = require("../../../../utils/decorators");
15
15
  const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
@@ -165,4 +165,13 @@ __decorate([
165
165
  (0, class_validator_1.IsOptional)(),
166
166
  __metadata("design:type", Array)
167
167
  ], CreateProjectExercice.prototype, "files", void 0);
168
+ class SendPreviewProjectExercice {
169
+ }
170
+ exports.SendPreviewProjectExercice = SendPreviewProjectExercice;
171
+ __decorate([
172
+ (0, decorators_1.ApiPropertyOptional)(),
173
+ (0, class_validator_1.IsOptional)(),
174
+ (0, class_validator_1.IsNumber)(),
175
+ __metadata("design:type", Number)
176
+ ], SendPreviewProjectExercice.prototype, "idBalanceSheet", void 0);
168
177
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;A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G","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { TFile } from '../file/TFile';\nimport { ExercicePriorityType } from '../../..';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ExercicePriorityType)\n priority?: ExercicePriorityType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n\n @ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBlankMode?: boolean;\n}\n\nexport class CreateProjectExercice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withCA12: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n with2572: boolean;\n\n @ApiProperty()\n @IsString()\n mailTo: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailCc?: string;\n\n @ApiProperty()\n @IsString()\n mailObject: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n files?: TFile[];\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6DAAgF;AAChF,sFAA2E;AAE3E,gCAAgD;AAEhD,MAAa,cAAc;CA0F1B;AA1FD,wCA0FC;AAvFC;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACE,IAAI;iDAAC;AAIhB;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACA,IAAI;+CAAC;AAMd;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8CACI;AAKjB;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAoB,CAAC;;gDACG;AAMhC;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;6CACG;AAMhB;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACO;AAMpB;IAJC,IAAA,gCAAmB,GAAE;IACrB,IAA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6BAAS,GAAE;;uDACM;AAKlB;IAHC,IAAA,wBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;uDACM;AAIlB;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;qDACI;AAKf;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAIhB;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;yDACQ;AAKnB;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACa;AAIxB;IAFC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;oDACG;AAGlB,MAAa,0BAA0B;CAKtC;AALD,gEAKC;AADC;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACa","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { TFile } from '../file/TFile';\nimport { ExercicePriorityType } from '../../..';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ExercicePriorityType)\n priority?: ExercicePriorityType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n\n @ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBlankMode?: boolean;\n}\n\nexport class CreateProjectExercice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withCA12: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n with2572: boolean;\n\n @ApiProperty()\n @IsString()\n mailTo: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailCc?: string;\n\n @ApiProperty()\n @IsString()\n mailObject: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n files?: TFile[];\n}\n\nexport class SendPreviewProjectExercice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice, IGedFile } from '../../types';
1
+ import { CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice, IGedFile, SendPreviewProjectExercice } from '../../types';
2
2
  import { Resource } from '../Resource';
3
3
  export declare class Exercice extends Resource {
4
4
  create(params: CreateExercice): Promise<IExercice | null>;
@@ -18,6 +18,6 @@ export declare class Exercice extends Resource {
18
18
  * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
19
19
  * For the other clients, the preview project will be send with the endpoint generateProject
20
20
  */
21
- sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void>;
21
+ sendProjectAcceptationEmail(idSociety: number, idExercice: number, params?: SendPreviewProjectExercice): Promise<void>;
22
22
  }
23
23
  //# sourceMappingURL=Exercice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAIzD,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIvC,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAIjF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9D,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,O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AAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIvC,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAIjF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9D,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAIzD,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIpG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIrD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpF,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC;IAiB/G,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhD,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIhD,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI/D;;;OAGG;IACH,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvH"}
@@ -57,8 +57,8 @@ export class Exercice extends Resource {
57
57
  * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
58
58
  * For the other clients, the preview project will be send with the endpoint generateProject
59
59
  */
60
- sendProjectAcceptationEmail(idSociety, idExercice) {
61
- return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
60
+ sendProjectAcceptationEmail(idSociety, idExercice, params) {
61
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);
62
62
  }
63
63
  }
64
64
  //# sourceMappingURL=Exercice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,wBAAwB,CAAC,UAAkB,EAAE,MAAgC;QAC3E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC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UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,UAAkB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,cAAc,CAAC,CAAC;IAChE,CAAC;IAED,uBAAuB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,2BAA2B,CAAC,SAAiB,EAAE,UAAkB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,kCAAkC,CAAC,CAAC;IAC7G,CAAC;CACF","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n IGedFile,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice | null> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n\n isFeasible(idExercice: number): Promise<boolean> {\n return this.axios.$get(`exercices/${idExercice}/is-feasible`);\n }\n\n checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {\n return this.axios.$get(`/societies/${idSociety}/project-acceptation`);\n }\n\n /**\n * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo\n * For the other clients, the preview project will be send with the endpoint generateProject\n */\n sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);\n }\n}\n"]}
1
+ {"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAA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IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5C,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;oBACpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAU,EAAE,EAAE;wBAC3B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACjC,CAAC,CAAC,CAAC;gBACL,CAAC;;oBAAM,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,UAAU,EAAE,QAAQ,EAAE;YAC3F,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,UAAkB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,cAAc,CAAC,CAAC;IAChE,CAAC;IAED,uBAAuB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,2BAA2B,CAAC,SAAiB,EAAE,UAAkB,EAAE,MAAmC;QACpG,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,kCAAkC,EAAE,MAAM,CAAC,CAAC;IACrH,CAAC;CACF","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n IGedFile,\n SendPreviewProjectExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice | null> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n\n isFeasible(idExercice: number): Promise<boolean> {\n return this.axios.$get(`exercices/${idExercice}/is-feasible`);\n }\n\n checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {\n return this.axios.$get(`/societies/${idSociety}/project-acceptation`);\n }\n\n /**\n * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo\n * For the other clients, the preview project will be send with the endpoint generateProject\n */\n sendProjectAcceptationEmail(idSociety: number, idExercice: number, params?: SendPreviewProjectExercice): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);\n }\n}\n"]}
@@ -27,4 +27,7 @@ export declare class CreateProjectExercice {
27
27
  idBalanceSheet?: number;
28
28
  files?: TFile[];
29
29
  }
30
+ export declare class SendPreviewProjectExercice {
31
+ idBalanceSheet?: number;
32
+ }
30
33
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,cAAc;IAGzB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAMhC,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;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C;IAIhB,UAAU,EAAE,MAAM,CAAC;IAKnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AAED,qBAAa,0BAA0B;IAIrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -183,4 +183,13 @@ __decorate([
183
183
  IsOptional(),
184
184
  __metadata("design:type", Array)
185
185
  ], CreateProjectExercice.prototype, "files", void 0);
186
+ export class SendPreviewProjectExercice {
187
+ idBalanceSheet;
188
+ }
189
+ __decorate([
190
+ ApiPropertyOptional(),
191
+ IsOptional(),
192
+ IsNumber(),
193
+ __metadata("design:type", Number)
194
+ ], SendPreviewProjectExercice.prototype, "idBalanceSheet", void 0);
186
195
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,OAAO,cAAc;IAGzB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAMd,MAAM,CAAW;IAKjB,QAAQ,CAAwB;IAMhC,KAAK,CAAW;IAMhB,SAAS,CAAW;IAMpB,OAAO,CAAW;IAMlB,YAAY,CAAW;IAMvB,WAAW,CAAW;IAMtB,WAAW,CAAW;IAMtB,gBAAgB,CAAW;IAM3B,mBAAmB,CAAW;IAM9B,uBAAuB,CAAW;IAKlC,SAAS,CAAS;IAMlB,SAAS,CAAW;IAMpB,WAAW,CAAW;CACvB;AAvFC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B;IAJC,mBAAmB,CAAC,EAAE,WAAW,EAAE,qDAAqD,EAAE,CAAC;IAC3F,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACS;AAGxB,MAAM,OAAO,qBAAqB;IAIhC,QAAQ,CAAU;IAKlB,QAAQ,CAAU;IAIlB,MAAM,CAAS;IAKf,MAAM,CAAU;IAIhB,UAAU,CAAS;IAKnB,cAAc,CAAU;IAIxB,KAAK,CAAW;CACjB;AA5BC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAKlB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAIlB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACQ;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6DACa;AAIxB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;oDACG","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { TFile } from '../file/TFile';\nimport { ExercicePriorityType } from '../../..';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ExercicePriorityType)\n priority?: ExercicePriorityType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n\n @ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBlankMode?: boolean;\n}\n\nexport class CreateProjectExercice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withCA12: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n with2572: boolean;\n\n @ApiProperty()\n @IsString()\n mailTo: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailCc?: string;\n\n @ApiProperty()\n @IsString()\n mailObject: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n files?: TFile[];\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,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rB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6DACa;AAIxB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;oDACG;AAGlB,MAAM,OAAO,0BAA0B;IAIrC,cAAc,CAAU;CACzB;AADC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kEACa","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { TFile } from '../file/TFile';\nimport { ExercicePriorityType } from '../../..';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ExercicePriorityType)\n priority?: ExercicePriorityType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n\n @ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBlankMode?: boolean;\n}\n\nexport class CreateProjectExercice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withCA12: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n with2572: boolean;\n\n @ApiProperty()\n @IsString()\n mailTo: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailCc?: string;\n\n @ApiProperty()\n @IsString()\n mailObject: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n files?: TFile[];\n}\n\nexport class SendPreviewProjectExercice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.219",
3
+ "version": "1.3.220",
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",
@@ -8,6 +8,7 @@ import {
8
8
  CreateProjectExercice,
9
9
  QuerySocietyExercice,
10
10
  IGedFile,
11
+ SendPreviewProjectExercice,
11
12
  } from '../../types';
12
13
  import { Resource } from '../Resource';
13
14
 
@@ -81,7 +82,7 @@ export class Exercice extends Resource {
81
82
  * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
82
83
  * For the other clients, the preview project will be send with the endpoint generateProject
83
84
  */
84
- sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {
85
- return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
85
+ sendProjectAcceptationEmail(idSociety: number, idExercice: number, params?: SendPreviewProjectExercice): Promise<void> {
86
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`, params);
86
87
  }
87
88
  }
@@ -129,3 +129,10 @@ export class CreateProjectExercice {
129
129
  @IsOptional()
130
130
  files?: TFile[];
131
131
  }
132
+
133
+ export class SendPreviewProjectExercice {
134
+ @ApiPropertyOptional()
135
+ @IsOptional()
136
+ @IsNumber()
137
+ idBalanceSheet?: number;
138
+ }