@silexpert/core 1.3.30-2 → 1.3.30-4
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/Authenticate.d.ts +6 -0
- package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/cjs/api/resources/Authenticate.js +8 -0
- package/dist/cjs/api/resources/Authenticate.js.map +1 -1
- package/dist/cjs/api/resources/FIle.d.ts +1 -0
- package/dist/cjs/api/resources/FIle.d.ts.map +1 -1
- package/dist/cjs/api/resources/FIle.js +3 -0
- package/dist/cjs/api/resources/FIle.js.map +1 -1
- package/dist/cjs/api/resources/Subscription.d.ts +1 -5
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +0 -6
- package/dist/cjs/api/resources/Subscription.js.map +1 -1
- package/dist/cjs/types/Enum/Account.d.ts +4 -0
- package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Account.js +4 -0
- package/dist/cjs/types/Enum/Account.js.map +1 -1
- package/dist/cjs/types/Enum/Feature.d.ts +1 -0
- package/dist/cjs/types/Enum/Feature.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Feature.js +2 -0
- package/dist/cjs/types/Enum/Feature.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +3 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +12 -0
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +8 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +29 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +1 -14
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.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/IPaymentExpectation.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
- package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/mjs/api/resources/Authenticate.js +6 -0
- package/dist/mjs/api/resources/Authenticate.js.map +1 -1
- package/dist/mjs/api/resources/FIle.d.ts +1 -0
- package/dist/mjs/api/resources/FIle.d.ts.map +1 -1
- package/dist/mjs/api/resources/FIle.js +3 -0
- package/dist/mjs/api/resources/FIle.js.map +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts +1 -5
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +0 -6
- package/dist/mjs/api/resources/Subscription.js.map +1 -1
- package/dist/mjs/types/Enum/Account.d.ts +4 -0
- package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Account.js +4 -0
- package/dist/mjs/types/Enum/Account.js.map +1 -1
- package/dist/mjs/types/Enum/Feature.d.ts +1 -0
- package/dist/mjs/types/Enum/Feature.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Feature.js +2 -0
- package/dist/mjs/types/Enum/Feature.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +3 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +12 -0
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +8 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +32 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +0 -14
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.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/IPaymentExpectation.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/FIle.ts +4 -0
- package/ts/api/resources/Subscription.ts +1 -14
- package/ts/types/Enum/Account.ts +4 -0
- package/ts/types/Enum/Feature.ts +3 -0
- package/ts/types/Enum/JobTitle.ts +12 -0
- package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
- package/ts/types/Interface/api/stripe/Create.ts +22 -0
- package/ts/types/Interface/api/stripe/QueryStripe.ts +0 -9
- package/ts/types/Interface/models/IPayment.ts +2 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/index.ts +0 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- package/ts/types/Interface/api/stripe/ReadStripe.ts +0 -4
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import {
|
|
3
|
-
RetrieveUpcomingInvoiceParams,
|
|
4
|
-
ReadUpcomingInvoice,
|
|
5
|
-
QueryStripeSession,
|
|
6
|
-
CreateSubscriptionSession,
|
|
7
|
-
CreateStripePortals,
|
|
8
|
-
} from '../../types';
|
|
2
|
+
import { QueryStripeSession, CreateSubscriptionSession, CreateStripePortals } from '../../types';
|
|
9
3
|
import Stripe from 'stripe';
|
|
10
4
|
|
|
11
5
|
export class Subscription extends Resource {
|
|
@@ -41,13 +35,6 @@ export class Subscription extends Resource {
|
|
|
41
35
|
return this.axios.$get('/stripe/subscriptions');
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
/**
|
|
45
|
-
* Retourne les informations de la prochaine facture Stripe
|
|
46
|
-
*/
|
|
47
|
-
retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {
|
|
48
|
-
return this.axios.$get('/stripe/subscriptions/next-invoice', { params });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
38
|
/* -------------- */
|
|
52
39
|
|
|
53
40
|
createComptalibSession(
|
package/ts/types/Enum/Account.ts
CHANGED
package/ts/types/Enum/Feature.ts
CHANGED
|
@@ -39,6 +39,8 @@ export enum JobTitle {
|
|
|
39
39
|
RECRUITMENT_OFFICER = 38,
|
|
40
40
|
HUMAN_RESOURCES_ASSISTANT = 39,
|
|
41
41
|
HUMAN_RESOURCES = 40,
|
|
42
|
+
DEVELOPER = 41,
|
|
43
|
+
CAMERA_EDITOR = 42,
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: string }> = [
|
|
@@ -242,4 +244,14 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: str
|
|
|
242
244
|
menText: 'Responsable Ressources Humaines',
|
|
243
245
|
womenText: 'Responsable Ressources Humaines',
|
|
244
246
|
},
|
|
247
|
+
{
|
|
248
|
+
id: JobTitle.DEVELOPER,
|
|
249
|
+
menText: 'Développeur web',
|
|
250
|
+
womenText: 'Développeur web',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: JobTitle.CAMERA_EDITOR,
|
|
254
|
+
menText: 'Monteur / Cadreur',
|
|
255
|
+
womenText: 'Monteur / Cadreur',
|
|
256
|
+
},
|
|
245
257
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { PaymentReason } from '../../../Enum/PaymentReason';
|
|
4
4
|
|
|
@@ -17,16 +17,16 @@ export class CreatePaymentExpecation {
|
|
|
17
17
|
payload?: string | null;
|
|
18
18
|
|
|
19
19
|
@ApiProperty()
|
|
20
|
-
@
|
|
20
|
+
@IsInt()
|
|
21
21
|
idReason: PaymentReason;
|
|
22
22
|
|
|
23
23
|
@ApiPropertyOptional()
|
|
24
|
-
@
|
|
24
|
+
@IsInt()
|
|
25
25
|
@IsOptional()
|
|
26
26
|
idPrestation?: number | null;
|
|
27
27
|
|
|
28
28
|
@ApiPropertyOptional()
|
|
29
|
-
@
|
|
29
|
+
@IsInt()
|
|
30
30
|
@IsOptional()
|
|
31
31
|
idRegulation?: number | null;
|
|
32
32
|
|
|
@@ -34,4 +34,9 @@ export class CreatePaymentExpecation {
|
|
|
34
34
|
@IsString()
|
|
35
35
|
@IsOptional()
|
|
36
36
|
ref?: string | null;
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsInt()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
idUserNotifyPaiementProceed?: number | null;
|
|
37
42
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import Stripe from 'stripe';
|
|
3
4
|
|
|
4
5
|
export class CreateStripeConnection {
|
|
5
6
|
@ApiProperty()
|
|
@@ -13,6 +14,24 @@ export class CreateStripePortals {
|
|
|
13
14
|
stripeCustomerId: string;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
export class CreateCustomer {
|
|
18
|
+
@ApiProperty()
|
|
19
|
+
@IsInt()
|
|
20
|
+
id: number;
|
|
21
|
+
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
@IsString()
|
|
24
|
+
email: string;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
lastname?: string;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
@IsString()
|
|
32
|
+
firstname?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
16
35
|
export class CreateImportTransactionForSociety {
|
|
17
36
|
@ApiPropertyOptional()
|
|
18
37
|
@IsDate()
|
|
@@ -49,4 +68,7 @@ export class CreatePaymentIntent {
|
|
|
49
68
|
@ApiProperty()
|
|
50
69
|
@IsInt()
|
|
51
70
|
amountInCents: number;
|
|
71
|
+
|
|
72
|
+
@ApiPropertyOptional()
|
|
73
|
+
metadata?: Stripe.MetadataParam;
|
|
52
74
|
}
|
|
@@ -2,15 +2,6 @@ import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
5
|
-
export class RetrieveUpcomingInvoiceParams {
|
|
6
|
-
@ApiProperty()
|
|
7
|
-
@IsString()
|
|
8
|
-
customerId: string;
|
|
9
|
-
|
|
10
|
-
@ApiProperty()
|
|
11
|
-
@IsString()
|
|
12
|
-
subscriptionId: string;
|
|
13
|
-
}
|
|
14
5
|
export class RetrievePaymentMethodsParams {
|
|
15
6
|
@ApiProperty()
|
|
16
7
|
@IsString()
|
|
@@ -3,6 +3,7 @@ import { IPaymentMethod } from './IPaymentMethod';
|
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
5
|
import { IFile } from './IFile';
|
|
6
|
+
import { IPaymentExpectation } from './IPaymentExpectation';
|
|
6
7
|
|
|
7
8
|
// payments
|
|
8
9
|
export interface IPayment {
|
|
@@ -39,6 +40,7 @@ export interface IPayment {
|
|
|
39
40
|
// Associations
|
|
40
41
|
paymentsPrestations?: IPrestation;
|
|
41
42
|
paymentsMethod?: IPaymentMethod;
|
|
43
|
+
paymentExpectations?: IPaymentExpectation[];
|
|
42
44
|
user?: IUser;
|
|
43
45
|
exercice?: IExercice;
|
|
44
46
|
files?: IFile;
|
|
@@ -15,6 +15,7 @@ export interface IPaymentExpectation {
|
|
|
15
15
|
idSociety: number;
|
|
16
16
|
idRegulation: number | null;
|
|
17
17
|
idPrestation: number | null;
|
|
18
|
+
idPayment: number | null;
|
|
18
19
|
idUserNotifyPaiementProceed?: number | null;
|
|
19
20
|
idUserTaskPaiementProceed?: number | null;
|
|
20
21
|
createdAt?: Date | null;
|
|
@@ -33,11 +33,13 @@ export interface IUser {
|
|
|
33
33
|
firstname?: string | null;
|
|
34
34
|
lastname?: string | null;
|
|
35
35
|
fullname?: string | null;
|
|
36
|
+
avatarLink?: string;
|
|
36
37
|
email?: string | null;
|
|
37
38
|
email2?: string | null;
|
|
38
39
|
isMigrated?: boolean;
|
|
39
40
|
username?: string | null;
|
|
40
41
|
stripeCustomerId?: string | null;
|
|
42
|
+
stripeCustomerIdErp?: string | null;
|
|
41
43
|
positionLabel?: string | null;
|
|
42
44
|
sha?: string | null;
|
|
43
45
|
hash?: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -825,7 +825,6 @@ export * from './Interface/api/pappers/CreatePappers';
|
|
|
825
825
|
export * from './Interface/api/bankAccount/Query';
|
|
826
826
|
export * from './Interface/api/bankAccount/Update';
|
|
827
827
|
export * from './Interface/api/stripe/QueryStripe';
|
|
828
|
-
export * from './Interface/api/stripe/ReadStripe';
|
|
829
828
|
export * from './Interface/api/supervision/Query';
|
|
830
829
|
export * from './Interface/api/supervision/Read';
|
|
831
830
|
export * from './Interface/api/salariesFile/ReadSalariesFile';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
|