@silexpert/core 1.1.149 → 1.1.150

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 (61) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.js +2 -2
  2. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  3. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
  4. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
  5. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  6. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +9 -1
  7. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  8. package/dist/cjs/types/Enum/BrandPourcentage.js +5 -3
  9. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  10. package/dist/cjs/types/Enum/Ged.js +1 -1
  11. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  12. package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
  13. package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/Proceding.js +8 -0
  15. package/dist/cjs/types/Enum/Proceding.js.map +1 -1
  16. package/dist/cjs/types/Enum/ReportType.d.ts +8 -0
  17. package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/ReportType.js +8 -0
  19. package/dist/cjs/types/Enum/ReportType.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  21. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts +2 -0
  24. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js +13 -0
  26. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
  27. package/dist/mjs/api/resources/AccountingFiles.js +2 -2
  28. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  29. package/dist/mjs/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
  30. package/dist/mjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
  31. package/dist/mjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  32. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +9 -1
  33. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/BrandPourcentage.js +5 -3
  35. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  36. package/dist/mjs/types/Enum/Ged.js +1 -1
  37. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  38. package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
  39. package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
  40. package/dist/mjs/types/Enum/Proceding.js +8 -0
  41. package/dist/mjs/types/Enum/Proceding.js.map +1 -1
  42. package/dist/mjs/types/Enum/ReportType.d.ts +8 -0
  43. package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
  44. package/dist/mjs/types/Enum/ReportType.js +8 -0
  45. package/dist/mjs/types/Enum/ReportType.js.map +1 -1
  46. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  47. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  48. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  49. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.d.ts +2 -0
  50. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
  51. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js +16 -1
  52. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
  53. package/package.json +1 -1
  54. package/ts/api/resources/AccountingFiles.ts +2 -2
  55. package/ts/api/resources/SocietyConfigBalanceSheet.ts +2 -2
  56. package/ts/types/Enum/BrandPourcentage.ts +5 -3
  57. package/ts/types/Enum/Ged.ts +1 -1
  58. package/ts/types/Enum/Proceding.ts +8 -0
  59. package/ts/types/Enum/ReportType.ts +8 -0
  60. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
  61. package/ts/types/Interface/api/shine/CreateShineTransactions.ts +12 -1
@@ -1 +1 @@
1
- {"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;IAE7B,gBAAgB,CAAS;IAIzB,KAAK,CAAU;IAIf,UAAU,CAAU;IAIpB,SAAS,CAAU;IAGnB,KAAK,CAAS;IAGd,YAAY,CAAU;CACzB;AApBC;IAAC,WAAW,EAAE;;8DACa;AAE3B;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;mDACK;AAEjB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;wDACU;AAEtB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;uDACS;AAErB;IAAC,WAAW,EAAE;;mDACE;AAEhB;IAAC,mBAAmB,EAAE;;0DACE;AAG1B,MAAM,OAAO,sBAAuB,SAAQ,oBAAoB;IAE5D,SAAS,CAAS;IAGlB,uBAAuB,CAAS;CACnC;AALC;IAAC,WAAW,EAAE;;yDACM;AAEpB;IAAC,mBAAmB,EAAE;;uEACY","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}\n\nexport class QueryAccountingFilesV2 extends QueryAccountingFiles {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idAccountingTransaction: number;\n}"]}
1
+ {"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;IAE7B,gBAAgB,CAAS;IAIzB,KAAK,CAAU;IAIf,UAAU,CAAU;IAIpB,SAAS,CAAU;IAGnB,KAAK,CAAS;IAGd,YAAY,CAAU;CACzB;AApBC;IAAC,WAAW,EAAE;;8DACa;AAE3B;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;mDACK;AAEjB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;wDACU;AAEtB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;uDACS;AAErB;IAAC,WAAW,EAAE;;mDACE;AAEhB;IAAC,mBAAmB,EAAE;;0DACE;AAG1B,MAAM,OAAO,sBAAuB,SAAQ,oBAAoB;IAE5D,SAAS,CAAS;IAGlB,uBAAuB,CAAU;CACpC;AALC;IAAC,WAAW,EAAE;;yDACM;AAEpB;IAAC,mBAAmB,EAAE;;uEACa","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}\n\nexport class QueryAccountingFilesV2 extends QueryAccountingFiles {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idAccountingTransaction?: number;\n}"]}
@@ -1,4 +1,6 @@
1
1
  export declare class CreateShineTransactions {
2
2
  idBankAccount: number;
3
+ startDate?: Date;
4
+ endDate?: Date;
3
5
  }
