@silexpert/core 1.3.108-1 → 1.3.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.
Files changed (175) hide show
  1. package/dist/cjs/api/resources/CalendarEvent.d.ts +3 -2
  2. package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/CalendarEvent.js +3 -0
  4. package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
  5. package/dist/cjs/api/resources/Payment.d.ts +3 -1
  6. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Payment.js +3 -0
  8. package/dist/cjs/api/resources/Payment.js.map +1 -1
  9. package/dist/cjs/api/resources.d.ts +0 -2
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +0 -2
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/PrestationType.d.ts +6 -0
  14. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/PrestationType.js +8 -1
  16. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  17. package/dist/cjs/types/Form/FormConnector.d.ts +0 -1
  18. package/dist/cjs/types/Form/FormConnector.d.ts.map +1 -1
  19. package/dist/cjs/types/Form/FormConnector.js +0 -83
  20. package/dist/cjs/types/Form/FormConnector.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
  22. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/calendarEvent/query.d.ts +26 -0
  25. package/dist/cjs/types/Interface/api/calendarEvent/query.d.ts.map +1 -0
  26. package/dist/cjs/types/Interface/api/calendarEvent/query.js +110 -0
  27. package/dist/cjs/types/Interface/api/calendarEvent/query.js.map +1 -0
  28. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
  29. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/stripe/Create.js +13 -1
  31. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  33. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +6 -0
  35. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  36. package/dist/cjs/types/Interface/models/IConnector.d.ts +0 -1
  37. package/dist/cjs/types/Interface/models/IConnector.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/models/IConnector.js.map +1 -1
  39. package/dist/cjs/types/index.d.ts +1 -6
  40. package/dist/cjs/types/index.d.ts.map +1 -1
  41. package/dist/cjs/types/index.js +1 -6
  42. package/dist/cjs/types/index.js.map +1 -1
  43. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  44. package/dist/cjs/utils/prestation.js +7 -5
  45. package/dist/cjs/utils/prestation.js.map +1 -1
  46. package/dist/mjs/api/resources/CalendarEvent.d.ts +3 -2
  47. package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
  48. package/dist/mjs/api/resources/CalendarEvent.js +3 -0
  49. package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
  50. package/dist/mjs/api/resources/Payment.d.ts +3 -1
  51. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  52. package/dist/mjs/api/resources/Payment.js +3 -0
  53. package/dist/mjs/api/resources/Payment.js.map +1 -1
  54. package/dist/mjs/api/resources.d.ts +0 -2
  55. package/dist/mjs/api/resources.d.ts.map +1 -1
  56. package/dist/mjs/api/resources.js +0 -2
  57. package/dist/mjs/api/resources.js.map +1 -1
  58. package/dist/mjs/types/Enum/PrestationType.d.ts +6 -0
  59. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  60. package/dist/mjs/types/Enum/PrestationType.js +7 -0
  61. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  62. package/dist/mjs/types/Form/FormConnector.d.ts +0 -1
  63. package/dist/mjs/types/Form/FormConnector.d.ts.map +1 -1
  64. package/dist/mjs/types/Form/FormConnector.js +11 -84
  65. package/dist/mjs/types/Form/FormConnector.js.map +1 -1
  66. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
  67. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  68. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  69. package/dist/mjs/types/Interface/api/calendarEvent/query.d.ts +26 -0
  70. package/dist/mjs/types/Interface/api/calendarEvent/query.d.ts.map +1 -0
  71. package/dist/mjs/types/Interface/api/calendarEvent/query.js +117 -0
  72. package/dist/mjs/types/Interface/api/calendarEvent/query.js.map +1 -0
  73. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
  74. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  75. package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
  76. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  77. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  78. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  79. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -1
  80. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  81. package/dist/mjs/types/Interface/models/IConnector.d.ts +0 -1
  82. package/dist/mjs/types/Interface/models/IConnector.d.ts.map +1 -1
  83. package/dist/mjs/types/Interface/models/IConnector.js.map +1 -1
  84. package/dist/mjs/types/index.d.ts +1 -6
  85. package/dist/mjs/types/index.d.ts.map +1 -1
  86. package/dist/mjs/types/index.js +1 -6
  87. package/dist/mjs/types/index.js.map +1 -1
  88. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  89. package/dist/mjs/utils/prestation.js +7 -5
  90. package/dist/mjs/utils/prestation.js.map +1 -1
  91. package/package.json +1 -1
  92. package/ts/api/resources/CalendarEvent.ts +6 -1
  93. package/ts/api/resources/Payment.ts +6 -0
  94. package/ts/api/resources.ts +0 -2
  95. package/ts/types/Enum/PrestationType.ts +7 -0
  96. package/ts/types/Form/FormConnector.ts +11 -39
  97. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +3 -0
  98. package/ts/types/Interface/api/calendarEvent/query.ts +77 -0
  99. package/ts/types/Interface/api/stripe/Create.ts +9 -0
  100. package/ts/types/Interface/api/stripe/QueryStripe.ts +6 -1
  101. package/ts/types/Interface/models/IConnector.ts +0 -1
  102. package/ts/types/index.ts +1 -6
  103. package/ts/utils/prestation.ts +7 -4
  104. package/dist/cjs/api/resources/Sellsy.d.ts +0 -16
  105. package/dist/cjs/api/resources/Sellsy.d.ts.map +0 -1
  106. package/dist/cjs/api/resources/Sellsy.js +0 -20
  107. package/dist/cjs/api/resources/Sellsy.js.map +0 -1
  108. package/dist/cjs/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts +0 -7
  109. package/dist/cjs/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts.map +0 -1
  110. package/dist/cjs/types/Interface/api/calendarEvent/getAllCalendarEvent.js +0 -33
  111. package/dist/cjs/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +0 -1
  112. package/dist/cjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts +0 -6
  113. package/dist/cjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts.map +0 -1
  114. package/dist/cjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +0 -37
  115. package/dist/cjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +0 -1
  116. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts +0 -5
  117. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts.map +0 -1
  118. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEvent.js +0 -35
  119. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +0 -1
  120. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEventCall.d.ts +0 -7
  121. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEventCall.d.ts.map +0 -1
  122. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEventCall.js +0 -36
  123. package/dist/cjs/types/Interface/api/calendarEvent/queryCalendarEventCall.js.map +0 -1
  124. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +0 -12
  125. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +0 -1
  126. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js +0 -3
  127. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js.map +0 -1
  128. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +0 -11
  129. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +0 -1
  130. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +0 -3
  131. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +0 -1
  132. package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts +0 -10
  133. package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts.map +0 -1
  134. package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.js +0 -36
  135. package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.js.map +0 -1
  136. package/dist/mjs/api/resources/Sellsy.d.ts +0 -16
  137. package/dist/mjs/api/resources/Sellsy.d.ts.map +0 -1
  138. package/dist/mjs/api/resources/Sellsy.js +0 -16
  139. package/dist/mjs/api/resources/Sellsy.js.map +0 -1
  140. package/dist/mjs/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts +0 -7
  141. package/dist/mjs/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts.map +0 -1
  142. package/dist/mjs/types/Interface/api/calendarEvent/getAllCalendarEvent.js +0 -33
  143. package/dist/mjs/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +0 -1
  144. package/dist/mjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts +0 -6
  145. package/dist/mjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts.map +0 -1
  146. package/dist/mjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +0 -36
  147. package/dist/mjs/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +0 -1
  148. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts +0 -5
  149. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEvent.d.ts.map +0 -1
  150. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEvent.js +0 -33
  151. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEvent.js.map +0 -1
  152. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEventCall.d.ts +0 -7
  153. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEventCall.d.ts.map +0 -1
  154. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEventCall.js +0 -36
  155. package/dist/mjs/types/Interface/api/calendarEvent/queryCalendarEventCall.js.map +0 -1
  156. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +0 -12
  157. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +0 -1
  158. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js +0 -2
  159. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js.map +0 -1
  160. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +0 -11
  161. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +0 -1
  162. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +0 -2
  163. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +0 -1
  164. package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts +0 -10
  165. package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts.map +0 -1
  166. package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.js +0 -35
  167. package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.js.map +0 -1
  168. package/ts/api/resources/Sellsy.ts +0 -21
  169. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +0 -15
  170. package/ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts +0 -20
  171. package/ts/types/Interface/api/calendarEvent/queryCalendarEvent.ts +0 -19
  172. package/ts/types/Interface/api/calendarEvent/queryCalendarEventCall.ts +0 -18
  173. package/ts/types/Interface/api/connector/OAuthTokenRequest.ts +0 -12
  174. package/ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts +0 -10
  175. package/ts/types/Interface/api/sellsy/SellsyOauthCallback.ts +0 -24
@@ -1 +0,0 @@
1
- {"version":3,"file":"SellsyConnectionStatus.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SellsyConnectionStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SellsyConnectionStatus.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts"],"names":[],"mappings":"","sourcesContent":["export interface SellsyConnectionStatus {\n connected: boolean;\n refreshed?: boolean;\n needReauth?: boolean;\n lastSync?: Date | string;\n expiresAt?: Date;\n expiresIn?: number;\n message?: string;\n error?: string;\n}\n"]}
@@ -1,10 +0,0 @@
1
- export declare class SellsyOauthCallback {
2
- code: string;
3
- codeVerifier: string;
4
- idSociety: number;
5
- }
6
- export interface SellsyOauthCallbackResponse {
7
- message: string;
8
- success: true;
9
- }
10
- //# sourceMappingURL=SellsyOauthCallback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SellsyOauthCallback.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyOauthCallback.ts"],"names":[],"mappings":"AAGA,qBAAa,mBAAmB;IAI9B,IAAI,EAAE,MAAM,CAAC;IAKb,YAAY,EAAE,MAAM,CAAC;IAKrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;CACf"}
@@ -1,35 +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 { IsInt, IsNotEmpty, IsString } from 'class-validator';
11
- import { ApiProperty } from '../../../../utils';
12
- export class SellsyOauthCallback {
13
- code;
14
- codeVerifier;
15
- idSociety;
16
- }
17
- __decorate([
18
- ApiProperty(),
19
- IsString(),
20
- IsNotEmpty(),
21
- __metadata("design:type", String)
22
- ], SellsyOauthCallback.prototype, "code", void 0);
23
- __decorate([
24
- ApiProperty(),
25
- IsString(),
26
- IsNotEmpty(),
27
- __metadata("design:type", String)
28
- ], SellsyOauthCallback.prototype, "codeVerifier", void 0);
29
- __decorate([
30
- ApiProperty(),
31
- IsInt(),
32
- IsNotEmpty(),
33
- __metadata("design:type", Number)
34
- ], SellsyOauthCallback.prototype, "idSociety", void 0);
35
- //# sourceMappingURL=SellsyOauthCallback.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SellsyOauthCallback.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyOauthCallback.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,mBAAmB;IAI9B,IAAI,CAAS;IAKb,YAAY,CAAS;IAKrB,SAAS,CAAS;CACnB;AAXC;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACA;AAKb;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACQ;AAKrB;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,UAAU,EAAE;;sDACK","sourcesContent":["import { IsInt, IsNotEmpty, IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class SellsyOauthCallback {\n @ApiProperty()\n @IsString()\n @IsNotEmpty()\n code: string;\n\n @ApiProperty()\n @IsString()\n @IsNotEmpty()\n codeVerifier: string;\n\n @ApiProperty()\n @IsInt()\n @IsNotEmpty()\n idSociety: number;\n}\n\nexport interface SellsyOauthCallbackResponse {\n message: string;\n success: true;\n}\n"]}
@@ -1,21 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';
3
- import { SellsyOauthCallback } from '../../types/Interface/api/sellsy/SellsyOauthCallback';
4
-
5
- export class Sellsy extends Resource {
6
- oauthCallback(payload: SellsyOauthCallback): Promise<{ success: boolean; message: string }> {
7
- return this.axios.$post('/connectors/sellsy/callback', payload);
8
- }
9
-
10
- disconnect(idSociety: number): Promise<{ success: boolean; message: string }> {
11
- return this.axios.$delete(`/connectors/sellsy/disconnect/${idSociety}`);
12
- }
13
-
14
- getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus> {
15
- return this.axios.$get('/connectors/sellsy/status', { params: { societyId } });
16
- }
17
-
18
- createInvoices(payload: any): Promise<any> {
19
- return this.axios.$post('/connectors/sellsy/invoices', payload);
20
- }
21
- }
@@ -1,15 +0,0 @@
1
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
-
3
- export class GetAllCalendarEvent {
4
- @ApiPropertyOptional()
5
- idUser?: number;
6
-
7
- @ApiProperty()
8
- startDate: Date;
9
-
10
- @ApiProperty()
11
- endDate: Date;
12
-
13
- @ApiPropertyOptional()
14
- isValidated?: boolean;
15
- }
@@ -1,20 +0,0 @@
1
- import { IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
-
4
- export class GetLastInvalidateEvent {
5
- @ApiProperty()
6
- @IsInt()
7
- idUser: number;
8
-
9
- @ApiPropertyOptional()
10
- @IsOptional()
11
- @IsString()
12
- @IsDateString()
13
- dateStart?: string;
14
-
15
- @ApiPropertyOptional()
16
- @IsOptional()
17
- @IsString()
18
- @IsDateString()
19
- dateEnd?: string;
20
- }
@@ -1,19 +0,0 @@
1
- import { IsIn, IsOptional, IsString } from 'class-validator';
2
- import { ApiPropertyOptional } from '../../../../utils/decorators';
3
-
4
- export class QueryCalendarEvent {
5
- @ApiPropertyOptional()
6
- @IsOptional()
7
- @IsString({
8
- each: true,
9
- })
10
- @IsIn(['room', 'createdBy', 'color', 'society', 'exercice', 'task'], { each: true })
11
- include?: string[];
12
-
13
- @ApiPropertyOptional()
14
- @IsOptional()
15
- @IsString({
16
- each: true,
17
- })
18
- attributes?: string[];
19
- }
@@ -1,18 +0,0 @@
1
- import { IsBoolean, IsOptional } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
-
4
- export class QueryCalendarEventCall {
5
- @ApiPropertyOptional()
6
- idUser?: number;
7
-
8
- @ApiProperty()
9
- startDate: Date;
10
-
11
- @ApiProperty()
12
- endDate: Date;
13
-
14
- @IsBoolean()
15
- @ApiPropertyOptional()
16
- @IsOptional()
17
- noHonoredCall?: boolean;
18
- }
@@ -1,12 +0,0 @@
1
- export interface OAuthTokenRequest {
2
- clientId: string;
3
- redirectUri: string;
4
- codeVerifier: string;
5
- code: string;
6
- }
7
-
8
- export interface SellsyTokenResponse {
9
- access_token: string;
10
- refresh_token: string;
11
- expires_in: number;
12
- }
@@ -1,10 +0,0 @@
1
- export interface SellsyConnectionStatus {
2
- connected: boolean;
3
- refreshed?: boolean;
4
- needReauth?: boolean;
5
- lastSync?: Date | string;
6
- expiresAt?: Date;
7
- expiresIn?: number;
8
- message?: string;
9
- error?: string;
10
- }
@@ -1,24 +0,0 @@
1
- import { IsInt, IsNotEmpty, IsString } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
3
-
4
- export class SellsyOauthCallback {
5
- @ApiProperty()
6
- @IsString()
7
- @IsNotEmpty()
8
- code: string;
9
-
10
- @ApiProperty()
11
- @IsString()
12
- @IsNotEmpty()
13
- codeVerifier: string;
14
-
15
- @ApiProperty()
16
- @IsInt()
17
- @IsNotEmpty()
18
- idSociety: number;
19
- }
20
-
21
- export interface SellsyOauthCallbackResponse {
22
- message: string;
23
- success: true;
24
- }