@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
|
@@ -2,87 +2,30 @@ import * as Types from "../../../__generated__/types.js";
|
|
|
2
2
|
import * as gm from "graphql-modules";
|
|
3
3
|
export declare 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
|
-
interface DefinedEnumValues {
|
|
17
|
-
GreenInvoiceDocumentLang: 'ENGLISH' | 'HEBREW';
|
|
18
|
-
GreenInvoiceVatType: 'DEFAULT' | 'EXEMPT' | 'MIXED';
|
|
19
|
-
GreenInvoiceDiscountType: 'SUM' | 'PERCENTAGE';
|
|
20
|
-
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';
|
|
21
|
-
GreenInvoicePaymentSubType: 'BITCOIN' | 'MONEY_EQUAL' | 'V_CHECK' | 'GIFT_CARD' | 'NII_EMPLOYEE_DEDUCTION' | 'ETHEREUM' | 'BUYME_VOUCHER' | 'PAYONEER';
|
|
22
|
-
GreenInvoicePaymentAppType: 'BIT' | 'PAY_BY_PEPPER' | 'PAYBOX' | 'CULO' | 'GOOGLE_PAY' | 'APPLE_PAY';
|
|
23
|
-
GreenInvoicePaymentCardType: 'UNKNOWN' | 'ISRACARD' | 'VISA' | 'MASTERCARD' | 'AMERICAN_EXPRESS' | 'DINERS';
|
|
24
|
-
GreenInvoicePaymentDealType: 'STANDARD' | 'PAYMENTS' | 'CREDIT' | 'DEFERRED' | 'OTHER' | 'RECURRING';
|
|
25
|
-
GreenInvoicePaymentType: 'TAX_DEDUCTION' | 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'WIRE_TRANSFER' | 'PAYPAL' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'OTHER';
|
|
26
|
-
GreenInvoiceLinkType: 'LINK' | 'CANCEL';
|
|
27
|
-
}
|
|
28
|
-
interface DefinedInputFields {
|
|
29
|
-
NewDocumentInput: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'lang' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
|
|
30
|
-
GreenInvoiceDiscountInput: 'amount' | 'type';
|
|
31
|
-
GreenInvoiceClientInput: 'country' | 'emails' | 'greenInvoiceId' | 'businessId' | 'name' | 'phone' | 'taxId' | 'self' | 'address' | 'city' | 'zip' | 'fax' | 'mobile' | 'add';
|
|
32
|
-
GreenInvoicePaymentIncomeInput: 'amount' | 'amountTotal' | 'catalogNum' | 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vat' | 'vatRate' | 'vatType';
|
|
33
|
-
GreenInvoicePaymentInput: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'subType' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'appType' | 'cardType' | 'cardNum' | 'dealType' | 'numPayments' | 'firstPayment';
|
|
34
|
-
}
|
|
35
11
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
36
|
-
export type NewDocumentInfo = Pick<Types.NewDocumentInfo, DefinedFields['NewDocumentInfo']>;
|
|
37
|
-
export type UUID = Types.Uuid;
|
|
38
|
-
export type TimelessDate = Types.TimelessDate;
|
|
39
12
|
export type GreenInvoiceClient = Pick<Types.GreenInvoiceClient, DefinedFields['GreenInvoiceClient']>;
|
|
13
|
+
export type UUID = Types.Uuid;
|
|
40
14
|
export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
|
|
41
15
|
export type Document = Types.Document;
|
|
42
|
-
export type GenerateMonthlyClientDocumentsResult = Pick<Types.GenerateMonthlyClientDocumentsResult, DefinedFields['GenerateMonthlyClientDocumentsResult']>;
|
|
43
|
-
export type NewDocumentInput = Pick<Types.NewDocumentInput, DefinedInputFields['NewDocumentInput']>;
|
|
44
|
-
export type FileScalar = Types.FileScalar;
|
|
45
|
-
export type Charge = Types.Charge;
|
|
46
16
|
export type IssuedDocumentInfo = Types.IssuedDocumentInfo;
|
|
17
|
+
export type DocumentDraft = Types.DocumentDraft;
|
|
47
18
|
export type ClientIntegrations = Types.ClientIntegrations;
|
|
48
|
-
export type
|
|
49
|
-
export type GreenInvoiceDocumentLang = DefinedEnumValues['GreenInvoiceDocumentLang'];
|
|
50
|
-
export type Currency = Types.Currency;
|
|
51
|
-
export type GreenInvoiceVatType = DefinedEnumValues['GreenInvoiceVatType'];
|
|
52
|
-
export type GreenInvoiceDiscount = Pick<Types.GreenInvoiceDiscount, DefinedFields['GreenInvoiceDiscount']>;
|
|
53
|
-
export type GreenInvoiceIncome = Pick<Types.GreenInvoiceIncome, DefinedFields['GreenInvoiceIncome']>;
|
|
54
|
-
export type GreenInvoicePayment = Pick<Types.GreenInvoicePayment, DefinedFields['GreenInvoicePayment']>;
|
|
55
|
-
export type GreenInvoiceLinkType = DefinedEnumValues['GreenInvoiceLinkType'];
|
|
56
|
-
export type GreenInvoiceDiscountType = DefinedEnumValues['GreenInvoiceDiscountType'];
|
|
57
|
-
export type GreenInvoiceCountry = DefinedEnumValues['GreenInvoiceCountry'];
|
|
58
|
-
export type GreenInvoicePaymentType = DefinedEnumValues['GreenInvoicePaymentType'];
|
|
59
|
-
export type GreenInvoicePaymentSubType = DefinedEnumValues['GreenInvoicePaymentSubType'];
|
|
60
|
-
export type GreenInvoicePaymentAppType = DefinedEnumValues['GreenInvoicePaymentAppType'];
|
|
61
|
-
export type GreenInvoicePaymentCardType = DefinedEnumValues['GreenInvoicePaymentCardType'];
|
|
62
|
-
export type GreenInvoicePaymentDealType = DefinedEnumValues['GreenInvoicePaymentDealType'];
|
|
63
|
-
export type GreenInvoiceDiscountInput = Pick<Types.GreenInvoiceDiscountInput, DefinedInputFields['GreenInvoiceDiscountInput']>;
|
|
64
|
-
export type GreenInvoiceClientInput = Pick<Types.GreenInvoiceClientInput, DefinedInputFields['GreenInvoiceClientInput']>;
|
|
65
|
-
export type GreenInvoicePaymentIncomeInput = Pick<Types.GreenInvoicePaymentIncomeInput, DefinedInputFields['GreenInvoicePaymentIncomeInput']>;
|
|
66
|
-
export type GreenInvoicePaymentInput = Pick<Types.GreenInvoicePaymentInput, DefinedInputFields['GreenInvoicePaymentInput']>;
|
|
19
|
+
export type Country = Types.Country;
|
|
67
20
|
export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
|
|
68
21
|
export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
|
|
69
|
-
export type GenerateMonthlyClientDocumentsResultResolvers = Pick<Types.GenerateMonthlyClientDocumentsResultResolvers, DefinedFields['GenerateMonthlyClientDocumentsResult']>;
|
|
70
|
-
export type NewDocumentInfoResolvers = Pick<Types.NewDocumentInfoResolvers, DefinedFields['NewDocumentInfo']>;
|
|
71
|
-
export type GreenInvoiceDiscountResolvers = Pick<Types.GreenInvoiceDiscountResolvers, DefinedFields['GreenInvoiceDiscount']>;
|
|
72
22
|
export type GreenInvoiceClientResolvers = Pick<Types.GreenInvoiceClientResolvers, DefinedFields['GreenInvoiceClient']>;
|
|
73
|
-
export type GreenInvoiceIncomeResolvers = Pick<Types.GreenInvoiceIncomeResolvers, DefinedFields['GreenInvoiceIncome']>;
|
|
74
|
-
export type GreenInvoicePaymentResolvers = Pick<Types.GreenInvoicePaymentResolvers, DefinedFields['GreenInvoicePayment']>;
|
|
75
23
|
export type IssuedDocumentInfoResolvers = Pick<Types.IssuedDocumentInfoResolvers, DefinedFields['IssuedDocumentInfo']>;
|
|
76
24
|
export type ClientIntegrationsResolvers = Pick<Types.ClientIntegrationsResolvers, DefinedFields['ClientIntegrations']>;
|
|
77
25
|
export interface Resolvers {
|
|
78
26
|
Query?: QueryResolvers;
|
|
79
27
|
Mutation?: MutationResolvers;
|
|
80
|
-
GenerateMonthlyClientDocumentsResult?: GenerateMonthlyClientDocumentsResultResolvers;
|
|
81
|
-
NewDocumentInfo?: NewDocumentInfoResolvers;
|
|
82
|
-
GreenInvoiceDiscount?: GreenInvoiceDiscountResolvers;
|
|
83
28
|
GreenInvoiceClient?: GreenInvoiceClientResolvers;
|
|
84
|
-
GreenInvoiceIncome?: GreenInvoiceIncomeResolvers;
|
|
85
|
-
GreenInvoicePayment?: GreenInvoicePaymentResolvers;
|
|
86
29
|
IssuedDocumentInfo?: IssuedDocumentInfoResolvers;
|
|
87
30
|
ClientIntegrations?: ClientIntegrationsResolvers;
|
|
88
31
|
}
|
|
@@ -92,19 +35,11 @@ export declare namespace GreenInvoiceModule {
|
|
|
92
35
|
};
|
|
93
36
|
Query?: {
|
|
94
37
|
'*'?: gm.Middleware[];
|
|
95
|
-
newDocumentInfoDraftByCharge?: gm.Middleware[];
|
|
96
|
-
newDocumentInfoDraftByDocument?: gm.Middleware[];
|
|
97
|
-
clientMonthlyChargesDrafts?: gm.Middleware[];
|
|
98
|
-
clientChargesDraftsByContracts?: gm.Middleware[];
|
|
99
|
-
clientMonthlyChargeDraft?: gm.Middleware[];
|
|
100
38
|
greenInvoiceClient?: gm.Middleware[];
|
|
101
39
|
};
|
|
102
40
|
Mutation?: {
|
|
103
41
|
'*'?: gm.Middleware[];
|
|
104
|
-
|
|
105
|
-
issueGreenInvoiceDocuments?: gm.Middleware[];
|
|
106
|
-
previewGreenInvoiceDocument?: gm.Middleware[];
|
|
107
|
-
issueGreenInvoiceDocument?: gm.Middleware[];
|
|
42
|
+
syncGreenInvoiceDocuments?: gm.Middleware[];
|
|
108
43
|
};
|
|
109
44
|
IssuedDocumentInfo?: {
|
|
110
45
|
'*'?: gm.Middleware[];
|
|
@@ -114,38 +49,6 @@ export declare namespace GreenInvoiceModule {
|
|
|
114
49
|
'*'?: gm.Middleware[];
|
|
115
50
|
greenInvoiceInfo?: gm.Middleware[];
|
|
116
51
|
};
|
|
117
|
-
GenerateMonthlyClientDocumentsResult?: {
|
|
118
|
-
'*'?: gm.Middleware[];
|
|
119
|
-
success?: gm.Middleware[];
|
|
120
|
-
errors?: gm.Middleware[];
|
|
121
|
-
};
|
|
122
|
-
NewDocumentInfo?: {
|
|
123
|
-
'*'?: gm.Middleware[];
|
|
124
|
-
description?: gm.Middleware[];
|
|
125
|
-
remarks?: gm.Middleware[];
|
|
126
|
-
footer?: gm.Middleware[];
|
|
127
|
-
type?: gm.Middleware[];
|
|
128
|
-
date?: gm.Middleware[];
|
|
129
|
-
dueDate?: gm.Middleware[];
|
|
130
|
-
lang?: gm.Middleware[];
|
|
131
|
-
currency?: gm.Middleware[];
|
|
132
|
-
vatType?: gm.Middleware[];
|
|
133
|
-
discount?: gm.Middleware[];
|
|
134
|
-
rounding?: gm.Middleware[];
|
|
135
|
-
signed?: gm.Middleware[];
|
|
136
|
-
maxPayments?: gm.Middleware[];
|
|
137
|
-
client?: gm.Middleware[];
|
|
138
|
-
income?: gm.Middleware[];
|
|
139
|
-
payment?: gm.Middleware[];
|
|
140
|
-
linkedDocumentIds?: gm.Middleware[];
|
|
141
|
-
linkedPaymentId?: gm.Middleware[];
|
|
142
|
-
linkType?: gm.Middleware[];
|
|
143
|
-
};
|
|
144
|
-
GreenInvoiceDiscount?: {
|
|
145
|
-
'*'?: gm.Middleware[];
|
|
146
|
-
amount?: gm.Middleware[];
|
|
147
|
-
type?: gm.Middleware[];
|
|
148
|
-
};
|
|
149
52
|
GreenInvoiceClient?: {
|
|
150
53
|
'*'?: gm.Middleware[];
|
|
151
54
|
country?: gm.Middleware[];
|
|
@@ -163,38 +66,6 @@ export declare namespace GreenInvoiceModule {
|
|
|
163
66
|
mobile?: gm.Middleware[];
|
|
164
67
|
add?: gm.Middleware[];
|
|
165
68
|
};
|
|
166
|
-
GreenInvoiceIncome?: {
|
|
167
|
-
'*'?: gm.Middleware[];
|
|
168
|
-
currency?: gm.Middleware[];
|
|
169
|
-
currencyRate?: gm.Middleware[];
|
|
170
|
-
description?: gm.Middleware[];
|
|
171
|
-
itemId?: gm.Middleware[];
|
|
172
|
-
price?: gm.Middleware[];
|
|
173
|
-
quantity?: gm.Middleware[];
|
|
174
|
-
vatRate?: gm.Middleware[];
|
|
175
|
-
vatType?: gm.Middleware[];
|
|
176
|
-
};
|
|
177
|
-
GreenInvoicePayment?: {
|
|
178
|
-
'*'?: gm.Middleware[];
|
|
179
|
-
currency?: gm.Middleware[];
|
|
180
|
-
currencyRate?: gm.Middleware[];
|
|
181
|
-
date?: gm.Middleware[];
|
|
182
|
-
price?: gm.Middleware[];
|
|
183
|
-
type?: gm.Middleware[];
|
|
184
|
-
subType?: gm.Middleware[];
|
|
185
|
-
bankName?: gm.Middleware[];
|
|
186
|
-
bankBranch?: gm.Middleware[];
|
|
187
|
-
bankAccount?: gm.Middleware[];
|
|
188
|
-
chequeNum?: gm.Middleware[];
|
|
189
|
-
accountId?: gm.Middleware[];
|
|
190
|
-
transactionId?: gm.Middleware[];
|
|
191
|
-
appType?: gm.Middleware[];
|
|
192
|
-
cardType?: gm.Middleware[];
|
|
193
|
-
cardNum?: gm.Middleware[];
|
|
194
|
-
dealType?: gm.Middleware[];
|
|
195
|
-
numPayments?: gm.Middleware[];
|
|
196
|
-
firstPayment?: gm.Middleware[];
|
|
197
|
-
};
|
|
198
69
|
}
|
|
199
70
|
export {};
|
|
200
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/green-invoice/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,kBAAkB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/green-invoice/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,kBAAkB,CAuElC;AAvED,WAAiB,kBAAkB;IAOhC,CAAC;IAwBD,CAAC;IAuCD,CAAC;AACJ,CAAC,EAvEgB,kBAAkB,KAAlB,kBAAkB,QAuElC"}
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
import { Injector } from 'graphql-modules';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { _DOLLAR_defs_Country, _DOLLAR_defs_Currency, _DOLLAR_defs_Document, _DOLLAR_defs_DocumentInputNew_Input, _DOLLAR_defs_DocumentLang, _DOLLAR_defs_DocumentType, _DOLLAR_defs_ExpenseDocumentType, _DOLLAR_defs_VatType, query_getDocument_payment_items_cardType, query_getDocument_payment_items_type, queryInput_previewDocument_input_discount_type, queryInput_previewDocument_input_linkType } from '../../../../../green-invoice-graphql/src/index.js';
|
|
3
|
+
import type { DocumentDiscountType, DocumentIssueInput, DocumentLanguage, DocumentLinkType, DocumentPaymentRecordCardType, DocumentVatType, PaymentType, ResolversTypes } from '../../../__generated__/types.js';
|
|
4
4
|
import { CountryCode, Currency, DocumentType } from '../../../shared/enums.js';
|
|
5
5
|
import type { document_status } from '../../documents/types.js';
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function getGreenInvoiceDocumentType(documentType: DocumentType):
|
|
8
|
-
export declare function getTypeFromGreenInvoiceDocument(documentType:
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function getGreenInvoiceDocumentLanguage(
|
|
11
|
-
export declare function getLanguageFromGreenInvoiceDocument(lang: _DOLLAR_defs_DocumentLang):
|
|
12
|
-
export declare function getGreenInvoiceDocumentVatType(vatType:
|
|
13
|
-
export declare function getVatTypeFromGreenInvoiceDocument(vatType: _DOLLAR_defs_VatType):
|
|
14
|
-
export declare function getGreenInvoiceDocumentDiscountType(discountType:
|
|
15
|
-
export declare function getGreenInvoiceDocumentPaymentType(type:
|
|
16
|
-
export declare function getTypeFromGreenInvoiceDocumentPayment(type: query_getDocument_payment_items_type):
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function getGreenInvoiceDocumentPaymentDealType(dealType: GreenInvoicePaymentDealType): query_getDocument_payment_items_dealType;
|
|
24
|
-
export declare function getDealTypeFromGreenInvoiceDocumentPayment(dealType: query_getDocument_payment_items_dealType): GreenInvoicePaymentDealType;
|
|
25
|
-
export declare function getGreenInvoiceDocumentLinkType(linkType: GreenInvoiceLinkType): queryInput_previewDocument_input_linkType;
|
|
26
|
-
export declare function convertCurrencyToGreenInvoice(currency: Currency): GreenInvoiceCurrency;
|
|
27
|
-
export declare function greenInvoiceCountryToCountryCode(country: GreenInvoiceCountry): CountryCode;
|
|
28
|
-
export declare function countryCodeToGreenInvoiceCountry(countryCode: CountryCode): GreenInvoiceCountry;
|
|
6
|
+
export declare function normalizeGreenInvoiceDocumentType(rawType?: _DOLLAR_defs_DocumentType | _DOLLAR_defs_ExpenseDocumentType | number | null): DocumentType;
|
|
7
|
+
export declare function getGreenInvoiceDocumentType(documentType: DocumentType): _DOLLAR_defs_DocumentType;
|
|
8
|
+
export declare function getTypeFromGreenInvoiceDocument(documentType: _DOLLAR_defs_DocumentType): DocumentType;
|
|
9
|
+
export declare function getDocumentNameFromGreenInvoiceType(documentType: _DOLLAR_defs_DocumentType): string;
|
|
10
|
+
export declare function getGreenInvoiceDocumentLanguage(language: DocumentLanguage): _DOLLAR_defs_DocumentLang;
|
|
11
|
+
export declare function getLanguageFromGreenInvoiceDocument(lang: _DOLLAR_defs_DocumentLang): DocumentLanguage;
|
|
12
|
+
export declare function getGreenInvoiceDocumentVatType(vatType: DocumentVatType): _DOLLAR_defs_VatType;
|
|
13
|
+
export declare function getVatTypeFromGreenInvoiceDocument(vatType: _DOLLAR_defs_VatType): DocumentVatType;
|
|
14
|
+
export declare function getGreenInvoiceDocumentDiscountType(discountType: DocumentDiscountType): queryInput_previewDocument_input_discount_type;
|
|
15
|
+
export declare function getGreenInvoiceDocumentPaymentType(type: PaymentType): query_getDocument_payment_items_type;
|
|
16
|
+
export declare function getTypeFromGreenInvoiceDocumentPayment(type: query_getDocument_payment_items_type): PaymentType;
|
|
17
|
+
export declare function getGreenInvoiceDocumentPaymentCardType(cardType: DocumentPaymentRecordCardType): query_getDocument_payment_items_cardType;
|
|
18
|
+
export declare function getCardTypeFromGreenInvoiceDocumentPayment(cardType: query_getDocument_payment_items_cardType): DocumentPaymentRecordCardType;
|
|
19
|
+
export declare function getGreenInvoiceDocumentLinkType(linkType: DocumentLinkType): queryInput_previewDocument_input_linkType;
|
|
20
|
+
export declare function convertCurrencyToGreenInvoice(currency: Currency): _DOLLAR_defs_Currency;
|
|
21
|
+
export declare function greenInvoiceCountryToCountryCode(country: _DOLLAR_defs_Country): CountryCode;
|
|
22
|
+
export declare function countryCodeToGreenInvoiceCountry(countryCode: CountryCode): _DOLLAR_defs_Country;
|
|
29
23
|
export declare function greenInvoiceToDocumentStatus(greenInvoiceStatus: number): document_status;
|
|
30
24
|
export declare function getLinkedDocuments(injector: Injector, externalDocumentId: string): Promise<string[] | null>;
|
|
31
25
|
export declare function insertNewDocumentFromGreenInvoice(injector: Injector, greenInvoiceDoc: _DOLLAR_defs_Document, ownerId: string, preDictatedChargeId?: string | null): Promise<import("../../documents/types.js").IInsertDocumentsResult>;
|
|
32
26
|
export declare function getGreenInvoiceDocuments(injector: Injector, recursive?: boolean): Promise<_DOLLAR_defs_Document[]>;
|
|
33
|
-
export declare function convertDocumentInputIntoGreenInvoiceInput(initialInput:
|
|
34
|
-
export declare function
|
|
27
|
+
export declare function convertDocumentInputIntoGreenInvoiceInput(initialInput: DocumentIssueInput, injector: Injector): Promise<_DOLLAR_defs_DocumentInputNew_Input>;
|
|
28
|
+
export declare function convertGreenInvoiceDocumentToDocumentDraft(greenInvoiceDocument: _DOLLAR_defs_Document, injector: Injector): Promise<ResolversTypes['DocumentDraft']>;
|