4
6
  //# sourceMappingURL=CreateShineTransactions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateShineTransactions.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAEhC,aAAa,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"CreateShineTransactions.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAEhC,aAAa,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -7,12 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { ApiProperty } from '../../../../utils';
10
+ import { IsDate, IsOptional } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
11
12
  export class CreateShineTransactions {
12
13
  idBankAccount;
14
+ startDate;
15
+ endDate;
13
16
  }
14
17
  __decorate([
15
18
  ApiProperty(),
16
19
  __metadata("design:type", Number)
17
20
  ], CreateShineTransactions.prototype, "idBankAccount", void 0);
21
+ __decorate([
22
+ ApiPropertyOptional(),
23
+ IsDate(),
24
+ IsOptional(),
25
+ __metadata("design:type", Date)
26
+ ], CreateShineTransactions.prototype, "startDate", void 0);
27
+ __decorate([
28
+ ApiPropertyOptional(),
29
+ IsDate(),
30
+ IsOptional(),
31
+ __metadata("design:type", Date)
32
+ ], CreateShineTransactions.prototype, "endDate", void 0);
18
33
  //# sourceMappingURL=CreateShineTransactions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateShineTransactions.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,uBAAuB;IAEhC,aAAa,CAAS;CACzB;AAFC;IAAC,WAAW,EAAE;;8DACU","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class CreateShineTransactions {\n @ApiProperty()\n idBankAccount: number;\n}"]}
