@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.
Files changed (121) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +8 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/FIle.d.ts +1 -0
  6. package/dist/cjs/api/resources/FIle.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/FIle.js +3 -0
  8. package/dist/cjs/api/resources/FIle.js.map +1 -1
  9. package/dist/cjs/api/resources/Subscription.d.ts +1 -5
  10. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Subscription.js +0 -6
  12. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  13. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  14. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/Account.js +4 -0
  16. package/dist/cjs/types/Enum/Account.js.map +1 -1
  17. package/dist/cjs/types/Enum/Feature.d.ts +1 -0
  18. package/dist/cjs/types/Enum/Feature.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/Feature.js +2 -0
  20. package/dist/cjs/types/Enum/Feature.js.map +1 -1
  21. package/dist/cjs/types/Enum/JobTitle.d.ts +3 -1
  22. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/JobTitle.js +12 -0
  24. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  26. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
  28. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +8 -0
  30. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/stripe/Create.js +29 -1
  32. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
  34. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +1 -14
  36. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  37. package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
  38. package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
  40. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  41. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  42. package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  43. package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
  44. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  46. package/dist/cjs/types/index.d.ts +0 -1
  47. package/dist/cjs/types/index.d.ts.map +1 -1
  48. package/dist/cjs/types/index.js +0 -1
  49. package/dist/cjs/types/index.js.map +1 -1
  50. package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
  51. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  52. package/dist/mjs/api/resources/Authenticate.js +6 -0
  53. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  54. package/dist/mjs/api/resources/FIle.d.ts +1 -0
  55. package/dist/mjs/api/resources/FIle.d.ts.map +1 -1
  56. package/dist/mjs/api/resources/FIle.js +3 -0
  57. package/dist/mjs/api/resources/FIle.js.map +1 -1
  58. package/dist/mjs/api/resources/Subscription.d.ts +1 -5
  59. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  60. package/dist/mjs/api/resources/Subscription.js +0 -6
  61. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  62. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  63. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  64. package/dist/mjs/types/Enum/Account.js +4 -0
  65. package/dist/mjs/types/Enum/Account.js.map +1 -1
  66. package/dist/mjs/types/Enum/Feature.d.ts +1 -0
  67. package/dist/mjs/types/Enum/Feature.d.ts.map +1 -1
  68. package/dist/mjs/types/Enum/Feature.js +2 -0
  69. package/dist/mjs/types/Enum/Feature.js.map +1 -1
  70. package/dist/mjs/types/Enum/JobTitle.d.ts +3 -1
  71. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  72. package/dist/mjs/types/Enum/JobTitle.js +12 -0
  73. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  74. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  75. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
  77. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  78. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +8 -0
  79. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  80. package/dist/mjs/types/Interface/api/stripe/Create.js +32 -0
  81. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  82. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
  83. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  84. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +0 -14
  85. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  86. package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
  87. package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
  88. package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
  89. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  90. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  91. package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  92. package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
  93. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  94. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  95. package/dist/mjs/types/index.d.ts +0 -1
  96. package/dist/mjs/types/index.d.ts.map +1 -1
  97. package/dist/mjs/types/index.js +0 -1
  98. package/dist/mjs/types/index.js.map +1 -1
  99. package/package.json +1 -1
  100. package/ts/api/resources/Authenticate.ts +7 -0
  101. package/ts/api/resources/FIle.ts +4 -0
  102. package/ts/api/resources/Subscription.ts +1 -14
  103. package/ts/types/Enum/Account.ts +4 -0
  104. package/ts/types/Enum/Feature.ts +3 -0
  105. package/ts/types/Enum/JobTitle.ts +12 -0
  106. package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
  107. package/ts/types/Interface/api/stripe/Create.ts +22 -0
  108. package/ts/types/Interface/api/stripe/QueryStripe.ts +0 -9
  109. package/ts/types/Interface/models/IPayment.ts +2 -0
  110. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  111. package/ts/types/Interface/models/IUser.ts +2 -0
  112. package/ts/types/index.ts +0 -1
  113. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  114. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  115. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
  116. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  117. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  118. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  119. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
  120. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  121. 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(
@@ -11,6 +11,10 @@ export const Account = {
11
11
  id: 27,
12
12
  number: 607000,
13
13
  },
14
+ MERCHANDISE_CREDIT: {
15
+ id: 227,
16
+ number: 607190,
17
+ },
14
18
  RESULT_BENEFIT: {
15
19
  id: 91,
16
20
  number: 120000,
@@ -47,6 +47,9 @@ export enum Feature {
47
47
  // Expert-Comptable
48
48
  EXPERT_ACCOUNTANT = 'expert_accountant',
49
49
 
50
+ // Chat Crisp
51
+ CHAT = 'chat',
52
+
50
53
  /** Configuration */
51
54
  SETTING = 'setting',
52
55
  SETTING_INFORMATION = 'information',
@@ -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
- @IsNumber()
20
+ @IsInt()
21
21
  idReason: PaymentReason;
22
22
 
23
23
  @ApiPropertyOptional()
24
- @IsNumber()
24
+ @IsInt()
25
25
  @IsOptional()
26
26
  idPrestation?: number | null;
27
27
 
28
28
  @ApiPropertyOptional()
29
- @IsNumber()
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,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ReadStripe.js.map
@@ -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,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReadStripe.js.map
@@ -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,4 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };