@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.
- package/dist/cjs/api/resources/AccountingFiles.js +2 -2
- package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
- package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts +9 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +5 -3
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +1 -1
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +8 -0
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/ReportType.d.ts +8 -0
- package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportType.js +8 -0
- package/dist/cjs/types/Enum/ReportType.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts +2 -0
- package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js +13 -0
- package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.js +2 -2
- package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/mjs/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
- package/dist/mjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts +9 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +5 -3
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +1 -1
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +8 -0
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/ReportType.d.ts +8 -0
- package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportType.js +8 -0
- package/dist/mjs/types/Enum/ReportType.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.d.ts +2 -0
- package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js +16 -1
- package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +2 -2
- package/ts/api/resources/SocietyConfigBalanceSheet.ts +2 -2
- package/ts/types/Enum/BrandPourcentage.ts +5 -3
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/Proceding.ts +8 -0
- package/ts/types/Enum/ReportType.ts +8 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
- 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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateShineTransactions.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":"
|
|
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 {
|
|
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;
|
|
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.
|
|
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<
|
|
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<
|
|
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: [
|
|
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',
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
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
|
}
|