@silexpert/core 0.4.108 → 0.4.109
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/CHANGELOG.md +46 -0
- package/es/api/resources/InternalInvoicing.d.ts +6 -0
- package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
- package/es/api/resources/InternalInvoicing.js +7 -0
- package/es/api/resources/InternalInvoicing.js.map +1 -0
- package/es/api/resources/Journal.d.ts +7 -0
- package/es/api/resources/Journal.d.ts.map +1 -0
- package/es/api/resources/Journal.js +10 -0
- package/es/api/resources/Journal.js.map +1 -0
- package/es/api/resources/Product.d.ts +3 -0
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +10 -0
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/Registration.d.ts +6 -0
- package/es/api/resources/Registration.d.ts.map +1 -0
- package/es/api/resources/Registration.js +7 -0
- package/es/api/resources/Registration.js.map +1 -0
- package/es/api/resources.d.ts +6 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +6 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/CerfaType.d.ts +14 -14
- package/es/types/Enum/CerfaType.d.ts.map +1 -1
- package/es/types/Enum/CerfaType.js +15 -14
- package/es/types/Enum/CerfaType.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +1 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +1 -1
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/GlobalRegime.js +61 -61
- package/es/types/Enum/GlobalRegime.js.map +1 -1
- package/es/types/Enum/PaymentMethod.d.ts +63 -0
- package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
- package/es/types/Enum/PaymentMethod.js +63 -0
- package/es/types/Enum/PaymentMethod.js.map +1 -0
- package/es/types/Enum/ProductType.d.ts +6 -4
- package/es/types/Enum/ProductType.d.ts.map +1 -1
- package/es/types/Enum/ProductType.js +14 -6
- package/es/types/Enum/ProductType.js.map +1 -1
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/es/types/Interface/api/journal/Journals.d.ts +44 -0
- package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
- package/es/types/Interface/api/journal/Journals.js +13 -0
- package/es/types/Interface/api/journal/Journals.js.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.js +28 -0
- package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +3 -2
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.js +4 -2
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
- package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
- package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
- package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/es/types/Interface/models/IGedFile.d.ts +10 -10
- package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/es/types/Interface/models/IGedFile.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +20 -15
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IRegistration.d.ts +21 -0
- package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
- package/es/types/Interface/models/IRegistration.js +2 -0
- package/es/types/Interface/models/IRegistration.js.map +1 -0
- package/es/types/Interface/models/ISociety.d.ts +1 -0
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +6 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
- package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
- package/es/utils/validators/formattedDateString.validator.js +19 -0
- package/es/utils/validators/formattedDateString.validator.js.map +1 -0
- package/js/api/resources/InternalInvoicing.js +18 -0
- package/js/api/resources/InternalInvoicing.js.map +1 -0
- package/js/api/resources/Journal.js +21 -0
- package/js/api/resources/Journal.js.map +1 -0
- package/js/api/resources/Product.js +12 -0
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/Registration.js +18 -0
- package/js/api/resources/Registration.js.map +1 -0
- package/js/api/resources.js +10 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/CerfaType.js +16 -14
- package/js/types/Enum/CerfaType.js.map +1 -1
- package/js/types/Enum/Ged.js +2 -2
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/GlobalRegime.js +61 -61
- package/js/types/Enum/GlobalRegime.js.map +1 -1
- package/js/types/Enum/PaymentMethod.js +68 -0
- package/js/types/Enum/PaymentMethod.js.map +1 -0
- package/js/types/Enum/ProductType.js +14 -7
- package/js/types/Enum/ProductType.js.map +1 -1
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/js/types/Interface/api/journal/Journals.js +30 -0
- package/js/types/Interface/api/journal/Journals.js.map +1 -0
- package/js/types/Interface/api/journal/QueryJournal.js +33 -0
- package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/js/types/Interface/api/product/CreateProduct.js +1 -1
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/product/QueryProduct.js +3 -1
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
- package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
- package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/js/types/Interface/models/IRegistration.js +6 -0
- package/js/types/Interface/models/IRegistration.js.map +1 -0
- package/js/types/index.js +72 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/validators/formattedDateString.validator.js +29 -0
- package/js/utils/validators/formattedDateString.validator.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/InternalInvoicing.ts +10 -0
- package/ts/api/resources/Journal.ts +11 -0
- package/ts/api/resources/Product.ts +12 -0
- package/ts/api/resources/Registration.ts +8 -0
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/CerfaType.ts +14 -14
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/GlobalRegime.ts +61 -61
- package/ts/types/Enum/PaymentMethod.ts +62 -0
- package/ts/types/Enum/ProductType.ts +21 -5
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
- package/ts/types/Interface/api/journal/Journals.ts +48 -0
- package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
- package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
- package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
- package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
- package/ts/types/Interface/models/IGedFile.ts +10 -10
- package/ts/types/Interface/models/IPayment.ts +20 -15
- package/ts/types/Interface/models/IRegistration.ts +23 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +7 -1
- package/ts/utils/validators/formattedDateString.validator.ts +24 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IExercice } from './IExercice';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
import { IFile } from './IFile';
|
|
4
|
+
|
|
5
|
+
export interface IRegistration {
|
|
6
|
+
id?: number;
|
|
7
|
+
payload: string;
|
|
8
|
+
response: string | null;
|
|
9
|
+
sendAt: Date | null;
|
|
10
|
+
isComplete: boolean;
|
|
11
|
+
idCerfaType: number;
|
|
12
|
+
idDeposit: string | null;
|
|
13
|
+
idExercice: number;
|
|
14
|
+
idFile: number | null;
|
|
15
|
+
idSociety: number;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
createdAt?: Date | null;
|
|
18
|
+
|
|
19
|
+
// Associations
|
|
20
|
+
exercice?: IExercice;
|
|
21
|
+
society?: ISociety;
|
|
22
|
+
file?: IFile;
|
|
23
|
+
}
|
|
@@ -116,6 +116,7 @@ export interface ISociety {
|
|
|
116
116
|
folderNote: string | null;
|
|
117
117
|
dateSendAdvise: Date | null;
|
|
118
118
|
idUserAdvise: number | null;
|
|
119
|
+
idVatForInternalInvoicing: number;
|
|
119
120
|
dateFirstSendUnpaid: Date | null;
|
|
120
121
|
reasonUnpaid: number | null;
|
|
121
122
|
stripeSubscriptionId: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -318,6 +318,7 @@ export * from './Enum/ImmobilizationType';
|
|
|
318
318
|
export * from './Enum/Nature';
|
|
319
319
|
export * from './Enum/SurveyType';
|
|
320
320
|
export * from './Enum/SurveyTypeDatas';
|
|
321
|
+
export * from './Enum/PaymentMethod';
|
|
321
322
|
export * from './Enum/ReportType';
|
|
322
323
|
export * from './Enum/ReportState';
|
|
323
324
|
export * from './Enum/Proceding';
|
|
@@ -433,6 +434,7 @@ export * from './Interface/api/accountant/ReadAccountantBalance';
|
|
|
433
434
|
export * from './Interface/api/quotes/QueryQuotesAccount';
|
|
434
435
|
export * from './Interface/api/quotes/CreateQuoteAccount';
|
|
435
436
|
export * from './Interface/api/account/ReadQuoteAccount';
|
|
437
|
+
export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
|
|
436
438
|
|
|
437
439
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
438
440
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -537,4 +539,8 @@ export * from './Interface/api/vehicle/UpdateSocietyVehicle';
|
|
|
537
539
|
export * from './Interface/api/fecFile/QueryFecFile';
|
|
538
540
|
export * from './Interface/api/product/CreateProduct';
|
|
539
541
|
export * from './Interface/api/product/UpdateProduct';
|
|
540
|
-
export * from './Interface/api/product/QueryProduct';
|
|
542
|
+
export * from './Interface/api/product/QueryProduct';
|
|
543
|
+
export * from './Interface/api/registration/ReadRegistration';
|
|
544
|
+
export * from './Interface/api/registration/CreateRegistration';
|
|
545
|
+
export * from './Interface/api/journal/Journals';
|
|
546
|
+
export * from './Interface/api/journal/QueryJournal';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerDecorator, ValidationArguments, ValidationOptions,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
|
|
5
|
+
export function IsFormattedDateString(validationOptions?: ValidationOptions) {
|
|
6
|
+
return function validator(object: any, propertyName: string) {
|
|
7
|
+
registerDecorator({
|
|
8
|
+
name: 'IsFormattedDateString',
|
|
9
|
+
target: object.constructor,
|
|
10
|
+
propertyName,
|
|
11
|
+
options: {
|
|
12
|
+
message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,
|
|
13
|
+
...validationOptions,
|
|
14
|
+
},
|
|
15
|
+
validator: {
|
|
16
|
+
validate(value: any, args: ValidationArguments) {
|
|
17
|
+
const dateRegex = /^((\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\d|30)|02-(0[1-9]|1\d|2[0-8])))|((([02468][048]|[13579][26])00|\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;
|
|
18
|
+
return typeof value === 'string'
|
|
19
|
+
&& dateRegex.test(value);
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
}
|