@silexpert/core 1.1.175 → 1.1.177
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/Card.d.ts +10 -0
- package/dist/cjs/api/resources/Card.d.ts.map +1 -0
- package/dist/cjs/api/resources/Card.js +23 -0
- package/dist/cjs/api/resources/Card.js.map +1 -0
- package/dist/cjs/api/resources/Payment.d.ts +1 -0
- package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Payment.js +3 -0
- package/dist/cjs/api/resources/Payment.js.map +1 -1
- package/dist/cjs/api/resources/Stocks.d.ts +4 -4
- package/dist/cjs/api/resources/Stocks.d.ts.map +1 -1
- package/dist/cjs/api/resources/Stocks.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +14 -14
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +77 -0
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Card.js +94 -0
- package/dist/cjs/types/Enum/Card.js.map +1 -0
- package/dist/cjs/types/Enum/Comment.d.ts +2 -1
- package/dist/cjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Comment.js +1 -0
- package/dist/cjs/types/Enum/Comment.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +175 -0
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +98 -0
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js +4 -0
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +1 -0
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +4 -0
- package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +10 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js +53 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts +6 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js +33 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +10 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +57 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -0
- package/dist/cjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.d.ts +7 -0
- package/dist/cjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.js +39 -0
- package/dist/cjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.js.map +1 -0
- package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts +4 -0
- package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +1 -0
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +6 -0
- package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +16 -13
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICalendarEvent.d.ts +3 -0
- package/dist/cjs/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICalendarEvent.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +29 -0
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/ICard.js +3 -0
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -0
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts +17 -0
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/ICardHistory.js +3 -0
- package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -0
- package/dist/cjs/types/Interface/models/IComment.d.ts +3 -1
- package/dist/cjs/types/Interface/models/IComment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IComment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestationList.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IPrestationList.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestationList.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +9 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUserBrand.d.ts +6 -0
- package/dist/cjs/types/Interface/models/IUserBrand.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserBrand.js +3 -0
- package/dist/cjs/types/Interface/models/IUserBrand.js.map +1 -0
- package/dist/cjs/types/index.d.ts +8 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +8 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/prestation.js +1 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/quotation.js +1 -1
- package/dist/cjs/utils/quotation.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +10 -0
- package/dist/mjs/api/resources/Card.d.ts.map +1 -0
- package/dist/mjs/api/resources/Card.js +19 -0
- package/dist/mjs/api/resources/Card.js.map +1 -0
- package/dist/mjs/api/resources/Payment.d.ts +1 -0
- package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Payment.js +3 -0
- package/dist/mjs/api/resources/Payment.js.map +1 -1
- package/dist/mjs/api/resources/Stocks.d.ts +4 -4
- package/dist/mjs/api/resources/Stocks.d.ts.map +1 -1
- package/dist/mjs/api/resources/Stocks.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +14 -14
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +77 -0
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Card.js +91 -0
- package/dist/mjs/types/Enum/Card.js.map +1 -0
- package/dist/mjs/types/Enum/Comment.d.ts +2 -1
- package/dist/mjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Comment.js +1 -0
- package/dist/mjs/types/Enum/Comment.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +175 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +98 -0
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js +5 -0
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +1 -0
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +5 -0
- package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +10 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js +55 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts +6 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js +32 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +10 -0
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +59 -0
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -0
- package/dist/mjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.d.ts +7 -0
- package/dist/mjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.js +39 -0
- package/dist/mjs/types/Interface/api/payment/CreateNotifyCustomerInvoice.js.map +1 -0
- package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts +4 -0
- package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +1 -0
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +7 -0
- package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +16 -13
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICalendarEvent.d.ts +3 -0
- package/dist/mjs/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICalendarEvent.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +29 -0
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/ICard.js +2 -0
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -0
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts +17 -0
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/ICardHistory.js +2 -0
- package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -0
- package/dist/mjs/types/Interface/models/IComment.d.ts +3 -1
- package/dist/mjs/types/Interface/models/IComment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IComment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestationList.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IPrestationList.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestationList.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +9 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUserBrand.d.ts +6 -0
- package/dist/mjs/types/Interface/models/IUserBrand.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserBrand.js +2 -0
- package/dist/mjs/types/Interface/models/IUserBrand.js.map +1 -0
- package/dist/mjs/types/index.d.ts +8 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +8 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -1
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/quotation.js +1 -1
- package/dist/mjs/utils/quotation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +25 -0
- package/ts/api/resources/Payment.ts +4 -0
- package/ts/api/resources/Stocks.ts +4 -4
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BrandPourcentage.ts +15 -15
- package/ts/types/Enum/Card.ts +110 -0
- package/ts/types/Enum/Comment.ts +1 -0
- package/ts/types/Enum/PrestationType.ts +175 -0
- package/ts/types/Enum/PriceGridClementine.ts +98 -0
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
- package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +3 -0
- package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +3 -0
- package/ts/types/Interface/api/card/QueryUserCards.ts +33 -0
- package/ts/types/Interface/api/card/QueryUserCardsStats.ts +16 -0
- package/ts/types/Interface/api/card/UpdateCard.ts +38 -0
- package/ts/types/Interface/api/payment/CreateNotifyCustomerInvoice.ts +21 -0
- package/ts/types/Interface/api/payment/ReadPayment.ts +5 -0
- package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +5 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +16 -13
- package/ts/types/Interface/models/ICalendarEvent.ts +3 -0
- package/ts/types/Interface/models/ICard.ts +31 -0
- package/ts/types/Interface/models/ICardHistory.ts +19 -0
- package/ts/types/Interface/models/IComment.ts +3 -1
- package/ts/types/Interface/models/IPrestationList.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +9 -0
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/Interface/models/IUserBrand.ts +7 -0
- package/ts/types/index.ts +9 -0
- package/ts/utils/prestation.ts +1 -1
- package/ts/utils/quotation.ts +1 -1
|
@@ -347,4 +347,102 @@ export const PriceGridClementine = [
|
|
|
347
347
|
idTypeBrand: 5,
|
|
348
348
|
price: [],
|
|
349
349
|
},
|
|
350
|
+
{
|
|
351
|
+
/* Klems */
|
|
352
|
+
idTypeBrand: 6,
|
|
353
|
+
price: [
|
|
354
|
+
/* {
|
|
355
|
+
// Compta Micro
|
|
356
|
+
idPrestationList: [PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS],
|
|
357
|
+
turnoverMonthly: [
|
|
358
|
+
{
|
|
359
|
+
turnoverValue: 50000,
|
|
360
|
+
price: 39,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
turnoverValue: 1000000000000,
|
|
364
|
+
price: 59,
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
turnoverYearly: [
|
|
368
|
+
{
|
|
369
|
+
turnoverValue: 50000,
|
|
370
|
+
price: 390,
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
turnoverValue: 1000000000000,
|
|
374
|
+
price: 590,
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
vatRegimeMonthly: [
|
|
378
|
+
{
|
|
379
|
+
type: VatRegime.NOT_ATTRIBUTED,
|
|
380
|
+
price: 0,
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
type: VatRegime.SIMPLIFIED,
|
|
384
|
+
price: 24,
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
type: VatRegime.QUARTERLY,
|
|
388
|
+
price: 24,
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
type: VatRegime.MONTHLY,
|
|
392
|
+
price: 24,
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
// Compta EI
|
|
398
|
+
idPrestationList: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
|
|
399
|
+
turnoverMonthly: [
|
|
400
|
+
{
|
|
401
|
+
turnoverValue: 50000,
|
|
402
|
+
price: 49,
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
turnoverValue: 150000,
|
|
406
|
+
price: 69,
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
turnoverValue: 250000,
|
|
410
|
+
price: 89,
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
turnoverYearly: [
|
|
414
|
+
{
|
|
415
|
+
turnoverValue: 50000,
|
|
416
|
+
price: 490,
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
turnoverValue: 150000,
|
|
420
|
+
price: 690,
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
turnoverValue: 250000,
|
|
424
|
+
price: 890,
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
vatRegimeMonthly: [
|
|
428
|
+
{
|
|
429
|
+
type: VatRegime.NOT_ATTRIBUTED,
|
|
430
|
+
price: 0,
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
type: VatRegime.SIMPLIFIED,
|
|
434
|
+
price: 20,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
type: VatRegime.QUARTERLY,
|
|
438
|
+
price: 30,
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
type: VatRegime.MONTHLY,
|
|
442
|
+
price: 40,
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
}, */
|
|
446
|
+
],
|
|
447
|
+
},
|
|
350
448
|
];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { CardType, CardState } from '../../../Enum/Card';
|
|
4
|
+
|
|
5
|
+
export class QueryUserCards {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsInt()
|
|
8
|
+
idUser: number;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsDate()
|
|
12
|
+
startDate: Date;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsDate()
|
|
16
|
+
endDate: Date;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
search?: string;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsArray()
|
|
26
|
+
@IsEnum(CardType, { each: true })
|
|
27
|
+
types?: CardType[];
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsEnum(CardState)
|
|
32
|
+
state?: CardState;
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsDate, IsInt } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryUserCardsStats {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idUser: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsDate()
|
|
11
|
+
startDate: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsDate()
|
|
15
|
+
endDate: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { CardState, CardType } from '../../../Enum/Card';
|
|
4
|
+
|
|
5
|
+
export class UpdateCard {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
@IsOptional()
|
|
8
|
+
@IsInt()
|
|
9
|
+
@IsEnum(CardType)
|
|
10
|
+
type?: CardType;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsBoolean()
|
|
15
|
+
isManual?: boolean;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
@IsEnum(CardState)
|
|
21
|
+
state?: CardState;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsDate()
|
|
26
|
+
plannedAt?: Date;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsInt()
|
|
31
|
+
idUser?: number;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsString()
|
|
37
|
+
comment?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IsArray, IsDefined, IsInt } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateNotifyCustomerInvoice {
|
|
5
|
+
@IsDefined()
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsInt()
|
|
8
|
+
month: number;
|
|
9
|
+
|
|
10
|
+
@IsDefined()
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
@IsInt()
|
|
13
|
+
year: number;
|
|
14
|
+
|
|
15
|
+
@IsDefined()
|
|
16
|
+
@IsArray()
|
|
17
|
+
idTypeBrand: Array<number>;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
idSociety?: number;
|
|
21
|
+
}
|
|
@@ -4,24 +4,26 @@ import { ISupervision } from './ISupervision';
|
|
|
4
4
|
import { IPrestation } from './IPrestation';
|
|
5
5
|
import { IGedFile } from './IGedFile';
|
|
6
6
|
import { IFile } from './IFile';
|
|
7
|
+
import { ICard } from './ICard';
|
|
7
8
|
|
|
8
9
|
// balanceSheet
|
|
9
10
|
export interface IBalanceSheet {
|
|
10
11
|
id?: number;
|
|
11
12
|
state: number;
|
|
12
|
-
dateBalanceSend
|
|
13
|
-
deadline
|
|
14
|
-
turnover
|
|
15
|
-
netIncome
|
|
16
|
-
total
|
|
17
|
-
idFile
|
|
18
|
-
attestationDetail
|
|
19
|
-
endDate
|
|
20
|
-
bankCollectingState
|
|
21
|
-
idExercice
|
|
22
|
-
idCalendarEvent
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
dateBalanceSend?: Date;
|
|
14
|
+
deadline?: Date;
|
|
15
|
+
turnover?: number;
|
|
16
|
+
netIncome?: number;
|
|
17
|
+
total?: number;
|
|
18
|
+
idFile?: number;
|
|
19
|
+
attestationDetail?: string;
|
|
20
|
+
endDate?: Date;
|
|
21
|
+
bankCollectingState?: number;
|
|
22
|
+
idExercice?: number;
|
|
23
|
+
idCalendarEvent?: number;
|
|
24
|
+
idCard?: number;
|
|
25
|
+
createdAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
25
27
|
|
|
26
28
|
// Associations
|
|
27
29
|
exercice?: IExercice;
|
|
@@ -30,4 +32,5 @@ export interface IBalanceSheet {
|
|
|
30
32
|
prestations?: IPrestation[];
|
|
31
33
|
gedFiles?: IGedFile[];
|
|
32
34
|
file?: IFile;
|
|
35
|
+
card?: ICard;
|
|
33
36
|
}
|
|
@@ -4,6 +4,7 @@ import { ISociety } from './ISociety';
|
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
5
|
import { IUser } from './IUser';
|
|
6
6
|
import { ITask } from './ITask';
|
|
7
|
+
import { ICard } from './ICard';
|
|
7
8
|
|
|
8
9
|
// calendarEvents
|
|
9
10
|
export interface ICalendarEvent {
|
|
@@ -22,6 +23,7 @@ export interface ICalendarEvent {
|
|
|
22
23
|
typeComptable: number | null;
|
|
23
24
|
isDone: boolean;
|
|
24
25
|
callState: number | null;
|
|
26
|
+
idCard: number | null;
|
|
25
27
|
idRecurrence: number | null;
|
|
26
28
|
idTask?: number;
|
|
27
29
|
idPlace: number | null;
|
|
@@ -36,4 +38,5 @@ export interface ICalendarEvent {
|
|
|
36
38
|
exercice: IExercice;
|
|
37
39
|
calendarsEventsHasUsers: IUser[];
|
|
38
40
|
task?: ITask;
|
|
41
|
+
card?: ICard;
|
|
39
42
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CardType, CardState } from '../../Enum/Card';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
import { ISociety } from './ISociety';
|
|
4
|
+
import { IBalanceSheet } from './IBalanceSheet';
|
|
5
|
+
import { ICalendarEvent } from './ICalendarEvent';
|
|
6
|
+
import { ICustomerVat } from './ICustomerVat';
|
|
7
|
+
import { ICardHistory } from './ICardHistory';
|
|
8
|
+
import { IComment } from './IComment';
|
|
9
|
+
|
|
10
|
+
export interface ICard {
|
|
11
|
+
id?: number;
|
|
12
|
+
ref: string;
|
|
13
|
+
type: CardType;
|
|
14
|
+
state: CardState;
|
|
15
|
+
isManual: boolean;
|
|
16
|
+
plannedAt?: Date;
|
|
17
|
+
idUser: number;
|
|
18
|
+
idSociety: number;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
updatedAt?: Date;
|
|
21
|
+
deletedAt?: Date;
|
|
22
|
+
|
|
23
|
+
// Associations
|
|
24
|
+
user?: IUser;
|
|
25
|
+
society?: ISociety;
|
|
26
|
+
balanceSheet?: IBalanceSheet;
|
|
27
|
+
customerVat?: ICustomerVat;
|
|
28
|
+
events?: ICalendarEvent[];
|
|
29
|
+
history?: ICardHistory[];
|
|
30
|
+
comment?: IComment;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CardState } from '../../Enum/Card';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
import { ICard } from './ICard';
|
|
4
|
+
|
|
5
|
+
export interface ICardHistory {
|
|
6
|
+
id?: number;
|
|
7
|
+
state: CardState;
|
|
8
|
+
plannedAt: Date;
|
|
9
|
+
idUserWhoChanged: number;
|
|
10
|
+
idUserOrigin: number;
|
|
11
|
+
idCard: number;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
|
|
15
|
+
// Associations
|
|
16
|
+
userWhoChanged?: Partial<IUser>;
|
|
17
|
+
userOrigin?: Partial<IUser>;
|
|
18
|
+
card?: ICard
|
|
19
|
+
}
|
|
@@ -2,7 +2,7 @@ import { ICommentType } from './ICommentType';
|
|
|
2
2
|
import { IChannelType } from './IChannelType';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
import { ISupervision } from './ISupervision';
|
|
5
|
-
import { ITask } from '../..';
|
|
5
|
+
import { ICard, ITask } from '../..';
|
|
6
6
|
|
|
7
7
|
// comments
|
|
8
8
|
export interface IComment {
|
|
@@ -14,6 +14,7 @@ export interface IComment {
|
|
|
14
14
|
idReport?: number | null;
|
|
15
15
|
idTask?: number | null;
|
|
16
16
|
idUser?: number | null;
|
|
17
|
+
idCard?: number | null;
|
|
17
18
|
idChecklist?: number | null;
|
|
18
19
|
isPing?: boolean;
|
|
19
20
|
createdAt?: Date | null;
|
|
@@ -26,4 +27,5 @@ export interface IComment {
|
|
|
26
27
|
user?: IUser;
|
|
27
28
|
supervision?: ISupervision;
|
|
28
29
|
task?: ITask;
|
|
30
|
+
card?: ICard;
|
|
29
31
|
}
|
|
@@ -136,8 +136,17 @@ export interface ISociety {
|
|
|
136
136
|
isLate?: boolean | null;
|
|
137
137
|
unpaidDetails?: UnpaidDetail[] | null;
|
|
138
138
|
owner?: IUser | null;
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated
|
|
141
|
+
*/
|
|
139
142
|
social?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated
|
|
145
|
+
*/
|
|
140
146
|
exercices?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated
|
|
149
|
+
*/
|
|
141
150
|
recoveryDate?: string | null;
|
|
142
151
|
createdAt?: Date | null;
|
|
143
152
|
updatedAt?: Date | null;
|
|
@@ -20,6 +20,7 @@ import { IMailAddress } from './IMailAddress';
|
|
|
20
20
|
import { IAccountingStatementHistory } from './IAccountingStatementHistory';
|
|
21
21
|
import { ICountry } from './ICountry';
|
|
22
22
|
import { INationality } from './INationality';
|
|
23
|
+
import { IUserBrand } from './IUserBrand';
|
|
23
24
|
|
|
24
25
|
type isAny<T> = T | any;
|
|
25
26
|
|
|
@@ -127,4 +128,5 @@ export interface IUser {
|
|
|
127
128
|
country?: ICountry;
|
|
128
129
|
countryLiving?: ICountry;
|
|
129
130
|
nationality?: INationality;
|
|
131
|
+
usersBrands?: IUserBrand[];
|
|
130
132
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -252,6 +252,7 @@ export * from './Interface/models/ISubscriptionType';
|
|
|
252
252
|
export * from './Interface/models/IThirdPartyType';
|
|
253
253
|
export * from './Interface/models/IVehicleType';
|
|
254
254
|
export * from './Interface/models/IUser';
|
|
255
|
+
export * from './Interface/models/IUserBrand';
|
|
255
256
|
export * from './Interface/models/IUserNotification';
|
|
256
257
|
export * from './Interface/models/IUserSocietyPermission';
|
|
257
258
|
export * from './Interface/models/IUserTeam';
|
|
@@ -316,7 +317,10 @@ export * from './Interface/models/IBusinessSector';
|
|
|
316
317
|
export * from './Interface/models/IUserChangeLog';
|
|
317
318
|
export * from './Interface/models/IConstitutionHistory';
|
|
318
319
|
export * from './Interface/models/IBalanceSheetHistory';
|
|
320
|
+
export * from './Interface/models/ICard';
|
|
321
|
+
export * from './Interface/models/ICardHistory';
|
|
319
322
|
export * from './Interface/models/IDubiousCustomer';
|
|
323
|
+
|
|
320
324
|
// Schemas
|
|
321
325
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
322
326
|
export * from './Interface/schemas/ITransactionHistory';
|
|
@@ -502,6 +506,7 @@ export * from './Enum/MissionAcceptation';
|
|
|
502
506
|
export * from './Enum/Bank';
|
|
503
507
|
export * from './Enum/VatControl';
|
|
504
508
|
export * from './Enum/Cycle';
|
|
509
|
+
export * from './Enum/Card';
|
|
505
510
|
export * from './Enum/TimeTrackingSource';
|
|
506
511
|
|
|
507
512
|
// Interfaces API
|
|
@@ -529,6 +534,7 @@ export * from './Interface/api/payment/QueryMonthlyPayment';
|
|
|
529
534
|
export * from './Interface/api/payment/QueryPayment';
|
|
530
535
|
export * from './Interface/api/payment/ReadPayment';
|
|
531
536
|
export * from './Interface/api/payment/CreateNotifyCustomer';
|
|
537
|
+
export * from './Interface/api/payment/CreateNotifyCustomerInvoice';
|
|
532
538
|
export * from './Interface/api/firstStep/Create';
|
|
533
539
|
export * from './Interface/api/registration/QueryRegistration';
|
|
534
540
|
export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
|
|
@@ -984,6 +990,9 @@ export * from './Interface/api/visualizedInformation/Update';
|
|
|
984
990
|
export * from './Interface/api/society/QueryArchived';
|
|
985
991
|
export * from './Interface/api/vatControl/CreateVatControl';
|
|
986
992
|
export * from './Interface/api/vatControl/QueryVatControl';
|
|
993
|
+
export * from './Interface/api/card/QueryUserCards';
|
|
994
|
+
export * from './Interface/api/card/QueryUserCardsStats';
|
|
995
|
+
export * from './Interface/api/card/UpdateCard';
|
|
987
996
|
export * from './Interface/api/notion/NotionResponse';
|
|
988
997
|
|
|
989
998
|
// Enums types
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -248,7 +248,7 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
248
248
|
|
|
249
249
|
const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + (Math.round(price * 100) / 100) + '€' : (Math.round(price * 100) / 100) + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;
|
|
250
250
|
|
|
251
|
-
return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? price + '€/mois' : price + '€', price };
|
|
251
|
+
return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? (Math.round(price * 100) / 100) + '€/mois' : (Math.round(price * 100) / 100) + '€', price };
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
const getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {
|
package/ts/utils/quotation.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function getLeadQuotation(params: getLeadQuotationParams):number {
|
|
|
42
42
|
if (lastname) quotation += 5;
|
|
43
43
|
|
|
44
44
|
/* cotation du numéro de téléphone */
|
|
45
|
-
if (['6', '7'].includes(phone.substr(0, 1))) {
|
|
45
|
+
if (phone && ['6', '7'].includes(phone.substr(0, 1))) {
|
|
46
46
|
quotation += 15;
|
|
47
47
|
} else {
|
|
48
48
|
quotation += 5;
|