@silexpert/core 1.3.30-2 → 1.3.30-3
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/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/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/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/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/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/package.json +1 -1
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/FIle.ts +4 -0
- 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/models/IPayment.ts +2 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
- package/ts/types/Interface/models/IUser.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUser.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { IRole } from './IRole';\nimport { ICivility } from './ICivility';\nimport { IFile } from './IFile';\nimport { IUserSocietyPermission } from './IUserSocietyPermission';\nimport { IWorkingSchedule } from './IWorkingSchedule';\nimport { IRecontactHistory } from './IRecontactHistory';\nimport { IAllowedIp } from './IAllowedIp';\nimport { IBusinessPartner } from './IBusinessPartner';\nimport { ILog } from './ILog';\nimport { INotification } from './INotification';\nimport { ISociety } from './ISociety';\nimport { ITeam } from './ITeam';\nimport { IMobile } from './IMobile';\nimport { IRoleUser } from './IRoleUser';\nimport { ITimeRecorder } from './ITimeRecorder';\nimport { EntityType } from '../../Enum/EntityType';\nimport { IMailAddress } from './IMailAddress';\nimport { IAccountingStatementHistory } from './IAccountingStatementHistory';\nimport { ICountry } from './ICountry';\nimport { INationality } from './INationality';\nimport { IUserBrand } from './IUserBrand';\nimport { ICollaboraterDetail } from './ICollaboraterDetail';\nimport { IUserTimeSlot } from './IUserTimeSlot';\nimport { IUserTeam } from './IUserTeam';\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\ntype isAny<T> = T | any;\n\n// users\nexport interface IUser {\n id?: number;\n firstname?: string | null;\n lastname?: string | null;\n fullname?: string | null;\n email?: string | null;\n email2?: string | null;\n isMigrated?: boolean;\n username?: string | null;\n stripeCustomerId?: string | null;\n positionLabel?: string | null;\n sha?: string | null;\n hash?: string | null;\n password?: string | null;\n idFile?: number | null;\n quality?: string | null; //FIXME: à supprimer ?\n phone?: string | null;\n phone2?: string | null;\n textMessageNumber?: string | null;\n prefix?: string | null;\n tokenLostPassword?: string | null;\n tokenApi?: string | null;\n tokenNotification?: string | null;\n tokenSocket?: string | null;\n authyId?: string | null;\n authCode?: string | null;\n authCodeDate?: Date | null;\n tutoTransaction?: boolean | null;\n lastConnection?: Date | null;\n beforeLastConnection?: Date | null;\n active?: boolean | null;\n toContact?: boolean;\n stateProspect?: boolean | null;\n birthdate?: Date | null;\n arrivalDate?: Date | null;\n entity?: EntityType | null;\n validityDateOfResidencePermit?: Date | null;\n isNewProspect?: boolean;\n hasAccountNumberDisplay?: boolean;\n isResponderActive?: boolean;\n suppDoublon?: boolean | null;\n calendlyUrl?: string | null;\n idCivility?: number | null;\n idCommercialDoublon?: number | null;\n idProspectIsWith?: number | null;\n apprentice?: boolean;\n flexitime?: boolean;\n /**\n * @deprecated\n */\n idCommercialGrade?: number | null;\n smsNotAllowed?: boolean;\n restDaysAbsence?: number | null;\n startOnboarding?: Date | null;\n societyByDefault?: number | null;\n longAbsence?: boolean | null;\n isDailyContract?: boolean | null;\n internationalPhone?: string | null;\n isThemeLight?: boolean;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n confirmedAt?: Date | null;\n tokenConfirmedAt?: string | null;\n idPoleLeader?: number | null;\n affiliateTrackingId?: number | null;\n streetNumber?: string | null;\n address?: string;\n zipCodeBirth?: string;\n //@deprecated Use cityOfBirth instead\n birthPlace?: string;\n departmentBirth?: string;\n idCountryBirth?: number;\n birthname?: string;\n cityOfBirth?: string;\n idCountry?: number;\n zipCode?: string | null;\n city?: string | null;\n idNationality?: number;\n maritalStatus?: string;\n idMaritalStatus?: number;\n\n // Associations\n userHasEvent?: isAny<ICalendarEvent>[];\n roles?: IRole[];\n roleUser?: IRoleUser;\n genders?: ICivility;\n commercial?: IUser;\n prospectPrincipal?: IUser;\n avatar?: IFile;\n userPermissions?: IUserSocietyPermission[];\n workingSchedules?: IWorkingSchedule[];\n recontactHistories?: IRecontactHistory[];\n poleLeader?: IUser;\n allowedIps?: IAllowedIp[];\n businessPartners?: IBusinessPartner[];\n poleAccountants?: IUser[];\n logs?: ILog[];\n notifications?: INotification[];\n societies?: ISociety[];\n teams?: ITeam[];\n userTeams?: IUserTeam[];\n mobile?: IMobile;\n timeRecorders?: ITimeRecorder[];\n mailAddresses?: IMailAddress[];\n accountingStatementHistory?: IAccountingStatementHistory[];\n country?: ICountry;\n countryLiving?: ICountry;\n nationality?: INationality;\n usersBrands?: IUserBrand[];\n usersTimeSlots?: IUserTimeSlot[];\n collaboraterDetails?: ICollaboraterDetail;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUser.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { IRole } from './IRole';\nimport { ICivility } from './ICivility';\nimport { IFile } from './IFile';\nimport { IUserSocietyPermission } from './IUserSocietyPermission';\nimport { IWorkingSchedule } from './IWorkingSchedule';\nimport { IRecontactHistory } from './IRecontactHistory';\nimport { IAllowedIp } from './IAllowedIp';\nimport { IBusinessPartner } from './IBusinessPartner';\nimport { ILog } from './ILog';\nimport { INotification } from './INotification';\nimport { ISociety } from './ISociety';\nimport { ITeam } from './ITeam';\nimport { IMobile } from './IMobile';\nimport { IRoleUser } from './IRoleUser';\nimport { ITimeRecorder } from './ITimeRecorder';\nimport { EntityType } from '../../Enum/EntityType';\nimport { IMailAddress } from './IMailAddress';\nimport { IAccountingStatementHistory } from './IAccountingStatementHistory';\nimport { ICountry } from './ICountry';\nimport { INationality } from './INationality';\nimport { IUserBrand } from './IUserBrand';\nimport { ICollaboraterDetail } from './ICollaboraterDetail';\nimport { IUserTimeSlot } from './IUserTimeSlot';\nimport { IUserTeam } from './IUserTeam';\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\ntype isAny<T> = T | any;\n\n// users\nexport interface IUser {\n id?: number;\n firstname?: string | null;\n lastname?: string | null;\n fullname?: string | null;\n avatarLink?: string;\n email?: string | null;\n email2?: string | null;\n isMigrated?: boolean;\n username?: string | null;\n stripeCustomerId?: string | null;\n stripeCustomerIdErp?: string | null;\n positionLabel?: string | null;\n sha?: string | null;\n hash?: string | null;\n password?: string | null;\n idFile?: number | null;\n quality?: string | null; //FIXME: à supprimer ?\n phone?: string | null;\n phone2?: string | null;\n textMessageNumber?: string | null;\n prefix?: string | null;\n tokenLostPassword?: string | null;\n tokenApi?: string | null;\n tokenNotification?: string | null;\n tokenSocket?: string | null;\n authyId?: string | null;\n authCode?: string | null;\n authCodeDate?: Date | null;\n tutoTransaction?: boolean | null;\n lastConnection?: Date | null;\n beforeLastConnection?: Date | null;\n active?: boolean | null;\n toContact?: boolean;\n stateProspect?: boolean | null;\n birthdate?: Date | null;\n arrivalDate?: Date | null;\n entity?: EntityType | null;\n validityDateOfResidencePermit?: Date | null;\n isNewProspect?: boolean;\n hasAccountNumberDisplay?: boolean;\n isResponderActive?: boolean;\n suppDoublon?: boolean | null;\n calendlyUrl?: string | null;\n idCivility?: number | null;\n idCommercialDoublon?: number | null;\n idProspectIsWith?: number | null;\n apprentice?: boolean;\n flexitime?: boolean;\n /**\n * @deprecated\n */\n idCommercialGrade?: number | null;\n smsNotAllowed?: boolean;\n restDaysAbsence?: number | null;\n startOnboarding?: Date | null;\n societyByDefault?: number | null;\n longAbsence?: boolean | null;\n isDailyContract?: boolean | null;\n internationalPhone?: string | null;\n isThemeLight?: boolean;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n confirmedAt?: Date | null;\n tokenConfirmedAt?: string | null;\n idPoleLeader?: number | null;\n affiliateTrackingId?: number | null;\n streetNumber?: string | null;\n address?: string;\n zipCodeBirth?: string;\n //@deprecated Use cityOfBirth instead\n birthPlace?: string;\n departmentBirth?: string;\n idCountryBirth?: number;\n birthname?: string;\n cityOfBirth?: string;\n idCountry?: number;\n zipCode?: string | null;\n city?: string | null;\n idNationality?: number;\n maritalStatus?: string;\n idMaritalStatus?: number;\n\n // Associations\n userHasEvent?: isAny<ICalendarEvent>[];\n roles?: IRole[];\n roleUser?: IRoleUser;\n genders?: ICivility;\n commercial?: IUser;\n prospectPrincipal?: IUser;\n avatar?: IFile;\n userPermissions?: IUserSocietyPermission[];\n workingSchedules?: IWorkingSchedule[];\n recontactHistories?: IRecontactHistory[];\n poleLeader?: IUser;\n allowedIps?: IAllowedIp[];\n businessPartners?: IBusinessPartner[];\n poleAccountants?: IUser[];\n logs?: ILog[];\n notifications?: INotification[];\n societies?: ISociety[];\n teams?: ITeam[];\n userTeams?: IUserTeam[];\n mobile?: IMobile;\n timeRecorders?: ITimeRecorder[];\n mailAddresses?: IMailAddress[];\n accountingStatementHistory?: IAccountingStatementHistory[];\n country?: ICountry;\n countryLiving?: ICountry;\n nationality?: INationality;\n usersBrands?: IUserBrand[];\n usersTimeSlots?: IUserTimeSlot[];\n collaboraterDetails?: ICollaboraterDetail;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.30-
|
|
3
|
+
"version": "1.3.30-3",
|
|
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",
|
|
@@ -18,6 +18,13 @@ export class Authenticate extends Resource {
|
|
|
18
18
|
return this.axios.$post('/authenticate', payload);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Rafraichi le token, il est nécessaire d'être connecté et d'avoir un "current society"
|
|
23
|
+
*/
|
|
24
|
+
async refresh(): Promise<{ token: string }> {
|
|
25
|
+
return this.axios.$post('/authenticate/refresh');
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
async connectAsCollaborater(idCollaborater: number): Promise<{ token: string }> {
|
|
22
29
|
return this.axios.$post(`/authenticate/collaborater/${idCollaborater}`);
|
|
23
30
|
}
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -46,6 +46,10 @@ export class File extends Resource {
|
|
|
46
46
|
return this.axios.$patch(`files/${id}`, payload);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
updateName(id: number, name: string): Promise<IFile> {
|
|
50
|
+
return this.axios.$patch(`files/${id}/name`, { name });
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
delete(id: number): Promise<true> {
|
|
50
54
|
return this.axios.$delete(`files/${id}`);
|
|
51
55
|
}
|
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
|
}
|
|
@@ -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;
|