@silexpert/core 1.0.205 → 1.0.206

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.205",
3
+ "version": "1.0.206",
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": "js/index.js",
@@ -1,8 +1,12 @@
1
1
  import { Resource } from '../Resource';
2
- import { IFirstStep } from '../../types';
2
+ import { IFirstStep, UpdateOrCreateFirstStep } from '../../types';
3
3
 
4
4
  export class FirstStep extends Resource {
5
5
  get(): Promise<IFirstStep> {
6
6
  return this.axios.$get('/society/firstStep');
7
7
  }
8
+
9
+ updateOrCreate(params: UpdateOrCreateFirstStep): Promise<IFirstStep> {
10
+ return this.axios.$put('/society/first-steps', params);
11
+ }
8
12
  }
@@ -0,0 +1,39 @@
1
+ import { IsDate, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class UpdateOrCreateFirstStep {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsDate()
8
+ hasBankAccountSynchronized?: Date;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsDate()
13
+ hasContactInformationsFilled?: Date;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsDate()
18
+ hasEmailCustom?: Date;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsDate()
23
+ hasStripeConnector?: Date;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsOptional()
27
+ @IsDate()
28
+ hasAccountingTransactionAnnotated?: Date;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsDate()
33
+ hasBillingToolCustom?: Date;
34
+
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
37
+ @IsDate()
38
+ hasMobileApp?: Date;
39
+ }
package/ts/types/index.ts CHANGED
@@ -477,6 +477,7 @@ export * from './Interface/api/accountingEntry/CreateManualEntry';
477
477
  export * from './Interface/api/immobilization/ReadFormattedImmobilization';
478
478
  export * from './Interface/api/immobilization/CreateImmobilization';
479
479
  export * from './Interface/api/payment/QueryMonthlyPayment';
480
+ export * from './Interface/api/firstStep/Create';
480
481
  export * from './Interface/api/registration/QueryRegistration';
481
482
  export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
482
483
  export * from './Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer';