@accounter/server 0.0.8-alpha-20251028120806-2ffeafaf43eece2a7685012216a6fcc962bc1406 → 0.0.8-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
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 +15 -21
- package/dist/server/src/__generated__/types.d.ts +16 -20
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/__generated__/types.d.ts +7 -8
- 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 +4 -5
- 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 +12 -15
- 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 +16 -20
- package/src/modules/financial-entities/__generated__/types.ts +7 -8
- package/src/modules/financial-entities/resolvers/admin-businesses.resolver.ts +4 -5
- package/src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts +12 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @accounter/server
|
|
2
2
|
|
|
3
|
-
## 0.0.8-alpha-
|
|
3
|
+
## 0.0.8-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -152,6 +152,17 @@
|
|
|
152
152
|
- Updated dependency [`puppeteer@24.26.0` ↗︎](https://www.npmjs.com/package/puppeteer/v/24.26.0)
|
|
153
153
|
(from `24.25.0`, in `dependencies`)
|
|
154
154
|
|
|
155
|
+
- [#2612](https://github.com/Urigo/accounter-fullstack/pull/2612)
|
|
156
|
+
[`232f7c2`](https://github.com/Urigo/accounter-fullstack/commit/232f7c2276aad578000ff99f264ea0b978079906)
|
|
157
|
+
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
158
|
+
- Updated dependency
|
|
159
|
+
[`@ai-sdk/anthropic@2.0.38` ↗︎](https://www.npmjs.com/package/@ai-sdk/anthropic/v/2.0.38) (from
|
|
160
|
+
`2.0.35`, in `dependencies`)
|
|
161
|
+
- Updated dependency [`ai@5.0.81` ↗︎](https://www.npmjs.com/package/ai/v/5.0.81) (from `5.0.76`,
|
|
162
|
+
in `dependencies`)
|
|
163
|
+
- Updated dependency [`puppeteer@24.26.1` ↗︎](https://www.npmjs.com/package/puppeteer/v/24.26.1)
|
|
164
|
+
(from `24.26.0`, in `dependencies`)
|
|
165
|
+
|
|
155
166
|
- [#2618](https://github.com/Urigo/accounter-fullstack/pull/2618)
|
|
156
167
|
[`5d24324`](https://github.com/Urigo/accounter-fullstack/commit/5d24324d9f5ba6e5875a331afe55d999e510451f)
|
|
157
168
|
Thanks [@gilgardosh](https://github.com/gilgardosh)! - dependencies updates:
|
|
@@ -242,23 +253,6 @@
|
|
|
242
253
|
* `packages/server/src/modules/transactions/resolvers/transaction-suggestions.resolver.ts`:
|
|
243
254
|
Updated import path for `suggestionDataSchema`.
|
|
244
255
|
|
|
245
|
-
- [#2626](https://github.com/Urigo/accounter-fullstack/pull/2626)
|
|
246
|
-
[`2ffeafa`](https://github.com/Urigo/accounter-fullstack/commit/2ffeafaf43eece2a7685012216a6fcc962bc1406)
|
|
247
|
-
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Client Creation Flow Enhancement**: The
|
|
248
|
-
"Create New Business" dialog now includes an option to immediately create a client associated with
|
|
249
|
-
the new business. If selected, a `ModifyClientDialog` will automatically open after business
|
|
250
|
-
creation, streamlining the onboarding process.
|
|
251
|
-
- **`ModifyClientDialog` Flexibility**: The `ModifyClientDialog` component has been enhanced with
|
|
252
|
-
a `showTrigger` prop, allowing it to be rendered without its default trigger button, making it
|
|
253
|
-
suitable for programmatic opening. It also now consistently calls the `onDone` callback when
|
|
254
|
-
closed, improving callback reliability.
|
|
255
|
-
- **User Navigation Improvements**: The user dropdown menu now displays the actual logged-in
|
|
256
|
-
username from the `UserContext` and includes a direct link to the "Admin Configurations" page
|
|
257
|
-
for the user's primary business, providing quicker access to administrative settings.
|
|
258
|
-
- **Form Schema Refinements**: The business creation form schema has been updated to use more
|
|
259
|
-
direct Zod validators (`z.email()`, `z.url()`) for better type safety and includes a new
|
|
260
|
-
`isClient` boolean field to indicate if the business is also a client.
|
|
261
|
-
|
|
262
256
|
- [#2582](https://github.com/Urigo/accounter-fullstack/pull/2582)
|
|
263
257
|
[`32276b4`](https://github.com/Urigo/accounter-fullstack/commit/32276b47e164f0976fcdd5523fa5e26f0704014f)
|
|
264
258
|
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **New Business/Client Page**: Introduced
|
|
@@ -397,9 +391,9 @@
|
|
|
397
391
|
[[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
398
392
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
399
393
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6)]:
|
|
400
|
-
- @accounter/pcn874-generator@0.6.3-alpha-
|
|
401
|
-
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-
|
|
402
|
-
- @accounter/shaam6111-generator@0.1.4-alpha-
|
|
394
|
+
- @accounter/pcn874-generator@0.6.3-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
|
|
395
|
+
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
|
|
396
|
+
- @accounter/shaam6111-generator@0.1.4-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
|
|
403
397
|
|
|
404
398
|
## 0.0.7
|
|
405
399
|
|
|
@@ -188,16 +188,15 @@ 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']>;
|
|
191
192
|
readonly business: LtdFinancialEntity;
|
|
193
|
+
readonly employerWithholdingTaxAccountNumber?: Maybe<Scalars['String']['output']>;
|
|
192
194
|
readonly governmentId: Scalars['String']['output'];
|
|
193
195
|
readonly id: Scalars['UUID']['output'];
|
|
194
196
|
readonly name: Scalars['String']['output'];
|
|
197
|
+
readonly nationalInsuranceEmployerId?: Maybe<Scalars['String']['output']>;
|
|
195
198
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
196
|
-
readonly
|
|
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']>;
|
|
199
|
+
readonly taxPrepaymentId?: Maybe<Scalars['String']['output']>;
|
|
201
200
|
};
|
|
202
201
|
/** defines a tag / category for charge arrangement */
|
|
203
202
|
export type AdminContext = {
|
|
@@ -1105,13 +1104,12 @@ export type Country = {
|
|
|
1105
1104
|
};
|
|
1106
1105
|
/** Input type for creating a new admin business. */
|
|
1107
1106
|
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']>;
|
|
1109
1111
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1110
|
-
readonly
|
|
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']>;
|
|
1112
|
+
readonly taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
1115
1113
|
};
|
|
1116
1114
|
/** input for creating a new contract */
|
|
1117
1115
|
export type CreateContractInput = {
|
|
@@ -3643,12 +3641,11 @@ export type Unprocessed = Document & Linkable & {
|
|
|
3643
3641
|
};
|
|
3644
3642
|
/** Input type for updating admin business details. */
|
|
3645
3643
|
export type UpdateAdminBusinessInput = {
|
|
3644
|
+
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
3645
|
+
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3646
|
+
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
3646
3647
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
3647
|
-
readonly
|
|
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']>;
|
|
3648
|
+
readonly taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
3652
3649
|
};
|
|
3653
3650
|
/** input for updateBusiness */
|
|
3654
3651
|
export type UpdateBusinessInput = {
|
|
@@ -4776,16 +4773,15 @@ export type DeferDirectiveResolver<Result, Parent, ContextType = GraphQLModules.
|
|
|
4776
4773
|
export type StreamDirectiveArgs = {};
|
|
4777
4774
|
export type StreamDirectiveResolver<Result, Parent, ContextType = GraphQLModules.Context, Args = StreamDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
4778
4775
|
export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminBusiness'] = ResolversParentTypes['AdminBusiness']> = {
|
|
4776
|
+
advanceTaxRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
4779
4777
|
business?: Resolver<ResolversTypes['LtdFinancialEntity'], ParentType, ContextType>;
|
|
4778
|
+
employerWithholdingTaxAccountNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4780
4779
|
governmentId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4781
4780
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
4782
4781
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
4782
|
+
nationalInsuranceEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4783
4783
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
4784
|
-
|
|
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>;
|
|
4784
|
+
taxPrepaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
4789
4785
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
4790
4786
|
};
|
|
4791
4787
|
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;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"}
|
|
@@ -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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | '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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
|
|
52
|
+
UpdateAdminBusinessInput: 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | '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,11 +250,10 @@ export declare namespace FinancialEntitiesModule {
|
|
|
250
250
|
name?: gm.Middleware[];
|
|
251
251
|
governmentId?: gm.Middleware[];
|
|
252
252
|
business?: gm.Middleware[];
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
taxAdvancesId?: gm.Middleware[];
|
|
253
|
+
employerWithholdingTaxAccountNumber?: gm.Middleware[];
|
|
254
|
+
taxPrepaymentId?: gm.Middleware[];
|
|
255
|
+
nationalInsuranceEmployerId?: gm.Middleware[];
|
|
256
|
+
advanceTaxRate?: gm.Middleware[];
|
|
258
257
|
registrationDate?: gm.Middleware[];
|
|
259
258
|
};
|
|
260
259
|
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,CAmevC;AAneD,WAAiB,uBAAuB;IA0CrC,CAAC;IAKD,CAAC;IAeD,CAAC;IAuJD,CAAC;IA6QD,CAAC;AACJ,CAAC,EAnegB,uBAAuB,KAAvB,uBAAuB,QAmevC"}
|
|
@@ -34,11 +34,10 @@ export const adminBusinessesResolvers = {
|
|
|
34
34
|
}
|
|
35
35
|
return business;
|
|
36
36
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
taxAdvancesId: admin => admin.tax_siduri_number_2022,
|
|
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,
|
|
42
41
|
registrationDate: admin => {
|
|
43
42
|
if (!admin.registration_date) {
|
|
44
43
|
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":"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"}
|
|
@@ -19,32 +19,29 @@ export default gql `
|
|
|
19
19
|
name: String!
|
|
20
20
|
governmentId: String!
|
|
21
21
|
business: LtdFinancialEntity!
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
taxAdvancesId: String
|
|
22
|
+
employerWithholdingTaxAccountNumber: String
|
|
23
|
+
taxPrepaymentId: String
|
|
24
|
+
nationalInsuranceEmployerId: String
|
|
25
|
+
advanceTaxRate: Float
|
|
27
26
|
registrationDate: TimelessDate!
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
" Input type for creating a new admin business. "
|
|
31
30
|
input CreateAdminBusinessInput {
|
|
32
31
|
businessId: UUID!
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
taxAdvancesId: String
|
|
32
|
+
employerWithholdingTaxAccountNumber: String
|
|
33
|
+
taxPrepaymentId: String
|
|
34
|
+
nationalInsuranceEmployerId: String
|
|
35
|
+
advanceTaxRate: Float
|
|
38
36
|
registrationDate: TimelessDate!
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
" Input type for updating admin business details. "
|
|
42
40
|
input UpdateAdminBusinessInput {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
taxAdvancesId: String
|
|
41
|
+
employerWithholdingTaxAccountNumber: String
|
|
42
|
+
taxPrepaymentId: String
|
|
43
|
+
nationalInsuranceEmployerId: String
|
|
44
|
+
advanceTaxRate: Float
|
|
48
45
|
registrationDate: TimelessDate
|
|
49
46
|
}
|
|
50
47
|
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDjB,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-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81",
|
|
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.38",
|
|
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.81",
|
|
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.1",
|
|
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.6",
|
|
61
61
|
"nodemon": "3.1.10",
|
|
62
62
|
"pino-pretty": "13.1.2",
|
|
63
63
|
"rimraf": "6.0.1",
|
|
@@ -143,16 +143,15 @@ 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']>;
|
|
146
147
|
readonly business: LtdFinancialEntity;
|
|
148
|
+
readonly employerWithholdingTaxAccountNumber?: Maybe<Scalars['String']['output']>;
|
|
147
149
|
readonly governmentId: Scalars['String']['output'];
|
|
148
150
|
readonly id: Scalars['UUID']['output'];
|
|
149
151
|
readonly name: Scalars['String']['output'];
|
|
152
|
+
readonly nationalInsuranceEmployerId?: Maybe<Scalars['String']['output']>;
|
|
150
153
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
151
|
-
readonly
|
|
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']>;
|
|
154
|
+
readonly taxPrepaymentId?: Maybe<Scalars['String']['output']>;
|
|
156
155
|
};
|
|
157
156
|
|
|
158
157
|
/** defines a tag / category for charge arrangement */
|
|
@@ -1146,13 +1145,12 @@ export type Country = {
|
|
|
1146
1145
|
|
|
1147
1146
|
/** Input type for creating a new admin business. */
|
|
1148
1147
|
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']>;
|
|
1150
1152
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1151
|
-
readonly
|
|
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']>;
|
|
1153
|
+
readonly taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
1156
1154
|
};
|
|
1157
1155
|
|
|
1158
1156
|
/** input for creating a new contract */
|
|
@@ -4481,12 +4479,11 @@ export type Unprocessed = Document & Linkable & {
|
|
|
4481
4479
|
|
|
4482
4480
|
/** Input type for updating admin business details. */
|
|
4483
4481
|
export type UpdateAdminBusinessInput = {
|
|
4482
|
+
readonly advanceTaxRate?: InputMaybe<Scalars['Float']['input']>;
|
|
4483
|
+
readonly employerWithholdingTaxAccountNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4484
|
+
readonly nationalInsuranceEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
4484
4485
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
4485
|
-
readonly
|
|
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']>;
|
|
4486
|
+
readonly taxPrepaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
4490
4487
|
};
|
|
4491
4488
|
|
|
4492
4489
|
/** input for updateBusiness */
|
|
@@ -5526,16 +5523,15 @@ export type StreamDirectiveArgs = { };
|
|
|
5526
5523
|
export type StreamDirectiveResolver<Result, Parent, ContextType = GraphQLModules.Context, Args = StreamDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
5527
5524
|
|
|
5528
5525
|
export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AdminBusiness'] = ResolversParentTypes['AdminBusiness']> = {
|
|
5526
|
+
advanceTaxRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
5529
5527
|
business?: Resolver<ResolversTypes['LtdFinancialEntity'], ParentType, ContextType>;
|
|
5528
|
+
employerWithholdingTaxAccountNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5530
5529
|
governmentId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5531
5530
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
5532
5531
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5532
|
+
nationalInsuranceEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5533
5533
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
5534
|
-
|
|
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>;
|
|
5534
|
+
taxPrepaymentId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5539
5535
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5540
5536
|
};
|
|
5541
5537
|
|
|
@@ -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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | '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' | 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | 'registrationDate';
|
|
54
|
+
UpdateAdminBusinessInput: 'employerWithholdingTaxAccountNumber' | 'taxPrepaymentId' | 'nationalInsuranceEmployerId' | 'advanceTaxRate' | '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,11 +256,10 @@ export namespace FinancialEntitiesModule {
|
|
|
256
256
|
name?: gm.Middleware[];
|
|
257
257
|
governmentId?: gm.Middleware[];
|
|
258
258
|
business?: gm.Middleware[];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
taxAdvancesId?: gm.Middleware[];
|
|
259
|
+
employerWithholdingTaxAccountNumber?: gm.Middleware[];
|
|
260
|
+
taxPrepaymentId?: gm.Middleware[];
|
|
261
|
+
nationalInsuranceEmployerId?: gm.Middleware[];
|
|
262
|
+
advanceTaxRate?: gm.Middleware[];
|
|
264
263
|
registrationDate?: gm.Middleware[];
|
|
265
264
|
};
|
|
266
265
|
LtdFinancialEntity?: {
|
|
@@ -38,11 +38,10 @@ export const adminBusinessesResolvers: FinancialEntitiesModule.Resolvers = {
|
|
|
38
38
|
}
|
|
39
39
|
return business;
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
taxAdvancesId: admin => admin.tax_siduri_number_2022,
|
|
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,
|
|
46
45
|
registrationDate: admin => {
|
|
47
46
|
if (!admin.registration_date) {
|
|
48
47
|
throw new GraphQLError(`Admin business ID="${admin.id}" has no registration date`);
|
|
@@ -20,32 +20,29 @@ export default gql`
|
|
|
20
20
|
name: String!
|
|
21
21
|
governmentId: String!
|
|
22
22
|
business: LtdFinancialEntity!
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
taxAdvancesId: String
|
|
23
|
+
employerWithholdingTaxAccountNumber: String
|
|
24
|
+
taxPrepaymentId: String
|
|
25
|
+
nationalInsuranceEmployerId: String
|
|
26
|
+
advanceTaxRate: Float
|
|
28
27
|
registrationDate: TimelessDate!
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
" Input type for creating a new admin business. "
|
|
32
31
|
input CreateAdminBusinessInput {
|
|
33
32
|
businessId: UUID!
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
taxAdvancesId: String
|
|
33
|
+
employerWithholdingTaxAccountNumber: String
|
|
34
|
+
taxPrepaymentId: String
|
|
35
|
+
nationalInsuranceEmployerId: String
|
|
36
|
+
advanceTaxRate: Float
|
|
39
37
|
registrationDate: TimelessDate!
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
" Input type for updating admin business details. "
|
|
43
41
|
input UpdateAdminBusinessInput {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
taxAdvancesId: String
|
|
42
|
+
employerWithholdingTaxAccountNumber: String
|
|
43
|
+
taxPrepaymentId: String
|
|
44
|
+
nationalInsuranceEmployerId: String
|
|
45
|
+
advanceTaxRate: Float
|
|
49
46
|
registrationDate: TimelessDate
|
|
50
47
|
}
|
|
51
48
|
|