@silexpert/core 2.0.56 → 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/Annotation.d.ts +4 -0
- package/dist/types/Enum/Annotation.d.ts.map +1 -1
- package/dist/types/Enum/Annotation.js +2 -0
- package/dist/types/Enum/Annotation.js.map +1 -1
- package/dist/types/Enum/BalanceSheet.d.ts +1 -1
- package/dist/types/Enum/BalanceSheet.js +1 -1
- package/dist/types/Enum/BalanceSheet.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/CustomerSignature.d.ts +2 -1
- package/dist/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/types/Enum/CustomerSignature.js +1 -0
- package/dist/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/types/Enum/EInvoicingDirection.d.ts +5 -0
- package/dist/types/Enum/EInvoicingDirection.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingDirection.js +6 -0
- package/dist/types/Enum/EInvoicingDirection.js.map +1 -0
- 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 +16 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.js +20 -0
- package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -0
- 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/SalesContractBrandClementine.js +1 -1
- package/dist/types/Enum/SalesContractBrandClementine.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/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.d.ts +113 -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 +195 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js +2 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -0
- package/dist/types/Interface/api/docoon/Query.js +1 -1
- package/dist/types/Interface/api/docoon/Query.js.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts +4 -0
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.js +27 -0
- package/dist/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js +10 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +12 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.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 +10 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingFile.js +8 -0
- package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.d.ts +3 -0
- package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.js +2 -0
- package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicing.d.ts +18 -0
- package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicing.js +13 -0
- package/dist/types/Interface/models/IEInvoicing.js.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts +17 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js +13 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -0
- package/dist/types/Interface/models/IPayment.d.ts +3 -0
- package/dist/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/types/Interface/models/IPayment.js +2 -0
- package/dist/types/Interface/models/IPayment.js.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.d.ts +1 -0
- package/dist/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.js +1 -0
- package/dist/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/types/Interface/models/IThirdParty.d.ts +2 -0
- package/dist/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/dist/types/Interface/models/IThirdParty.js +2 -0
- package/dist/types/Interface/models/IThirdParty.js.map +1 -1
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +13 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/prestation.d.ts.map +1 -1
- package/dist/utils/prestation.js +7 -3
- package/dist/utils/prestation.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/Annotation.ts +3 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/CustomerSignature.ts +2 -1
- package/ts/types/Enum/EInvoicingDirection.ts +4 -0
- package/ts/types/Enum/EInvoicingReasonType.ts +156 -0
- package/ts/types/Enum/EInvoicingStatusCode.ts +18 -0
- package/ts/types/Enum/MimeType.ts +1 -0
- package/ts/types/Enum/SalesContractBrandClementine.ts +1 -1
- package/ts/types/Enum/Unit.ts +24 -1
- package/ts/types/Enum/Zendesk.ts +56 -0
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +1 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +110 -0
- package/ts/types/Interface/api/docoon/Create.ts +46 -0
- package/ts/types/Interface/api/docoon/DocoonInvoice.ts +201 -0
- package/ts/types/Interface/api/docoon/Query.ts +1 -1
- package/ts/types/Interface/api/society/QueryUnpaid.ts +19 -0
- package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +6 -0
- package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +8 -0
- 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 +10 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +3 -0
- package/ts/types/Interface/models/IEInvoicing.ts +21 -0
- package/ts/types/Interface/models/IEInvoicingStatus.ts +18 -0
- package/ts/types/Interface/models/IPayment.ts +3 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
- package/ts/types/Interface/models/IThirdParty.ts +2 -0
- package/ts/types/index.ts +13 -0
- package/ts/utils/prestation.ts +9 -3
- package/ts/utils/vat/centuries.ts +11 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Unit.js","sourceRoot":"","sources":["../../../ts/types/Enum/Unit.ts"],"names":[],"mappings":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ACtB,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,IAAI;KAChB;IACD;QACE,EAAE,EAAE,MAAM,CAAC,KAAK;QAChB,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD;QACE,EAAE,EAAE,MAAM,CAAC,YAAY;QACvB,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,KAAK;KACjB;IACD;QACE,EAAE,EAAE,MAAM,CAAC,KAAK;QAChB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,MAAM;KAClB;IACD;QACE,EAAE,EAAE,MAAM,CAAC,GAAG;QACd,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD;QACE,EAAE,EAAE,MAAM,CAAC,OAAO;QAClB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,IAAI;KAChB;IACD;QACE,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,KAAK;KACjB;IACD;QACE,EAAE,EAAE,MAAM,CAAC,IAAI;QACf,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;KACf;CACF,CAAC","sourcesContent":["export class IUnit {\n [key: string]: {\n id: number;\n name: string;\n shortName: string;\n codeEN16931: string;\n };\n}\n\nexport enum UnitId {\n ITEM = 1,\n HOUR = 2,\n DAY = 3,\n KILOGRAM = 4,\n LITER = 5,\n KILOMETER = 6,\n HALF_DAY = 7,\n YEAR = 8,\n WEEK = 9,\n MONTH = 10,\n QUARTER = 11,\n PIECE = 12,\n FIXED = 13,\n SQUARE_METER = 14,\n CUBIC_METER = 15,\n METER = 16,\n SUBSCRIPTION = 17,\n NIGHT = 18,\n TON = 19,\n HECTARE = 20,\n MINUTE = 21,\n GRAM = 22,\n}\n\nexport type IUnitList = Array<{ name: string; id: number; shortName: string; eInvoicingCode: string | null }>;\n\nexport const Unit: IUnit = {\n ITEM: {\n id: UnitId.ITEM,\n name: 'Article',\n shortName: 'art',\n codeEN16931: 'NAR',\n },\n HOUR: {\n id: UnitId.HOUR,\n name: 'Heure',\n shortName: 'h',\n codeEN16931: 'HUR',\n },\n DAY: {\n id: UnitId.DAY,\n name: 'Jour',\n shortName: 'j',\n codeEN16931: 'DAY',\n },\n KILOGRAM: {\n id: UnitId.KILOGRAM,\n name: 'Kilogramme',\n shortName: 'kg',\n codeEN16931: 'KGM',\n },\n LITER: {\n id: UnitId.LITER,\n name: 'Litre',\n shortName: 'l',\n codeEN16931: 'LTR',\n },\n KILOMETER: {\n id: UnitId.KILOMETER,\n name: 'Kilomètres',\n shortName: 'km',\n codeEN16931: 'KMT',\n },\n HALF_DAY: {\n id: UnitId.HALF_DAY,\n name: 'Demi journée',\n shortName: 'demi j',\n codeEN16931: 'LS', // (Half hour existe, mais pas de code standard pour \"demi-journée\")\n },\n YEAR: {\n id: UnitId.YEAR,\n name: 'Année',\n shortName: 'an',\n codeEN16931: 'ANN',\n },\n WEEK: {\n id: UnitId.WEEK,\n name: 'Semaine',\n shortName: 'sem',\n codeEN16931: 'WEE',\n },\n MONTH: {\n id: UnitId.MONTH,\n name: 'Mois',\n shortName: 'mois',\n codeEN16931: 'MON',\n },\n QUARTER: {\n id: UnitId.QUARTER,\n name: 'Trimestre',\n shortName: 'trim',\n codeEN16931: 'QAN',\n },\n PIECE: {\n id: UnitId.PIECE,\n name: 'Pièce',\n shortName: 'p',\n codeEN16931: 'H87',\n },\n FIXED: {\n id: UnitId.FIXED,\n name: 'Forfaitaire',\n shortName: 'f',\n codeEN16931: 'LS',\n },\n SQUARE_METER: {\n id: UnitId.SQUARE_METER,\n name: 'Mètre carré',\n shortName: 'm2',\n codeEN16931: 'MTK',\n },\n CUBIC_METER: {\n id: UnitId.CUBIC_METER,\n name: 'Mètre cube',\n shortName: 'm3',\n codeEN16931: 'MTQ',\n },\n METER: {\n id: UnitId.METER,\n name: 'Mètre',\n shortName: 'm',\n codeEN16931: 'MTR',\n },\n SUBSCRIPTION: {\n id: UnitId.SUBSCRIPTION,\n name: 'Abonnement',\n shortName: 'abo',\n codeEN16931: 'LS',\n },\n NIGHT: {\n id: UnitId.NIGHT,\n name: 'Nuitée',\n shortName: 'nuit',\n codeEN16931: 'NI',\n },\n TON: {\n id: UnitId.TON,\n name: 'Tonne',\n shortName: 't',\n codeEN16931: 'TNE',\n },\n HECTARE: {\n id: UnitId.HECTARE,\n name: 'Hectare',\n shortName: 'ha',\n codeEN16931: 'HAR',\n },\n MINUTE: {\n id: UnitId.MINUTE,\n name: 'Minute',\n shortName: 'min',\n codeEN16931: 'MIN',\n },\n GRAM: {\n id: UnitId.GRAM,\n name: 'Gramme',\n shortName: 'g',\n codeEN16931: 'GRM',\n },\n};\n\nexport const UnitList = [\n {\n id: UnitId.ITEM,\n name: 'Article',\n shortName: 'art',\n },\n {\n id: UnitId.HOUR,\n name: 'Heure',\n shortName: 'h',\n },\n {\n id: UnitId.DAY,\n name: 'Jour',\n shortName: 'j',\n },\n {\n id: UnitId.KILOGRAM,\n name: 'Kilogramme',\n shortName: 'kg',\n },\n {\n id: UnitId.LITER,\n name: 'Litre',\n shortName: 'l',\n },\n {\n id: UnitId.KILOMETER,\n name: 'Kilomètres',\n shortName: 'km',\n },\n {\n id: UnitId.HALF_DAY,\n name: 'Demi journée',\n shortName: 'demi j',\n },\n {\n id: UnitId.YEAR,\n name: 'Année',\n shortName: 'an',\n },\n {\n id: UnitId.WEEK,\n name: 'Semaine',\n shortName: 'sem',\n },\n {\n id: UnitId.MONTH,\n name: 'Mois',\n shortName: 'mois',\n },\n {\n id: UnitId.QUARTER,\n name: 'Trimestre',\n shortName: 'trim',\n },\n {\n id: UnitId.PIECE,\n name: 'Pièce',\n shortName: 'p',\n },\n {\n id: UnitId.FIXED,\n name: 'Forfaitaire',\n shortName: 'f',\n },\n {\n id: UnitId.SQUARE_METER,\n name: 'Mètre carré',\n shortName: 'm2',\n },\n {\n id: UnitId.CUBIC_METER,\n name: 'Mètre cube',\n shortName: 'm3',\n },\n {\n id: UnitId.METER,\n name: 'Mètre',\n shortName: 'm',\n },\n {\n id: UnitId.SUBSCRIPTION,\n name: 'Abonnement',\n shortName: 'abo',\n },\n {\n id: UnitId.NIGHT,\n name: 'Nuitée',\n shortName: 'nuit',\n },\n {\n id: UnitId.TON,\n name: 'Tonne',\n shortName: 't',\n },\n {\n id: UnitId.HECTARE,\n name: 'Hectare',\n shortName: 'ha',\n },\n {\n id: UnitId.MINUTE,\n name: 'Minute',\n shortname: 'min',\n },\n {\n id: UnitId.GRAM,\n name: 'Gramme',\n shortName: 'g',\n },\n];\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type ZendeskTicketStatus = 'new' | 'open' | 'pending' | 'hold' | 'solved' | 'closed';
|
|
2
|
+
export type ZendeskTicketPriority = 'urgent' | 'high' | 'normal' | 'low';
|
|
3
|
+
export type ZendeskTicketType = 'problem' | 'incident' | 'question' | 'task';
|
|
4
|
+
export type ZendeskTicketChannel = 'api' | 'chat' | 'email' | 'facebook' | 'mobile' | 'native_messaging' | 'sample_ticket' | 'sms' | 'twitter' | 'voice' | 'web' | 'web_service' | 'whatsapp';
|
|
5
|
+
export declare enum ZendeskTicketStatusEnum {
|
|
6
|
+
NEW = "new",
|
|
7
|
+
OPEN = "open",
|
|
8
|
+
PENDING = "pending",
|
|
9
|
+
HOLD = "hold",
|
|
10
|
+
SOLVED = "solved",
|
|
11
|
+
CLOSED = "closed"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ZendeskTicketPriorityEnum {
|
|
14
|
+
URGENT = "urgent",
|
|
15
|
+
HIGH = "high",
|
|
16
|
+
NORMAL = "normal",
|
|
17
|
+
LOW = "low"
|
|
18
|
+
}
|
|
19
|
+
export declare enum ZendeskTicketTypeEnum {
|
|
20
|
+
PROBLEM = "problem",
|
|
21
|
+
INCIDENT = "incident",
|
|
22
|
+
QUESTION = "question",
|
|
23
|
+
TASK = "task"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ZendeskTicketChannelEnum {
|
|
26
|
+
API = "api",
|
|
27
|
+
CHAT = "chat",
|
|
28
|
+
EMAIL = "email",
|
|
29
|
+
FACEBOOK = "facebook",
|
|
30
|
+
MOBILE = "mobile",
|
|
31
|
+
NATIVE_MESSAGING = "native_messaging",
|
|
32
|
+
SAMPLE_TICKET = "sample_ticket",
|
|
33
|
+
SMS = "sms",
|
|
34
|
+
TWITTER = "twitter",
|
|
35
|
+
VOICE = "voice",
|
|
36
|
+
WEB = "web",
|
|
37
|
+
WEB_SERVICE = "web_service",
|
|
38
|
+
WHATSAPP = "whatsapp"
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Zendesk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Zendesk.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Zendesk.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC5F,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAC5B,KAAK,GACL,MAAM,GACN,OAAO,GACP,UAAU,GACV,QAAQ,GACR,kBAAkB,GAClB,eAAe,GACf,KAAK,GACL,SAAS,GACT,OAAO,GACP,KAAK,GACL,aAAa,GACb,UAAU,CAAC;AAEf,oBAAY,uBAAuB;IACjC,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,yBAAyB;IACnC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,wBAAwB;IAClC,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;IAC/B,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export var ZendeskTicketStatusEnum;
|
|
2
|
+
(function (ZendeskTicketStatusEnum) {
|
|
3
|
+
ZendeskTicketStatusEnum["NEW"] = "new";
|
|
4
|
+
ZendeskTicketStatusEnum["OPEN"] = "open";
|
|
5
|
+
ZendeskTicketStatusEnum["PENDING"] = "pending";
|
|
6
|
+
ZendeskTicketStatusEnum["HOLD"] = "hold";
|
|
7
|
+
ZendeskTicketStatusEnum["SOLVED"] = "solved";
|
|
8
|
+
ZendeskTicketStatusEnum["CLOSED"] = "closed";
|
|
9
|
+
})(ZendeskTicketStatusEnum || (ZendeskTicketStatusEnum = {}));
|
|
10
|
+
export var ZendeskTicketPriorityEnum;
|
|
11
|
+
(function (ZendeskTicketPriorityEnum) {
|
|
12
|
+
ZendeskTicketPriorityEnum["URGENT"] = "urgent";
|
|
13
|
+
ZendeskTicketPriorityEnum["HIGH"] = "high";
|
|
14
|
+
ZendeskTicketPriorityEnum["NORMAL"] = "normal";
|
|
15
|
+
ZendeskTicketPriorityEnum["LOW"] = "low";
|
|
16
|
+
})(ZendeskTicketPriorityEnum || (ZendeskTicketPriorityEnum = {}));
|
|
17
|
+
export var ZendeskTicketTypeEnum;
|
|
18
|
+
(function (ZendeskTicketTypeEnum) {
|
|
19
|
+
ZendeskTicketTypeEnum["PROBLEM"] = "problem";
|
|
20
|
+
ZendeskTicketTypeEnum["INCIDENT"] = "incident";
|
|
21
|
+
ZendeskTicketTypeEnum["QUESTION"] = "question";
|
|
22
|
+
ZendeskTicketTypeEnum["TASK"] = "task";
|
|
23
|
+
})(ZendeskTicketTypeEnum || (ZendeskTicketTypeEnum = {}));
|
|
24
|
+
export var ZendeskTicketChannelEnum;
|
|
25
|
+
(function (ZendeskTicketChannelEnum) {
|
|
26
|
+
ZendeskTicketChannelEnum["API"] = "api";
|
|
27
|
+
ZendeskTicketChannelEnum["CHAT"] = "chat";
|
|
28
|
+
ZendeskTicketChannelEnum["EMAIL"] = "email";
|
|
29
|
+
ZendeskTicketChannelEnum["FACEBOOK"] = "facebook";
|
|
30
|
+
ZendeskTicketChannelEnum["MOBILE"] = "mobile";
|
|
31
|
+
ZendeskTicketChannelEnum["NATIVE_MESSAGING"] = "native_messaging";
|
|
32
|
+
ZendeskTicketChannelEnum["SAMPLE_TICKET"] = "sample_ticket";
|
|
33
|
+
ZendeskTicketChannelEnum["SMS"] = "sms";
|
|
34
|
+
ZendeskTicketChannelEnum["TWITTER"] = "twitter";
|
|
35
|
+
ZendeskTicketChannelEnum["VOICE"] = "voice";
|
|
36
|
+
ZendeskTicketChannelEnum["WEB"] = "web";
|
|
37
|
+
ZendeskTicketChannelEnum["WEB_SERVICE"] = "web_service";
|
|
38
|
+
ZendeskTicketChannelEnum["WHATSAPP"] = "whatsapp";
|
|
39
|
+
})(ZendeskTicketChannelEnum || (ZendeskTicketChannelEnum = {}));
|
|
40
|
+
//# sourceMappingURL=Zendesk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Zendesk.js","sourceRoot":"","sources":["../../../ts/types/Enum/Zendesk.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,sCAAW,CAAA;IACX,wCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,wCAAa,CAAA;IACb,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;AACnB,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED,MAAM,CAAN,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,8CAAiB,CAAA;IACjB,0CAAa,CAAA;IACb,8CAAiB,CAAA;IACjB,wCAAW,CAAA;AACb,CAAC,EALW,yBAAyB,KAAzB,yBAAyB,QAKpC;AAED,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,sCAAa,CAAA;AACf,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAED,MAAM,CAAN,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC,uCAAW,CAAA;IACX,yCAAa,CAAA;IACb,2CAAe,CAAA;IACf,iDAAqB,CAAA;IACrB,6CAAiB,CAAA;IACjB,iEAAqC,CAAA;IACrC,2DAA+B,CAAA;IAC/B,uCAAW,CAAA;IACX,+CAAmB,CAAA;IACnB,2CAAe,CAAA;IACf,uCAAW,CAAA;IACX,uDAA2B,CAAA;IAC3B,iDAAqB,CAAA;AACvB,CAAC,EAdW,wBAAwB,KAAxB,wBAAwB,QAcnC","sourcesContent":["export type ZendeskTicketStatus = 'new' | 'open' | 'pending' | 'hold' | 'solved' | 'closed';\nexport type ZendeskTicketPriority = 'urgent' | 'high' | 'normal' | 'low';\nexport type ZendeskTicketType = 'problem' | 'incident' | 'question' | 'task';\nexport type ZendeskTicketChannel =\n | 'api'\n | 'chat'\n | 'email'\n | 'facebook'\n | 'mobile'\n | 'native_messaging'\n | 'sample_ticket'\n | 'sms'\n | 'twitter'\n | 'voice'\n | 'web'\n | 'web_service'\n | 'whatsapp';\n\nexport enum ZendeskTicketStatusEnum {\n NEW = 'new',\n OPEN = 'open',\n PENDING = 'pending',\n HOLD = 'hold',\n SOLVED = 'solved',\n CLOSED = 'closed',\n}\n\nexport enum ZendeskTicketPriorityEnum {\n URGENT = 'urgent',\n HIGH = 'high',\n NORMAL = 'normal',\n LOW = 'low',\n}\n\nexport enum ZendeskTicketTypeEnum {\n PROBLEM = 'problem',\n INCIDENT = 'incident',\n QUESTION = 'question',\n TASK = 'task',\n}\n\nexport enum ZendeskTicketChannelEnum {\n API = 'api',\n CHAT = 'chat',\n EMAIL = 'email',\n FACEBOOK = 'facebook',\n MOBILE = 'mobile',\n NATIVE_MESSAGING = 'native_messaging',\n SAMPLE_TICKET = 'sample_ticket',\n SMS = 'sms',\n TWITTER = 'twitter',\n VOICE = 'voice',\n WEB = 'web',\n WEB_SERVICE = 'web_service',\n WHATSAPP = 'whatsapp',\n}\n"]}
|
|
@@ -60,5 +60,6 @@ export interface ReadFormattedAccountingTransaction extends IAccountingTransacti
|
|
|
60
60
|
autoAnnotateWithML: boolean;
|
|
61
61
|
entries?: AnnotateAccountingTransaction;
|
|
62
62
|
thirdPartySuggestions?: IThirdParty[];
|
|
63
|
+
isVerified?: boolean;
|
|
63
64
|
}
|
|
64
65
|
//# sourceMappingURL=AnnotateAccountingTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EACA,MAAM,GACN,IAAI,GACJ;QACE,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,C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AAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,kCAAmC,SAAQ,sBAAsB;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EACA,MAAM,GACN,IAAI,GACJ;QACE,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,MAAM,MAAM,6BAA6B,GAAG,SAAS,EAAE,CAAC;AAExD,qBAAa,2BAA2B;IAGtC,OAAO,CAAC,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CAAC,EAAE,6BAA6B,CAAC;IACxC,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAI9E,MAAM,OAAO,SAAS;IACpB,GAAG,CAMK;IACR,aAAa,CAAW;IACxB,gBAAgB,CAAW;IAC3B,SAAS,CAAU;IACnB,YAAY,CAAU;IACtB,4BAA4B,CAAU;IACtC,WAAW,CAAU;IACrB,oBAAoB,CAAU;IAC9B,cAAc,CAAsB,CAAC,8BAA8B;IACnE,gBAAgB,CAAU,CAAC,EAAE;CAC9B;AAKD,MAAM,OAAO,2BAA2B;IAGtC,AADA,yBAAyB;IACzB,OAAO,CAAe;IAEtB,OAAO,CAAU;IAEjB,gBAAgB,CAAU;IAE1B,QAAQ,CAAe;IAKvB,OAAO,CAAW;IAElB,SAAS,CAAQ;IAEjB,aAAa,CAAU;IAEvB,IAAI,CAAU;IAEd,oBAAoB,CAAU;IAK9B,YAAY,CAAU;CACvB;AAzBC;IAFC,mBAAmB,EAAE;IACtB,yBAAyB;;;4DACH;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;qEACI;AAE1B;IADC,mBAAmB,EAAE;;6DACC;AAKvB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACK;AAElB;IADC,mBAAmB,EAAE;8BACV,IAAI;8DAAC;AAEjB;IADC,mBAAmB,EAAE;;kEACC;AAEvB;IADC,mBAAmB,EAAE;;yDACR;AAEd;IADC,mBAAmB,EAAE;;yEACQ;AAK9B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;iEACW;AAGxB,MAAM,OAAO,8BAA8B;IAIzC,GAAG,CAAW;IAGd,IAAI,CAA8B;CACnC;AAJC;IAHC,WAAW,EAAE;IACb,OAAO,EAAE;IACT,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACR;AAGd;IADC,WAAW,EAAE;8BACR,2BAA2B;4DAAC","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../../index.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat?:\n | number\n | null\n | {\n idVat: number;\n amount: number;\n }[];\n isVatIntracom?: boolean;\n isVatImportation?: boolean;\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n idSocietyPartner?: number;\n @ApiPropertyOptional()\n exported?: Date | null;\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isAsset?: boolean;\n @ApiPropertyOptional()\n dateValue?: Date;\n @ApiPropertyOptional()\n invoiceNumber?: string;\n @ApiPropertyOptional()\n name?: string;\n @ApiPropertyOptional()\n amountAllTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idAccountant?: number;\n}\n\nexport class UpdateAllAccountingTransaction {\n @ApiProperty()\n @IsArray()\n @IsInt({ each: true })\n ids: number[];\n\n @ApiProperty()\n data: UpdateAccountingTransaction;\n}\n\nexport interface UpdatedAccountingTransactions {\n processed: number;\n errors: Array<{ id: number; message: string; code: string }>;\n updatedTransactions: ReadFormattedAccountingTransaction[];\n}\n\nexport interface UploadedAccountingFileInfos {\n location: string;\n idFile: number;\n token: string;\n filename: string;\n needCompression: boolean;\n mimeType: string;\n bankFileId?: string;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n thirdPartySuggestions?: IThirdParty[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAI9E,MAAM,OAAO,SAAS;IACpB,GAAG,CAMK;IACR,aAAa,CAAW;IACxB,gBAAgB,CAAW;IAC3B,SAAS,CAAU;IACnB,YAAY,CAAU;IACtB,4BAA4B,CAAU;IACtC,WAAW,CAAU;IACrB,oBAAoB,CAAU;IAC9B,cAAc,CAAsB,CAAC,8BAA8B;IACnE,gBAAgB,CAAU,CAAC,EAAE;CAC9B;AAKD,MAAM,OAAO,2BAA2B;IAGtC,AADA,yBAAyB;IACzB,OAAO,CAAe;IAEtB,OAAO,CAAU;IAEjB,gBAAgB,CAAU;IAE1B,QAAQ,CAAe;IAKvB,OAAO,CAAW;IAElB,SAAS,CAAQ;IAEjB,aAAa,CAAU;IAEvB,IAAI,CAAU;IAEd,oBAAoB,CAAU;IAK9B,YAAY,CAAU;CACvB;AAzBC;IAFC,mBAAmB,EAAE;IACtB,yBAAyB;;;4DACH;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;qEACI;AAE1B;IADC,mBAAmB,EAAE;;6DACC;AAKvB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACK;AAElB;IADC,mBAAmB,EAAE;8BACV,IAAI;8DAAC;AAEjB;IADC,mBAAmB,EAAE;;kEACC;AAEvB;IADC,mBAAmB,EAAE;;yDACR;AAEd;IADC,mBAAmB,EAAE;;yEACQ;AAK9B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;iEACW;AAGxB,MAAM,OAAO,8BAA8B;IAIzC,GAAG,CAAW;IAGd,IAAI,CAA8B;CACnC;AAJC;IAHC,WAAW,EAAE;IACb,OAAO,EAAE;IACT,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACR;AAGd;IADC,WAAW,EAAE;8BACR,2BAA2B;4DAAC","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../../index.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat?:\n | number\n | null\n | {\n idVat: number;\n amount: number;\n }[];\n isVatIntracom?: boolean;\n isVatImportation?: boolean;\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n idSocietyPartner?: number;\n @ApiPropertyOptional()\n exported?: Date | null;\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isAsset?: boolean;\n @ApiPropertyOptional()\n dateValue?: Date;\n @ApiPropertyOptional()\n invoiceNumber?: string;\n @ApiPropertyOptional()\n name?: string;\n @ApiPropertyOptional()\n amountAllTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idAccountant?: number;\n}\n\nexport class UpdateAllAccountingTransaction {\n @ApiProperty()\n @IsArray()\n @IsInt({ each: true })\n ids: number[];\n\n @ApiProperty()\n data: UpdateAccountingTransaction;\n}\n\nexport interface UpdatedAccountingTransactions {\n processed: number;\n errors: Array<{ id: number; message: string; code: string }>;\n updatedTransactions: ReadFormattedAccountingTransaction[];\n}\n\nexport interface UploadedAccountingFileInfos {\n location: string;\n idFile: number;\n token: string;\n filename: string;\n needCompression: boolean;\n mimeType: string;\n bankFileId?: string;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n thirdPartySuggestions?: IThirdParty[];\n isVerified?: boolean;\n}\n"]}
|
|
@@ -8,6 +8,8 @@ import { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/Commercial
|
|
|
8
8
|
import { IThirdParty } from '../../models/IThirdParty.js';
|
|
9
9
|
import { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';
|
|
10
10
|
import { ISaleEmail } from '../../models/ISaleEmail.js';
|
|
11
|
+
import { CountryId } from '#types/Enum/Country.js';
|
|
12
|
+
import { IAccountingTransaction } from '#types/Interface/models/IAccountingTransaction.js';
|
|
11
13
|
export type ReadCashBasedInvoice = Partial<IAccountingFile>;
|
|
12
14
|
export type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;
|
|
13
15
|
export type ReadEstimateInvoice = IEstimateInvoice & {
|
|
@@ -27,6 +29,20 @@ export type ReadThirdPartyEditing = IThirdParty & {
|
|
|
27
29
|
deliveryCountry: string | null;
|
|
28
30
|
country: string | null;
|
|
29
31
|
};
|
|
32
|
+
export type FacturXInvoiceData = {
|
|
33
|
+
label: string;
|
|
34
|
+
invoiceNumber: string;
|
|
35
|
+
dateValue: string;
|
|
36
|
+
totalTaxIncluded: number;
|
|
37
|
+
totalTaxExcluded: number;
|
|
38
|
+
isAsset: boolean;
|
|
39
|
+
thirdParty: IThirdParty;
|
|
40
|
+
amounts: Array<{
|
|
41
|
+
idVat: number;
|
|
42
|
+
amountBase: number;
|
|
43
|
+
amountVat: number;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
30
46
|
export type ReadVatEditing = {
|
|
31
47
|
id: number;
|
|
32
48
|
name: string;
|
|
@@ -117,5 +133,102 @@ export type ReadStatisticRecurrentRevenue = {
|
|
|
117
133
|
totalTaxIncluded: number;
|
|
118
134
|
} | null;
|
|
119
135
|
};
|
|
136
|
+
export type ReadEInvoicingReception = {
|
|
137
|
+
label: string;
|
|
138
|
+
reference: string;
|
|
139
|
+
emissionDate: string;
|
|
140
|
+
dueDate: string | undefined;
|
|
141
|
+
idCurrency: number;
|
|
142
|
+
type: EstimateInvoiceType;
|
|
143
|
+
purchaseOrderReference: string | undefined;
|
|
144
|
+
/** float, not in cent */
|
|
145
|
+
totalTaxExcluded: number;
|
|
146
|
+
/** float, not in cent */
|
|
147
|
+
totalTaxIncluded: number;
|
|
148
|
+
/** float, not in cent */
|
|
149
|
+
depositPaid: number;
|
|
150
|
+
/** float, not in cent */
|
|
151
|
+
amountToPay: number;
|
|
152
|
+
customer: {
|
|
153
|
+
reference: string | undefined;
|
|
154
|
+
name: string | undefined;
|
|
155
|
+
siren: string | undefined;
|
|
156
|
+
vatNumber: string | undefined;
|
|
157
|
+
idCountry: CountryId | undefined;
|
|
158
|
+
};
|
|
159
|
+
provider: {
|
|
160
|
+
name: string | undefined;
|
|
161
|
+
siren: string | undefined;
|
|
162
|
+
vatNumber: string | undefined;
|
|
163
|
+
email: string | undefined;
|
|
164
|
+
idCountry: CountryId | undefined;
|
|
165
|
+
};
|
|
166
|
+
products: Array<{
|
|
167
|
+
externalId: string;
|
|
168
|
+
name: string;
|
|
169
|
+
comment: string | null;
|
|
170
|
+
quantity: number;
|
|
171
|
+
taxExcluded: number;
|
|
172
|
+
totalTaxExcluded: number;
|
|
173
|
+
taxRate: number | undefined;
|
|
174
|
+
idVat: number | undefined;
|
|
175
|
+
externalData: {
|
|
176
|
+
id: string;
|
|
177
|
+
unit: string | undefined;
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
referencedInvoices: Array<{
|
|
181
|
+
number: string;
|
|
182
|
+
date: string;
|
|
183
|
+
}>;
|
|
184
|
+
vat: {
|
|
185
|
+
totalTaxExcluded: number | undefined;
|
|
186
|
+
list: Array<{
|
|
187
|
+
idVat: number | undefined;
|
|
188
|
+
amountBase: number;
|
|
189
|
+
taxAmount: number;
|
|
190
|
+
}>;
|
|
191
|
+
};
|
|
192
|
+
discount: {
|
|
193
|
+
document: Array<{
|
|
194
|
+
isCharge: boolean;
|
|
195
|
+
amount: number;
|
|
196
|
+
taxRate: number | undefined;
|
|
197
|
+
idVat: number | undefined;
|
|
198
|
+
externalData: {
|
|
199
|
+
reasonCode: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
}>;
|
|
202
|
+
lines: Array<{
|
|
203
|
+
isCharge: boolean;
|
|
204
|
+
amount: number;
|
|
205
|
+
}>;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
export type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;
|
|
209
|
+
export type ReadEinvoiceInfo = {
|
|
210
|
+
item: IAccountingFile | IAccountingTransaction;
|
|
211
|
+
products: ProductInvoiceFromEInvoice[];
|
|
212
|
+
};
|
|
213
|
+
export type ReadEInvoice = {
|
|
214
|
+
externalId: string;
|
|
215
|
+
direction: 'In' | 'Out';
|
|
216
|
+
type: string;
|
|
217
|
+
flow: 'CustomerInvoice' | 'SupplierInvoice';
|
|
218
|
+
syntax: 'UBL' | 'CII' | 'Factur-X';
|
|
219
|
+
category: 'FLUX1' | 'FLUX2' | 'FLUX3' | 'FLUX4' | 'FLUX5' | 'FLUX6';
|
|
220
|
+
name: string;
|
|
221
|
+
status: string;
|
|
222
|
+
statusDetails: Array<{
|
|
223
|
+
code: string;
|
|
224
|
+
description: string;
|
|
225
|
+
fullDescription: string;
|
|
226
|
+
}>;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
submittedAt: string;
|
|
229
|
+
documentStatus: string;
|
|
230
|
+
externalStructureId: string;
|
|
231
|
+
documentId: string;
|
|
232
|
+
};
|
|
120
233
|
export {};
|
|
121
234
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,O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AI,GAAG,mBAAmB,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;AAEvH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,eAAe,GAAG,sBAAsB,CAAC;IAC/C,QAAQ,EAAE,0BAA0B,EAAE,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,KAAK,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;IACnC,QAAQ,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice.js';\nimport { IAccountingFile } from '../../models/IAccountingFile.js';\nimport { IProductInvoice } from '../../models/IProductInvoice.js';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction.js';\nimport { CommercialDocumentInputs } from './Create.js';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice.js';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';\nimport { ISaleEmail } from '../../models/ISaleEmail.js';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice.js';\nimport { IAccountingFile } from '../../models/IAccountingFile.js';\nimport { IProductInvoice } from '../../models/IProductInvoice.js';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction.js';\nimport { CommercialDocumentInputs } from './Create.js';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice.js';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';\nimport { ISaleEmail } from '../../models/ISaleEmail.js';\nimport { CountryId } from '#types/Enum/Country.js';\nimport { IAccountingTransaction } from '#types/Interface/models/IAccountingTransaction.js';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type FacturXInvoiceData = {\n label: string;\n invoiceNumber: string;\n dateValue: string;\n totalTaxIncluded: number;\n totalTaxExcluded: number;\n isAsset: boolean;\n thirdParty: IThirdParty;\n amounts: Array<{ idVat: number; amountBase: number; amountVat: number }>;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n\nexport type ReadEInvoicingReception = {\n label: string;\n reference: string;\n emissionDate: string;\n dueDate: string | undefined;\n idCurrency: number;\n type: EstimateInvoiceType;\n purchaseOrderReference: string | undefined;\n /** float, not in cent */\n totalTaxExcluded: number;\n /** float, not in cent */\n totalTaxIncluded: number;\n /** float, not in cent */\n depositPaid: number;\n /** float, not in cent */\n amountToPay: number;\n customer: {\n reference: string | undefined;\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n idCountry: CountryId | undefined;\n };\n provider: {\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n email: string | undefined;\n idCountry: CountryId | undefined;\n };\n products: Array<{\n externalId: string;\n name: string;\n comment: string | null;\n quantity: number;\n taxExcluded: number;\n totalTaxExcluded: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n id: string;\n unit: string | undefined;\n };\n }>;\n referencedInvoices: Array<{\n number: string;\n date: string;\n }>;\n vat: {\n totalTaxExcluded: number | undefined;\n list: Array<{\n idVat: number | undefined;\n amountBase: number;\n taxAmount: number;\n }>;\n };\n discount: {\n document: Array<{\n isCharge: boolean;\n amount: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n reasonCode: string | undefined;\n };\n }>;\n lines: Array<{\n isCharge: boolean;\n amount: number;\n }>;\n };\n};\n\nexport type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;\n\nexport type ReadEinvoiceInfo = {\n item: IAccountingFile | IAccountingTransaction;\n products: ProductInvoiceFromEInvoice[];\n};\n\nexport type ReadEInvoice = {\n externalId: string;\n direction: 'In' | 'Out';\n type: string;\n flow: 'CustomerInvoice' | 'SupplierInvoice';\n syntax: 'UBL' | 'CII' | 'Factur-X';\n category: 'FLUX1' | 'FLUX2' | 'FLUX3' | 'FLUX4' | 'FLUX5' | 'FLUX6';\n name: string;\n status: string;\n statusDetails: Array<{ code: string; description: string; fullDescription: string }>;\n updatedAt: string;\n submittedAt: string;\n documentStatus: string;\n externalStructureId: string;\n documentId: string;\n};\n"]}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DocoonFlowType } from './DocoonInvoice.js';
|
|
2
|
+
import { EInvoicingStatusCode } from '#types/Enum/EInvoicingStatusCode.js';
|
|
3
|
+
import { EInvoicingReasonType } from '#types/Enum/EInvoicingReasonType.js';
|
|
1
4
|
export type CreateLegalEntity = {
|
|
2
5
|
name: string;
|
|
3
6
|
legalId: string;
|
|
@@ -38,4 +41,18 @@ export type RelaunchDirectoryLine = {
|
|
|
38
41
|
addressingIdentifier: string;
|
|
39
42
|
};
|
|
40
43
|
};
|
|
44
|
+
export declare class ImportDocoonInvoice {
|
|
45
|
+
updatedAfter?: string;
|
|
46
|
+
flowType?: DocoonFlowType[];
|
|
47
|
+
}
|
|
48
|
+
export declare class RejectEInvoice {
|
|
49
|
+
status: EInvoicingStatusCode;
|
|
50
|
+
reasonType: EInvoicingReasonType;
|
|
51
|
+
reason: string;
|
|
52
|
+
}
|
|
53
|
+
export declare class AcceptEInvoice {
|
|
54
|
+
status: EInvoicingStatusCode;
|
|
55
|
+
internalNumber?: string;
|
|
56
|
+
internalComment?: string;
|
|
57
|
+
}
|
|
41
58
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/docoon/Create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/docoon/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,gBAAgB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC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
-
|
|
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 { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';
|
|
11
|
+
import { IsString, IsOptional, IsArray, IsEnum, IsDateString } from 'class-validator';
|
|
12
|
+
import { EInvoicingStatusCode } from '#types/Enum/EInvoicingStatusCode.js';
|
|
13
|
+
import { EInvoicingReasonType } from '#types/Enum/EInvoicingReasonType.js';
|
|
14
|
+
export class ImportDocoonInvoice {
|
|
15
|
+
updatedAfter;
|
|
16
|
+
flowType;
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
ApiPropertyOptional(),
|
|
20
|
+
IsDateString(),
|
|
21
|
+
IsOptional(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ImportDocoonInvoice.prototype, "updatedAfter", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
ApiPropertyOptional(),
|
|
26
|
+
IsArray(),
|
|
27
|
+
IsString({ each: true }),
|
|
28
|
+
IsOptional(),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ImportDocoonInvoice.prototype, "flowType", void 0);
|
|
31
|
+
export class RejectEInvoice {
|
|
32
|
+
status;
|
|
33
|
+
reasonType;
|
|
34
|
+
reason;
|
|
35
|
+
}
|
|
36
|
+
__decorate([
|
|
37
|
+
ApiProperty(),
|
|
38
|
+
IsEnum(EInvoicingStatusCode),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RejectEInvoice.prototype, "status", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ApiProperty(),
|
|
43
|
+
IsEnum(EInvoicingReasonType),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], RejectEInvoice.prototype, "reasonType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ApiProperty(),
|
|
48
|
+
IsString(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], RejectEInvoice.prototype, "reason", void 0);
|
|
51
|
+
export class AcceptEInvoice {
|
|
52
|
+
status;
|
|
53
|
+
internalNumber;
|
|
54
|
+
internalComment;
|
|
55
|
+
}
|
|
56
|
+
__decorate([
|
|
57
|
+
ApiProperty(),
|
|
58
|
+
IsEnum(EInvoicingStatusCode),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], AcceptEInvoice.prototype, "status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
ApiPropertyOptional(),
|
|
63
|
+
IsString(),
|
|
64
|
+
IsOptional(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], AcceptEInvoice.prototype, "internalNumber", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
ApiPropertyOptional(),
|
|
69
|
+
IsString(),
|
|
70
|
+
IsOptional(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], AcceptEInvoice.prototype, "internalComment", void 0);
|
|
2
73
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/docoon/Create.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/docoon/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AA4C3E,MAAM,OAAO,mBAAmB;IAI9B,YAAY,CAAU;IAMtB,QAAQ,CAAoB;CAC7B;AAPC;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;yDACS;AAMtB;IAJC,mBAAmB,EAAE;IACrB,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;qDACe;AAE9B,MAAM,OAAO,cAAc;IAGzB,MAAM,CAAuB;IAI7B,UAAU,CAAuB;IAIjC,MAAM,CAAS;CAChB;AATC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,oBAAoB,CAAC;;8CACA;AAI7B;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,oBAAoB,CAAC;;kDACI;AAIjC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;8CACI;AAEjB,MAAM,OAAO,cAAc;IAGzB,MAAM,CAAuB;IAK7B,cAAc,CAAU;IAKxB,eAAe,CAAU;CAC1B;AAXC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,oBAAoB,CAAC;;8CACA;AAK7B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACW;AAKxB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACY","sourcesContent":["import { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';\nimport { IsString, IsOptional, IsArray, IsEnum, IsDateString } from 'class-validator';\nimport { DocoonFlowType } from './DocoonInvoice.js';\nimport { EInvoicingStatusCode } from '#types/Enum/EInvoicingStatusCode.js';\nimport { EInvoicingReasonType } from '#types/Enum/EInvoicingReasonType.js';\n\nexport type CreateLegalEntity = {\n name: string;\n legalId: string;\n isEnabled: boolean;\n legalIdSchemeId?: string;\n code?: string;\n isTaxable?: boolean;\n taxCountryCode?: string;\n personType?: 'PRIVATE_PERSON' | 'MORAL_PERSON_PRIVATE' | 'MORAL_PERSON_PUBLIC';\n taxId?: string;\n legalForm?: string;\n capital?: number;\n structures?: CreateLegalEntiyStructure[];\n};\n\nexport type CreateLegalEntiyStructure = {\n legalIdSchemeId?: string;\n isEnabled?: boolean;\n address?: {\n name?: string;\n street?: string;\n city?: string;\n zipCode?: string;\n postBox?: string;\n additionalInfo?: string;\n country?: string;\n };\n mainActivity?: {\n name?: string;\n code?: string;\n };\n};\n\nexport type RelaunchDirectoryLine = {\n directoryLineId: string;\n directoryLineInfo: {\n name: string;\n dateFrom: string;\n dateTo?: string | null;\n addressingIdentifier: string;\n };\n};\nexport class ImportDocoonInvoice {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n updatedAfter?: string;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsString({ each: true })\n @IsOptional()\n flowType?: DocoonFlowType[];\n}\nexport class RejectEInvoice {\n @ApiProperty()\n @IsEnum(EInvoicingStatusCode)\n status: EInvoicingStatusCode;\n\n @ApiProperty()\n @IsEnum(EInvoicingReasonType)\n reasonType: EInvoicingReasonType;\n\n @ApiProperty()\n @IsString()\n reason: string;\n}\nexport class AcceptEInvoice {\n @ApiProperty()\n @IsEnum(EInvoicingStatusCode)\n status: EInvoicingStatusCode;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n internalNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n internalComment?: string;\n}\n"]}
|