@silexpert/core 1.3.37-4 → 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 +13 -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/cerfa/2031.d.ts +2 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.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 +13 -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/cerfa/2031.d.ts +2 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.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 +16 -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/cerfa/2031.ts +2 -0
- 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 -11
- package/dist/cjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/TeamType.js +0 -15
- package/dist/cjs/types/Enum/TeamType.js.map +0 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +0 -11
- package/dist/mjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/TeamType.js +0 -12
- package/dist/mjs/types/Enum/TeamType.js.map +0 -1
- package/ts/types/Enum/TeamType.ts +0 -10
|
@@ -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/assign', 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,29 +10,17 @@ 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 {
|
|
@@ -41,23 +28,9 @@ export enum CardGroupEnum {
|
|
|
41
28
|
VAT_GROUP = 2,
|
|
42
29
|
// REINFORCED_CHECKLIST_GROUP = 3,
|
|
43
30
|
ACCEPTATION_GROUP = 4,
|
|
44
|
-
CARRY_FORWARD = 5, // A nouveaux
|
|
45
|
-
BANK = 6,
|
|
46
|
-
ANNOTATION = 7,
|
|
47
|
-
CLR = 8,
|
|
48
|
-
CUT_OFF = 9,
|
|
49
31
|
}
|
|
50
32
|
|
|
51
|
-
export
|
|
52
|
-
id: CardGroupEnum;
|
|
53
|
-
label: string;
|
|
54
|
-
types: CardType[];
|
|
55
|
-
roles: Role[];
|
|
56
|
-
maxByDay?: number;
|
|
57
|
-
teamType: TeamType;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const CardGroup: readonly CardGroupType[] = [
|
|
33
|
+
export const CardGroup = [
|
|
61
34
|
{
|
|
62
35
|
id: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
63
36
|
label: 'Bilans',
|
|
@@ -67,20 +40,15 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
67
40
|
CardType.BALANCE_SHEET_PREVISIONAL,
|
|
68
41
|
CardType.BALANCE_SHEET_LIQUIDATION,
|
|
69
42
|
CardType.BALANCE_SHEET_EXPRESS,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
CardType.BALANCE_SHEET_REFUSED,
|
|
73
|
-
],
|
|
74
|
-
roles: [Role.ACCOUNTANT],
|
|
75
|
-
teamType: TeamType.BALANCESHEET,
|
|
43
|
+
] as CardType[],
|
|
44
|
+
roles: [Role.FRONT_OFFICE],
|
|
76
45
|
maxByDay: 3,
|
|
77
46
|
},
|
|
78
47
|
{
|
|
79
48
|
id: CardGroupEnum.VAT_GROUP,
|
|
80
49
|
label: 'Déclarations',
|
|
81
|
-
types: [CardType.VAT
|
|
82
|
-
roles: [Role.
|
|
83
|
-
teamType: TeamType.VAT,
|
|
50
|
+
types: [CardType.VAT] as CardType[],
|
|
51
|
+
roles: [Role.FRONT_OFFICE],
|
|
84
52
|
maxByDay: 6,
|
|
85
53
|
},
|
|
86
54
|
// {
|
|
@@ -93,50 +61,9 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
93
61
|
{
|
|
94
62
|
id: CardGroupEnum.ACCEPTATION_GROUP,
|
|
95
63
|
label: 'Contrôle solde bancaire & annotations',
|
|
96
|
-
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[],
|
|
97
65
|
roles: [Role.DATA_OFFICER],
|
|
98
66
|
maxByDay: 25,
|
|
99
|
-
teamType: TeamType.ACCEPTATION,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: CardGroupEnum.CARRY_FORWARD,
|
|
103
|
-
label: 'A nouveaux',
|
|
104
|
-
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
|
|
105
|
-
roles: [Role.ACCOUNTANT],
|
|
106
|
-
maxByDay: 3,
|
|
107
|
-
teamType: TeamType.CARRY_FORWARD,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: CardGroupEnum.BANK,
|
|
111
|
-
label: 'Banque',
|
|
112
|
-
types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],
|
|
113
|
-
roles: [Role.ACCOUNTANT],
|
|
114
|
-
maxByDay: 3,
|
|
115
|
-
teamType: TeamType.BANK,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
id: CardGroupEnum.ANNOTATION,
|
|
119
|
-
label: 'Annotations',
|
|
120
|
-
types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],
|
|
121
|
-
roles: [Role.ACCOUNTANT],
|
|
122
|
-
maxByDay: 3,
|
|
123
|
-
teamType: TeamType.ANNOTATION,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
id: CardGroupEnum.CLR,
|
|
127
|
-
label: 'CLR',
|
|
128
|
-
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION],
|
|
129
|
-
roles: [Role.ACCOUNTANT],
|
|
130
|
-
maxByDay: 3,
|
|
131
|
-
teamType: TeamType.CLR,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: CardGroupEnum.CUT_OFF,
|
|
135
|
-
label: 'Cut Off',
|
|
136
|
-
types: [CardType.CUT_OFF],
|
|
137
|
-
roles: [Role.ACCOUNTANT],
|
|
138
|
-
maxByDay: 3,
|
|
139
|
-
teamType: TeamType.CUT_OFF,
|
|
140
67
|
},
|
|
141
68
|
] as const;
|
|
142
69
|
|
|
@@ -171,54 +98,17 @@ export const CardTypeLabel = [
|
|
|
171
98
|
refLabel: 'BE',
|
|
172
99
|
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
173
100
|
},
|
|
174
|
-
{
|
|
175
|
-
id: CardType.BALANCE_SHEET_PREPARATION,
|
|
176
|
-
label: 'Préparation et Formalisation du Bilan',
|
|
177
|
-
refLabel: 'PFB',
|
|
178
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
id: CardType.BALANCE_SHEET_SEND_SIE,
|
|
182
|
-
label: 'Envoi du bilan SIE',
|
|
183
|
-
refLabel: 'EBS',
|
|
184
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: CardType.BALANCE_SHEET_REFUSED,
|
|
188
|
-
label: 'Bilan Refus SIE',
|
|
189
|
-
refLabel: 'BRS',
|
|
190
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
191
|
-
},
|
|
192
101
|
{
|
|
193
102
|
id: CardType.VAT,
|
|
194
103
|
label: 'TVA',
|
|
195
104
|
refLabel: 'TVA',
|
|
196
105
|
groupId: CardGroupEnum.VAT_GROUP,
|
|
197
106
|
},
|
|
198
|
-
{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
id: CardType.VAT_REFUSED,
|
|
206
|
-
label: 'TVA Refus SIE',
|
|
207
|
-
refLabel: 'TVARS',
|
|
208
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
id: CardType.ADVANCE_IS,
|
|
212
|
-
label: 'Acompte IS',
|
|
213
|
-
refLabel: 'AIS',
|
|
214
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: CardType.ADVANCE_IS_REFUSED,
|
|
218
|
-
label: 'Acompte Refus SIE',
|
|
219
|
-
refLabel: 'ARS',
|
|
220
|
-
groupId: CardGroupEnum.VAT_GROUP,
|
|
221
|
-
},
|
|
107
|
+
// {
|
|
108
|
+
// id: CardType.REINFORCED_CHECKLIST,
|
|
109
|
+
// label: 'Checklist',
|
|
110
|
+
// groupId: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,
|
|
111
|
+
// },
|
|
222
112
|
{
|
|
223
113
|
id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
|
|
224
114
|
label: 'Contrôle solde bancaire & mise en place annotation nouveau client',
|
|
@@ -231,54 +121,6 @@ export const CardTypeLabel = [
|
|
|
231
121
|
refLabel: 'LABC',
|
|
232
122
|
groupId: CardGroupEnum.ACCEPTATION_GROUP,
|
|
233
123
|
},
|
|
234
|
-
{
|
|
235
|
-
id: CardType.SETUP_BANK_ACCOUNT,
|
|
236
|
-
label: 'Mise en place banque',
|
|
237
|
-
refLabel: 'MPB',
|
|
238
|
-
groupId: CardGroupEnum.BANK,
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
id: CardType.UPDATE_BANK_BALANCE,
|
|
242
|
-
label: 'MAJ du solde bancaire',
|
|
243
|
-
refLabel: 'MSB',
|
|
244
|
-
groupId: CardGroupEnum.BANK,
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: CardType.UPDATE_ANNOTATIONS,
|
|
248
|
-
label: 'MAJ Annotations',
|
|
249
|
-
refLabel: 'MA',
|
|
250
|
-
groupId: CardGroupEnum.ANNOTATION,
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: CardType.CONTROL_REVISION_SURVEY,
|
|
254
|
-
label: 'Contrôle/Revision/Sondage',
|
|
255
|
-
refLabel: 'CRS',
|
|
256
|
-
groupId: CardGroupEnum.ANNOTATION,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,
|
|
260
|
-
label: 'Paramétrage & Intégration N-1',
|
|
261
|
-
refLabel: 'PIN1',
|
|
262
|
-
groupId: CardGroupEnum.CARRY_FORWARD,
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
id: CardType.CLR,
|
|
266
|
-
label: 'CLR',
|
|
267
|
-
refLabel: 'CLR',
|
|
268
|
-
groupId: CardGroupEnum.CLR,
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
id: CardType.CLR_EXCEPTIONAL_MISSION,
|
|
272
|
-
label: 'CLR mission exceptionnelle (V2)',
|
|
273
|
-
refLabel: 'CLRM',
|
|
274
|
-
groupId: CardGroupEnum.CLR,
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
id: CardType.CUT_OFF,
|
|
278
|
-
label: 'Cut Off',
|
|
279
|
-
refLabel: 'CO',
|
|
280
|
-
groupId: CardGroupEnum.CUT_OFF,
|
|
281
|
-
},
|
|
282
124
|
] as const;
|
|
283
125
|
|
|
284
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()
|
|
@@ -203,6 +203,7 @@ export interface Cerfa2031_2024 {
|
|
|
203
203
|
siren: string;
|
|
204
204
|
declarantEmail: string;
|
|
205
205
|
declarantAddress: string;
|
|
206
|
+
declarantAddressObject: CerfaAddress;
|
|
206
207
|
declarantZipCode: string;
|
|
207
208
|
declarantCity: string;
|
|
208
209
|
declarantCountryCode: string;
|
|
@@ -380,6 +381,7 @@ export interface Cerfa2031_2025 {
|
|
|
380
381
|
siren: string;
|
|
381
382
|
declarantEmail: string;
|
|
382
383
|
declarantAddress: string;
|
|
384
|
+
declarantAddressObject: CerfaAddress;
|
|
383
385
|
declarantZipCode: string;
|
|
384
386
|
declarantCity: string;
|
|
385
387
|
declarantCountryCode: string;
|
|
@@ -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 +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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TeamType = void 0;
|
|
4
|
-
var TeamType;
|
|
5
|
-
(function (TeamType) {
|
|
6
|
-
TeamType[TeamType["BALANCESHEET"] = 1] = "BALANCESHEET";
|
|
7
|
-
TeamType[TeamType["VAT"] = 2] = "VAT";
|
|
8
|
-
TeamType[TeamType["ACCEPTATION"] = 3] = "ACCEPTATION";
|
|
9
|
-
TeamType[TeamType["CARRY_FORWARD"] = 4] = "CARRY_FORWARD";
|
|
10
|
-
TeamType[TeamType["BANK"] = 5] = "BANK";
|
|
11
|
-
TeamType[TeamType["ANNOTATION"] = 6] = "ANNOTATION";
|
|
12
|
-
TeamType[TeamType["CLR"] = 7] = "CLR";
|
|
13
|
-
TeamType[TeamType["CUT_OFF"] = 8] = "CUT_OFF";
|
|
14
|
-
})(TeamType || (exports.TeamType = TeamType = {}));
|
|
15
|
-
//# sourceMappingURL=TeamType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/TeamType.ts"],"names":[],"mappings":";;;AAAA,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,uDAAgB,CAAA;IAChB,qCAAO,CAAA;IACP,qDAAe,CAAA;IACf,yDAAiB,CAAA;IACjB,uCAAQ,CAAA;IACR,mDAAc,CAAA;IACd,qCAAO,CAAA;IACP,6CAAW,CAAA;AACb,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB","sourcesContent":["export enum TeamType {\n BALANCESHEET = 1,\n VAT = 2,\n ACCEPTATION = 3,\n CARRY_FORWARD = 4,\n BANK = 5,\n ANNOTATION = 6,\n CLR = 7,\n CUT_OFF = 8,\n}"]}
|