@accounter/server 0.0.8-alpha-20251028123619-bcce9ab485db2997b6b76ff0df765834d86f30e7 → 0.0.8-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -16
- package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1 -1
- package/dist/server/src/__generated__/types.d.ts +0 -4
- package/dist/server/src/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/contracts/__generated__/contracts.types.d.ts +0 -8
- package/dist/server/src/modules/contracts/__generated__/types.d.ts +3 -4
- package/dist/server/src/modules/contracts/__generated__/types.js.map +1 -1
- package/dist/server/src/modules/contracts/providers/contracts.provider.js +2 -8
- package/dist/server/src/modules/contracts/providers/contracts.provider.js.map +1 -1
- package/dist/server/src/modules/contracts/resolvers/contracts.resolver.js +0 -3
- package/dist/server/src/modules/contracts/resolvers/contracts.resolver.js.map +1 -1
- package/dist/server/src/modules/contracts/typeDefs/contracts.graphql.js +0 -3
- package/dist/server/src/modules/contracts/typeDefs/contracts.graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/__generated__/types.ts +0 -4
- package/src/modules/contracts/__generated__/contracts.types.ts +0 -9
- package/src/modules/contracts/__generated__/types.ts +3 -4
- package/src/modules/contracts/providers/contracts.provider.ts +2 -8
- package/src/modules/contracts/resolvers/contracts.resolver.ts +0 -3
- package/src/modules/contracts/typeDefs/contracts.graphql.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @accounter/server
|
|
2
2
|
|
|
3
|
-
## 0.0.8-alpha-
|
|
3
|
+
## 0.0.8-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -168,18 +168,6 @@
|
|
|
168
168
|
- Updated dependency [`puppeteer@24.26.0` ↗︎](https://www.npmjs.com/package/puppeteer/v/24.26.0)
|
|
169
169
|
(from `24.25.0`, in `dependencies`)
|
|
170
170
|
|
|
171
|
-
- [#2631](https://github.com/Urigo/accounter-fullstack/pull/2631)
|
|
172
|
-
[`bcce9ab`](https://github.com/Urigo/accounter-fullstack/commit/bcce9ab485db2997b6b76ff0df765834d86f30e7)
|
|
173
|
-
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Database Schema Update**: A new
|
|
174
|
-
"operations_count" column has been added to the "clients_contracts" table to store the operational
|
|
175
|
-
limit for each contract.
|
|
176
|
-
- **GraphQL API Extension**: The GraphQL schema, resolvers, and database providers have been
|
|
177
|
-
updated to support the "operationsLimit" field for creating, updating, and querying contract
|
|
178
|
-
data.
|
|
179
|
-
- **User Interface Integration**: The client application now includes a dedicated input field for
|
|
180
|
-
setting the "operationsLimit" in the contract modification dialog and displays this value in the
|
|
181
|
-
contract details section.
|
|
182
|
-
|
|
183
171
|
- [#2551](https://github.com/Urigo/accounter-fullstack/pull/2551)
|
|
184
172
|
[`14900d1`](https://github.com/Urigo/accounter-fullstack/commit/14900d10209272429118ff4bd2e52893c813170b)
|
|
185
173
|
Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Error Handling Standardization**: The
|
|
@@ -392,9 +380,9 @@
|
|
|
392
380
|
[[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
393
381
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
|
|
394
382
|
[`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6)]:
|
|
395
|
-
- @accounter/pcn874-generator@0.6.3-alpha-
|
|
396
|
-
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-
|
|
397
|
-
- @accounter/shaam6111-generator@0.1.4-alpha-
|
|
383
|
+
- @accounter/pcn874-generator@0.6.3-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
|
|
384
|
+
- @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
|
|
385
|
+
- @accounter/shaam6111-generator@0.1.4-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
|
|
398
386
|
|
|
399
387
|
## 0.0.7
|
|
400
388
|
|
|
@@ -4,8 +4,8 @@ import type { GetMeshOptions } from '@graphql-mesh/runtime';
|
|
|
4
4
|
import type { YamlConfig } from '@graphql-mesh/types';
|
|
5
5
|
import { MeshHTTPHandler } from '@graphql-mesh/http';
|
|
6
6
|
import { type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
|
|
7
|
-
import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
|
|
8
7
|
import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
|
|
8
|
+
import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
|
|
9
9
|
export type Maybe<T> = T | null;
|
|
10
10
|
export type InputMaybe<T> = Maybe<T>;
|
|
11
11
|
export type Exact<T extends {
|
|
@@ -963,7 +963,6 @@ export type Contract = {
|
|
|
963
963
|
readonly id: Scalars['UUID']['output'];
|
|
964
964
|
readonly isActive: Scalars['Boolean']['output'];
|
|
965
965
|
readonly msCloud?: Maybe<Scalars['URL']['output']>;
|
|
966
|
-
readonly operationsLimit: Scalars['Int']['output'];
|
|
967
966
|
readonly plan?: Maybe<SubscriptionPlan>;
|
|
968
967
|
readonly product?: Maybe<Product>;
|
|
969
968
|
readonly purchaseOrder?: Maybe<Scalars['String']['output']>;
|
|
@@ -1121,7 +1120,6 @@ export type CreateContractInput = {
|
|
|
1121
1120
|
readonly endDate: Scalars['TimelessDate']['input'];
|
|
1122
1121
|
readonly isActive: Scalars['Boolean']['input'];
|
|
1123
1122
|
readonly msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
1124
|
-
readonly operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
1125
1123
|
readonly plan?: InputMaybe<SubscriptionPlan>;
|
|
1126
1124
|
readonly product?: InputMaybe<Product>;
|
|
1127
1125
|
readonly purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3774,7 +3772,6 @@ export type UpdateContractInput = {
|
|
|
3774
3772
|
readonly endDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
3775
3773
|
readonly isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3776
3774
|
readonly msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
3777
|
-
readonly operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
3778
3775
|
readonly plan?: InputMaybe<SubscriptionPlan>;
|
|
3779
3776
|
readonly product?: InputMaybe<Product>;
|
|
3780
3777
|
readonly purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5285,7 +5282,6 @@ export type ContractResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
5285
5282
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
5286
5283
|
isActive?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
5287
5284
|
msCloud?: Resolver<Maybe<ResolversTypes['URL']>, ParentType, ContextType>;
|
|
5288
|
-
operationsLimit?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
5289
5285
|
plan?: Resolver<Maybe<ResolversTypes['SubscriptionPlan']>, ParentType, ContextType>;
|
|
5290
5286
|
product?: Resolver<Maybe<ResolversTypes['Product']>, ParentType, ContextType>;
|
|
5291
5287
|
purchaseOrder?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/__generated__/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAo2BrD,OAAO,EAAE,iBAAiB,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"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
export type currency = 'AUD' | 'CAD' | 'ETH' | 'EUR' | 'GBP' | 'GRT' | 'ILS' | 'JPY' | 'SEK' | 'USD' | 'USDC';
|
|
3
3
|
export type document_type = 'CREDIT_INVOICE' | 'INVOICE' | 'INVOICE_RECEIPT' | 'OTHER' | 'PROFORMA' | 'RECEIPT' | 'UNPROCESSED';
|
|
4
4
|
export type DateOrString = Date | string;
|
|
5
|
-
export type NumberOrString = number | string;
|
|
6
5
|
/** 'GetAllOpenContracts' parameters type */
|
|
7
6
|
export type IGetAllOpenContractsParams = void;
|
|
8
7
|
/** 'GetAllOpenContracts' return type */
|
|
@@ -16,7 +15,6 @@ export interface IGetAllOpenContractsResult {
|
|
|
16
15
|
id: string;
|
|
17
16
|
is_active: boolean | null;
|
|
18
17
|
ms_cloud: string | null;
|
|
19
|
-
operations_count: string;
|
|
20
18
|
plan: string | null;
|
|
21
19
|
product: string | null;
|
|
22
20
|
purchase_order: string | null;
|
|
@@ -44,7 +42,6 @@ export interface IGetContractsByIdsResult {
|
|
|
44
42
|
id: string;
|
|
45
43
|
is_active: boolean | null;
|
|
46
44
|
ms_cloud: string | null;
|
|
47
|
-
operations_count: string;
|
|
48
45
|
plan: string | null;
|
|
49
46
|
product: string | null;
|
|
50
47
|
purchase_order: string | null;
|
|
@@ -72,7 +69,6 @@ export interface IGetContractsByClientIdsResult {
|
|
|
72
69
|
id: string;
|
|
73
70
|
is_active: boolean | null;
|
|
74
71
|
ms_cloud: string | null;
|
|
75
|
-
operations_count: string;
|
|
76
72
|
plan: string | null;
|
|
77
73
|
product: string | null;
|
|
78
74
|
purchase_order: string | null;
|
|
@@ -107,7 +103,6 @@ export interface IUpdateContractParams {
|
|
|
107
103
|
end_date?: DateOrString | null | void;
|
|
108
104
|
is_active?: boolean | null | void;
|
|
109
105
|
ms_cloud?: string | null | void;
|
|
110
|
-
operationsLimit?: NumberOrString | null | void;
|
|
111
106
|
plan?: string | null | void;
|
|
112
107
|
product?: string | null | void;
|
|
113
108
|
purchase_order?: string | null | void;
|
|
@@ -125,7 +120,6 @@ export interface IUpdateContractResult {
|
|
|
125
120
|
id: string;
|
|
126
121
|
is_active: boolean | null;
|
|
127
122
|
ms_cloud: string | null;
|
|
128
|
-
operations_count: string;
|
|
129
123
|
plan: string | null;
|
|
130
124
|
product: string | null;
|
|
131
125
|
purchase_order: string | null;
|
|
@@ -148,7 +142,6 @@ export interface IInsertContractParams {
|
|
|
148
142
|
endDate?: DateOrString | null | void;
|
|
149
143
|
isActive?: boolean | null | void;
|
|
150
144
|
msCloud?: string | null | void;
|
|
151
|
-
operationsLimit?: NumberOrString | null | void;
|
|
152
145
|
plan?: string | null | void;
|
|
153
146
|
product?: string | null | void;
|
|
154
147
|
purchaseOrder?: string | null | void;
|
|
@@ -166,7 +159,6 @@ export interface IInsertContractResult {
|
|
|
166
159
|
id: string;
|
|
167
160
|
is_active: boolean | null;
|
|
168
161
|
ms_cloud: string | null;
|
|
169
|
-
operations_count: string;
|
|
170
162
|
plan: string | null;
|
|
171
163
|
product: string | null;
|
|
172
164
|
purchase_order: string | null;
|
|
@@ -4,7 +4,7 @@ export declare namespace ContractsModule {
|
|
|
4
4
|
interface DefinedFields {
|
|
5
5
|
Query: 'allOpenContracts' | 'contractsByClient';
|
|
6
6
|
Mutation: 'updateContract' | 'deleteContract' | 'createContract';
|
|
7
|
-
Contract: 'id' | 'client' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'isActive' | 'product' | 'plan' | 'msCloud'
|
|
7
|
+
Contract: 'id' | 'client' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'isActive' | 'product' | 'plan' | 'msCloud';
|
|
8
8
|
}
|
|
9
9
|
interface DefinedEnumValues {
|
|
10
10
|
BillingCycle: 'MONTHLY' | 'ANNUAL';
|
|
@@ -12,8 +12,8 @@ export declare namespace ContractsModule {
|
|
|
12
12
|
SubscriptionPlan: 'ENTERPRISE' | 'PRO';
|
|
13
13
|
}
|
|
14
14
|
interface DefinedInputFields {
|
|
15
|
-
CreateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive'
|
|
16
|
-
UpdateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive'
|
|
15
|
+
CreateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive';
|
|
16
|
+
UpdateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive';
|
|
17
17
|
}
|
|
18
18
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
19
19
|
export type Contract = Pick<Types.Contract, DefinedFields['Contract']>;
|
|
@@ -68,7 +68,6 @@ export declare namespace ContractsModule {
|
|
|
68
68
|
product?: gm.Middleware[];
|
|
69
69
|
plan?: gm.Middleware[];
|
|
70
70
|
msCloud?: gm.Middleware[];
|
|
71
|
-
operationsLimit?: gm.Middleware[];
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
73
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/__generated__/types.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,eAAe,CA4E/B;AA5ED,WAAiB,eAAe;IAK7B,CAAC;IAMD,CAAC;IAKD,CAAC;IA0BD,CAAC;IAiCD,CAAC;AACJ,CAAC,EA5EgB,eAAe,KAAf,eAAe,QA4E/B"}
|
|
@@ -73,10 +73,6 @@ const updateContract = sql `
|
|
|
73
73
|
ms_cloud = COALESCE(
|
|
74
74
|
$ms_cloud,
|
|
75
75
|
ms_cloud
|
|
76
|
-
),
|
|
77
|
-
operations_count = COALESCE(
|
|
78
|
-
$operationsLimit,
|
|
79
|
-
operations_count
|
|
80
76
|
)
|
|
81
77
|
WHERE
|
|
82
78
|
id = $contractId
|
|
@@ -96,8 +92,7 @@ const insertContract = sql `
|
|
|
96
92
|
product,
|
|
97
93
|
plan,
|
|
98
94
|
is_active,
|
|
99
|
-
ms_cloud
|
|
100
|
-
operations_count
|
|
95
|
+
ms_cloud
|
|
101
96
|
)
|
|
102
97
|
VALUES ($clientId,
|
|
103
98
|
$purchaseOrder,
|
|
@@ -111,8 +106,7 @@ const insertContract = sql `
|
|
|
111
106
|
$product,
|
|
112
107
|
$plan,
|
|
113
108
|
$isActive,
|
|
114
|
-
$msCloud
|
|
115
|
-
$operationsLimit)
|
|
109
|
+
$msCloud)
|
|
116
110
|
RETURNING *;`;
|
|
117
111
|
let ContractsProvider = class ContractsProvider {
|
|
118
112
|
dbProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.provider.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/providers/contracts.provider.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAanD,MAAM,mBAAmB,GAAG,GAAG,CAA2B;;;6BAG7B,CAAC;AAE9B,MAAM,iBAAiB,GAAG,GAAG,CAAyB;;;uBAG/B,CAAC;AAExB,MAAM,uBAAuB,GAAG,GAAG,CAA+B;;;oCAG9B,CAAC;AAErC,MAAM,cAAc,GAAG,GAAG,CAAsB;;oBAE5B,CAAC;AAErB,MAAM,cAAc,GAAG,GAAG,CAAsB
|
|
1
|
+
{"version":3,"file":"contracts.provider.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/providers/contracts.provider.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,M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AK,EAAE,CAAC;IACrB,CAAC;CACF,CAAA;AAhFY,iBAAiB;IAJ7B,UAAU,CAAC;QACV,KAAK,EAAE,KAAK,CAAC,SAAS;QACtB,MAAM,EAAE,IAAI;KACb,CAAC;qCAMgC,UAAU;GAL/B,iBAAiB,CAgF7B"}
|
|
@@ -43,7 +43,6 @@ export const contractsResolvers = {
|
|
|
43
43
|
purchaseOrder: input.purchaseOrder,
|
|
44
44
|
remarks: input.remarks,
|
|
45
45
|
startDate: input.startDate,
|
|
46
|
-
operationsLimit: input.operationsLimit,
|
|
47
46
|
};
|
|
48
47
|
return injector.get(ContractsProvider).createContract(params);
|
|
49
48
|
}
|
|
@@ -69,7 +68,6 @@ export const contractsResolvers = {
|
|
|
69
68
|
purchase_order: input.purchaseOrder,
|
|
70
69
|
remarks: input.remarks,
|
|
71
70
|
start_date: input.startDate,
|
|
72
|
-
operationsLimit: input.operationsLimit,
|
|
73
71
|
};
|
|
74
72
|
return injector.get(ContractsProvider).updateContract(params);
|
|
75
73
|
}
|
|
@@ -115,7 +113,6 @@ export const contractsResolvers = {
|
|
|
115
113
|
product: dbContract => normalizeProduct(dbContract.product), //Product!
|
|
116
114
|
plan: dbContract => normalizeSubscriptionPlan(dbContract.plan), //SubscriptionPlan!
|
|
117
115
|
msCloud: dbContract => dbContract.ms_cloud, //URL
|
|
118
|
-
operationsLimit: dbContract => Number(dbContract.operations_count), //Int
|
|
119
116
|
},
|
|
120
117
|
};
|
|
121
118
|
//# sourceMappingURL=contracts.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.resolver.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/resolvers/contracts.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,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E,KAAK,CAAC,MAAM,CAAC,GAAG;oBACxB,YAAY,EAAE,KAAK,CAAC,YAAY;oBAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;oBACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;oBAC/B,YAAY,EAAE,KAAK,CAAC,YAAY;oBAChC,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;oBACxB,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE;oBAClC,IAAI,EAAE,KAAK,CAAC,IAAI;oBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,aAAa,EAAE,KAAK,CAAC,aAAa;oBAClC,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,SAAS,EAAE,KAAK,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"contracts.resolver.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/resolvers/contracts.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,MAAM,CAAC,MAAM,kBAAkB,GAA8B;IAC3D,KAAK,EAAE;QACL,gBAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC9C,IAAI,CAAC;gBACH,OAAO,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,mBAAmB,EAAE,CAAC;YAC/D,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BAAwB,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,eAAe;QACzF,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,wBAAwB,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,eAAe;QACrF,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ;QACnD,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,kBAAkB;QACvG,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC,qBAAqB,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,eAAe;QAC5F,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC,qBAAqB,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,eAAe;QAC5F,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,IAAI,KAAK,EAAE,UAAU;QACjE,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,UAAU;QACvE,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,mBAAmB;QACnF,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK;KAClD;CACF,CAAC"}
|
|
@@ -27,7 +27,6 @@ export default gql `
|
|
|
27
27
|
product: Product
|
|
28
28
|
plan: SubscriptionPlan
|
|
29
29
|
msCloud: URL
|
|
30
|
-
operationsLimit: Int!
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
" contract billing cycle "
|
|
@@ -62,7 +61,6 @@ export default gql `
|
|
|
62
61
|
plan: SubscriptionPlan
|
|
63
62
|
msCloud: URL
|
|
64
63
|
isActive: Boolean!
|
|
65
|
-
operationsLimit: Int
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
" input for updating a contract "
|
|
@@ -79,7 +77,6 @@ export default gql `
|
|
|
79
77
|
plan: SubscriptionPlan
|
|
80
78
|
msCloud: URL
|
|
81
79
|
isActive: Boolean
|
|
82
|
-
operationsLimit: Int
|
|
83
80
|
}
|
|
84
81
|
`;
|
|
85
82
|
//# sourceMappingURL=contracts.graphql.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.graphql.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/typeDefs/contracts.graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"contracts.graphql.js","sourceRoot":"","sources":["../../../../../../src/modules/contracts/typeDefs/contracts.graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -993,7 +993,6 @@ export type Contract = {
|
|
|
993
993
|
readonly id: Scalars['UUID']['output'];
|
|
994
994
|
readonly isActive: Scalars['Boolean']['output'];
|
|
995
995
|
readonly msCloud?: Maybe<Scalars['URL']['output']>;
|
|
996
|
-
readonly operationsLimit: Scalars['Int']['output'];
|
|
997
996
|
readonly plan?: Maybe<SubscriptionPlan>;
|
|
998
997
|
readonly product?: Maybe<Product>;
|
|
999
998
|
readonly purchaseOrder?: Maybe<Scalars['String']['output']>;
|
|
@@ -1163,7 +1162,6 @@ export type CreateContractInput = {
|
|
|
1163
1162
|
readonly endDate: Scalars['TimelessDate']['input'];
|
|
1164
1163
|
readonly isActive: Scalars['Boolean']['input'];
|
|
1165
1164
|
readonly msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
1166
|
-
readonly operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
1167
1165
|
readonly plan?: InputMaybe<SubscriptionPlan>;
|
|
1168
1166
|
readonly product?: InputMaybe<Product>;
|
|
1169
1167
|
readonly purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4625,7 +4623,6 @@ export type UpdateContractInput = {
|
|
|
4625
4623
|
readonly endDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
4626
4624
|
readonly isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4627
4625
|
readonly msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
4628
|
-
readonly operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
4629
4626
|
readonly plan?: InputMaybe<SubscriptionPlan>;
|
|
4630
4627
|
readonly product?: InputMaybe<Product>;
|
|
4631
4628
|
readonly purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -6068,7 +6065,6 @@ export type ContractResolvers<ContextType = GraphQLModules.Context, ParentType e
|
|
|
6068
6065
|
id?: Resolver<ResolversTypes['UUID'], ParentType, ContextType>;
|
|
6069
6066
|
isActive?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
6070
6067
|
msCloud?: Resolver<Maybe<ResolversTypes['URL']>, ParentType, ContextType>;
|
|
6071
|
-
operationsLimit?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
6072
6068
|
plan?: Resolver<Maybe<ResolversTypes['SubscriptionPlan']>, ParentType, ContextType>;
|
|
6073
6069
|
product?: Resolver<Maybe<ResolversTypes['Product']>, ParentType, ContextType>;
|
|
6074
6070
|
purchaseOrder?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -5,8 +5,6 @@ export type document_type = 'CREDIT_INVOICE' | 'INVOICE' | 'INVOICE_RECEIPT' | '
|
|
|
5
5
|
|
|
6
6
|
export type DateOrString = Date | string;
|
|
7
7
|
|
|
8
|
-
export type NumberOrString = number | string;
|
|
9
|
-
|
|
10
8
|
/** 'GetAllOpenContracts' parameters type */
|
|
11
9
|
export type IGetAllOpenContractsParams = void;
|
|
12
10
|
|
|
@@ -21,7 +19,6 @@ export interface IGetAllOpenContractsResult {
|
|
|
21
19
|
id: string;
|
|
22
20
|
is_active: boolean | null;
|
|
23
21
|
ms_cloud: string | null;
|
|
24
|
-
operations_count: string;
|
|
25
22
|
plan: string | null;
|
|
26
23
|
product: string | null;
|
|
27
24
|
purchase_order: string | null;
|
|
@@ -52,7 +49,6 @@ export interface IGetContractsByIdsResult {
|
|
|
52
49
|
id: string;
|
|
53
50
|
is_active: boolean | null;
|
|
54
51
|
ms_cloud: string | null;
|
|
55
|
-
operations_count: string;
|
|
56
52
|
plan: string | null;
|
|
57
53
|
product: string | null;
|
|
58
54
|
purchase_order: string | null;
|
|
@@ -83,7 +79,6 @@ export interface IGetContractsByClientIdsResult {
|
|
|
83
79
|
id: string;
|
|
84
80
|
is_active: boolean | null;
|
|
85
81
|
ms_cloud: string | null;
|
|
86
|
-
operations_count: string;
|
|
87
82
|
plan: string | null;
|
|
88
83
|
product: string | null;
|
|
89
84
|
purchase_order: string | null;
|
|
@@ -123,7 +118,6 @@ export interface IUpdateContractParams {
|
|
|
123
118
|
end_date?: DateOrString | null | void;
|
|
124
119
|
is_active?: boolean | null | void;
|
|
125
120
|
ms_cloud?: string | null | void;
|
|
126
|
-
operationsLimit?: NumberOrString | null | void;
|
|
127
121
|
plan?: string | null | void;
|
|
128
122
|
product?: string | null | void;
|
|
129
123
|
purchase_order?: string | null | void;
|
|
@@ -142,7 +136,6 @@ export interface IUpdateContractResult {
|
|
|
142
136
|
id: string;
|
|
143
137
|
is_active: boolean | null;
|
|
144
138
|
ms_cloud: string | null;
|
|
145
|
-
operations_count: string;
|
|
146
139
|
plan: string | null;
|
|
147
140
|
product: string | null;
|
|
148
141
|
purchase_order: string | null;
|
|
@@ -167,7 +160,6 @@ export interface IInsertContractParams {
|
|
|
167
160
|
endDate?: DateOrString | null | void;
|
|
168
161
|
isActive?: boolean | null | void;
|
|
169
162
|
msCloud?: string | null | void;
|
|
170
|
-
operationsLimit?: NumberOrString | null | void;
|
|
171
163
|
plan?: string | null | void;
|
|
172
164
|
product?: string | null | void;
|
|
173
165
|
purchaseOrder?: string | null | void;
|
|
@@ -186,7 +178,6 @@ export interface IInsertContractResult {
|
|
|
186
178
|
id: string;
|
|
187
179
|
is_active: boolean | null;
|
|
188
180
|
ms_cloud: string | null;
|
|
189
|
-
operations_count: string;
|
|
190
181
|
plan: string | null;
|
|
191
182
|
product: string | null;
|
|
192
183
|
purchase_order: string | null;
|
|
@@ -4,7 +4,7 @@ export namespace ContractsModule {
|
|
|
4
4
|
interface DefinedFields {
|
|
5
5
|
Query: 'allOpenContracts' | 'contractsByClient';
|
|
6
6
|
Mutation: 'updateContract' | 'deleteContract' | 'createContract';
|
|
7
|
-
Contract: 'id' | 'client' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'isActive' | 'product' | 'plan' | 'msCloud'
|
|
7
|
+
Contract: 'id' | 'client' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'isActive' | 'product' | 'plan' | 'msCloud';
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
interface DefinedEnumValues {
|
|
@@ -14,8 +14,8 @@ export namespace ContractsModule {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
interface DefinedInputFields {
|
|
17
|
-
CreateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive'
|
|
18
|
-
UpdateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive'
|
|
17
|
+
CreateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive';
|
|
18
|
+
UpdateContractInput: 'clientId' | 'purchaseOrder' | 'startDate' | 'endDate' | 'remarks' | 'amount' | 'documentType' | 'billingCycle' | 'product' | 'plan' | 'msCloud' | 'isActive';
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export type Query = Pick<Types.Query, DefinedFields['Query']>;
|
|
@@ -74,7 +74,6 @@ export namespace ContractsModule {
|
|
|
74
74
|
product?: gm.Middleware[];
|
|
75
75
|
plan?: gm.Middleware[];
|
|
76
76
|
msCloud?: gm.Middleware[];
|
|
77
|
-
operationsLimit?: gm.Middleware[];
|
|
78
77
|
};
|
|
79
78
|
};
|
|
80
79
|
}
|
|
@@ -88,10 +88,6 @@ const updateContract = sql<IUpdateContractQuery>`
|
|
|
88
88
|
ms_cloud = COALESCE(
|
|
89
89
|
$ms_cloud,
|
|
90
90
|
ms_cloud
|
|
91
|
-
),
|
|
92
|
-
operations_count = COALESCE(
|
|
93
|
-
$operationsLimit,
|
|
94
|
-
operations_count
|
|
95
91
|
)
|
|
96
92
|
WHERE
|
|
97
93
|
id = $contractId
|
|
@@ -112,8 +108,7 @@ const insertContract = sql<IInsertContractQuery>`
|
|
|
112
108
|
product,
|
|
113
109
|
plan,
|
|
114
110
|
is_active,
|
|
115
|
-
ms_cloud
|
|
116
|
-
operations_count
|
|
111
|
+
ms_cloud
|
|
117
112
|
)
|
|
118
113
|
VALUES ($clientId,
|
|
119
114
|
$purchaseOrder,
|
|
@@ -127,8 +122,7 @@ const insertContract = sql<IInsertContractQuery>`
|
|
|
127
122
|
$product,
|
|
128
123
|
$plan,
|
|
129
124
|
$isActive,
|
|
130
|
-
$msCloud
|
|
131
|
-
$operationsLimit)
|
|
125
|
+
$msCloud)
|
|
132
126
|
RETURNING *;`;
|
|
133
127
|
|
|
134
128
|
@Injectable({
|
|
@@ -47,7 +47,6 @@ export const contractsResolvers: ContractsModule.Resolvers = {
|
|
|
47
47
|
purchaseOrder: input.purchaseOrder,
|
|
48
48
|
remarks: input.remarks,
|
|
49
49
|
startDate: input.startDate,
|
|
50
|
-
operationsLimit: input.operationsLimit,
|
|
51
50
|
};
|
|
52
51
|
return injector.get(ContractsProvider).createContract(params);
|
|
53
52
|
} catch (e) {
|
|
@@ -72,7 +71,6 @@ export const contractsResolvers: ContractsModule.Resolvers = {
|
|
|
72
71
|
purchase_order: input.purchaseOrder,
|
|
73
72
|
remarks: input.remarks,
|
|
74
73
|
start_date: input.startDate,
|
|
75
|
-
operationsLimit: input.operationsLimit,
|
|
76
74
|
};
|
|
77
75
|
return injector.get(ContractsProvider).updateContract(params);
|
|
78
76
|
} catch (e) {
|
|
@@ -115,6 +113,5 @@ export const contractsResolvers: ContractsModule.Resolvers = {
|
|
|
115
113
|
product: dbContract => normalizeProduct(dbContract.product), //Product!
|
|
116
114
|
plan: dbContract => normalizeSubscriptionPlan(dbContract.plan), //SubscriptionPlan!
|
|
117
115
|
msCloud: dbContract => dbContract.ms_cloud, //URL
|
|
118
|
-
operationsLimit: dbContract => Number(dbContract.operations_count), //Int
|
|
119
116
|
},
|
|
120
117
|
};
|
|
@@ -28,7 +28,6 @@ export default gql`
|
|
|
28
28
|
product: Product
|
|
29
29
|
plan: SubscriptionPlan
|
|
30
30
|
msCloud: URL
|
|
31
|
-
operationsLimit: Int!
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
" contract billing cycle "
|
|
@@ -63,7 +62,6 @@ export default gql`
|
|
|
63
62
|
plan: SubscriptionPlan
|
|
64
63
|
msCloud: URL
|
|
65
64
|
isActive: Boolean!
|
|
66
|
-
operationsLimit: Int
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
" input for updating a contract "
|
|
@@ -80,6 +78,5 @@ export default gql`
|
|
|
80
78
|
plan: SubscriptionPlan
|
|
81
79
|
msCloud: URL
|
|
82
80
|
isActive: Boolean
|
|
83
|
-
operationsLimit: Int
|
|
84
81
|
}
|
|
85
82
|
`;
|