@silexpert/core 2.0.57 → 2.0.58-zendesk
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/api/resources/CommercialDocument.d.ts +4 -1
- package/dist/api/resources/CommercialDocument.d.ts.map +1 -1
- package/dist/api/resources/CommercialDocument.js +9 -0
- package/dist/api/resources/CommercialDocument.js.map +1 -1
- package/dist/api/resources/zendesk/Ticket.d.ts +12 -0
- package/dist/api/resources/zendesk/Ticket.d.ts.map +1 -0
- package/dist/api/resources/zendesk/Ticket.js +40 -0
- package/dist/api/resources/zendesk/Ticket.js.map +1 -0
- package/dist/api/resources.d.ts +2 -0
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +2 -0
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/types/Enum/BrandClementine.js +1 -0
- package/dist/types/Enum/BrandClementine.js.map +1 -1
- package/dist/types/Enum/EInvoicingReasonType.d.ts +44 -0
- package/dist/types/Enum/EInvoicingReasonType.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingReasonType.js +143 -0
- package/dist/types/Enum/EInvoicingReasonType.js.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts +2 -1
- package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -1
- package/dist/types/Enum/EInvoicingStatusCode.js +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -1
- package/dist/types/Enum/MimeType.d.ts +2 -0
- package/dist/types/Enum/MimeType.d.ts.map +1 -1
- package/dist/types/Enum/MimeType.js +1 -0
- package/dist/types/Enum/MimeType.js.map +1 -1
- package/dist/types/Enum/Unit.d.ts +2 -0
- package/dist/types/Enum/Unit.d.ts.map +1 -1
- package/dist/types/Enum/Unit.js +22 -0
- package/dist/types/Enum/Unit.js.map +1 -1
- package/dist/types/Enum/Zendesk.d.ts +40 -0
- package/dist/types/Enum/Zendesk.d.ts.map +1 -0
- package/dist/types/Enum/Zendesk.js +40 -0
- package/dist/types/Enum/Zendesk.js.map +1 -0
- package/dist/types/Interface/api/commercialManagement/Read.d.ts +26 -0
- package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/types/Interface/api/docoon/Create.d.ts +17 -0
- package/dist/types/Interface/api/docoon/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/docoon/Create.js +72 -1
- package/dist/types/Interface/api/docoon/Create.js.map +1 -1
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts +16 -4
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -1
- package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts +39 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts.map +1 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.js +244 -0
- package/dist/types/Interface/api/zendesk/QueryTicket.js.map +1 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.d.ts +99 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.d.ts.map +1 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.js +2 -0
- package/dist/types/Interface/api/zendesk/ReadTicket.js.map +1 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts +4 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingFile.js +3 -0
- package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicing.d.ts +6 -0
- package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -1
- package/dist/types/Interface/models/IEInvoicing.js +3 -0
- package/dist/types/Interface/models/IEInvoicing.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts +2 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -1
- package/dist/types/Interface/models/IEInvoicingStatus.js +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/vat/centuries.d.ts.map +1 -1
- package/dist/utils/vat/centuries.js +11 -1
- package/dist/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/CommercialDocument.ts +16 -0
- package/ts/api/resources/zendesk/Ticket.ts +58 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/EInvoicingReasonType.ts +156 -0
- package/ts/types/Enum/EInvoicingStatusCode.ts +1 -0
- package/ts/types/Enum/MimeType.ts +1 -0
- package/ts/types/Enum/Unit.ts +24 -1
- package/ts/types/Enum/Zendesk.ts +56 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +25 -0
- package/ts/types/Interface/api/docoon/Create.ts +46 -0
- package/ts/types/Interface/api/docoon/DocoonInvoice.ts +16 -3
- package/ts/types/Interface/api/zendesk/QueryTicket.ts +192 -0
- package/ts/types/Interface/api/zendesk/ReadTicket.ts +110 -0
- package/ts/types/Interface/models/IAccountingFile.ts +4 -0
- package/ts/types/Interface/models/IEInvoicing.ts +6 -0
- package/ts/types/Interface/models/IEInvoicingStatus.ts +2 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/vat/centuries.ts +11 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { IsString, IsOptional, IsArray, IsEnum, IsDateString } from 'class-validator';
|
|
3
|
+
import { DocoonFlowType } from './DocoonInvoice.js';
|
|
4
|
+
import { EInvoicingStatusCode } from '#types/Enum/EInvoicingStatusCode.js';
|
|
5
|
+
import { EInvoicingReasonType } from '#types/Enum/EInvoicingReasonType.js';
|
|
6
|
+
|
|
1
7
|
export type CreateLegalEntity = {
|
|
2
8
|
name: string;
|
|
3
9
|
legalId: string;
|
|
@@ -40,3 +46,43 @@ export type RelaunchDirectoryLine = {
|
|
|
40
46
|
addressingIdentifier: string;
|
|
41
47
|
};
|
|
42
48
|
};
|
|
49
|
+
export class ImportDocoonInvoice {
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsDateString()
|
|
52
|
+
@IsOptional()
|
|
53
|
+
updatedAfter?: string;
|
|
54
|
+
|
|
55
|
+
@ApiPropertyOptional()
|
|
56
|
+
@IsArray()
|
|
57
|
+
@IsString({ each: true })
|
|
58
|
+
@IsOptional()
|
|
59
|
+
flowType?: DocoonFlowType[];
|
|
60
|
+
}
|
|
61
|
+
export class RejectEInvoice {
|
|
62
|
+
@ApiProperty()
|
|
63
|
+
@IsEnum(EInvoicingStatusCode)
|
|
64
|
+
status: EInvoicingStatusCode;
|
|
65
|
+
|
|
66
|
+
@ApiProperty()
|
|
67
|
+
@IsEnum(EInvoicingReasonType)
|
|
68
|
+
reasonType: EInvoicingReasonType;
|
|
69
|
+
|
|
70
|
+
@ApiProperty()
|
|
71
|
+
@IsString()
|
|
72
|
+
reason: string;
|
|
73
|
+
}
|
|
74
|
+
export class AcceptEInvoice {
|
|
75
|
+
@ApiProperty()
|
|
76
|
+
@IsEnum(EInvoicingStatusCode)
|
|
77
|
+
status: EInvoicingStatusCode;
|
|
78
|
+
|
|
79
|
+
@ApiPropertyOptional()
|
|
80
|
+
@IsString()
|
|
81
|
+
@IsOptional()
|
|
82
|
+
internalNumber?: string;
|
|
83
|
+
|
|
84
|
+
@ApiPropertyOptional()
|
|
85
|
+
@IsString()
|
|
86
|
+
@IsOptional()
|
|
87
|
+
internalComment?: string;
|
|
88
|
+
}
|
|
@@ -163,7 +163,7 @@ export type ReadDocoonSearch = {
|
|
|
163
163
|
result: ReadDocoonResultSearch[];
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
type ReadDocoonResultSearch = {
|
|
166
|
+
export type ReadDocoonResultSearch = {
|
|
167
167
|
documentId: string;
|
|
168
168
|
structureId: string;
|
|
169
169
|
submittedAt: string;
|
|
@@ -173,16 +173,29 @@ type ReadDocoonResultSearch = {
|
|
|
173
173
|
flowDirection: DocoonFlowDirection;
|
|
174
174
|
flowType: DocoonFlowType;
|
|
175
175
|
flowStatus: string;
|
|
176
|
-
flowSyntax:
|
|
176
|
+
flowSyntax: DocoonFlowSyntax;
|
|
177
177
|
flowProfile: string;
|
|
178
|
-
flowCategory:
|
|
178
|
+
flowCategory: DocoonFlowCategory;
|
|
179
179
|
isRead: boolean;
|
|
180
180
|
documentTypeCode: string;
|
|
181
181
|
documentStatus: string;
|
|
182
182
|
name: string;
|
|
183
|
+
acknowledgement: DocoonFlowAcknowledgement;
|
|
183
184
|
};
|
|
184
185
|
|
|
186
|
+
export type DocoonFlowAcknowledgement = {
|
|
187
|
+
status: 'Ok' | 'Error';
|
|
188
|
+
details: Array<{
|
|
189
|
+
level: string | null;
|
|
190
|
+
item: string | null;
|
|
191
|
+
reasonCode: string | null;
|
|
192
|
+
reasonMessage: string | null;
|
|
193
|
+
fullMessage: string | null;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
185
196
|
export type DocoonFlowType = 'CustomerInvoice' | 'SupplierInvoice';
|
|
186
197
|
export type DocoonFlowDirection = 'In' | 'Out';
|
|
198
|
+
export type DocoonFlowSyntax = 'UBL' | 'CII' | 'Factur-X';
|
|
199
|
+
export type DocoonFlowCategory = 'FLUX1' | 'FLUX2' | 'FLUX3' | 'FLUX4' | 'FLUX5' | 'FLUX6';
|
|
187
200
|
|
|
188
201
|
export type DocoonFlowDocType = 'Original' | 'ReadableView';
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsString,
|
|
3
|
+
IsNotEmpty,
|
|
4
|
+
IsOptional,
|
|
5
|
+
IsEnum,
|
|
6
|
+
IsArray,
|
|
7
|
+
IsNumber,
|
|
8
|
+
MinLength,
|
|
9
|
+
IsInt,
|
|
10
|
+
Min,
|
|
11
|
+
Max,
|
|
12
|
+
} from 'class-validator';
|
|
13
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
14
|
+
import {
|
|
15
|
+
ZendeskTicketChannel,
|
|
16
|
+
ZendeskTicketChannelEnum,
|
|
17
|
+
ZendeskTicketPriority,
|
|
18
|
+
ZendeskTicketPriorityEnum,
|
|
19
|
+
ZendeskTicketStatus,
|
|
20
|
+
ZendeskTicketStatusEnum,
|
|
21
|
+
ZendeskTicketType,
|
|
22
|
+
ZendeskTicketTypeEnum,
|
|
23
|
+
} from '../../../../types/Enum/Zendesk.js';
|
|
24
|
+
|
|
25
|
+
export class CreateZendeskTicket {
|
|
26
|
+
@ApiProperty()
|
|
27
|
+
@IsString()
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
@MinLength(3)
|
|
30
|
+
subject: string;
|
|
31
|
+
|
|
32
|
+
@ApiProperty()
|
|
33
|
+
@IsString()
|
|
34
|
+
@IsNotEmpty()
|
|
35
|
+
body: string;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsArray()
|
|
40
|
+
@IsString({ each: true })
|
|
41
|
+
attachments?: string[];
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
@IsEnum(ZendeskTicketStatusEnum)
|
|
46
|
+
status?: ZendeskTicketStatus;
|
|
47
|
+
|
|
48
|
+
@ApiPropertyOptional()
|
|
49
|
+
@IsOptional()
|
|
50
|
+
@IsEnum(ZendeskTicketPriorityEnum)
|
|
51
|
+
priority?: ZendeskTicketPriority;
|
|
52
|
+
|
|
53
|
+
@ApiPropertyOptional()
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsEnum(ZendeskTicketTypeEnum)
|
|
56
|
+
type?: ZendeskTicketType;
|
|
57
|
+
|
|
58
|
+
@ApiPropertyOptional()
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsArray()
|
|
61
|
+
@IsString({ each: true })
|
|
62
|
+
tags?: string[];
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@IsNumber()
|
|
67
|
+
requesterId?: number;
|
|
68
|
+
|
|
69
|
+
@ApiPropertyOptional()
|
|
70
|
+
@IsOptional()
|
|
71
|
+
@IsNumber()
|
|
72
|
+
assigneeId?: number;
|
|
73
|
+
|
|
74
|
+
@ApiPropertyOptional()
|
|
75
|
+
@IsOptional()
|
|
76
|
+
@IsNumber()
|
|
77
|
+
groupId?: number;
|
|
78
|
+
|
|
79
|
+
@ApiPropertyOptional()
|
|
80
|
+
@IsOptional()
|
|
81
|
+
@IsNumber()
|
|
82
|
+
organizationId?: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class UpdateZendeskTicket {
|
|
86
|
+
@ApiPropertyOptional()
|
|
87
|
+
@IsOptional()
|
|
88
|
+
@IsString()
|
|
89
|
+
@MinLength(3)
|
|
90
|
+
subject?: string;
|
|
91
|
+
|
|
92
|
+
@ApiPropertyOptional()
|
|
93
|
+
@IsOptional()
|
|
94
|
+
@IsString()
|
|
95
|
+
body?: string;
|
|
96
|
+
|
|
97
|
+
@ApiPropertyOptional()
|
|
98
|
+
@IsOptional()
|
|
99
|
+
@IsArray()
|
|
100
|
+
@IsString({ each: true })
|
|
101
|
+
attachments?: string[];
|
|
102
|
+
|
|
103
|
+
@ApiPropertyOptional()
|
|
104
|
+
@IsOptional()
|
|
105
|
+
@IsEnum(ZendeskTicketStatusEnum)
|
|
106
|
+
status?: ZendeskTicketStatus;
|
|
107
|
+
|
|
108
|
+
@ApiPropertyOptional()
|
|
109
|
+
@IsOptional()
|
|
110
|
+
@IsEnum(ZendeskTicketPriorityEnum)
|
|
111
|
+
priority?: ZendeskTicketPriority;
|
|
112
|
+
|
|
113
|
+
@ApiPropertyOptional()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsEnum(ZendeskTicketTypeEnum)
|
|
116
|
+
type?: ZendeskTicketType;
|
|
117
|
+
|
|
118
|
+
@ApiPropertyOptional()
|
|
119
|
+
@IsOptional()
|
|
120
|
+
@IsArray()
|
|
121
|
+
@IsString({ each: true })
|
|
122
|
+
tags?: string[];
|
|
123
|
+
|
|
124
|
+
@ApiPropertyOptional()
|
|
125
|
+
@IsOptional()
|
|
126
|
+
@IsNumber()
|
|
127
|
+
assigneeId?: number;
|
|
128
|
+
|
|
129
|
+
@ApiPropertyOptional()
|
|
130
|
+
@IsOptional()
|
|
131
|
+
@IsNumber()
|
|
132
|
+
groupId?: number;
|
|
133
|
+
|
|
134
|
+
@ApiPropertyOptional()
|
|
135
|
+
@IsOptional()
|
|
136
|
+
@IsNumber()
|
|
137
|
+
organizationId?: number;
|
|
138
|
+
|
|
139
|
+
@ApiPropertyOptional()
|
|
140
|
+
@IsOptional()
|
|
141
|
+
@IsNumber()
|
|
142
|
+
authorId?: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class ListZendeskTickets {
|
|
146
|
+
@ApiProperty()
|
|
147
|
+
@IsEnum(ZendeskTicketChannelEnum)
|
|
148
|
+
channel: ZendeskTicketChannel;
|
|
149
|
+
|
|
150
|
+
@ApiPropertyOptional()
|
|
151
|
+
@IsOptional()
|
|
152
|
+
@IsEnum(ZendeskTicketStatusEnum)
|
|
153
|
+
status?: ZendeskTicketStatus;
|
|
154
|
+
|
|
155
|
+
@ApiPropertyOptional()
|
|
156
|
+
@IsOptional()
|
|
157
|
+
@IsInt()
|
|
158
|
+
@Min(1)
|
|
159
|
+
page?: number = 1;
|
|
160
|
+
|
|
161
|
+
@ApiPropertyOptional()
|
|
162
|
+
@IsOptional()
|
|
163
|
+
@IsInt()
|
|
164
|
+
@Min(1)
|
|
165
|
+
@Max(100)
|
|
166
|
+
limit?: number = 25;
|
|
167
|
+
|
|
168
|
+
@ApiPropertyOptional()
|
|
169
|
+
@IsOptional()
|
|
170
|
+
@IsString()
|
|
171
|
+
search?: string;
|
|
172
|
+
|
|
173
|
+
@ApiPropertyOptional()
|
|
174
|
+
@IsOptional()
|
|
175
|
+
@IsString()
|
|
176
|
+
startDate?: string;
|
|
177
|
+
|
|
178
|
+
@ApiPropertyOptional()
|
|
179
|
+
@IsOptional()
|
|
180
|
+
@IsString()
|
|
181
|
+
endDate?: string;
|
|
182
|
+
|
|
183
|
+
@ApiPropertyOptional()
|
|
184
|
+
@IsOptional()
|
|
185
|
+
@IsString()
|
|
186
|
+
sortBy?: string;
|
|
187
|
+
|
|
188
|
+
@ApiPropertyOptional()
|
|
189
|
+
@IsOptional()
|
|
190
|
+
@IsEnum(['asc', 'desc'])
|
|
191
|
+
sortOrder?: 'asc' | 'desc';
|
|
192
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ZendeskTicketChannel,
|
|
3
|
+
ZendeskTicketPriority,
|
|
4
|
+
ZendeskTicketStatus,
|
|
5
|
+
ZendeskTicketType,
|
|
6
|
+
} from '#types/Enum/Zendesk.js';
|
|
7
|
+
|
|
8
|
+
export interface TicketZendesk {
|
|
9
|
+
id: number;
|
|
10
|
+
url: string;
|
|
11
|
+
subject: string;
|
|
12
|
+
description: string;
|
|
13
|
+
comments: TicketComment[];
|
|
14
|
+
status: ZendeskTicketStatus;
|
|
15
|
+
priority: ZendeskTicketPriority | null;
|
|
16
|
+
type: ZendeskTicketType | null;
|
|
17
|
+
tags: string[];
|
|
18
|
+
via: { channel: ZendeskTicketChannel };
|
|
19
|
+
requesterId: number;
|
|
20
|
+
assigneeId: number | null;
|
|
21
|
+
groupId: number | null;
|
|
22
|
+
organizationId: number | null;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface SearchZendeskResponse {
|
|
28
|
+
results: TicketZendesk[];
|
|
29
|
+
count: number;
|
|
30
|
+
nextPage: string | null;
|
|
31
|
+
previousPage: string | null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface TicketZendeskResponse {
|
|
35
|
+
results: TicketZendesk[];
|
|
36
|
+
count: number;
|
|
37
|
+
nextPage: string | null;
|
|
38
|
+
previousPage: string | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface CustomFieldZendeskOption {
|
|
42
|
+
id: number;
|
|
43
|
+
name: string;
|
|
44
|
+
rawName: string;
|
|
45
|
+
value: string;
|
|
46
|
+
default: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface TicketFieldZendesk {
|
|
50
|
+
id: number;
|
|
51
|
+
url: string;
|
|
52
|
+
type: string;
|
|
53
|
+
title: string;
|
|
54
|
+
rawTitle: string;
|
|
55
|
+
description: string;
|
|
56
|
+
position: number;
|
|
57
|
+
active: boolean;
|
|
58
|
+
required: boolean;
|
|
59
|
+
requiredInPortal: boolean;
|
|
60
|
+
visibleInPortal: boolean;
|
|
61
|
+
editableInPortal: boolean;
|
|
62
|
+
tag: string | null;
|
|
63
|
+
customFieldOptions: CustomFieldZendeskOption[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface TicketFormZendesk {
|
|
67
|
+
id: number;
|
|
68
|
+
url: string;
|
|
69
|
+
name: string;
|
|
70
|
+
rawName: string;
|
|
71
|
+
displayName: string;
|
|
72
|
+
rawDisplayName: string;
|
|
73
|
+
endUserVisible: boolean;
|
|
74
|
+
position: number;
|
|
75
|
+
active: boolean;
|
|
76
|
+
default: boolean;
|
|
77
|
+
inAllBrands: boolean;
|
|
78
|
+
restrictedBrandIds: number[];
|
|
79
|
+
ticketFieldIds: number[];
|
|
80
|
+
createdAt: string;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface TicketFormEnriched extends Omit<TicketFormZendesk, 'ticketFieldIds'> {
|
|
85
|
+
fields: TicketFieldZendesk[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface TicketAttachment {
|
|
89
|
+
id: number;
|
|
90
|
+
fileName: string;
|
|
91
|
+
contentUrl: string;
|
|
92
|
+
contentType: string;
|
|
93
|
+
size: number;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TicketComment {
|
|
99
|
+
id: number;
|
|
100
|
+
type: string;
|
|
101
|
+
authorId: number;
|
|
102
|
+
author: any;
|
|
103
|
+
body: string;
|
|
104
|
+
htmlBody: string;
|
|
105
|
+
plainBody: string;
|
|
106
|
+
public: boolean;
|
|
107
|
+
attachments: TicketAttachment[];
|
|
108
|
+
createdAt: string;
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
}
|
|
@@ -5,6 +5,7 @@ import { IFile } from './IFile.js';
|
|
|
5
5
|
import { ISociety } from './ISociety.js';
|
|
6
6
|
import { IAccountingFileType } from './IAccountingFileType.js';
|
|
7
7
|
import { IEInvoicing } from './IEInvoicing.js';
|
|
8
|
+
import { IThirdParty } from './IThirdParty.js';
|
|
8
9
|
|
|
9
10
|
// accountingFile
|
|
10
11
|
export class IAccountingFile {
|
|
@@ -17,9 +18,11 @@ export class IAccountingFile {
|
|
|
17
18
|
totalTaxIncluded?: number | null;
|
|
18
19
|
totalTaxExcluded?: number | null;
|
|
19
20
|
isMobile: boolean;
|
|
21
|
+
internComment?: string | null;
|
|
20
22
|
idAccountingTransaction?: number | null;
|
|
21
23
|
idEstimateInvoice?: number | null;
|
|
22
24
|
idAccountingFileType: number;
|
|
25
|
+
idThirdParty?: number | null;
|
|
23
26
|
idSociety: number;
|
|
24
27
|
idFile: number;
|
|
25
28
|
idEInvoicing?: number | null;
|
|
@@ -36,5 +39,6 @@ export class IAccountingFile {
|
|
|
36
39
|
fileType?: IFileType;
|
|
37
40
|
file?: IFile;
|
|
38
41
|
society?: ISociety;
|
|
42
|
+
thirdParty?: IThirdParty | null;
|
|
39
43
|
eInvoicing?: IEInvoicing | null;
|
|
40
44
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { IFile } from './IFile.js';
|
|
2
2
|
import { EInvoicingDirection } from '../../Enum/EInvoicingDirection.js';
|
|
3
|
+
import { IEInvoicingStatus } from './IEInvoicingStatus.js';
|
|
4
|
+
import { IAccountingFile } from './IAccountingFile.js';
|
|
5
|
+
import { IAccountingTransaction } from './IAccountingTransaction.js';
|
|
3
6
|
|
|
4
7
|
export class IEInvoicing {
|
|
5
8
|
id?: number;
|
|
@@ -12,4 +15,7 @@ export class IEInvoicing {
|
|
|
12
15
|
updatedAt?: Date | null;
|
|
13
16
|
|
|
14
17
|
xmlFile?: IFile;
|
|
18
|
+
eInvoicingStatus?: IEInvoicingStatus[];
|
|
19
|
+
AccountingFile?: IAccountingFile;
|
|
20
|
+
AccountingTransaction?: IAccountingTransaction;
|
|
15
21
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IUser } from './IUser.js';
|
|
2
2
|
import { EInvoicingStatusCode } from '../../Enum/EInvoicingStatusCode.js';
|
|
3
3
|
import { IEInvoicing } from './IEInvoicing.js';
|
|
4
|
+
import { EInvoicingReasonType } from '../../../index.js';
|
|
4
5
|
|
|
5
6
|
export class IEInvoicingStatus {
|
|
6
7
|
id?: number;
|
|
7
8
|
status: EInvoicingStatusCode;
|
|
9
|
+
reasonType: EInvoicingReasonType | null;
|
|
8
10
|
message: string | null;
|
|
9
11
|
idUser: number;
|
|
10
12
|
idEInvoicing: number;
|
package/ts/types/index.ts
CHANGED
|
@@ -303,6 +303,7 @@ export * from './Form/FormConnector.js';
|
|
|
303
303
|
export * from './Enum/AccountingTransactionTracking.js';
|
|
304
304
|
export * from './Enum/EInvoicingDirection.js';
|
|
305
305
|
export * from './Enum/EInvoicingStatusCode.js';
|
|
306
|
+
export * from './Enum/EInvoicingReasonType.js';
|
|
306
307
|
export * from './Enum/Feature.js';
|
|
307
308
|
export * from './Enum/JuridicalSocietyEnum.js';
|
|
308
309
|
export * from './Enum/Template.js';
|
|
@@ -501,6 +502,7 @@ export * from './Enum/EquipmentAvailability.js';
|
|
|
501
502
|
export * from './Enum/SpecialDayType.js';
|
|
502
503
|
export * from './Enum/Degree.js';
|
|
503
504
|
export * from './Enum/Brevo.js';
|
|
505
|
+
export * from './Enum/Zendesk.js';
|
|
504
506
|
export * from './Enum/ZoneCode.js';
|
|
505
507
|
export * from './Enum/TimeSlot.js';
|
|
506
508
|
export * from './Enum/StateSynchro.js';
|
|
@@ -829,6 +831,8 @@ export * from './Interface/api/loan/ReadLoan.js';
|
|
|
829
831
|
export * from './Interface/api/stock/StocksType.js';
|
|
830
832
|
export * from './Interface/api/lettering/QueryRegroupLettering.js';
|
|
831
833
|
export * from './Interface/api/loan/UpdateLoan.js';
|
|
834
|
+
export * from './Interface/api/zendesk/QueryTicket.js';
|
|
835
|
+
export * from './Interface/api/zendesk/ReadTicket.js';
|
|
832
836
|
export * from './Interface/api/zticket/CreateZTicket.js';
|
|
833
837
|
export * from './Interface/api/zticket/QueryZTicket.js';
|
|
834
838
|
export * from './Interface/api/balanceSheetModule/CreateBalanceSheetModule.js';
|
|
@@ -128,12 +128,22 @@ const vatDocuments: VatDocument[] = [
|
|
|
128
128
|
idCerfaType: CerfaType.CERFA_3514,
|
|
129
129
|
name: '3514',
|
|
130
130
|
century: '23',
|
|
131
|
-
centuries: [2022, 2023, 2024, 2025
|
|
131
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
132
132
|
payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),
|
|
133
133
|
asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),
|
|
134
134
|
fields: cerfa3514Century22Fields,
|
|
135
135
|
fileName: '3514-2022',
|
|
136
136
|
},
|
|
137
|
+
{
|
|
138
|
+
idCerfaType: CerfaType.CERFA_3514,
|
|
139
|
+
name: '3514',
|
|
140
|
+
century: '26',
|
|
141
|
+
centuries: [2026, 2027],
|
|
142
|
+
payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),
|
|
143
|
+
asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),
|
|
144
|
+
fields: cerfa3514Century22Fields,
|
|
145
|
+
fileName: '3514-2022', // TODO:
|
|
146
|
+
},
|
|
137
147
|
{
|
|
138
148
|
idCerfaType: CerfaType.CERFA_3517,
|
|
139
149
|
name: '3517',
|