@silexpert/core 1.3.68-0 → 1.3.69
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/Closing.d.ts +2 -1
- package/dist/cjs/api/resources/Closing.d.ts.map +1 -1
- package/dist/cjs/api/resources/Closing.js +3 -0
- package/dist/cjs/api/resources/Closing.js.map +1 -1
- package/dist/cjs/api/resources/Refund.d.ts +1 -21
- package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/cjs/api/resources/Refund.js +0 -12
- package/dist/cjs/api/resources/Refund.js.map +1 -1
- package/dist/cjs/types/Enum/Activity.d.ts +7 -1
- package/dist/cjs/types/Enum/Activity.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Activity.js +6 -0
- package/dist/cjs/types/Enum/Activity.js.map +1 -1
- package/dist/cjs/types/Enum/FollowList.d.ts +6 -0
- package/dist/cjs/types/Enum/FollowList.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FollowList.js +6 -0
- package/dist/cjs/types/Enum/FollowList.js.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts +2 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.js +1 -0
- package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/cjs/types/Enum/PaymentAttempt.d.ts +6 -0
- package/dist/cjs/types/Enum/PaymentAttempt.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PaymentAttempt.js +10 -0
- package/dist/cjs/types/Enum/PaymentAttempt.js.map +1 -0
- package/dist/cjs/types/Enum/PaymentMethod.d.ts +29 -10
- package/dist/cjs/types/Enum/PaymentMethod.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PaymentMethod.js +31 -11
- package/dist/cjs/types/Enum/PaymentMethod.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +4 -0
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +5 -1
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +3 -2
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +3 -2
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.d.ts +2 -1
- package/dist/cjs/types/Enum/TimeSlot.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +13 -3
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts +6 -0
- package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/ReadExercice.js.map +1 -1
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +2 -1
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +6 -0
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +3 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +10 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +0 -1
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +0 -6
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAppNotification.d.ts +3 -3
- package/dist/cjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAppNotification.js.map +1 -1
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts +4 -2
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts +15 -0
- package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IPaymentAttempt.js +3 -0
- package/dist/cjs/types/Interface/models/IPaymentAttempt.js.map +1 -0
- 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/mjs/api/resources/Closing.d.ts +2 -1
- package/dist/mjs/api/resources/Closing.d.ts.map +1 -1
- package/dist/mjs/api/resources/Closing.js +3 -0
- package/dist/mjs/api/resources/Closing.js.map +1 -1
- package/dist/mjs/api/resources/Refund.d.ts +1 -21
- package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/mjs/api/resources/Refund.js +0 -12
- package/dist/mjs/api/resources/Refund.js.map +1 -1
- package/dist/mjs/types/Enum/Activity.d.ts +7 -1
- package/dist/mjs/types/Enum/Activity.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Activity.js +6 -0
- package/dist/mjs/types/Enum/Activity.js.map +1 -1
- package/dist/mjs/types/Enum/FollowList.d.ts +6 -0
- package/dist/mjs/types/Enum/FollowList.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FollowList.js +6 -0
- package/dist/mjs/types/Enum/FollowList.js.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts +2 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.js +1 -0
- package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/mjs/types/Enum/PaymentAttempt.d.ts +6 -0
- package/dist/mjs/types/Enum/PaymentAttempt.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PaymentAttempt.js +7 -0
- package/dist/mjs/types/Enum/PaymentAttempt.js.map +1 -0
- package/dist/mjs/types/Enum/PaymentMethod.d.ts +29 -10
- package/dist/mjs/types/Enum/PaymentMethod.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PaymentMethod.js +30 -10
- package/dist/mjs/types/Enum/PaymentMethod.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +4 -0
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +5 -1
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +3 -2
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +3 -2
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.d.ts +2 -1
- package/dist/mjs/types/Enum/TimeSlot.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +13 -3
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts +6 -0
- package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/ReadExercice.js.map +1 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +2 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +8 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +3 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +9 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +0 -1
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +0 -7
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAppNotification.d.ts +3 -3
- package/dist/mjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAppNotification.js.map +1 -1
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts +4 -2
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts +15 -0
- package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IPaymentAttempt.js +2 -0
- package/dist/mjs/types/Interface/models/IPaymentAttempt.js.map +1 -0
- 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/package.json +1 -1
- package/ts/api/resources/Closing.ts +5 -1
- package/ts/api/resources/Refund.ts +1 -17
- package/ts/types/Enum/Activity.ts +6 -0
- package/ts/types/Enum/FollowList.ts +6 -0
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/PaymentAttempt.ts +5 -0
- package/ts/types/Enum/PaymentMethod.ts +30 -10
- package/ts/types/Enum/Proceding.ts +5 -1
- package/ts/types/Enum/RegistrationSource.ts +3 -2
- package/ts/types/Enum/TimeSlot.ts +13 -3
- package/ts/types/Interface/api/exercice/ReadExercice.ts +8 -0
- package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +7 -2
- package/ts/types/Interface/api/stripe/Create.ts +7 -0
- package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +0 -5
- package/ts/types/Interface/models/IAppNotification.ts +3 -3
- package/ts/types/Interface/models/IMobileNotificationLog.ts +4 -2
- package/ts/types/Interface/models/IPayment.ts +3 -1
- package/ts/types/Interface/models/IPaymentAttempt.ts +16 -0
- package/ts/types/index.ts +2 -1
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +0 -11
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js +0 -50
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js.map +0 -1
- package/dist/cjs/utils/subscription.d.ts +0 -21
- package/dist/cjs/utils/subscription.d.ts.map +0 -1
- package/dist/cjs/utils/subscription.js +0 -97
- package/dist/cjs/utils/subscription.js.map +0 -1
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +0 -11
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js +0 -52
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js.map +0 -1
- package/dist/mjs/utils/subscription.d.ts +0 -21
- package/dist/mjs/utils/subscription.d.ts.map +0 -1
- package/dist/mjs/utils/subscription.js +0 -92
- package/dist/mjs/utils/subscription.js.map +0 -1
- package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +0 -31
- package/ts/utils/subscription.ts +0 -124
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IRefund
|
|
2
|
+
import { IRefund } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class Refund extends Resource {
|
|
5
5
|
public create(payload: IRefund): Promise<IRefund> {
|
|
@@ -8,20 +8,4 @@ export class Refund extends Resource {
|
|
|
8
8
|
public update(id: number, params: Partial<IRefund>): Promise<boolean> {
|
|
9
9
|
return this.axios.$patch(`/refunds/${id}`, { ...params });
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
public getAll(query: QueryRefundPaginated) {
|
|
13
|
-
return this.axios.$get('/refunds', { params: query });
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public getOneById(id: number) {
|
|
17
|
-
return this.axios.$get(`/refunds/${id}`);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public validate(id: number, params: Partial<IRefund>) {
|
|
21
|
-
return this.axios.$put(`/refunds/${id}`, { ...params });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
public delete(id: number) {
|
|
25
|
-
return this.axios.$delete(`/refunds/${id}`);
|
|
26
|
-
}
|
|
27
11
|
}
|
|
@@ -13,6 +13,7 @@ export enum Activity {
|
|
|
13
13
|
TRANSPORT = 10,
|
|
14
14
|
BTP = 11,
|
|
15
15
|
MEDICAL = 12,
|
|
16
|
+
REAL_ESTATE = 13,
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export const ActivityDetail = {
|
|
@@ -76,4 +77,9 @@ export const ActivityDetail = {
|
|
|
76
77
|
name: 'Médical',
|
|
77
78
|
salesAccountByDefault: Account.SERVICE.id,
|
|
78
79
|
},
|
|
80
|
+
REAL_ESTATE: {
|
|
81
|
+
id: Activity.REAL_ESTATE,
|
|
82
|
+
name: 'Immobilier',
|
|
83
|
+
salesAccountByDefault: Account.SERVICE.id,
|
|
84
|
+
},
|
|
79
85
|
};
|
|
@@ -1,64 +1,84 @@
|
|
|
1
|
+
export enum PaymentMethodIds {
|
|
2
|
+
DIRECT_DEBIT = 1,
|
|
3
|
+
BANK_TRANSFER = 2,
|
|
4
|
+
BANK_CARD = 3,
|
|
5
|
+
BANK_CHECK = 4,
|
|
6
|
+
DIRECT_DEBIT_REJECTION_1 = 5,
|
|
7
|
+
DIRECT_DEBIT_REJECTION_2 = 6,
|
|
8
|
+
VARIOUS_UNPAID = 7,
|
|
9
|
+
STRIPE_ECB = 8,
|
|
10
|
+
STRIPE = 9,
|
|
11
|
+
CASH = 10,
|
|
12
|
+
STRIPE_ECB_REJECTION = 11,
|
|
13
|
+
}
|
|
14
|
+
|
|
1
15
|
export const PaymentMethod = {
|
|
2
16
|
DIRECT_DEBIT: {
|
|
3
|
-
id:
|
|
17
|
+
id: PaymentMethodIds.DIRECT_DEBIT,
|
|
4
18
|
name: 'Prélèvement',
|
|
5
19
|
isSpecial: 0,
|
|
6
20
|
isOverdue: 0,
|
|
7
21
|
},
|
|
8
22
|
BANK_TRANSFER: {
|
|
9
|
-
id:
|
|
23
|
+
id: PaymentMethodIds.BANK_TRANSFER,
|
|
10
24
|
name: 'Virement',
|
|
11
25
|
isSpecial: 0,
|
|
12
26
|
isOverdue: 0,
|
|
13
27
|
},
|
|
14
28
|
BANK_CARD: {
|
|
15
|
-
id:
|
|
29
|
+
id: PaymentMethodIds.BANK_CARD,
|
|
16
30
|
name: 'CB',
|
|
17
31
|
isSpecial: 0,
|
|
18
32
|
isOverdue: 0,
|
|
19
33
|
},
|
|
20
34
|
BANK_CHECK: {
|
|
21
|
-
id:
|
|
35
|
+
id: PaymentMethodIds.BANK_CHECK,
|
|
22
36
|
name: 'Chèque',
|
|
23
37
|
isSpecial: 0,
|
|
24
38
|
isOverdue: 0,
|
|
25
39
|
},
|
|
26
40
|
DIRECT_DEBIT_REJECTION_1: {
|
|
27
|
-
id:
|
|
41
|
+
id: PaymentMethodIds.DIRECT_DEBIT_REJECTION_1,
|
|
28
42
|
name: 'Rejet de prélèvement 1',
|
|
29
43
|
isSpecial: 1,
|
|
30
44
|
isOverdue: 1,
|
|
31
45
|
},
|
|
32
46
|
DIRECT_DEBIT_REJECTION_2: {
|
|
33
|
-
id:
|
|
47
|
+
id: PaymentMethodIds.DIRECT_DEBIT_REJECTION_2,
|
|
34
48
|
name: 'Rejet de prélèvement 2',
|
|
35
49
|
isSpecial: 1,
|
|
36
50
|
isOverdue: 1,
|
|
37
51
|
},
|
|
38
52
|
VARIOUS_UNPAID: {
|
|
39
|
-
id:
|
|
53
|
+
id: PaymentMethodIds.VARIOUS_UNPAID,
|
|
40
54
|
name: 'Impayés divers',
|
|
41
55
|
isSpecial: 1,
|
|
42
56
|
isOverdue: 1,
|
|
43
57
|
},
|
|
44
58
|
STRIPE_ECB: {
|
|
45
|
-
id:
|
|
59
|
+
id: PaymentMethodIds.STRIPE_ECB,
|
|
46
60
|
name: 'Stripe (ECB)',
|
|
47
61
|
isSpecial: 0,
|
|
48
62
|
isOverdue: 0,
|
|
49
63
|
},
|
|
50
64
|
STRIPE: {
|
|
51
|
-
id:
|
|
65
|
+
id: PaymentMethodIds.STRIPE,
|
|
52
66
|
name: 'Stripe',
|
|
53
67
|
isSpecial: 0,
|
|
54
68
|
isOverdue: 0,
|
|
55
69
|
},
|
|
56
70
|
CASH: {
|
|
57
|
-
id:
|
|
71
|
+
id: PaymentMethodIds.CASH,
|
|
58
72
|
name: 'Espèces',
|
|
59
73
|
isSpecial: 0,
|
|
60
74
|
isOverdue: 0,
|
|
61
75
|
},
|
|
76
|
+
STRIPE_ECB_REJECTION: {
|
|
77
|
+
id: PaymentMethodIds.STRIPE_ECB_REJECTION,
|
|
78
|
+
name: 'Rejet Stripe ECB',
|
|
79
|
+
isSpecial: 1,
|
|
80
|
+
isOverdue: 1,
|
|
81
|
+
},
|
|
62
82
|
};
|
|
63
83
|
|
|
64
84
|
export const PaymentParams = {
|
|
@@ -17,7 +17,7 @@ export const Proceding = {
|
|
|
17
17
|
},
|
|
18
18
|
CONTINUATION_OF_THE_ACTIVITY: {
|
|
19
19
|
id: 5,
|
|
20
|
-
name:
|
|
20
|
+
name: 'Poursuite de l\'activité',
|
|
21
21
|
},
|
|
22
22
|
DISSOLUTION: {
|
|
23
23
|
id: 6,
|
|
@@ -39,4 +39,8 @@ export const Proceding = {
|
|
|
39
39
|
id: 10,
|
|
40
40
|
name: 'Redressement',
|
|
41
41
|
},
|
|
42
|
+
ENTRY_ORDER: {
|
|
43
|
+
id: 11,
|
|
44
|
+
name: 'Saisie de l\'ordre',
|
|
45
|
+
},
|
|
42
46
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated
|
|
2
|
+
* @deprecated use `RegistrationSourceAlias` enum instead and use `this.sourceService.findOrCreate` to get the source id in the database
|
|
3
|
+
*
|
|
3
4
|
*/
|
|
4
5
|
export enum RegistrationSource {
|
|
5
6
|
INCOMING_CALL = 2,
|
|
@@ -119,7 +120,7 @@ export enum RegistrationSourceAlias {
|
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
|
-
* @deprecated need to use database source table the id is not the same in all environments
|
|
123
|
+
* @deprecated need to use database source table the id is not the same in all environments use `SourceService` instead
|
|
123
124
|
*/
|
|
124
125
|
export const RegistrationSourceDetail = {
|
|
125
126
|
INCOMING_CALL: {
|
|
@@ -31,6 +31,7 @@ export enum TimeSlot {
|
|
|
31
31
|
HELP_PREVISIONAL = 25,
|
|
32
32
|
PROSPECT = 26,
|
|
33
33
|
CONSULTING_HOUR = 27,
|
|
34
|
+
SUPPORTING_CREATION_OF_SOCIETY_PROSPECT = 28,
|
|
34
35
|
}
|
|
35
36
|
export enum TimeSlotCategory {
|
|
36
37
|
ACCOUNTING = 1,
|
|
@@ -66,7 +67,7 @@ export const TimeSlotCategoryDetail: TimeSlotCategoryDetailType[] = [
|
|
|
66
67
|
id: TimeSlotCategory.ACCOUNTING,
|
|
67
68
|
name: 'Comptable',
|
|
68
69
|
description:
|
|
69
|
-
|
|
70
|
+
'Pour suivre l\'avancement de votre bilan, vos déclarations de TVA ou pour toute question sur la vie de votre dossier, c\'est par ici !',
|
|
70
71
|
},
|
|
71
72
|
{
|
|
72
73
|
id: TimeSlotCategory.JURIDIC,
|
|
@@ -83,7 +84,7 @@ export const TimeSlotCategoryDetail: TimeSlotCategoryDetailType[] = [
|
|
|
83
84
|
id: TimeSlotCategory.SPECIALISED,
|
|
84
85
|
name: 'Conseils spécialisés',
|
|
85
86
|
description:
|
|
86
|
-
|
|
87
|
+
'Vous souhaitez une explication de vos comptes annuels ? Vous avez des questions très pointues ou un besoin d\'information spécifique ? Nous sommes là pour vous accompagner !',
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
id: TimeSlotCategory.SALES,
|
|
@@ -271,7 +272,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
271
272
|
},
|
|
272
273
|
{
|
|
273
274
|
id: TimeSlot.SPECIALISED_FISCAL_QUESTIONS,
|
|
274
|
-
name:
|
|
275
|
+
name: 'Questions fiscales spécifiques (crédits d\'impôts, ZFANG, autres statuts, etc.)',
|
|
275
276
|
internalName: 'Conseils spécialisés',
|
|
276
277
|
category: TimeSlotCategoryDetail.find((c) => c.id === TimeSlotCategory.SPECIALISED)?.name,
|
|
277
278
|
duration: 30,
|
|
@@ -348,4 +349,13 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
348
349
|
forWholeService: true,
|
|
349
350
|
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
350
351
|
},
|
|
352
|
+
{
|
|
353
|
+
id: TimeSlot.SUPPORTING_CREATION_OF_SOCIETY_PROSPECT,
|
|
354
|
+
name: 'Accompagnement pour la création de mon entreprise',
|
|
355
|
+
internalName: 'Rdv création Prospect',
|
|
356
|
+
duration: 30,
|
|
357
|
+
idRole: [Role.JURIDIC],
|
|
358
|
+
forWholeService: true,
|
|
359
|
+
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
360
|
+
}
|
|
351
361
|
];
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { IAccountingTransaction } from '../../models/IAccountingTransaction';
|
|
2
|
+
|
|
1
3
|
export interface ReadExercice {
|
|
2
4
|
name: string;
|
|
3
5
|
id: number | null;
|
|
4
6
|
startDate: string;
|
|
5
7
|
endDate: string;
|
|
6
8
|
}
|
|
9
|
+
|
|
10
|
+
export interface ReadExerciceError {
|
|
11
|
+
cause: string;
|
|
12
|
+
solution?: string;
|
|
13
|
+
accountingTransactions?: IAccountingTransaction[];
|
|
14
|
+
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { IsArray, IsNumber, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsArray, IsInt, IsNumber, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
|
|
4
4
|
export class RegenerateInternalInvoicing {
|
|
5
5
|
@ApiPropertyOptional()
|
|
6
6
|
@IsOptional()
|
|
7
7
|
@IsArray()
|
|
8
|
-
idSociety
|
|
8
|
+
idSociety?: Array<number>;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsInt()
|
|
13
|
+
idFile?: number | null;
|
|
9
14
|
|
|
10
15
|
@ApiProperty()
|
|
11
16
|
@IsNumber()
|
|
@@ -3,7 +3,7 @@ import { ISociety } from './ISociety';
|
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
|
|
5
5
|
export interface IAppNotification {
|
|
6
|
-
id
|
|
6
|
+
id?: number;
|
|
7
7
|
title: string;
|
|
8
8
|
message: string;
|
|
9
9
|
link?: string;
|
|
@@ -17,6 +17,6 @@ export interface IAppNotification {
|
|
|
17
17
|
updatedAt?: Date | null;
|
|
18
18
|
|
|
19
19
|
// associations
|
|
20
|
-
society
|
|
21
|
-
user
|
|
20
|
+
society?: ISociety;
|
|
21
|
+
user?: IUser;
|
|
22
22
|
}
|
|
@@ -3,8 +3,10 @@ import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
|
3
3
|
export interface IMobileNotificationLog {
|
|
4
4
|
id: number;
|
|
5
5
|
idType: NotificationTypeEnum;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/** @deprecated useless */
|
|
7
|
+
lastSent?: Date | null;
|
|
8
|
+
/** @deprecated useless */
|
|
9
|
+
nextSend?: Date | null;
|
|
8
10
|
success: boolean;
|
|
9
11
|
error: string | null;
|
|
10
12
|
count: number;
|
|
@@ -4,6 +4,7 @@ import { IUser } from './IUser';
|
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
5
|
import { IFile } from './IFile';
|
|
6
6
|
import { IPaymentExpectation } from './IPaymentExpectation';
|
|
7
|
+
import { IPaymentAttempt } from './IPaymentAttempt';
|
|
7
8
|
|
|
8
9
|
// payments
|
|
9
10
|
export interface IPayment {
|
|
@@ -15,7 +16,7 @@ export interface IPayment {
|
|
|
15
16
|
isOverpaid?: boolean;
|
|
16
17
|
isFirst?: boolean;
|
|
17
18
|
// @deprecated Use isCollectable instead
|
|
18
|
-
toCollect?: boolean;
|
|
19
|
+
toCollect?: boolean;
|
|
19
20
|
countRejects?: number;
|
|
20
21
|
isCollectable?: boolean;
|
|
21
22
|
isAsset?: boolean;
|
|
@@ -44,4 +45,5 @@ export interface IPayment {
|
|
|
44
45
|
user?: IUser;
|
|
45
46
|
exercice?: IExercice;
|
|
46
47
|
files?: IFile;
|
|
48
|
+
paymentAttempts?: IPaymentAttempt[];
|
|
47
49
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PaymentAttemptStatus } from '../../Enum/PaymentAttempt';
|
|
2
|
+
import { PaymentMethodIds } from '../../Enum/PaymentMethod';
|
|
3
|
+
import { IPayment } from './IPayment';
|
|
4
|
+
|
|
5
|
+
export interface IPaymentAttempt {
|
|
6
|
+
id?: number;
|
|
7
|
+
reference: string | null;
|
|
8
|
+
comment: string | null;
|
|
9
|
+
status: PaymentAttemptStatus;
|
|
10
|
+
idPaymentMethod: PaymentMethodIds;
|
|
11
|
+
idPayment: number;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
|
|
15
|
+
payment?: IPayment;
|
|
16
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -323,6 +323,7 @@ export * from './Interface/models/IReminderAttachment';
|
|
|
323
323
|
export * from './Interface/models/IStateBankAccount';
|
|
324
324
|
export * from './Interface/models/IAIQuestion';
|
|
325
325
|
export * from './Interface/models/IAIConversation';
|
|
326
|
+
export * from './Interface/models/IPaymentAttempt';
|
|
326
327
|
|
|
327
328
|
// Schemas
|
|
328
329
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -553,6 +554,7 @@ export * from './Enum/SocietyTypeExportCsv';
|
|
|
553
554
|
export * from './Enum/TeamType';
|
|
554
555
|
export * from './Enum/PartneredAccountantServiceType';
|
|
555
556
|
export * from './Enum/PartneredAccountantServiceTypeId';
|
|
557
|
+
export * from './Enum/PaymentAttempt';
|
|
556
558
|
|
|
557
559
|
// Interfaces API
|
|
558
560
|
export * from './Interface/api/exercice/ReadExercice';
|
|
@@ -1161,4 +1163,3 @@ export * from './Interface/api/regulation/Read';
|
|
|
1161
1163
|
export * from './Interface/api/regulation/Create';
|
|
1162
1164
|
export * from './Interface/api/marketing/NewLeadSheet';
|
|
1163
1165
|
export * from './Interface/api/ai/AskQuestionCollaborator';
|
|
1164
|
-
export * from './Interface/api/refund/QueryRefundPaginated';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
2
|
-
import { Order } from '../BaseRequest';
|
|
3
|
-
export declare class QueryRefundPaginated extends RequiredQueryPaginate implements Order {
|
|
4
|
-
search?: string;
|
|
5
|
-
year: number;
|
|
6
|
-
month?: number;
|
|
7
|
-
motif?: number;
|
|
8
|
-
orderBy?: string;
|
|
9
|
-
descending?: boolean;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=QueryRefundPaginated.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRefundPaginated.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/refund/QueryRefundPaginated.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,qBAAa,oBAAqB,SAAQ,qBAAsB,YAAW,KAAK;IAE9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryRefundPaginated = void 0;
|
|
13
|
-
const utils_1 = require("../../../../utils");
|
|
14
|
-
const BasePaginate_1 = require("../BasePaginate");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
class QueryRefundPaginated extends BasePaginate_1.RequiredQueryPaginate {
|
|
17
|
-
}
|
|
18
|
-
exports.QueryRefundPaginated = QueryRefundPaginated;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], QueryRefundPaginated.prototype, "search", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, utils_1.ApiProperty)(),
|
|
25
|
-
(0, class_validator_1.IsInt)(),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], QueryRefundPaginated.prototype, "year", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
30
|
-
(0, class_validator_1.IsInt)(),
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], QueryRefundPaginated.prototype, "month", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
36
|
-
(0, class_validator_1.IsInt)(),
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], QueryRefundPaginated.prototype, "motif", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], QueryRefundPaginated.prototype, "orderBy", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
46
|
-
(0, class_validator_1.IsBoolean)(),
|
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
|
48
|
-
__metadata("design:type", Boolean)
|
|
49
|
-
], QueryRefundPaginated.prototype, "descending", void 0);
|
|
50
|
-
//# sourceMappingURL=QueryRefundPaginated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRefundPaginated.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/refund/QueryRefundPaginated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,kDAAwD;AAExD,qDAA+D;AAE/D,MAAa,oBAAqB,SAAQ,oCAAqB;CAyB9D;AAzBD,oDAyBC;AAvBC;IADC,IAAA,2BAAmB,GAAE;;oDACN;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;kDACK;AAKb;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;mDACE;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;mDACE;AAGf;IADC,IAAA,2BAAmB,GAAE;;qDACL;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;wDACQ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { RequiredQueryPaginate } from '../BasePaginate';\nimport { Order } from '../BaseRequest';\nimport { IsBoolean, IsInt, IsOptional } from 'class-validator';\n\nexport class QueryRefundPaginated extends RequiredQueryPaginate implements Order {\n @ApiPropertyOptional()\n search?: string;\n\n @ApiProperty()\n @IsInt()\n year: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n month?: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n motif?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n descending?: boolean;\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComptaType } from '../types/Enum/ComptaType';
|
|
2
|
-
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
3
|
-
import { TaxSystem } from '../types/Enum/TaxSystem';
|
|
4
|
-
interface OfferParams {
|
|
5
|
-
idLegalForm: LegalFormTypeEnum | null;
|
|
6
|
-
idComptaType: ComptaType | null;
|
|
7
|
-
idTaxSystem: TaxSystem | null;
|
|
8
|
-
isYearly?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface StripeOffer {
|
|
11
|
-
name: string;
|
|
12
|
-
isYearly: boolean;
|
|
13
|
-
isMicro: boolean;
|
|
14
|
-
key: string;
|
|
15
|
-
isCashBased: boolean;
|
|
16
|
-
isSocietyTax?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const stripeTaxRate: string;
|
|
19
|
-
export declare function getDefaultOffer(params: OfferParams): StripeOffer;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","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;AAEpD,UAAU,WAAW;IACnB,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,UAAU,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA8BD,eAAO,MAAM,aAAa,QAA8E,CAAC;AAqDzG,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAsBhE"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.stripeTaxRate = void 0;
|
|
5
|
-
exports.getDefaultOffer = getDefaultOffer;
|
|
6
|
-
const ComptaType_1 = require("../types/Enum/ComptaType");
|
|
7
|
-
const LegalForm_1 = require("../types/Enum/LegalForm");
|
|
8
|
-
const TaxSystem_1 = require("../types/Enum/TaxSystem");
|
|
9
|
-
const isTestKey = ['dev', 'staging', 'development', 'test', 'gitlab'].includes((_a = process.env.NODE_ENV) !== null && _a !== void 0 ? _a : '');
|
|
10
|
-
// AE | Annuel | Forfait Bilan complet
|
|
11
|
-
const ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey ? 'price_1PFyHHIHo1jEedppVjwrqPr1' : 'price_1MRyi1IHo1jEedppRKdY06Re';
|
|
12
|
-
// AE | Mensuel | Forfait Bilan complet
|
|
13
|
-
const ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey ? 'price_1LBJ4xIHo1jEedppylxr3fFa' : 'price_1LBI57IHo1jEedpppnxskfgv';
|
|
14
|
-
// Entreprise | Annuel | Forfait entreprise à l'IR
|
|
15
|
-
const ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey
|
|
16
|
-
? 'price_1PFyG8IHo1jEedpp73TUxiJd'
|
|
17
|
-
: 'price_1MRyiJIHo1jEedppUe7MnPtW';
|
|
18
|
-
// Entreprise | Mensuel | Forfaitentreprise à l'IR
|
|
19
|
-
const ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey
|
|
20
|
-
? 'price_1LBJ5YIHo1jEedppzwTErh9M'
|
|
21
|
-
: 'price_1LBIA3IHo1jEedpp2taeQ7yW';
|
|
22
|
-
// Entreprise | Annuel | Forfait entreprise à l'IS
|
|
23
|
-
const ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey
|
|
24
|
-
? 'price_1PFwE3IHo1jEedpphgWrgwkA'
|
|
25
|
-
: 'price_1MRyiWIHo1jEedppp5tnksZe';
|
|
26
|
-
// Entreprise | Mensuel | Forfait entreprise à l'IS
|
|
27
|
-
const ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey
|
|
28
|
-
? 'price_1LBJ69IHo1jEedppAWLeOk3I'
|
|
29
|
-
: 'price_1LBIB7IHo1jEedppocxyc1ft';
|
|
30
|
-
exports.stripeTaxRate = isTestKey ? 'txr_1I9X9MIHo1jEedppM0DqL4iE' : 'txr_1I9X5wIHo1jEedppYttGFc0N';
|
|
31
|
-
const list = [
|
|
32
|
-
{
|
|
33
|
-
name: 'Offre auto-entrepreneur',
|
|
34
|
-
isYearly: true,
|
|
35
|
-
isMicro: true,
|
|
36
|
-
key: ID_SUBSCRIPTION_MICRO_ANNUAL,
|
|
37
|
-
isCashBased: true,
|
|
38
|
-
isSocietyTax: false,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'Offre auto-entrepreneur',
|
|
42
|
-
isYearly: false,
|
|
43
|
-
isMicro: true,
|
|
44
|
-
key: ID_SUBSCRIPTION_MICRO_MENSUAL,
|
|
45
|
-
isCashBased: true,
|
|
46
|
-
isSocietyTax: false,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: 'Offre entreprise IS',
|
|
50
|
-
isYearly: true,
|
|
51
|
-
isMicro: false,
|
|
52
|
-
key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,
|
|
53
|
-
isCashBased: false,
|
|
54
|
-
isSocietyTax: true,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'Offre entreprise IS',
|
|
58
|
-
isMicro: false,
|
|
59
|
-
isYearly: false,
|
|
60
|
-
key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,
|
|
61
|
-
isCashBased: false,
|
|
62
|
-
isSocietyTax: true,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'Offre entreprise IR',
|
|
66
|
-
isMicro: false,
|
|
67
|
-
isYearly: true,
|
|
68
|
-
isCashBased: true,
|
|
69
|
-
isSocietyTax: false,
|
|
70
|
-
key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'Offre entreprise IR',
|
|
74
|
-
isMicro: false,
|
|
75
|
-
isYearly: false,
|
|
76
|
-
key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,
|
|
77
|
-
isCashBased: true,
|
|
78
|
-
isSocietyTax: false,
|
|
79
|
-
},
|
|
80
|
-
];
|
|
81
|
-
function getDefaultOffer(params) {
|
|
82
|
-
const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;
|
|
83
|
-
const isMicro = LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;
|
|
84
|
-
const isCashBased = idComptaType
|
|
85
|
-
? [ComptaType_1.ComptaType.CASH_BASED, ComptaType_1.ComptaType.CASH_BASED_ASSISTANCE, ComptaType_1.ComptaType.CASH_BASED_SEIZURE].includes(idComptaType)
|
|
86
|
-
: false;
|
|
87
|
-
const isSocietyTax = idTaxSystem === TaxSystem_1.TaxSystem.IS;
|
|
88
|
-
const newPlan = list.find((l) => l.isMicro === isMicro &&
|
|
89
|
-
l.isYearly === isYearly &&
|
|
90
|
-
l.isCashBased === isCashBased &&
|
|
91
|
-
l.isSocietyTax === isSocietyTax);
|
|
92
|
-
if (newPlan) {
|
|
93
|
-
return newPlan;
|
|
94
|
-
}
|
|
95
|
-
return isYearly ? list[2] : list[3];
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=subscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../ts/utils/subscription.ts"],"names":[],"mappings":";;;;AAqGA,0CAsBC;AA3HD,yDAAsD;AACtD,uDAA4D;AAC5D,uDAAoD;AAkBpD,MAAM,SAAS,GAAY,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,EAAE,CAAC,CAAC;AAEpH,sCAAsC;AACtC,MAAM,4BAA4B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,gCAAgC,CAAC;AAEtH,uCAAuC;AACvC,MAAM,6BAA6B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,gCAAgC,CAAC;AAEvH,kDAAkD;AAClD,MAAM,iCAAiC,GAAG,CAAC,SAAS;IAClD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAErC,kDAAkD;AAClD,MAAM,kCAAkC,GAAG,CAAC,SAAS;IACnD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAErC,kDAAkD;AAClD,MAAM,kCAAkC,GAAG,CAAC,SAAS;IACnD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAErC,mDAAmD;AACnD,MAAM,mCAAmC,GAAG,CAAC,SAAS;IACpD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAExB,QAAA,aAAa,GAAG,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,8BAA8B,CAAC;AAEzG,MAAM,IAAI,GAAkB;IAC1B;QACE,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,4BAA4B;QACjC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;KACpB;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,6BAA6B;QAClC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;KACpB;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,KAAK;QACd,GAAG,EAAE,kCAAkC;QACvC,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,GAAG,EAAE,mCAAmC;QACxC,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;QACnB,GAAG,EAAE,iCAAiC;KACvC;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,GAAG,EAAE,kCAAkC;QACvC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;KACpB;CACF,CAAC;AAEF,SAAgB,eAAe,CAAC,MAAmB;IACjD,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,OAAO,GAAG,6BAAiB,CAAC,iBAAiB,KAAK,WAAW,CAAC;IACpE,MAAM,WAAW,GAAG,YAAY;QAC9B,CAAC,CAAC,CAAC,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,qBAAqB,EAAE,uBAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;QACjH,CAAC,CAAC,KAAK,CAAC;IACV,MAAM,YAAY,GAAG,WAAW,KAAK,qBAAS,CAAC,EAAE,CAAC;IAElD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,OAAO,KAAK,OAAO;QACrB,CAAC,CAAC,QAAQ,KAAK,QAAQ;QACvB,CAAC,CAAC,WAAW,KAAK,WAAW;QAC7B,CAAC,CAAC,YAAY,KAAK,YAAY,CAClC,CAAC;IAEF,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC","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"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
2
|
-
import { Order } from '../BaseRequest';
|
|
3
|
-
export declare class QueryRefundPaginated extends RequiredQueryPaginate implements Order {
|
|
4
|
-
search?: string;
|
|
5
|
-
year: number;
|
|
6
|
-
month?: number;
|
|
7
|
-
motif?: number;
|
|
8
|
-
orderBy?: string;
|
|
9
|
-
descending?: boolean;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=QueryRefundPaginated.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRefundPaginated.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/refund/QueryRefundPaginated.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,qBAAa,oBAAqB,SAAQ,qBAAsB,YAAW,KAAK;IAE9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|