@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/__generated__/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAuhC1D,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAoZ7B,OAAO,EAAE,QAAQ,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/__generated__/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAuhC1D,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAoZ7B,OAAO,EAAE,QAAQ,EAAE,CAAC;AA8LpB,OAAO,EAAE,YAAY,EAAE,CAAC;AAonCxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAs+D7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -40,7 +40,7 @@ export declare class GreenInvoiceClientProvider {
|
|
|
40
40
|
url: Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Url, "he" | "en" | "origin">;
|
|
41
41
|
})>>;
|
|
42
42
|
}) | null | undefined>;
|
|
43
|
-
addDocuments(...params: Parameters<Sdk['addDocument_mutation']>): Promise<(Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_AddedDocument, "number" | "id" | "
|
|
43
|
+
addDocuments(...params: Parameters<Sdk['addDocument_mutation']>): Promise<(Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_AddedDocument, "number" | "id" | "lang" | "signed"> & {
|
|
44
44
|
url: Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Url, "he" | "en" | "origin">;
|
|
45
45
|
}) | Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_ErrorResponse, "errorCode" | "errorMessage"> | null | undefined>;
|
|
46
46
|
previewDocuments(...params: Parameters<Sdk['previewDocument_query']>): Promise<Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_ErrorResponse, "errorCode" | "errorMessage"> | Pick<import("../../../../green-invoice-graphql/src/index.js").query_previewDocument_oneOf_0, "file"> | null | undefined>;
|
|
@@ -48,7 +48,7 @@ export declare class GreenInvoiceClientProvider {
|
|
|
48
48
|
getDocumentLinks(documentId: string): Promise<Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Url, "origin" | "he" | "en"> | null | undefined>;
|
|
49
49
|
private _batchLoadByIds;
|
|
50
50
|
private batchDocumentsByIds;
|
|
51
|
-
documentLoader: DataLoader<string, (Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Document, "number" | "type" | "id" | "description" | "vat" | "amount" | "currency" | "currencyRate" | "documentDate" | "
|
|
51
|
+
documentLoader: DataLoader<string, (Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Document, "number" | "type" | "id" | "description" | "vat" | "amount" | "currency" | "currencyRate" | "documentDate" | "status" | "remarks" | "footer" | "lang" | "rounding" | "signed" | "vatType" | "creationDate" | "amountDueVat" | "amountDueVatLocal" | "amountExcludeVat" | "amountExemptVat" | "amountLocal" | "amountOpened" | "calculatedAmountLocal" | "calculatedAmountOpenedLocal" | "calculatedIncomeAmountExcludeLocal" | "calculatedIncomeAmountLocal" | "calculatedPaymentAmountLocal" | "cancellable" | "cancelType" | "downloaded" | "ref" | "reverseCharge" | "skinId" | "taxConfirmationEligible" | "templateId" | "userName" | "vatLocal" | "vatRate"> & {
|
|
52
52
|
business: Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_Business, "accountantDocsEmailSettings" | "accountantEmails" | "accountantReportEmailSettings" | "accountingType" | "active" | "advanceNationalInsuranceRate" | "advanceTaxRate" | "bankDisplay" | "bankDisplayEn" | "deductionRate" | "documentsEmailSettings" | "emailSubjectType" | "exemption" | "incomeReportEmailSettings" | "incomeReportFormatType" | "reportSendingDay" | "senderEmailSettings" | "type">;
|
|
53
53
|
client: Pick<import("../../../../green-invoice-graphql/src/index.js").query_getDocument_client, "country" | "emails" | "id" | "name" | "phone" | "taxId" | "self" | "address" | "city" | "zip" | "fax" | "mobile" | "add" | "JSON">;
|
|
54
54
|
data: Pick<import("../../../../green-invoice-graphql/src/index.js")._DOLLAR_defs_DocumentData, "tags">;
|
|
@@ -63,7 +63,7 @@ export declare class GreenInvoiceClientProvider {
|
|
|
63
63
|
* Clients
|
|
64
64
|
* */
|
|
65
65
|
private batchClientsByIds;
|
|
66
|
-
clientLoader: DataLoader<string, Pick<_DOLLAR_defs_getClientResponse, "id" | "name" | "address" | "country" | "emails" | "category" | "remarks" | "
|
|
66
|
+
clientLoader: DataLoader<string, Pick<_DOLLAR_defs_getClientResponse, "id" | "name" | "address" | "country" | "emails" | "category" | "remarks" | "creationDate" | "lastUpdateDate" | "active" | "labels" | "phone" | "mobile" | "fax" | "contactPerson" | "city" | "zip" | "bankName" | "bankBranch" | "bankAccount" | "taxId" | "paymentTerms" | "department" | "accountingKey" | "incomeAmount" | "paymentAmount" | "balanceAmount" | "send" | "subCategory"> | null, import("node-cache").Key | import("node-cache").Key[]>;
|
|
67
67
|
createClient(input: _DOLLAR_defs_addClientRequest_Input): Promise<_DOLLAR_defs_getClientResponse>;
|
|
68
68
|
updateClient(args: updateClient_mutationMutationVariables): Promise<_DOLLAR_defs_getClientResponse>;
|
|
69
69
|
deleteClient(clientId: string): Promise<_DOLLAR_defs_getClientResponse>;
|
|
@@ -3,13 +3,8 @@ import * as gm from "graphql-modules";
|
|
|
3
3
|
export declare namespace DocumentsModule {
|
|
4
4
|
interface DefinedFields {
|
|
5
5
|
DocumentSuggestions: 'owner' | 'counterparty' | 'amount' | 'isIncome';
|
|
6
|
-
Query: '
|
|
7
|
-
Mutation: '
|
|
8
|
-
GenerateDocumentsResult: 'success' | 'errors';
|
|
9
|
-
DocumentDraft: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'language' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
|
|
10
|
-
DocumentIncomeRecord: 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vatRate' | 'vatType';
|
|
11
|
-
DocumentPaymentRecord: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'cardType' | 'cardNum' | 'numPayments' | 'firstPayment';
|
|
12
|
-
DocumentDiscount: 'amount' | 'type';
|
|
6
|
+
Query: 'documents' | 'documentsByFilters' | 'documentById' | 'recentDocumentsByBusiness' | 'recentDocumentsByClient' | 'recentIssuedDocumentsByType';
|
|
7
|
+
Mutation: 'insertDocument' | 'updateDocument' | 'deleteDocument' | 'uploadDocument' | 'batchUploadDocuments' | 'batchUploadDocumentsFromGoogleDrive' | 'closeDocument';
|
|
13
8
|
Unprocessed: 'id' | 'image' | 'file' | 'documentType' | 'isReviewed';
|
|
14
9
|
OtherDocument: 'id' | 'image' | 'file' | 'documentType' | 'isReviewed';
|
|
15
10
|
Invoice: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
|
|
@@ -38,21 +33,10 @@ export declare namespace DocumentsModule {
|
|
|
38
33
|
Charge: 'additionalDocuments';
|
|
39
34
|
}
|
|
40
35
|
interface DefinedEnumValues {
|
|
41
|
-
DocumentLanguage: 'ENGLISH' | 'HEBREW';
|
|
42
|
-
DocumentVatType: 'DEFAULT' | 'EXEMPT' | 'MIXED';
|
|
43
|
-
DocumentDiscountType: 'SUM' | 'PERCENTAGE';
|
|
44
|
-
PaymentType: 'TAX_DEDUCTION' | 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'WIRE_TRANSFER' | 'PAYPAL' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'OTHER';
|
|
45
|
-
DocumentLinkType: 'LINK' | 'CANCEL';
|
|
46
|
-
DocumentPaymentRecordCardType: 'UNKNOWN' | 'ISRACARD' | 'VISA' | 'MASTERCARD' | 'AMERICAN_EXPRESS' | 'DINERS';
|
|
47
36
|
DocumentType: 'INVOICE' | 'RECEIPT' | 'INVOICE_RECEIPT' | 'CREDIT_INVOICE' | 'PROFORMA' | 'UNPROCESSED' | 'OTHER';
|
|
48
37
|
DocumentStatus: 'OPEN' | 'CLOSED' | 'MANUALLY_CLOSED' | 'CANCELLED_BY_OTHER_DOC' | 'CANCELLED';
|
|
49
38
|
}
|
|
50
39
|
interface DefinedInputFields {
|
|
51
|
-
DocumentIssueInput: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'language' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
|
|
52
|
-
DocumentDiscountInput: 'amount' | 'type';
|
|
53
|
-
DocumentClientInput: 'country' | 'emails' | 'id' | 'name' | 'phone' | 'taxId' | 'self' | 'address' | 'city' | 'zip' | 'fax' | 'mobile' | 'add';
|
|
54
|
-
DocumentIncomeRecordInput: 'amount' | 'amountTotal' | 'catalogNum' | 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vat' | 'vatRate' | 'vatType';
|
|
55
|
-
DocumentPaymentRecordInput: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'cardType' | 'cardNum' | 'numPayments' | 'firstPayment';
|
|
56
40
|
DocumentsFilters: 'businessIDs' | 'ownerIDs' | 'fromDate' | 'toDate' | 'unmatched';
|
|
57
41
|
UpdateDocumentFieldsInput: 'vat' | 'serialNumber' | 'date' | 'amount' | 'documentType' | 'image' | 'file' | 'chargeId' | 'creditorId' | 'debtorId' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride';
|
|
58
42
|
InsertDocumentInput: 'image' | 'file' | 'vat' | 'documentType' | 'serialNumber' | 'date' | 'amount' | 'chargeId' | 'creditorId' | 'debtorId' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride';
|
|
@@ -67,38 +51,18 @@ export declare namespace DocumentsModule {
|
|
|
67
51
|
export type FinancialEntity = Types.FinancialEntity;
|
|
68
52
|
export type FinancialAmount = Types.FinancialAmount;
|
|
69
53
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
70
|
-
export type
|
|
54
|
+
export type Document = Pick<Types.Document, DefinedFields['Document']>;
|
|
55
|
+
export type DocumentsFilters = Pick<Types.DocumentsFilters, DefinedInputFields['DocumentsFilters']>;
|
|
71
56
|
export type UUID = Types.Uuid;
|
|
57
|
+
export type DocumentType = DefinedEnumValues['DocumentType'];
|
|
72
58
|
export type TimelessDate = Types.TimelessDate;
|
|
73
59
|
export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
|
|
74
|
-
export type GenerateDocumentsResult = Pick<Types.GenerateDocumentsResult, DefinedFields['GenerateDocumentsResult']>;
|
|
75
|
-
export type DocumentIssueInput = Pick<Types.DocumentIssueInput, DefinedInputFields['DocumentIssueInput']>;
|
|
76
|
-
export type Charge = Types.Charge;
|
|
77
|
-
export type FileScalar = Types.FileScalar;
|
|
78
|
-
export type DocumentType = DefinedEnumValues['DocumentType'];
|
|
79
|
-
export type DocumentLanguage = DefinedEnumValues['DocumentLanguage'];
|
|
80
|
-
export type Currency = Types.Currency;
|
|
81
|
-
export type DocumentVatType = DefinedEnumValues['DocumentVatType'];
|
|
82
|
-
export type DocumentDiscount = Pick<Types.DocumentDiscount, DefinedFields['DocumentDiscount']>;
|
|
83
|
-
export type Client = Types.Client;
|
|
84
|
-
export type DocumentIncomeRecord = Pick<Types.DocumentIncomeRecord, DefinedFields['DocumentIncomeRecord']>;
|
|
85
|
-
export type DocumentPaymentRecord = Pick<Types.DocumentPaymentRecord, DefinedFields['DocumentPaymentRecord']>;
|
|
86
|
-
export type DocumentLinkType = DefinedEnumValues['DocumentLinkType'];
|
|
87
|
-
export type PaymentType = DefinedEnumValues['PaymentType'];
|
|
88
|
-
export type DocumentPaymentRecordCardType = DefinedEnumValues['DocumentPaymentRecordCardType'];
|
|
89
|
-
export type DocumentDiscountType = DefinedEnumValues['DocumentDiscountType'];
|
|
90
|
-
export type DocumentDiscountInput = Pick<Types.DocumentDiscountInput, DefinedInputFields['DocumentDiscountInput']>;
|
|
91
|
-
export type DocumentClientInput = Pick<Types.DocumentClientInput, DefinedInputFields['DocumentClientInput']>;
|
|
92
|
-
export type DocumentIncomeRecordInput = Pick<Types.DocumentIncomeRecordInput, DefinedInputFields['DocumentIncomeRecordInput']>;
|
|
93
|
-
export type DocumentPaymentRecordInput = Pick<Types.DocumentPaymentRecordInput, DefinedInputFields['DocumentPaymentRecordInput']>;
|
|
94
|
-
export type CountryCode = Types.CountryCode;
|
|
95
|
-
export type Document = Pick<Types.Document, DefinedFields['Document']>;
|
|
96
|
-
export type DocumentsFilters = Pick<Types.DocumentsFilters, DefinedInputFields['DocumentsFilters']>;
|
|
97
60
|
export type InsertDocumentResult = Types.InsertDocumentResult;
|
|
98
61
|
export type InsertDocumentInput = Pick<Types.InsertDocumentInput, DefinedInputFields['InsertDocumentInput']>;
|
|
99
62
|
export type UpdateDocumentResult = Types.UpdateDocumentResult;
|
|
100
63
|
export type UpdateDocumentFieldsInput = Pick<Types.UpdateDocumentFieldsInput, DefinedInputFields['UpdateDocumentFieldsInput']>;
|
|
101
64
|
export type UploadDocumentResult = Types.UploadDocumentResult;
|
|
65
|
+
export type FileScalar = Types.FileScalar;
|
|
102
66
|
export type Linkable = Pick<Types.Linkable, DefinedFields['Linkable']>;
|
|
103
67
|
export type URL = Types.Url;
|
|
104
68
|
export type Unprocessed = Pick<Types.Unprocessed, DefinedFields['Unprocessed']>;
|
|
@@ -108,6 +72,7 @@ export declare namespace DocumentsModule {
|
|
|
108
72
|
export type CommonError = Types.CommonError;
|
|
109
73
|
export type InsertDocumentSuccessfulResult = Pick<Types.InsertDocumentSuccessfulResult, DefinedFields['InsertDocumentSuccessfulResult']>;
|
|
110
74
|
export type UploadDocumentSuccessfulResult = Pick<Types.UploadDocumentSuccessfulResult, DefinedFields['UploadDocumentSuccessfulResult']>;
|
|
75
|
+
export type Charge = Types.Charge;
|
|
111
76
|
export type CommonCharge = Types.CommonCharge;
|
|
112
77
|
export type FinancialCharge = Types.FinancialCharge;
|
|
113
78
|
export type ConversionCharge = Types.ConversionCharge;
|
|
@@ -124,11 +89,6 @@ export declare namespace DocumentsModule {
|
|
|
124
89
|
export type DocumentSuggestionsResolvers = Pick<Types.DocumentSuggestionsResolvers, DefinedFields['DocumentSuggestions']>;
|
|
125
90
|
export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
|
|
126
91
|
export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
|
|
127
|
-
export type GenerateDocumentsResultResolvers = Pick<Types.GenerateDocumentsResultResolvers, DefinedFields['GenerateDocumentsResult']>;
|
|
128
|
-
export type DocumentDraftResolvers = Pick<Types.DocumentDraftResolvers, DefinedFields['DocumentDraft']>;
|
|
129
|
-
export type DocumentIncomeRecordResolvers = Pick<Types.DocumentIncomeRecordResolvers, DefinedFields['DocumentIncomeRecord']>;
|
|
130
|
-
export type DocumentPaymentRecordResolvers = Pick<Types.DocumentPaymentRecordResolvers, DefinedFields['DocumentPaymentRecord']>;
|
|
131
|
-
export type DocumentDiscountResolvers = Pick<Types.DocumentDiscountResolvers, DefinedFields['DocumentDiscount']>;
|
|
132
92
|
export type UnprocessedResolvers = Pick<Types.UnprocessedResolvers, DefinedFields['Unprocessed'] | '__isTypeOf'>;
|
|
133
93
|
export type OtherDocumentResolvers = Pick<Types.OtherDocumentResolvers, DefinedFields['OtherDocument'] | '__isTypeOf'>;
|
|
134
94
|
export type InvoiceResolvers = Pick<Types.InvoiceResolvers, DefinedFields['Invoice'] | '__isTypeOf'>;
|
|
@@ -159,11 +119,6 @@ export declare namespace DocumentsModule {
|
|
|
159
119
|
DocumentSuggestions?: DocumentSuggestionsResolvers;
|
|
160
120
|
Query?: QueryResolvers;
|
|
161
121
|
Mutation?: MutationResolvers;
|
|
162
|
-
GenerateDocumentsResult?: GenerateDocumentsResultResolvers;
|
|
163
|
-
DocumentDraft?: DocumentDraftResolvers;
|
|
164
|
-
DocumentIncomeRecord?: DocumentIncomeRecordResolvers;
|
|
165
|
-
DocumentPaymentRecord?: DocumentPaymentRecordResolvers;
|
|
166
|
-
DocumentDiscount?: DocumentDiscountResolvers;
|
|
167
122
|
Unprocessed?: UnprocessedResolvers;
|
|
168
123
|
OtherDocument?: OtherDocumentResolvers;
|
|
169
124
|
Invoice?: InvoiceResolvers;
|
|
@@ -290,11 +245,6 @@ export declare namespace DocumentsModule {
|
|
|
290
245
|
};
|
|
291
246
|
Query?: {
|
|
292
247
|
'*'?: gm.Middleware[];
|
|
293
|
-
newDocumentDraftByCharge?: gm.Middleware[];
|
|
294
|
-
newDocumentDraftByDocument?: gm.Middleware[];
|
|
295
|
-
periodicalDocumentDrafts?: gm.Middleware[];
|
|
296
|
-
periodicalDocumentDraftsByContracts?: gm.Middleware[];
|
|
297
|
-
clientMonthlyChargeDraft?: gm.Middleware[];
|
|
298
248
|
documents?: gm.Middleware[];
|
|
299
249
|
documentsByFilters?: gm.Middleware[];
|
|
300
250
|
documentById?: gm.Middleware[];
|
|
@@ -304,9 +254,6 @@ export declare namespace DocumentsModule {
|
|
|
304
254
|
};
|
|
305
255
|
Mutation?: {
|
|
306
256
|
'*'?: gm.Middleware[];
|
|
307
|
-
issueGreenInvoiceDocuments?: gm.Middleware[];
|
|
308
|
-
issueGreenInvoiceDocument?: gm.Middleware[];
|
|
309
|
-
previewDocument?: gm.Middleware[];
|
|
310
257
|
insertDocument?: gm.Middleware[];
|
|
311
258
|
updateDocument?: gm.Middleware[];
|
|
312
259
|
deleteDocument?: gm.Middleware[];
|
|
@@ -315,67 +262,6 @@ export declare namespace DocumentsModule {
|
|
|
315
262
|
batchUploadDocumentsFromGoogleDrive?: gm.Middleware[];
|
|
316
263
|
closeDocument?: gm.Middleware[];
|
|
317
264
|
};
|
|
318
|
-
GenerateDocumentsResult?: {
|
|
319
|
-
'*'?: gm.Middleware[];
|
|
320
|
-
success?: gm.Middleware[];
|
|
321
|
-
errors?: gm.Middleware[];
|
|
322
|
-
};
|
|
323
|
-
DocumentDraft?: {
|
|
324
|
-
'*'?: gm.Middleware[];
|
|
325
|
-
description?: gm.Middleware[];
|
|
326
|
-
remarks?: gm.Middleware[];
|
|
327
|
-
footer?: gm.Middleware[];
|
|
328
|
-
type?: gm.Middleware[];
|
|
329
|
-
date?: gm.Middleware[];
|
|
330
|
-
dueDate?: gm.Middleware[];
|
|
331
|
-
language?: gm.Middleware[];
|
|
332
|
-
currency?: gm.Middleware[];
|
|
333
|
-
vatType?: gm.Middleware[];
|
|
334
|
-
discount?: gm.Middleware[];
|
|
335
|
-
rounding?: gm.Middleware[];
|
|
336
|
-
signed?: gm.Middleware[];
|
|
337
|
-
maxPayments?: gm.Middleware[];
|
|
338
|
-
client?: gm.Middleware[];
|
|
339
|
-
income?: gm.Middleware[];
|
|
340
|
-
payment?: gm.Middleware[];
|
|
341
|
-
linkedDocumentIds?: gm.Middleware[];
|
|
342
|
-
linkedPaymentId?: gm.Middleware[];
|
|
343
|
-
linkType?: gm.Middleware[];
|
|
344
|
-
};
|
|
345
|
-
DocumentIncomeRecord?: {
|
|
346
|
-
'*'?: gm.Middleware[];
|
|
347
|
-
currency?: gm.Middleware[];
|
|
348
|
-
currencyRate?: gm.Middleware[];
|
|
349
|
-
description?: gm.Middleware[];
|
|
350
|
-
itemId?: gm.Middleware[];
|
|
351
|
-
price?: gm.Middleware[];
|
|
352
|
-
quantity?: gm.Middleware[];
|
|
353
|
-
vatRate?: gm.Middleware[];
|
|
354
|
-
vatType?: gm.Middleware[];
|
|
355
|
-
};
|
|
356
|
-
DocumentPaymentRecord?: {
|
|
357
|
-
'*'?: gm.Middleware[];
|
|
358
|
-
currency?: gm.Middleware[];
|
|
359
|
-
currencyRate?: gm.Middleware[];
|
|
360
|
-
date?: gm.Middleware[];
|
|
361
|
-
price?: gm.Middleware[];
|
|
362
|
-
type?: gm.Middleware[];
|
|
363
|
-
bankName?: gm.Middleware[];
|
|
364
|
-
bankBranch?: gm.Middleware[];
|
|
365
|
-
bankAccount?: gm.Middleware[];
|
|
366
|
-
chequeNum?: gm.Middleware[];
|
|
367
|
-
accountId?: gm.Middleware[];
|
|
368
|
-
transactionId?: gm.Middleware[];
|
|
369
|
-
cardType?: gm.Middleware[];
|
|
370
|
-
cardNum?: gm.Middleware[];
|
|
371
|
-
numPayments?: gm.Middleware[];
|
|
372
|
-
firstPayment?: gm.Middleware[];
|
|
373
|
-
};
|
|
374
|
-
DocumentDiscount?: {
|
|
375
|
-
'*'?: gm.Middleware[];
|
|
376
|
-
amount?: gm.Middleware[];
|
|
377
|
-
type?: gm.Middleware[];
|
|
378
|
-
};
|
|
379
265
|
Unprocessed?: {
|
|
380
266
|
'*'?: gm.Middleware[];
|
|
381
267
|
id?: gm.Middleware[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/documents/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/documents/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,eAAe,CA4V/B;AA5VD,WAAiB,eAAe;IA+B7B,CAAC;IAKD,CAAC;IAMD,CAAC;IAwGD,CAAC;IAyMD,CAAC;AACJ,CAAC,EA5VgB,eAAe,KAAf,eAAe,QA4V/B"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DocumentType } from '../../../shared/enums.js';
|
|
2
1
|
import { document_type } from '../types.js';
|
|
3
2
|
export declare function isInvoice(type: document_type): boolean;
|
|
4
3
|
export declare function isReceipt(type: document_type): boolean;
|
|
5
|
-
export declare function getDocumentNameFromType(documentType: DocumentType): string;
|
|
@@ -7,24 +7,4 @@ export function isInvoice(type) {
|
|
|
7
7
|
export function isReceipt(type) {
|
|
8
8
|
return type === DocumentType.Receipt || type === DocumentType.InvoiceReceipt;
|
|
9
9
|
}
|
|
10
|
-
export function getDocumentNameFromType(documentType) {
|
|
11
|
-
switch (documentType) {
|
|
12
|
-
case DocumentType.Invoice:
|
|
13
|
-
return 'Tax Invoice';
|
|
14
|
-
case DocumentType.Proforma:
|
|
15
|
-
return 'Proforma Invoice';
|
|
16
|
-
case DocumentType.InvoiceReceipt:
|
|
17
|
-
return 'Invoice / Receipt';
|
|
18
|
-
case DocumentType.CreditInvoice:
|
|
19
|
-
return 'Credit Note';
|
|
20
|
-
case DocumentType.Receipt:
|
|
21
|
-
return 'Receipt';
|
|
22
|
-
case DocumentType.Other:
|
|
23
|
-
return 'Misc Document';
|
|
24
|
-
case DocumentType.Unprocessed:
|
|
25
|
-
return 'Unprocessed Document';
|
|
26
|
-
default:
|
|
27
|
-
throw new Error(`Unsupported document type: ${documentType}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
10
|
//# sourceMappingURL=common.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.helper.js","sourceRoot":"","sources":["../../../../../../src/modules/documents/helpers/common.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,UAAU,SAAS,CAAC,IAAmB;IAC3C,OAAO,CACL,IAAI,KAAK,YAAY,CAAC,OAAO;QAC7B,IAAI,KAAK,YAAY,CAAC,aAAa;QACnC,IAAI,KAAK,YAAY,CAAC,cAAc,CACrC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAmB;IAC3C,OAAO,IAAI,KAAK,YAAY,CAAC,OAAO,IAAI,IAAI,KAAK,YAAY,CAAC,cAAc,CAAC;AAC/E,CAAC
|
|
1
|
+
{"version":3,"file":"common.helper.js","sourceRoot":"","sources":["../../../../../../src/modules/documents/helpers/common.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,UAAU,SAAS,CAAC,IAAmB;IAC3C,OAAO,CACL,IAAI,KAAK,YAAY,CAAC,OAAO;QAC7B,IAAI,KAAK,YAAY,CAAC,aAAa;QACnC,IAAI,KAAK,YAAY,CAAC,cAAc,CACrC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAmB;IAC3C,OAAO,IAAI,KAAK,YAAY,CAAC,OAAO,IAAI,IAAI,KAAK,YAAY,CAAC,cAAc,CAAC;AAC/E,CAAC"}
|
|
@@ -2,24 +2,17 @@ import { createModule } from 'graphql-modules';
|
|
|
2
2
|
import { DocumentsProvider } from './providers/documents.provider.js';
|
|
3
3
|
import { IssuedDocumentsProvider } from './providers/issued-documents.provider.js';
|
|
4
4
|
import { documentSuggestionsResolvers } from './resolvers/document-suggestions.resolver.js';
|
|
5
|
-
import { documentsIssuingResolvers } from './resolvers/documents-issuing.resolver.js';
|
|
6
5
|
import { documentsResolvers } from './resolvers/documents.resolver.js';
|
|
7
6
|
import { issuedDocumentsResolvers } from './resolvers/issued-documents.resolver.js';
|
|
8
7
|
import documentSuggestions from './typeDefs/document-suggestions.graphql.js';
|
|
9
|
-
import DocumentsIssuing from './typeDefs/documents-issuing.graphql.js';
|
|
10
8
|
import documents from './typeDefs/documents.graphql.js';
|
|
11
9
|
import issuedDocuments from './typeDefs/issued-documents.graphql.js';
|
|
12
10
|
const __dirname = new URL('.', import.meta.url).pathname;
|
|
13
11
|
export const documentsModule = createModule({
|
|
14
12
|
id: 'documents',
|
|
15
13
|
dirname: __dirname,
|
|
16
|
-
typeDefs: [documents, documentSuggestions,
|
|
17
|
-
resolvers: [
|
|
18
|
-
documentsResolvers,
|
|
19
|
-
documentSuggestionsResolvers,
|
|
20
|
-
documentsIssuingResolvers,
|
|
21
|
-
issuedDocumentsResolvers,
|
|
22
|
-
],
|
|
14
|
+
typeDefs: [documents, documentSuggestions, issuedDocuments],
|
|
15
|
+
resolvers: [documentsResolvers, documentSuggestionsResolvers, issuedDocumentsResolvers],
|
|
23
16
|
providers: () => [DocumentsProvider, IssuedDocumentsProvider],
|
|
24
17
|
});
|
|
25
18
|
export * as DocumentsTypes from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/documents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/documents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAErE,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;IAC1C,EAAE,EAAE,WAAW;IACf,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,eAAe,CAAC;IAC3D,SAAS,EAAE,CAAC,kBAAkB,EAAE,4BAA4B,EAAE,wBAAwB,CAAC;IACvF,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;CAC9D,CAAC,CAAC;AAEH,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC"}
|
|
@@ -2,30 +2,87 @@ 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: 'greenInvoiceClient';
|
|
6
|
-
Mutation: '
|
|
5
|
+
Query: 'newDocumentInfoDraftByCharge' | 'newDocumentInfoDraftByDocument' | 'clientMonthlyChargesDrafts' | 'clientChargesDraftsByContracts' | 'clientMonthlyChargeDraft' | 'greenInvoiceClient';
|
|
6
|
+
Mutation: 'fetchIncomeDocuments' | 'issueGreenInvoiceDocuments' | 'previewGreenInvoiceDocument' | 'issueGreenInvoiceDocument';
|
|
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';
|
|
7
10
|
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';
|
|
8
13
|
IssuedDocumentInfo: 'originalDocument';
|
|
9
14
|
ClientIntegrations: 'greenInvoiceInfo';
|
|
10
15
|
}
|
|
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
|
+
}
|
|
11
35
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
12
|
-
export type
|
|
36
|
+
export type NewDocumentInfo = Pick<Types.NewDocumentInfo, DefinedFields['NewDocumentInfo']>;
|
|
13
37
|
export type UUID = Types.Uuid;
|
|
38
|
+
export type TimelessDate = Types.TimelessDate;
|
|
39
|
+
export type GreenInvoiceClient = Pick<Types.GreenInvoiceClient, DefinedFields['GreenInvoiceClient']>;
|
|
14
40
|
export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
|
|
15
41
|
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;
|
|
16
46
|
export type IssuedDocumentInfo = Types.IssuedDocumentInfo;
|
|
17
|
-
export type DocumentDraft = Types.DocumentDraft;
|
|
18
47
|
export type ClientIntegrations = Types.ClientIntegrations;
|
|
19
|
-
export type
|
|
48
|
+
export type DocumentType = Types.DocumentType;
|
|
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']>;
|
|
20
67
|
export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
|
|
21
68
|
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']>;
|
|
22
72
|
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']>;
|
|
23
75
|
export type IssuedDocumentInfoResolvers = Pick<Types.IssuedDocumentInfoResolvers, DefinedFields['IssuedDocumentInfo']>;
|
|
24
76
|
export type ClientIntegrationsResolvers = Pick<Types.ClientIntegrationsResolvers, DefinedFields['ClientIntegrations']>;
|
|
25
77
|
export interface Resolvers {
|
|
26
78
|
Query?: QueryResolvers;
|
|
27
79
|
Mutation?: MutationResolvers;
|
|
80
|
+
GenerateMonthlyClientDocumentsResult?: GenerateMonthlyClientDocumentsResultResolvers;
|
|
81
|
+
NewDocumentInfo?: NewDocumentInfoResolvers;
|
|
82
|
+
GreenInvoiceDiscount?: GreenInvoiceDiscountResolvers;
|
|
28
83
|
GreenInvoiceClient?: GreenInvoiceClientResolvers;
|
|
84
|
+
GreenInvoiceIncome?: GreenInvoiceIncomeResolvers;
|
|
85
|
+
GreenInvoicePayment?: GreenInvoicePaymentResolvers;
|
|
29
86
|
IssuedDocumentInfo?: IssuedDocumentInfoResolvers;
|
|
30
87
|
ClientIntegrations?: ClientIntegrationsResolvers;
|
|
31
88
|
}
|
|
@@ -35,11 +92,19 @@ export declare namespace GreenInvoiceModule {
|
|
|
35
92
|
};
|
|
36
93
|
Query?: {
|
|
37
94
|
'*'?: gm.Middleware[];
|
|
95
|
+
newDocumentInfoDraftByCharge?: gm.Middleware[];
|
|
96
|
+
newDocumentInfoDraftByDocument?: gm.Middleware[];
|
|
97
|
+
clientMonthlyChargesDrafts?: gm.Middleware[];
|
|
98
|
+
clientChargesDraftsByContracts?: gm.Middleware[];
|
|
99
|
+
clientMonthlyChargeDraft?: gm.Middleware[];
|
|
38
100
|
greenInvoiceClient?: gm.Middleware[];
|
|
39
101
|
};
|
|
40
102
|
Mutation?: {
|
|
41
103
|
'*'?: gm.Middleware[];
|
|
42
|
-
|
|
104
|
+
fetchIncomeDocuments?: gm.Middleware[];
|
|
105
|
+
issueGreenInvoiceDocuments?: gm.Middleware[];
|
|
106
|
+
previewGreenInvoiceDocument?: gm.Middleware[];
|
|
107
|
+
issueGreenInvoiceDocument?: gm.Middleware[];
|
|
43
108
|
};
|
|
44
109
|
IssuedDocumentInfo?: {
|
|
45
110
|
'*'?: gm.Middleware[];
|
|
@@ -49,6 +114,38 @@ export declare namespace GreenInvoiceModule {
|
|
|
49
114
|
'*'?: gm.Middleware[];
|
|
50
115
|
greenInvoiceInfo?: gm.Middleware[];
|
|
51
116
|
};
|
|
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
|
+
};
|
|
52
149
|
GreenInvoiceClient?: {
|
|
53
150
|
'*'?: gm.Middleware[];
|
|
54
151
|
country?: gm.Middleware[];
|
|
@@ -66,6 +163,38 @@ export declare namespace GreenInvoiceModule {
|
|
|
66
163
|
mobile?: gm.Middleware[];
|
|
67
164
|
add?: gm.Middleware[];
|
|
68
165
|
};
|
|
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
|
+
};
|
|
69
198
|
}
|
|
70
199
|
export {};
|
|
71
200
|
}
|
|
@@ -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,CA0MlC;AA1MD,WAAiB,kBAAkB;IAYhC,CAAC;IAaD,CAAC;IAQD,CAAC;IAyDD,CAAC;IA+GD,CAAC;AACJ,CAAC,EA1MgB,kBAAkB,KAAlB,kBAAkB,QA0MlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Injector } from 'graphql-modules';
|
|
2
|
+
import type { NewDocumentInfo } from '../../../__generated__/types.js';
|
|
3
|
+
import type { TimelessDateString } from '../../../shared/types/index.js';
|
|
4
|
+
import type { IGetContractsByIdsResult } from '../../contracts/types.js';
|
|
5
|
+
export declare const convertContractToDraft: (contract: IGetContractsByIdsResult, injector: Injector, issueMonth: TimelessDateString) => Promise<Omit<NewDocumentInfo, "client"> & {
|
|
6
|
+
client: string | undefined;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { addMonths, endOfMonth, format, startOfMonth, subMonths } from 'date-fns';
|
|
2
|
+
import { GraphQLError } from 'graphql';
|
|
3
|
+
import { dateToTimelessDateString } from '../../../shared/helpers/index.js';
|
|
4
|
+
import { normalizeDocumentType } from '../../documents/resolvers/common.js';
|
|
5
|
+
import { validateClientIntegrations } from '../../financial-entities/helpers/clients.helper.js';
|
|
6
|
+
import { BusinessesProvider } from '../../financial-entities/providers/businesses.provider.js';
|
|
7
|
+
import { ClientsProvider } from '../../financial-entities/providers/clients.provider.js';
|
|
8
|
+
export const convertContractToDraft = async (contract, injector, issueMonth) => {
|
|
9
|
+
const businessPromise = injector
|
|
10
|
+
.get(BusinessesProvider)
|
|
11
|
+
.getBusinessByIdLoader.load(contract.client_id);
|
|
12
|
+
const clientPromise = injector.get(ClientsProvider).getClientByIdLoader.load(contract.client_id);
|
|
13
|
+
const [business, client] = await Promise.all([businessPromise, clientPromise]);
|
|
14
|
+
if (!business) {
|
|
15
|
+
throw new GraphQLError(`Business ID="${contract.client_id}" not found`);
|
|
16
|
+
}
|
|
17
|
+
if (!client) {
|
|
18
|
+
throw new GraphQLError(`Client not found for business ID="${contract.client_id}"`);
|
|
19
|
+
}
|
|
20
|
+
const greenInvoiceId = validateClientIntegrations(client.integrations)?.greenInvoiceId;
|
|
21
|
+
if (!greenInvoiceId) {
|
|
22
|
+
throw new GraphQLError(`Green invoice match not found for business ID="${contract.client_id}"`);
|
|
23
|
+
}
|
|
24
|
+
const today = issueMonth ? addMonths(new Date(issueMonth), 1) : new Date();
|
|
25
|
+
const monthStart = dateToTimelessDateString(startOfMonth(today));
|
|
26
|
+
const monthEnd = dateToTimelessDateString(endOfMonth(today));
|
|
27
|
+
const year = today.getFullYear() + (today.getMonth() === 0 ? -1 : 0);
|
|
28
|
+
const month = format(subMonths(today, 1), 'MMMM');
|
|
29
|
+
const documentInput = {
|
|
30
|
+
remarks: `${contract.purchase_orders[0] ? `PO: ${contract.purchase_orders[0]}${contract.remarks ? ', ' : ''}` : ''}${contract.remarks ?? ''}`,
|
|
31
|
+
description: `GraphQL Hive Enterprise License - ${month} ${year}`,
|
|
32
|
+
type: normalizeDocumentType(contract.document_type),
|
|
33
|
+
date: monthStart,
|
|
34
|
+
dueDate: monthEnd,
|
|
35
|
+
lang: 'ENGLISH',
|
|
36
|
+
currency: contract.currency,
|
|
37
|
+
vatType: 'EXEMPT',
|
|
38
|
+
rounding: false,
|
|
39
|
+
signed: true,
|
|
40
|
+
client: greenInvoiceId,
|
|
41
|
+
income: [
|
|
42
|
+
{
|
|
43
|
+
description: `GraphQL Hive Enterprise License - ${month} ${year}`,
|
|
44
|
+
quantity: 1,
|
|
45
|
+
price: contract.amount,
|
|
46
|
+
currency: contract.currency,
|
|
47
|
+
vatType: 'EXEMPT',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
return documentInput;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=contract-to-draft.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-to-draft.helper.js","sourceRoot":"","sources":["../../../../../../src/modules/green-invoice/helpers/contract-to-draft.helper.ts"],"names":[],"mappings":"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"}
|