@silexpert/core 1.1.251 → 1.1.253
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/BudgetInsight.d.ts +2 -1
- package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/cjs/api/resources/BudgetInsight.js +3 -0
- package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/cjs/api/resources/CalendarEvent.js +9 -0
- package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +4 -1
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +3 -0
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +3 -3
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
- package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/Read.js.map +1 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
- package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/budgetInsight/Delete.js +36 -0
- package/dist/cjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
- package/dist/cjs/types/Interface/api/notion/Read.d.ts +8 -0
- package/dist/cjs/types/Interface/api/notion/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/notion/Read.js +3 -0
- package/dist/cjs/types/Interface/api/notion/Read.js.map +1 -0
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/bankAccount.d.ts.map +1 -1
- package/dist/cjs/utils/bankAccount.js +8 -3
- package/dist/cjs/utils/bankAccount.js.map +1 -1
- package/dist/cjs/utils/cerfa.d.ts +12 -1
- package/dist/cjs/utils/cerfa.d.ts.map +1 -1
- package/dist/cjs/utils/cerfa.js +29 -4
- package/dist/cjs/utils/cerfa.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +2 -2
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts +2 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.js +3 -0
- package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/mjs/api/resources/CalendarEvent.js +9 -0
- package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +4 -1
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +3 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +3 -3
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
- package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/Read.js.map +1 -1
- package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
- package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/budgetInsight/Delete.js +35 -0
- package/dist/mjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
- package/dist/mjs/types/Interface/api/notion/Read.d.ts +8 -0
- package/dist/mjs/types/Interface/api/notion/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/notion/Read.js +2 -0
- package/dist/mjs/types/Interface/api/notion/Read.js.map +1 -0
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/bankAccount.d.ts.map +1 -1
- package/dist/mjs/utils/bankAccount.js +8 -3
- package/dist/mjs/utils/bankAccount.js.map +1 -1
- package/dist/mjs/utils/cerfa.d.ts +12 -1
- package/dist/mjs/utils/cerfa.d.ts.map +1 -1
- package/dist/mjs/utils/cerfa.js +29 -3
- package/dist/mjs/utils/cerfa.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +2 -2
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +5 -1
- package/ts/api/resources/CalendarEvent.ts +11 -0
- package/ts/types/Enum/Aspone.ts +3 -0
- package/ts/types/Enum/BrandClementine.ts +3 -3
- package/ts/types/Interface/api/bankAccount/Read.ts +1 -0
- package/ts/types/Interface/api/budgetInsight/Delete.ts +19 -0
- package/ts/types/Interface/api/notion/Read.ts +7 -0
- package/ts/types/Interface/models/ICollaboraterDetail.ts +1 -0
- package/ts/types/Interface/models/IVatDeclarationSocietyDetail.ts +1 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/bankAccount.ts +13 -4
- package/ts/utils/cerfa.ts +32 -5
- package/ts/utils/email/templates/signature.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bankAccount.d.ts","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIzD,oBAAY,YAAY;IACtB,YAAY,IAAI;IAChB,cAAc,IAAI;CACnB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,eAAe,GAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"bankAccount.d.ts","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIzD,oBAAY,YAAY;IACtB,YAAY,IAAI;IAChB,cAAc,IAAI;CACnB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,eAAe,GAAI,YAAY,CA8BzH"}
|
|
@@ -18,10 +18,15 @@ function isSynchro(params, dateOfTermination, bankConnection) {
|
|
|
18
18
|
// // Si JE DECLARE ou AUTRE alors tjs synchro
|
|
19
19
|
if (params.idPartnerType && [PartnerTransactionType_1.PartnerTransactionType.JE_DECLARE, PartnerTransactionType_1.PartnerTransactionType.OTHER].includes(params.idPartnerType))
|
|
20
20
|
return StateSynchro.SYNCHRONIZED;
|
|
21
|
-
|
|
21
|
+
/** Si budget lastUpdate = la date du jour alors synchro
|
|
22
|
+
* Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
|
|
23
|
+
*/
|
|
22
24
|
if (params.idPartnerType && params.lastUpdate &&
|
|
23
|
-
[PartnerTransactionType_1.PartnerTransactionType.QONTO, PartnerTransactionType_1.PartnerTransactionType.SHINE, PartnerTransactionType_1.PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
|
|
24
|
-
|
|
25
|
+
[PartnerTransactionType_1.PartnerTransactionType.QONTO, PartnerTransactionType_1.PartnerTransactionType.SHINE, PartnerTransactionType_1.PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
|
|
26
|
+
&&
|
|
27
|
+
((dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD')) || // si lastUpdate = date du jour OU
|
|
28
|
+
(dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&
|
|
29
|
+
(!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD'))))
|
|
25
30
|
&& (!bankConnection || (bankConnection === null || bankConnection === void 0 ? void 0 : bankConnection.errorCode) === null))
|
|
26
31
|
return StateSynchro.SYNCHRONIZED;
|
|
27
32
|
if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination)))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bankAccount.js","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,iFAA8E;AAG9E,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+DAAgB,CAAA;IAChB,mEAAkB,CAAA;AACpB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,SAAgB,SAAS,CAAC,MAAoB,EAAE,iBAAwB,EAAE,cAAgC;IACxG,4EAA4E;IAC5E,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAEjE,qCAAqC;IACrC,IAAI,MAAM,CAAC,aAAa,KAAK,IAAI;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAEpE,8CAA8C;IAC9C,IAAI,MAAM,CAAC,aAAa,IAAI,CAAC,+CAAsB,CAAC,UAAU,EAAE,+CAAsB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAE/J
|
|
1
|
+
{"version":3,"file":"bankAccount.js","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,iFAA8E;AAG9E,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+DAAgB,CAAA;IAChB,mEAAkB,CAAA;AACpB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,SAAgB,SAAS,CAAC,MAAoB,EAAE,iBAAwB,EAAE,cAAgC;IACxG,4EAA4E;IAC5E,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAEjE,qCAAqC;IACrC,IAAI,MAAM,CAAC,aAAa,KAAK,IAAI;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAEpE,8CAA8C;IAC9C,IAAI,MAAM,CAAC,aAAa,IAAI,CAAC,+CAAsB,CAAC,UAAU,EAAE,+CAAsB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAE/J;;OAEG;IACH,IAAI,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU;QAC3C,CAAC,+CAAsB,CAAC,KAAK,EAAE,+CAAsB,CAAC,KAAK,EAAE,+CAAsB,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC;;YAElI,CACE,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,KAAK,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAE,IAAI,kCAAkC;gBACvH,CACE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;oBACrG,CAAC,CAAC,MAAM,CAAC,aAAa,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CACzH,CACF;WACE,CAAC,CAAC,cAAc,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,MAAK,IAAI,CAAC;QAC1D,OAAO,YAAY,CAAC,YAAY,CAAC;IAEnC,IAAI,iBAAiB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAGvK,OAAO,YAAY,CAAC,cAAc,CAAC;AACrC,CAAC;AA9BD,8BA8BC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { IBankAccount, IBankConnection } from '../types';\nimport { PartnerTransactionType } from '../types/Enum/PartnerTransactionType';\n\n\nexport enum StateSynchro {\n SYNCHRONIZED = 1,\n DESYNCHRONIZED = 2,\n}\n\nexport function isSynchro(params: IBankAccount, dateOfTermination?: Date, bankConnection?: IBankConnection ): StateSynchro {\n // si le compte est désactivé au niveau budget on le considére comme syncrho\n if (params.disabledAt !== null) return StateSynchro.SYNCHRONIZED;\n\n // // si non Défini alors tjs synchro\n if (params.idPartnerType === null) return StateSynchro.SYNCHRONIZED;\n\n // // Si JE DECLARE ou AUTRE alors tjs synchro\n if (params.idPartnerType && [PartnerTransactionType.JE_DECLARE, PartnerTransactionType.OTHER].includes(params.idPartnerType)) return StateSynchro.SYNCHRONIZED;\n\n /** Si budget lastUpdate = la date du jour alors synchro\n * Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport\n */\n if (params.idPartnerType && params.lastUpdate &&\n [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType) \n && \n (\n (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) || // si lastUpdate = date du jour OU\n (\n dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&\n (!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD')) \n )\n )\n && (!bankConnection || bankConnection?.errorCode === null)\n ) return StateSynchro.SYNCHRONIZED;\n \n if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination))) return StateSynchro.SYNCHRONIZED;\n \n \n return StateSynchro.DESYNCHRONIZED;\n}\n"]}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { ReadCerfaToComplete } from '../types/Interface/api/cerfa/ReadCerfa';
|
|
2
2
|
import { GlobalRegimeTypeContent } from '../types/Enum/GlobalRegime';
|
|
3
|
-
import { ProfitsType, FiscalRegime, TaxSystem } from '../types';
|
|
3
|
+
import { ProfitsType, FiscalRegime, TaxSystem, Code, ErrorType } from '../types';
|
|
4
|
+
type ErrorParams = {
|
|
5
|
+
code: Code;
|
|
6
|
+
type: ErrorType;
|
|
7
|
+
message?: string;
|
|
8
|
+
} | string;
|
|
9
|
+
export declare class ServiceException extends Error {
|
|
10
|
+
private readonly code;
|
|
11
|
+
private readonly type;
|
|
12
|
+
constructor(params: ErrorParams);
|
|
13
|
+
}
|
|
4
14
|
export declare function retrieveCerfaFromSocietyInformations(idLegalForm: number, idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime, profitsType: ProfitsType): ReadCerfaToComplete;
|
|
5
15
|
export declare function retreiveChoicesDependingLegalForm(idLegalForm: number): GlobalRegimeTypeContent;
|
|
16
|
+
export {};
|
|
6
17
|
//# sourceMappingURL=cerfa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerfa.d.ts","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAgB,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cerfa.d.ts","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAgB,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGjF,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC;AAE9E,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAO;IAE5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAY;gBAErB,MAAM,EAAE,WAAW;CAShC;AAED,wBAAgB,oCAAoC,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,GAAE,mBAAmB,CAqB5K;AAED,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,uBAAuB,CAM9F"}
|
package/dist/cjs/utils/cerfa.js
CHANGED
|
@@ -1,15 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.retreiveChoicesDependingLegalForm = exports.retrieveCerfaFromSocietyInformations = void 0;
|
|
3
|
+
exports.retreiveChoicesDependingLegalForm = exports.retrieveCerfaFromSocietyInformations = exports.ServiceException = void 0;
|
|
4
4
|
const GlobalRegime_1 = require("../types/Enum/GlobalRegime");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
const class_validator_1 = require("class-validator");
|
|
7
|
+
class ServiceException extends Error {
|
|
8
|
+
constructor(params) {
|
|
9
|
+
if (typeof params === 'string') {
|
|
10
|
+
super(params);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
super(params.message);
|
|
14
|
+
this.code = params.code;
|
|
15
|
+
this.type = params.type;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ServiceException = ServiceException;
|
|
5
19
|
function retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType) {
|
|
6
20
|
const globalRegimes = Object.values(GlobalRegime_1.GlobalRegime);
|
|
7
21
|
const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));
|
|
8
22
|
if (!selectedGlobalRegime)
|
|
9
|
-
throw new
|
|
23
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: 'Votre raison sociale ne vous permet pas de générer votre bilan chez nous' });
|
|
24
|
+
if (!(0, class_validator_1.isDefined)(idFiscalRegime) || !(0, class_validator_1.isDefined)(profitsType) || !(0, class_validator_1.isDefined)(idTaxSystem)) {
|
|
25
|
+
const missingData = [];
|
|
26
|
+
if (!(0, class_validator_1.isDefined)(idFiscalRegime))
|
|
27
|
+
missingData.push('Régime de droit commun');
|
|
28
|
+
if (!(0, class_validator_1.isDefined)(profitsType))
|
|
29
|
+
missingData.push('Régime d\'imposition');
|
|
30
|
+
if (!(0, class_validator_1.isDefined)(idTaxSystem))
|
|
31
|
+
missingData.push('Activité (BNC, BIC)');
|
|
32
|
+
const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime ficscal: ${missingData.join(', ')}`;
|
|
33
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: errorMEssage });
|
|
34
|
+
}
|
|
10
35
|
const choiceIndex = selectedGlobalRegime.choices.findIndex((sgr) => sgr.idFiscalRegime === idFiscalRegime && sgr.profitsType === profitsType && sgr.idTaxSystem === idTaxSystem);
|
|
11
36
|
if (choiceIndex < 0)
|
|
12
|
-
throw new
|
|
37
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: 'Au vu des informations remplis, nous somme dans l\'incapacité de générer votre bilan chez nous' });
|
|
13
38
|
const { declaration, annexe } = selectedGlobalRegime.choices[choiceIndex];
|
|
14
39
|
return { declaration, annex: annexe !== null && annexe !== void 0 ? annexe : null };
|
|
15
40
|
}
|
|
@@ -18,7 +43,7 @@ function retreiveChoicesDependingLegalForm(idLegalForm) {
|
|
|
18
43
|
const globalRegimes = Object.values(GlobalRegime_1.GlobalRegime);
|
|
19
44
|
const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));
|
|
20
45
|
if (!selectedGlobalRegime)
|
|
21
|
-
throw new
|
|
46
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: `LegalForm #${idLegalForm} not implemented` });
|
|
22
47
|
return selectedGlobalRegime;
|
|
23
48
|
}
|
|
24
49
|
exports.retreiveChoicesDependingLegalForm = retreiveChoicesDependingLegalForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerfa.js","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":";;;AACA,6DAAmF;
|
|
1
|
+
{"version":3,"file":"cerfa.js","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":";;;AACA,6DAAmF;AACnF,oCAAiF;AACjF,qDAA4C;AAI5C,MAAa,gBAAiB,SAAQ,KAAK;IAKzC,YAAY,MAAmB;QAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC9B,KAAK,CAAC,MAAM,CAAC,CAAC;YACd,OAAO;SACR;QACD,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;CACF;AAdD,4CAcC;AAED,SAAgB,oCAAoC,CAAC,WAAmB,EAAE,WAAsB,EAAE,cAA4B,EAAE,WAAwB;IACtJ,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,2BAAY,CAAC,CAAC;IAClD,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAE/F,IAAI,CAAC,oBAAoB;QAAE,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,0EAA0E,EAAE,CAAC,CAAC;IAE1M,IAAI,CAAC,IAAA,2BAAS,EAAC,cAAc,CAAC,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC,EAAE;QACpF,MAAM,WAAW,GAAa,EAAE,CAAC;QACjC,IAAI,CAAC,IAAA,2BAAS,EAAC,cAAc,CAAC;YAAE,WAAW,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAC3E,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC;YAAE,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACtE,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC;YAAE,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACrE,MAAM,YAAY,GAAG,oFAAoF,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAClI,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;KAClH;IAED,MAAM,WAAW,GAAG,oBAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,cAAc,KAAK,cAAc,IAAI,GAAG,CAAC,WAAW,KAAK,WAAW,IAAI,GAAG,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAEjL,IAAI,WAAW,GAAG,CAAC;QAAE,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,gGAAgG,EAAE,CAAC,CAAC;IAC1N,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE1E,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,EAAE,CAAC;AAChD,CAAC;AArBD,oFAqBC;AAED,SAAgB,iCAAiC,CAAC,WAAmB;IACnE,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,2BAAY,CAAC,CAAC;IAClD,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAE/F,IAAI,CAAC,oBAAoB;QAAE,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,cAAc,WAAW,kBAAkB,EAAE,CAAC,CAAC;IAC3K,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAND,8EAMC","sourcesContent":["import { ReadCerfaToComplete } from '../types/Interface/api/cerfa/ReadCerfa';\nimport { GlobalRegime, GlobalRegimeTypeContent } from '../types/Enum/GlobalRegime';\nimport { ProfitsType, FiscalRegime, TaxSystem, Code, ErrorType } from '../types';\nimport { isDefined } from 'class-validator';\n\ntype ErrorParams = { code: Code, type: ErrorType, message?: string } | string;\n\nexport class ServiceException extends Error {\n private readonly code: Code;\n\n private readonly type: ErrorType;\n\n constructor(params: ErrorParams) {\n if (typeof params === 'string') {\n super(params);\n return;\n }\n super(params.message);\n this.code = params.code;\n this.type = params.type;\n }\n}\n\nexport function retrieveCerfaFromSocietyInformations(idLegalForm: number, idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime, profitsType: ProfitsType):ReadCerfaToComplete {\n const globalRegimes = Object.values(GlobalRegime);\n const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));\n\n if (!selectedGlobalRegime) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: 'Votre raison sociale ne vous permet pas de générer votre bilan chez nous' });\n\n if (!isDefined(idFiscalRegime) || !isDefined(profitsType) || !isDefined(idTaxSystem)) {\n const missingData: string[] = [];\n if (!isDefined(idFiscalRegime)) missingData.push('Régime de droit commun');\n if (!isDefined(profitsType)) missingData.push('Régime d\\'imposition');\n if (!isDefined(idTaxSystem)) missingData.push('Activité (BNC, BIC)');\n const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime ficscal: ${missingData.join(', ')}`;\n throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: errorMEssage });\n }\n\n const choiceIndex = selectedGlobalRegime.choices.findIndex((sgr) => sgr.idFiscalRegime === idFiscalRegime && sgr.profitsType === profitsType && sgr.idTaxSystem === idTaxSystem);\n\n if (choiceIndex < 0) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: 'Au vu des informations remplis, nous somme dans l\\'incapacité de générer votre bilan chez nous' });\n const { declaration, annexe } = selectedGlobalRegime.choices[choiceIndex];\n\n return { declaration, annex: annexe ?? null };\n}\n\nexport function retreiveChoicesDependingLegalForm(idLegalForm: number): GlobalRegimeTypeContent {\n const globalRegimes = Object.values(GlobalRegime);\n const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));\n\n if (!selectedGlobalRegime) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: `LegalForm #${idLegalForm} not implemented` });\n return selectedGlobalRegime;\n}"]}
|
|
@@ -192,8 +192,8 @@ ${logoClementine}
|
|
|
192
192
|
<% } %>
|
|
193
193
|
Nos horaires : <%= horaires %>
|
|
194
194
|
|
|
195
|
-
<% if(
|
|
196
|
-
Adresse :
|
|
195
|
+
<% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
|
|
196
|
+
<br/>Adresse : 11, Boulevard Victor Hugo - Nice
|
|
197
197
|
<% } %>
|
|
198
198
|
</p>
|
|
199
199
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(!['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n Adresse : <%- brandPostalAddress %> - <%- brandCity %>\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
|
1
|
+
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n <br/>Adresse : 11, Boulevard Victor Hugo - Nice\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateOrUpdateAccessToken, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
2
|
+
import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
3
3
|
export declare class BudgetInsight extends Resource {
|
|
4
4
|
getTokens(): Promise<IAccessToken | null>;
|
|
5
5
|
getTemporaryToken(): Promise<ReadTemporaryCode>;
|
|
6
6
|
updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken>;
|
|
7
7
|
authentificate(): Promise<IAccessToken>;
|
|
8
8
|
getAllConnections(): Promise<ReadUserConnection[]>;
|
|
9
|
+
deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=BudgetInsight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE5I,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI/C,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAIvC,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxE"}
|
|
@@ -15,5 +15,8 @@ export class BudgetInsight extends Resource {
|
|
|
15
15
|
getAllConnections() {
|
|
16
16
|
return this.axios.$get('/connectors/budget-insight/connections');
|
|
17
17
|
}
|
|
18
|
+
deleteConnection(payload) {
|
|
19
|
+
return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
//# sourceMappingURL=BudgetInsight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IACxE,CAAC;IAED,mBAAmB,CAAC,OAAkC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IACvE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateOrUpdateAccessToken, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';\n\nexport class BudgetInsight extends Resource {\n getTokens(): Promise<IAccessToken | null> {\n return this.axios.$get('/connectors/budget-insight/tokens');\n }\n\n getTemporaryToken(): Promise<ReadTemporaryCode> {\n return this.axios.$get('/connectors/budget-insight/tokens/temporary');\n }\n\n updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/tokens', payload);\n }\n\n authentificate(): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/authentificate');\n }\n\n getAllConnections(): Promise<ReadUserConnection[]> {\n return this.axios.$get('/connectors/budget-insight/connections');\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IACxE,CAAC;IAED,mBAAmB,CAAC,OAAkC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IACvE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACnE,CAAC;IAED,gBAAgB,CAAC,OAAsC;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,wCAAwC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';\n\nexport class BudgetInsight extends Resource {\n getTokens(): Promise<IAccessToken | null> {\n return this.axios.$get('/connectors/budget-insight/tokens');\n }\n\n getTemporaryToken(): Promise<ReadTemporaryCode> {\n return this.axios.$get('/connectors/budget-insight/tokens/temporary');\n }\n\n updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/tokens', payload);\n }\n\n authentificate(): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/authentificate');\n }\n\n getAllConnections(): Promise<ReadUserConnection[]> {\n return this.axios.$get('/connectors/budget-insight/connections');\n }\n\n deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true> {\n return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });\n }\n}"]}
|
|
@@ -8,6 +8,7 @@ export declare class CalendarEvent extends Resource {
|
|
|
8
8
|
get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent>;
|
|
9
9
|
getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent>;
|
|
10
10
|
calculateRealtimeEvent(params: GetAllCalendarEvent): Promise<number>;
|
|
11
|
+
exportCalendarEventCalendly(params: GetAllCalendarEvent): Promise<void>;
|
|
11
12
|
update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent>;
|
|
12
13
|
delete(id: number): Promise<number>;
|
|
13
14
|
deleteByUser(id: number, idUser: number): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,2BAA2B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EACjM,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI3E,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1E,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIpE,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI7F,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarEvent.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,2BAA2B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EACjM,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI3E,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1E,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIpE,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI7F,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7D,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW9E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIzE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1D"}
|
|
@@ -18,6 +18,15 @@ export class CalendarEvent extends Resource {
|
|
|
18
18
|
calculateRealtimeEvent(params) {
|
|
19
19
|
return this.axios.$get('/calendar-events/calculate-realtime-event', { params });
|
|
20
20
|
}
|
|
21
|
+
exportCalendarEventCalendly(params) {
|
|
22
|
+
return this.axios.$get('/calendar-events/calendly', {
|
|
23
|
+
responseType: 'arraybuffer',
|
|
24
|
+
headers: {
|
|
25
|
+
Accept: 'application/csv',
|
|
26
|
+
},
|
|
27
|
+
params,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
21
30
|
update(id, payload) {
|
|
22
31
|
return this.axios.$put(`/calendar-events/${id}`, payload);
|
|
23
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.js","sourceRoot":"","sources":["../../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,gBAAgB,CAAC,MAA8B;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,MAA0B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,MAA2B,EAAE,WAAyB;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACtG,CAAC;IAED,sBAAsB,CAAC,MAA2B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA4B;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,EAAU,EAAE,MAAc;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,MAAM,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreateCalendarEventForUsers, GetAllCalendarEvent, GetLastInvalidateEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.$post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.$post('/calendar-events/verify', payload);\n }\n\n verifyInvalidate(params: GetLastInvalidateEvent): Promise<Date> {\n return this.axios.$get('/calendar-events/verify-invalidate', { params });\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.$get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent> {\n return this.axios.$get('/calendar-events/all', { ...(cancelToken ? { cancelToken } : {}), params });\n }\n\n calculateRealtimeEvent(params: GetAllCalendarEvent): Promise<number> {\n return this.axios.$get('/calendar-events/calculate-realtime-event', { params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.$put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/calendar-events/${id}`);\n }\n\n deleteByUser(id: number, idUser: number): Promise<number> {\n return this.axios.$delete(`users/${idUser}/calendar-events/${id}`);\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"CalendarEvent.js","sourceRoot":"","sources":["../../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,gBAAgB,CAAC,MAA8B;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,MAA0B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,MAA2B,EAAE,WAAyB;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACtG,CAAC;IAED,sBAAsB,CAAC,MAA2B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAEM,2BAA2B,CAAC,MAA2B;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2BAA2B,EAAE;YAClD,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;YACD,MAAM;SACP,CAAC,CAAC;IAEL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA4B;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,EAAU,EAAE,MAAc;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,MAAM,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreateCalendarEventForUsers, GetAllCalendarEvent, GetLastInvalidateEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.$post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.$post('/calendar-events/verify', payload);\n }\n\n verifyInvalidate(params: GetLastInvalidateEvent): Promise<Date> {\n return this.axios.$get('/calendar-events/verify-invalidate', { params });\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.$get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent> {\n return this.axios.$get('/calendar-events/all', { ...(cancelToken ? { cancelToken } : {}), params });\n }\n\n calculateRealtimeEvent(params: GetAllCalendarEvent): Promise<number> {\n return this.axios.$get('/calendar-events/calculate-realtime-event', { params });\n }\n\n public exportCalendarEventCalendly(params: GetAllCalendarEvent): Promise<void> {\n return this.axios.$get('/calendar-events/calendly', {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n params,\n });\n\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.$put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/calendar-events/${id}`);\n }\n\n deleteByUser(id: number, idUser: number): Promise<number> {\n return this.axios.$delete(`users/${idUser}/calendar-events/${id}`);\n }\n}"]}
|
|
@@ -7,9 +7,12 @@ export declare enum RedactorDesignation {
|
|
|
7
7
|
export declare enum Rof {
|
|
8
8
|
TVA = "TVA1",
|
|
9
9
|
BNC = "BNC1",
|
|
10
|
+
BNC2 = "BNC2",
|
|
11
|
+
BNC3 = "BNC3",
|
|
10
12
|
IS = "IS1",
|
|
11
13
|
BIC = "BIC1",
|
|
12
|
-
BIC2 = "BIC2"
|
|
14
|
+
BIC2 = "BIC2",
|
|
15
|
+
BIC3 = "BIC3"
|
|
13
16
|
}
|
|
14
17
|
export declare enum AsponeTaxSystem {
|
|
15
18
|
BN = "BN",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aspone.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,gBAAgB;IACnB,IAAI,iBAAiB;IACrB,OAAO,iBAAiB;IACxB,IAAI,iBAAiB;CACtB;AAED,oBAAY,GAAG;IACb,GAAG,SAAS;IACZ,GAAG,SAAS;IACZ,EAAE,QAAQ;IACV,GAAG,SAAS;IACZ,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,SAAS,OAAO;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,aAAa;IACvB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,eAAe,MAAM;IACrB,SAAS,MAAM;IACf,KAAK,MAAM;CACZ;AAED,oBAAY,SAAS;IACnB,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,gBAAgB,QAAQ;IACxB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,OAAO,QAAQ;IACf,KAAK,QAAQ;CACd"}
|
|
1
|
+
{"version":3,"file":"Aspone.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,gBAAgB;IACnB,IAAI,iBAAiB;IACrB,OAAO,iBAAiB;IACxB,IAAI,iBAAiB;CACtB;AAED,oBAAY,GAAG;IACb,GAAG,SAAS;IACZ,GAAG,SAAS;IACZ,IAAI,SAAS;IACb,IAAI,SAAS;IACb,EAAE,QAAQ;IACV,GAAG,SAAS;IACZ,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,SAAS,OAAO;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,aAAa;IACvB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,eAAe,MAAM;IACrB,SAAS,MAAM;IACf,KAAK,MAAM;CACZ;AAED,oBAAY,SAAS;IACnB,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,gBAAgB,QAAQ;IACxB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,OAAO,QAAQ;IACf,KAAK,QAAQ;CACd"}
|
|
@@ -9,9 +9,12 @@ export var Rof;
|
|
|
9
9
|
(function (Rof) {
|
|
10
10
|
Rof["TVA"] = "TVA1";
|
|
11
11
|
Rof["BNC"] = "BNC1";
|
|
12
|
+
Rof["BNC2"] = "BNC2";
|
|
13
|
+
Rof["BNC3"] = "BNC3";
|
|
12
14
|
Rof["IS"] = "IS1";
|
|
13
15
|
Rof["BIC"] = "BIC1";
|
|
14
16
|
Rof["BIC2"] = "BIC2";
|
|
17
|
+
Rof["BIC3"] = "BIC3";
|
|
15
18
|
})(Rof || (Rof = {}));
|
|
16
19
|
export var AsponeTaxSystem;
|
|
17
20
|
(function (AsponeTaxSystem) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aspone.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,+CAAwB,CAAA;IACxB,4CAAqB,CAAA;AACvB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"Aspone.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,+CAAwB,CAAA;IACxB,4CAAqB,CAAA;AACvB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,GASX;AATD,WAAY,GAAG;IACb,mBAAY,CAAA;IACZ,mBAAY,CAAA;IACZ,oBAAa,CAAA;IACb,oBAAa,CAAA;IACb,iBAAU,CAAA;IACV,mBAAY,CAAA;IACZ,oBAAa,CAAA;IACb,oBAAa,CAAA;AACf,CAAC,EATW,GAAG,KAAH,GAAG,QASd;AAED,MAAM,CAAN,IAAY,eAgBX;AAhBD,WAAY,eAAe;IACzB,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,mCAAgB,CAAA;IAChB,4BAAS,CAAA;IACT,4BAAS,CAAA;AACX,CAAC,EAhBW,eAAe,KAAf,eAAe,QAgB1B;AAED,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;IACT,8BAAS,CAAA;AACX,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,0BAAS,CAAA;AACX,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,wBAAW,CAAA;AACb,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,2BAAc,CAAA;IACd,qCAAwB,CAAA;IACxB,wBAAW,CAAA;AACb,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB","sourcesContent":["export enum RedactorDesignation {\n TVA = 'CEC_EDI_TVA',\n TDFC = 'CEC_EDI_TDFC',\n PAYMENT = 'CEC_EDI_PAYE',\n PART = 'ENT_EDI_PART',\n}\n\nexport enum Rof {\n TVA = 'TVA1',\n BNC = 'BNC1',\n BNC2 = 'BNC2',\n BNC3 = 'BNC3',\n IS = 'IS1',\n BIC = 'BIC1',\n BIC2 = 'BIC2',\n BIC3 = 'BIC3',\n}\n\nexport enum AsponeTaxSystem {\n BN = 'BN', // Catégorie fiscale BA régime réel normal\n BS = 'BS', // Catégorie fiscale BA régime réel simplifié\n DC = 'DC', // Catégorie fiscale BNC régime de la déclaration contrôlée\n RN = 'RN', // Catégorie fiscale BIC/IS régime réel normal\n RS = 'RS', // Catégorie fiscale BIC/IS régime réel simplifié\n GM = 'GM', // Catégorie fiscale IS régime de groupe société membre du groupe\n GT = 'GT', // Catégorie fiscale IS régime de groupe société tête de groupe\n NE = 'NE', // Catégorie fiscale IS régime normal étranger\n SE = 'SE', // Catégorie fiscale IS régime simplifié étranger\n MN = 'MN', // Catégorie fiscale BIC/IR SCM option pour le régime réel\n MS = 'MS', // Catégorie fiscale BIC/IR SCM sans option (régime simplifié)\n TR = 'TR', // Catégorie fiscale RF tous régimes, hors sociétés immobilières déposant des 2072\n IMMO_2072 = '72', // Catégorie fiscale RF des sociétés immobilières déposant des 2072\n CV = 'CV', // Dépôt catégorie CVAE\n CF = 'CF', // Dépôt catégorie CF\n}\n\nexport enum AsponeTaxCategory {\n BI = 'BI', // Catégorie fiscale BIC/IS\n BA = 'BA', // Catégorie fiscale BA\n BC = 'BC', // Catégorie fiscale BNC\n RF = 'RF', // Catégorie fiscale RF\n FL = 'FL', // Catégorie de dépôt fiscalité locale\n}\n\nexport enum AsponeTaxType {\n IR = 'IR',\n IS = 'IS',\n}\n\nexport enum AsponeDepositType {\n DPR = 'DPR', // Dépôt provisoire\n NOR = 'NOR', // NOR = Dépôt non provisoire\n}\n\nexport enum AsponeTTV {\n TOURISM_VEHICLE = 'T',\n MOTORBIKE = 'M',\n MOPED = 'V',\n}\n\nexport enum AsponeTTC {\n SUPER = 'SPR',\n DIESEL = 'DSL',\n SUPER_SANS_PLOMB = 'SSP',\n GPL = 'GPL',\n}\n\nexport enum AsponeTCD {\n CESSION = 'CSS',\n DEATH = 'DCD',\n}"]}
|
|
@@ -313,9 +313,9 @@ export const BrandClementine = [
|
|
|
313
313
|
footerColor: '#f3692f',
|
|
314
314
|
},
|
|
315
315
|
listPhones: {
|
|
316
|
-
contact: '
|
|
317
|
-
qualite: '
|
|
318
|
-
juridique: '
|
|
316
|
+
contact: '03 83 93 14 14',
|
|
317
|
+
qualite: '03 83 93 14 14',
|
|
318
|
+
juridique: '03 83 93 14 14',
|
|
319
319
|
},
|
|
320
320
|
listMails: {
|
|
321
321
|
contact: 'comptastart@legalstart.fr',
|