@accounter/server 0.0.8-alpha-20251029233438-f1242515c3b15dfb9387a5658e2417a7c063aa12 → 0.0.8-alpha-20251029233659-8fb74309c9f1de4f20423db029c5740e2df4bb5d
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 +4 -33
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/server/src/__generated__/types.d.ts +18 -82
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.d.ts +0 -57
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.js +1 -0
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/__generated__/types.d.ts +10 -33
- package/dist/server/src/modules/financial-entities/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.d.ts +1 -2
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.js +0 -37
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.js.map +1 -1
- package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js +11 -45
- package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js.map +1 -1
- package/dist/server/src/modules/financial-entities/typeDefs/admin-businesses.graphql.js +16 -49
- package/dist/server/src/modules/financial-entities/typeDefs/admin-businesses.graphql.js.map +1 -1
- package/dist/server/src/modules/financial-entities/types.d.ts +1 -1
- package/dist/server/src/modules/ledger/__generated__/types.d.ts +2 -3
- package/dist/server/src/modules/ledger/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/ledger/resolvers/ledger.resolver.js +0 -5
- package/dist/server/src/modules/ledger/resolvers/ledger.resolver.js.map +1 -1
- package/dist/server/src/modules/ledger/typeDefs/ledger.graphql.js +0 -2
- package/dist/server/src/modules/ledger/typeDefs/ledger.graphql.js.map +1 -1
- package/dist/server/src/modules/transactions/__generated__/types.d.ts +1 -2
- package/dist/server/src/modules/transactions/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/transactions/resolvers/transactions.resolver.js +0 -10
- package/dist/server/src/modules/transactions/resolvers/transactions.resolver.js.map +1 -1
- package/dist/server/src/modules/transactions/typeDefs/transactions.graphql.js +0 -1
- package/dist/server/src/modules/transactions/typeDefs/transactions.graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/__generated__/types.ts +18 -92
- package/src/modules/financial-entities/__generated__/admin-businesses.types.ts +0 -60
- package/src/modules/financial-entities/__generated__/types.ts +10 -33
- package/src/modules/financial-entities/providers/admin-businesses.provider.ts +0 -44
- package/src/modules/financial-entities/resolvers/admin-businesses.resolver.ts +11 -52
- package/src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts +16 -49
- package/src/modules/financial-entities/types.ts +1 -1
- package/src/modules/ledger/__generated__/types.ts +2 -3
- package/src/modules/ledger/resolvers/ledger.resolver.ts +0 -5
- package/src/modules/ledger/typeDefs/ledger.graphql.ts +0 -2
- package/src/modules/transactions/__generated__/types.ts +1 -2
- package/src/modules/transactions/resolvers/transactions.resolver.ts +0 -10
- package/src/modules/transactions/typeDefs/transactions.graphql.ts +0 -1
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.d.ts +0 -31
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.js +0 -27
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.js.map +0 -1
- package/src/modules/financial-entities/helpers/admin-businesses.helper.ts +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @accounter/server
|
|
2
2
|
|
|
3
|
-
## 0.0.8-alpha-
|
|
3
|
+
## 0.0.8-alpha-20251029233659-8fb74309c9f1de4f20423db029c5740e2df4bb5d
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -450,35 +450,6 @@
|
|
|
450
450
|
streamline the process of adding new businesses, specifically by simplifying the handling of tax
|
|
451
451
|
category insertions.
|
|
452
452
|
|
|
453
|
-
- [#2645](https://github.com/Urigo/accounter-fullstack/pull/2645)
|
|
454
|
-
[`ffc4613`](https://github.com/Urigo/accounter-fullstack/commit/ffc4613763bf5c0bf8e169d8016cc996fed26819)
|
|
455
|
-
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Database Schema Refactor**: The
|
|
456
|
-
`businesses_admin` table is updated to replace single-value fields for tax and social security
|
|
457
|
-
identifiers with array-based JSONB columns, allowing for multiple annual IDs and historical tax
|
|
458
|
-
rates.
|
|
459
|
-
- **GraphQL Schema Update**: The GraphQL `AdminBusiness` type and related input types
|
|
460
|
-
(`CreateAdminBusinessInput`, `UpdateAdminBusinessInput`) are modified to reflect the new array
|
|
461
|
-
structures, introducing `AnnualId` and `TaxAdvancesRate` types.
|
|
462
|
-
- **Frontend Form Overhaul**: The `admin-business-section.tsx` component is refactored to use
|
|
463
|
-
`react-hook-form`'s `useFieldArray` for dynamic management of annual IDs and tax rates,
|
|
464
|
-
providing a more flexible user interface.
|
|
465
|
-
- **Backend Logic Adaptation**: New Zod schemas and resolver logic are implemented on the server
|
|
466
|
-
to validate and process the updated array-based data for admin business updates.
|
|
467
|
-
|
|
468
|
-
- [#2640](https://github.com/Urigo/accounter-fullstack/pull/2640)
|
|
469
|
-
[`26618ff`](https://github.com/Urigo/accounter-fullstack/commit/26618ff2d4a47d63e16ecec59f39887f48df52cf)
|
|
470
|
-
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Renaming and Restructuring**: Key
|
|
471
|
-
components and routes related to "Business Transactions" have been renamed to "Business Ledger
|
|
472
|
-
Records" and moved into a new `business-ledger` directory, improving clarity and organization.
|
|
473
|
-
- **New Business Detail Tabs**: The business detail page now features new dedicated tabs for
|
|
474
|
-
"Ledger" and "Balance", providing a more structured view of financial data.
|
|
475
|
-
- **Enhanced Ledger and Transaction Tables**: Both the `LedgerTable` and `TransactionsTable`
|
|
476
|
-
components have been updated with pagination, improved sorting capabilities, and clearer column
|
|
477
|
-
headers for better user experience.
|
|
478
|
-
- **API Expansion**: New GraphQL queries and resolvers have been introduced on the server-side to
|
|
479
|
-
support fetching ledger records and transactions specifically by financial entity, catering to
|
|
480
|
-
the new UI structure.
|
|
481
|
-
|
|
482
453
|
- [#2547](https://github.com/Urigo/accounter-fullstack/pull/2547)
|
|
483
454
|
[`fd9fb24`](https://github.com/Urigo/accounter-fullstack/commit/fd9fb2445cba9a450f8c78f8100160d9b7c5c38a)
|
|
484
455
|
Thanks [@gilgardosh](https://github.com/gilgardosh)! - 1. **Environment Variable Validation**: The
|
|
@@ -501,9 +472,9 @@
|
|
|
501
472
|
[[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
502
473
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
503
474
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6)]:
|
|
504
|
-
- @accounter/pcn874-generator@0.6.3-alpha-
|
|
505
|
-
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-
|
|
506
|
-
- @accounter/shaam6111-generator@0.1.4-alpha-
|
|
475
|
+
- @accounter/pcn874-generator@0.6.3-alpha-20251029233659-8fb74309c9f1de4f20423db029c5740e2df4bb5d
|
|
476
|
+
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251029233659-8fb74309c9f1de4f20423db029c5740e2df4bb5d
|
|
477
|
+
- @accounter/shaam6111-generator@0.1.4-alpha-20251029233659-8fb74309c9f1de4f20423db029c5740e2df4bb5d
|
|
507
478
|
|
|
508
479
|
## 0.0.7
|
|
509
480
|
|
|
@@ -4,8 +4,8 @@ import type { GetMeshOptions } from '@graphql-mesh/runtime';
|
|
|
4
4
|
import type { YamlConfig } from '@graphql-mesh/types';
|
|
5
5
|
import { MeshHTTPHandler } from '@graphql-mesh/http';
|
|
6
6
|
import { type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
|
|
7
|
-
import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
|
|
8
7
|
import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
|
|
8
|
+
import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
|
|
9
9
|
export type Maybe<T> = T | null;
|
|
10
10
|
export type InputMaybe<T> = Maybe<T>;
|
|
11
11
|
export type Exact<T extends {
|
|
@@ -193,15 +193,11 @@ export type AdminBusiness = {
|
|
|
193
193
|
readonly id: Scalars['UUID']['output'];
|
|
194
194
|
readonly name: Scalars['String']['output'];
|
|
195
195
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
196
|
-
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
199
|
-
|
|
200
|
-
readonly
|
|
201
|
-
readonly taxAdvancesRates: ReadonlyArray<TaxAdvancesRate>;
|
|
202
|
-
readonly withholdingTaxAnnualIds: ReadonlyArray<AnnualId>;
|
|
203
|
-
/** Withholding Tax Info */
|
|
204
|
-
readonly withholdingTaxCompanyId?: Maybe<Scalars['String']['output']>;
|
|
196
|
+
readonly socialSecurityEmployerId?: Maybe<Scalars['String']['output']>;
|
|
197
|
+
readonly taxAdvancesId?: Maybe<Scalars['String']['output']>;
|
|
198
|
+
readonly taxAdvancesRate?: Maybe<Scalars['Float']['output']>;
|
|
199
|
+
readonly withholdingTaxBookNumber?: Maybe<Scalars['String']['output']>;
|
|
200
|
+
readonly withholdingTaxFileNumber?: Maybe<Scalars['String']['output']>;
|
|
205
201
|
};
|
|
206
202
|
/** defines a tag / category for charge arrangement */
|
|
207
203
|
export type AdminContext = {
|
|
@@ -335,17 +331,6 @@ export type AdminContextInput = {
|
|
|
335
331
|
readonly zkufotExpensesTaxCategoryId?: InputMaybe<Scalars['UUID']['input']>;
|
|
336
332
|
readonly zkufotIncomeTaxCategoryId?: InputMaybe<Scalars['UUID']['input']>;
|
|
337
333
|
};
|
|
338
|
-
/** Represents an annual identifier for tax purposes. */
|
|
339
|
-
export type AnnualId = {
|
|
340
|
-
readonly __typename?: 'AnnualId';
|
|
341
|
-
readonly id: Scalars['String']['output'];
|
|
342
|
-
readonly year: Scalars['Int']['output'];
|
|
343
|
-
};
|
|
344
|
-
/** Input type representing an annual identifier for tax purposes. */
|
|
345
|
-
export type AnnualIdInput = {
|
|
346
|
-
readonly id: Scalars['String']['input'];
|
|
347
|
-
readonly year: Scalars['Int']['input'];
|
|
348
|
-
};
|
|
349
334
|
/** Audit opinion type enum (חוות דעת) */
|
|
350
335
|
export type AuditOpinionType =
|
|
351
336
|
/** Adverse opinion (שלילית) */
|
|
@@ -1122,12 +1107,12 @@ export type Country = {
|
|
|
1122
1107
|
/** Input type for creating a new admin business. */
|
|
1123
1108
|
export type CreateAdminBusinessInput = {
|
|
1124
1109
|
readonly businessId: Scalars['UUID']['input'];
|
|
1125
|
-
readonly companyTaxId: Scalars['String']['input'];
|
|
1126
1110
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1127
1111
|
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1128
|
-
readonly
|
|
1112
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
1129
1113
|
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1130
|
-
readonly
|
|
1114
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1115
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1131
1116
|
};
|
|
1132
1117
|
/** input for creating a new contract */
|
|
1133
1118
|
export type CreateContractInput = {
|
|
@@ -2887,7 +2872,6 @@ export type Query = {
|
|
|
2887
2872
|
readonly greenInvoiceClient: GreenInvoiceClient;
|
|
2888
2873
|
readonly incomeExpenseChart: IncomeExpenseChart;
|
|
2889
2874
|
readonly ledgerRecordsByDates: ReadonlyArray<LedgerRecord>;
|
|
2890
|
-
readonly ledgerRecordsByFinancialEntity: ReadonlyArray<LedgerRecord>;
|
|
2891
2875
|
readonly miscExpensesByCharge: ReadonlyArray<MiscExpense>;
|
|
2892
2876
|
readonly newDocumentInfoDraftByCharge: NewDocumentInfo;
|
|
2893
2877
|
readonly newDocumentInfoDraftByDocument: NewDocumentInfo;
|
|
@@ -2912,7 +2896,6 @@ export type Query = {
|
|
|
2912
2896
|
readonly taxCategory: TaxCategory;
|
|
2913
2897
|
readonly taxCategoryByBusinessId?: Maybe<TaxCategory>;
|
|
2914
2898
|
readonly taxReport: TaxReport;
|
|
2915
|
-
readonly transactionsByFinancialEntity: ReadonlyArray<Transaction>;
|
|
2916
2899
|
readonly transactionsByIDs: ReadonlyArray<Transaction>;
|
|
2917
2900
|
readonly transactionsForBalanceReport: ReadonlyArray<BalanceTransactions>;
|
|
2918
2901
|
readonly uniformFormat?: Maybe<UniformFormat>;
|
|
@@ -3062,10 +3045,6 @@ export type QueryLedgerRecordsByDatesArgs = {
|
|
|
3062
3045
|
toDate: Scalars['TimelessDate']['input'];
|
|
3063
3046
|
};
|
|
3064
3047
|
/** query root */
|
|
3065
|
-
export type QueryLedgerRecordsByFinancialEntityArgs = {
|
|
3066
|
-
financialEntityId: Scalars['UUID']['input'];
|
|
3067
|
-
};
|
|
3068
|
-
/** query root */
|
|
3069
3048
|
export type QueryMiscExpensesByChargeArgs = {
|
|
3070
3049
|
chargeId: Scalars['UUID']['input'];
|
|
3071
3050
|
};
|
|
@@ -3169,10 +3148,6 @@ export type QueryTaxReportArgs = {
|
|
|
3169
3148
|
reportYear: Scalars['Int']['input'];
|
|
3170
3149
|
};
|
|
3171
3150
|
/** query root */
|
|
3172
|
-
export type QueryTransactionsByFinancialEntityArgs = {
|
|
3173
|
-
financialEntityID: Scalars['UUID']['input'];
|
|
3174
|
-
};
|
|
3175
|
-
/** query root */
|
|
3176
3151
|
export type QueryTransactionsByIDsArgs = {
|
|
3177
3152
|
transactionIDs: ReadonlyArray<Scalars['UUID']['input']>;
|
|
3178
3153
|
};
|
|
@@ -3556,17 +3531,6 @@ export type Tag = {
|
|
|
3556
3531
|
export type TagInput = {
|
|
3557
3532
|
readonly id: Scalars['String']['input'];
|
|
3558
3533
|
};
|
|
3559
|
-
/** Represents the tax advance rate for a specific date. */
|
|
3560
|
-
export type TaxAdvancesRate = {
|
|
3561
|
-
readonly __typename?: 'TaxAdvancesRate';
|
|
3562
|
-
readonly date: Scalars['TimelessDate']['output'];
|
|
3563
|
-
readonly rate: Scalars['Float']['output'];
|
|
3564
|
-
};
|
|
3565
|
-
/** Input type representing the tax advance rate for a specific date. */
|
|
3566
|
-
export type TaxAdvancesRateInput = {
|
|
3567
|
-
readonly date: Scalars['TimelessDate']['input'];
|
|
3568
|
-
readonly rate: Scalars['Float']['input'];
|
|
3569
|
-
};
|
|
3570
3534
|
/** Tax category entity used for ledger records */
|
|
3571
3535
|
export type TaxCategory = FinancialEntity & {
|
|
3572
3536
|
readonly __typename?: 'TaxCategory';
|
|
@@ -3681,17 +3645,12 @@ export type Unprocessed = Document & Linkable & {
|
|
|
3681
3645
|
};
|
|
3682
3646
|
/** Input type for updating admin business details. */
|
|
3683
3647
|
export type UpdateAdminBusinessInput = {
|
|
3684
|
-
readonly governmentId?: InputMaybe<Scalars['String']['input']>;
|
|
3685
|
-
readonly name?: InputMaybe<Scalars['String']['input']>;
|
|
3686
3648
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
3687
|
-
|
|
3688
|
-
readonly
|
|
3689
|
-
|
|
3690
|
-
readonly
|
|
3691
|
-
readonly
|
|
3692
|
-
readonly withholdingTaxAnnualIds?: InputMaybe<ReadonlyArray<AnnualIdInput>>;
|
|
3693
|
-
/** Withholding Tax Info */
|
|
3694
|
-
readonly withholdingTaxCompanyId?: InputMaybe<Scalars['String']['input']>;
|
|
3649
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
3650
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
3651
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
3652
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3653
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3695
3654
|
};
|
|
3696
3655
|
/** input for updateBusiness */
|
|
3697
3656
|
export type UpdateBusinessInput = {
|
|
@@ -4123,8 +4082,6 @@ export type ResolversTypes = {
|
|
|
4123
4082
|
AdminBusiness: ResolverTypeWrapper<IGetAllAdminBusinessesResult>;
|
|
4124
4083
|
AdminContext: ResolverTypeWrapper<IGetAdminContextsResult>;
|
|
4125
4084
|
AdminContextInput: AdminContextInput;
|
|
4126
|
-
AnnualId: ResolverTypeWrapper<AnnualId>;
|
|
4127
|
-
AnnualIdInput: AnnualIdInput;
|
|
4128
4085
|
AuditOpinionType: AuditOpinionType;
|
|
4129
4086
|
BalanceTransactions: ResolverTypeWrapper<IGetNormalizedBalanceTransactionsResult>;
|
|
4130
4087
|
BankDeposit: ResolverTypeWrapper<Omit<BankDeposit, 'transactions'> & {
|
|
@@ -4394,8 +4351,6 @@ export type ResolversTypes = {
|
|
|
4394
4351
|
SuggestionsInput: SuggestionsInput;
|
|
4395
4352
|
Tag: ResolverTypeWrapper<IGetAllTagsResult>;
|
|
4396
4353
|
TagInput: TagInput;
|
|
4397
|
-
TaxAdvancesRate: ResolverTypeWrapper<TaxAdvancesRate>;
|
|
4398
|
-
TaxAdvancesRateInput: TaxAdvancesRateInput;
|
|
4399
4354
|
TaxCategory: ResolverTypeWrapper<IGetAllTaxCategoriesResult>;
|
|
4400
4355
|
TaxReport: ResolverTypeWrapper<Omit<TaxReport, 'reference' | 'report'> & {
|
|
4401
4356
|
reference: ReadonlyArray<ResolversTypes['TaxReportYear']>;
|
|
@@ -4494,8 +4449,6 @@ export type ResolversParentTypes = {
|
|
|
4494
4449
|
AdminBusiness: IGetAllAdminBusinessesResult;
|
|
4495
4450
|
AdminContext: IGetAdminContextsResult;
|
|
4496
4451
|
AdminContextInput: AdminContextInput;
|
|
4497
|
-
AnnualId: AnnualId;
|
|
4498
|
-
AnnualIdInput: AnnualIdInput;
|
|
4499
4452
|
BalanceTransactions: IGetNormalizedBalanceTransactionsResult;
|
|
4500
4453
|
BankDeposit: Omit<BankDeposit, 'transactions'> & {
|
|
4501
4454
|
transactions: ReadonlyArray<ResolversParentTypes['Transaction']>;
|
|
@@ -4730,8 +4683,6 @@ export type ResolversParentTypes = {
|
|
|
4730
4683
|
SuggestionsInput: SuggestionsInput;
|
|
4731
4684
|
Tag: IGetAllTagsResult;
|
|
4732
4685
|
TagInput: TagInput;
|
|
4733
|
-
TaxAdvancesRate: TaxAdvancesRate;
|
|
4734
|
-
TaxAdvancesRateInput: TaxAdvancesRateInput;
|
|
4735
4686
|
TaxCategory: IGetAllTaxCategoriesResult;
|
|
4736
4687
|
TaxReport: Omit<TaxReport, 'reference' | 'report'> & {
|
|
4737
4688
|
reference: ReadonlyArray<ResolversParentTypes['TaxReportYear']>;
|
|
@@ -4833,12 +4784,11 @@ export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentT
|
|
|
4833
4784
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
4834
4785
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4835
4786
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
withholdingTaxCompanyId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4787
|
+
socialSecurityEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4788
|
+
taxAdvancesId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4789
|
+
taxAdvancesRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
4790
|
+
withholdingTaxBookNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4791
|
+
withholdingTaxFileNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4842
4792
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
4843
4793
|
};
|
|
4844
4794
|
export type AdminContextResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminContext'] = ResolversParentTypes['AdminContext']> = {
|
|
@@ -4907,11 +4857,6 @@ export type AdminContextResolvers<ContextType = GraphQLModules.Context, ParentTy
|
|
|
4907
4857
|
zkufotIncomeTaxCategory?: Resolver<Maybe<ResolversTypes['TaxCategory']>, ParentType, ContextType>;
|
|
4908
4858
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
4909
4859
|
};
|
|
4910
|
-
export type AnnualIdResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AnnualId'] = ResolversParentTypes['AnnualId']> = {
|
|
4911
|
-
id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4912
|
-
year?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
4913
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
4914
|
-
};
|
|
4915
4860
|
export type BalanceTransactionsResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['BalanceTransactions'] = ResolversParentTypes['BalanceTransactions']> = {
|
|
4916
4861
|
amount?: Resolver<ResolversTypes['FinancialAmount'], ParentType, ContextType>;
|
|
4917
4862
|
amountUsd?: Resolver<ResolversTypes['FinancialAmount'], ParentType, ContextType>;
|
|
@@ -6463,7 +6408,6 @@ export type QueryResolvers<ContextType = GraphQLModules.Context, ParentType exte
|
|
|
6463
6408
|
greenInvoiceClient?: Resolver<ResolversTypes['GreenInvoiceClient'], ParentType, ContextType, RequireFields<QueryGreenInvoiceClientArgs, 'clientId'>>;
|
|
6464
6409
|
incomeExpenseChart?: Resolver<ResolversTypes['IncomeExpenseChart'], ParentType, ContextType, RequireFields<QueryIncomeExpenseChartArgs, 'filters'>>;
|
|
6465
6410
|
ledgerRecordsByDates?: Resolver<ReadonlyArray<ResolversTypes['LedgerRecord']>, ParentType, ContextType, RequireFields<QueryLedgerRecordsByDatesArgs, 'fromDate' | 'toDate'>>;
|
|
6466
|
-
ledgerRecordsByFinancialEntity?: Resolver<ReadonlyArray<ResolversTypes['LedgerRecord']>, ParentType, ContextType, RequireFields<QueryLedgerRecordsByFinancialEntityArgs, 'financialEntityId'>>;
|
|
6467
6411
|
miscExpensesByCharge?: Resolver<ReadonlyArray<ResolversTypes['MiscExpense']>, ParentType, ContextType, RequireFields<QueryMiscExpensesByChargeArgs, 'chargeId'>>;
|
|
6468
6412
|
newDocumentInfoDraftByCharge?: Resolver<ResolversTypes['NewDocumentInfo'], ParentType, ContextType, RequireFields<QueryNewDocumentInfoDraftByChargeArgs, 'chargeId'>>;
|
|
6469
6413
|
newDocumentInfoDraftByDocument?: Resolver<ResolversTypes['NewDocumentInfo'], ParentType, ContextType, RequireFields<QueryNewDocumentInfoDraftByDocumentArgs, 'documentId'>>;
|
|
@@ -6486,7 +6430,6 @@ export type QueryResolvers<ContextType = GraphQLModules.Context, ParentType exte
|
|
|
6486
6430
|
taxCategory?: Resolver<ResolversTypes['TaxCategory'], ParentType, ContextType, RequireFields<QueryTaxCategoryArgs, 'id'>>;
|
|
6487
6431
|
taxCategoryByBusinessId?: Resolver<Maybe<ResolversTypes['TaxCategory']>, ParentType, ContextType, RequireFields<QueryTaxCategoryByBusinessIdArgs, 'businessId' | 'ownerId'>>;
|
|
6488
6432
|
taxReport?: Resolver<ResolversTypes['TaxReport'], ParentType, ContextType, RequireFields<QueryTaxReportArgs, 'referenceYears' | 'reportYear'>>;
|
|
6489
|
-
transactionsByFinancialEntity?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<QueryTransactionsByFinancialEntityArgs, 'financialEntityID'>>;
|
|
6490
6433
|
transactionsByIDs?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<QueryTransactionsByIDsArgs, 'transactionIDs'>>;
|
|
6491
6434
|
transactionsForBalanceReport?: Resolver<ReadonlyArray<ResolversTypes['BalanceTransactions']>, ParentType, ContextType, RequireFields<QueryTransactionsForBalanceReportArgs, 'fromDate' | 'toDate'>>;
|
|
6492
6435
|
uniformFormat?: Resolver<Maybe<ResolversTypes['UniformFormat']>, ParentType, ContextType, RequireFields<QueryUniformFormatArgs, 'fromDate' | 'toDate'>>;
|
|
@@ -6706,11 +6649,6 @@ export type TagResolvers<ContextType = GraphQLModules.Context, ParentType extend
|
|
|
6706
6649
|
parent?: Resolver<Maybe<ResolversTypes['Tag']>, ParentType, ContextType>;
|
|
6707
6650
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
6708
6651
|
};
|
|
6709
|
-
export type TaxAdvancesRateResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['TaxAdvancesRate'] = ResolversParentTypes['TaxAdvancesRate']> = {
|
|
6710
|
-
date?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
6711
|
-
rate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
6712
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
6713
|
-
};
|
|
6714
6652
|
export type TaxCategoryResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['TaxCategory'] = ResolversParentTypes['TaxCategory']> = {
|
|
6715
6653
|
createdAt?: Resolver<ResolversTypes['DateTime'], ParentType, ContextType>;
|
|
6716
6654
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
@@ -6943,7 +6881,6 @@ export type YearlyLedgerReportFinancialEntityInfoResolvers<ContextType = GraphQL
|
|
|
6943
6881
|
export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
6944
6882
|
AdminBusiness?: AdminBusinessResolvers<ContextType>;
|
|
6945
6883
|
AdminContext?: AdminContextResolvers<ContextType>;
|
|
6946
|
-
AnnualId?: AnnualIdResolvers<ContextType>;
|
|
6947
6884
|
BalanceTransactions?: BalanceTransactionsResolvers<ContextType>;
|
|
6948
6885
|
BankDeposit?: BankDepositResolvers<ContextType>;
|
|
6949
6886
|
BankDepositCharge?: BankDepositChargeResolvers<ContextType>;
|
|
@@ -7089,7 +7026,6 @@ export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
|
7089
7026
|
Suggestions?: SuggestionsResolvers<ContextType>;
|
|
7090
7027
|
SuggestionsEmailListenerConfig?: SuggestionsEmailListenerConfigResolvers<ContextType>;
|
|
7091
7028
|
Tag?: TagResolvers<ContextType>;
|
|
7092
|
-
TaxAdvancesRate?: TaxAdvancesRateResolvers<ContextType>;
|
|
7093
7029
|
TaxCategory?: TaxCategoryResolvers<ContextType>;
|
|
7094
7030
|
TaxReport?: TaxReportResolvers<ContextType>;
|
|
7095
7031
|
TaxReportYear?: TaxReportYearResolvers<ContextType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/__generated__/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/__generated__/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAq2BrD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAyX7B,OAAO,EAAE,QAAQ,EAAE,CAAC;AAuLpB,OAAO,EAAE,YAAY,EAAE,CAAC;AA2lCxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AA62D7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/** Types generated for queries found in "src/modules/financial-entities/providers/admin-businesses.provider.ts" */
|
|
2
|
-
export type DateOrString = Date | string;
|
|
3
|
-
export type Json = null | boolean | number | string | Json[] | {
|
|
4
|
-
[key: string]: Json;
|
|
5
|
-
};
|
|
6
|
-
export type JsonArray = (Json)[];
|
|
7
2
|
/** 'GetAdminBusinessesByIds' parameters type */
|
|
8
3
|
export interface IGetAdminBusinessesByIdsParams {
|
|
9
4
|
ids: readonly (string | null | void)[];
|
|
@@ -11,9 +6,6 @@ export interface IGetAdminBusinessesByIdsParams {
|
|
|
11
6
|
/** 'GetAdminBusinessesByIds' return type */
|
|
12
7
|
export interface IGetAdminBusinessesByIdsResult {
|
|
13
8
|
advance_tax_rate: number | null;
|
|
14
|
-
advance_tax_rates: JsonArray;
|
|
15
|
-
business_registration_start_date: Date | null;
|
|
16
|
-
company_tax_id: string | null;
|
|
17
9
|
id: string;
|
|
18
10
|
name: string;
|
|
19
11
|
nikuim: string | null;
|
|
@@ -21,8 +13,6 @@ export interface IGetAdminBusinessesByIdsResult {
|
|
|
21
13
|
pinkas_social_security_2021: string | null;
|
|
22
14
|
pinkas_social_security_2022: string | null;
|
|
23
15
|
registration_date: Date | null;
|
|
24
|
-
social_security_employer_ids: JsonArray;
|
|
25
|
-
tax_advances_ids: JsonArray;
|
|
26
16
|
tax_nikuim_pinkas_number: string | null;
|
|
27
17
|
tax_pinkas_number_2020: string | null;
|
|
28
18
|
tax_siduri_number_2021: string | null;
|
|
@@ -31,7 +21,6 @@ export interface IGetAdminBusinessesByIdsResult {
|
|
|
31
21
|
vat_number: string | null;
|
|
32
22
|
vat_report_cadence: number | null;
|
|
33
23
|
website_login_screenshot: string | null;
|
|
34
|
-
withholding_tax_annual_ids: JsonArray;
|
|
35
24
|
wizcloud_company_id: string | null;
|
|
36
25
|
wizcloud_token: string | null;
|
|
37
26
|
}
|
|
@@ -45,9 +34,6 @@ export type IGetAllAdminBusinessesParams = void;
|
|
|
45
34
|
/** 'GetAllAdminBusinesses' return type */
|
|
46
35
|
export interface IGetAllAdminBusinessesResult {
|
|
47
36
|
advance_tax_rate: number | null;
|
|
48
|
-
advance_tax_rates: JsonArray;
|
|
49
|
-
business_registration_start_date: Date | null;
|
|
50
|
-
company_tax_id: string | null;
|
|
51
37
|
id: string;
|
|
52
38
|
name: string;
|
|
53
39
|
nikuim: string | null;
|
|
@@ -55,8 +41,6 @@ export interface IGetAllAdminBusinessesResult {
|
|
|
55
41
|
pinkas_social_security_2021: string | null;
|
|
56
42
|
pinkas_social_security_2022: string | null;
|
|
57
43
|
registration_date: Date | null;
|
|
58
|
-
social_security_employer_ids: JsonArray;
|
|
59
|
-
tax_advances_ids: JsonArray;
|
|
60
44
|
tax_nikuim_pinkas_number: string | null;
|
|
61
45
|
tax_pinkas_number_2020: string | null;
|
|
62
46
|
tax_siduri_number_2021: string | null;
|
|
@@ -65,7 +49,6 @@ export interface IGetAllAdminBusinessesResult {
|
|
|
65
49
|
vat_number: string | null;
|
|
66
50
|
vat_report_cadence: number | null;
|
|
67
51
|
website_login_screenshot: string | null;
|
|
68
|
-
withholding_tax_annual_ids: JsonArray;
|
|
69
52
|
wizcloud_company_id: string | null;
|
|
70
53
|
wizcloud_token: string | null;
|
|
71
54
|
}
|
|
@@ -74,43 +57,3 @@ export interface IGetAllAdminBusinessesQuery {
|
|
|
74
57
|
params: IGetAllAdminBusinessesParams;
|
|
75
58
|
result: IGetAllAdminBusinessesResult;
|
|
76
59
|
}
|
|
77
|
-
/** 'UpdateAdminBusinesses' parameters type */
|
|
78
|
-
export interface IUpdateAdminBusinessesParams {
|
|
79
|
-
advanceTaxRates?: JsonArray | null | void;
|
|
80
|
-
businessRegistrationStartDate?: DateOrString | null | void;
|
|
81
|
-
companyTaxId?: string | null | void;
|
|
82
|
-
id?: string | null | void;
|
|
83
|
-
socialSecurityEmployerIds?: JsonArray | null | void;
|
|
84
|
-
taxAdvancesIds?: JsonArray | null | void;
|
|
85
|
-
withholdingTaxAnnualIds?: JsonArray | null | void;
|
|
86
|
-
}
|
|
87
|
-
/** 'UpdateAdminBusinesses' return type */
|
|
88
|
-
export interface IUpdateAdminBusinessesResult {
|
|
89
|
-
advance_tax_rate: number | null;
|
|
90
|
-
advance_tax_rates: JsonArray;
|
|
91
|
-
business_registration_start_date: Date | null;
|
|
92
|
-
company_tax_id: string | null;
|
|
93
|
-
id: string;
|
|
94
|
-
nikuim: string | null;
|
|
95
|
-
password: string | null;
|
|
96
|
-
pinkas_social_security_2021: string | null;
|
|
97
|
-
pinkas_social_security_2022: string | null;
|
|
98
|
-
registration_date: Date | null;
|
|
99
|
-
social_security_employer_ids: JsonArray;
|
|
100
|
-
tax_advances_ids: JsonArray;
|
|
101
|
-
tax_nikuim_pinkas_number: string | null;
|
|
102
|
-
tax_pinkas_number_2020: string | null;
|
|
103
|
-
tax_siduri_number_2021: string | null;
|
|
104
|
-
tax_siduri_number_2022: string | null;
|
|
105
|
-
username_vat_website: string | null;
|
|
106
|
-
vat_report_cadence: number | null;
|
|
107
|
-
website_login_screenshot: string | null;
|
|
108
|
-
withholding_tax_annual_ids: JsonArray;
|
|
109
|
-
wizcloud_company_id: string | null;
|
|
110
|
-
wizcloud_token: string | null;
|
|
111
|
-
}
|
|
112
|
-
/** 'UpdateAdminBusinesses' query type */
|
|
113
|
-
export interface IUpdateAdminBusinessesQuery {
|
|
114
|
-
params: IUpdateAdminBusinessesParams;
|
|
115
|
-
result: IUpdateAdminBusinessesResult;
|
|
116
|
-
}
|
package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-businesses.types.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/__generated__/admin-businesses.types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"admin-businesses.types.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/__generated__/admin-businesses.types.ts"],"names":[],"mappings":"AAAA,mHAAmH"}
|
|
@@ -4,9 +4,7 @@ export declare namespace FinancialEntitiesModule {
|
|
|
4
4
|
interface DefinedFields {
|
|
5
5
|
Query: 'adminBusiness' | 'allAdminBusinesses' | 'businessTransactionsSumFromLedgerRecords' | 'businessTransactionsFromLedgerRecords' | 'business' | 'businesses' | 'allBusinesses' | 'client' | 'allClients' | 'financialEntity' | 'allFinancialEntities' | 'taxCategories' | 'taxCategory' | 'taxCategoryByBusinessId';
|
|
6
6
|
Mutation: 'createAdminBusiness' | 'updateAdminBusiness' | 'deleteAdminBusiness' | 'updateBusiness' | 'insertNewBusiness' | 'mergeBusinesses' | 'batchGenerateBusinessesOutOfTransactions' | 'updateClient' | 'insertClient' | 'updateTaxCategory' | 'insertTaxCategory';
|
|
7
|
-
AdminBusiness: 'id' | 'name' | 'governmentId' | '
|
|
8
|
-
AnnualId: 'year' | 'id';
|
|
9
|
-
TaxAdvancesRate: 'date' | 'rate';
|
|
7
|
+
AdminBusiness: 'id' | 'name' | 'governmentId' | 'business' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
10
8
|
BusinessTransactionsSumFromLedgerRecordsSuccessfulResult: 'businessTransactionsSum';
|
|
11
9
|
BusinessTransactionSum: 'business' | 'credit' | 'debit' | 'total' | 'foreignCurrenciesSum';
|
|
12
10
|
ForeignCurrencySum: 'credit' | 'debit' | 'total' | 'currency';
|
|
@@ -50,10 +48,8 @@ export declare namespace FinancialEntitiesModule {
|
|
|
50
48
|
EmailAttachmentType: 'PDF' | 'PNG' | 'JPEG';
|
|
51
49
|
}
|
|
52
50
|
interface DefinedInputFields {
|
|
53
|
-
CreateAdminBusinessInput: 'businessId' | '
|
|
54
|
-
UpdateAdminBusinessInput: '
|
|
55
|
-
AnnualIdInput: 'year' | 'id';
|
|
56
|
-
TaxAdvancesRateInput: 'date' | 'rate';
|
|
51
|
+
CreateAdminBusinessInput: 'businessId' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
52
|
+
UpdateAdminBusinessInput: 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
57
53
|
BusinessTransactionsFilter: 'businessIDs' | 'ownerIds' | 'type' | 'fromDate' | 'toDate' | 'includeRevaluation';
|
|
58
54
|
UpdateBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
59
55
|
InsertNewBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
@@ -71,12 +67,8 @@ export declare namespace FinancialEntitiesModule {
|
|
|
71
67
|
export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
|
|
72
68
|
export type CreateAdminBusinessInput = Pick<Types.CreateAdminBusinessInput, DefinedInputFields['CreateAdminBusinessInput']>;
|
|
73
69
|
export type UpdateAdminBusinessInput = Pick<Types.UpdateAdminBusinessInput, DefinedInputFields['UpdateAdminBusinessInput']>;
|
|
74
|
-
export type TimelessDate = Types.TimelessDate;
|
|
75
70
|
export type LtdFinancialEntity = Pick<Types.LtdFinancialEntity, DefinedFields['LtdFinancialEntity']>;
|
|
76
|
-
export type
|
|
77
|
-
export type TaxAdvancesRate = Pick<Types.TaxAdvancesRate, DefinedFields['TaxAdvancesRate']>;
|
|
78
|
-
export type AnnualIdInput = Pick<Types.AnnualIdInput, DefinedInputFields['AnnualIdInput']>;
|
|
79
|
-
export type TaxAdvancesRateInput = Pick<Types.TaxAdvancesRateInput, DefinedInputFields['TaxAdvancesRateInput']>;
|
|
71
|
+
export type TimelessDate = Types.TimelessDate;
|
|
80
72
|
export type BusinessTransactionsSumFromLedgerRecordsResult = Types.BusinessTransactionsSumFromLedgerRecordsResult;
|
|
81
73
|
export type BusinessTransactionsFilter = Pick<Types.BusinessTransactionsFilter, DefinedInputFields['BusinessTransactionsFilter']>;
|
|
82
74
|
export type BusinessTransactionsFromLedgerRecordsResult = Types.BusinessTransactionsFromLedgerRecordsResult;
|
|
@@ -143,8 +135,6 @@ export declare namespace FinancialEntitiesModule {
|
|
|
143
135
|
export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
|
|
144
136
|
export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
|
|
145
137
|
export type AdminBusinessResolvers = Pick<Types.AdminBusinessResolvers, DefinedFields['AdminBusiness']>;
|
|
146
|
-
export type AnnualIdResolvers = Pick<Types.AnnualIdResolvers, DefinedFields['AnnualId']>;
|
|
147
|
-
export type TaxAdvancesRateResolvers = Pick<Types.TaxAdvancesRateResolvers, DefinedFields['TaxAdvancesRate']>;
|
|
148
138
|
export type BusinessTransactionsSumFromLedgerRecordsSuccessfulResultResolvers = Pick<Types.BusinessTransactionsSumFromLedgerRecordsSuccessfulResultResolvers, DefinedFields['BusinessTransactionsSumFromLedgerRecordsSuccessfulResult'] | '__isTypeOf'>;
|
|
149
139
|
export type BusinessTransactionSumResolvers = Pick<Types.BusinessTransactionSumResolvers, DefinedFields['BusinessTransactionSum']>;
|
|
150
140
|
export type ForeignCurrencySumResolvers = Pick<Types.ForeignCurrencySumResolvers, DefinedFields['ForeignCurrencySum']>;
|
|
@@ -186,8 +176,6 @@ export declare namespace FinancialEntitiesModule {
|
|
|
186
176
|
Query?: QueryResolvers;
|
|
187
177
|
Mutation?: MutationResolvers;
|
|
188
178
|
AdminBusiness?: AdminBusinessResolvers;
|
|
189
|
-
AnnualId?: AnnualIdResolvers;
|
|
190
|
-
TaxAdvancesRate?: TaxAdvancesRateResolvers;
|
|
191
179
|
BusinessTransactionsSumFromLedgerRecordsSuccessfulResult?: BusinessTransactionsSumFromLedgerRecordsSuccessfulResultResolvers;
|
|
192
180
|
BusinessTransactionSum?: BusinessTransactionSumResolvers;
|
|
193
181
|
ForeignCurrencySum?: ForeignCurrencySumResolvers;
|
|
@@ -261,24 +249,13 @@ export declare namespace FinancialEntitiesModule {
|
|
|
261
249
|
id?: gm.Middleware[];
|
|
262
250
|
name?: gm.Middleware[];
|
|
263
251
|
governmentId?: gm.Middleware[];
|
|
264
|
-
registrationDate?: gm.Middleware[];
|
|
265
252
|
business?: gm.Middleware[];
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
};
|
|
273
|
-
AnnualId?: {
|
|
274
|
-
'*'?: gm.Middleware[];
|
|
275
|
-
year?: gm.Middleware[];
|
|
276
|
-
id?: gm.Middleware[];
|
|
277
|
-
};
|
|
278
|
-
TaxAdvancesRate?: {
|
|
279
|
-
'*'?: gm.Middleware[];
|
|
280
|
-
date?: gm.Middleware[];
|
|
281
|
-
rate?: gm.Middleware[];
|
|
253
|
+
withholdingTaxBookNumber?: gm.Middleware[];
|
|
254
|
+
withholdingTaxFileNumber?: gm.Middleware[];
|
|
255
|
+
socialSecurityEmployerId?: gm.Middleware[];
|
|
256
|
+
taxAdvancesRate?: gm.Middleware[];
|
|
257
|
+
taxAdvancesId?: gm.Middleware[];
|
|
258
|
+
registrationDate?: gm.Middleware[];
|
|
282
259
|
};
|
|
283
260
|
LtdFinancialEntity?: {
|
|
284
261
|
'*'?: gm.Middleware[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,uBAAuB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,uBAAuB,CAoevC;AApeD,WAAiB,uBAAuB;IA0CrC,CAAC;IAKD,CAAC;IAeD,CAAC;IAuJD,CAAC;IA8QD,CAAC;AACJ,CAAC,EApegB,uBAAuB,KAAvB,uBAAuB,QAoevC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import DataLoader from 'dataloader';
|
|
2
2
|
import { DBProvider } from '../../app-providers/db.provider.js';
|
|
3
|
-
import type { IGetAllAdminBusinessesResult
|
|
3
|
+
import type { IGetAllAdminBusinessesResult } from '../types.js';
|
|
4
4
|
export declare class AdminBusinessesProvider {
|
|
5
5
|
private dbProvider;
|
|
6
6
|
cache: {
|
|
@@ -16,6 +16,5 @@ export declare class AdminBusinessesProvider {
|
|
|
16
16
|
private batchAdminBusinessesByIds;
|
|
17
17
|
getAdminBusinessByIdLoader: DataLoader<string, import("../types.js").IGetAdminBusinessesByIdsResult | undefined, import("node-cache").Key | import("node-cache").Key[]>;
|
|
18
18
|
getAllAdminBusinesses(): Promise<IGetAllAdminBusinessesResult[]>;
|
|
19
|
-
updateAdminBusiness(params: IUpdateAdminBusinessesParams): Promise<IUpdateAdminBusinessesResult>;
|
|
20
19
|
clearCache(): void;
|
|
21
20
|
}
|
|
@@ -4,7 +4,6 @@ import { Injectable, Scope } from 'graphql-modules';
|
|
|
4
4
|
import { DBProvider } from '../../app-providers/db.provider.js';
|
|
5
5
|
import { sql } from '@pgtyped/runtime';
|
|
6
6
|
import { getCacheInstance } from '../../../shared/helpers/index.js';
|
|
7
|
-
import { adminBusinessUpdateSchema } from '../helpers/admin-businesses.helper.js';
|
|
8
7
|
const getAdminBusinessesByIds = sql `
|
|
9
8
|
SELECT ab.*, f.name, b.vat_number
|
|
10
9
|
FROM accounter_schema.businesses_admin ab
|
|
@@ -22,36 +21,6 @@ const getAllAdminBusinesses = sql `
|
|
|
22
21
|
USING (id)
|
|
23
22
|
INNER JOIN accounter_schema.financial_entities fe
|
|
24
23
|
USING (id);`;
|
|
25
|
-
const updateAdminBusinesses = sql `
|
|
26
|
-
UPDATE accounter_schema.businesses_admin
|
|
27
|
-
SET
|
|
28
|
-
business_registration_start_date = COALESCE(
|
|
29
|
-
$businessRegistrationStartDate,
|
|
30
|
-
business_registration_start_date
|
|
31
|
-
),
|
|
32
|
-
company_tax_id = COALESCE(
|
|
33
|
-
$companyTaxId,
|
|
34
|
-
company_tax_id
|
|
35
|
-
),
|
|
36
|
-
advance_tax_rates = COALESCE(
|
|
37
|
-
$advanceTaxRates,
|
|
38
|
-
advance_tax_rates
|
|
39
|
-
),
|
|
40
|
-
tax_advances_ids = COALESCE(
|
|
41
|
-
$taxAdvancesIds,
|
|
42
|
-
tax_advances_ids
|
|
43
|
-
),
|
|
44
|
-
social_security_employer_ids = COALESCE(
|
|
45
|
-
$socialSecurityEmployerIds,
|
|
46
|
-
social_security_employer_ids
|
|
47
|
-
),
|
|
48
|
-
withholding_tax_annual_ids = COALESCE(
|
|
49
|
-
$withholdingTaxAnnualIds,
|
|
50
|
-
withholding_tax_annual_ids
|
|
51
|
-
)
|
|
52
|
-
WHERE
|
|
53
|
-
id = $id
|
|
54
|
-
RETURNING *;`;
|
|
55
24
|
let AdminBusinessesProvider = class AdminBusinessesProvider {
|
|
56
25
|
dbProvider;
|
|
57
26
|
cache = getCacheInstance({
|
|
@@ -81,12 +50,6 @@ let AdminBusinessesProvider = class AdminBusinessesProvider {
|
|
|
81
50
|
return result;
|
|
82
51
|
});
|
|
83
52
|
}
|
|
84
|
-
async updateAdminBusiness(params) {
|
|
85
|
-
const inputParams = adminBusinessUpdateSchema.parse(params);
|
|
86
|
-
const [result] = await updateAdminBusinesses.run(inputParams, this.dbProvider);
|
|
87
|
-
this.clearCache();
|
|
88
|
-
return result;
|
|
89
|
-
}
|
|
90
53
|
clearCache() {
|
|
91
54
|
this.cache.clear();
|
|
92
55
|
}
|
package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-businesses.provider.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/providers/admin-businesses.provider.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-businesses.provider.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/providers/admin-businesses.provider.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAOnD,MAAM,uBAAuB,GAAG,GAAG,CAA+B;;;;;;;0BAOxC,CAAC;AAE3B,MAAM,qBAAqB,GAAG,GAAG,CAA6B;;;;;;;;kBAQ5C,CAAC;AAMZ,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAKd;IAJpB,KAAK,GAAG,gBAAgB,CAAC;QACvB,MAAM,EAAE,EAAE,GAAG,CAAC;KACf,CAAC,CAAC;IAEH,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEtC,KAAK,CAAC,yBAAyB,CAAC,GAAsB;QAC5D,MAAM,SAAS,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QACpC,MAAM,eAAe,GAAG,MAAM,uBAAuB,CAAC,GAAG,CACvD;YACE,GAAG,EAAE,SAAS;SACf,EACD,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACvE,CAAC;IAEM,0BAA0B,GAAG,IAAI,UAAU,CAChD,CAAC,GAAsB,EAAE,EAAE,CAAC,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,EAC/D;QACE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,kBAAkB,EAAE,EAAE;QACxC,QAAQ,EAAE,IAAI,CAAC,KAAK;KACrB,CACF,CAAC;IAEK,qBAAqB;QAC1B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAiC,sBAAsB,CAAC,CAAC;QACpF,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,qBAAqB,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACzE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;YAC/C,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,UAAU;QACf,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF,CAAA;AAxCY,uBAAuB;IAJnC,UAAU,CAAC;QACV,KAAK,EAAE,KAAK,CAAC,SAAS;QACtB,MAAM,EAAE,IAAI;KACb,CAAC;qCAMgC,UAAU;GAL/B,uBAAuB,CAwCnC"}
|