@silexpert/core 1.3.169-4 → 1.3.170
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/DocumentRequest.d.ts +1 -2
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +0 -3
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/Revenue.d.ts +0 -9
- package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revenue.js +0 -11
- package/dist/cjs/api/resources/Revenue.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +1 -3
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +1 -3
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +2 -14
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +13 -48
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +1 -23
- package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +4 -19
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +5 -142
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/LetterType.js +2 -2
- package/dist/cjs/types/Enum/LetterType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +6 -6
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +1 -2
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +0 -6
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/Revenue.d.ts +1 -3
- package/dist/cjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Revenue.js +0 -2
- package/dist/cjs/types/Enum/Revenue.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +0 -8
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +0 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +0 -6
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +0 -23
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +1 -58
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -7
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -7
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts +368 -12
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +565 -342
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/exercice.d.ts +0 -9
- package/dist/cjs/utils/exercice.d.ts.map +1 -1
- package/dist/cjs/utils/exercice.js +1 -15
- package/dist/cjs/utils/exercice.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.js +18 -19
- package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.js +18 -19
- package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.js +17 -18
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -2
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +0 -3
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/Revenue.d.ts +0 -9
- package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revenue.js +0 -11
- package/dist/mjs/api/resources/Revenue.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +1 -3
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +1 -3
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +2 -14
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +13 -45
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +0 -22
- package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +4 -19
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +5 -142
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/LetterType.js +2 -2
- package/dist/mjs/types/Enum/LetterType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +6 -6
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +1 -2
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +0 -6
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/Revenue.d.ts +1 -3
- package/dist/mjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Revenue.js +0 -2
- package/dist/mjs/types/Enum/Revenue.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +1 -10
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +1 -15
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +0 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +0 -7
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +0 -23
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +1 -57
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -7
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -7
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts +368 -12
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +566 -343
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/exercice.d.ts +0 -9
- package/dist/mjs/utils/exercice.d.ts.map +1 -1
- package/dist/mjs/utils/exercice.js +0 -13
- package/dist/mjs/utils/exercice.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.js +18 -19
- package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.js +18 -19
- package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.js +16 -17
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
- package/package.json +2 -2
- package/ts/api/resources/DocumentRequest.ts +1 -5
- package/ts/api/resources/Revenue.ts +0 -12
- package/ts/api/resources.ts +1 -3
- package/ts/types/Enum/BalanceSheet.ts +17 -59
- package/ts/types/Enum/BalanceSheetModule.ts +1 -24
- package/ts/types/Enum/DepositDocumentType.ts +1 -1
- package/ts/types/Enum/Ged.ts +5 -143
- package/ts/types/Enum/LetterType.ts +2 -2
- package/ts/types/Enum/PrestationType.ts +6 -6
- package/ts/types/Enum/ReasonTerminationType.ts +0 -6
- package/ts/types/Enum/Revenue.ts +0 -3
- package/ts/types/Interface/api/documentRequest/Create.ts +1 -8
- package/ts/types/Interface/api/documentRequest/Query.ts +1 -12
- package/ts/types/Interface/api/payment/Params.ts +0 -5
- package/ts/types/Interface/api/revenue/revenueMovement.ts +1 -61
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -7
- package/ts/types/Interface/models/IDocumentRequest.ts +2 -8
- package/ts/types/Interface/models/IPayment.ts +0 -1
- package/ts/types/index.ts +0 -7
- package/ts/utils/checkup.ts +566 -347
- package/ts/utils/exercice.ts +0 -14
- package/ts/utils/vat/3310/century23.ts +16 -16
- package/ts/utils/vat/3310/century24.ts +18 -18
- package/ts/utils/vat/3310/century25.ts +19 -19
- package/dist/cjs/api/resources/InformationRequest.d.ts +0 -11
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/cjs/api/resources/InformationRequest.js +0 -26
- package/dist/cjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.js +0 -10
- package/dist/cjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +0 -17
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.js +0 -44
- package/dist/cjs/types/Enum/InformationRequestType.js.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +0 -63
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +0 -49
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +0 -54
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +0 -58
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.js +0 -3
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/dist/mjs/api/resources/InformationRequest.d.ts +0 -11
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/mjs/api/resources/InformationRequest.js +0 -30
- package/dist/mjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.js +0 -7
- package/dist/mjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +0 -17
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.js +0 -41
- package/dist/mjs/types/Enum/InformationRequestType.js.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +0 -66
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +0 -50
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +0 -56
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +0 -60
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.js +0 -2
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/ts/api/resources/InformationRequest.ts +0 -36
- package/ts/types/Enum/InformationRequestState.ts +0 -5
- package/ts/types/Enum/InformationRequestType.ts +0 -51
- package/ts/types/Interface/api/documentRequest/Update.ts +0 -43
- package/ts/types/Interface/api/informationRequest/Create.ts +0 -31
- package/ts/types/Interface/api/informationRequest/Query.ts +0 -36
- package/ts/types/Interface/api/informationRequest/Update.ts +0 -39
- package/ts/types/Interface/models/IInformationRequest.ts +0 -27
|
@@ -1,50 +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 { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
13
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
14
|
-
export class CreateInformationRequest {
|
|
15
|
-
idSociety;
|
|
16
|
-
idExercice;
|
|
17
|
-
idBalanceSheet;
|
|
18
|
-
type;
|
|
19
|
-
isMandatory;
|
|
20
|
-
}
|
|
21
|
-
__decorate([
|
|
22
|
-
ApiProperty(),
|
|
23
|
-
IsInt(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], CreateInformationRequest.prototype, "idSociety", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
ApiPropertyOptional(),
|
|
28
|
-
IsOptional(),
|
|
29
|
-
IsInt(),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], CreateInformationRequest.prototype, "idExercice", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
ApiPropertyOptional(),
|
|
34
|
-
IsOptional(),
|
|
35
|
-
IsInt(),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], CreateInformationRequest.prototype, "idBalanceSheet", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
ApiProperty(),
|
|
40
|
-
IsEnum(InformationRequestType),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], CreateInformationRequest.prototype, "type", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
ApiPropertyOptional(),
|
|
45
|
-
IsOptional(),
|
|
46
|
-
IsBoolean(),
|
|
47
|
-
ToBoolean(),
|
|
48
|
-
__metadata("design:type", Boolean)
|
|
49
|
-
], CreateInformationRequest.prototype, "isMandatory", void 0);
|
|
50
|
-
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/informationRequest/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,wBAAwB;IAGnC,SAAS,CAAS;IAKlB,UAAU,CAAiB;IAK3B,cAAc,CAAiB;IAI/B,IAAI,CAAyB;IAM7B,WAAW,CAAW;CACvB;AArBC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;2DACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;4DACmB;AAK3B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;gEACuB;AAI/B;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,sBAAsB,CAAC;;sDACF;AAM7B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;6DACU","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IInformationRequest } from '../../models/IInformationRequest';\nimport { InformationRequestType } from '../../../Enum/InformationRequestType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateInformationRequest implements Omit<IInformationRequest, 'id' | 'idRequestedBy' | 'state'> {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idBalanceSheet?: number | null;\n\n @ApiProperty()\n @IsEnum(InformationRequestType)\n type: InformationRequestType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isMandatory?: boolean;\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
2
|
-
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
3
|
-
export declare class QueryInformationRequest {
|
|
4
|
-
idSociety?: number;
|
|
5
|
-
idExercice?: number;
|
|
6
|
-
idBalanceSheet?: number;
|
|
7
|
-
idRequestedBy?: number;
|
|
8
|
-
type?: InformationRequestType[];
|
|
9
|
-
state?: InformationRequestState[];
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/informationRequest/Query.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,qBAAa,uBAAuB;IAIlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,IAAI,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAKhC,KAAK,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACnC"}
|
|
@@ -1,56 +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 { IsArray, IsInt, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
export class QueryInformationRequest {
|
|
13
|
-
idSociety;
|
|
14
|
-
idExercice;
|
|
15
|
-
idBalanceSheet;
|
|
16
|
-
idRequestedBy;
|
|
17
|
-
type;
|
|
18
|
-
state;
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
ApiPropertyOptional(),
|
|
22
|
-
IsOptional(),
|
|
23
|
-
IsInt(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], QueryInformationRequest.prototype, "idSociety", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
ApiPropertyOptional(),
|
|
28
|
-
IsOptional(),
|
|
29
|
-
IsInt(),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], QueryInformationRequest.prototype, "idExercice", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
ApiPropertyOptional(),
|
|
34
|
-
IsOptional(),
|
|
35
|
-
IsInt(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], QueryInformationRequest.prototype, "idBalanceSheet", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
ApiPropertyOptional(),
|
|
40
|
-
IsOptional(),
|
|
41
|
-
IsInt(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], QueryInformationRequest.prototype, "idRequestedBy", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
ApiPropertyOptional(),
|
|
46
|
-
IsOptional(),
|
|
47
|
-
IsArray(),
|
|
48
|
-
__metadata("design:type", Array)
|
|
49
|
-
], QueryInformationRequest.prototype, "type", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
ApiPropertyOptional(),
|
|
52
|
-
IsOptional(),
|
|
53
|
-
IsArray(),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], QueryInformationRequest.prototype, "state", void 0);
|
|
56
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/informationRequest/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD,MAAM,OAAO,uBAAuB;IAIlC,SAAS,CAAU;IAKnB,UAAU,CAAU;IAKpB,cAAc,CAAU;IAKxB,aAAa,CAAU;IAKvB,IAAI,CAA4B;IAKhC,KAAK,CAA6B;CACnC;AA1BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;0DACW;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;2DACY;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;+DACgB;AAKxB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;8DACe;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;qDACsB;AAKhC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;sDACwB","sourcesContent":["import { IsArray, IsInt, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { InformationRequestType } from '../../../Enum/InformationRequestType';\nimport { InformationRequestState } from '../../../Enum/InformationRequestState';\n\nexport class QueryInformationRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRequestedBy?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n type?: InformationRequestType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n state?: InformationRequestState[];\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IInformationRequest } from '../../models/IInformationRequest';
|
|
2
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
3
|
-
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
4
|
-
export declare class UpdateInformationRequest implements Partial<Omit<IInformationRequest, 'id'>> {
|
|
5
|
-
idSociety?: number;
|
|
6
|
-
idExercice?: number;
|
|
7
|
-
idRequestedBy?: number;
|
|
8
|
-
type?: InformationRequestType;
|
|
9
|
-
state?: InformationRequestState;
|
|
10
|
-
isMandatory?: boolean;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/informationRequest/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGhF,qBAAa,wBAAyB,YAAW,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;IAIvF,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAK9B,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAMhC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1,60 +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 { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
13
|
-
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
14
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
15
|
-
export class UpdateInformationRequest {
|
|
16
|
-
idSociety;
|
|
17
|
-
idExercice;
|
|
18
|
-
idRequestedBy;
|
|
19
|
-
type;
|
|
20
|
-
state;
|
|
21
|
-
isMandatory;
|
|
22
|
-
}
|
|
23
|
-
__decorate([
|
|
24
|
-
ApiPropertyOptional(),
|
|
25
|
-
IsOptional(),
|
|
26
|
-
IsInt(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], UpdateInformationRequest.prototype, "idSociety", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
ApiPropertyOptional(),
|
|
31
|
-
IsOptional(),
|
|
32
|
-
IsInt(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], UpdateInformationRequest.prototype, "idExercice", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
ApiPropertyOptional(),
|
|
37
|
-
IsOptional(),
|
|
38
|
-
IsInt(),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], UpdateInformationRequest.prototype, "idRequestedBy", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
ApiPropertyOptional(),
|
|
43
|
-
IsOptional(),
|
|
44
|
-
IsEnum(InformationRequestType),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], UpdateInformationRequest.prototype, "type", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
ApiPropertyOptional(),
|
|
49
|
-
IsOptional(),
|
|
50
|
-
IsEnum(InformationRequestState),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], UpdateInformationRequest.prototype, "state", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
ApiPropertyOptional(),
|
|
55
|
-
IsOptional(),
|
|
56
|
-
IsBoolean(),
|
|
57
|
-
ToBoolean(),
|
|
58
|
-
__metadata("design:type", Boolean)
|
|
59
|
-
], UpdateInformationRequest.prototype, "isMandatory", void 0);
|
|
60
|
-
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/informationRequest/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,wBAAwB;IAInC,SAAS,CAAU;IAKnB,UAAU,CAAU;IAKpB,aAAa,CAAU;IAKvB,IAAI,CAA0B;IAK9B,KAAK,CAA2B;IAMhC,WAAW,CAAW;CACvB;AA3BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;2DACW;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;4DACY;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;+DACe;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,sBAAsB,CAAC;;sDACD;AAK9B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,uBAAuB,CAAC;;uDACA;AAMhC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;6DACU","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { IInformationRequest } from '../../models/IInformationRequest';\nimport { InformationRequestType } from '../../../Enum/InformationRequestType';\nimport { InformationRequestState } from '../../../Enum/InformationRequestState';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateInformationRequest implements Partial<Omit<IInformationRequest, 'id'>> {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRequestedBy?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(InformationRequestType)\n type?: InformationRequestType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(InformationRequestState)\n state?: InformationRequestState;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isMandatory?: boolean;\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { InformationRequestType } from '../../Enum/InformationRequestType';
|
|
2
|
-
import { InformationRequestState } from '../../Enum/InformationRequestState';
|
|
3
|
-
import { IUser } from './IUser';
|
|
4
|
-
import { ISociety } from './ISociety';
|
|
5
|
-
import { IExercice } from './IExercice';
|
|
6
|
-
import { IBalanceSheet } from './IBalanceSheet';
|
|
7
|
-
export interface IInformationRequest {
|
|
8
|
-
id?: number;
|
|
9
|
-
idSociety: number;
|
|
10
|
-
idExercice?: number | null;
|
|
11
|
-
idBalanceSheet?: number | null;
|
|
12
|
-
idRequestedBy: number;
|
|
13
|
-
type: InformationRequestType;
|
|
14
|
-
state: InformationRequestState;
|
|
15
|
-
isMandatory?: boolean;
|
|
16
|
-
answeredAt?: Date | null;
|
|
17
|
-
createdAt?: Date | null;
|
|
18
|
-
updatedAt?: Date | null;
|
|
19
|
-
deletedAt?: Date | null;
|
|
20
|
-
society?: ISociety;
|
|
21
|
-
exercice?: IExercice;
|
|
22
|
-
balanceSheet?: IBalanceSheet;
|
|
23
|
-
requestedBy?: IUser;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=IInformationRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IInformationRequest.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IInformationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,uBAAuB,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IInformationRequest.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IInformationRequest.ts"],"names":[],"mappings":"","sourcesContent":["import { InformationRequestType } from '../../Enum/InformationRequestType';\nimport { InformationRequestState } from '../../Enum/InformationRequestState';\nimport { IUser } from './IUser';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IBalanceSheet } from './IBalanceSheet';\n\nexport interface IInformationRequest {\n id?: number;\n idSociety: number;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idRequestedBy: number; // IUser who requested the information\n type: InformationRequestType; // Type of information request\n state: InformationRequestState; // State of the request (pending, completed, not concerned)\n isMandatory?: boolean; // If true, client cannot mark this request as not concerned\n answeredAt?: Date | null; // Date when client answered (completed or marked as not concerned)\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n requestedBy?: IUser;\n}\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';
|
|
3
|
-
|
|
4
|
-
export class InformationRequest extends Resource {
|
|
5
|
-
create(body: CreateInformationRequest): Promise<IInformationRequest> {
|
|
6
|
-
return this.axios.$post('/information-requests', body);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest> {
|
|
10
|
-
return this.axios.$put(`/information-requests/${id}`, body);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {
|
|
14
|
-
return this.axios.$get(`/information-requests/society/${idSociety}`, {
|
|
15
|
-
...signal && { signal },
|
|
16
|
-
...query && { params: query },
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {
|
|
21
|
-
return this.axios.$get(`/information-requests/pending/${idSociety}`, {
|
|
22
|
-
...signal && { signal },
|
|
23
|
-
...query && { params: query },
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
getById(id: number, signal?: AbortSignal): Promise<IInformationRequest> {
|
|
28
|
-
return this.axios.$get(`/information-requests/${id}`, {
|
|
29
|
-
...signal && { signal },
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
delete(id: number): Promise<void> {
|
|
34
|
-
return this.axios.$delete(`/information-requests/${id}`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { TypeFile } from './Ged';
|
|
2
|
-
|
|
3
|
-
export enum InformationRequestType {
|
|
4
|
-
CASH_BOOK = 1,
|
|
5
|
-
STOCK_STATUS = 2,
|
|
6
|
-
SUPPLIER_DEBTS = 3,
|
|
7
|
-
CUSTOMER_RECEIVABLES = 4,
|
|
8
|
-
Z_TICKETS = 5,
|
|
9
|
-
KILOMETRIC_ALLOWANCES_SUMMARY = 6,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface InformationRequestTypeDetail {
|
|
13
|
-
id: InformationRequestType;
|
|
14
|
-
name: string;
|
|
15
|
-
typeFile?: TypeFile; // For some information request, we ask for upload a document too
|
|
16
|
-
helpText?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const InformationRequestTypeDetails: Record<
|
|
20
|
-
InformationRequestType,
|
|
21
|
-
InformationRequestTypeDetail
|
|
22
|
-
> = {
|
|
23
|
-
[InformationRequestType.CASH_BOOK]: {
|
|
24
|
-
id: InformationRequestType.CASH_BOOK,
|
|
25
|
-
name: 'Livre de caisse',
|
|
26
|
-
typeFile: TypeFile.CAISSE,
|
|
27
|
-
},
|
|
28
|
-
[InformationRequestType.STOCK_STATUS]: {
|
|
29
|
-
id: InformationRequestType.STOCK_STATUS,
|
|
30
|
-
name: 'L\'état de vos stocks à la date de clôture',
|
|
31
|
-
},
|
|
32
|
-
[InformationRequestType.SUPPLIER_DEBTS]: {
|
|
33
|
-
id: InformationRequestType.SUPPLIER_DEBTS,
|
|
34
|
-
name: 'Vos dettes fournisseurs',
|
|
35
|
-
typeFile: TypeFile.SUPPLIER_DEBTS,
|
|
36
|
-
},
|
|
37
|
-
[InformationRequestType.CUSTOMER_RECEIVABLES]: {
|
|
38
|
-
id: InformationRequestType.CUSTOMER_RECEIVABLES,
|
|
39
|
-
name: 'Vos créances clients',
|
|
40
|
-
typeFile: TypeFile.CUSTOMER_RECEIVABLES,
|
|
41
|
-
},
|
|
42
|
-
[InformationRequestType.Z_TICKETS]: {
|
|
43
|
-
id: InformationRequestType.Z_TICKETS,
|
|
44
|
-
name: 'Vos ticket Z',
|
|
45
|
-
},
|
|
46
|
-
[InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY]: {
|
|
47
|
-
id: InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY,
|
|
48
|
-
name: 'Un récapitulatif de vos indemnités kilométriques',
|
|
49
|
-
typeFile: TypeFile.MILEAGE_ALLOWANCES_SUMMARY,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { IDocumentRequest } from '../../models/IDocumentRequest';
|
|
4
|
-
import { TypeFile } from '../../../Enum/Ged';
|
|
5
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
-
|
|
7
|
-
export class UpdateDocumentRequest implements Partial<Omit<IDocumentRequest, 'id' | 'idRequestedBy' | 'notConcernedAt'>> {
|
|
8
|
-
@ApiPropertyOptional()
|
|
9
|
-
@IsOptional()
|
|
10
|
-
@IsInt()
|
|
11
|
-
idSociety?: number;
|
|
12
|
-
|
|
13
|
-
@ApiPropertyOptional()
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsEnum(TypeFile)
|
|
16
|
-
typeFile?: TypeFile;
|
|
17
|
-
|
|
18
|
-
@ApiPropertyOptional()
|
|
19
|
-
@IsOptional()
|
|
20
|
-
@IsInt()
|
|
21
|
-
idExercice?: number;
|
|
22
|
-
|
|
23
|
-
@ApiPropertyOptional()
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@IsInt()
|
|
26
|
-
idBalanceSheet?: number;
|
|
27
|
-
|
|
28
|
-
@ApiPropertyOptional()
|
|
29
|
-
@IsOptional()
|
|
30
|
-
comment?: string;
|
|
31
|
-
|
|
32
|
-
@ApiPropertyOptional()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
@IsBoolean()
|
|
35
|
-
@ToBoolean()
|
|
36
|
-
isNotConcerned?: boolean;
|
|
37
|
-
|
|
38
|
-
@ApiPropertyOptional()
|
|
39
|
-
@IsOptional()
|
|
40
|
-
@IsBoolean()
|
|
41
|
-
@ToBoolean()
|
|
42
|
-
isMandatory?: boolean;
|
|
43
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { IInformationRequest } from '../../models/IInformationRequest';
|
|
4
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
5
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
-
|
|
7
|
-
export class CreateInformationRequest implements Omit<IInformationRequest, 'id' | 'idRequestedBy' | 'state'> {
|
|
8
|
-
@ApiProperty()
|
|
9
|
-
@IsInt()
|
|
10
|
-
idSociety: number;
|
|
11
|
-
|
|
12
|
-
@ApiPropertyOptional()
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsInt()
|
|
15
|
-
idExercice?: number | null;
|
|
16
|
-
|
|
17
|
-
@ApiPropertyOptional()
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsInt()
|
|
20
|
-
idBalanceSheet?: number | null;
|
|
21
|
-
|
|
22
|
-
@ApiProperty()
|
|
23
|
-
@IsEnum(InformationRequestType)
|
|
24
|
-
type: InformationRequestType;
|
|
25
|
-
|
|
26
|
-
@ApiPropertyOptional()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@IsBoolean()
|
|
29
|
-
@ToBoolean()
|
|
30
|
-
isMandatory?: boolean;
|
|
31
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IsArray, IsInt, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
4
|
-
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
5
|
-
|
|
6
|
-
export class QueryInformationRequest {
|
|
7
|
-
@ApiPropertyOptional()
|
|
8
|
-
@IsOptional()
|
|
9
|
-
@IsInt()
|
|
10
|
-
idSociety?: number;
|
|
11
|
-
|
|
12
|
-
@ApiPropertyOptional()
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsInt()
|
|
15
|
-
idExercice?: number;
|
|
16
|
-
|
|
17
|
-
@ApiPropertyOptional()
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsInt()
|
|
20
|
-
idBalanceSheet?: number;
|
|
21
|
-
|
|
22
|
-
@ApiPropertyOptional()
|
|
23
|
-
@IsOptional()
|
|
24
|
-
@IsInt()
|
|
25
|
-
idRequestedBy?: number;
|
|
26
|
-
|
|
27
|
-
@ApiPropertyOptional()
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@IsArray()
|
|
30
|
-
type?: InformationRequestType[];
|
|
31
|
-
|
|
32
|
-
@ApiPropertyOptional()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
@IsArray()
|
|
35
|
-
state?: InformationRequestState[];
|
|
36
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { IInformationRequest } from '../../models/IInformationRequest';
|
|
4
|
-
import { InformationRequestType } from '../../../Enum/InformationRequestType';
|
|
5
|
-
import { InformationRequestState } from '../../../Enum/InformationRequestState';
|
|
6
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
|
-
|
|
8
|
-
export class UpdateInformationRequest implements Partial<Omit<IInformationRequest, 'id'>> {
|
|
9
|
-
@ApiPropertyOptional()
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsInt()
|
|
12
|
-
idSociety?: number;
|
|
13
|
-
|
|
14
|
-
@ApiPropertyOptional()
|
|
15
|
-
@IsOptional()
|
|
16
|
-
@IsInt()
|
|
17
|
-
idExercice?: number;
|
|
18
|
-
|
|
19
|
-
@ApiPropertyOptional()
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsInt()
|
|
22
|
-
idRequestedBy?: number;
|
|
23
|
-
|
|
24
|
-
@ApiPropertyOptional()
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsEnum(InformationRequestType)
|
|
27
|
-
type?: InformationRequestType;
|
|
28
|
-
|
|
29
|
-
@ApiPropertyOptional()
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsEnum(InformationRequestState)
|
|
32
|
-
state?: InformationRequestState;
|
|
33
|
-
|
|
34
|
-
@ApiPropertyOptional()
|
|
35
|
-
@IsOptional()
|
|
36
|
-
@IsBoolean()
|
|
37
|
-
@ToBoolean()
|
|
38
|
-
isMandatory?: boolean;
|
|
39
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { InformationRequestType } from '../../Enum/InformationRequestType';
|
|
2
|
-
import { InformationRequestState } from '../../Enum/InformationRequestState';
|
|
3
|
-
import { IUser } from './IUser';
|
|
4
|
-
import { ISociety } from './ISociety';
|
|
5
|
-
import { IExercice } from './IExercice';
|
|
6
|
-
import { IBalanceSheet } from './IBalanceSheet';
|
|
7
|
-
|
|
8
|
-
export interface IInformationRequest {
|
|
9
|
-
id?: number;
|
|
10
|
-
idSociety: number;
|
|
11
|
-
idExercice?: number | null;
|
|
12
|
-
idBalanceSheet?: number | null;
|
|
13
|
-
idRequestedBy: number; // IUser who requested the information
|
|
14
|
-
type: InformationRequestType; // Type of information request
|
|
15
|
-
state: InformationRequestState; // State of the request (pending, completed, not concerned)
|
|
16
|
-
isMandatory?: boolean; // If true, client cannot mark this request as not concerned
|
|
17
|
-
answeredAt?: Date | null; // Date when client answered (completed or marked as not concerned)
|
|
18
|
-
createdAt?: Date | null;
|
|
19
|
-
updatedAt?: Date | null;
|
|
20
|
-
deletedAt?: Date | null;
|
|
21
|
-
|
|
22
|
-
// Associations
|
|
23
|
-
society?: ISociety;
|
|
24
|
-
exercice?: IExercice;
|
|
25
|
-
balanceSheet?: IBalanceSheet;
|
|
26
|
-
requestedBy?: IUser;
|
|
27
|
-
}
|