@accounter/server 0.0.8-alpha-20251028104600-6d09212f4168a96bfd20e7b893885e668be836d6 → 0.0.8-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462
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 -4
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/server/src/__generated__/types.d.ts +20 -16
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/__generated__/types.d.ts +8 -7
- package/dist/server/src/modules/financial-entities/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js +5 -4
- 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 +15 -12
- package/dist/server/src/modules/financial-entities/typeDefs/admin-businesses.graphql.js.map +1 -1
- package/package.json +5 -5
- package/src/__generated__/types.ts +20 -16
- package/src/modules/financial-entities/__generated__/types.ts +8 -7
- package/src/modules/financial-entities/resolvers/admin-businesses.resolver.ts +5 -4
- package/src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @accounter/server
|
|
2
2
|
|
|
3
|
-
## 0.0.8-alpha-
|
|
3
|
+
## 0.0.8-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -380,9 +380,9 @@
|
|
|
380
380
|
[[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
381
381
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
382
382
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6)]:
|
|
383
|
-
- @accounter/pcn874-generator@0.6.3-alpha-
|
|
384
|
-
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-
|
|
385
|
-
- @accounter/shaam6111-generator@0.1.4-alpha-
|
|
383
|
+
- @accounter/pcn874-generator@0.6.3-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462
|
|
384
|
+
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462
|
|
385
|
+
- @accounter/shaam6111-generator@0.1.4-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462
|
|
386
386
|
|
|
387
387
|
## 0.0.7
|
|
388
388
|
|
|
@@ -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 { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
|
|
8
7
|
import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
|
|
8
|
+
import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
|
|
9
9
|
export type Maybe<T> = T | null;
|
|
10
10
|
export type InputMaybe<T> = Maybe<T>;
|
|
11
11
|
export type Exact<T extends {
|
|
@@ -188,15 +188,16 @@ export type AddBusinessTripTravelAndSubsistenceExpenseInput = {
|
|
|
188
188
|
/** Represents a business entity managed by an accountant in the system. */
|
|
189
189
|
export type AdminBusiness = {
|
|
190
190
|
readonly __typename?: 'AdminBusiness';
|
|
191
|
-
readonly advanceTaxRate?: Maybe<Scalars['Float']['output']>;
|
|
192
191
|
readonly business: LtdFinancialEntity;
|
|
193
|
-
readonly employerWithholdingTaxAccountNumber?: Maybe<Scalars['String']['output']>;
|
|
194
192
|
readonly governmentId: Scalars['String']['output'];
|
|
195
193
|
readonly id: Scalars['UUID']['output'];
|
|
196
194
|
readonly name: Scalars['String']['output'];
|
|
197
|
-
readonly nationalInsuranceEmployerId?: Maybe<Scalars['String']['output']>;
|
|
198
195
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
199
|
-
readonly
|
|
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']>;
|
|
200
201
|
};
|
|
201
202
|
/** defines a tag / category for charge arrangement */
|
|
202
203
|
export type AdminContext = {
|
|
@@ -1104,12 +1105,13 @@ export type Country = {
|
|
|
1104
1105
|
};
|
|
1105
1106
|
/** Input type for creating a new admin business. */
|
|
1106
1107
|
export type CreateAdminBusinessInput = {
|
|
1107
|
-
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1108
1108
|
readonly businessId: Scalars['UUID']['input'];
|
|
1109
|
-
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1110
|
-
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1111
1109
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1112
|
-
readonly
|
|
1110
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1111
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
1112
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1113
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1114
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1113
1115
|
};
|
|
1114
1116
|
/** input for creating a new contract */
|
|
1115
1117
|
export type CreateContractInput = {
|
|
@@ -3641,11 +3643,12 @@ export type Unprocessed = Document & Linkable & {
|
|
|
3641
3643
|
};
|
|
3642
3644
|
/** Input type for updating admin business details. */
|
|
3643
3645
|
export type UpdateAdminBusinessInput = {
|
|
3644
|
-
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
3645
|
-
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3646
|
-
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
3647
3646
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
3648
|
-
readonly
|
|
3647
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
3648
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
3649
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
3650
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3651
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3649
3652
|
};
|
|
3650
3653
|
/** input for updateBusiness */
|
|
3651
3654
|
export type UpdateBusinessInput = {
|
|
@@ -4773,15 +4776,16 @@ export type DeferDirectiveResolver<Result, Parent, ContextType = GraphQLModules.
|
|
|
4773
4776
|
export type StreamDirectiveArgs = {};
|
|
4774
4777
|
export type StreamDirectiveResolver<Result, Parent, ContextType = GraphQLModules.Context, Args = StreamDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
4775
4778
|
export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminBusiness'] = ResolversParentTypes['AdminBusiness']> = {
|
|
4776
|
-
advanceTaxRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
4777
4779
|
business?: Resolver<ResolversTypes['LtdFinancialEntity'], ParentType, ContextType>;
|
|
4778
|
-
employerWithholdingTaxAccountNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4779
4780
|
governmentId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4780
4781
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
4781
4782
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4782
|
-
nationalInsuranceEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4783
4783
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
4784
|
-
|
|
4784
|
+
socialSecurityEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4785
|
+
taxAdvancesId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4786
|
+
taxAdvancesRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
4787
|
+
withholdingTaxBookNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4788
|
+
withholdingTaxFileNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4785
4789
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
4786
4790
|
};
|
|
4787
4791
|
export type AdminContextResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminContext'] = ResolversParentTypes['AdminContext']> = {
|
|
@@ -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;AAuX7B,OAAO,EAAE,QAAQ,EAAE,CAAC;AAuLpB,OAAO,EAAE,YAAY,EAAE,CAAC;AA2lCxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AA62D7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -4,7 +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' | 'business' | '
|
|
7
|
+
AdminBusiness: 'id' | 'name' | 'governmentId' | 'business' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
8
8
|
BusinessTransactionsSumFromLedgerRecordsSuccessfulResult: 'businessTransactionsSum';
|
|
9
9
|
BusinessTransactionSum: 'business' | 'credit' | 'debit' | 'total' | 'foreignCurrenciesSum';
|
|
10
10
|
ForeignCurrencySum: 'credit' | 'debit' | 'total' | 'currency';
|
|
@@ -48,8 +48,8 @@ export declare namespace FinancialEntitiesModule {
|
|
|
48
48
|
EmailAttachmentType: 'PDF' | 'PNG' | 'JPEG';
|
|
49
49
|
}
|
|
50
50
|
interface DefinedInputFields {
|
|
51
|
-
CreateAdminBusinessInput: 'businessId' | '
|
|
52
|
-
UpdateAdminBusinessInput: '
|
|
51
|
+
CreateAdminBusinessInput: 'businessId' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
52
|
+
UpdateAdminBusinessInput: 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
53
53
|
BusinessTransactionsFilter: 'businessIDs' | 'ownerIds' | 'type' | 'fromDate' | 'toDate' | 'includeRevaluation';
|
|
54
54
|
UpdateBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
55
55
|
InsertNewBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
@@ -250,10 +250,11 @@ export declare namespace FinancialEntitiesModule {
|
|
|
250
250
|
name?: gm.Middleware[];
|
|
251
251
|
governmentId?: gm.Middleware[];
|
|
252
252
|
business?: gm.Middleware[];
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
withholdingTaxBookNumber?: gm.Middleware[];
|
|
254
|
+
withholdingTaxFileNumber?: gm.Middleware[];
|
|
255
|
+
socialSecurityEmployerId?: gm.Middleware[];
|
|
256
|
+
taxAdvancesRate?: gm.Middleware[];
|
|
257
|
+
taxAdvancesId?: gm.Middleware[];
|
|
257
258
|
registrationDate?: gm.Middleware[];
|
|
258
259
|
};
|
|
259
260
|
LtdFinancialEntity?: {
|
|
@@ -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"}
|
|
@@ -34,10 +34,11 @@ export const adminBusinessesResolvers = {
|
|
|
34
34
|
}
|
|
35
35
|
return business;
|
|
36
36
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
withholdingTaxBookNumber: admin => admin.tax_nikuim_pinkas_number,
|
|
38
|
+
withholdingTaxFileNumber: admin => admin.nikuim,
|
|
39
|
+
socialSecurityEmployerId: admin => admin.pinkas_social_security_2022,
|
|
40
|
+
taxAdvancesRate: admin => admin.advance_tax_rate,
|
|
41
|
+
taxAdvancesId: admin => admin.tax_siduri_number_2022,
|
|
41
42
|
registrationDate: admin => {
|
|
42
43
|
if (!admin.registration_date) {
|
|
43
44
|
throw new GraphQLError(`Admin business ID="${admin.id}" has no registration date`);
|
package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-businesses.resolver.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/resolvers/admin-businesses.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,MAAM,CAAC,MAAM,wBAAwB,GAAsC;IACzE,KAAK,EAAE;QACL,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC/C,MAAM,aAAa,GAAG,MAAM,QAAQ;iBACjC,GAAG,CAAC,uBAAuB,CAAC;iBAC5B,0BAA0B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACvC,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,MAAM,IAAI,YAAY,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;YAChE,CAAC;YAED,OAAO,aAAa,CAAC;QACvB,CAAC;QACD,kBAAkB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAChD,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,qBAAqB,EAAE,CAAC;YAE5F,OAAO,eAAe,CAAC;QACzB,CAAC;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACrB,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI;QACzB,YAAY,EAAE,KAAK,CAAC,EAAE;YACpB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBACtB,MAAM,IAAI,YAAY,CAAC,sBAAsB,KAAK,CAAC,EAAE,qBAAqB,CAAC,CAAC;YAC9E,CAAC;YACD,OAAO,KAAK,CAAC,UAAU,CAAC;QAC1B,CAAC;QACD,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YACzC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC7F,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,YAAY,CAAC,gBAAgB,KAAK,CAAC,EAAE,aAAa,CAAC,CAAC;YAChE,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,
|
|
1
|
+
{"version":3,"file":"admin-businesses.resolver.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/resolvers/admin-businesses.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,MAAM,CAAC,MAAM,wBAAwB,GAAsC;IACzE,KAAK,EAAE;QACL,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC/C,MAAM,aAAa,GAAG,MAAM,QAAQ;iBACjC,GAAG,CAAC,uBAAuB,CAAC;iBAC5B,0BAA0B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACvC,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,MAAM,IAAI,YAAY,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;YAChE,CAAC;YAED,OAAO,aAAa,CAAC;QACvB,CAAC;QACD,kBAAkB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAChD,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,qBAAqB,EAAE,CAAC;YAE5F,OAAO,eAAe,CAAC;QACzB,CAAC;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACrB,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI;QACzB,YAAY,EAAE,KAAK,CAAC,EAAE;YACpB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBACtB,MAAM,IAAI,YAAY,CAAC,sBAAsB,KAAK,CAAC,EAAE,qBAAqB,CAAC,CAAC;YAC9E,CAAC;YACD,OAAO,KAAK,CAAC,UAAU,CAAC;QAC1B,CAAC;QACD,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YACzC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC7F,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,YAAY,CAAC,gBAAgB,KAAK,CAAC,EAAE,aAAa,CAAC,CAAC;YAChE,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB;QACjE,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM;QAC/C,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,2BAA2B;QACpE,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB;QAChD,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,sBAAsB;QACpD,gBAAgB,EAAE,KAAK,CAAC,EAAE;YACxB,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,CAAC;gBAC7B,MAAM,IAAI,YAAY,CAAC,sBAAsB,KAAK,CAAC,EAAE,4BAA4B,CAAC,CAAC;YACrF,CAAC;YACD,OAAO,wBAAwB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAC3D,CAAC;KACF;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YACnD,MAAM,aAAa,GAAG,MAAM,QAAQ;iBACjC,GAAG,CAAC,uBAAuB,CAAC;iBAC5B,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YAEtD,OAAO,aAAa,IAAI,IAAI,CAAC;QAC/B,CAAC;KACF;CACF,CAAC"}
|
|
@@ -19,29 +19,32 @@ export default gql `
|
|
|
19
19
|
name: String!
|
|
20
20
|
governmentId: String!
|
|
21
21
|
business: LtdFinancialEntity!
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
withholdingTaxBookNumber: String
|
|
23
|
+
withholdingTaxFileNumber: String
|
|
24
|
+
socialSecurityEmployerId: String
|
|
25
|
+
taxAdvancesRate: Float
|
|
26
|
+
taxAdvancesId: String
|
|
26
27
|
registrationDate: TimelessDate!
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
" Input type for creating a new admin business. "
|
|
30
31
|
input CreateAdminBusinessInput {
|
|
31
32
|
businessId: UUID!
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
withholdingTaxBookNumber: String
|
|
34
|
+
withholdingTaxFileNumber: String
|
|
35
|
+
socialSecurityEmployerId: String
|
|
36
|
+
taxAdvancesRate: Float
|
|
37
|
+
taxAdvancesId: String
|
|
36
38
|
registrationDate: TimelessDate!
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
" Input type for updating admin business details. "
|
|
40
42
|
input UpdateAdminBusinessInput {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
withholdingTaxBookNumber: String
|
|
44
|
+
withholdingTaxFileNumber: String
|
|
45
|
+
socialSecurityEmployerId: String
|
|
46
|
+
taxAdvancesRate: Float
|
|
47
|
+
taxAdvancesId: String
|
|
45
48
|
registrationDate: TimelessDate
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-businesses.graphql.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"admin-businesses.graphql.js","sourceRoot":"","sources":["../../../../../../src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accounter/server",
|
|
3
|
-
"version": "0.0.8-alpha-
|
|
3
|
+
"version": "0.0.8-alpha-20251028120608-255010a90e4b23163e8a832606cd6b5b74442462",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@accounter/pcn874-generator": "workspace:^",
|
|
23
23
|
"@accounter/shaam-uniform-format-generator": "workspace:^",
|
|
24
24
|
"@accounter/shaam6111-generator": "workspace:^",
|
|
25
|
-
"@ai-sdk/anthropic": "2.0.
|
|
25
|
+
"@ai-sdk/anthropic": "2.0.35",
|
|
26
26
|
"@envelop/generic-auth": "10.0.0",
|
|
27
27
|
"@envelop/graphql-modules": "8.0.0",
|
|
28
28
|
"@google-cloud/pubsub": "5.2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@pgtyped/cli": "2.4.3",
|
|
32
32
|
"@pgtyped/runtime": "2.4.2",
|
|
33
33
|
"@whatwg-node/fetch": "0.10.11",
|
|
34
|
-
"ai": "5.0.
|
|
34
|
+
"ai": "5.0.76",
|
|
35
35
|
"basic-auth": "2.0.1",
|
|
36
36
|
"bcrypt": "6.0.0",
|
|
37
37
|
"cloudinary": "2.8.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node-cache": "5.1.2",
|
|
49
49
|
"node-xlsx": "0.24.0",
|
|
50
50
|
"pg": "8.16.3",
|
|
51
|
-
"puppeteer": "24.26.
|
|
51
|
+
"puppeteer": "24.26.0",
|
|
52
52
|
"reflect-metadata": "0.2.2",
|
|
53
53
|
"strip-indent": "4.1.1",
|
|
54
54
|
"zod": "4.1.12"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/basic-auth": "1.1.8",
|
|
58
58
|
"@types/bcrypt": "6.0.0",
|
|
59
59
|
"@types/inline-css": "3.0.4",
|
|
60
|
-
"@types/pg": "8.15.
|
|
60
|
+
"@types/pg": "8.15.5",
|
|
61
61
|
"nodemon": "3.1.10",
|
|
62
62
|
"pino-pretty": "13.1.2",
|
|
63
63
|
"rimraf": "6.0.1",
|
|
@@ -143,15 +143,16 @@ export type AddBusinessTripTravelAndSubsistenceExpenseInput = {
|
|
|
143
143
|
/** Represents a business entity managed by an accountant in the system. */
|
|
144
144
|
export type AdminBusiness = {
|
|
145
145
|
readonly __typename?: 'AdminBusiness';
|
|
146
|
-
readonly advanceTaxRate?: Maybe<Scalars['Float']['output']>;
|
|
147
146
|
readonly business: LtdFinancialEntity;
|
|
148
|
-
readonly employerWithholdingTaxAccountNumber?: Maybe<Scalars['String']['output']>;
|
|
149
147
|
readonly governmentId: Scalars['String']['output'];
|
|
150
148
|
readonly id: Scalars['UUID']['output'];
|
|
151
149
|
readonly name: Scalars['String']['output'];
|
|
152
|
-
readonly nationalInsuranceEmployerId?: Maybe<Scalars['String']['output']>;
|
|
153
150
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
154
|
-
readonly
|
|
151
|
+
readonly socialSecurityEmployerId?: Maybe<Scalars['String']['output']>;
|
|
152
|
+
readonly taxAdvancesId?: Maybe<Scalars['String']['output']>;
|
|
153
|
+
readonly taxAdvancesRate?: Maybe<Scalars['Float']['output']>;
|
|
154
|
+
readonly withholdingTaxBookNumber?: Maybe<Scalars['String']['output']>;
|
|
155
|
+
readonly withholdingTaxFileNumber?: Maybe<Scalars['String']['output']>;
|
|
155
156
|
};
|
|
156
157
|
|
|
157
158
|
/** defines a tag / category for charge arrangement */
|
|
@@ -1145,12 +1146,13 @@ export type Country = {
|
|
|
1145
1146
|
|
|
1146
1147
|
/** Input type for creating a new admin business. */
|
|
1147
1148
|
export type CreateAdminBusinessInput = {
|
|
1148
|
-
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1149
1149
|
readonly businessId: Scalars['UUID']['input'];
|
|
1150
|
-
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1151
|
-
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1152
1150
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1153
|
-
readonly
|
|
1151
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1152
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
1153
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1154
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1155
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1154
1156
|
};
|
|
1155
1157
|
|
|
1156
1158
|
/** input for creating a new contract */
|
|
@@ -4479,11 +4481,12 @@ export type Unprocessed = Document & Linkable & {
|
|
|
4479
4481
|
|
|
4480
4482
|
/** Input type for updating admin business details. */
|
|
4481
4483
|
export type UpdateAdminBusinessInput = {
|
|
4482
|
-
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
4483
|
-
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4484
|
-
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
4485
4484
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
4486
|
-
readonly
|
|
4485
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
4486
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
4487
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
4488
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4489
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4487
4490
|
};
|
|
4488
4491
|
|
|
4489
4492
|
/** input for updateBusiness */
|
|
@@ -5523,15 +5526,16 @@ export type StreamDirectiveArgs = { };
|
|
|
5523
5526
|
export type StreamDirectiveResolver<Result, Parent, ContextType = GraphQLModules.Context, Args = StreamDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
5524
5527
|
|
|
5525
5528
|
export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminBusiness'] = ResolversParentTypes['AdminBusiness']> = {
|
|
5526
|
-
advanceTaxRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
5527
5529
|
business?: Resolver<ResolversTypes['LtdFinancialEntity'], ParentType, ContextType>;
|
|
5528
|
-
employerWithholdingTaxAccountNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5529
5530
|
governmentId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5530
5531
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
5531
5532
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5532
|
-
nationalInsuranceEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5533
5533
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
5534
|
-
|
|
5534
|
+
socialSecurityEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5535
|
+
taxAdvancesId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5536
|
+
taxAdvancesRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
5537
|
+
withholdingTaxBookNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5538
|
+
withholdingTaxFileNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5535
5539
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5536
5540
|
};
|
|
5537
5541
|
|
|
@@ -4,7 +4,7 @@ export 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' | 'business' | '
|
|
7
|
+
AdminBusiness: 'id' | 'name' | 'governmentId' | 'business' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
8
8
|
BusinessTransactionsSumFromLedgerRecordsSuccessfulResult: 'businessTransactionsSum';
|
|
9
9
|
BusinessTransactionSum: 'business' | 'credit' | 'debit' | 'total' | 'foreignCurrenciesSum';
|
|
10
10
|
ForeignCurrencySum: 'credit' | 'debit' | 'total' | 'currency';
|
|
@@ -50,8 +50,8 @@ export namespace FinancialEntitiesModule {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
interface DefinedInputFields {
|
|
53
|
-
CreateAdminBusinessInput: 'businessId' | '
|
|
54
|
-
UpdateAdminBusinessInput: '
|
|
53
|
+
CreateAdminBusinessInput: 'businessId' | 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
54
|
+
UpdateAdminBusinessInput: 'withholdingTaxBookNumber' | 'withholdingTaxFileNumber' | 'socialSecurityEmployerId' | 'taxAdvancesRate' | 'taxAdvancesId' | 'registrationDate';
|
|
55
55
|
BusinessTransactionsFilter: 'businessIDs' | 'ownerIds' | 'type' | 'fromDate' | 'toDate' | 'includeRevaluation';
|
|
56
56
|
UpdateBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
57
57
|
InsertNewBusinessInput: 'name' | 'sortCode' | 'country' | 'hebrewName' | 'address' | 'email' | 'website' | 'phoneNumber' | 'governmentId' | 'taxCategory' | 'exemptDealer' | 'suggestions' | 'optionalVAT' | 'isReceiptEnough' | 'isDocumentsOptional' | 'pcn874RecordType' | 'irsCode' | 'isActive';
|
|
@@ -256,10 +256,11 @@ export namespace FinancialEntitiesModule {
|
|
|
256
256
|
name?: gm.Middleware[];
|
|
257
257
|
governmentId?: gm.Middleware[];
|
|
258
258
|
business?: gm.Middleware[];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
withholdingTaxBookNumber?: gm.Middleware[];
|
|
260
|
+
withholdingTaxFileNumber?: gm.Middleware[];
|
|
261
|
+
socialSecurityEmployerId?: gm.Middleware[];
|
|
262
|
+
taxAdvancesRate?: gm.Middleware[];
|
|
263
|
+
taxAdvancesId?: gm.Middleware[];
|
|
263
264
|
registrationDate?: gm.Middleware[];
|
|
264
265
|
};
|
|
265
266
|
LtdFinancialEntity?: {
|
|
@@ -38,10 +38,11 @@ export const adminBusinessesResolvers: FinancialEntitiesModule.Resolvers = {
|
|
|
38
38
|
}
|
|
39
39
|
return business;
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
withholdingTaxBookNumber: admin => admin.tax_nikuim_pinkas_number,
|
|
42
|
+
withholdingTaxFileNumber: admin => admin.nikuim,
|
|
43
|
+
socialSecurityEmployerId: admin => admin.pinkas_social_security_2022,
|
|
44
|
+
taxAdvancesRate: admin => admin.advance_tax_rate,
|
|
45
|
+
taxAdvancesId: admin => admin.tax_siduri_number_2022,
|
|
45
46
|
registrationDate: admin => {
|
|
46
47
|
if (!admin.registration_date) {
|
|
47
48
|
throw new GraphQLError(`Admin business ID="${admin.id}" has no registration date`);
|
|
@@ -20,29 +20,32 @@ export default gql`
|
|
|
20
20
|
name: String!
|
|
21
21
|
governmentId: String!
|
|
22
22
|
business: LtdFinancialEntity!
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
withholdingTaxBookNumber: String
|
|
24
|
+
withholdingTaxFileNumber: String
|
|
25
|
+
socialSecurityEmployerId: String
|
|
26
|
+
taxAdvancesRate: Float
|
|
27
|
+
taxAdvancesId: String
|
|
27
28
|
registrationDate: TimelessDate!
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
" Input type for creating a new admin business. "
|
|
31
32
|
input CreateAdminBusinessInput {
|
|
32
33
|
businessId: UUID!
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
withholdingTaxBookNumber: String
|
|
35
|
+
withholdingTaxFileNumber: String
|
|
36
|
+
socialSecurityEmployerId: String
|
|
37
|
+
taxAdvancesRate: Float
|
|
38
|
+
taxAdvancesId: String
|
|
37
39
|
registrationDate: TimelessDate!
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
" Input type for updating admin business details. "
|
|
41
43
|
input UpdateAdminBusinessInput {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
withholdingTaxBookNumber: String
|
|
45
|
+
withholdingTaxFileNumber: String
|
|
46
|
+
socialSecurityEmployerId: String
|
|
47
|
+
taxAdvancesRate: Float
|
|
48
|
+
taxAdvancesId: String
|
|
46
49
|
registrationDate: TimelessDate
|
|
47
50
|
}
|
|
48
51
|
|