@accounter/server 0.0.8-alpha-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f → 0.0.8-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/server
2
2
 
3
- ## 0.0.8-alpha-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f
3
+ ## 0.0.8-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217
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-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f
384
- - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f
385
- - @accounter/shaam6111-generator@0.1.4-alpha-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f
383
+ - @accounter/pcn874-generator@0.6.3-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217
384
+ - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217
385
+ - @accounter/shaam6111-generator@0.1.4-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217
386
386
 
387
387
  ## 0.0.7
388
388
 
@@ -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 taxPrepaymentId?: 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']>;
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 taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
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 taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
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
- taxPrepaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
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;AAo2BrD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAsX7B,OAAO,EAAE,QAAQ,EAAE,CAAC;AAuLpB,OAAO,EAAE,YAAY,EAAE,CAAC;AA2lCxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AA62D7B,OAAO,EAAE,oBAAoB,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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
52
- UpdateAdminBusinessInput: 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
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
- employerWithholdingTaxAccountNumber?: gm.Middleware[];
254
- taxPrepaymentId?: gm.Middleware[];
255
- nationalInsuranceEmployerId?: gm.Middleware[];
256
- advanceTaxRate?: gm.Middleware[];
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,CAmevC;AAneD,WAAiB,uBAAuB;IA0CrC,CAAC;IAKD,CAAC;IAeD,CAAC;IAuJD,CAAC;IA6QD,CAAC;AACJ,CAAC,EAnegB,uBAAuB,KAAvB,uBAAuB,QAmevC"}
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
- employerWithholdingTaxAccountNumber: admin => admin.tax_nikuim_pinkas_number,
38
- taxPrepaymentId: admin => admin.tax_siduri_number_2022,
39
- nationalInsuranceEmployerId: admin => admin.pinkas_social_security_2022,
40
- advanceTaxRate: admin => admin.advance_tax_rate,
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`);
@@ -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,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B,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"}
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,EAA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pD,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
- employerWithholdingTaxAccountNumber: String
23
- taxPrepaymentId: String
24
- nationalInsuranceEmployerId: String
25
- advanceTaxRate: Float
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
- employerWithholdingTaxAccountNumber: String
33
- taxPrepaymentId: String
34
- nationalInsuranceEmployerId: String
35
- advanceTaxRate: Float
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
- employerWithholdingTaxAccountNumber: String
42
- taxPrepaymentId: String
43
- nationalInsuranceEmployerId: String
44
- advanceTaxRate: Float
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDjB,CAAC"}
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-20251027135337-f79bd33d242a52dedb78869440eb1332cecb516f",
3
+ "version": "0.0.8-alpha-20251027152122-3a28383f5256a0af85ebc9a1667c671cd03d1217",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -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 taxPrepaymentId?: Maybe<Scalars['String']['output']>;
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 taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
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 taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
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
- taxPrepaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
54
- UpdateAdminBusinessInput: 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
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
- employerWithholdingTaxAccountNumber?: gm.Middleware[];
260
- taxPrepaymentId?: gm.Middleware[];
261
- nationalInsuranceEmployerId?: gm.Middleware[];
262
- advanceTaxRate?: gm.Middleware[];
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
- employerWithholdingTaxAccountNumber: admin => admin.tax_nikuim_pinkas_number,
42
- taxPrepaymentId: admin => admin.tax_siduri_number_2022,
43
- nationalInsuranceEmployerId: admin => admin.pinkas_social_security_2022,
44
- advanceTaxRate: admin => admin.advance_tax_rate,
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
- employerWithholdingTaxAccountNumber: String
24
- taxPrepaymentId: String
25
- nationalInsuranceEmployerId: String
26
- advanceTaxRate: Float
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
- employerWithholdingTaxAccountNumber: String
34
- taxPrepaymentId: String
35
- nationalInsuranceEmployerId: String
36
- advanceTaxRate: Float
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
- employerWithholdingTaxAccountNumber: String
43
- taxPrepaymentId: String
44
- nationalInsuranceEmployerId: String
45
- advanceTaxRate: Float
44
+ withholdingTaxBookNumber: String
45
+ withholdingTaxFileNumber: String
46
+ socialSecurityEmployerId: String
47
+ taxAdvancesRate: Float
48
+ taxAdvancesId: String
46
49
  registrationDate: TimelessDate
47
50
  }
48
51