@accounter/server 0.0.9-alpha-20251216144137-dc7316f892e1fcf0e350cfbbaa9ca0746e1c6c50 → 0.0.9-alpha-20251216161545-668306e40cf3aed663f444e0004246489fbec6d4
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/CHANGELOG.md +5 -28
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/server/src/__generated__/types.d.ts +301 -282
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/app-providers/green-invoice-client.d.ts +3 -3
- package/dist/server/src/modules/documents/__generated__/types.d.ts +7 -121
- package/dist/server/src/modules/documents/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/documents/helpers/common.helper.d.ts +0 -2
- package/dist/server/src/modules/documents/helpers/common.helper.js +0 -20
- package/dist/server/src/modules/documents/helpers/common.helper.js.map +1 -1
- package/dist/server/src/modules/documents/index.js +2 -9
- package/dist/server/src/modules/documents/index.js.map +1 -1
- package/dist/server/src/modules/green-invoice/__generated__/types.d.ts +135 -6
- package/dist/server/src/modules/green-invoice/__generated__/types.js +2 -0
- package/dist/server/src/modules/green-invoice/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.d.ts +7 -0
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js +53 -0
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js.map +1 -0
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.d.ts +27 -21
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js +146 -151
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js.map +1 -1
- package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.d.ts +19 -0
- package/dist/server/src/modules/{documents → green-invoice}/helpers/issue-document.helper.js +11 -59
- package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.js.map +1 -0
- package/dist/server/src/modules/green-invoice/resolvers/green-invoice.resolvers.js +347 -4
- package/dist/server/src/modules/green-invoice/resolvers/green-invoice.resolvers.js.map +1 -1
- package/dist/server/src/modules/green-invoice/typeDefs/green-invoice.graphql.js +512 -4
- package/dist/server/src/modules/green-invoice/typeDefs/green-invoice.graphql.js.map +1 -1
- package/dist/shaam-uniform-format-generator/src/generator/records/b110.d.ts +35 -35
- package/dist/shaam-uniform-format-generator/src/types/enums.d.ts +71 -71
- package/package.json +1 -1
- package/src/__generated__/types.ts +620 -327
- package/src/modules/documents/__generated__/types.ts +7 -121
- package/src/modules/documents/helpers/common.helper.ts +0 -21
- package/src/modules/documents/index.ts +2 -9
- package/src/modules/green-invoice/__generated__/types.ts +137 -6
- package/src/modules/green-invoice/helpers/contract-to-draft.helper.ts +69 -0
- package/src/modules/green-invoice/helpers/green-invoice.helper.ts +199 -183
- package/src/modules/{documents → green-invoice}/helpers/issue-document.helper.ts +44 -96
- package/src/modules/green-invoice/resolvers/green-invoice.resolvers.ts +520 -5
- package/src/modules/green-invoice/typeDefs/green-invoice.graphql.ts +512 -4
- package/dist/server/src/modules/documents/helpers/issue-document.helper.d.ts +0 -21
- package/dist/server/src/modules/documents/helpers/issue-document.helper.js.map +0 -1
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.d.ts +0 -2
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.js +0 -346
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.js.map +0 -1
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.d.ts +0 -2
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.js +0 -228
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.js.map +0 -1
- package/src/modules/documents/resolvers/documents-issuing.resolver.ts +0 -529
- package/src/modules/documents/typeDefs/documents-issuing.graphql.ts +0 -228
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-modules';
|
|
2
|
-
|
|
3
|
-
export default gql`
|
|
4
|
-
extend type Query {
|
|
5
|
-
newDocumentDraftByCharge(chargeId: UUID!): DocumentDraft! @auth(role: ACCOUNTANT)
|
|
6
|
-
newDocumentDraftByDocument(documentId: UUID!): DocumentDraft! @auth(role: ACCOUNTANT)
|
|
7
|
-
periodicalDocumentDrafts(issueMonth: TimelessDate!): [DocumentDraft!]! @auth(role: ACCOUNTANT)
|
|
8
|
-
periodicalDocumentDraftsByContracts(
|
|
9
|
-
issueMonth: TimelessDate!
|
|
10
|
-
contractIds: [UUID!]!
|
|
11
|
-
): [DocumentDraft!]! @auth(role: ACCOUNTANT)
|
|
12
|
-
|
|
13
|
-
clientMonthlyChargeDraft(clientId: UUID!, issueMonth: TimelessDate!): DocumentDraft!
|
|
14
|
-
@auth(role: ACCOUNTANT)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
extend type Mutation {
|
|
18
|
-
issueGreenInvoiceDocuments(
|
|
19
|
-
generateDocumentsInfo: [DocumentIssueInput!]!
|
|
20
|
-
): GenerateDocumentsResult! @auth(role: ACCOUNTANT)
|
|
21
|
-
issueGreenInvoiceDocument(
|
|
22
|
-
input: DocumentIssueInput!
|
|
23
|
-
emailContent: String
|
|
24
|
-
attachment: Boolean
|
|
25
|
-
chargeId: UUID
|
|
26
|
-
sendEmail: Boolean
|
|
27
|
-
): Charge! @auth(role: ACCOUNTANT)
|
|
28
|
-
previewDocument(input: DocumentIssueInput!): FileScalar! @auth(role: ACCOUNTANT)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
" result type for generateDocuments" # eslint-disable-next-line @graphql-eslint/strict-id-in-types -- no current solution for this
|
|
32
|
-
type GenerateDocumentsResult {
|
|
33
|
-
success: Boolean!
|
|
34
|
-
errors: [String!]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
" for previewing/issuing document "
|
|
38
|
-
type DocumentDraft {
|
|
39
|
-
description: String
|
|
40
|
-
remarks: String
|
|
41
|
-
footer: String
|
|
42
|
-
type: DocumentType!
|
|
43
|
-
date: String
|
|
44
|
-
dueDate: String
|
|
45
|
-
language: DocumentLanguage!
|
|
46
|
-
currency: Currency!
|
|
47
|
-
vatType: DocumentVatType!
|
|
48
|
-
discount: DocumentDiscount
|
|
49
|
-
rounding: Boolean
|
|
50
|
-
signed: Boolean
|
|
51
|
-
maxPayments: Int
|
|
52
|
-
client: Client
|
|
53
|
-
income: [DocumentIncomeRecord!]
|
|
54
|
-
payment: [DocumentPaymentRecord!]
|
|
55
|
-
linkedDocumentIds: [String!]
|
|
56
|
-
linkedPaymentId: String
|
|
57
|
-
linkType: DocumentLinkType
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
" income info "
|
|
61
|
-
type DocumentIncomeRecord {
|
|
62
|
-
currency: Currency!
|
|
63
|
-
currencyRate: Float
|
|
64
|
-
description: String!
|
|
65
|
-
itemId: String
|
|
66
|
-
price: Float!
|
|
67
|
-
quantity: Float!
|
|
68
|
-
vatRate: Float
|
|
69
|
-
vatType: DocumentVatType!
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
" payment info "
|
|
73
|
-
type DocumentPaymentRecord {
|
|
74
|
-
currency: Currency!
|
|
75
|
-
currencyRate: Float
|
|
76
|
-
date: String
|
|
77
|
-
price: Float!
|
|
78
|
-
type: PaymentType!
|
|
79
|
-
" subType: GreenInvoicePaymentSubType "
|
|
80
|
-
bankName: String
|
|
81
|
-
bankBranch: String
|
|
82
|
-
bankAccount: String
|
|
83
|
-
chequeNum: String
|
|
84
|
-
accountId: String
|
|
85
|
-
transactionId: String
|
|
86
|
-
" appType: GreenInvoicePaymentAppType "
|
|
87
|
-
cardType: DocumentPaymentRecordCardType
|
|
88
|
-
cardNum: String
|
|
89
|
-
" dealType: GreenInvoicePaymentDealType "
|
|
90
|
-
numPayments: Int
|
|
91
|
-
firstPayment: Float
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
" document discount info "
|
|
95
|
-
type DocumentDiscount {
|
|
96
|
-
amount: Float!
|
|
97
|
-
type: DocumentDiscountType!
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
" document language enum "
|
|
101
|
-
enum DocumentLanguage {
|
|
102
|
-
ENGLISH
|
|
103
|
-
HEBREW
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
" VAT type enum "
|
|
107
|
-
enum DocumentVatType {
|
|
108
|
-
DEFAULT
|
|
109
|
-
EXEMPT
|
|
110
|
-
MIXED
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
" discount type enum "
|
|
114
|
-
enum DocumentDiscountType {
|
|
115
|
-
SUM
|
|
116
|
-
PERCENTAGE
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
" payment type enum "
|
|
120
|
-
enum PaymentType {
|
|
121
|
-
TAX_DEDUCTION
|
|
122
|
-
CASH
|
|
123
|
-
CHEQUE
|
|
124
|
-
CREDIT_CARD
|
|
125
|
-
WIRE_TRANSFER
|
|
126
|
-
PAYPAL
|
|
127
|
-
OTHER_DEDUCTION
|
|
128
|
-
PAYMENT_APP
|
|
129
|
-
OTHER
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
" link type enum "
|
|
133
|
-
enum DocumentLinkType {
|
|
134
|
-
LINK
|
|
135
|
-
CANCEL
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
" card type enum "
|
|
139
|
-
enum DocumentPaymentRecordCardType {
|
|
140
|
-
UNKNOWN
|
|
141
|
-
ISRACARD
|
|
142
|
-
VISA
|
|
143
|
-
MASTERCARD
|
|
144
|
-
AMERICAN_EXPRESS
|
|
145
|
-
DINERS
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
" input for issuing or previewing document "
|
|
149
|
-
input DocumentIssueInput {
|
|
150
|
-
description: String
|
|
151
|
-
remarks: String
|
|
152
|
-
footer: String
|
|
153
|
-
type: DocumentType!
|
|
154
|
-
date: String
|
|
155
|
-
dueDate: String
|
|
156
|
-
language: DocumentLanguage!
|
|
157
|
-
currency: Currency!
|
|
158
|
-
vatType: DocumentVatType!
|
|
159
|
-
discount: DocumentDiscountInput
|
|
160
|
-
rounding: Boolean
|
|
161
|
-
signed: Boolean
|
|
162
|
-
maxPayments: Int
|
|
163
|
-
client: DocumentClientInput
|
|
164
|
-
income: [DocumentIncomeRecordInput!]
|
|
165
|
-
payment: [DocumentPaymentRecordInput!]
|
|
166
|
-
linkedDocumentIds: [String!]
|
|
167
|
-
linkedPaymentId: String
|
|
168
|
-
linkType: DocumentLinkType
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
" discount input "
|
|
172
|
-
input DocumentDiscountInput {
|
|
173
|
-
amount: Float!
|
|
174
|
-
type: DocumentDiscountType!
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
" client input "
|
|
178
|
-
input DocumentClientInput {
|
|
179
|
-
country: CountryCode
|
|
180
|
-
emails: [String!]
|
|
181
|
-
id: UUID!
|
|
182
|
-
name: String
|
|
183
|
-
phone: String
|
|
184
|
-
taxId: String
|
|
185
|
-
self: Boolean
|
|
186
|
-
address: String
|
|
187
|
-
city: String
|
|
188
|
-
zip: String
|
|
189
|
-
fax: String
|
|
190
|
-
mobile: String
|
|
191
|
-
add: Boolean
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
" income input "
|
|
195
|
-
input DocumentIncomeRecordInput {
|
|
196
|
-
amount: Float
|
|
197
|
-
amountTotal: Float
|
|
198
|
-
catalogNum: String
|
|
199
|
-
currency: Currency!
|
|
200
|
-
currencyRate: Float
|
|
201
|
-
description: String!
|
|
202
|
-
itemId: String
|
|
203
|
-
price: Float!
|
|
204
|
-
quantity: Float!
|
|
205
|
-
vat: Float
|
|
206
|
-
vatRate: Float
|
|
207
|
-
vatType: DocumentVatType!
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
" payment input "
|
|
211
|
-
input DocumentPaymentRecordInput {
|
|
212
|
-
currency: Currency!
|
|
213
|
-
currencyRate: Float
|
|
214
|
-
date: String
|
|
215
|
-
price: Float!
|
|
216
|
-
type: PaymentType!
|
|
217
|
-
bankName: String
|
|
218
|
-
bankBranch: String
|
|
219
|
-
bankAccount: String
|
|
220
|
-
chequeNum: String
|
|
221
|
-
accountId: String
|
|
222
|
-
transactionId: String
|
|
223
|
-
cardType: DocumentPaymentRecordCardType
|
|
224
|
-
cardNum: String
|
|
225
|
-
numPayments: Int
|
|
226
|
-
firstPayment: Float
|
|
227
|
-
}
|
|
228
|
-
`;
|