@accounter/server 0.0.8-alpha-20251029234818-bb69914cb7aaa4859296baa4a256c251158fd15b → 0.0.8-alpha-20251029235231-f14290dbb5dedec255de3cef292d3b4c5c71298e
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 +26 -20
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/server/src/__generated__/types.d.ts +18 -70
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/contracts/__generated__/contracts.types.d.ts +0 -5
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.d.ts +0 -57
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.js +1 -0
- package/dist/server/src/modules/financial-entities/__generated__/admin-businesses.types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/__generated__/types.d.ts +10 -33
- package/dist/server/src/modules/financial-entities/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.d.ts +1 -2
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.js +0 -37
- package/dist/server/src/modules/financial-entities/providers/admin-businesses.provider.js.map +1 -1
- package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js +11 -46
- package/dist/server/src/modules/financial-entities/resolvers/admin-businesses.resolver.js.map +1 -1
- package/dist/server/src/modules/financial-entities/typeDefs/admin-businesses.graphql.js +16 -49
- package/dist/server/src/modules/financial-entities/typeDefs/admin-businesses.graphql.js.map +1 -1
- package/dist/server/src/modules/financial-entities/types.d.ts +1 -1
- package/package.json +6 -6
- package/src/__generated__/types.ts +18 -76
- package/src/modules/contracts/__generated__/contracts.types.ts +0 -5
- package/src/modules/financial-entities/__generated__/admin-businesses.types.ts +0 -60
- package/src/modules/financial-entities/__generated__/types.ts +10 -33
- package/src/modules/financial-entities/providers/admin-businesses.provider.ts +0 -44
- package/src/modules/financial-entities/resolvers/admin-businesses.resolver.ts +11 -53
- package/src/modules/financial-entities/typeDefs/admin-businesses.graphql.ts +16 -49
- package/src/modules/financial-entities/types.ts +1 -1
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.d.ts +0 -31
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.js +0 -27
- package/dist/server/src/modules/financial-entities/helpers/admin-businesses.helper.js.map +0 -1
- package/src/modules/financial-entities/helpers/admin-businesses.helper.ts +0 -33
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GraphQLError } from 'graphql';
|
|
2
2
|
import { dateToTimelessDateString } from '../../../shared/helpers/index.js';
|
|
3
|
-
import { taxAdvancesRatesSchema, yearlyIdsSchema } from '../helpers/admin-businesses.helper.js';
|
|
4
3
|
import { AdminBusinessesProvider } from '../providers/admin-businesses.provider.js';
|
|
5
4
|
import { BusinessesProvider } from '../providers/businesses.provider.js';
|
|
6
5
|
export const adminBusinessesResolvers = {
|
|
@@ -19,39 +18,6 @@ export const adminBusinessesResolvers = {
|
|
|
19
18
|
return adminBusinesses;
|
|
20
19
|
},
|
|
21
20
|
},
|
|
22
|
-
Mutation: {
|
|
23
|
-
updateAdminBusiness: async (_, { businessId, fields }, { injector }) => {
|
|
24
|
-
try {
|
|
25
|
-
await injector.get(AdminBusinessesProvider).updateAdminBusiness({
|
|
26
|
-
id: businessId,
|
|
27
|
-
businessRegistrationStartDate: fields.registrationDate,
|
|
28
|
-
companyTaxId: fields.withholdingTaxCompanyId,
|
|
29
|
-
taxAdvancesIds: fields.taxAdvancesAnnualIds
|
|
30
|
-
? [...fields.taxAdvancesAnnualIds]
|
|
31
|
-
: undefined,
|
|
32
|
-
advanceTaxRates: fields.taxAdvancesRates ? [...fields.taxAdvancesRates] : undefined,
|
|
33
|
-
withholdingTaxAnnualIds: fields.withholdingTaxAnnualIds
|
|
34
|
-
? [...fields.withholdingTaxAnnualIds]
|
|
35
|
-
: undefined,
|
|
36
|
-
socialSecurityEmployerIds: fields.socialSecurityEmployerIds
|
|
37
|
-
? [...fields.socialSecurityEmployerIds]
|
|
38
|
-
: undefined,
|
|
39
|
-
});
|
|
40
|
-
const updatedAdminBusiness = await injector
|
|
41
|
-
.get(AdminBusinessesProvider)
|
|
42
|
-
.getAdminBusinessByIdLoader.load(businessId);
|
|
43
|
-
if (!updatedAdminBusiness) {
|
|
44
|
-
throw new GraphQLError(`Error updating Admin business ID="${businessId}"`);
|
|
45
|
-
}
|
|
46
|
-
return updatedAdminBusiness;
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
const message = `Error updating Admin business ID="${businessId}"`;
|
|
50
|
-
console.error(message, error);
|
|
51
|
-
throw new GraphQLError(message);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
21
|
AdminBusiness: {
|
|
56
22
|
id: admin => admin.id,
|
|
57
23
|
name: admin => admin.name,
|
|
@@ -61,12 +27,6 @@ export const adminBusinessesResolvers = {
|
|
|
61
27
|
}
|
|
62
28
|
return admin.vat_number;
|
|
63
29
|
},
|
|
64
|
-
registrationDate: admin => {
|
|
65
|
-
if (!admin.registration_date) {
|
|
66
|
-
throw new GraphQLError(`Admin business ID="${admin.id}" has no registration date`);
|
|
67
|
-
}
|
|
68
|
-
return dateToTimelessDateString(admin.registration_date);
|
|
69
|
-
},
|
|
70
30
|
business: async (admin, _, { injector }) => {
|
|
71
31
|
const business = await injector.get(BusinessesProvider).getBusinessByIdLoader.load(admin.id);
|
|
72
32
|
if (!business) {
|
|
@@ -74,12 +34,17 @@ export const adminBusinessesResolvers = {
|
|
|
74
34
|
}
|
|
75
35
|
return business;
|
|
76
36
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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,
|
|
42
|
+
registrationDate: admin => {
|
|
43
|
+
if (!admin.registration_date) {
|
|
44
|
+
throw new GraphQLError(`Admin business ID="${admin.id}" has no registration date`);
|
|
45
|
+
}
|
|
46
|
+
return dateToTimelessDateString(admin.registration_date);
|
|
47
|
+
},
|
|
83
48
|
},
|
|
84
49
|
LtdFinancialEntity: {
|
|
85
50
|
adminInfo: async (parentBusiness, _, { injector }) => {
|
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;
|
|
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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"}
|
|
@@ -18,67 +18,34 @@ export default gql `
|
|
|
18
18
|
id: UUID!
|
|
19
19
|
name: String!
|
|
20
20
|
governmentId: String!
|
|
21
|
-
registrationDate: TimelessDate!
|
|
22
21
|
business: LtdFinancialEntity!
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
" Social Security Info "
|
|
30
|
-
socialSecurityDeductionsId: String
|
|
31
|
-
socialSecurityEmployerIds: [AnnualId!]!
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
" Represents an annual identifier for tax purposes. "
|
|
35
|
-
type AnnualId {
|
|
36
|
-
year: Int!
|
|
37
|
-
id: String!
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
" Represents the tax advance rate for a specific date. "
|
|
41
|
-
type TaxAdvancesRate {
|
|
42
|
-
date: TimelessDate!
|
|
43
|
-
rate: Float!
|
|
22
|
+
withholdingTaxBookNumber: String
|
|
23
|
+
withholdingTaxFileNumber: String
|
|
24
|
+
socialSecurityEmployerId: String
|
|
25
|
+
taxAdvancesRate: Float
|
|
26
|
+
taxAdvancesId: String
|
|
27
|
+
registrationDate: TimelessDate!
|
|
44
28
|
}
|
|
45
29
|
|
|
46
30
|
" Input type for creating a new admin business. "
|
|
47
31
|
input CreateAdminBusinessInput {
|
|
48
32
|
businessId: UUID!
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
taxAdvancesAnnualId: String
|
|
52
|
-
taxAdvancesRate: Float
|
|
53
|
-
withholdingTaxAnnualId: String
|
|
33
|
+
withholdingTaxBookNumber: String
|
|
34
|
+
withholdingTaxFileNumber: String
|
|
54
35
|
socialSecurityEmployerId: String
|
|
36
|
+
taxAdvancesRate: Float
|
|
37
|
+
taxAdvancesId: String
|
|
38
|
+
registrationDate: TimelessDate!
|
|
55
39
|
}
|
|
56
40
|
|
|
57
41
|
" Input type for updating admin business details. "
|
|
58
42
|
input UpdateAdminBusinessInput {
|
|
59
|
-
|
|
60
|
-
|
|
43
|
+
withholdingTaxBookNumber: String
|
|
44
|
+
withholdingTaxFileNumber: String
|
|
45
|
+
socialSecurityEmployerId: String
|
|
46
|
+
taxAdvancesRate: Float
|
|
47
|
+
taxAdvancesId: String
|
|
61
48
|
registrationDate: TimelessDate
|
|
62
|
-
" Tax Advances Info "
|
|
63
|
-
taxAdvancesAnnualIds: [AnnualIdInput!]
|
|
64
|
-
taxAdvancesRates: [TaxAdvancesRateInput!]
|
|
65
|
-
" Withholding Tax Info "
|
|
66
|
-
withholdingTaxCompanyId: String
|
|
67
|
-
withholdingTaxAnnualIds: [AnnualIdInput!]
|
|
68
|
-
" Social Security Info "
|
|
69
|
-
socialSecurityEmployerIds: [AnnualIdInput!]
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
" Input type representing an annual identifier for tax purposes. "
|
|
73
|
-
input AnnualIdInput {
|
|
74
|
-
year: Int!
|
|
75
|
-
id: String!
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
" Input type representing the tax advance rate for a specific date. "
|
|
79
|
-
input TaxAdvancesRateInput {
|
|
80
|
-
date: TimelessDate!
|
|
81
|
-
rate: Float!
|
|
82
49
|
}
|
|
83
50
|
|
|
84
51
|
extend type LtdFinancialEntity {
|
|
@@ -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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './__generated__/types.js';
|
|
2
|
-
export type { Json, pcn874_record_type
|
|
2
|
+
export type { Json, pcn874_record_type } from './__generated__/businesses.types.js';
|
|
3
3
|
export * from './__generated__/businesses.types.js';
|
|
4
4
|
export * from './__generated__/businesses-operation.types.js';
|
|
5
5
|
export * from './__generated__/admin-businesses.types.js';
|
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-20251029235231-f14290dbb5dedec255de3cef292d3b4c5c71298e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
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.
|
|
26
|
-
"@envelop/generic-auth": "10.0.
|
|
25
|
+
"@ai-sdk/anthropic": "2.0.39",
|
|
26
|
+
"@envelop/generic-auth": "10.0.1",
|
|
27
27
|
"@envelop/graphql-modules": "8.0.0",
|
|
28
28
|
"@google-cloud/pubsub": "5.2.0",
|
|
29
29
|
"@graphql-hive/yoga": "0.42.2",
|
|
@@ -31,14 +31,14 @@
|
|
|
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.82",
|
|
35
35
|
"basic-auth": "2.0.1",
|
|
36
36
|
"bcrypt": "6.0.0",
|
|
37
37
|
"cloudinary": "2.8.0",
|
|
38
38
|
"dataloader": "2.2.3",
|
|
39
39
|
"date-fns": "4.1.0",
|
|
40
40
|
"dotenv": "17.2.3",
|
|
41
|
-
"dotenv-cli": "
|
|
41
|
+
"dotenv-cli": "11.0.0",
|
|
42
42
|
"googleapis": "164.1.0",
|
|
43
43
|
"graphql": "16.11.0",
|
|
44
44
|
"graphql-modules": "3.0.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.
|
|
51
|
+
"puppeteer": "24.27.0",
|
|
52
52
|
"reflect-metadata": "0.2.2",
|
|
53
53
|
"strip-indent": "4.1.1",
|
|
54
54
|
"zod": "4.1.12"
|
|
@@ -148,15 +148,11 @@ export type AdminBusiness = {
|
|
|
148
148
|
readonly id: Scalars['UUID']['output'];
|
|
149
149
|
readonly name: Scalars['String']['output'];
|
|
150
150
|
readonly registrationDate: Scalars['TimelessDate']['output'];
|
|
151
|
-
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
|
|
155
|
-
readonly
|
|
156
|
-
readonly taxAdvancesRates: ReadonlyArray<TaxAdvancesRate>;
|
|
157
|
-
readonly withholdingTaxAnnualIds: ReadonlyArray<AnnualId>;
|
|
158
|
-
/** Withholding Tax Info */
|
|
159
|
-
readonly withholdingTaxCompanyId?: 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']>;
|
|
160
156
|
};
|
|
161
157
|
|
|
162
158
|
/** defines a tag / category for charge arrangement */
|
|
@@ -293,19 +289,6 @@ export type AdminContextInput = {
|
|
|
293
289
|
readonly zkufotIncomeTaxCategoryId?: InputMaybe<Scalars['UUID']['input']>;
|
|
294
290
|
};
|
|
295
291
|
|
|
296
|
-
/** Represents an annual identifier for tax purposes. */
|
|
297
|
-
export type AnnualId = {
|
|
298
|
-
readonly __typename?: 'AnnualId';
|
|
299
|
-
readonly id: Scalars['String']['output'];
|
|
300
|
-
readonly year: Scalars['Int']['output'];
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/** Input type representing an annual identifier for tax purposes. */
|
|
304
|
-
export type AnnualIdInput = {
|
|
305
|
-
readonly id: Scalars['String']['input'];
|
|
306
|
-
readonly year: Scalars['Int']['input'];
|
|
307
|
-
};
|
|
308
|
-
|
|
309
292
|
/** Audit opinion type enum (חוות דעת) */
|
|
310
293
|
export type AuditOpinionType =
|
|
311
294
|
/** Adverse opinion (שלילית) */
|
|
@@ -1165,12 +1148,12 @@ export type Country = {
|
|
|
1165
1148
|
/** Input type for creating a new admin business. */
|
|
1166
1149
|
export type CreateAdminBusinessInput = {
|
|
1167
1150
|
readonly businessId: Scalars['UUID']['input'];
|
|
1168
|
-
readonly companyTaxId: Scalars['String']['input'];
|
|
1169
1151
|
readonly registrationDate: Scalars['TimelessDate']['input'];
|
|
1170
1152
|
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
1171
|
-
readonly
|
|
1153
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
1172
1154
|
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
1173
|
-
readonly
|
|
1155
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1156
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1174
1157
|
};
|
|
1175
1158
|
|
|
1176
1159
|
/** input for creating a new contract */
|
|
@@ -4390,19 +4373,6 @@ export type TagInput = {
|
|
|
4390
4373
|
readonly id: Scalars['String']['input'];
|
|
4391
4374
|
};
|
|
4392
4375
|
|
|
4393
|
-
/** Represents the tax advance rate for a specific date. */
|
|
4394
|
-
export type TaxAdvancesRate = {
|
|
4395
|
-
readonly __typename?: 'TaxAdvancesRate';
|
|
4396
|
-
readonly date: Scalars['TimelessDate']['output'];
|
|
4397
|
-
readonly rate: Scalars['Float']['output'];
|
|
4398
|
-
};
|
|
4399
|
-
|
|
4400
|
-
/** Input type representing the tax advance rate for a specific date. */
|
|
4401
|
-
export type TaxAdvancesRateInput = {
|
|
4402
|
-
readonly date: Scalars['TimelessDate']['input'];
|
|
4403
|
-
readonly rate: Scalars['Float']['input'];
|
|
4404
|
-
};
|
|
4405
|
-
|
|
4406
4376
|
/** Tax category entity used for ledger records */
|
|
4407
4377
|
export type TaxCategory = FinancialEntity & {
|
|
4408
4378
|
readonly __typename?: 'TaxCategory';
|
|
@@ -4527,17 +4497,12 @@ export type Unprocessed = Document & Linkable & {
|
|
|
4527
4497
|
|
|
4528
4498
|
/** Input type for updating admin business details. */
|
|
4529
4499
|
export type UpdateAdminBusinessInput = {
|
|
4530
|
-
readonly governmentId?: InputMaybe<Scalars['String']['input']>;
|
|
4531
|
-
readonly name?: InputMaybe<Scalars['String']['input']>;
|
|
4532
4500
|
readonly registrationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
4533
|
-
|
|
4534
|
-
readonly
|
|
4535
|
-
|
|
4536
|
-
readonly
|
|
4537
|
-
readonly
|
|
4538
|
-
readonly withholdingTaxAnnualIds?: InputMaybe<ReadonlyArray<AnnualIdInput>>;
|
|
4539
|
-
/** Withholding Tax Info */
|
|
4540
|
-
readonly withholdingTaxCompanyId?: InputMaybe<Scalars['String']['input']>;
|
|
4501
|
+
readonly socialSecurityEmployerId?: InputMaybe<Scalars['String']['input']>;
|
|
4502
|
+
readonly taxAdvancesId?: InputMaybe<Scalars['String']['input']>;
|
|
4503
|
+
readonly taxAdvancesRate?: InputMaybe<Scalars['Float']['input']>;
|
|
4504
|
+
readonly withholdingTaxBookNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4505
|
+
readonly withholdingTaxFileNumber?: InputMaybe<Scalars['String']['input']>;
|
|
4541
4506
|
};
|
|
4542
4507
|
|
|
4543
4508
|
/** input for updateBusiness */
|
|
@@ -5035,8 +5000,6 @@ export type ResolversTypes = {
|
|
|
5035
5000
|
AdminBusiness: ResolverTypeWrapper<IGetAllAdminBusinessesResult>;
|
|
5036
5001
|
AdminContext: ResolverTypeWrapper<IGetAdminContextsResult>;
|
|
5037
5002
|
AdminContextInput: AdminContextInput;
|
|
5038
|
-
AnnualId: ResolverTypeWrapper<AnnualId>;
|
|
5039
|
-
AnnualIdInput: AnnualIdInput;
|
|
5040
5003
|
AuditOpinionType: AuditOpinionType;
|
|
5041
5004
|
BalanceTransactions: ResolverTypeWrapper<IGetNormalizedBalanceTransactionsResult>;
|
|
5042
5005
|
BankDeposit: ResolverTypeWrapper<Omit<BankDeposit, 'transactions'> & { transactions: ReadonlyArray<ResolversTypes['Transaction']> }>;
|
|
@@ -5253,8 +5216,6 @@ export type ResolversTypes = {
|
|
|
5253
5216
|
SuggestionsInput: SuggestionsInput;
|
|
5254
5217
|
Tag: ResolverTypeWrapper<IGetAllTagsResult>;
|
|
5255
5218
|
TagInput: TagInput;
|
|
5256
|
-
TaxAdvancesRate: ResolverTypeWrapper<TaxAdvancesRate>;
|
|
5257
|
-
TaxAdvancesRateInput: TaxAdvancesRateInput;
|
|
5258
5219
|
TaxCategory: ResolverTypeWrapper<IGetAllTaxCategoriesResult>;
|
|
5259
5220
|
TaxReport: ResolverTypeWrapper<Omit<TaxReport, 'reference' | 'report'> & { reference: ReadonlyArray<ResolversTypes['TaxReportYear']>, report: ResolversTypes['TaxReportYear'] }>;
|
|
5260
5221
|
TaxReportYear: ResolverTypeWrapper<TaxReportYearProto>;
|
|
@@ -5326,8 +5287,6 @@ export type ResolversParentTypes = {
|
|
|
5326
5287
|
AdminBusiness: IGetAllAdminBusinessesResult;
|
|
5327
5288
|
AdminContext: IGetAdminContextsResult;
|
|
5328
5289
|
AdminContextInput: AdminContextInput;
|
|
5329
|
-
AnnualId: AnnualId;
|
|
5330
|
-
AnnualIdInput: AnnualIdInput;
|
|
5331
5290
|
BalanceTransactions: IGetNormalizedBalanceTransactionsResult;
|
|
5332
5291
|
BankDeposit: Omit<BankDeposit, 'transactions'> & { transactions: ReadonlyArray<ResolversParentTypes['Transaction']> };
|
|
5333
5292
|
BankDepositCharge: IGetChargesByIdsResult;
|
|
@@ -5509,8 +5468,6 @@ export type ResolversParentTypes = {
|
|
|
5509
5468
|
SuggestionsInput: SuggestionsInput;
|
|
5510
5469
|
Tag: IGetAllTagsResult;
|
|
5511
5470
|
TagInput: TagInput;
|
|
5512
|
-
TaxAdvancesRate: TaxAdvancesRate;
|
|
5513
|
-
TaxAdvancesRateInput: TaxAdvancesRateInput;
|
|
5514
5471
|
TaxCategory: IGetAllTaxCategoriesResult;
|
|
5515
5472
|
TaxReport: Omit<TaxReport, 'reference' | 'report'> & { reference: ReadonlyArray<ResolversParentTypes['TaxReportYear']>, report: ResolversParentTypes['TaxReportYear'] };
|
|
5516
5473
|
TaxReportYear: TaxReportYearProto;
|
|
@@ -5591,12 +5548,11 @@ export type AdminBusinessResolvers<ContextType = GraphQLModules.Context, ParentT
|
|
|
5591
5548
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
5592
5549
|
name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5593
5550
|
registrationDate?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
withholdingTaxCompanyId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5551
|
+
socialSecurityEmployerId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5552
|
+
taxAdvancesId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5553
|
+
taxAdvancesRate?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
|
5554
|
+
withholdingTaxBookNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5555
|
+
withholdingTaxFileNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
5600
5556
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5601
5557
|
};
|
|
5602
5558
|
|
|
@@ -5667,12 +5623,6 @@ export type AdminContextResolvers<ContextType = GraphQLModules.Context, ParentTy
|
|
|
5667
5623
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5668
5624
|
};
|
|
5669
5625
|
|
|
5670
|
-
export type AnnualIdResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['AnnualId'] = ResolversParentTypes['AnnualId']> = {
|
|
5671
|
-
id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
5672
|
-
year?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
5673
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5674
|
-
};
|
|
5675
|
-
|
|
5676
5626
|
export type BalanceTransactionsResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['BalanceTransactions'] = ResolversParentTypes['BalanceTransactions']> = {
|
|
5677
5627
|
amount?: Resolver<ResolversTypes['FinancialAmount'], ParentType, ContextType>;
|
|
5678
5628
|
amountUsd?: Resolver<ResolversTypes['FinancialAmount'], ParentType, ContextType>;
|
|
@@ -7580,12 +7530,6 @@ export type TagResolvers<ContextType = GraphQLModules.Context, ParentType extend
|
|
|
7580
7530
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
7581
7531
|
};
|
|
7582
7532
|
|
|
7583
|
-
export type TaxAdvancesRateResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['TaxAdvancesRate'] = ResolversParentTypes['TaxAdvancesRate']> = {
|
|
7584
|
-
date?: Resolver<ResolversTypes['TimelessDate'], ParentType, ContextType>;
|
|
7585
|
-
rate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
|
|
7586
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
7587
|
-
};
|
|
7588
|
-
|
|
7589
7533
|
export type TaxCategoryResolvers<ContextType = GraphQLModules.Context, ParentType extends ResolversParentTypes['TaxCategory'] = ResolversParentTypes['TaxCategory']> = {
|
|
7590
7534
|
createdAt?: Resolver<ResolversTypes['DateTime'], ParentType, ContextType>;
|
|
7591
7535
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
@@ -7854,7 +7798,6 @@ export type YearlyLedgerReportFinancialEntityInfoResolvers<ContextType = GraphQL
|
|
|
7854
7798
|
export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
7855
7799
|
AdminBusiness?: AdminBusinessResolvers<ContextType>;
|
|
7856
7800
|
AdminContext?: AdminContextResolvers<ContextType>;
|
|
7857
|
-
AnnualId?: AnnualIdResolvers<ContextType>;
|
|
7858
7801
|
BalanceTransactions?: BalanceTransactionsResolvers<ContextType>;
|
|
7859
7802
|
BankDeposit?: BankDepositResolvers<ContextType>;
|
|
7860
7803
|
BankDepositCharge?: BankDepositChargeResolvers<ContextType>;
|
|
@@ -8000,7 +7943,6 @@ export type Resolvers<ContextType = GraphQLModules.Context> = {
|
|
|
8000
7943
|
Suggestions?: SuggestionsResolvers<ContextType>;
|
|
8001
7944
|
SuggestionsEmailListenerConfig?: SuggestionsEmailListenerConfigResolvers<ContextType>;
|
|
8002
7945
|
Tag?: TagResolvers<ContextType>;
|
|
8003
|
-
TaxAdvancesRate?: TaxAdvancesRateResolvers<ContextType>;
|
|
8004
7946
|
TaxCategory?: TaxCategoryResolvers<ContextType>;
|
|
8005
7947
|
TaxReport?: TaxReportResolvers<ContextType>;
|
|
8006
7948
|
TaxReportYear?: TaxReportYearResolvers<ContextType>;
|
|
@@ -26,7 +26,6 @@ export interface IGetAllOpenContractsResult {
|
|
|
26
26
|
operations_count: string;
|
|
27
27
|
plan: string | null;
|
|
28
28
|
product: string | null;
|
|
29
|
-
purchase_order: string | null;
|
|
30
29
|
purchase_orders: stringArray;
|
|
31
30
|
remarks: string | null;
|
|
32
31
|
signed_agreement: string | null;
|
|
@@ -58,7 +57,6 @@ export interface IGetContractsByIdsResult {
|
|
|
58
57
|
operations_count: string;
|
|
59
58
|
plan: string | null;
|
|
60
59
|
product: string | null;
|
|
61
|
-
purchase_order: string | null;
|
|
62
60
|
purchase_orders: stringArray;
|
|
63
61
|
remarks: string | null;
|
|
64
62
|
signed_agreement: string | null;
|
|
@@ -90,7 +88,6 @@ export interface IGetContractsByClientIdsResult {
|
|
|
90
88
|
operations_count: string;
|
|
91
89
|
plan: string | null;
|
|
92
90
|
product: string | null;
|
|
93
|
-
purchase_order: string | null;
|
|
94
91
|
purchase_orders: stringArray;
|
|
95
92
|
remarks: string | null;
|
|
96
93
|
signed_agreement: string | null;
|
|
@@ -150,7 +147,6 @@ export interface IUpdateContractResult {
|
|
|
150
147
|
operations_count: string;
|
|
151
148
|
plan: string | null;
|
|
152
149
|
product: string | null;
|
|
153
|
-
purchase_order: string | null;
|
|
154
150
|
purchase_orders: stringArray;
|
|
155
151
|
remarks: string | null;
|
|
156
152
|
signed_agreement: string | null;
|
|
@@ -195,7 +191,6 @@ export interface IInsertContractResult {
|
|
|
195
191
|
operations_count: string;
|
|
196
192
|
plan: string | null;
|
|
197
193
|
product: string | null;
|
|
198
|
-
purchase_order: string | null;
|
|
199
194
|
purchase_orders: stringArray;
|
|
200
195
|
remarks: string | null;
|
|
201
196
|
signed_agreement: string | null;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/** Types generated for queries found in "src/modules/financial-entities/providers/admin-businesses.provider.ts" */
|
|
2
|
-
export type DateOrString = Date | string;
|
|
3
|
-
|
|
4
|
-
export type Json = null | boolean | number | string | Json[] | { [key: string]: Json };
|
|
5
|
-
|
|
6
|
-
export type JsonArray = (Json)[];
|
|
7
2
|
|
|
8
3
|
/** 'GetAdminBusinessesByIds' parameters type */
|
|
9
4
|
export interface IGetAdminBusinessesByIdsParams {
|
|
@@ -13,9 +8,6 @@ export interface IGetAdminBusinessesByIdsParams {
|
|
|
13
8
|
/** 'GetAdminBusinessesByIds' return type */
|
|
14
9
|
export interface IGetAdminBusinessesByIdsResult {
|
|
15
10
|
advance_tax_rate: number | null;
|
|
16
|
-
advance_tax_rates: JsonArray;
|
|
17
|
-
business_registration_start_date: Date | null;
|
|
18
|
-
company_tax_id: string | null;
|
|
19
11
|
id: string;
|
|
20
12
|
name: string;
|
|
21
13
|
nikuim: string | null;
|
|
@@ -23,8 +15,6 @@ export interface IGetAdminBusinessesByIdsResult {
|
|
|
23
15
|
pinkas_social_security_2021: string | null;
|
|
24
16
|
pinkas_social_security_2022: string | null;
|
|
25
17
|
registration_date: Date | null;
|
|
26
|
-
social_security_employer_ids: JsonArray;
|
|
27
|
-
tax_advances_ids: JsonArray;
|
|
28
18
|
tax_nikuim_pinkas_number: string | null;
|
|
29
19
|
tax_pinkas_number_2020: string | null;
|
|
30
20
|
tax_siduri_number_2021: string | null;
|
|
@@ -33,7 +23,6 @@ export interface IGetAdminBusinessesByIdsResult {
|
|
|
33
23
|
vat_number: string | null;
|
|
34
24
|
vat_report_cadence: number | null;
|
|
35
25
|
website_login_screenshot: string | null;
|
|
36
|
-
withholding_tax_annual_ids: JsonArray;
|
|
37
26
|
wizcloud_company_id: string | null;
|
|
38
27
|
wizcloud_token: string | null;
|
|
39
28
|
}
|
|
@@ -50,9 +39,6 @@ export type IGetAllAdminBusinessesParams = void;
|
|
|
50
39
|
/** 'GetAllAdminBusinesses' return type */
|
|
51
40
|
export interface IGetAllAdminBusinessesResult {
|
|
52
41
|
advance_tax_rate: number | null;
|
|
53
|
-
advance_tax_rates: JsonArray;
|
|
54
|
-
business_registration_start_date: Date | null;
|
|
55
|
-
company_tax_id: string | null;
|
|
56
42
|
id: string;
|
|
57
43
|
name: string;
|
|
58
44
|
nikuim: string | null;
|
|
@@ -60,8 +46,6 @@ export interface IGetAllAdminBusinessesResult {
|
|
|
60
46
|
pinkas_social_security_2021: string | null;
|
|
61
47
|
pinkas_social_security_2022: string | null;
|
|
62
48
|
registration_date: Date | null;
|
|
63
|
-
social_security_employer_ids: JsonArray;
|
|
64
|
-
tax_advances_ids: JsonArray;
|
|
65
49
|
tax_nikuim_pinkas_number: string | null;
|
|
66
50
|
tax_pinkas_number_2020: string | null;
|
|
67
51
|
tax_siduri_number_2021: string | null;
|
|
@@ -70,7 +54,6 @@ export interface IGetAllAdminBusinessesResult {
|
|
|
70
54
|
vat_number: string | null;
|
|
71
55
|
vat_report_cadence: number | null;
|
|
72
56
|
website_login_screenshot: string | null;
|
|
73
|
-
withholding_tax_annual_ids: JsonArray;
|
|
74
57
|
wizcloud_company_id: string | null;
|
|
75
58
|
wizcloud_token: string | null;
|
|
76
59
|
}
|
|
@@ -81,46 +64,3 @@ export interface IGetAllAdminBusinessesQuery {
|
|
|
81
64
|
result: IGetAllAdminBusinessesResult;
|
|
82
65
|
}
|
|
83
66
|
|
|
84
|
-
/** 'UpdateAdminBusinesses' parameters type */
|
|
85
|
-
export interface IUpdateAdminBusinessesParams {
|
|
86
|
-
advanceTaxRates?: JsonArray | null | void;
|
|
87
|
-
businessRegistrationStartDate?: DateOrString | null | void;
|
|
88
|
-
companyTaxId?: string | null | void;
|
|
89
|
-
id?: string | null | void;
|
|
90
|
-
socialSecurityEmployerIds?: JsonArray | null | void;
|
|
91
|
-
taxAdvancesIds?: JsonArray | null | void;
|
|
92
|
-
withholdingTaxAnnualIds?: JsonArray | null | void;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** 'UpdateAdminBusinesses' return type */
|
|
96
|
-
export interface IUpdateAdminBusinessesResult {
|
|
97
|
-
advance_tax_rate: number | null;
|
|
98
|
-
advance_tax_rates: JsonArray;
|
|
99
|
-
business_registration_start_date: Date | null;
|
|
100
|
-
company_tax_id: string | null;
|
|
101
|
-
id: string;
|
|
102
|
-
nikuim: string | null;
|
|
103
|
-
password: string | null;
|
|
104
|
-
pinkas_social_security_2021: string | null;
|
|
105
|
-
pinkas_social_security_2022: string | null;
|
|
106
|
-
registration_date: Date | null;
|
|
107
|
-
social_security_employer_ids: JsonArray;
|
|
108
|
-
tax_advances_ids: JsonArray;
|
|
109
|
-
tax_nikuim_pinkas_number: string | null;
|
|
110
|
-
tax_pinkas_number_2020: string | null;
|
|
111
|
-
tax_siduri_number_2021: string | null;
|
|
112
|
-
tax_siduri_number_2022: string | null;
|
|
113
|
-
username_vat_website: string | null;
|
|
114
|
-
vat_report_cadence: number | null;
|
|
115
|
-
website_login_screenshot: string | null;
|
|
116
|
-
withholding_tax_annual_ids: JsonArray;
|
|
117
|
-
wizcloud_company_id: string | null;
|
|
118
|
-
wizcloud_token: string | null;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** 'UpdateAdminBusinesses' query type */
|
|
122
|
-
export interface IUpdateAdminBusinessesQuery {
|
|
123
|
-
params: IUpdateAdminBusinessesParams;
|
|
124
|
-
result: IUpdateAdminBusinessesResult;
|
|
125
|
-
}
|
|
126
|
-
|