1
+ {"version":3,"file":"CreateShineTransactions.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,uBAAuB;IAEhC,aAAa,CAAS;IAKtB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAClB;AAZC;IAAC,WAAW,EAAE;;8DACU;AAExB;IAAC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACC,IAAI;0DAAC;AAEnB;IAAC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;wDAAC","sourcesContent":["import { IsDate, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateShineTransactions {\n @ApiProperty()\n idBankAccount: number;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.149",
3
+ "version": "1.1.150",
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",
@@ -25,7 +25,7 @@ export class AccountingFiles extends Resource {
25
25
  createCashBasedAccountingFiles(params: QueryAccountingFilesV2) : Promise<IAccountingFile[]> {
26
26
  const formData = new FormData();
27
27
  Object.entries(params).forEach(([key, value]) => {
28
- if (value || value === 0) {
28
+ if (value || value === false || value === 0) {
29
29
  if (key === 'files') {
30
30
  value.forEach((file: File) => {
31
31
  formData.append('files', file);
@@ -41,7 +41,7 @@ export class AccountingFiles extends Resource {
41
41
  createAccrualAccountingFile(params: QueryAccountingFilesV2) : Promise<ReadFormattedAccountingTransaction[]> {
42
42
  const formData = new FormData();
43
43
  Object.entries(params).forEach(([key, value]) => {
44
- if (value || value === 0) {
44
+ if (value || value === false || value === 0) {
45
45
  if (key === 'files') {
46
46
  value.forEach((file: File) => {
47
47
  formData.append('files', file);
@@ -17,11 +17,11 @@ export class SocietyConfigBalanceSheet extends Resource {
17
17
  return this.axios.$post(`/societies/${id}/asked-documents/settings`, payload);
18
18
  }
19
19
 
20
- public getAll(id: number, params: QueryGetAllSocietyConfigBalanceSheet): Promise<SocietyConfigBalanceSheet[]> {
20
+ public getAll(id: number, params: QueryGetAllSocietyConfigBalanceSheet): Promise<ISocietyConfigBalanceSheet[]> {
21
21
  return this.axios.$get(`/societies/${id}/balance-sheets/settings/list`, { params });
22
22
  }
23
23
 
24
- public update(idSociety: number, id: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<SocietyConfigBalanceSheet> {
24
+ public update(idSociety: number, id: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<ISocietyConfigBalanceSheet> {
25
25
  return this.axios.$put(`/societies/${idSociety}/balance-sheets/settings/${id}`, payload);
26
26
  }
27
27
 
@@ -156,21 +156,22 @@ export const BrandPourcentage = [
156
156
  name: 'bloc_compta_pourcentage',
157
157
  needBgImage: false,
158
158
  versionable: false,
159
- idPrestationType: [],
159
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
160
160
  },
161
161
  {
162
162
  label: 'Compta Pourcentage sur mesure',
163
163
  name: 'bloc_compta_pourcentage_sur_mesure',
164
164
  needBgImage: false,
165
165
  versionable: false,
166
- idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
166
+ idPrestationType: [],
167
167
  },
168
168
  {
169
169
  label: 'Compta Pourcentage Premium',
170
170
  name: 'bloc_compta_pourcentage_premium',
171
171
  needBgImage: false,
172
172
  versionable: false,
173
- idPrestationType: [],
173
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
174
+ condition: (turnover: number): boolean => turnover < 1500000,
174
175
  },
175
176
  {
176
177
  label: 'Compta Pourcentage Premium sur mesure',
@@ -178,6 +179,7 @@ export const BrandPourcentage = [
178
179
  needBgImage: false,
179
180
  versionable: false,
180
181
  idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
182
+ condition: (turnover: number): boolean => turnover >= 1500000,
181
183
  },
182
184
  {
183
185
  label: 'Forfait social',
@@ -254,7 +254,7 @@ export const GedFileTypeDetail = {
254
254
  },
255
255
  FISCAL_BUNDLE: {
256
256
  id: GedFileType.FISCAL_BUNDLE,
257
- name: 'Liasse fiscale N-1',
257
+ name: 'Document Comptable N-1',
258
258
  },
259
259
  };
260
260
 
@@ -31,4 +31,12 @@ export const Proceding = {
31
31
  id: 8,
32
32
  name: 'Liquidation EI',
33
33
  },
34
+ FISCAL_CONTROL: {
35
+ id: 9,
36
+ name: 'Contrôle fiscal',
37
+ },
38
+ REDRESSEMENT: {
39
+ id: 10,
40
+ name: 'Redressement',
41
+ },
34
42
  };
@@ -31,4 +31,12 @@ export const ReportType = {
31
31
  id: 8,
32
32
  name: 'Client mécontent',
33
33
  },
34
+ FISCAL_CONTROL: {
35
+ id: 9,
36
+ name: 'Contrôle fiscal en cours',
37
+ },
38
+ REDRESSEMENT: {
39
+ id: 10,
40
+ name: 'Redressement',
41
+ },
34
42
  };
@@ -29,5 +29,5 @@ export class QueryAccountingFilesV2 extends QueryAccountingFiles {
29
29
  idSociety: number;
30
30
 
31
31
  @ApiPropertyOptional()
32
- idAccountingTransaction: number;
32
+ idAccountingTransaction?: number;
33
33
  }
@@ -1,6 +1,17 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { IsDate, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class CreateShineTransactions {
4
5
  @ApiProperty()
5
6
  idBankAccount: number;
7
+
8
+ @ApiPropertyOptional()
9
+ @IsDate()
10
+ @IsOptional()
11
+ startDate?: Date;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsDate()
15
+ @IsOptional()
16
+ endDate?: Date;
6
17
  }