@accounter/server 0.0.9-alpha-20251216161545-668306e40cf3aed663f444e0004246489fbec6d4 → 0.0.9-alpha-20251216205426-5f8c6ec241db9449687000a5cc5dbb8cbb861623
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 +28 -5
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.js +2 -2
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.js.map +1 -1
- package/dist/server/src/__generated__/types.d.ts +282 -301
- 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/contracts/helpers/contracts.helper.d.ts +2 -0
- package/dist/server/src/modules/contracts/helpers/contracts.helper.js +20 -0
- package/dist/server/src/modules/contracts/helpers/contracts.helper.js.map +1 -1
- package/dist/server/src/modules/documents/__generated__/types.d.ts +121 -7
- package/dist/server/src/modules/documents/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/documents/helpers/common.helper.d.ts +2 -0
- package/dist/server/src/modules/documents/helpers/common.helper.js +20 -0
- package/dist/server/src/modules/documents/helpers/common.helper.js.map +1 -1
- package/dist/server/src/modules/documents/helpers/issue-document.helper.d.ts +21 -0
- package/dist/server/src/modules/{green-invoice → documents}/helpers/issue-document.helper.js +61 -11
- package/dist/server/src/modules/documents/helpers/issue-document.helper.js.map +1 -0
- package/dist/server/src/modules/documents/index.js +9 -2
- package/dist/server/src/modules/documents/index.js.map +1 -1
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.d.ts +2 -0
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.js +357 -0
- package/dist/server/src/modules/documents/resolvers/documents-issuing.resolver.js.map +1 -0
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.d.ts +2 -0
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.js +228 -0
- package/dist/server/src/modules/documents/typeDefs/documents-issuing.graphql.js.map +1 -0
- package/dist/server/src/modules/green-invoice/__generated__/types.d.ts +6 -135
- package/dist/server/src/modules/green-invoice/__generated__/types.js +0 -2
- package/dist/server/src/modules/green-invoice/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.d.ts +21 -27
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js +160 -151
- package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js.map +1 -1
- package/dist/server/src/modules/green-invoice/resolvers/green-invoice.resolvers.js +4 -347
- 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 +4 -512
- 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 +2 -2
- package/src/__generated__/types.ts +327 -620
- package/src/modules/contracts/helpers/contracts.helper.ts +22 -0
- package/src/modules/documents/__generated__/types.ts +121 -7
- package/src/modules/documents/helpers/common.helper.ts +21 -0
- package/src/modules/{green-invoice → documents}/helpers/issue-document.helper.ts +104 -44
- package/src/modules/documents/index.ts +9 -2
- package/src/modules/documents/resolvers/documents-issuing.resolver.ts +554 -0
- package/src/modules/documents/typeDefs/documents-issuing.graphql.ts +228 -0
- package/src/modules/green-invoice/__generated__/types.ts +6 -137
- package/src/modules/green-invoice/helpers/green-invoice.helper.ts +195 -201
- package/src/modules/green-invoice/resolvers/green-invoice.resolvers.ts +5 -520
- package/src/modules/green-invoice/typeDefs/green-invoice.graphql.ts +4 -512
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.d.ts +0 -7
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js +0 -53
- package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js.map +0 -1
- package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.d.ts +0 -19
- package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.js.map +0 -1
- package/src/modules/green-invoice/helpers/contract-to-draft.helper.ts +0 -69
|
@@ -0,0 +1,228 @@
|
|
|
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
|
+
`;
|
|
@@ -2,92 +2,33 @@ import * as Types from "../../../__generated__/types.js";
|
|
|
2
2
|
import * as gm from "graphql-modules";
|
|
3
3
|
export namespace GreenInvoiceModule {
|
|
4
4
|
interface DefinedFields {
|
|
5
|
-
Query: '
|
|
6
|
-
Mutation: '
|
|
7
|
-
GenerateMonthlyClientDocumentsResult: 'success' | 'errors';
|
|
8
|
-
NewDocumentInfo: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'lang' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
|
|
9
|
-
GreenInvoiceDiscount: 'amount' | 'type';
|
|
5
|
+
Query: 'greenInvoiceClient';
|
|
6
|
+
Mutation: 'syncGreenInvoiceDocuments';
|
|
10
7
|
GreenInvoiceClient: 'country' | 'emails' | 'greenInvoiceId' | 'businessId' | 'name' | 'phone' | 'taxId' | 'self' | 'address' | 'city' | 'zip' | 'fax' | 'mobile' | 'add';
|
|
11
|
-
GreenInvoiceIncome: 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vatRate' | 'vatType';
|
|
12
|
-
GreenInvoicePayment: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'subType' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'appType' | 'cardType' | 'cardNum' | 'dealType' | 'numPayments' | 'firstPayment';
|
|
13
8
|
IssuedDocumentInfo: 'originalDocument';
|
|
14
9
|
ClientIntegrations: 'greenInvoiceInfo';
|
|
15
10
|
};
|
|
16
11
|
|
|
17
|
-
interface DefinedEnumValues {
|
|
18
|
-
GreenInvoiceDocumentLang: 'ENGLISH' | 'HEBREW';
|
|
19
|
-
GreenInvoiceVatType: 'DEFAULT' | 'EXEMPT' | 'MIXED';
|
|
20
|
-
GreenInvoiceDiscountType: 'SUM' | 'PERCENTAGE';
|
|
21
|
-
GreenInvoiceCountry: 'UG' | 'UZ' | 'AT' | 'AU' | 'UA' | 'UY' | 'AZ' | 'CX' | 'AE' | 'IT' | 'BS' | 'GS' | 'UM' | 'VI' | 'VG' | 'HM' | 'TC' | 'MP' | 'MH' | 'SB' | 'FO' | 'FK' | 'FJ' | 'KM' | 'CK' | 'CC' | 'KY' | 'ID' | 'IS' | 'IE' | 'IR' | 'SV' | 'AL' | 'DZ' | 'AX' | 'AO' | 'AI' | 'AD' | 'AQ' | 'AG' | 'EE' | 'AF' | 'EC' | 'AR' | 'US' | 'AW' | 'ER' | 'AM' | 'ET' | 'BT' | 'BV' | 'BW' | 'BG' | 'BO' | 'BA' | 'BI' | 'BF' | 'BH' | 'BY' | 'BE' | 'BZ' | 'BD' | 'BJ' | 'BB' | 'BN' | 'BR' | 'GB' | 'BM' | 'DJ' | 'JM' | 'JE' | 'GA' | 'GE' | 'GH' | 'GT' | 'GU' | 'GP' | 'GY' | 'GI' | 'GN' | 'GW' | 'GQ' | 'GF' | 'GM' | 'GL' | 'DE' | 'GD' | 'GG' | 'DM' | 'DK' | 'ZA' | 'SS' | 'KR' | 'IM' | 'NF' | 'HT' | 'MV' | 'BQ' | 'IN' | 'NL' | 'HK' | 'HU' | 'HN' | 'IO' | 'TF' | 'PH' | 'DO' | 'CD' | 'CF' | 'PS' | 'WF' | 'VN' | 'VU' | 'VE' | 'VA' | 'ZW' | 'ZM' | 'CI' | 'TJ' | 'TV' | 'TG' | 'TO' | 'TN' | 'TK' | 'TR' | 'TM' | 'TW' | 'TZ' | 'TT' | 'GR' | 'JP' | 'JO' | 'IL' | 'KW' | 'CV' | 'LA' | 'LB' | 'LY' | 'LU' | 'LV' | 'LR' | 'LT' | 'LI' | 'LS' | 'MR' | 'MU' | 'ML' | 'MG' | 'MZ' | 'MD' | 'MN' | 'ME' | 'MS' | 'MC' | 'TL' | 'MM' | 'YT' | 'FM' | 'MW' | 'MY' | 'MT' | 'EG' | 'MO' | 'MK' | 'MX' | 'MA' | 'MQ' | 'NR' | 'NO' | 'NG' | 'NZ' | 'NU' | 'NE' | 'NI' | 'NA' | 'NP' | 'ST' | 'SJ' | 'EH' | 'SD' | 'SZ' | 'SO' | 'SY' | 'SR' | 'SL' | 'SC' | 'CN' | 'SG' | 'SI' | 'SK' | 'WS' | 'AS' | 'BL' | 'MF' | 'SM' | 'PM' | 'SN' | 'SH' | 'VC' | 'LC' | 'SX' | 'KN' | 'SA' | 'ES' | 'RS' | 'LK' | 'OM' | 'IQ' | 'PW' | 'PL' | 'PF' | 'PR' | 'PT' | 'PN' | 'FI' | 'PA' | 'PG' | 'PK' | 'PY' | 'PE' | 'TD' | 'CL' | 'CZ' | 'KP' | 'FR' | 'CU' | 'CO' | 'CG' | 'XK' | 'CR' | 'CW' | 'KZ' | 'QA' | 'KG' | 'KI' | 'NC' | 'KH' | 'CM' | 'CA' | 'KE' | 'CY' | 'HR' | 'RE' | 'RW' | 'RO' | 'RU' | 'SE' | 'CH' | 'TH' | 'YE';
|
|
22
|
-
GreenInvoicePaymentSubType: 'BITCOIN' | 'MONEY_EQUAL' | 'V_CHECK' | 'GIFT_CARD' | 'NII_EMPLOYEE_DEDUCTION' | 'ETHEREUM' | 'BUYME_VOUCHER' | 'PAYONEER';
|
|
23
|
-
GreenInvoicePaymentAppType: 'BIT' | 'PAY_BY_PEPPER' | 'PAYBOX' | 'CULO' | 'GOOGLE_PAY' | 'APPLE_PAY';
|
|
24
|
-
GreenInvoicePaymentCardType: 'UNKNOWN' | 'ISRACARD' | 'VISA' | 'MASTERCARD' | 'AMERICAN_EXPRESS' | 'DINERS';
|
|
25
|
-
GreenInvoicePaymentDealType: 'STANDARD' | 'PAYMENTS' | 'CREDIT' | 'DEFERRED' | 'OTHER' | 'RECURRING';
|
|
26
|
-
GreenInvoicePaymentType: 'TAX_DEDUCTION' | 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'WIRE_TRANSFER' | 'PAYPAL' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'OTHER';
|
|
27
|
-
GreenInvoiceLinkType: 'LINK' | 'CANCEL';
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
interface DefinedInputFields {
|
|
31
|
-
NewDocumentInput: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'lang' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
|
|
32
|
-
GreenInvoiceDiscountInput: 'amount' | 'type';
|
|
33
|
-
GreenInvoiceClientInput: 'country' | 'emails' | 'greenInvoiceId' | 'businessId' | 'name' | 'phone' | 'taxId' | 'self' | 'address' | 'city' | 'zip' | 'fax' | 'mobile' | 'add';
|
|
34
|
-
GreenInvoicePaymentIncomeInput: 'amount' | 'amountTotal' | 'catalogNum' | 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vat' | 'vatRate' | 'vatType';
|
|
35
|
-
GreenInvoicePaymentInput: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'subType' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'appType' | 'cardType' | 'cardNum' | 'dealType' | 'numPayments' | 'firstPayment';
|
|
36
|
-
};
|
|
37
|
-
|
|
38
12
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
39
|
-
export type NewDocumentInfo = Pick<Types.NewDocumentInfo, DefinedFields['NewDocumentInfo']>;
|
|
40
|
-
export type UUID = Types.Uuid;
|
|
41
|
-
export type TimelessDate = Types.TimelessDate;
|
|
42
13
|
export type GreenInvoiceClient = Pick<Types.GreenInvoiceClient, DefinedFields['GreenInvoiceClient']>;
|
|
14
|
+
export type UUID = Types.Uuid;
|
|
43
15
|
export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
|
|
44
16
|
export type Document = Types.Document;
|
|
45
|
-
export type GenerateMonthlyClientDocumentsResult = Pick<Types.GenerateMonthlyClientDocumentsResult, DefinedFields['GenerateMonthlyClientDocumentsResult']>;
|
|
46
|
-
export type NewDocumentInput = Pick<Types.NewDocumentInput, DefinedInputFields['NewDocumentInput']>;
|
|
47
|
-
export type FileScalar = Types.FileScalar;
|
|
48
|
-
export type Charge = Types.Charge;
|
|
49
17
|
export type IssuedDocumentInfo = Types.IssuedDocumentInfo;
|
|
18
|
+
export type DocumentDraft = Types.DocumentDraft;
|
|
50
19
|
export type ClientIntegrations = Types.ClientIntegrations;
|
|
51
|
-
export type
|
|
52
|
-
export type GreenInvoiceDocumentLang = DefinedEnumValues['GreenInvoiceDocumentLang'];
|
|
53
|
-
export type Currency = Types.Currency;
|
|
54
|
-
export type GreenInvoiceVatType = DefinedEnumValues['GreenInvoiceVatType'];
|
|
55
|
-
export type GreenInvoiceDiscount = Pick<Types.GreenInvoiceDiscount, DefinedFields['GreenInvoiceDiscount']>;
|
|
56
|
-
export type GreenInvoiceIncome = Pick<Types.GreenInvoiceIncome, DefinedFields['GreenInvoiceIncome']>;
|
|
57
|
-
export type GreenInvoicePayment = Pick<Types.GreenInvoicePayment, DefinedFields['GreenInvoicePayment']>;
|
|
58
|
-
export type GreenInvoiceLinkType = DefinedEnumValues['GreenInvoiceLinkType'];
|
|
59
|
-
export type GreenInvoiceDiscountType = DefinedEnumValues['GreenInvoiceDiscountType'];
|
|
60
|
-
export type GreenInvoiceCountry = DefinedEnumValues['GreenInvoiceCountry'];
|
|
61
|
-
export type GreenInvoicePaymentType = DefinedEnumValues['GreenInvoicePaymentType'];
|
|
62
|
-
export type GreenInvoicePaymentSubType = DefinedEnumValues['GreenInvoicePaymentSubType'];
|
|
63
|
-
export type GreenInvoicePaymentAppType = DefinedEnumValues['GreenInvoicePaymentAppType'];
|
|
64
|
-
export type GreenInvoicePaymentCardType = DefinedEnumValues['GreenInvoicePaymentCardType'];
|
|
65
|
-
export type GreenInvoicePaymentDealType = DefinedEnumValues['GreenInvoicePaymentDealType'];
|
|
66
|
-
export type GreenInvoiceDiscountInput = Pick<Types.GreenInvoiceDiscountInput, DefinedInputFields['GreenInvoiceDiscountInput']>;
|
|
67
|
-
export type GreenInvoiceClientInput = Pick<Types.GreenInvoiceClientInput, DefinedInputFields['GreenInvoiceClientInput']>;
|
|
68
|
-
export type GreenInvoicePaymentIncomeInput = Pick<Types.GreenInvoicePaymentIncomeInput, DefinedInputFields['GreenInvoicePaymentIncomeInput']>;
|
|
69
|
-
export type GreenInvoicePaymentInput = Pick<Types.GreenInvoicePaymentInput, DefinedInputFields['GreenInvoicePaymentInput']>;
|
|
20
|
+
export type Country = Types.Country;
|
|
70
21
|
|
|
71
22
|
export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
|
|
72
23
|
export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
|
|
73
|
-
export type GenerateMonthlyClientDocumentsResultResolvers = Pick<Types.GenerateMonthlyClientDocumentsResultResolvers, DefinedFields['GenerateMonthlyClientDocumentsResult']>;
|
|
74
|
-
export type NewDocumentInfoResolvers = Pick<Types.NewDocumentInfoResolvers, DefinedFields['NewDocumentInfo']>;
|
|
75
|
-
export type GreenInvoiceDiscountResolvers = Pick<Types.GreenInvoiceDiscountResolvers, DefinedFields['GreenInvoiceDiscount']>;
|
|
76
24
|
export type GreenInvoiceClientResolvers = Pick<Types.GreenInvoiceClientResolvers, DefinedFields['GreenInvoiceClient']>;
|
|
77
|
-
export type GreenInvoiceIncomeResolvers = Pick<Types.GreenInvoiceIncomeResolvers, DefinedFields['GreenInvoiceIncome']>;
|
|
78
|
-
export type GreenInvoicePaymentResolvers = Pick<Types.GreenInvoicePaymentResolvers, DefinedFields['GreenInvoicePayment']>;
|
|
79
25
|
export type IssuedDocumentInfoResolvers = Pick<Types.IssuedDocumentInfoResolvers, DefinedFields['IssuedDocumentInfo']>;
|
|
80
26
|
export type ClientIntegrationsResolvers = Pick<Types.ClientIntegrationsResolvers, DefinedFields['ClientIntegrations']>;
|
|
81
27
|
|
|
82
28
|
export interface Resolvers {
|
|
83
29
|
Query?: QueryResolvers;
|
|
84
30
|
Mutation?: MutationResolvers;
|
|
85
|
-
GenerateMonthlyClientDocumentsResult?: GenerateMonthlyClientDocumentsResultResolvers;
|
|
86
|
-
NewDocumentInfo?: NewDocumentInfoResolvers;
|
|
87
|
-
GreenInvoiceDiscount?: GreenInvoiceDiscountResolvers;
|
|
88
31
|
GreenInvoiceClient?: GreenInvoiceClientResolvers;
|
|
89
|
-
GreenInvoiceIncome?: GreenInvoiceIncomeResolvers;
|
|
90
|
-
GreenInvoicePayment?: GreenInvoicePaymentResolvers;
|
|
91
32
|
IssuedDocumentInfo?: IssuedDocumentInfoResolvers;
|
|
92
33
|
ClientIntegrations?: ClientIntegrationsResolvers;
|
|
93
34
|
};
|
|
@@ -98,19 +39,11 @@ export namespace GreenInvoiceModule {
|
|
|
98
39
|
};
|
|
99
40
|
Query?: {
|
|
100
41
|
'*'?: gm.Middleware[];
|
|
101
|
-
newDocumentInfoDraftByCharge?: gm.Middleware[];
|
|
102
|
-
newDocumentInfoDraftByDocument?: gm.Middleware[];
|
|
103
|
-
clientMonthlyChargesDrafts?: gm.Middleware[];
|
|
104
|
-
clientChargesDraftsByContracts?: gm.Middleware[];
|
|
105
|
-
clientMonthlyChargeDraft?: gm.Middleware[];
|
|
106
42
|
greenInvoiceClient?: gm.Middleware[];
|
|
107
43
|
};
|
|
108
44
|
Mutation?: {
|
|
109
45
|
'*'?: gm.Middleware[];
|
|
110
|
-
|
|
111
|
-
issueGreenInvoiceDocuments?: gm.Middleware[];
|
|
112
|
-
previewGreenInvoiceDocument?: gm.Middleware[];
|
|
113
|
-
issueGreenInvoiceDocument?: gm.Middleware[];
|
|
46
|
+
syncGreenInvoiceDocuments?: gm.Middleware[];
|
|
114
47
|
};
|
|
115
48
|
IssuedDocumentInfo?: {
|
|
116
49
|
'*'?: gm.Middleware[];
|
|
@@ -120,38 +53,6 @@ export namespace GreenInvoiceModule {
|
|
|
120
53
|
'*'?: gm.Middleware[];
|
|
121
54
|
greenInvoiceInfo?: gm.Middleware[];
|
|
122
55
|
};
|
|
123
|
-
GenerateMonthlyClientDocumentsResult?: {
|
|
124
|
-
'*'?: gm.Middleware[];
|
|
125
|
-
success?: gm.Middleware[];
|
|
126
|
-
errors?: gm.Middleware[];
|
|
127
|
-
};
|
|
128
|
-
NewDocumentInfo?: {
|
|
129
|
-
'*'?: gm.Middleware[];
|
|
130
|
-
description?: gm.Middleware[];
|
|
131
|
-
remarks?: gm.Middleware[];
|
|
132
|
-
footer?: gm.Middleware[];
|
|
133
|
-
type?: gm.Middleware[];
|
|
134
|
-
date?: gm.Middleware[];
|
|
135
|
-
dueDate?: gm.Middleware[];
|
|
136
|
-
lang?: gm.Middleware[];
|
|
137
|
-
currency?: gm.Middleware[];
|
|
138
|
-
vatType?: gm.Middleware[];
|
|
139
|
-
discount?: gm.Middleware[];
|
|
140
|
-
rounding?: gm.Middleware[];
|
|
141
|
-
signed?: gm.Middleware[];
|
|
142
|
-
maxPayments?: gm.Middleware[];
|
|
143
|
-
client?: gm.Middleware[];
|
|
144
|
-
income?: gm.Middleware[];
|
|
145
|
-
payment?: gm.Middleware[];
|
|
146
|
-
linkedDocumentIds?: gm.Middleware[];
|
|
147
|
-
linkedPaymentId?: gm.Middleware[];
|
|
148
|
-
linkType?: gm.Middleware[];
|
|
149
|
-
};
|
|
150
|
-
GreenInvoiceDiscount?: {
|
|
151
|
-
'*'?: gm.Middleware[];
|
|
152
|
-
amount?: gm.Middleware[];
|
|
153
|
-
type?: gm.Middleware[];
|
|
154
|
-
};
|
|
155
56
|
GreenInvoiceClient?: {
|
|
156
57
|
'*'?: gm.Middleware[];
|
|
157
58
|
country?: gm.Middleware[];
|
|
@@ -169,37 +70,5 @@ export namespace GreenInvoiceModule {
|
|
|
169
70
|
mobile?: gm.Middleware[];
|
|
170
71
|
add?: gm.Middleware[];
|
|
171
72
|
};
|
|
172
|
-
GreenInvoiceIncome?: {
|
|
173
|
-
'*'?: gm.Middleware[];
|
|
174
|
-
currency?: gm.Middleware[];
|
|
175
|
-
currencyRate?: gm.Middleware[];
|
|
176
|
-
description?: gm.Middleware[];
|
|
177
|
-
itemId?: gm.Middleware[];
|
|
178
|
-
price?: gm.Middleware[];
|
|
179
|
-
quantity?: gm.Middleware[];
|
|
180
|
-
vatRate?: gm.Middleware[];
|
|
181
|
-
vatType?: gm.Middleware[];
|
|
182
|
-
};
|
|
183
|
-
GreenInvoicePayment?: {
|
|
184
|
-
'*'?: gm.Middleware[];
|
|
185
|
-
currency?: gm.Middleware[];
|
|
186
|
-
currencyRate?: gm.Middleware[];
|
|
187
|
-
date?: gm.Middleware[];
|
|
188
|
-
price?: gm.Middleware[];
|
|
189
|
-
type?: gm.Middleware[];
|
|
190
|
-
subType?: gm.Middleware[];
|
|
191
|
-
bankName?: gm.Middleware[];
|
|
192
|
-
bankBranch?: gm.Middleware[];
|
|
193
|
-
bankAccount?: gm.Middleware[];
|
|
194
|
-
chequeNum?: gm.Middleware[];
|
|
195
|
-
accountId?: gm.Middleware[];
|
|
196
|
-
transactionId?: gm.Middleware[];
|
|
197
|
-
appType?: gm.Middleware[];
|
|
198
|
-
cardType?: gm.Middleware[];
|
|
199
|
-
cardNum?: gm.Middleware[];
|
|
200
|
-
dealType?: gm.Middleware[];
|
|
201
|
-
numPayments?: gm.Middleware[];
|
|
202
|
-
firstPayment?: gm.Middleware[];
|
|
203
|
-
};
|
|
204
73
|
};
|
|
205
74
|
}
|