@silexpert/core 1.3.37-5 → 1.3.37
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/Card.d.ts +2 -18
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +0 -19
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +22 -110
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +26 -162
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.js +43 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js +13 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
- package/dist/cjs/types/Enum/TimeCounterType.d.ts +362 -9
- package/dist/cjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.js +0 -8
- package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +2 -38
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js +0 -7
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -20
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.d.ts +0 -2
- package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/subscription.js +1 -1
- package/dist/cjs/utils/subscription.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +2 -18
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +0 -19
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +22 -110
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +26 -162
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.js +40 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js +10 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
- package/dist/mjs/types/Enum/TimeCounterType.d.ts +362 -9
- package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.js +0 -8
- package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +2 -42
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js +1 -9
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -20
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.d.ts +0 -2
- package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/subscription.js +1 -1
- package/dist/mjs/utils/subscription.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +1 -25
- package/ts/api/resources/SocietyDetail.ts +1 -1
- package/ts/types/Enum/Card.ts +29 -174
- package/ts/types/Enum/PartneredAccountantServiceType.ts +51 -0
- package/ts/types/Enum/PartneredAccountantServiceTypeId.ts +8 -0
- package/ts/types/Enum/TimeCounterType.ts +1 -18
- package/ts/types/Interface/api/card/UpdateCard.ts +2 -32
- package/ts/types/Interface/api/team/QueryUpdate.ts +1 -7
- package/ts/types/Interface/models/ICard.ts +0 -20
- package/ts/types/Interface/models/ITeam.ts +0 -2
- package/ts/types/index.ts +2 -1
- package/ts/utils/subscription.ts +1 -1
- package/dist/cjs/types/Enum/TeamType.d.ts +0 -16
- package/dist/cjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/TeamType.js +0 -57
- package/dist/cjs/types/Enum/TeamType.js.map +0 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +0 -16
- package/dist/mjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/TeamType.js +0 -54
- package/dist/mjs/types/Enum/TeamType.js.map +0 -1
- package/ts/types/Enum/TeamType.ts +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../ts/utils/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAkBpD,MAAM,SAAS,GAAY,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../ts/utils/subscription.ts"],"names":[],"mappings":"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","sourcesContent":["import { ComptaType } from '../types/Enum/ComptaType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { TaxSystem } from '../types/Enum/TaxSystem';\n\ninterface OfferParams {\n idLegalForm: LegalFormTypeEnum | null;\n idComptaType: ComptaType | null;\n idTaxSystem: TaxSystem | null;\n isYearly?: boolean;\n}\n\ninterface StripeOffer {\n name: string;\n isYearly: boolean;\n isMicro: boolean;\n key: string;\n isCashBased: boolean;\n isSocietyTax?: boolean;\n}\n\nconst isTestKey: boolean = ['dev', 'staging', 'development', 'test', 'gitlab'].includes(process.env.NODE_ENV ?? '');\n\n// AE | Annuel | Forfait Bilan complet\nconst ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey ? 'price_1PFyHHIHo1jEedppVjwrqPr1' : 'price_1MRyi1IHo1jEedppRKdY06Re';\n\n// AE | Mensuel | Forfait Bilan complet\nconst ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey ? 'price_1LBJ4xIHo1jEedppylxr3fFa' : 'price_1LBI57IHo1jEedpppnxskfgv';\n\n// Entreprise | Annuel | Forfait entreprise à l'IR\nconst ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey\n ? 'price_1PFyG8IHo1jEedpp73TUxiJd'\n : 'price_1MRyiJIHo1jEedppUe7MnPtW';\n\n// Entreprise | Mensuel | Forfaitentreprise à l'IR\nconst ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey\n ? 'price_1LBJ5YIHo1jEedppzwTErh9M'\n : 'price_1LBIA3IHo1jEedpp2taeQ7yW';\n\n// Entreprise | Annuel | Forfait entreprise à l'IS\nconst ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey\n ? 'price_1PFwE3IHo1jEedpphgWrgwkA'\n : 'price_1MRyiWIHo1jEedppp5tnksZe';\n\n// Entreprise | Mensuel | Forfait entreprise à l'IS\nconst ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey\n ? 'price_1LBJ69IHo1jEedppAWLeOk3I'\n : 'price_1LBIB7IHo1jEedppocxyc1ft';\n\nexport const stripeTaxRate = isTestKey ? 'txr_1I9X9MIHo1jEedppM0DqL4iE' : 'txr_1I9X5wIHo1jEedppYttGFc0N';\n\nconst list: StripeOffer[] = [\n {\n name: 'Offre auto-entrepreneur',\n isYearly: true,\n isMicro: true,\n key: ID_SUBSCRIPTION_MICRO_ANNUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n {\n name: 'Offre auto-entrepreneur',\n isYearly: false,\n isMicro: true,\n key: ID_SUBSCRIPTION_MICRO_MENSUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n {\n name: 'Offre entreprise IS',\n isYearly: true,\n isMicro: false,\n key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,\n isCashBased: false,\n isSocietyTax: true,\n },\n {\n name: 'Offre entreprise IS',\n isMicro: false,\n isYearly: false,\n key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,\n isCashBased: false,\n isSocietyTax: true,\n },\n {\n name: 'Offre entreprise IR',\n isMicro: false,\n isYearly: true,\n isCashBased: true,\n isSocietyTax: false,\n key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,\n },\n {\n name: 'Offre entreprise IR',\n isMicro: false,\n isYearly: false,\n key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n];\n\nexport function getDefaultOffer(params: OfferParams): StripeOffer {\n const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;\n\n const isMicro = LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;\n const isCashBased = idComptaType\n ? [ComptaType.CASH_BASED, ComptaType.CASH_BASED_ASSISTANCE, ComptaType.CASH_BASED_SEIZURE].includes(idComptaType)\n : false;\n const isSocietyTax = idTaxSystem === TaxSystem.IS;\n\n const newPlan = list.find(\n (l) =>\n l.isMicro === isMicro &&\n l.isYearly === isYearly &&\n l.isCashBased === isCashBased &&\n l.isSocietyTax === isSocietyTax,\n );\n\n if (newPlan) {\n return newPlan;\n }\n\n return isYearly ? list[2] : list[3];\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.37
|
|
3
|
+
"version": "1.3.37",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
package/ts/api/resources/Card.ts
CHANGED
|
@@ -13,9 +13,6 @@ import {
|
|
|
13
13
|
OrganizeBalanceSheetsResponse,
|
|
14
14
|
QueryInternalCardsStats,
|
|
15
15
|
InternalCardStats,
|
|
16
|
-
BasePaginate,
|
|
17
|
-
UpdateCardV2,
|
|
18
|
-
CardType,
|
|
19
16
|
} from '../../types';
|
|
20
17
|
|
|
21
18
|
export class Card extends Resource {
|
|
@@ -32,7 +29,7 @@ export class Card extends Resource {
|
|
|
32
29
|
});
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<
|
|
32
|
+
getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<ICard[]> {
|
|
36
33
|
return this.axios.$get('/cards/paginated', {
|
|
37
34
|
...(signal ? { signal } : {}),
|
|
38
35
|
params,
|
|
@@ -63,9 +60,6 @@ export class Card extends Resource {
|
|
|
63
60
|
});
|
|
64
61
|
}
|
|
65
62
|
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Use updateV2 instead
|
|
68
|
-
*/
|
|
69
63
|
update(id: number, data: UpdateCard): Promise<ICard> {
|
|
70
64
|
return this.axios.$put(`/cards/${id}`, data);
|
|
71
65
|
}
|
|
@@ -74,33 +68,15 @@ export class Card extends Resource {
|
|
|
74
68
|
return this.axios.$delete(`/cards/${id}`);
|
|
75
69
|
}
|
|
76
70
|
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated comptallo v1 endpoint
|
|
79
|
-
*/
|
|
80
71
|
modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true> {
|
|
81
72
|
return this.axios.$put('/cards/assign/modify-team-planning', data);
|
|
82
73
|
}
|
|
83
74
|
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated comptallo v1 endpoint
|
|
86
|
-
*/
|
|
87
75
|
modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true> {
|
|
88
76
|
return this.axios.$put('/cards/assign/modify-exercise-planning', data);
|
|
89
77
|
}
|
|
90
78
|
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated comptallo v1 endpoint
|
|
93
|
-
*/
|
|
94
79
|
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse> {
|
|
95
80
|
return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);
|
|
96
81
|
}
|
|
97
|
-
|
|
98
|
-
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard> {
|
|
99
|
-
return this.axios.$put(`/cards/${idCard}/v2`, data);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// TODO: improve types
|
|
103
|
-
assignCard(payload: { type: CardType }): Promise<ICard> {
|
|
104
|
-
return this.axios.$post('/cards/assignment', payload);
|
|
105
|
-
}
|
|
106
82
|
}
|
|
@@ -7,6 +7,6 @@ export class SocietyDetail extends Resource {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
updateOrCreate(idSociety: number, params: ISocietyDetail): Promise<ISocietyDetail> {
|
|
10
|
-
return this.axios.$post(`/societies/${idSociety}/details`, params);
|
|
10
|
+
return this.axios.$post(`/societies/${idSociety}/details`, { params });
|
|
11
11
|
}
|
|
12
12
|
}
|
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Role } from './Role';
|
|
2
|
-
import { TeamType } from './TeamType';
|
|
3
2
|
|
|
4
3
|
export enum CardType {
|
|
5
4
|
BALANCE_SHEET = 1,
|
|
@@ -11,119 +10,60 @@ export enum CardType {
|
|
|
11
10
|
// REINFORCED_CHECKLIST = 7,
|
|
12
11
|
CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,
|
|
13
12
|
CHECK_BALANCE_ANNOTATION = 9,
|
|
14
|
-
SETUP_BANK_ACCOUNT = 10, // Mise en place banque
|
|
15
|
-
UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire
|
|
16
|
-
UPDATE_ANNOTATIONS = 12, // MAJ Annotations
|
|
17
|
-
CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage
|
|
18
|
-
SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1
|
|
19
|
-
VAT_REFUSED = 15, // TVA Refus (Refus SIE + Refus client)
|
|
20
|
-
ADVANCE_IS = 16, // Acompte IS
|
|
21
|
-
VAT_EXPRESS = 17, // TVA EXPRESS
|
|
22
|
-
ADVANCE_IS_REFUSED = 18, // Acompte Refus SIE
|
|
23
|
-
CLR = 19, // CLR
|
|
24
|
-
CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)
|
|
25
|
-
CUT_OFF = 21, // Cut Off
|
|
26
|
-
BALANCE_SHEET_PREPARATION = 22, // Préparation et Formalisation du Bilan
|
|
27
|
-
BALANCE_SHEET_SEND_SIE = 23, // Envoi du bilan SIE
|
|
28
|
-
BALANCE_SHEET_REFUSED = 24, // Bilan Refus (Refus SIE + Refus client)
|
|
29
13
|
}
|
|
30
14
|
|
|
31
15
|
export enum CardState {
|
|
32
16
|
TODO = 1,
|
|
33
17
|
IN_PROGRESS = 2,
|
|
34
18
|
DONE = 3,
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
// ETAT "Calculer" pour le front mais pas en base
|
|
20
|
+
// - Non Fait => si date passé et tjs dans l'état A faire ou En cours
|
|
21
|
+
// - Non Terminée => Sélectionable si l'état est en cours et qu'on arrive à la fin de journée pour reportée. Et passe donc en A faire un jour suivant
|
|
22
|
+
// - Reportée => Toutes les cards avec au moins 2 history et dans l'était Todo ou In progress
|
|
23
|
+
// - Non Plannifiable => Toutes les cards A faire non plannifiée
|
|
37
24
|
}
|
|
38
25
|
|
|
39
26
|
export enum CardGroupEnum {
|
|
40
27
|
BALANCE_SHEET_GROUP = 1,
|
|
41
28
|
VAT_GROUP = 2,
|
|
29
|
+
// REINFORCED_CHECKLIST_GROUP = 3,
|
|
42
30
|
ACCEPTATION_GROUP = 4,
|
|
43
|
-
CARRY_FORWARD = 5, // A nouveaux
|
|
44
|
-
BANK = 6,
|
|
45
|
-
ANNOTATION = 7,
|
|
46
|
-
CLR = 8,
|
|
47
|
-
CUT_OFF = 9,
|
|
48
31
|
}
|
|
49
32
|
|
|
50
|
-
export
|
|
51
|
-
id: CardGroupEnum;
|
|
52
|
-
label: string;
|
|
53
|
-
types: CardType[];
|
|
54
|
-
roles: Role[];
|
|
55
|
-
maxByDay?: number;
|
|
56
|
-
teamType: TeamType;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const CardGroup: readonly CardGroupType[] = [
|
|
33
|
+
export const CardGroup = [
|
|
60
34
|
{
|
|
61
35
|
id: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
62
36
|
label: 'Bilans',
|
|
63
37
|
types: [
|
|
64
|
-
CardType.
|
|
65
|
-
CardType.
|
|
66
|
-
CardType.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
38
|
+
CardType.BALANCE_SHEET,
|
|
39
|
+
CardType.BALANCE_SHEET_INTERMEDIATE,
|
|
40
|
+
CardType.BALANCE_SHEET_PREVISIONAL,
|
|
41
|
+
CardType.BALANCE_SHEET_LIQUIDATION,
|
|
42
|
+
CardType.BALANCE_SHEET_EXPRESS,
|
|
43
|
+
] as CardType[],
|
|
44
|
+
roles: [Role.FRONT_OFFICE],
|
|
70
45
|
maxByDay: 3,
|
|
71
46
|
},
|
|
72
47
|
{
|
|
73
48
|
id: CardGroupEnum.VAT_GROUP,
|
|
74
49
|
label: 'Déclarations',
|
|
75
|
-
types: [CardType.VAT
|
|
76
|
-
roles: [Role.
|
|
77
|
-
teamType: TeamType.VAT,
|
|
50
|
+
types: [CardType.VAT] as CardType[],
|
|
51
|
+
roles: [Role.FRONT_OFFICE],
|
|
78
52
|
maxByDay: 6,
|
|
79
53
|
},
|
|
54
|
+
// {
|
|
55
|
+
// id: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,
|
|
56
|
+
// label: 'Checklist',
|
|
57
|
+
// types: [CardType.REINFORCED_CHECKLIST],
|
|
58
|
+
// roles: [Role.FRONT_OFFICE],
|
|
59
|
+
// maxByDay: 6,
|
|
60
|
+
// },
|
|
80
61
|
{
|
|
81
62
|
id: CardGroupEnum.ACCEPTATION_GROUP,
|
|
82
63
|
label: 'Contrôle solde bancaire & annotations',
|
|
83
|
-
types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION],
|
|
64
|
+
types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION] as CardType[],
|
|
84
65
|
roles: [Role.DATA_OFFICER],
|
|
85
66
|
maxByDay: 25,
|
|
86
|
-
teamType: TeamType.ACCEPTATION,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: CardGroupEnum.CARRY_FORWARD,
|
|
90
|
-
label: 'A nouveaux',
|
|
91
|
-
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
|
|
92
|
-
roles: [Role.ACCOUNTANT],
|
|
93
|
-
maxByDay: 3,
|
|
94
|
-
teamType: TeamType.CARRY_FORWARD,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: CardGroupEnum.BANK,
|
|
98
|
-
label: 'Banque',
|
|
99
|
-
types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],
|
|
100
|
-
roles: [Role.ACCOUNTANT],
|
|
101
|
-
maxByDay: 3,
|
|
102
|
-
teamType: TeamType.BANK,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: CardGroupEnum.ANNOTATION,
|
|
106
|
-
label: 'Annotations',
|
|
107
|
-
types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],
|
|
108
|
-
roles: [Role.ACCOUNTANT],
|
|
109
|
-
maxByDay: 3,
|
|
110
|
-
teamType: TeamType.ANNOTATION,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: CardGroupEnum.CLR,
|
|
114
|
-
label: 'CLR',
|
|
115
|
-
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION],
|
|
116
|
-
roles: [Role.ACCOUNTANT],
|
|
117
|
-
maxByDay: 3,
|
|
118
|
-
teamType: TeamType.CLR,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: CardGroupEnum.CUT_OFF,
|
|
122
|
-
label: 'Cut Off',
|
|
123
|
-
types: [CardType.CUT_OFF],
|
|
124
|
-
roles: [Role.ACCOUNTANT],
|
|
125
|
-
maxByDay: 3,
|
|
126
|
-
teamType: TeamType.CUT_OFF,
|
|
127
67
|
},
|
|
128
68
|
] as const;
|
|
129
69
|
|
|
@@ -158,54 +98,17 @@ export const CardTypeLabel = [
|
|
|
158
98
|
refLabel: 'BE',
|
|
159
99
|
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
160
100
|
},
|
|
161
|
-
{
|
|
162
|
-
id: CardType.BALANCE_SHEET_PREPARATION,
|
|
163
|
-
label: 'Préparation et Formalisation du Bilan',
|
|
164
|
-
refLabel: 'PFB',
|
|
165
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
id: CardType.BALANCE_SHEET_SEND_SIE,
|
|
169
|
-
label: 'Envoi du bilan SIE',
|
|
170
|
-
refLabel: 'EBS',
|
|
171
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
id: CardType.BALANCE_SHEET_REFUSED,
|
|
175
|
-
label: 'Bilan Refus SIE',
|
|
176
|
-
refLabel: 'BRS',
|
|
177
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
178
|
-
},
|
|
179
101
|
{
|
|
180
102
|
id: CardType.VAT,
|
|
181
103
|
label: 'TVA',
|
|
182
104
|
refLabel: 'TVA',
|
|
183
105
|
groupId: CardGroupEnum.VAT_GROUP,
|
|
184
106
|
},
|
|
185
|
-
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: CardType.VAT_REFUSED,
|
|
193
|
-
label: 'TVA Refus SIE',
|
|
194
|
-
refLabel: 'TVARS',
|
|
195
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: CardType.ADVANCE_IS,
|
|
199
|
-
label: 'Acompte IS',
|
|
200
|
-
refLabel: 'AIS',
|
|
201
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: CardType.ADVANCE_IS_REFUSED,
|
|
205
|
-
label: 'Acompte Refus SIE',
|
|
206
|
-
refLabel: 'ARS',
|
|
207
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
208
|
-
},
|
|
107
|
+
// {
|
|
108
|
+
// id: CardType.REINFORCED_CHECKLIST,
|
|
109
|
+
// label: 'Checklist',
|
|
110
|
+
// groupId: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,
|
|
111
|
+
// },
|
|
209
112
|
{
|
|
210
113
|
id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
|
|
211
114
|
label: 'Contrôle solde bancaire & mise en place annotation nouveau client',
|
|
@@ -218,54 +121,6 @@ export const CardTypeLabel = [
|
|
|
218
121
|
refLabel: 'LABC',
|
|
219
122
|
groupId: CardGroupEnum.ACCEPTATION_GROUP,
|
|
220
123
|
},
|
|
221
|
-
{
|
|
222
|
-
id: CardType.SETUP_BANK_ACCOUNT,
|
|
223
|
-
label: 'Mise en place banque',
|
|
224
|
-
refLabel: 'MPB',
|
|
225
|
-
groupId: CardGroupEnum.BANK,
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
id: CardType.UPDATE_BANK_BALANCE,
|
|
229
|
-
label: 'MAJ du solde bancaire',
|
|
230
|
-
refLabel: 'MSB',
|
|
231
|
-
groupId: CardGroupEnum.BANK,
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
id: CardType.UPDATE_ANNOTATIONS,
|
|
235
|
-
label: 'MAJ Annotations',
|
|
236
|
-
refLabel: 'MA',
|
|
237
|
-
groupId: CardGroupEnum.ANNOTATION,
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
id: CardType.CONTROL_REVISION_SURVEY,
|
|
241
|
-
label: 'Contrôle/Revision/Sondage',
|
|
242
|
-
refLabel: 'CRS',
|
|
243
|
-
groupId: CardGroupEnum.ANNOTATION,
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,
|
|
247
|
-
label: 'Paramétrage & Intégration N-1',
|
|
248
|
-
refLabel: 'PIN1',
|
|
249
|
-
groupId: CardGroupEnum.CARRY_FORWARD,
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
id: CardType.CLR,
|
|
253
|
-
label: 'CLR',
|
|
254
|
-
refLabel: 'CLR',
|
|
255
|
-
groupId: CardGroupEnum.CLR,
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
id: CardType.CLR_EXCEPTIONAL_MISSION,
|
|
259
|
-
label: 'CLR mission exceptionnelle (V2)',
|
|
260
|
-
refLabel: 'CLRM',
|
|
261
|
-
groupId: CardGroupEnum.CLR,
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
id: CardType.CUT_OFF,
|
|
265
|
-
label: 'Cut Off',
|
|
266
|
-
refLabel: 'CO',
|
|
267
|
-
groupId: CardGroupEnum.CUT_OFF,
|
|
268
|
-
},
|
|
269
124
|
] as const;
|
|
270
125
|
|
|
271
126
|
export interface UserCardsStats {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PartneredAccountantServiceTypeId } from './PartneredAccountantServiceTypeId';
|
|
2
|
+
|
|
3
|
+
export type PartneredAccountantServiceTypeTypeContent = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
imageSVG: string;
|
|
7
|
+
imagePNG: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type PartneredAccountantServiceTypeType = {
|
|
11
|
+
[key: string]: PartneredAccountantServiceTypeTypeContent;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const PartneredAccountantServiceType: PartneredAccountantServiceTypeType = {
|
|
15
|
+
CERTIFICATION: {
|
|
16
|
+
id: PartneredAccountantServiceTypeId.CERTIFICATION,
|
|
17
|
+
name: 'Certification du bilan',
|
|
18
|
+
imageSVG: 'certificationDuBilan.svg',
|
|
19
|
+
imagePNG: 'Icon_3.png',
|
|
20
|
+
},
|
|
21
|
+
FOLLOW_UP: {
|
|
22
|
+
id: PartneredAccountantServiceTypeId.FOLLOW_UP,
|
|
23
|
+
name: 'Suivi comptable',
|
|
24
|
+
imageSVG: 'suiviMensuel.svg',
|
|
25
|
+
imagePNG: 'Icon_1.png',
|
|
26
|
+
},
|
|
27
|
+
FORECAST: {
|
|
28
|
+
id: PartneredAccountantServiceTypeId.FORECAST,
|
|
29
|
+
name: 'Bilan prévisionnel',
|
|
30
|
+
imageSVG: 'bilanPrevisionnel.svg',
|
|
31
|
+
imagePNG: 'Icon_2.png',
|
|
32
|
+
},
|
|
33
|
+
CREATION_DISSOLUTION: {
|
|
34
|
+
id: PartneredAccountantServiceTypeId.CREATION_DISSOLUTION,
|
|
35
|
+
name: 'Constitution/ dissolution',
|
|
36
|
+
imageSVG: 'dissolution.svg',
|
|
37
|
+
imagePNG: 'Icon_8.png',
|
|
38
|
+
},
|
|
39
|
+
LIQUIDATION: {
|
|
40
|
+
id: PartneredAccountantServiceTypeId.LIQUIDATION,
|
|
41
|
+
name: 'Bilan de liquidation',
|
|
42
|
+
imageSVG: 'bilanLiquidation.svg',
|
|
43
|
+
imagePNG: 'Icon_7.png',
|
|
44
|
+
},
|
|
45
|
+
OTHER: {
|
|
46
|
+
id: PartneredAccountantServiceTypeId.OTHER,
|
|
47
|
+
name: 'Conseils et autres',
|
|
48
|
+
imageSVG: 'prestationGenerique.svg',
|
|
49
|
+
imagePNG: 'Icon_9.png',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { Role } from './Role';
|
|
2
2
|
|
|
3
|
-
export interface TimeCounterTypeInterface {
|
|
4
|
-
id: number;
|
|
5
|
-
label: string;
|
|
6
|
-
aberrantTime: number;
|
|
7
|
-
limitedRoles: Role[] | null;
|
|
8
|
-
color: string;
|
|
9
|
-
isOverlappable: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
3
|
/**
|
|
13
4
|
* Pour les calendarEvent, utilisé comme type principal
|
|
14
5
|
*/
|
|
15
|
-
export const TimeCounterType
|
|
6
|
+
export const TimeCounterType = {
|
|
16
7
|
ONBOARDING: {
|
|
17
8
|
id: 1,
|
|
18
9
|
label: 'OnBoarding',
|
|
@@ -391,12 +382,4 @@ export const TimeCounterType: Record<string, TimeCounterTypeInterface> = {
|
|
|
391
382
|
color: 'fern-dark',
|
|
392
383
|
isOverlappable: false,
|
|
393
384
|
},
|
|
394
|
-
CARD: {
|
|
395
|
-
id: 46,
|
|
396
|
-
label: 'Comptallo',
|
|
397
|
-
aberrantTime: 15,
|
|
398
|
-
limitedRoles: null,
|
|
399
|
-
color: 'fire',
|
|
400
|
-
isOverlappable: true,
|
|
401
|
-
}
|
|
402
385
|
};
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import { IsBoolean,
|
|
1
|
+
import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { CardState, CardType } from '../../../Enum/Card';
|
|
4
4
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
5
|
|
|
6
|
-
export class UpdateCardV2 {
|
|
7
|
-
@ApiPropertyOptional()
|
|
8
|
-
@IsOptional()
|
|
9
|
-
@IsEnum(CardState)
|
|
10
|
-
state?: CardState;
|
|
11
|
-
|
|
12
|
-
@ApiPropertyOptional()
|
|
13
|
-
@IsOptional()
|
|
14
|
-
plannedAt?: Date | null;
|
|
15
|
-
|
|
16
|
-
@ApiPropertyOptional()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@IsInt()
|
|
19
|
-
idUser?: number;
|
|
20
|
-
|
|
21
|
-
@ApiPropertyOptional()
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
|
-
comment?: string;
|
|
25
|
-
|
|
26
|
-
@ApiPropertyOptional()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@IsInt()
|
|
29
|
-
priority?: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use UpdateCardV2 instead
|
|
34
|
-
*/
|
|
35
6
|
export class UpdateCard {
|
|
36
7
|
@ApiPropertyOptional()
|
|
37
8
|
@IsOptional()
|
|
@@ -48,7 +19,7 @@ export class UpdateCard {
|
|
|
48
19
|
@IsOptional()
|
|
49
20
|
@IsBoolean()
|
|
50
21
|
@ToBoolean()
|
|
51
|
-
isBlocked?:
|
|
22
|
+
isBlocked?: string;
|
|
52
23
|
|
|
53
24
|
@ApiPropertyOptional()
|
|
54
25
|
@IsOptional()
|
|
@@ -58,7 +29,6 @@ export class UpdateCard {
|
|
|
58
29
|
|
|
59
30
|
@ApiPropertyOptional()
|
|
60
31
|
@IsOptional()
|
|
61
|
-
@IsDate()
|
|
62
32
|
plannedAt?: Date | null;
|
|
63
33
|
|
|
64
34
|
@ApiPropertyOptional()
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IsArray,
|
|
1
|
+
import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { TeamType } from '../../../Enum/TeamType';
|
|
4
3
|
|
|
5
4
|
export class QueryUpdateTeam {
|
|
6
5
|
@ApiPropertyOptional()
|
|
@@ -22,9 +21,4 @@ export class QueryUpdateTeam {
|
|
|
22
21
|
@IsOptional()
|
|
23
22
|
@IsArray()
|
|
24
23
|
usersToDelete?: number[];
|
|
25
|
-
|
|
26
|
-
@ApiPropertyOptional()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@IsEnum(TeamType)
|
|
29
|
-
idType?: TeamType | null;
|
|
30
24
|
}
|
|
@@ -7,9 +7,6 @@ import { ICustomerVat } from './ICustomerVat';
|
|
|
7
7
|
import { ICardHistory } from './ICardHistory';
|
|
8
8
|
import { IComment } from './IComment';
|
|
9
9
|
import { ITeam } from './ITeam';
|
|
10
|
-
import { IChecklist } from './IChecklist';
|
|
11
|
-
import { ICustomerIsRegime } from './ICustomerIsRegime';
|
|
12
|
-
import { IExercice } from './IExercice';
|
|
13
10
|
|
|
14
11
|
export interface ICard {
|
|
15
12
|
id?: number;
|
|
@@ -17,16 +14,10 @@ export interface ICard {
|
|
|
17
14
|
state: CardState;
|
|
18
15
|
isManual: boolean;
|
|
19
16
|
isBlocked: boolean;
|
|
20
|
-
priority?: number | null;
|
|
21
17
|
plannedAt?: Date | null;
|
|
22
18
|
idUser?: number | null;
|
|
23
19
|
idTeam?: number | null;
|
|
24
20
|
idSociety: number;
|
|
25
|
-
idBalanceSheet?: number | null;
|
|
26
|
-
idCustomerVat?: number | null;
|
|
27
|
-
idCustomerIsRegime?: number | null;
|
|
28
|
-
idChecklist?: number | null;
|
|
29
|
-
idExercice?: number | null;
|
|
30
21
|
createdAt?: Date;
|
|
31
22
|
updatedAt?: Date;
|
|
32
23
|
deletedAt?: Date;
|
|
@@ -35,18 +26,7 @@ export interface ICard {
|
|
|
35
26
|
user?: IUser;
|
|
36
27
|
team?: ITeam;
|
|
37
28
|
society?: ISociety;
|
|
38
|
-
balancesheet?: IBalanceSheet;
|
|
39
|
-
vat?: ICustomerVat;
|
|
40
|
-
customerIsRegime?: ICustomerIsRegime;
|
|
41
|
-
checklist?: IChecklist;
|
|
42
|
-
exercice?: IExercice;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated old relationship with balance sheet
|
|
45
|
-
*/
|
|
46
29
|
balanceSheet?: IBalanceSheet;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated old relationship with customer vat
|
|
49
|
-
*/
|
|
50
30
|
customerVat?: ICustomerVat;
|
|
51
31
|
events?: ICalendarEvent[];
|
|
52
32
|
history?: ICardHistory[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TeamType } from '../../Enum/TeamType';
|
|
2
1
|
import { IBusinessLine } from './IBusinessLine';
|
|
3
2
|
import { IUser } from './IUser';
|
|
4
3
|
import { IUserTeam } from './IUserTeam';
|
|
@@ -8,7 +7,6 @@ export interface ITeam {
|
|
|
8
7
|
id?: number;
|
|
9
8
|
name: string;
|
|
10
9
|
nbTotalActive?: number;
|
|
11
|
-
idType?: TeamType | null;
|
|
12
10
|
createdAt?: Date | null;
|
|
13
11
|
updatedAt?: Date | null;
|
|
14
12
|
|
package/ts/types/index.ts
CHANGED
|
@@ -551,7 +551,8 @@ export * from './Enum/Marketing';
|
|
|
551
551
|
export * from './Enum/EnglishLevel';
|
|
552
552
|
export * from './Enum/AIPrompt';
|
|
553
553
|
export * from './Enum/SocietyTypeExportCsv';
|
|
554
|
-
export * from './Enum/
|
|
554
|
+
export * from './Enum/PartneredAccountantServiceType';
|
|
555
|
+
export * from './Enum/PartneredAccountantServiceTypeId';
|
|
555
556
|
|
|
556
557
|
// Interfaces API
|
|
557
558
|
export * from './Interface/api/exercice/ReadExercice';
|
package/ts/utils/subscription.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface StripeOffer {
|
|
|
18
18
|
isSocietyTax?: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
const isTestKey: boolean = ['dev', 'staging', 'development', 'test'].includes(process.env.NODE_ENV ?? '');
|
|
21
|
+
const isTestKey: boolean = ['dev', 'staging', 'development', 'test', 'gitlab'].includes(process.env.NODE_ENV ?? '');
|
|
22
22
|
|
|
23
23
|
// AE | Annuel | Forfait Bilan complet
|
|
24
24
|
const ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey ? 'price_1PFyHHIHo1jEedppVjwrqPr1' : 'price_1MRyi1IHo1jEedppRKdY06Re';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum TeamType {
|
|
2
|
-
BALANCESHEET = 1,
|
|
3
|
-
VAT = 2,
|
|
4
|
-
ACCEPTATION = 3,
|
|
5
|
-
CARRY_FORWARD = 4,
|
|
6
|
-
BANK = 5,
|
|
7
|
-
ANNOTATION = 6,
|
|
8
|
-
CLR = 7,
|
|
9
|
-
CUT_OFF = 8
|
|
10
|
-
}
|
|
11
|
-
export declare const TeamTypeLabel: {
|
|
12
|
-
id: TeamType;
|
|
13
|
-
label: string;
|
|
14
|
-
color: string;
|
|
15
|
-
}[];
|
|
16
|
-
//# sourceMappingURL=TeamType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/TeamType.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,YAAY,IAAI;IAChB,GAAG,IAAI;IACP,WAAW,IAAI;IACf,aAAa,IAAI;IACjB,IAAI,IAAI;IACR,UAAU,IAAI;IACd,GAAG,IAAI;IACP,OAAO,IAAI;CACZ;AAED,eAAO,MAAM,aAAa;;;;GAyCzB,CAAC"}
|