@silexpert/core 1.0.184 → 1.0.186
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/es/types/Enum/EntityType.d.ts +18 -0
- package/es/types/Enum/EntityType.d.ts.map +1 -0
- package/es/types/Enum/EntityType.js +66 -0
- package/es/types/Enum/EntityType.js.map +1 -0
- package/es/types/Enum/NotificationType.d.ts +2 -1
- package/es/types/Enum/NotificationType.d.ts.map +1 -1
- package/es/types/Enum/NotificationType.js +6 -0
- package/es/types/Enum/NotificationType.js.map +1 -1
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts +21 -3
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts.map +1 -1
- package/es/types/Interface/api/companeo/CompaneoReturn.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +4 -0
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +14 -2
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +2 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +1 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -1
- package/es/types/index.js.map +1 -1
- package/js/types/Enum/EntityType.js +64 -0
- package/js/types/Enum/EntityType.js.map +1 -0
- package/js/types/Enum/NotificationType.js +6 -0
- package/js/types/Enum/NotificationType.js.map +1 -1
- package/js/types/Interface/api/companeo/CompaneoReturn.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +5 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/models/IUser.js.map +1 -1
- package/js/types/index.js +34 -34
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/EntityType.ts +65 -0
- package/ts/types/Enum/NotificationType.ts +6 -0
- package/ts/types/Interface/api/companeo/CompaneoReturn.ts +23 -3
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +12 -2
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/index.ts +1 -1
- package/es/types/Interface/api/companeo/Query.d.ts +0 -5
- package/es/types/Interface/api/companeo/Query.d.ts.map +0 -1
- package/es/types/Interface/api/companeo/Query.js +0 -26
- package/es/types/Interface/api/companeo/Query.js.map +0 -1
- package/js/types/Interface/api/companeo/Query.js +0 -23
- package/js/types/Interface/api/companeo/Query.js.map +0 -1
- package/ts/types/Interface/api/companeo/Query.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.186",
|
|
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",
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export enum EntityType {
|
|
2
|
+
EXPERTISE_CHOIX_B = 1,
|
|
3
|
+
COMPTALIB = 2,
|
|
4
|
+
POURCENTAGE = 3,
|
|
5
|
+
AEC54 = 4,
|
|
6
|
+
TIKTAK = 5,
|
|
7
|
+
PETITEJOB = 6,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const EntityTypeDetail = [
|
|
11
|
+
{
|
|
12
|
+
id: EntityType.EXPERTISE_CHOIX_B,
|
|
13
|
+
name: 'SAS EXPERTISE CHOIX B',
|
|
14
|
+
adress: '9 Avenue du Rhin',
|
|
15
|
+
city: '54520 LAXOU',
|
|
16
|
+
capital: '500 000 €',
|
|
17
|
+
RCS: '752 566 687',
|
|
18
|
+
phone: '03 83 93 14 14',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: EntityType.COMPTALIB,
|
|
22
|
+
name: 'SAS COMPTALIB',
|
|
23
|
+
adress: '9 Avenue du Rhin',
|
|
24
|
+
city: '54520 LAXOU',
|
|
25
|
+
capital: '10 272 €',
|
|
26
|
+
RCS: '808 070 726',
|
|
27
|
+
phone: '03 83 93 14 14',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: EntityType.POURCENTAGE,
|
|
31
|
+
name: 'SAS POURCENTAGE',
|
|
32
|
+
adress: '9 Avenue du Rhin',
|
|
33
|
+
city: '54520 LAXOU',
|
|
34
|
+
capital: '10 000 €',
|
|
35
|
+
RCS: '891 501 181',
|
|
36
|
+
phone: '03 83 93 14 14',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: EntityType.AEC54,
|
|
40
|
+
name: 'AEC54',
|
|
41
|
+
adress: '9 Avenue du Rhin',
|
|
42
|
+
city: '54520 LAXOU',
|
|
43
|
+
capital: '7 622 €',
|
|
44
|
+
RCS: '315 519 587',
|
|
45
|
+
phone: '03 83 93 14 14',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: EntityType.TIKTAK,
|
|
49
|
+
name: 'SAS TIKTAK SERVICES',
|
|
50
|
+
adress: '9 Avenue du Rhin',
|
|
51
|
+
city: '54520 LAXOU',
|
|
52
|
+
capital: '3 000 €',
|
|
53
|
+
RCS: '948 985 577',
|
|
54
|
+
phone: '03 83 93 14 14',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: EntityType.PETITEJOB,
|
|
58
|
+
name: 'SAS PETITEJOB',
|
|
59
|
+
adress: '30 rue des Mathurins',
|
|
60
|
+
city: '75008 PARIS',
|
|
61
|
+
capital: '5 000 €',
|
|
62
|
+
RCS: '888 753 878',
|
|
63
|
+
phone: '03 83 93 14 14',
|
|
64
|
+
},
|
|
65
|
+
];
|
|
@@ -4,6 +4,7 @@ export enum NotificationTypeEnum {
|
|
|
4
4
|
INVOICE_HAS_BEEN_PAID = 3,
|
|
5
5
|
ESTIMATE_ALMOST_EXPIRED = 4,
|
|
6
6
|
INVOICE_ALMOST_EXPIRED = 5,
|
|
7
|
+
ORDER_ALMOST_EXPIRED = 6,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export type NotificationTypeType = {
|
|
@@ -37,6 +38,11 @@ export const NotificationType: NotificationTypeTypeEnum = {
|
|
|
37
38
|
title: 'Un devis est bientôt expiré',
|
|
38
39
|
linkTitle: 'Consulter le devis',
|
|
39
40
|
},
|
|
41
|
+
ORDER_ALMOST_EXPIRED: {
|
|
42
|
+
id: NotificationTypeEnum.ORDER_ALMOST_EXPIRED,
|
|
43
|
+
title: 'Un bon de commande est bientôt expiré',
|
|
44
|
+
linkTitle: 'Consulter le bon de commande',
|
|
45
|
+
},
|
|
40
46
|
INVOICE_ALMOST_EXPIRED: {
|
|
41
47
|
id: NotificationTypeEnum.INVOICE_ALMOST_EXPIRED,
|
|
42
48
|
title: 'Une facture arrive à échéance',
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
export interface CompaneoQuestionType {
|
|
2
|
+
$: {
|
|
3
|
+
question_id: number
|
|
4
|
+
},
|
|
5
|
+
value: string,
|
|
6
|
+
reponse: {
|
|
7
|
+
_?: string,
|
|
8
|
+
$: {
|
|
9
|
+
answer_id: number,
|
|
10
|
+
},
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CompaneoBasicData {
|
|
15
|
+
_?: string,
|
|
16
|
+
$?: {
|
|
17
|
+
code: string,
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
1
21
|
export interface CompaneoReturn {
|
|
2
22
|
id: number,
|
|
3
23
|
lead_id: number,
|
|
@@ -7,9 +27,9 @@ export interface CompaneoReturn {
|
|
|
7
27
|
civilite: string,
|
|
8
28
|
nom: string,
|
|
9
29
|
prenom: string,
|
|
10
|
-
activite:
|
|
11
|
-
poste:
|
|
12
|
-
fonction:
|
|
30
|
+
activite: CompaneoBasicData,
|
|
31
|
+
poste: CompaneoBasicData,
|
|
32
|
+
fonction: CompaneoBasicData,
|
|
13
33
|
code_postal: string,
|
|
14
34
|
ville: string,
|
|
15
35
|
adresse: string,
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsBoolean,
|
|
3
|
-
IsDate, IsInt, IsOptional, IsString,
|
|
3
|
+
IsDate, IsInt, IsNumber, IsOptional, IsString,
|
|
4
4
|
} from 'class-validator';
|
|
5
|
-
import { ApiPropertyOptional } from '../../../..';
|
|
5
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
6
6
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
7
|
|
|
8
|
+
export class QueryVatMigrationEntry {
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsString()
|
|
11
|
+
token: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
export class QueryVatDeclaration {
|
|
9
19
|
@ApiPropertyOptional()
|
|
10
20
|
@IsDate()
|
|
@@ -16,6 +16,7 @@ import { IUserTest } from './IUserTest';
|
|
|
16
16
|
import { IMobile } from './IMobile';
|
|
17
17
|
import { IRoleUser } from './IRoleUser';
|
|
18
18
|
import { ITimeRecorder } from './ITimeRecorder';
|
|
19
|
+
import { EntityType } from '../../Enum/EntityType';
|
|
19
20
|
|
|
20
21
|
type isAny<T> = T | any;
|
|
21
22
|
|
|
@@ -56,6 +57,7 @@ export interface IUser {
|
|
|
56
57
|
stateProspect?: boolean | null;
|
|
57
58
|
birthdate?: Date | null;
|
|
58
59
|
arrivalDate?: Date | null;
|
|
60
|
+
entity?: EntityType | null;
|
|
59
61
|
validityDateOfResidencePermit?: Date | null;
|
|
60
62
|
isNewProspect?: boolean;
|
|
61
63
|
hasAccountNumberDisplay?: boolean;
|
package/ts/types/index.ts
CHANGED
|
@@ -480,6 +480,7 @@ export * from './Enum/UnpaidCallHistoryType';
|
|
|
480
480
|
export * from './Enum/CommercialImportHeader';
|
|
481
481
|
export * from './Enum/ReasonTerminationType';
|
|
482
482
|
export * from './Enum/RemoteType';
|
|
483
|
+
export * from './Enum/EntityType';
|
|
483
484
|
|
|
484
485
|
// Interfaces API
|
|
485
486
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
@@ -651,7 +652,6 @@ export * from './Interface/api/vatRegimeHistory/QueryVatRegimeHistory';
|
|
|
651
652
|
export * from './Interface/api/textMessage/Create';
|
|
652
653
|
export * from './Interface/api/textMessage/Update';
|
|
653
654
|
export * from './Interface/api/textMessage/Query';
|
|
654
|
-
export * from './Interface/api/companeo/Query';
|
|
655
655
|
export * from './Interface/api/companeo/CompaneoReturn';
|
|
656
656
|
export * from './Interface/api/team/QueryCreate';
|
|
657
657
|
export * from './Interface/api/team/QueryGetAllWithIncludes';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/companeo/Query.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAIxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsString, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
export class QueryCompaneo {
|
|
13
|
-
}
|
|
14
|
-
__decorate([
|
|
15
|
-
ApiPropertyOptional(),
|
|
16
|
-
IsOptional(),
|
|
17
|
-
IsString(),
|
|
18
|
-
__metadata("design:type", String)
|
|
19
|
-
], QueryCompaneo.prototype, "fromDate", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
ApiPropertyOptional(),
|
|
22
|
-
IsOptional(),
|
|
23
|
-
IsString(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], QueryCompaneo.prototype, "toDate", void 0);
|
|
26
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/companeo/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,aAAa;CAUzB;AATC;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+CACO;AAElB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACK","sourcesContent":["import { IsString, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryCompaneo {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fromDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n toDate?: string;\n}"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.QueryCompaneo = undefined;
|
|
7
|
-
var _classValidator = require("class-validator");
|
|
8
|
-
var _utils = require("../../../../utils");
|
|
9
|
-
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10
|
-
var c = arguments.length,
|
|
11
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
12
|
-
d;
|
|
13
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
|
-
};
|
|
16
|
-
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
17
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
18
|
-
};
|
|
19
|
-
class QueryCompaneo {}
|
|
20
|
-
exports.QueryCompaneo = QueryCompaneo;
|
|
21
|
-
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], QueryCompaneo.prototype, "fromDate", void 0);
|
|
22
|
-
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], QueryCompaneo.prototype, "toDate", void 0);
|
|
23
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","names":["_classValidator","require","_utils","QueryCompaneo","exports","__decorate","ApiPropertyOptional","IsOptional","IsString"],"sources":["../../../../../ts/types/Interface/api/companeo/Query.ts"],"sourcesContent":["import { IsString, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryCompaneo {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fromDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n toDate?: string;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;;;;;;;;;;;AAEM,MAAOE,aAAa;AAUzBC,OAAA,CAVYD,aAAa,GAAbA,aAAa;AACxBE,UAAA,EAAC,IAAAC,0BAAmB,GAAE,EACrB,IAAAC,0BAAU,GAAE,EACZ,IAAAC,wBAAQ,GAAE,E,gFACO;AAElBH,UAAA,EAAC,IAAAC,0BAAmB,GAAE,EACrB,IAAAC,0BAAU,GAAE,EACZ,IAAAC,wBAAQ,GAAE,E,8EACK"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IsString, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
|
|
4
|
-
export class QueryCompaneo {
|
|
5
|
-
@ApiPropertyOptional()
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsString()
|
|
8
|
-
fromDate?: string;
|
|
9
|
-
|
|
10
|
-
@ApiPropertyOptional()
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsString()
|
|
13
|
-
toDate?: string;
|
|
14
|
-
}
|