@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
|
@@ -1543,6 +1543,153 @@ export type Document = {
|
|
|
1543
1543
|
readonly image?: Maybe<Scalars['URL']['output']>;
|
|
1544
1544
|
readonly isReviewed?: Maybe<Scalars['Boolean']['output']>;
|
|
1545
1545
|
};
|
|
1546
|
+
/** client input */
|
|
1547
|
+
export type DocumentClientInput = {
|
|
1548
|
+
readonly add?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1549
|
+
readonly address?: InputMaybe<Scalars['String']['input']>;
|
|
1550
|
+
readonly city?: InputMaybe<Scalars['String']['input']>;
|
|
1551
|
+
readonly country?: InputMaybe<Scalars['CountryCode']['input']>;
|
|
1552
|
+
readonly emails?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
|
|
1553
|
+
readonly fax?: InputMaybe<Scalars['String']['input']>;
|
|
1554
|
+
readonly id: Scalars['UUID']['input'];
|
|
1555
|
+
readonly mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1556
|
+
readonly name?: InputMaybe<Scalars['String']['input']>;
|
|
1557
|
+
readonly phone?: InputMaybe<Scalars['String']['input']>;
|
|
1558
|
+
readonly self?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1559
|
+
readonly taxId?: InputMaybe<Scalars['String']['input']>;
|
|
1560
|
+
readonly zip?: InputMaybe<Scalars['String']['input']>;
|
|
1561
|
+
};
|
|
1562
|
+
/** document discount info */
|
|
1563
|
+
export type DocumentDiscount = {
|
|
1564
|
+
readonly __typename?: 'DocumentDiscount';
|
|
1565
|
+
readonly amount: Scalars['Float']['output'];
|
|
1566
|
+
readonly type: DocumentDiscountType;
|
|
1567
|
+
};
|
|
1568
|
+
/** discount input */
|
|
1569
|
+
export type DocumentDiscountInput = {
|
|
1570
|
+
readonly amount: Scalars['Float']['input'];
|
|
1571
|
+
readonly type: DocumentDiscountType;
|
|
1572
|
+
};
|
|
1573
|
+
/** discount type enum */
|
|
1574
|
+
export type DocumentDiscountType = 'PERCENTAGE' | 'SUM';
|
|
1575
|
+
/** for previewing/issuing document */
|
|
1576
|
+
export type DocumentDraft = {
|
|
1577
|
+
readonly __typename?: 'DocumentDraft';
|
|
1578
|
+
readonly client?: Maybe<Client>;
|
|
1579
|
+
readonly currency: Currency;
|
|
1580
|
+
readonly date?: Maybe<Scalars['String']['output']>;
|
|
1581
|
+
readonly description?: Maybe<Scalars['String']['output']>;
|
|
1582
|
+
readonly discount?: Maybe<DocumentDiscount>;
|
|
1583
|
+
readonly dueDate?: Maybe<Scalars['String']['output']>;
|
|
1584
|
+
readonly footer?: Maybe<Scalars['String']['output']>;
|
|
1585
|
+
readonly income?: Maybe<ReadonlyArray<DocumentIncomeRecord>>;
|
|
1586
|
+
readonly language: DocumentLanguage;
|
|
1587
|
+
readonly linkType?: Maybe<DocumentLinkType>;
|
|
1588
|
+
readonly linkedDocumentIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
1589
|
+
readonly linkedPaymentId?: Maybe<Scalars['String']['output']>;
|
|
1590
|
+
readonly maxPayments?: Maybe<Scalars['Int']['output']>;
|
|
1591
|
+
readonly payment?: Maybe<ReadonlyArray<DocumentPaymentRecord>>;
|
|
1592
|
+
readonly remarks?: Maybe<Scalars['String']['output']>;
|
|
1593
|
+
readonly rounding?: Maybe<Scalars['Boolean']['output']>;
|
|
1594
|
+
readonly signed?: Maybe<Scalars['Boolean']['output']>;
|
|
1595
|
+
readonly type: DocumentType;
|
|
1596
|
+
readonly vatType: DocumentVatType;
|
|
1597
|
+
};
|
|
1598
|
+
/** income info */
|
|
1599
|
+
export type DocumentIncomeRecord = {
|
|
1600
|
+
readonly __typename?: 'DocumentIncomeRecord';
|
|
1601
|
+
readonly currency: Currency;
|
|
1602
|
+
readonly currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
1603
|
+
readonly description: Scalars['String']['output'];
|
|
1604
|
+
readonly itemId?: Maybe<Scalars['String']['output']>;
|
|
1605
|
+
readonly price: Scalars['Float']['output'];
|
|
1606
|
+
readonly quantity: Scalars['Float']['output'];
|
|
1607
|
+
readonly vatRate?: Maybe<Scalars['Float']['output']>;
|
|
1608
|
+
readonly vatType: DocumentVatType;
|
|
1609
|
+
};
|
|
1610
|
+
/** income input */
|
|
1611
|
+
export type DocumentIncomeRecordInput = {
|
|
1612
|
+
readonly amount?: InputMaybe<Scalars['Float']['input']>;
|
|
1613
|
+
readonly amountTotal?: InputMaybe<Scalars['Float']['input']>;
|
|
1614
|
+
readonly catalogNum?: InputMaybe<Scalars['String']['input']>;
|
|
1615
|
+
readonly currency: Currency;
|
|
1616
|
+
readonly currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1617
|
+
readonly description: Scalars['String']['input'];
|
|
1618
|
+
readonly itemId?: InputMaybe<Scalars['String']['input']>;
|
|
1619
|
+
readonly price: Scalars['Float']['input'];
|
|
1620
|
+
readonly quantity: Scalars['Float']['input'];
|
|
1621
|
+
readonly vat?: InputMaybe<Scalars['Float']['input']>;
|
|
1622
|
+
readonly vatRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1623
|
+
readonly vatType: DocumentVatType;
|
|
1624
|
+
};
|
|
1625
|
+
/** input for issuing or previewing document */
|
|
1626
|
+
export type DocumentIssueInput = {
|
|
1627
|
+
readonly client?: InputMaybe<DocumentClientInput>;
|
|
1628
|
+
readonly currency: Currency;
|
|
1629
|
+
readonly date?: InputMaybe<Scalars['String']['input']>;
|
|
1630
|
+
readonly description?: InputMaybe<Scalars['String']['input']>;
|
|
1631
|
+
readonly discount?: InputMaybe<DocumentDiscountInput>;
|
|
1632
|
+
readonly dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
1633
|
+
readonly footer?: InputMaybe<Scalars['String']['input']>;
|
|
1634
|
+
readonly income?: InputMaybe<ReadonlyArray<DocumentIncomeRecordInput>>;
|
|
1635
|
+
readonly language: DocumentLanguage;
|
|
1636
|
+
readonly linkType?: InputMaybe<DocumentLinkType>;
|
|
1637
|
+
readonly linkedDocumentIds?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
|
|
1638
|
+
readonly linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
1639
|
+
readonly maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
1640
|
+
readonly payment?: InputMaybe<ReadonlyArray<DocumentPaymentRecordInput>>;
|
|
1641
|
+
readonly remarks?: InputMaybe<Scalars['String']['input']>;
|
|
1642
|
+
readonly rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1643
|
+
readonly signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1644
|
+
readonly type: DocumentType;
|
|
1645
|
+
readonly vatType: DocumentVatType;
|
|
1646
|
+
};
|
|
1647
|
+
/** document language enum */
|
|
1648
|
+
export type DocumentLanguage = 'ENGLISH' | 'HEBREW';
|
|
1649
|
+
/** link type enum */
|
|
1650
|
+
export type DocumentLinkType = 'CANCEL' | 'LINK';
|
|
1651
|
+
/** payment info */
|
|
1652
|
+
export type DocumentPaymentRecord = {
|
|
1653
|
+
readonly __typename?: 'DocumentPaymentRecord';
|
|
1654
|
+
readonly accountId?: Maybe<Scalars['String']['output']>;
|
|
1655
|
+
readonly bankAccount?: Maybe<Scalars['String']['output']>;
|
|
1656
|
+
readonly bankBranch?: Maybe<Scalars['String']['output']>;
|
|
1657
|
+
/** subType: GreenInvoicePaymentSubType */
|
|
1658
|
+
readonly bankName?: Maybe<Scalars['String']['output']>;
|
|
1659
|
+
readonly cardNum?: Maybe<Scalars['String']['output']>;
|
|
1660
|
+
/** appType: GreenInvoicePaymentAppType */
|
|
1661
|
+
readonly cardType?: Maybe<DocumentPaymentRecordCardType>;
|
|
1662
|
+
readonly chequeNum?: Maybe<Scalars['String']['output']>;
|
|
1663
|
+
readonly currency: Currency;
|
|
1664
|
+
readonly currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
1665
|
+
readonly date?: Maybe<Scalars['String']['output']>;
|
|
1666
|
+
readonly firstPayment?: Maybe<Scalars['Float']['output']>;
|
|
1667
|
+
/** dealType: GreenInvoicePaymentDealType */
|
|
1668
|
+
readonly numPayments?: Maybe<Scalars['Int']['output']>;
|
|
1669
|
+
readonly price: Scalars['Float']['output'];
|
|
1670
|
+
readonly transactionId?: Maybe<Scalars['String']['output']>;
|
|
1671
|
+
readonly type: PaymentType;
|
|
1672
|
+
};
|
|
1673
|
+
/** card type enum */
|
|
1674
|
+
export type DocumentPaymentRecordCardType = 'AMERICAN_EXPRESS' | 'DINERS' | 'ISRACARD' | 'MASTERCARD' | 'UNKNOWN' | 'VISA';
|
|
1675
|
+
/** payment input */
|
|
1676
|
+
export type DocumentPaymentRecordInput = {
|
|
1677
|
+
readonly accountId?: InputMaybe<Scalars['String']['input']>;
|
|
1678
|
+
readonly bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
1679
|
+
readonly bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
1680
|
+
readonly bankName?: InputMaybe<Scalars['String']['input']>;
|
|
1681
|
+
readonly cardNum?: InputMaybe<Scalars['String']['input']>;
|
|
1682
|
+
readonly cardType?: InputMaybe<DocumentPaymentRecordCardType>;
|
|
1683
|
+
readonly chequeNum?: InputMaybe<Scalars['String']['input']>;
|
|
1684
|
+
readonly currency: Currency;
|
|
1685
|
+
readonly currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1686
|
+
readonly date?: InputMaybe<Scalars['String']['input']>;
|
|
1687
|
+
readonly firstPayment?: InputMaybe<Scalars['Float']['input']>;
|
|
1688
|
+
readonly numPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
1689
|
+
readonly price: Scalars['Float']['input'];
|
|
1690
|
+
readonly transactionId?: InputMaybe<Scalars['String']['input']>;
|
|
1691
|
+
readonly type: PaymentType;
|
|
1692
|
+
};
|
|
1546
1693
|
/** Document status */
|
|
1547
1694
|
export type DocumentStatus = 'CANCELLED' | 'CANCELLED_BY_OTHER_DOC' | 'CLOSED' | 'MANUALLY_CLOSED' | 'OPEN';
|
|
1548
1695
|
/** represent document suggestions for missing info */
|
|
@@ -1558,6 +1705,8 @@ export type DocumentSuggestions = {
|
|
|
1558
1705
|
readonly owner?: Maybe<FinancialEntity>;
|
|
1559
1706
|
};
|
|
1560
1707
|
export { DocumentType };
|
|
1708
|
+
/** VAT type enum */
|
|
1709
|
+
export type DocumentVatType = 'DEFAULT' | 'EXEMPT' | 'MIXED';
|
|
1561
1710
|
/** input variables for documents filtering */
|
|
1562
1711
|
export type DocumentsFilters = {
|
|
1563
1712
|
readonly businessIDs?: InputMaybe<ReadonlyArray<Scalars['UUID']['input']>>;
|
|
@@ -1804,9 +1953,9 @@ export type Fund = {
|
|
|
1804
1953
|
readonly id: Scalars['UUID']['output'];
|
|
1805
1954
|
readonly name: Scalars['String']['output'];
|
|
1806
1955
|
};
|
|
1807
|
-
/** result type for
|
|
1808
|
-
export type
|
|
1809
|
-
readonly __typename?: '
|
|
1956
|
+
/** result type for generateDocuments */
|
|
1957
|
+
export type GenerateDocumentsResult = {
|
|
1958
|
+
readonly __typename?: 'GenerateDocumentsResult';
|
|
1810
1959
|
readonly errors?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
1811
1960
|
readonly success: Scalars['Boolean']['output'];
|
|
1812
1961
|
};
|
|
@@ -1819,7 +1968,7 @@ export type GreenInvoiceClient = {
|
|
|
1819
1968
|
readonly address?: Maybe<Scalars['String']['output']>;
|
|
1820
1969
|
readonly businessId: Scalars['UUID']['output'];
|
|
1821
1970
|
readonly city?: Maybe<Scalars['String']['output']>;
|
|
1822
|
-
readonly country?: Maybe<
|
|
1971
|
+
readonly country?: Maybe<Country>;
|
|
1823
1972
|
readonly emails?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
1824
1973
|
readonly fax?: Maybe<Scalars['String']['output']>;
|
|
1825
1974
|
readonly greenInvoiceId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -1830,124 +1979,6 @@ export type GreenInvoiceClient = {
|
|
|
1830
1979
|
readonly taxId?: Maybe<Scalars['String']['output']>;
|
|
1831
1980
|
readonly zip?: Maybe<Scalars['String']['output']>;
|
|
1832
1981
|
};
|
|
1833
|
-
/** client input */
|
|
1834
|
-
export type GreenInvoiceClientInput = {
|
|
1835
|
-
readonly add?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1836
|
-
readonly address?: InputMaybe<Scalars['String']['input']>;
|
|
1837
|
-
readonly businessId: Scalars['UUID']['input'];
|
|
1838
|
-
readonly city?: InputMaybe<Scalars['String']['input']>;
|
|
1839
|
-
readonly country?: InputMaybe<GreenInvoiceCountry>;
|
|
1840
|
-
readonly emails?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
|
|
1841
|
-
readonly fax?: InputMaybe<Scalars['String']['input']>;
|
|
1842
|
-
readonly greenInvoiceId?: InputMaybe<Scalars['String']['input']>;
|
|
1843
|
-
readonly mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1844
|
-
readonly name?: InputMaybe<Scalars['String']['input']>;
|
|
1845
|
-
readonly phone?: InputMaybe<Scalars['String']['input']>;
|
|
1846
|
-
readonly self?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1847
|
-
readonly taxId?: InputMaybe<Scalars['String']['input']>;
|
|
1848
|
-
readonly zip?: InputMaybe<Scalars['String']['input']>;
|
|
1849
|
-
};
|
|
1850
|
-
/** country enum (abbreviated for brevity - add more as needed) */
|
|
1851
|
-
export type GreenInvoiceCountry = 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
|
|
1852
|
-
/** discount info */
|
|
1853
|
-
export type GreenInvoiceDiscount = {
|
|
1854
|
-
readonly __typename?: 'GreenInvoiceDiscount';
|
|
1855
|
-
readonly amount: Scalars['Float']['output'];
|
|
1856
|
-
readonly type: GreenInvoiceDiscountType;
|
|
1857
|
-
};
|
|
1858
|
-
/** discount input */
|
|
1859
|
-
export type GreenInvoiceDiscountInput = {
|
|
1860
|
-
readonly amount: Scalars['Float']['input'];
|
|
1861
|
-
readonly type: GreenInvoiceDiscountType;
|
|
1862
|
-
};
|
|
1863
|
-
/** discount type enum */
|
|
1864
|
-
export type GreenInvoiceDiscountType = 'PERCENTAGE' | 'SUM';
|
|
1865
|
-
/** document language enum */
|
|
1866
|
-
export type GreenInvoiceDocumentLang = 'ENGLISH' | 'HEBREW';
|
|
1867
|
-
/** income info */
|
|
1868
|
-
export type GreenInvoiceIncome = {
|
|
1869
|
-
readonly __typename?: 'GreenInvoiceIncome';
|
|
1870
|
-
readonly currency: Currency;
|
|
1871
|
-
readonly currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
1872
|
-
readonly description: Scalars['String']['output'];
|
|
1873
|
-
readonly itemId?: Maybe<Scalars['String']['output']>;
|
|
1874
|
-
readonly price: Scalars['Float']['output'];
|
|
1875
|
-
readonly quantity: Scalars['Float']['output'];
|
|
1876
|
-
readonly vatRate?: Maybe<Scalars['Float']['output']>;
|
|
1877
|
-
readonly vatType: GreenInvoiceVatType;
|
|
1878
|
-
};
|
|
1879
|
-
/** link type enum */
|
|
1880
|
-
export type GreenInvoiceLinkType = 'CANCEL' | 'LINK';
|
|
1881
|
-
/** payment info */
|
|
1882
|
-
export type GreenInvoicePayment = {
|
|
1883
|
-
readonly __typename?: 'GreenInvoicePayment';
|
|
1884
|
-
readonly accountId?: Maybe<Scalars['String']['output']>;
|
|
1885
|
-
readonly appType?: Maybe<GreenInvoicePaymentAppType>;
|
|
1886
|
-
readonly bankAccount?: Maybe<Scalars['String']['output']>;
|
|
1887
|
-
readonly bankBranch?: Maybe<Scalars['String']['output']>;
|
|
1888
|
-
readonly bankName?: Maybe<Scalars['String']['output']>;
|
|
1889
|
-
readonly cardNum?: Maybe<Scalars['String']['output']>;
|
|
1890
|
-
readonly cardType?: Maybe<GreenInvoicePaymentCardType>;
|
|
1891
|
-
readonly chequeNum?: Maybe<Scalars['String']['output']>;
|
|
1892
|
-
readonly currency: Currency;
|
|
1893
|
-
readonly currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
1894
|
-
readonly date?: Maybe<Scalars['String']['output']>;
|
|
1895
|
-
readonly dealType?: Maybe<GreenInvoicePaymentDealType>;
|
|
1896
|
-
readonly firstPayment?: Maybe<Scalars['Float']['output']>;
|
|
1897
|
-
readonly numPayments?: Maybe<Scalars['Int']['output']>;
|
|
1898
|
-
readonly price: Scalars['Float']['output'];
|
|
1899
|
-
readonly subType?: Maybe<GreenInvoicePaymentSubType>;
|
|
1900
|
-
readonly transactionId?: Maybe<Scalars['String']['output']>;
|
|
1901
|
-
readonly type: GreenInvoicePaymentType;
|
|
1902
|
-
};
|
|
1903
|
-
/** payment app type enum */
|
|
1904
|
-
export type GreenInvoicePaymentAppType = 'APPLE_PAY' | 'BIT' | 'CULO' | 'GOOGLE_PAY' | 'PAYBOX' | 'PAY_BY_PEPPER';
|
|
1905
|
-
/** card type enum */
|
|
1906
|
-
export type GreenInvoicePaymentCardType = 'AMERICAN_EXPRESS' | 'DINERS' | 'ISRACARD' | 'MASTERCARD' | 'UNKNOWN' | 'VISA';
|
|
1907
|
-
/** deal type enum */
|
|
1908
|
-
export type GreenInvoicePaymentDealType = 'CREDIT' | 'DEFERRED' | 'OTHER' | 'PAYMENTS' | 'RECURRING' | 'STANDARD';
|
|
1909
|
-
/** income input */
|
|
1910
|
-
export type GreenInvoicePaymentIncomeInput = {
|
|
1911
|
-
readonly amount?: InputMaybe<Scalars['Float']['input']>;
|
|
1912
|
-
readonly amountTotal?: InputMaybe<Scalars['Float']['input']>;
|
|
1913
|
-
readonly catalogNum?: InputMaybe<Scalars['String']['input']>;
|
|
1914
|
-
readonly currency: Currency;
|
|
1915
|
-
readonly currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1916
|
-
readonly description: Scalars['String']['input'];
|
|
1917
|
-
readonly itemId?: InputMaybe<Scalars['String']['input']>;
|
|
1918
|
-
readonly price: Scalars['Float']['input'];
|
|
1919
|
-
readonly quantity: Scalars['Float']['input'];
|
|
1920
|
-
readonly vat?: InputMaybe<Scalars['Float']['input']>;
|
|
1921
|
-
readonly vatRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1922
|
-
readonly vatType: GreenInvoiceVatType;
|
|
1923
|
-
};
|
|
1924
|
-
/** payment input */
|
|
1925
|
-
export type GreenInvoicePaymentInput = {
|
|
1926
|
-
readonly accountId?: InputMaybe<Scalars['String']['input']>;
|
|
1927
|
-
readonly appType?: InputMaybe<GreenInvoicePaymentAppType>;
|
|
1928
|
-
readonly bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
1929
|
-
readonly bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
1930
|
-
readonly bankName?: InputMaybe<Scalars['String']['input']>;
|
|
1931
|
-
readonly cardNum?: InputMaybe<Scalars['String']['input']>;
|
|
1932
|
-
readonly cardType?: InputMaybe<GreenInvoicePaymentCardType>;
|
|
1933
|
-
readonly chequeNum?: InputMaybe<Scalars['String']['input']>;
|
|
1934
|
-
readonly currency: Currency;
|
|
1935
|
-
readonly currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1936
|
-
readonly date?: InputMaybe<Scalars['String']['input']>;
|
|
1937
|
-
readonly dealType?: InputMaybe<GreenInvoicePaymentDealType>;
|
|
1938
|
-
readonly firstPayment?: InputMaybe<Scalars['Float']['input']>;
|
|
1939
|
-
readonly numPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
1940
|
-
readonly price: Scalars['Float']['input'];
|
|
1941
|
-
readonly subType?: InputMaybe<GreenInvoicePaymentSubType>;
|
|
1942
|
-
readonly transactionId?: InputMaybe<Scalars['String']['input']>;
|
|
1943
|
-
readonly type: GreenInvoicePaymentType;
|
|
1944
|
-
};
|
|
1945
|
-
/** payment sub type enum */
|
|
1946
|
-
export type GreenInvoicePaymentSubType = 'BITCOIN' | 'BUYME_VOUCHER' | 'ETHEREUM' | 'GIFT_CARD' | 'MONEY_EQUAL' | 'NII_EMPLOYEE_DEDUCTION' | 'PAYONEER' | 'V_CHECK';
|
|
1947
|
-
/** payment type enum */
|
|
1948
|
-
export type GreenInvoicePaymentType = 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'OTHER' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'PAYPAL' | 'TAX_DEDUCTION' | 'WIRE_TRANSFER';
|
|
1949
|
-
/** VAT type enum */
|
|
1950
|
-
export type GreenInvoiceVatType = 'DEFAULT' | 'EXEMPT' | 'MIXED';
|
|
1951
1982
|
/** IFRS reporting option enum (דווח בחלופה - יישום תקני חשבונאות) */
|
|
1952
1983
|
export type IfrsReportingOption =
|
|
1953
1984
|
/** No IFRS implementation (במידה ואין יישום תקני חשבונאות) */
|
|
@@ -2172,7 +2203,7 @@ export type IssuedDocumentInfo = {
|
|
|
2172
2203
|
readonly externalId: Scalars['String']['output'];
|
|
2173
2204
|
readonly id: Scalars['ID']['output'];
|
|
2174
2205
|
readonly linkedDocuments?: Maybe<ReadonlyArray<FinancialDocument>>;
|
|
2175
|
-
readonly originalDocument?: Maybe<
|
|
2206
|
+
readonly originalDocument?: Maybe<DocumentDraft>;
|
|
2176
2207
|
/** Status of the issued document in the external system */
|
|
2177
2208
|
readonly status: DocumentStatus;
|
|
2178
2209
|
};
|
|
@@ -2373,7 +2404,6 @@ export type Mutation = {
|
|
|
2373
2404
|
readonly deleteTag: Scalars['Boolean']['output'];
|
|
2374
2405
|
readonly digestGmailMessages: Scalars['Boolean']['output'];
|
|
2375
2406
|
readonly fetchDeelDocuments: ReadonlyArray<Charge>;
|
|
2376
|
-
readonly fetchIncomeDocuments: ReadonlyArray<Document>;
|
|
2377
2407
|
readonly flagForeignFeeTransactions: FlagForeignFeeTransactionsResult;
|
|
2378
2408
|
readonly generateBalanceCharge: FinancialCharge;
|
|
2379
2409
|
readonly generateBankDepositsRevaluationCharge: FinancialCharge;
|
|
@@ -2397,16 +2427,17 @@ export type Mutation = {
|
|
|
2397
2427
|
readonly insertSalaryRecordsFromFile: Scalars['Boolean']['output'];
|
|
2398
2428
|
readonly insertTaxCategory: TaxCategory;
|
|
2399
2429
|
readonly issueGreenInvoiceDocument: Charge;
|
|
2400
|
-
readonly issueGreenInvoiceDocuments:
|
|
2430
|
+
readonly issueGreenInvoiceDocuments: GenerateDocumentsResult;
|
|
2401
2431
|
readonly lockLedgerRecords: Scalars['Boolean']['output'];
|
|
2402
2432
|
readonly mergeBusinesses: Business;
|
|
2403
2433
|
readonly mergeCharges: MergeChargeResult;
|
|
2404
2434
|
readonly mergeChargesByTransactionReference: MergeChargesByTransactionReferenceResult;
|
|
2405
2435
|
readonly pong?: Maybe<Scalars['Boolean']['output']>;
|
|
2406
|
-
readonly
|
|
2436
|
+
readonly previewDocument: Scalars['FileScalar']['output'];
|
|
2407
2437
|
readonly regenerateLedgerRecords: GeneratedLedgerRecords;
|
|
2408
2438
|
readonly startGmailListener: Scalars['Boolean']['output'];
|
|
2409
2439
|
readonly stopGmailListener: Scalars['Boolean']['output'];
|
|
2440
|
+
readonly syncGreenInvoiceDocuments: ReadonlyArray<Document>;
|
|
2410
2441
|
readonly uncategorizePartialBusinessTripExpense: Scalars['Boolean']['output'];
|
|
2411
2442
|
readonly updateAdminBusiness: AdminBusiness;
|
|
2412
2443
|
readonly updateAdminContext: AdminContext;
|
|
@@ -2585,11 +2616,6 @@ export type MutationDeleteTagArgs = {
|
|
|
2585
2616
|
id: Scalars['UUID']['input'];
|
|
2586
2617
|
};
|
|
2587
2618
|
/** mutation root */
|
|
2588
|
-
export type MutationFetchIncomeDocumentsArgs = {
|
|
2589
|
-
ownerId: Scalars['UUID']['input'];
|
|
2590
|
-
singlePageLimit?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2591
|
-
};
|
|
2592
|
-
/** mutation root */
|
|
2593
2619
|
export type MutationGenerateBalanceChargeArgs = {
|
|
2594
2620
|
balanceRecords: ReadonlyArray<InsertMiscExpenseInput>;
|
|
2595
2621
|
description: Scalars['String']['input'];
|
|
@@ -2689,12 +2715,12 @@ export type MutationIssueGreenInvoiceDocumentArgs = {
|
|
|
2689
2715
|
attachment?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2690
2716
|
chargeId?: InputMaybe<Scalars['UUID']['input']>;
|
|
2691
2717
|
emailContent?: InputMaybe<Scalars['String']['input']>;
|
|
2692
|
-
input:
|
|
2718
|
+
input: DocumentIssueInput;
|
|
2693
2719
|
sendEmail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2694
2720
|
};
|
|
2695
2721
|
/** mutation root */
|
|
2696
2722
|
export type MutationIssueGreenInvoiceDocumentsArgs = {
|
|
2697
|
-
generateDocumentsInfo: ReadonlyArray<
|
|
2723
|
+
generateDocumentsInfo: ReadonlyArray<DocumentIssueInput>;
|
|
2698
2724
|
};
|
|
2699
2725
|
/** mutation root */
|
|
2700
2726
|
export type MutationLockLedgerRecordsArgs = {
|
|
@@ -2712,14 +2738,19 @@ export type MutationMergeChargesArgs = {
|
|
|
2712
2738
|
fields?: InputMaybe<UpdateChargeInput>;
|
|
2713
2739
|
};
|
|
2714
2740
|
/** mutation root */
|
|
2715
|
-
export type
|
|
2716
|
-
input:
|
|
2741
|
+
export type MutationPreviewDocumentArgs = {
|
|
2742
|
+
input: DocumentIssueInput;
|
|
2717
2743
|
};
|
|
2718
2744
|
/** mutation root */
|
|
2719
2745
|
export type MutationRegenerateLedgerRecordsArgs = {
|
|
2720
2746
|
chargeId: Scalars['UUID']['input'];
|
|
2721
2747
|
};
|
|
2722
2748
|
/** mutation root */
|
|
2749
|
+
export type MutationSyncGreenInvoiceDocumentsArgs = {
|
|
2750
|
+
ownerId: Scalars['UUID']['input'];
|
|
2751
|
+
singlePageLimit?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2752
|
+
};
|
|
2753
|
+
/** mutation root */
|
|
2723
2754
|
export type MutationUncategorizePartialBusinessTripExpenseArgs = {
|
|
2724
2755
|
businessTripExpenseId: Scalars['UUID']['input'];
|
|
2725
2756
|
transactionId: Scalars['UUID']['input'];
|
|
@@ -2887,51 +2918,6 @@ export type MutationUploadDocumentArgs = {
|
|
|
2887
2918
|
chargeId?: InputMaybe<Scalars['UUID']['input']>;
|
|
2888
2919
|
file: Scalars['FileScalar']['input'];
|
|
2889
2920
|
};
|
|
2890
|
-
/** for previewing/issuing document */
|
|
2891
|
-
export type NewDocumentInfo = {
|
|
2892
|
-
readonly __typename?: 'NewDocumentInfo';
|
|
2893
|
-
readonly client?: Maybe<GreenInvoiceClient>;
|
|
2894
|
-
readonly currency: Currency;
|
|
2895
|
-
readonly date?: Maybe<Scalars['String']['output']>;
|
|
2896
|
-
readonly description?: Maybe<Scalars['String']['output']>;
|
|
2897
|
-
readonly discount?: Maybe<GreenInvoiceDiscount>;
|
|
2898
|
-
readonly dueDate?: Maybe<Scalars['String']['output']>;
|
|
2899
|
-
readonly footer?: Maybe<Scalars['String']['output']>;
|
|
2900
|
-
readonly income?: Maybe<ReadonlyArray<GreenInvoiceIncome>>;
|
|
2901
|
-
readonly lang: GreenInvoiceDocumentLang;
|
|
2902
|
-
readonly linkType?: Maybe<GreenInvoiceLinkType>;
|
|
2903
|
-
readonly linkedDocumentIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
2904
|
-
readonly linkedPaymentId?: Maybe<Scalars['String']['output']>;
|
|
2905
|
-
readonly maxPayments?: Maybe<Scalars['Int']['output']>;
|
|
2906
|
-
readonly payment?: Maybe<ReadonlyArray<GreenInvoicePayment>>;
|
|
2907
|
-
readonly remarks?: Maybe<Scalars['String']['output']>;
|
|
2908
|
-
readonly rounding?: Maybe<Scalars['Boolean']['output']>;
|
|
2909
|
-
readonly signed?: Maybe<Scalars['Boolean']['output']>;
|
|
2910
|
-
readonly type: DocumentType;
|
|
2911
|
-
readonly vatType: GreenInvoiceVatType;
|
|
2912
|
-
};
|
|
2913
|
-
/** input for previewing document */
|
|
2914
|
-
export type NewDocumentInput = {
|
|
2915
|
-
readonly client?: InputMaybe<GreenInvoiceClientInput>;
|
|
2916
|
-
readonly currency: Currency;
|
|
2917
|
-
readonly date?: InputMaybe<Scalars['String']['input']>;
|
|
2918
|
-
readonly description?: InputMaybe<Scalars['String']['input']>;
|
|
2919
|
-
readonly discount?: InputMaybe<GreenInvoiceDiscountInput>;
|
|
2920
|
-
readonly dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
2921
|
-
readonly footer?: InputMaybe<Scalars['String']['input']>;
|
|
2922
|
-
readonly income?: InputMaybe<ReadonlyArray<GreenInvoicePaymentIncomeInput>>;
|
|
2923
|
-
readonly lang: GreenInvoiceDocumentLang;
|
|
2924
|
-
readonly linkType?: InputMaybe<GreenInvoiceLinkType>;
|
|
2925
|
-
readonly linkedDocumentIds?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
|
|
2926
|
-
readonly linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
2927
|
-
readonly maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
2928
|
-
readonly payment?: InputMaybe<ReadonlyArray<GreenInvoicePaymentInput>>;
|
|
2929
|
-
readonly remarks?: InputMaybe<Scalars['String']['input']>;
|
|
2930
|
-
readonly rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2931
|
-
readonly signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2932
|
-
readonly type: DocumentType;
|
|
2933
|
-
readonly vatType: GreenInvoiceVatType;
|
|
2934
|
-
};
|
|
2935
2921
|
/** processed non-financial document */
|
|
2936
2922
|
export type OtherDocument = Document & Linkable & {
|
|
2937
2923
|
readonly __typename?: 'OtherDocument';
|
|
@@ -2978,6 +2964,8 @@ export type PaginatedFinancialEntities = {
|
|
|
2978
2964
|
readonly nodes: ReadonlyArray<FinancialEntity>;
|
|
2979
2965
|
readonly pageInfo: PageInfo;
|
|
2980
2966
|
};
|
|
2967
|
+
/** payment type enum */
|
|
2968
|
+
export type PaymentType = 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'OTHER' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'PAYPAL' | 'TAX_DEDUCTION' | 'WIRE_TRANSFER';
|
|
2981
2969
|
/** record type of PCN874 report */
|
|
2982
2970
|
export type Pcn874RecordType = 'C' | 'H' | 'I' | 'K' | 'L1' | 'L2' | 'M' | 'P' | 'R' | 'S1' | 'S2' | 'T' | 'Y';
|
|
2983
2971
|
/** record of PCN874 report */
|
|
@@ -3099,9 +3087,7 @@ export type Query = {
|
|
|
3099
3087
|
readonly chargesWithLedgerChanges: ReadonlyArray<ChargesWithLedgerChangesResult>;
|
|
3100
3088
|
readonly chargesWithMissingRequiredInfo: PaginatedCharges;
|
|
3101
3089
|
readonly client: Client;
|
|
3102
|
-
readonly
|
|
3103
|
-
readonly clientMonthlyChargeDraft: NewDocumentInfo;
|
|
3104
|
-
readonly clientMonthlyChargesDrafts: ReadonlyArray<NewDocumentInfo>;
|
|
3090
|
+
readonly clientMonthlyChargeDraft: DocumentDraft;
|
|
3105
3091
|
readonly contractsByAdmin: ReadonlyArray<Contract>;
|
|
3106
3092
|
readonly contractsByClient: ReadonlyArray<Contract>;
|
|
3107
3093
|
readonly contractsById: Contract;
|
|
@@ -3130,10 +3116,12 @@ export type Query = {
|
|
|
3130
3116
|
readonly ledgerRecordsByDates: ReadonlyArray<LedgerRecord>;
|
|
3131
3117
|
readonly ledgerRecordsByFinancialEntity: ReadonlyArray<LedgerRecord>;
|
|
3132
3118
|
readonly miscExpensesByCharge: ReadonlyArray<MiscExpense>;
|
|
3133
|
-
readonly
|
|
3134
|
-
readonly
|
|
3119
|
+
readonly newDocumentDraftByCharge: DocumentDraft;
|
|
3120
|
+
readonly newDocumentDraftByDocument: DocumentDraft;
|
|
3135
3121
|
readonly pcnByDate: ReadonlyArray<Pcn874Records>;
|
|
3136
3122
|
readonly pcnFile: PcnFileResult;
|
|
3123
|
+
readonly periodicalDocumentDrafts: ReadonlyArray<DocumentDraft>;
|
|
3124
|
+
readonly periodicalDocumentDraftsByContracts: ReadonlyArray<DocumentDraft>;
|
|
3137
3125
|
readonly ping?: Maybe<Scalars['Boolean']['output']>;
|
|
3138
3126
|
readonly profitAndLossReport: ProfitAndLossReport;
|
|
3139
3127
|
readonly recentDocumentsByBusiness: ReadonlyArray<Document>;
|
|
@@ -3233,20 +3221,11 @@ export type QueryClientArgs = {
|
|
|
3233
3221
|
businessId: Scalars['UUID']['input'];
|
|
3234
3222
|
};
|
|
3235
3223
|
/** query root */
|
|
3236
|
-
export type QueryClientChargesDraftsByContractsArgs = {
|
|
3237
|
-
contractIds: ReadonlyArray<Scalars['UUID']['input']>;
|
|
3238
|
-
issueMonth: Scalars['TimelessDate']['input'];
|
|
3239
|
-
};
|
|
3240
|
-
/** query root */
|
|
3241
3224
|
export type QueryClientMonthlyChargeDraftArgs = {
|
|
3242
3225
|
clientId: Scalars['UUID']['input'];
|
|
3243
3226
|
issueMonth: Scalars['TimelessDate']['input'];
|
|
3244
3227
|
};
|
|
3245
3228
|
/** query root */
|
|
3246
|
-
export type QueryClientMonthlyChargesDraftsArgs = {
|
|
3247
|
-
issueMonth: Scalars['TimelessDate']['input'];
|
|
3248
|
-
};
|
|
3249
|
-
/** query root */
|
|
3250
3229
|
export type QueryContractsByAdminArgs = {
|
|
3251
3230
|
adminId: Scalars['UUID']['input'];
|
|
3252
3231
|
};
|
|
@@ -3340,11 +3319,11 @@ export type QueryMiscExpensesByChargeArgs = {
|
|
|
3340
3319
|
chargeId: Scalars['UUID']['input'];
|
|
3341
3320
|
};
|
|
3342
3321
|
/** query root */
|
|
3343
|
-
export type
|
|
3322
|
+
export type QueryNewDocumentDraftByChargeArgs = {
|
|
3344
3323
|
chargeId: Scalars['UUID']['input'];
|
|
3345
3324
|
};
|
|
3346
3325
|
/** query root */
|
|
3347
|
-
export type
|
|
3326
|
+
export type QueryNewDocumentDraftByDocumentArgs = {
|
|
3348
3327
|
documentId: Scalars['UUID']['input'];
|
|
3349
3328
|
};
|
|
3350
3329
|
/** query root */
|
|
@@ -3360,6 +3339,15 @@ export type QueryPcnFileArgs = {
|
|
|
3360
3339
|
options?: InputMaybe<PcnOptionsInput>;
|
|
3361
3340
|
};
|
|
3362
3341
|
/** query root */
|
|
3342
|
+
export type QueryPeriodicalDocumentDraftsArgs = {
|
|
3343
|
+
issueMonth: Scalars['TimelessDate']['input'];
|
|
3344
|
+
};
|
|
3345
|
+
/** query root */
|
|
3346
|
+
export type QueryPeriodicalDocumentDraftsByContractsArgs = {
|
|
3347
|
+
contractIds: ReadonlyArray<Scalars['UUID']['input']>;
|
|
3348
|
+
issueMonth: Scalars['TimelessDate']['input'];
|
|
3349
|
+
};
|
|
3350
|
+
/** query root */
|
|
3363
3351
|
export type QueryProfitAndLossReportArgs = {
|
|
3364
3352
|
referenceYears: ReadonlyArray<Scalars['Int']['input']>;
|
|
3365
3353
|
reportYear: Scalars['Int']['input'];
|
|
@@ -4525,9 +4513,25 @@ export type ResolversTypes = {
|
|
|
4525
4513
|
DividendCharge: ResolverTypeWrapper<IGetChargesByIdsResult>;
|
|
4526
4514
|
DividendMock: ResolverTypeWrapper<Scalars['DividendMock']['output']>;
|
|
4527
4515
|
Document: ResolverTypeWrapper<ResolversInterfaceTypes<ResolversTypes>['Document']>;
|
|
4516
|
+
DocumentClientInput: DocumentClientInput;
|
|
4517
|
+
DocumentDiscount: ResolverTypeWrapper<DocumentDiscount>;
|
|
4518
|
+
DocumentDiscountInput: DocumentDiscountInput;
|
|
4519
|
+
DocumentDiscountType: DocumentDiscountType;
|
|
4520
|
+
DocumentDraft: ResolverTypeWrapper<Omit<DocumentDraft, 'client'> & {
|
|
4521
|
+
client?: Maybe<ResolversTypes['Client']>;
|
|
4522
|
+
}>;
|
|
4523
|
+
DocumentIncomeRecord: ResolverTypeWrapper<DocumentIncomeRecord>;
|
|
4524
|
+
DocumentIncomeRecordInput: DocumentIncomeRecordInput;
|
|
4525
|
+
DocumentIssueInput: DocumentIssueInput;
|
|
4526
|
+
DocumentLanguage: DocumentLanguage;
|
|
4527
|
+
DocumentLinkType: DocumentLinkType;
|
|
4528
|
+
DocumentPaymentRecord: ResolverTypeWrapper<DocumentPaymentRecord>;
|
|
4529
|
+
DocumentPaymentRecordCardType: DocumentPaymentRecordCardType;
|
|
4530
|
+
DocumentPaymentRecordInput: DocumentPaymentRecordInput;
|
|
4528
4531
|
DocumentStatus: DocumentStatus;
|
|
4529
4532
|
DocumentSuggestions: ResolverTypeWrapper<DocumentSuggestionsProto>;
|
|
4530
4533
|
DocumentType: DocumentType;
|
|
4534
|
+
DocumentVatType: DocumentVatType;
|
|
4531
4535
|
DocumentsFilters: DocumentsFilters;
|
|
4532
4536
|
DynamicReportInfo: ResolverTypeWrapper<IGetTemplateResult>;
|
|
4533
4537
|
DynamicReportNode: ResolverTypeWrapper<DynamicReportNode>;
|
|
@@ -4555,26 +4559,9 @@ export type ResolversTypes = {
|
|
|
4555
4559
|
ForeignSecuritiesCharge: ResolverTypeWrapper<IGetChargesByIdsResult>;
|
|
4556
4560
|
ForeignSecuritiesFinancialAccount: ResolverTypeWrapper<IGetFinancialAccountsByOwnerIdsResult>;
|
|
4557
4561
|
Fund: ResolverTypeWrapper<ResolversInterfaceTypes<ResolversTypes>['Fund']>;
|
|
4558
|
-
|
|
4562
|
+
GenerateDocumentsResult: ResolverTypeWrapper<GenerateDocumentsResult>;
|
|
4559
4563
|
GeneratedLedgerRecords: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['GeneratedLedgerRecords']>;
|
|
4560
4564
|
GreenInvoiceClient: ResolverTypeWrapper<string>;
|
|
4561
|
-
GreenInvoiceClientInput: GreenInvoiceClientInput;
|
|
4562
|
-
GreenInvoiceCountry: GreenInvoiceCountry;
|
|
4563
|
-
GreenInvoiceDiscount: ResolverTypeWrapper<GreenInvoiceDiscount>;
|
|
4564
|
-
GreenInvoiceDiscountInput: GreenInvoiceDiscountInput;
|
|
4565
|
-
GreenInvoiceDiscountType: GreenInvoiceDiscountType;
|
|
4566
|
-
GreenInvoiceDocumentLang: GreenInvoiceDocumentLang;
|
|
4567
|
-
GreenInvoiceIncome: ResolverTypeWrapper<GreenInvoiceIncome>;
|
|
4568
|
-
GreenInvoiceLinkType: GreenInvoiceLinkType;
|
|
4569
|
-
GreenInvoicePayment: ResolverTypeWrapper<GreenInvoicePayment>;
|
|
4570
|
-
GreenInvoicePaymentAppType: GreenInvoicePaymentAppType;
|
|
4571
|
-
GreenInvoicePaymentCardType: GreenInvoicePaymentCardType;
|
|
4572
|
-
GreenInvoicePaymentDealType: GreenInvoicePaymentDealType;
|
|
4573
|
-
GreenInvoicePaymentIncomeInput: GreenInvoicePaymentIncomeInput;
|
|
4574
|
-
GreenInvoicePaymentInput: GreenInvoicePaymentInput;
|
|
4575
|
-
GreenInvoicePaymentSubType: GreenInvoicePaymentSubType;
|
|
4576
|
-
GreenInvoicePaymentType: GreenInvoicePaymentType;
|
|
4577
|
-
GreenInvoiceVatType: GreenInvoiceVatType;
|
|
4578
4565
|
ID: ResolverTypeWrapper<Scalars['ID']['output']>;
|
|
4579
4566
|
IFRSReportingOption: IfrsReportingOption;
|
|
4580
4567
|
IncomeExpenseChart: ResolverTypeWrapper<Omit<IncomeExpenseChart, 'monthlyData'> & {
|
|
@@ -4630,10 +4617,6 @@ export type ResolversTypes = {
|
|
|
4630
4617
|
MissingChargeInfo: MissingChargeInfo;
|
|
4631
4618
|
MonthlyVatCharge: ResolverTypeWrapper<IGetChargesByIdsResult>;
|
|
4632
4619
|
Mutation: ResolverTypeWrapper<Record<PropertyKey, never>>;
|
|
4633
|
-
NewDocumentInfo: ResolverTypeWrapper<Omit<NewDocumentInfo, 'client'> & {
|
|
4634
|
-
client?: Maybe<ResolversTypes['GreenInvoiceClient']>;
|
|
4635
|
-
}>;
|
|
4636
|
-
NewDocumentInput: NewDocumentInput;
|
|
4637
4620
|
OtherDocument: ResolverTypeWrapper<IGetAllDocumentsResult>;
|
|
4638
4621
|
PCNFileResult: ResolverTypeWrapper<PcnFileResult>;
|
|
4639
4622
|
PCNOptionsInput: PcnOptionsInput;
|
|
@@ -4647,6 +4630,7 @@ export type ResolversTypes = {
|
|
|
4647
4630
|
PaginatedFinancialEntities: ResolverTypeWrapper<Omit<PaginatedFinancialEntities, 'nodes'> & {
|
|
4648
4631
|
nodes: ReadonlyArray<ResolversTypes['FinancialEntity']>;
|
|
4649
4632
|
}>;
|
|
4633
|
+
PaymentType: PaymentType;
|
|
4650
4634
|
Pcn874RecordType: Pcn874RecordType;
|
|
4651
4635
|
Pcn874Records: ResolverTypeWrapper<Omit<Pcn874Records, 'business'> & {
|
|
4652
4636
|
business: ResolversTypes['Business'];
|
|
@@ -4910,6 +4894,17 @@ export type ResolversParentTypes = {
|
|
|
4910
4894
|
DividendCharge: IGetChargesByIdsResult;
|
|
4911
4895
|
DividendMock: Scalars['DividendMock']['output'];
|
|
4912
4896
|
Document: ResolversInterfaceTypes<ResolversParentTypes>['Document'];
|
|
4897
|
+
DocumentClientInput: DocumentClientInput;
|
|
4898
|
+
DocumentDiscount: DocumentDiscount;
|
|
4899
|
+
DocumentDiscountInput: DocumentDiscountInput;
|
|
4900
|
+
DocumentDraft: Omit<DocumentDraft, 'client'> & {
|
|
4901
|
+
client?: Maybe<ResolversParentTypes['Client']>;
|
|
4902
|
+
};
|
|
4903
|
+
DocumentIncomeRecord: DocumentIncomeRecord;
|
|
4904
|
+
DocumentIncomeRecordInput: DocumentIncomeRecordInput;
|
|
4905
|
+
DocumentIssueInput: DocumentIssueInput;
|
|
4906
|
+
DocumentPaymentRecord: DocumentPaymentRecord;
|
|
4907
|
+
DocumentPaymentRecordInput: DocumentPaymentRecordInput;
|
|
4913
4908
|
DocumentSuggestions: DocumentSuggestionsProto;
|
|
4914
4909
|
DocumentsFilters: DocumentsFilters;
|
|
4915
4910
|
DynamicReportInfo: IGetTemplateResult;
|
|
@@ -4934,16 +4929,9 @@ export type ResolversParentTypes = {
|
|
|
4934
4929
|
ForeignSecuritiesCharge: IGetChargesByIdsResult;
|
|
4935
4930
|
ForeignSecuritiesFinancialAccount: IGetFinancialAccountsByOwnerIdsResult;
|
|
4936
4931
|
Fund: ResolversInterfaceTypes<ResolversParentTypes>['Fund'];
|
|
4937
|
-
|
|
4932
|
+
GenerateDocumentsResult: GenerateDocumentsResult;
|
|
4938
4933
|
GeneratedLedgerRecords: ResolversUnionTypes<ResolversParentTypes>['GeneratedLedgerRecords'];
|
|
4939
4934
|
GreenInvoiceClient: string;
|
|
4940
|
-
GreenInvoiceClientInput: GreenInvoiceClientInput;
|
|
4941
|
-
GreenInvoiceDiscount: GreenInvoiceDiscount;
|
|
4942
|
-
GreenInvoiceDiscountInput: GreenInvoiceDiscountInput;
|
|
4943
|
-
GreenInvoiceIncome: GreenInvoiceIncome;
|
|
4944
|
-
GreenInvoicePayment: GreenInvoicePayment;
|
|
4945
|
-
GreenInvoicePaymentIncomeInput: GreenInvoicePaymentIncomeInput;
|
|
4946
|
-
GreenInvoicePaymentInput: GreenInvoicePaymentInput;
|
|
4947
4935
|
ID: Scalars['ID']['output'];
|
|
4948
4936
|
IncomeExpenseChart: Omit<IncomeExpenseChart, 'monthlyData'> & {
|
|
4949
4937
|
monthlyData: ReadonlyArray<ResolversParentTypes['IncomeExpenseChartMonthData']>;
|
|
@@ -4995,10 +4983,6 @@ export type ResolversParentTypes = {
|
|
|
4995
4983
|
MiscExpense: IGetExpensesByChargeIdsResult;
|
|
4996
4984
|
MonthlyVatCharge: IGetChargesByIdsResult;
|
|
4997
4985
|
Mutation: Record<PropertyKey, never>;
|
|
4998
|
-
NewDocumentInfo: Omit<NewDocumentInfo, 'client'> & {
|
|
4999
|
-
client?: Maybe<ResolversParentTypes['GreenInvoiceClient']>;
|
|
5000
|
-
};
|
|
5001
|
-
NewDocumentInput: NewDocumentInput;
|
|
5002
4986
|
OtherDocument: IGetAllDocumentsResult;
|
|
5003
4987
|
PCNFileResult: PcnFileResult;
|
|
5004
4988
|
PCNOptionsInput: PcnOptionsInput;
|
|
@@ -6052,6 +6036,58 @@ export type DocumentResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
6052
6036
|
image?: Resolver<Maybe<ResolversTypes['URL']>, ParentType, ContextType>;
|
|
6053
6037
|
isReviewed?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6054
6038
|
};
|
|
6039
|
+
export type DocumentDiscountResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['DocumentDiscount'] = ResolversParentTypes['DocumentDiscount']> = {
|
|
6040
|
+
amount?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6041
|
+
type?: Resolver<ResolversTypes['DocumentDiscountType'], ParentType, ContextType>;
|
|
6042
|
+
};
|
|
6043
|
+
export type DocumentDraftResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['DocumentDraft'] = ResolversParentTypes['DocumentDraft']> = {
|
|
6044
|
+
client?: Resolver<Maybe<ResolversTypes['Client']>, ParentType, ContextType>;
|
|
6045
|
+
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6046
|
+
date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6047
|
+
description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6048
|
+
discount?: Resolver<Maybe<ResolversTypes['DocumentDiscount']>, ParentType, ContextType>;
|
|
6049
|
+
dueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6050
|
+
footer?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6051
|
+
income?: Resolver<Maybe<ReadonlyArray<ResolversTypes['DocumentIncomeRecord']>>, ParentType, ContextType>;
|
|
6052
|
+
language?: Resolver<ResolversTypes['DocumentLanguage'], ParentType, ContextType>;
|
|
6053
|
+
linkType?: Resolver<Maybe<ResolversTypes['DocumentLinkType']>, ParentType, ContextType>;
|
|
6054
|
+
linkedDocumentIds?: Resolver<Maybe<ReadonlyArray<ResolversTypes['String']>>, ParentType, ContextType>;
|
|
6055
|
+
linkedPaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6056
|
+
maxPayments?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
6057
|
+
payment?: Resolver<Maybe<ReadonlyArray<ResolversTypes['DocumentPaymentRecord']>>, ParentType, ContextType>;
|
|
6058
|
+
remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6059
|
+
rounding?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6060
|
+
signed?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6061
|
+
type?: Resolver<ResolversTypes['DocumentType'], ParentType, ContextType>;
|
|
6062
|
+
vatType?: Resolver<ResolversTypes['DocumentVatType'], ParentType, ContextType>;
|
|
6063
|
+
};
|
|
6064
|
+
export type DocumentIncomeRecordResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['DocumentIncomeRecord'] = ResolversParentTypes['DocumentIncomeRecord']> = {
|
|
6065
|
+
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6066
|
+
currencyRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6067
|
+
description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
6068
|
+
itemId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6069
|
+
price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6070
|
+
quantity?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6071
|
+
vatRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6072
|
+
vatType?: Resolver<ResolversTypes['DocumentVatType'], ParentType, ContextType>;
|
|
6073
|
+
};
|
|
6074
|
+
export type DocumentPaymentRecordResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['DocumentPaymentRecord'] = ResolversParentTypes['DocumentPaymentRecord']> = {
|
|
6075
|
+
accountId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6076
|
+
bankAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6077
|
+
bankBranch?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6078
|
+
bankName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6079
|
+
cardNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6080
|
+
cardType?: Resolver<Maybe<ResolversTypes['DocumentPaymentRecordCardType']>, ParentType, ContextType>;
|
|
6081
|
+
chequeNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6082
|
+
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6083
|
+
currencyRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6084
|
+
date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6085
|
+
firstPayment?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6086
|
+
numPayments?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
6087
|
+
price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6088
|
+
transactionId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6089
|
+
type?: Resolver<ResolversTypes['PaymentType'], ParentType, ContextType>;
|
|
6090
|
+
};
|
|
6055
6091
|
export type DocumentSuggestionsResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['DocumentSuggestions'] = ResolversParentTypes['DocumentSuggestions']> = {
|
|
6056
6092
|
amount?: Resolver<Maybe<ResolversTypes['FinancialAmount']>, ParentType, ContextType>;
|
|
6057
6093
|
counterparty?: Resolver<Maybe<ResolversTypes['FinancialEntity']>, ParentType, ContextType>;
|
|
@@ -6251,7 +6287,7 @@ export type FundResolvers<ContextType = GraphQLModules.Context, ParentType exten
|
|
|
6251
6287
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
6252
6288
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
6253
6289
|
};
|
|
6254
|
-
export type
|
|
6290
|
+
export type GenerateDocumentsResultResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['GenerateDocumentsResult'] = ResolversParentTypes['GenerateDocumentsResult']> = {
|
|
6255
6291
|
errors?: Resolver<Maybe<ReadonlyArray<ResolversTypes['String']>>, ParentType, ContextType>;
|
|
6256
6292
|
success?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
6257
6293
|
};
|
|
@@ -6263,7 +6299,7 @@ export type GreenInvoiceClientResolvers<ContextType = GraphQLModules.Context, Pa
|
|
|
6263
6299
|
address?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6264
6300
|
businessId?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
6265
6301
|
city?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6266
|
-
country?: Resolver<Maybe<ResolversTypes['
|
|
6302
|
+
country?: Resolver<Maybe<ResolversTypes['Country']>, ParentType, ContextType>;
|
|
6267
6303
|
emails?: Resolver<Maybe<ReadonlyArray<ResolversTypes['String']>>, ParentType, ContextType>;
|
|
6268
6304
|
fax?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6269
6305
|
greenInvoiceId?: Resolver<Maybe<ResolversTypes['ID']>, ParentType, ContextType>;
|
|
@@ -6274,40 +6310,6 @@ export type GreenInvoiceClientResolvers<ContextType = GraphQLModules.Context, Pa
|
|
|
6274
6310
|
taxId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6275
6311
|
zip?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6276
6312
|
};
|
|
6277
|
-
export type GreenInvoiceDiscountResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['GreenInvoiceDiscount'] = ResolversParentTypes['GreenInvoiceDiscount']> = {
|
|
6278
|
-
amount?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6279
|
-
type?: Resolver<ResolversTypes['GreenInvoiceDiscountType'], ParentType, ContextType>;
|
|
6280
|
-
};
|
|
6281
|
-
export type GreenInvoiceIncomeResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['GreenInvoiceIncome'] = ResolversParentTypes['GreenInvoiceIncome']> = {
|
|
6282
|
-
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6283
|
-
currencyRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6284
|
-
description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
6285
|
-
itemId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6286
|
-
price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6287
|
-
quantity?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6288
|
-
vatRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6289
|
-
vatType?: Resolver<ResolversTypes['GreenInvoiceVatType'], ParentType, ContextType>;
|
|
6290
|
-
};
|
|
6291
|
-
export type GreenInvoicePaymentResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['GreenInvoicePayment'] = ResolversParentTypes['GreenInvoicePayment']> = {
|
|
6292
|
-
accountId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6293
|
-
appType?: Resolver<Maybe<ResolversTypes['GreenInvoicePaymentAppType']>, ParentType, ContextType>;
|
|
6294
|
-
bankAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6295
|
-
bankBranch?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6296
|
-
bankName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6297
|
-
cardNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6298
|
-
cardType?: Resolver<Maybe<ResolversTypes['GreenInvoicePaymentCardType']>, ParentType, ContextType>;
|
|
6299
|
-
chequeNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6300
|
-
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6301
|
-
currencyRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6302
|
-
date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6303
|
-
dealType?: Resolver<Maybe<ResolversTypes['GreenInvoicePaymentDealType']>, ParentType, ContextType>;
|
|
6304
|
-
firstPayment?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
6305
|
-
numPayments?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
6306
|
-
price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6307
|
-
subType?: Resolver<Maybe<ResolversTypes['GreenInvoicePaymentSubType']>, ParentType, ContextType>;
|
|
6308
|
-
transactionId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6309
|
-
type?: Resolver<ResolversTypes['GreenInvoicePaymentType'], ParentType, ContextType>;
|
|
6310
|
-
};
|
|
6311
6313
|
export type IncomeExpenseChartResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['IncomeExpenseChart'] = ResolversParentTypes['IncomeExpenseChart']> = {
|
|
6312
6314
|
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6313
6315
|
fromDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
@@ -6416,7 +6418,7 @@ export type IssuedDocumentInfoResolvers<ContextType = GraphQLModules.Context, Pa
|
|
|
6416
6418
|
externalId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
6417
6419
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
6418
6420
|
linkedDocuments?: Resolver<Maybe<ReadonlyArray<ResolversTypes['FinancialDocument']>>, ParentType, ContextType>;
|
|
6419
|
-
originalDocument?: Resolver<Maybe<ResolversTypes['
|
|
6421
|
+
originalDocument?: Resolver<Maybe<ResolversTypes['DocumentDraft']>, ParentType, ContextType>;
|
|
6420
6422
|
status?: Resolver<ResolversTypes['DocumentStatus'], ParentType, ContextType>;
|
|
6421
6423
|
};
|
|
6422
6424
|
export type LedgerResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['Ledger'] = ResolversParentTypes['Ledger']> = {
|
|
@@ -6594,7 +6596,6 @@ export type MutationResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
6594
6596
|
deleteTag?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationDeleteTagArgs, 'id'>>;
|
|
6595
6597
|
digestGmailMessages?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
6596
6598
|
fetchDeelDocuments?: Resolver<ReadonlyArray<ResolversTypes['Charge']>, ParentType, ContextType>;
|
|
6597
|
-
fetchIncomeDocuments?: Resolver<ReadonlyArray<ResolversTypes['Document']>, ParentType, ContextType, RequireFields<MutationFetchIncomeDocumentsArgs, 'ownerId'>>;
|
|
6598
6599
|
flagForeignFeeTransactions?: Resolver<ResolversTypes['FlagForeignFeeTransactionsResult'], ParentType, ContextType>;
|
|
6599
6600
|
generateBalanceCharge?: Resolver<ResolversTypes['FinancialCharge'], ParentType, ContextType, RequireFields<MutationGenerateBalanceChargeArgs, 'balanceRecords' | 'description'>>;
|
|
6600
6601
|
generateBankDepositsRevaluationCharge?: Resolver<ResolversTypes['FinancialCharge'], ParentType, ContextType, RequireFields<MutationGenerateBankDepositsRevaluationChargeArgs, 'date' | 'ownerId'>>;
|
|
@@ -6618,16 +6619,17 @@ export type MutationResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
6618
6619
|
insertSalaryRecordsFromFile?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationInsertSalaryRecordsFromFileArgs, 'chargeId' | 'file'>>;
|
|
6619
6620
|
insertTaxCategory?: Resolver<ResolversTypes['TaxCategory'], ParentType, ContextType, RequireFields<MutationInsertTaxCategoryArgs, 'fields'>>;
|
|
6620
6621
|
issueGreenInvoiceDocument?: Resolver<ResolversTypes['Charge'], ParentType, ContextType, RequireFields<MutationIssueGreenInvoiceDocumentArgs, 'input'>>;
|
|
6621
|
-
issueGreenInvoiceDocuments?: Resolver<ResolversTypes['
|
|
6622
|
+
issueGreenInvoiceDocuments?: Resolver<ResolversTypes['GenerateDocumentsResult'], ParentType, ContextType, RequireFields<MutationIssueGreenInvoiceDocumentsArgs, 'generateDocumentsInfo'>>;
|
|
6622
6623
|
lockLedgerRecords?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationLockLedgerRecordsArgs, 'date'>>;
|
|
6623
6624
|
mergeBusinesses?: Resolver<ResolversTypes['Business'], ParentType, ContextType, RequireFields<MutationMergeBusinessesArgs, 'businessIdsToMerge' | 'targetBusinessId'>>;
|
|
6624
6625
|
mergeCharges?: Resolver<ResolversTypes['MergeChargeResult'], ParentType, ContextType, RequireFields<MutationMergeChargesArgs, 'baseChargeID' | 'chargeIdsToMerge'>>;
|
|
6625
6626
|
mergeChargesByTransactionReference?: Resolver<ResolversTypes['MergeChargesByTransactionReferenceResult'], ParentType, ContextType>;
|
|
6626
6627
|
pong?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6627
|
-
|
|
6628
|
+
previewDocument?: Resolver<ResolversTypes['FileScalar'], ParentType, ContextType, RequireFields<MutationPreviewDocumentArgs, 'input'>>;
|
|
6628
6629
|
regenerateLedgerRecords?: Resolver<ResolversTypes['GeneratedLedgerRecords'], ParentType, ContextType, RequireFields<MutationRegenerateLedgerRecordsArgs, 'chargeId'>>;
|
|
6629
6630
|
startGmailListener?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
6630
6631
|
stopGmailListener?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
6632
|
+
syncGreenInvoiceDocuments?: Resolver<ReadonlyArray<ResolversTypes['Document']>, ParentType, ContextType, RequireFields<MutationSyncGreenInvoiceDocumentsArgs, 'ownerId'>>;
|
|
6631
6633
|
uncategorizePartialBusinessTripExpense?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationUncategorizePartialBusinessTripExpenseArgs, 'businessTripExpenseId' | 'transactionId'>>;
|
|
6632
6634
|
updateAdminBusiness?: Resolver<ResolversTypes['AdminBusiness'], ParentType, ContextType, RequireFields<MutationUpdateAdminBusinessArgs, 'businessId' | 'fields'>>;
|
|
6633
6635
|
updateAdminContext?: Resolver<ResolversTypes['AdminContext'], ParentType, ContextType, RequireFields<MutationUpdateAdminContextArgs, 'context'>>;
|
|
@@ -6664,27 +6666,6 @@ export type MutationResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
6664
6666
|
updateTransactions?: Resolver<ResolversTypes['UpdateTransactionsResult'], ParentType, ContextType, RequireFields<MutationUpdateTransactionsArgs, 'fields' | 'transactionIds'>>;
|
|
6665
6667
|
uploadDocument?: Resolver<ResolversTypes['UploadDocumentResult'], ParentType, ContextType, RequireFields<MutationUploadDocumentArgs, 'file'>>;
|
|
6666
6668
|
};
|
|
6667
|
-
export type NewDocumentInfoResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['NewDocumentInfo'] = ResolversParentTypes['NewDocumentInfo']> = {
|
|
6668
|
-
client?: Resolver<Maybe<ResolversTypes['GreenInvoiceClient']>, ParentType, ContextType>;
|
|
6669
|
-
currency?: Resolver<ResolversTypes['Currency'], ParentType, ContextType>;
|
|
6670
|
-
date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6671
|
-
description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6672
|
-
discount?: Resolver<Maybe<ResolversTypes['GreenInvoiceDiscount']>, ParentType, ContextType>;
|
|
6673
|
-
dueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6674
|
-
footer?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6675
|
-
income?: Resolver<Maybe<ReadonlyArray<ResolversTypes['GreenInvoiceIncome']>>, ParentType, ContextType>;
|
|
6676
|
-
lang?: Resolver<ResolversTypes['GreenInvoiceDocumentLang'], ParentType, ContextType>;
|
|
6677
|
-
linkType?: Resolver<Maybe<ResolversTypes['GreenInvoiceLinkType']>, ParentType, ContextType>;
|
|
6678
|
-
linkedDocumentIds?: Resolver<Maybe<ReadonlyArray<ResolversTypes['String']>>, ParentType, ContextType>;
|
|
6679
|
-
linkedPaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6680
|
-
maxPayments?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
6681
|
-
payment?: Resolver<Maybe<ReadonlyArray<ResolversTypes['GreenInvoicePayment']>>, ParentType, ContextType>;
|
|
6682
|
-
remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
6683
|
-
rounding?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6684
|
-
signed?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6685
|
-
type?: Resolver<ResolversTypes['DocumentType'], ParentType, ContextType>;
|
|
6686
|
-
vatType?: Resolver<ResolversTypes['GreenInvoiceVatType'], ParentType, ContextType>;
|
|
6687
|
-
};
|
|
6688
6669
|
export type OtherDocumentResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['OtherDocument'] = ResolversParentTypes['OtherDocument']> = {
|
|
6689
6670
|
charge?: Resolver<Maybe<ResolversTypes['Charge']>, ParentType, ContextType>;
|
|
6690
6671
|
documentType?: Resolver<Maybe<ResolversTypes['DocumentType']>, ParentType, ContextType>;
|
|
@@ -6813,9 +6794,7 @@ export type QueryResolvers<ContextType = GraphQLModules.Context, ParentType exte
|
|
|
6813
6794
|
chargesWithLedgerChanges?: Resolver<ReadonlyArray<ResolversTypes['ChargesWithLedgerChangesResult']>, ParentType, ContextType, Partial<QueryChargesWithLedgerChangesArgs>>;
|
|
6814
6795
|
chargesWithMissingRequiredInfo?: Resolver<ResolversTypes['PaginatedCharges'], ParentType, ContextType, RequireFields<QueryChargesWithMissingRequiredInfoArgs, 'limit' | 'page'>>;
|
|
6815
6796
|
client?: Resolver<ResolversTypes['Client'], ParentType, ContextType, RequireFields<QueryClientArgs, 'businessId'>>;
|
|
6816
|
-
|
|
6817
|
-
clientMonthlyChargeDraft?: Resolver<ResolversTypes['NewDocumentInfo'], ParentType, ContextType, RequireFields<QueryClientMonthlyChargeDraftArgs, 'clientId' | 'issueMonth'>>;
|
|
6818
|
-
clientMonthlyChargesDrafts?: Resolver<ReadonlyArray<ResolversTypes['NewDocumentInfo']>, ParentType, ContextType, RequireFields<QueryClientMonthlyChargesDraftsArgs, 'issueMonth'>>;
|
|
6797
|
+
clientMonthlyChargeDraft?: Resolver<ResolversTypes['DocumentDraft'], ParentType, ContextType, RequireFields<QueryClientMonthlyChargeDraftArgs, 'clientId' | 'issueMonth'>>;
|
|
6819
6798
|
contractsByAdmin?: Resolver<ReadonlyArray<ResolversTypes['Contract']>, ParentType, ContextType, RequireFields<QueryContractsByAdminArgs, 'adminId'>>;
|
|
6820
6799
|
contractsByClient?: Resolver<ReadonlyArray<ResolversTypes['Contract']>, ParentType, ContextType, RequireFields<QueryContractsByClientArgs, 'clientId'>>;
|
|
6821
6800
|
contractsById?: Resolver<ResolversTypes['Contract'], ParentType, ContextType, RequireFields<QueryContractsByIdArgs, 'id'>>;
|
|
@@ -6842,10 +6821,12 @@ export type QueryResolvers<ContextType = GraphQLModules.Context, ParentType exte
|
|
|
6842
6821
|
ledgerRecordsByDates?: Resolver<ReadonlyArray<ResolversTypes['LedgerRecord']>, ParentType, ContextType, RequireFields<QueryLedgerRecordsByDatesArgs, 'fromDate' | 'toDate'>>;
|
|
6843
6822
|
ledgerRecordsByFinancialEntity?: Resolver<ReadonlyArray<ResolversTypes['LedgerRecord']>, ParentType, ContextType, RequireFields<QueryLedgerRecordsByFinancialEntityArgs, 'financialEntityId'>>;
|
|
6844
6823
|
miscExpensesByCharge?: Resolver<ReadonlyArray<ResolversTypes['MiscExpense']>, ParentType, ContextType, RequireFields<QueryMiscExpensesByChargeArgs, 'chargeId'>>;
|
|
6845
|
-
|
|
6846
|
-
|
|
6824
|
+
newDocumentDraftByCharge?: Resolver<ResolversTypes['DocumentDraft'], ParentType, ContextType, RequireFields<QueryNewDocumentDraftByChargeArgs, 'chargeId'>>;
|
|
6825
|
+
newDocumentDraftByDocument?: Resolver<ResolversTypes['DocumentDraft'], ParentType, ContextType, RequireFields<QueryNewDocumentDraftByDocumentArgs, 'documentId'>>;
|
|
6847
6826
|
pcnByDate?: Resolver<ReadonlyArray<ResolversTypes['Pcn874Records']>, ParentType, ContextType, RequireFields<QueryPcnByDateArgs, 'fromMonthDate' | 'toMonthDate'>>;
|
|
6848
6827
|
pcnFile?: Resolver<ResolversTypes['PCNFileResult'], ParentType, ContextType, RequireFields<QueryPcnFileArgs, 'financialEntityId' | 'monthDate'>>;
|
|
6828
|
+
periodicalDocumentDrafts?: Resolver<ReadonlyArray<ResolversTypes['DocumentDraft']>, ParentType, ContextType, RequireFields<QueryPeriodicalDocumentDraftsArgs, 'issueMonth'>>;
|
|
6829
|
+
periodicalDocumentDraftsByContracts?: Resolver<ReadonlyArray<ResolversTypes['DocumentDraft']>, ParentType, ContextType, RequireFields<QueryPeriodicalDocumentDraftsByContractsArgs, 'contractIds' | 'issueMonth'>>;
|
|
6849
6830
|
ping?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
6850
6831
|
profitAndLossReport?: Resolver<ResolversTypes['ProfitAndLossReport'], ParentType, ContextType, RequireFields<QueryProfitAndLossReportArgs, 'referenceYears' | 'reportYear'>>;
|
|
6851
6832
|
recentDocumentsByBusiness?: Resolver<ReadonlyArray<ResolversTypes['Document']>, ParentType, ContextType, RequireFields<QueryRecentDocumentsByBusinessArgs, 'businessId'>>;
|
|
@@ -7364,6 +7345,10 @@ export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
|
7364
7345
|
DividendCharge?: DividendChargeResolvers<ContextType>;
|
|
7365
7346
|
DividendMock?: GraphQLScalarType;
|
|
7366
7347
|
Document?: DocumentResolvers<ContextType>;
|
|
7348
|
+
DocumentDiscount?: DocumentDiscountResolvers<ContextType>;
|
|
7349
|
+
DocumentDraft?: DocumentDraftResolvers<ContextType>;
|
|
7350
|
+
DocumentIncomeRecord?: DocumentIncomeRecordResolvers<ContextType>;
|
|
7351
|
+
DocumentPaymentRecord?: DocumentPaymentRecordResolvers<ContextType>;
|
|
7367
7352
|
DocumentSuggestions?: DocumentSuggestionsResolvers<ContextType>;
|
|
7368
7353
|
DocumentType?: DocumentTypeResolvers;
|
|
7369
7354
|
DynamicReportInfo?: DynamicReportInfoResolvers<ContextType>;
|
|
@@ -7384,12 +7369,9 @@ export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
|
7384
7369
|
ForeignSecuritiesCharge?: ForeignSecuritiesChargeResolvers<ContextType>;
|
|
7385
7370
|
ForeignSecuritiesFinancialAccount?: ForeignSecuritiesFinancialAccountResolvers<ContextType>;
|
|
7386
7371
|
Fund?: FundResolvers<ContextType>;
|
|
7387
|
-
|
|
7372
|
+
GenerateDocumentsResult?: GenerateDocumentsResultResolvers<ContextType>;
|
|
7388
7373
|
GeneratedLedgerRecords?: GeneratedLedgerRecordsResolvers<ContextType>;
|
|
7389
7374
|
GreenInvoiceClient?: GreenInvoiceClientResolvers<ContextType>;
|
|
7390
|
-
GreenInvoiceDiscount?: GreenInvoiceDiscountResolvers<ContextType>;
|
|
7391
|
-
GreenInvoiceIncome?: GreenInvoiceIncomeResolvers<ContextType>;
|
|
7392
|
-
GreenInvoicePayment?: GreenInvoicePaymentResolvers<ContextType>;
|
|
7393
7375
|
IncomeExpenseChart?: IncomeExpenseChartResolvers<ContextType>;
|
|
7394
7376
|
IncomeExpenseChartMonthData?: IncomeExpenseChartMonthDataResolvers<ContextType>;
|
|
7395
7377
|
InsertDepreciationCategoryResult?: InsertDepreciationCategoryResultResolvers<ContextType>;
|
|
@@ -7417,7 +7399,6 @@ export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
|
7417
7399
|
MissingChargeInfo?: MissingChargeInfoResolvers;
|
|
7418
7400
|
MonthlyVatCharge?: MonthlyVatChargeResolvers<ContextType>;
|
|
7419
7401
|
Mutation?: MutationResolvers<ContextType>;
|
|
7420
|
-
NewDocumentInfo?: NewDocumentInfoResolvers<ContextType>;
|
|
7421
7402
|
OtherDocument?: OtherDocumentResolvers<ContextType>;
|
|
7422
7403
|
PCNFileResult?: PcnFileResultResolvers<ContextType>;
|
|
7423
7404
|
PageInfo?: PageInfoResolvers<ContextType>;
|