@silexpert/core 1.0.65 → 1.0.67

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.
Files changed (50) hide show
  1. package/es/api/resources/CalendarEvent.d.ts +2 -1
  2. package/es/api/resources/CalendarEvent.d.ts.map +1 -1
  3. package/es/api/resources/CalendarEvent.js +3 -0
  4. package/es/api/resources/CalendarEvent.js.map +1 -1
  5. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts +4 -0
  6. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts.map +1 -0
  7. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +19 -0
  8. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -0
  9. package/es/types/Interface/api/commercialManagement/Create.d.ts +1 -1
  10. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  11. package/es/types/Interface/api/commercialManagement/Create.js +2 -3
  12. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  13. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +1 -1
  14. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  15. package/es/types/Interface/api/wallet/UpdateAttribution.js +1 -1
  16. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +1 -1
  17. package/es/types/index.d.ts +1 -0
  18. package/es/types/index.d.ts.map +1 -1
  19. package/es/types/index.js +1 -0
  20. package/es/types/index.js.map +1 -1
  21. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  22. package/es/utils/commercialManagement/document.js +2 -2
  23. package/es/utils/commercialManagement/document.js.map +1 -1
  24. package/es/utils/commercialManagement/templates/body.js +2 -2
  25. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  26. package/js/api/resources/CalendarEvent.js +6 -0
  27. package/js/api/resources/CalendarEvent.js.map +1 -1
  28. package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +29 -0
  29. package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -0
  30. package/js/types/Interface/api/commercialManagement/Create.js +2 -2
  31. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  32. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +1 -1
  33. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  34. package/js/types/Interface/api/wallet/UpdateAttribution.js +4 -4
  35. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +1 -1
  36. package/js/types/index.js +12 -0
  37. package/js/types/index.js.map +1 -1
  38. package/js/utils/commercialManagement/document.js +2 -0
  39. package/js/utils/commercialManagement/document.js.map +1 -1
  40. package/js/utils/commercialManagement/templates/body.js +2 -2
  41. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  42. package/package.json +1 -1
  43. package/ts/api/resources/CalendarEvent.ts +5 -1
  44. package/ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts +8 -0
  45. package/ts/types/Interface/api/commercialManagement/Create.ts +2 -3
  46. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +1 -1
  47. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +1 -1
  48. package/ts/types/index.ts +1 -0
  49. package/ts/utils/commercialManagement/document.ts +2 -0
  50. package/ts/utils/commercialManagement/templates/body.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarEvent.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,MAAM,CAACC,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoCF,OAApC,CAAP;EACD;;EAEDG,MAAM,CAACH,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,yBAAhB,EAA2CF,OAA3C,CAAP;EACD;;EAEDI,GAAG,CAACC,EAAD,EAAaC,MAAb,EAAuC;IACxC,OAAO,KAAKL,KAAL,CAAWG,GAAX,CAAe,oBAAoBC,EAAE,EAArC,EAAyC;MAAEC;IAAF,CAAzC,CAAP;EACD;;EAEDC,MAAM,CAACD,MAAD,EAA8BE,WAA9B,EAAuD;IAC3D,OAAO,KAAKP,KAAL,CAAWG,GAAX,CAAe,sBAAf,EAAqCK,gCAAQD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EAAxC,GAA2C;MAAEF;IAAF,CAA3C,CAArC,CAAP;EACD;;EAEDI,MAAM,CAACL,EAAD,EAAaL,OAAb,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWU,GAAX,CAAe,oBAAoBN,EAAE,EAArC,EAAyCL,OAAzC,CAAP;EACD;;EAEDY,MAAM,CAACP,EAAD,EAAW;IACf,OAAO,KAAKJ,KAAL,CAAWW,MAAX,CAAkB,oBAAoBP,EAAE,EAAxC,CAAP;EACD;;AAvBwC;;QAA9BR,a,GAAAA,a","names":["CalendarEvent","Resource","create","payload","axios","post","verify","get","id","params","getAll","cancelToken","Object","update","put","delete"],"sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.post('/calendar-events/verify', payload);\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent> {\n return this.axios.get('/calendar-events/all', { ...(cancelToken ? { cancelToken } : {}), params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.delete(`/calendar-events/${id}`);\n }\n}"]}
1
+ {"version":3,"file":"CalendarEvent.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,MAAM,CAACC,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoCF,OAApC,CAAP;EACD;;EAEDG,MAAM,CAACH,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,yBAAhB,EAA2CF,OAA3C,CAAP;EACD;;EAEDI,gBAAgB,CAACC,MAAD,EAA+B;IAC7C,OAAO,KAAKJ,KAAL,CAAWK,GAAX,CAAe,oCAAf,EAAqD;MAAED;IAAF,CAArD,CAAP;EACD;;EAEDC,GAAG,CAACC,EAAD,EAAaF,MAAb,EAAuC;IACxC,OAAO,KAAKJ,KAAL,CAAWK,GAAX,CAAe,oBAAoBC,EAAE,EAArC,EAAyC;MAAEF;IAAF,CAAzC,CAAP;EACD;;EAEDG,MAAM,CAACH,MAAD,EAA8BI,WAA9B,EAAuD;IAC3D,OAAO,KAAKR,KAAL,CAAWK,GAAX,CAAe,sBAAf,EAAqCI,gCAAQD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EAAxC,GAA2C;MAAEJ;IAAF,CAA3C,CAArC,CAAP;EACD;;EAEDM,MAAM,CAACJ,EAAD,EAAaP,OAAb,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWW,GAAX,CAAe,oBAAoBL,EAAE,EAArC,EAAyCP,OAAzC,CAAP;EACD;;EAEDa,MAAM,CAACN,EAAD,EAAW;IACf,OAAO,KAAKN,KAAL,CAAWY,MAAX,CAAkB,oBAAoBN,EAAE,EAAxC,CAAP;EACD;;AA3BwC;;QAA9BV,a,GAAAA,a","names":["CalendarEvent","Resource","create","payload","axios","post","verify","verifyInvalidate","params","get","id","getAll","cancelToken","Object","update","put","delete"],"sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreateCalendarEventForUsers, GetAllCalendarEvent, GetLastInvalidateEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.post('/calendar-events/verify', payload);\n }\n\n verifyInvalidate(params: GetLastInvalidateEvent): Promise<Date> {\n return this.axios.get('/calendar-events/verify-invalidate', { params });\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent> {\n return this.axios.get('/calendar-events/all', { ...(cancelToken ? { cancelToken } : {}), params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.delete(`/calendar-events/${id}`);\n }\n}"]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLastInvalidateEvent = undefined;
7
+
8
+ var _classValidator = require("class-validator");
9
+
10
+ var _decorators = require("../../../../utils/decorators");
11
+
12
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13
+ var c = arguments.length,
14
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
15
+ d;
16
+ 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;
17
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18
+ };
19
+
20
+ var __metadata = undefined && undefined.__metadata || function (k, v) {
21
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
+ };
23
+
24
+ class GetLastInvalidateEvent {}
25
+
26
+ exports.GetLastInvalidateEvent = GetLastInvalidateEvent;
27
+
28
+ __decorate([(0, _decorators.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], GetLastInvalidateEvent.prototype, "idUser", void 0);
29
+ //# sourceMappingURL=getLastInvalidateEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLastInvalidateEvent.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXC,YAFC,8BAED,EADC,4BACD","names":["GetLastInvalidateEvent","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts"],"sourcesContent":["import { IsInt } from 'class-validator';\nimport { ApiProperty } from '../../../../utils/decorators';\n\nexport class GetLastInvalidateEvent {\n @ApiProperty()\n @IsInt()\n idUser: number;\n}"]}
@@ -173,9 +173,9 @@ __decorate([(0, _utils.ApiProperty)({
173
173
  description: 'Pénalité de retard'
174
174
  }), __metadata("design:type", Object)], CommercialDocumentInputs.prototype, "penalties", void 0);
175
175
 
176
- __decorate([(0, _utils.ApiProperty)({
176
+ __decorate([(0, _utils.ApiPropertyOptional)({
177
177
  description: 'Remise globale'
178
- }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], CommercialDocumentInputs.prototype, "generalDiscount2", void 0);
178
+ }), __metadata("design:type", Object)], CommercialDocumentInputs.prototype, "generalDiscount2", void 0);
179
179
 
180
180
  __decorate([(0, _utils.ApiProperty)({
181
181
  description: 'Indemnité forfaitaire'
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAAI,CAAJ,EAAO;EACNC,OAAO,EAAE;AADH,CAAP,CAGD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD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GAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOO,qBAAP,SAAqCH,wBAArC,CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAQP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXT,YADC,yBACD;;AAGI,MAAOU,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXV,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOW,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXX,YAFC,yBAED,EADC,4BAAOY,8BAAP,CACD;;AAIAZ,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiProperty({ description: 'Remise globale' })\n @IsNumber()\n generalDiscount2: number;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}"]}
1
+ {"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAAI,CAAJ,EAAO;EACNC,OAAO,EAAE;AADH,CAAP,CAGD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gC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C,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOO,qBAAP,SAAqCH,wBAArC,CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAQP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXT,YADC,yBACD;;AAGI,MAAOU,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXV,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOW,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXX,YAFC,yBAED,EADC,4BAAOY,8BAAP,CACD;;AAIAZ,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}"]}
@@ -54,7 +54,7 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)()
54
54
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedSocietyWithStatsCa.prototype, "idConstitutionState", void 0);
55
55
 
56
56
  __decorate([(0, _utils.ApiPropertyOptional)({
57
- default: 25
57
+ default: 20
58
58
  }), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedSocietyWithStatsCa.prototype, "limit", void 0);
59
59
 
60
60
  __decorate([(0, _utils.ApiPropertyOptional)({
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaginatedSocietyWithStatsCa.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gCAAP,CAAuC;;QAAhCA,gC,GAAAA,gC;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,2BAAM;EAAEC,IAAI,EAAE;AAAR,CAAN,CACD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD","names":["QueryPaginatedSocietyWithStatsCa","__decorate","each","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaginatedSocietyWithStatsCa {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isInCA?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n turnoverRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isAdditionalSales?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n day?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n month?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n year?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSource?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idState?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idConstitutionState?: number;\n\n @ApiPropertyOptional({ default: 25 })\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional({ default: 1 })\n @IsOptional()\n @IsInt()\n page?: number;\n}\n"]}
1
+ {"version":3,"file":"QueryPaginatedSocietyWithStatsCa.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gCAAP,CAAuC;;QAAhCA,gC,GAAAA,gC;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,2BAAM;EAAEC,IAAI,EAAE;AAAR,CAAN,CACD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD","names":["QueryPaginatedSocietyWithStatsCa","__decorate","each","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaginatedSocietyWithStatsCa {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isInCA?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n turnoverRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isAdditionalSales?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n day?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n month?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n year?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSource?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idState?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idConstitutionState?: number;\n\n @ApiPropertyOptional({ default: 20 })\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional({ default: 1 })\n @IsOptional()\n @IsInt()\n page?: number;\n}\n"]}
@@ -7,7 +7,7 @@ exports.UpdateAttribution = undefined;
7
7
 
8
8
  var _classValidator = require("class-validator");
9
9
 
10
- var _decorators = require("../../../../utils/decorators");
10
+ var _utils = require("../../../../utils");
11
11
 
12
12
  var _boolean = require("../../../../utils/transforms/boolean.transform");
13
13
 
@@ -27,9 +27,9 @@ class UpdateAttribution {}
27
27
 
28
28
  exports.UpdateAttribution = UpdateAttribution;
29
29
 
30
- __decorate([(0, _decorators.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsPositive)(), __metadata("design:type", Number)], UpdateAttribution.prototype, "idRoles", void 0);
30
+ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsPositive)(), __metadata("design:type", Number)], UpdateAttribution.prototype, "idRoles", void 0);
31
31
 
32
- __decorate([(0, _decorators.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], UpdateAttribution.prototype, "swapUserId", void 0);
32
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], UpdateAttribution.prototype, "swapUserId", void 0);
33
33
 
34
- __decorate([(0, _decorators.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], UpdateAttribution.prototype, "randomSwap", void 0);
34
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], UpdateAttribution.prototype, "randomSwap", void 0);
35
35
  //# sourceMappingURL=UpdateAttribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateAttribution.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,iBAAP,CAAwB;;QAAjBA,iB,GAAAA,iB;;AAIXC,YAHC,8BAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,sCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,sCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD","names":["UpdateAttribution","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/wallet/UpdateAttribution.ts"],"sourcesContent":["import {\n IsBoolean, IsNumber, IsOptional, IsPositive,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateAttribution {\n @ApiProperty()\n @IsNumber()\n @IsPositive()\n idRoles: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n swapUserId?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n randomSwap?: boolean;\n}"]}
1
+ {"version":3,"file":"UpdateAttribution.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,iBAAP,CAAwB;;QAAjBA,iB,GAAAA,iB;;AAIXC,YAHC,yBAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD","names":["UpdateAttribution","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/wallet/UpdateAttribution.ts"],"sourcesContent":["import {\n IsBoolean, IsNumber, IsOptional, IsPositive,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateAttribution {\n @ApiProperty()\n @IsNumber()\n @IsPositive()\n idRoles: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n swapUserId?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n randomSwap?: boolean;\n}"]}
package/js/types/index.js CHANGED
@@ -9088,6 +9088,18 @@ Object.keys(_getAllCalendarEvent).forEach(function (key) {
9088
9088
  });
9089
9089
  });
9090
9090
 
9091
+ var _getLastInvalidateEvent = require("./Interface/api/calendarEvent/getLastInvalidateEvent");
9092
+
9093
+ Object.keys(_getLastInvalidateEvent).forEach(function (key) {
9094
+ if (key === "default" || key === "__esModule") return;
9095
+ Object.defineProperty(exports, key, {
9096
+ enumerable: true,
9097
+ get: function () {
9098
+ return _getLastInvalidateEvent[key];
9099
+ }
9100
+ });
9101
+ });
9102
+
9091
9103
  var _readAllCalendarEvent = require("./Interface/api/calendarEvent/readAllCalendarEvent");
9092
9104
 
9093
9105
  Object.keys(_readAllCalendarEvent).forEach(function (key) {