@restorecommerce/facade 1.1.4 → 1.1.5
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 -0
- package/codegen/index.js +2 -1
- package/dist/gql/protos/federation.js +2 -2
- package/dist/gql/protos/registry.js +2 -2
- package/dist/gql/protos/resolvers.d.ts +2 -2
- package/dist/gql/protos/resolvers.js +7 -6
- package/dist/gql/protos/schema.d.ts +1 -1
- package/dist/gql/protos/schema.js +4 -4
- package/dist/gql/protos/types.d.ts +3 -3
- package/dist/gql/protos/utils.d.ts +2 -0
- package/dist/gql/protos/utils.js +11 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +19 -18
- package/dist/interfaces.d.ts +4 -5
- package/dist/modules/access-control/gql/federation.js +2 -2
- package/dist/modules/access-control/gql/schema.generated.d.ts +166 -161
- package/dist/modules/access-control/grpc/index.d.ts +8 -8
- package/dist/modules/access-control/grpc/index.js +4 -4
- package/dist/modules/access-control/interfaces.d.ts +1 -1
- package/dist/modules/catalog/gql/federation.js +2 -2
- package/dist/modules/catalog/gql/schema.generated.d.ts +575 -339
- package/dist/modules/catalog/gql/schema.generated.js +7 -1
- package/dist/modules/catalog/grpc/index.d.ts +10 -10
- package/dist/modules/catalog/grpc/index.js +5 -5
- package/dist/modules/catalog/interfaces.d.ts +1 -1
- package/dist/modules/facade-status/gql/index.js +2 -2
- package/dist/modules/facade-status/gql/schema.generated.d.ts +27 -27
- package/dist/modules/facade-status/interfaces.d.ts +1 -1
- package/dist/modules/fulfillment/gql/federation.js +2 -2
- package/dist/modules/fulfillment/gql/schema.generated.d.ts +561 -505
- package/dist/modules/fulfillment/gql/schema.generated.js +6 -6
- package/dist/modules/fulfillment/grpc/index.d.ts +4 -4
- package/dist/modules/fulfillment/grpc/index.js +2 -2
- package/dist/modules/fulfillment/interfaces.d.ts +1 -1
- package/dist/modules/identity/gql/schema.generated.d.ts +361 -213
- package/dist/modules/identity/grpc/index.d.ts +10 -10
- package/dist/modules/identity/grpc/index.js +5 -5
- package/dist/modules/identity/interfaces.d.ts +1 -1
- package/dist/modules/identity/oidc/adapter.d.ts +1 -1
- package/dist/modules/identity/oidc/index.d.ts +1 -1
- package/dist/modules/identity/oidc/index.js +1 -1
- package/dist/modules/identity/oidc/interfaces.d.ts +11 -10
- package/dist/modules/identity/oidc/router.d.ts +1 -1
- package/dist/modules/identity/oidc/router.js +2 -2
- package/dist/modules/identity/oidc/user.d.ts +1 -1
- package/dist/modules/indexing/gql/federation.js +2 -2
- package/dist/modules/indexing/gql/schema.generated.d.ts +55 -50
- package/dist/modules/indexing/grpc/index.d.ts +2 -2
- package/dist/modules/indexing/grpc/index.js +1 -1
- package/dist/modules/indexing/interfaces.d.ts +1 -1
- package/dist/modules/invoicing/gql/federation.js +2 -2
- package/dist/modules/invoicing/gql/schema.generated.d.ts +148 -139
- package/dist/modules/invoicing/grpc/index.d.ts +2 -2
- package/dist/modules/invoicing/grpc/index.js +1 -1
- package/dist/modules/invoicing/interfaces.d.ts +1 -1
- package/dist/modules/notification/gql/federation.js +2 -2
- package/dist/modules/notification/gql/schema.generated.d.ts +100 -95
- package/dist/modules/notification/grpc/index.d.ts +2 -2
- package/dist/modules/notification/grpc/index.js +1 -1
- package/dist/modules/notification/interfaces.d.ts +1 -1
- package/dist/modules/ordering/gql/federation.js +2 -2
- package/dist/modules/ordering/gql/schema.generated.d.ts +686 -269
- package/dist/modules/ordering/gql/schema.generated.js +24 -12
- package/dist/modules/ordering/grpc/index.d.ts +2 -2
- package/dist/modules/ordering/grpc/index.js +1 -1
- package/dist/modules/ordering/interfaces.d.ts +1 -1
- package/dist/modules/ostorage/gql/federation.js +2 -2
- package/dist/modules/ostorage/gql/schema.generated.d.ts +135 -130
- package/dist/modules/ostorage/grpc/index.d.ts +2 -2
- package/dist/modules/ostorage/grpc/index.js +1 -1
- package/dist/modules/ostorage/interfaces.d.ts +1 -1
- package/dist/modules/payment/gql/federation.js +2 -2
- package/dist/modules/payment/gql/schema.generated.d.ts +65 -65
- package/dist/modules/payment/grpc/index.d.ts +2 -2
- package/dist/modules/payment/grpc/index.js +1 -1
- package/dist/modules/payment/interfaces.d.ts +1 -1
- package/dist/modules/resource/gql/federation.js +2 -2
- package/dist/modules/resource/gql/schema.generated.d.ts +331 -314
- package/dist/modules/resource/gql/schema.generated.js +6 -1
- package/dist/modules/resource/grpc/index.d.ts +22 -22
- package/dist/modules/resource/grpc/index.js +12 -12
- package/dist/modules/resource/interfaces.d.ts +1 -1
- package/dist/modules/scheduling/gql/federation.js +2 -2
- package/dist/modules/scheduling/gql/schema.generated.d.ts +105 -100
- package/dist/modules/scheduling/grpc/index.d.ts +2 -2
- package/dist/modules/scheduling/grpc/index.js +1 -1
- package/dist/modules/scheduling/interfaces.d.ts +1 -1
- package/dist/utils.d.ts +2 -2
- package/package.json +46 -45
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RestoreCommerceGrpcClient } from '@restorecommerce/rc-grpc-clients';
|
2
|
-
import {
|
2
|
+
import { InvoiceServiceClient } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/invoice';
|
3
3
|
import { GrpcClientConfig } from '@restorecommerce/grpc-client';
|
4
4
|
export declare class InvoicingSrvGrpcClient extends RestoreCommerceGrpcClient {
|
5
|
-
readonly invoice:
|
5
|
+
readonly invoice: InvoiceServiceClient;
|
6
6
|
constructor(address: string, cfg: GrpcClientConfig);
|
7
7
|
}
|
@@ -6,7 +6,7 @@ const invoice_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/re
|
|
6
6
|
class InvoicingSrvGrpcClient extends rc_grpc_clients_1.RestoreCommerceGrpcClient {
|
7
7
|
constructor(address, cfg) {
|
8
8
|
super(address, cfg);
|
9
|
-
this.invoice = this.createClient(cfg, invoice_1.
|
9
|
+
this.invoice = this.createClient(cfg, invoice_1.InvoiceServiceDefinition, this.channel);
|
10
10
|
}
|
11
11
|
}
|
12
12
|
exports.InvoicingSrvGrpcClient = InvoicingSrvGrpcClient;
|
@@ -12,5 +12,5 @@ export interface InvoicingContext extends FacadeContext {
|
|
12
12
|
client: InvoicingSrvGrpcClient;
|
13
13
|
};
|
14
14
|
}
|
15
|
-
export
|
15
|
+
export type InvoicingModule = FacadeModule<InvoicingContext>;
|
16
16
|
export declare const namespace = "invoicing";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FederatedNotificationSchema = void 0;
|
4
|
-
const
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
const federation_1 = require("@apollo/federation");
|
6
6
|
const schema_1 = require("./schema");
|
7
7
|
const interfaces_1 = require("../interfaces");
|
@@ -11,7 +11,7 @@ const graphql_1 = require("graphql");
|
|
11
11
|
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
12
12
|
// See https://github.com/apollographql/apollo-server/pull/4310
|
13
13
|
const FederatedNotificationSchema = (cfg) => (0, federation_1.buildSubgraphSchema)({
|
14
|
-
typeDefs: (0,
|
14
|
+
typeDefs: (0, graphql_tag_1.default)((0, graphql_1.printSchema)((0, schema_1.schema)(cfg))),
|
15
15
|
resolvers: (0, protos_1.generateSubServiceResolvers)(types_1.subServices, cfg, interfaces_1.namespace)
|
16
16
|
});
|
17
17
|
exports.FederatedNotificationSchema = FederatedNotificationSchema;
|
@@ -1,23 +1,23 @@
|
|
1
1
|
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
2
2
|
import { NotificationContext } from '../interfaces';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
3
|
+
export type Maybe<T> = T | null | undefined;
|
4
|
+
export type InputMaybe<T> = T | null | undefined;
|
5
|
+
export type Exact<T extends {
|
6
6
|
[key: string]: unknown;
|
7
7
|
}> = {
|
8
8
|
[K in keyof T]: T[K];
|
9
9
|
};
|
10
|
-
export
|
10
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
11
11
|
[SubKey in K]?: Maybe<T[SubKey]>;
|
12
12
|
};
|
13
|
-
export
|
13
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
14
14
|
[SubKey in K]: Maybe<T[SubKey]>;
|
15
15
|
};
|
16
|
-
export
|
16
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
17
17
|
[P in K]-?: NonNullable<T[P]>;
|
18
18
|
};
|
19
19
|
/** All built-in and custom scalars, mapped to their actual values */
|
20
|
-
export
|
20
|
+
export type Scalars = {
|
21
21
|
ID: string;
|
22
22
|
String: string;
|
23
23
|
Boolean: boolean;
|
@@ -25,37 +25,37 @@ export declare type Scalars = {
|
|
25
25
|
Float: number;
|
26
26
|
GoogleProtobufAnyValue: any;
|
27
27
|
};
|
28
|
-
export
|
28
|
+
export type Query = {
|
29
29
|
__typename?: 'Query';
|
30
30
|
notification: NotificationQuery;
|
31
31
|
};
|
32
|
-
export
|
32
|
+
export type NotificationQuery = {
|
33
33
|
__typename?: 'NotificationQuery';
|
34
34
|
notification: NotificationNotificationQuery;
|
35
35
|
};
|
36
|
-
export
|
36
|
+
export type NotificationNotificationQuery = {
|
37
37
|
__typename?: 'NotificationNotificationQuery';
|
38
38
|
Read?: Maybe<ProtoIoRestorecommerceNotificationNotificationListResponse>;
|
39
39
|
};
|
40
|
-
export
|
40
|
+
export type NotificationNotificationQueryReadArgs = {
|
41
41
|
input: IIoRestorecommerceResourcebaseReadRequest;
|
42
42
|
};
|
43
|
-
export
|
43
|
+
export type ProtoIoRestorecommerceNotificationNotificationListResponse = {
|
44
44
|
__typename?: 'ProtoIoRestorecommerceNotificationNotificationListResponse';
|
45
45
|
details?: Maybe<IoRestorecommerceNotificationNotificationListResponse>;
|
46
46
|
};
|
47
|
-
export
|
47
|
+
export type IoRestorecommerceNotificationNotificationListResponse = {
|
48
48
|
__typename?: 'IoRestorecommerceNotificationNotificationListResponse';
|
49
49
|
items?: Maybe<Array<IoRestorecommerceNotificationNotificationResponse>>;
|
50
50
|
totalCount?: Maybe<Scalars['Int']>;
|
51
51
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
52
52
|
};
|
53
|
-
export
|
53
|
+
export type IoRestorecommerceNotificationNotificationResponse = {
|
54
54
|
__typename?: 'IoRestorecommerceNotificationNotificationResponse';
|
55
55
|
items?: Maybe<IoRestorecommerceNotificationNotification>;
|
56
56
|
status?: Maybe<IoRestorecommerceStatusStatus>;
|
57
57
|
};
|
58
|
-
export
|
58
|
+
export type IoRestorecommerceNotificationNotification = {
|
59
59
|
__typename?: 'IoRestorecommerceNotificationNotification';
|
60
60
|
id?: Maybe<Scalars['String']>;
|
61
61
|
meta?: Maybe<IoRestorecommerceMetaMeta>;
|
@@ -67,7 +67,7 @@ export declare type IoRestorecommerceNotificationNotification = {
|
|
67
67
|
subjectTemplate?: Maybe<Scalars['String']>;
|
68
68
|
bodyTemplate?: Maybe<Scalars['String']>;
|
69
69
|
};
|
70
|
-
export
|
70
|
+
export type IoRestorecommerceMetaMeta = {
|
71
71
|
__typename?: 'IoRestorecommerceMetaMeta';
|
72
72
|
created?: Maybe<Scalars['Float']>;
|
73
73
|
modified?: Maybe<Scalars['Float']>;
|
@@ -75,28 +75,28 @@ export declare type IoRestorecommerceMetaMeta = {
|
|
75
75
|
owner?: Maybe<Array<IoRestorecommerceAttributeAttribute>>;
|
76
76
|
acl?: Maybe<Array<IoRestorecommerceAttributeAttributeObj>>;
|
77
77
|
};
|
78
|
-
export
|
78
|
+
export type IoRestorecommerceAttributeAttribute = {
|
79
79
|
__typename?: 'IoRestorecommerceAttributeAttribute';
|
80
80
|
id?: Maybe<Scalars['String']>;
|
81
81
|
value?: Maybe<Scalars['String']>;
|
82
82
|
attribute?: Maybe<Array<IoRestorecommerceAttributeAttribute>>;
|
83
83
|
};
|
84
|
-
export
|
84
|
+
export type IoRestorecommerceAttributeAttributeObj = {
|
85
85
|
__typename?: 'IoRestorecommerceAttributeAttributeObj';
|
86
86
|
attribute?: Maybe<IoRestorecommerceAttributeAttribute>;
|
87
87
|
};
|
88
|
-
export
|
88
|
+
export type IoRestorecommerceStatusStatus = {
|
89
89
|
__typename?: 'IoRestorecommerceStatusStatus';
|
90
90
|
id?: Maybe<Scalars['String']>;
|
91
91
|
code?: Maybe<Scalars['Int']>;
|
92
92
|
message?: Maybe<Scalars['String']>;
|
93
93
|
};
|
94
|
-
export
|
94
|
+
export type IoRestorecommerceStatusOperationStatus = {
|
95
95
|
__typename?: 'IoRestorecommerceStatusOperationStatus';
|
96
96
|
code?: Maybe<Scalars['Int']>;
|
97
97
|
message?: Maybe<Scalars['String']>;
|
98
98
|
};
|
99
|
-
export
|
99
|
+
export type IIoRestorecommerceResourcebaseReadRequest = {
|
100
100
|
offset?: InputMaybe<Scalars['Int']>;
|
101
101
|
limit?: InputMaybe<Scalars['Int']>;
|
102
102
|
sort?: InputMaybe<Array<IIoRestorecommerceResourcebaseSort>>;
|
@@ -109,7 +109,7 @@ export declare type IIoRestorecommerceResourcebaseReadRequest = {
|
|
109
109
|
/** target scope */
|
110
110
|
scope?: InputMaybe<Scalars['String']>;
|
111
111
|
};
|
112
|
-
export
|
112
|
+
export type IIoRestorecommerceResourcebaseSort = {
|
113
113
|
field?: InputMaybe<Scalars['String']>;
|
114
114
|
order?: InputMaybe<IoRestorecommerceResourcebaseSortSortOrder>;
|
115
115
|
};
|
@@ -118,11 +118,11 @@ export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
|
118
118
|
Ascending = 1,
|
119
119
|
Descending = 2
|
120
120
|
}
|
121
|
-
export
|
121
|
+
export type IIoRestorecommerceResourcebaseFilterOp = {
|
122
122
|
filter?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilter>>;
|
123
123
|
operator?: InputMaybe<IoRestorecommerceResourcebaseFilterOpOperator>;
|
124
124
|
};
|
125
|
-
export
|
125
|
+
export type IIoRestorecommerceResourcebaseFilter = {
|
126
126
|
field?: InputMaybe<Scalars['String']>;
|
127
127
|
operation?: InputMaybe<IoRestorecommerceResourcebaseFilterOperation>;
|
128
128
|
value?: InputMaybe<Scalars['String']>;
|
@@ -147,11 +147,11 @@ export declare enum IoRestorecommerceResourcebaseFilterValueType {
|
|
147
147
|
Date = 3,
|
148
148
|
Array = 4
|
149
149
|
}
|
150
|
-
export
|
150
|
+
export type IIoRestorecommerceFilterFilterOp = {
|
151
151
|
filter?: InputMaybe<Array<IIoRestorecommerceFilterFilter>>;
|
152
152
|
operator?: InputMaybe<IoRestorecommerceFilterFilterOpOperator>;
|
153
153
|
};
|
154
|
-
export
|
154
|
+
export type IIoRestorecommerceFilterFilter = {
|
155
155
|
field?: InputMaybe<Scalars['String']>;
|
156
156
|
operation?: InputMaybe<IoRestorecommerceFilterFilterOperation>;
|
157
157
|
value?: InputMaybe<Scalars['String']>;
|
@@ -184,46 +184,46 @@ export declare enum IoRestorecommerceResourcebaseFilterOpOperator {
|
|
184
184
|
And = 0,
|
185
185
|
Or = 1
|
186
186
|
}
|
187
|
-
export
|
187
|
+
export type IIoRestorecommerceResourcebaseFieldFilter = {
|
188
188
|
name?: InputMaybe<Scalars['String']>;
|
189
189
|
include?: InputMaybe<Scalars['Boolean']>;
|
190
190
|
};
|
191
|
-
export
|
191
|
+
export type IGoogleProtobufAny = {
|
192
192
|
typeUrl?: InputMaybe<Scalars['String']>;
|
193
193
|
value?: InputMaybe<Scalars['GoogleProtobufAnyValue']>;
|
194
194
|
};
|
195
|
-
export
|
195
|
+
export type IIoRestorecommerceResourcebaseSearch = {
|
196
196
|
search?: InputMaybe<Scalars['String']>;
|
197
197
|
fields?: InputMaybe<Array<Scalars['String']>>;
|
198
198
|
caseSensitive?: InputMaybe<Scalars['Boolean']>;
|
199
199
|
};
|
200
|
-
export
|
200
|
+
export type Mutation = {
|
201
201
|
__typename?: 'Mutation';
|
202
202
|
notification: NotificationMutation;
|
203
203
|
};
|
204
|
-
export
|
204
|
+
export type NotificationMutation = {
|
205
205
|
__typename?: 'NotificationMutation';
|
206
206
|
notification: NotificationNotificationMutation;
|
207
207
|
};
|
208
|
-
export
|
208
|
+
export type NotificationNotificationMutation = {
|
209
209
|
__typename?: 'NotificationNotificationMutation';
|
210
210
|
Mutate?: Maybe<ProtoIoRestorecommerceNotificationNotificationListResponse>;
|
211
211
|
Delete?: Maybe<ProtoIoRestorecommerceResourcebaseDeleteResponse>;
|
212
212
|
};
|
213
|
-
export
|
213
|
+
export type NotificationNotificationMutationMutateArgs = {
|
214
214
|
input: IIoRestorecommerceNotificationNotificationList;
|
215
215
|
};
|
216
|
-
export
|
216
|
+
export type NotificationNotificationMutationDeleteArgs = {
|
217
217
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
218
218
|
};
|
219
|
-
export
|
219
|
+
export type IIoRestorecommerceNotificationNotificationList = {
|
220
220
|
items?: InputMaybe<Array<IIoRestorecommerceNotificationNotification>>;
|
221
221
|
totalCount?: InputMaybe<Scalars['Int']>;
|
222
222
|
mode?: InputMaybe<ModeType>;
|
223
223
|
/** target scope */
|
224
224
|
scope?: InputMaybe<Scalars['String']>;
|
225
225
|
};
|
226
|
-
export
|
226
|
+
export type IIoRestorecommerceNotificationNotification = {
|
227
227
|
id?: InputMaybe<Scalars['String']>;
|
228
228
|
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
229
229
|
name?: InputMaybe<Scalars['String']>;
|
@@ -234,19 +234,19 @@ export declare type IIoRestorecommerceNotificationNotification = {
|
|
234
234
|
subjectTemplate?: InputMaybe<Scalars['String']>;
|
235
235
|
bodyTemplate?: InputMaybe<Scalars['String']>;
|
236
236
|
};
|
237
|
-
export
|
237
|
+
export type IIoRestorecommerceMetaMeta = {
|
238
238
|
created?: InputMaybe<Scalars['Float']>;
|
239
239
|
modified?: InputMaybe<Scalars['Float']>;
|
240
240
|
modifiedBy?: InputMaybe<Scalars['String']>;
|
241
241
|
owner?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
242
242
|
acl?: InputMaybe<Array<IIoRestorecommerceAttributeAttributeObj>>;
|
243
243
|
};
|
244
|
-
export
|
244
|
+
export type IIoRestorecommerceAttributeAttribute = {
|
245
245
|
id?: InputMaybe<Scalars['String']>;
|
246
246
|
value?: InputMaybe<Scalars['String']>;
|
247
247
|
attribute?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
248
248
|
};
|
249
|
-
export
|
249
|
+
export type IIoRestorecommerceAttributeAttributeObj = {
|
250
250
|
attribute?: InputMaybe<IIoRestorecommerceAttributeAttribute>;
|
251
251
|
};
|
252
252
|
export declare enum ModeType {
|
@@ -254,16 +254,16 @@ export declare enum ModeType {
|
|
254
254
|
Update = "UPDATE",
|
255
255
|
Upsert = "UPSERT"
|
256
256
|
}
|
257
|
-
export
|
257
|
+
export type ProtoIoRestorecommerceResourcebaseDeleteResponse = {
|
258
258
|
__typename?: 'ProtoIoRestorecommerceResourcebaseDeleteResponse';
|
259
259
|
details?: Maybe<IoRestorecommerceResourcebaseDeleteResponse>;
|
260
260
|
};
|
261
|
-
export
|
261
|
+
export type IoRestorecommerceResourcebaseDeleteResponse = {
|
262
262
|
__typename?: 'IoRestorecommerceResourcebaseDeleteResponse';
|
263
263
|
status?: Maybe<Array<IoRestorecommerceStatusStatus>>;
|
264
264
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
265
265
|
};
|
266
|
-
export
|
266
|
+
export type IIoRestorecommerceResourcebaseDeleteRequest = {
|
267
267
|
collection?: InputMaybe<Scalars['Boolean']>;
|
268
268
|
ids?: InputMaybe<Array<Scalars['String']>>;
|
269
269
|
view?: InputMaybe<Array<Scalars['String']>>;
|
@@ -271,26 +271,30 @@ export declare type IIoRestorecommerceResourcebaseDeleteRequest = {
|
|
271
271
|
/** target scope */
|
272
272
|
scope?: InputMaybe<Scalars['String']>;
|
273
273
|
};
|
274
|
-
export
|
274
|
+
export type Subscription = {
|
275
275
|
__typename?: 'Subscription';
|
276
276
|
orderingOrders?: Maybe<SubscriptionOutput>;
|
277
|
-
|
277
|
+
catalogProducts?: Maybe<SubscriptionOutput>;
|
278
|
+
fulfillmentFulfillments?: Maybe<SubscriptionOutput>;
|
278
279
|
fulfillmentFulfillmentCouriers?: Maybe<SubscriptionOutput>;
|
279
|
-
|
280
|
+
fulfillmentFulfillment_products?: Maybe<SubscriptionOutput>;
|
280
281
|
};
|
281
|
-
export
|
282
|
+
export type SubscriptionOrderingOrdersArgs = {
|
282
283
|
action?: InputMaybe<SubscriptionAction>;
|
283
284
|
};
|
284
|
-
export
|
285
|
+
export type SubscriptionCatalogProductsArgs = {
|
285
286
|
action?: InputMaybe<SubscriptionAction>;
|
286
287
|
};
|
287
|
-
export
|
288
|
+
export type SubscriptionFulfillmentFulfillmentsArgs = {
|
288
289
|
action?: InputMaybe<SubscriptionAction>;
|
289
290
|
};
|
290
|
-
export
|
291
|
+
export type SubscriptionFulfillmentFulfillmentCouriersArgs = {
|
291
292
|
action?: InputMaybe<SubscriptionAction>;
|
292
293
|
};
|
293
|
-
export
|
294
|
+
export type SubscriptionFulfillmentFulfillment_ProductsArgs = {
|
295
|
+
action?: InputMaybe<SubscriptionAction>;
|
296
|
+
};
|
297
|
+
export type SubscriptionOutput = {
|
294
298
|
__typename?: 'SubscriptionOutput';
|
295
299
|
id?: Maybe<Scalars['String']>;
|
296
300
|
};
|
@@ -299,16 +303,16 @@ export declare enum SubscriptionAction {
|
|
299
303
|
Updated = "UPDATED",
|
300
304
|
Deleted = "DELETED"
|
301
305
|
}
|
302
|
-
export
|
303
|
-
export
|
304
|
-
export
|
305
|
-
export
|
306
|
+
export type WithIndex<TObject> = TObject & Record<string, any>;
|
307
|
+
export type ResolversObject<TObject> = WithIndex<TObject>;
|
308
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
309
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
306
310
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
307
311
|
};
|
308
|
-
export
|
309
|
-
export
|
310
|
-
export
|
311
|
-
export
|
312
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
313
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
314
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
315
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
312
316
|
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
313
317
|
subscribe: SubscriptionSubscribeFn<{
|
314
318
|
[key in TKey]: TResult;
|
@@ -321,14 +325,14 @@ export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
321
325
|
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
322
326
|
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
323
327
|
}
|
324
|
-
export
|
325
|
-
export
|
326
|
-
export
|
327
|
-
export
|
328
|
-
export
|
329
|
-
export
|
328
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
329
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
330
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
331
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
332
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
333
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
330
334
|
/** Mapping between all available schema types and the resolvers types */
|
331
|
-
export
|
335
|
+
export type ResolversTypes = ResolversObject<{
|
332
336
|
Query: ResolverTypeWrapper<{}>;
|
333
337
|
NotificationQuery: ResolverTypeWrapper<NotificationQuery>;
|
334
338
|
NotificationNotificationQuery: ResolverTypeWrapper<NotificationNotificationQuery>;
|
@@ -379,7 +383,7 @@ export declare type ResolversTypes = ResolversObject<{
|
|
379
383
|
SubscriptionAction: SubscriptionAction;
|
380
384
|
}>;
|
381
385
|
/** Mapping between all available schema types and the resolvers parents */
|
382
|
-
export
|
386
|
+
export type ResolversParentTypes = ResolversObject<{
|
383
387
|
Query: {};
|
384
388
|
NotificationQuery: NotificationQuery;
|
385
389
|
NotificationNotificationQuery: NotificationNotificationQuery;
|
@@ -420,33 +424,33 @@ export declare type ResolversParentTypes = ResolversObject<{
|
|
420
424
|
Subscription: {};
|
421
425
|
SubscriptionOutput: SubscriptionOutput;
|
422
426
|
}>;
|
423
|
-
export
|
427
|
+
export type QueryResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = ResolversObject<{
|
424
428
|
notification?: Resolver<ResolversTypes['NotificationQuery'], ParentType, ContextType>;
|
425
429
|
}>;
|
426
|
-
export
|
430
|
+
export type NotificationQueryResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['NotificationQuery'] = ResolversParentTypes['NotificationQuery']> = ResolversObject<{
|
427
431
|
notification?: Resolver<ResolversTypes['NotificationNotificationQuery'], ParentType, ContextType>;
|
428
432
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
429
433
|
}>;
|
430
|
-
export
|
434
|
+
export type NotificationNotificationQueryResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['NotificationNotificationQuery'] = ResolversParentTypes['NotificationNotificationQuery']> = ResolversObject<{
|
431
435
|
Read?: Resolver<Maybe<ResolversTypes['ProtoIoRestorecommerceNotificationNotificationListResponse']>, ParentType, ContextType, RequireFields<NotificationNotificationQueryReadArgs, 'input'>>;
|
432
436
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
433
437
|
}>;
|
434
|
-
export
|
438
|
+
export type ProtoIoRestorecommerceNotificationNotificationListResponseResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['ProtoIoRestorecommerceNotificationNotificationListResponse'] = ResolversParentTypes['ProtoIoRestorecommerceNotificationNotificationListResponse']> = ResolversObject<{
|
435
439
|
details?: Resolver<Maybe<ResolversTypes['IoRestorecommerceNotificationNotificationListResponse']>, ParentType, ContextType>;
|
436
440
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
437
441
|
}>;
|
438
|
-
export
|
442
|
+
export type IoRestorecommerceNotificationNotificationListResponseResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceNotificationNotificationListResponse'] = ResolversParentTypes['IoRestorecommerceNotificationNotificationListResponse']> = ResolversObject<{
|
439
443
|
items?: Resolver<Maybe<Array<ResolversTypes['IoRestorecommerceNotificationNotificationResponse']>>, ParentType, ContextType>;
|
440
444
|
totalCount?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
441
445
|
operationStatus?: Resolver<Maybe<ResolversTypes['IoRestorecommerceStatusOperationStatus']>, ParentType, ContextType>;
|
442
446
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
443
447
|
}>;
|
444
|
-
export
|
448
|
+
export type IoRestorecommerceNotificationNotificationResponseResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceNotificationNotificationResponse'] = ResolversParentTypes['IoRestorecommerceNotificationNotificationResponse']> = ResolversObject<{
|
445
449
|
items?: Resolver<Maybe<ResolversTypes['IoRestorecommerceNotificationNotification']>, ParentType, ContextType>;
|
446
450
|
status?: Resolver<Maybe<ResolversTypes['IoRestorecommerceStatusStatus']>, ParentType, ContextType>;
|
447
451
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
448
452
|
}>;
|
449
|
-
export
|
453
|
+
export type IoRestorecommerceNotificationNotificationResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceNotificationNotification'] = ResolversParentTypes['IoRestorecommerceNotificationNotification']> = ResolversObject<{
|
450
454
|
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
451
455
|
meta?: Resolver<Maybe<ResolversTypes['IoRestorecommerceMetaMeta']>, ParentType, ContextType>;
|
452
456
|
name?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
@@ -458,7 +462,7 @@ export declare type IoRestorecommerceNotificationNotificationResolvers<ContextTy
|
|
458
462
|
bodyTemplate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
459
463
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
460
464
|
}>;
|
461
|
-
export
|
465
|
+
export type IoRestorecommerceMetaMetaResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceMetaMeta'] = ResolversParentTypes['IoRestorecommerceMetaMeta']> = ResolversObject<{
|
462
466
|
created?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
463
467
|
modified?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
|
464
468
|
modifiedBy?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
@@ -466,33 +470,33 @@ export declare type IoRestorecommerceMetaMetaResolvers<ContextType = Notificatio
|
|
466
470
|
acl?: Resolver<Maybe<Array<ResolversTypes['IoRestorecommerceAttributeAttributeObj']>>, ParentType, ContextType>;
|
467
471
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
468
472
|
}>;
|
469
|
-
export
|
473
|
+
export type IoRestorecommerceAttributeAttributeResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceAttributeAttribute'] = ResolversParentTypes['IoRestorecommerceAttributeAttribute']> = ResolversObject<{
|
470
474
|
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
471
475
|
value?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
472
476
|
attribute?: Resolver<Maybe<Array<ResolversTypes['IoRestorecommerceAttributeAttribute']>>, ParentType, ContextType>;
|
473
477
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
474
478
|
}>;
|
475
|
-
export
|
479
|
+
export type IoRestorecommerceAttributeAttributeObjResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceAttributeAttributeObj'] = ResolversParentTypes['IoRestorecommerceAttributeAttributeObj']> = ResolversObject<{
|
476
480
|
attribute?: Resolver<Maybe<ResolversTypes['IoRestorecommerceAttributeAttribute']>, ParentType, ContextType>;
|
477
481
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
478
482
|
}>;
|
479
|
-
export
|
483
|
+
export type IoRestorecommerceStatusStatusResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceStatusStatus'] = ResolversParentTypes['IoRestorecommerceStatusStatus']> = ResolversObject<{
|
480
484
|
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
481
485
|
code?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
482
486
|
message?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
483
487
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
484
488
|
}>;
|
485
|
-
export
|
489
|
+
export type IoRestorecommerceStatusOperationStatusResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceStatusOperationStatus'] = ResolversParentTypes['IoRestorecommerceStatusOperationStatus']> = ResolversObject<{
|
486
490
|
code?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
487
491
|
message?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
488
492
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
489
493
|
}>;
|
490
|
-
export
|
494
|
+
export type IoRestorecommerceResourcebaseSortSortOrderResolvers = {
|
491
495
|
UNSORTED: 0;
|
492
496
|
ASCENDING: 1;
|
493
497
|
DESCENDING: 2;
|
494
498
|
};
|
495
|
-
export
|
499
|
+
export type IoRestorecommerceResourcebaseFilterOperationResolvers = {
|
496
500
|
eq: 0;
|
497
501
|
lt: 1;
|
498
502
|
lte: 2;
|
@@ -503,14 +507,14 @@ export declare type IoRestorecommerceResourcebaseFilterOperationResolvers = {
|
|
503
507
|
in: 7;
|
504
508
|
neq: 8;
|
505
509
|
};
|
506
|
-
export
|
510
|
+
export type IoRestorecommerceResourcebaseFilterValueTypeResolvers = {
|
507
511
|
STRING: 0;
|
508
512
|
NUMBER: 1;
|
509
513
|
BOOLEAN: 2;
|
510
514
|
DATE: 3;
|
511
515
|
ARRAY: 4;
|
512
516
|
};
|
513
|
-
export
|
517
|
+
export type IoRestorecommerceFilterFilterOperationResolvers = {
|
514
518
|
eq: 0;
|
515
519
|
lt: 1;
|
516
520
|
lte: 2;
|
@@ -521,56 +525,57 @@ export declare type IoRestorecommerceFilterFilterOperationResolvers = {
|
|
521
525
|
in: 7;
|
522
526
|
neq: 8;
|
523
527
|
};
|
524
|
-
export
|
528
|
+
export type IoRestorecommerceFilterFilterValueTypeResolvers = {
|
525
529
|
STRING: 0;
|
526
530
|
NUMBER: 1;
|
527
531
|
BOOLEAN: 2;
|
528
532
|
DATE: 3;
|
529
533
|
ARRAY: 4;
|
530
534
|
};
|
531
|
-
export
|
535
|
+
export type IoRestorecommerceFilterFilterOpOperatorResolvers = {
|
532
536
|
and: 0;
|
533
537
|
or: 1;
|
534
538
|
};
|
535
|
-
export
|
539
|
+
export type IoRestorecommerceResourcebaseFilterOpOperatorResolvers = {
|
536
540
|
and: 0;
|
537
541
|
or: 1;
|
538
542
|
};
|
539
543
|
export interface GoogleProtobufAnyValueScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['GoogleProtobufAnyValue'], any> {
|
540
544
|
name: 'GoogleProtobufAnyValue';
|
541
545
|
}
|
542
|
-
export
|
546
|
+
export type MutationResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = ResolversObject<{
|
543
547
|
notification?: Resolver<ResolversTypes['NotificationMutation'], ParentType, ContextType>;
|
544
548
|
}>;
|
545
|
-
export
|
549
|
+
export type NotificationMutationResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['NotificationMutation'] = ResolversParentTypes['NotificationMutation']> = ResolversObject<{
|
546
550
|
notification?: Resolver<ResolversTypes['NotificationNotificationMutation'], ParentType, ContextType>;
|
547
551
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
548
552
|
}>;
|
549
|
-
export
|
553
|
+
export type NotificationNotificationMutationResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['NotificationNotificationMutation'] = ResolversParentTypes['NotificationNotificationMutation']> = ResolversObject<{
|
550
554
|
Mutate?: Resolver<Maybe<ResolversTypes['ProtoIoRestorecommerceNotificationNotificationListResponse']>, ParentType, ContextType, RequireFields<NotificationNotificationMutationMutateArgs, 'input'>>;
|
551
555
|
Delete?: Resolver<Maybe<ResolversTypes['ProtoIoRestorecommerceResourcebaseDeleteResponse']>, ParentType, ContextType, RequireFields<NotificationNotificationMutationDeleteArgs, 'input'>>;
|
552
556
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
553
557
|
}>;
|
554
|
-
export
|
558
|
+
export type ProtoIoRestorecommerceResourcebaseDeleteResponseResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['ProtoIoRestorecommerceResourcebaseDeleteResponse'] = ResolversParentTypes['ProtoIoRestorecommerceResourcebaseDeleteResponse']> = ResolversObject<{
|
555
559
|
details?: Resolver<Maybe<ResolversTypes['IoRestorecommerceResourcebaseDeleteResponse']>, ParentType, ContextType>;
|
556
560
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
557
561
|
}>;
|
558
|
-
export
|
562
|
+
export type IoRestorecommerceResourcebaseDeleteResponseResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['IoRestorecommerceResourcebaseDeleteResponse'] = ResolversParentTypes['IoRestorecommerceResourcebaseDeleteResponse']> = ResolversObject<{
|
559
563
|
status?: Resolver<Maybe<Array<ResolversTypes['IoRestorecommerceStatusStatus']>>, ParentType, ContextType>;
|
560
564
|
operationStatus?: Resolver<Maybe<ResolversTypes['IoRestorecommerceStatusOperationStatus']>, ParentType, ContextType>;
|
561
565
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
562
566
|
}>;
|
563
|
-
export
|
567
|
+
export type SubscriptionResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['Subscription'] = ResolversParentTypes['Subscription']> = ResolversObject<{
|
564
568
|
orderingOrders?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "orderingOrders", ParentType, ContextType, Partial<SubscriptionOrderingOrdersArgs>>;
|
565
|
-
|
569
|
+
catalogProducts?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "catalogProducts", ParentType, ContextType, Partial<SubscriptionCatalogProductsArgs>>;
|
570
|
+
fulfillmentFulfillments?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillments", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillmentsArgs>>;
|
566
571
|
fulfillmentFulfillmentCouriers?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillmentCouriers", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillmentCouriersArgs>>;
|
567
|
-
|
572
|
+
fulfillmentFulfillment_products?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillment_products", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillment_ProductsArgs>>;
|
568
573
|
}>;
|
569
|
-
export
|
574
|
+
export type SubscriptionOutputResolvers<ContextType = NotificationContext, ParentType extends ResolversParentTypes['SubscriptionOutput'] = ResolversParentTypes['SubscriptionOutput']> = ResolversObject<{
|
570
575
|
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
571
576
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
572
577
|
}>;
|
573
|
-
export
|
578
|
+
export type Resolvers<ContextType = NotificationContext> = ResolversObject<{
|
574
579
|
Query?: QueryResolvers<ContextType>;
|
575
580
|
NotificationQuery?: NotificationQueryResolvers<ContextType>;
|
576
581
|
NotificationNotificationQuery?: NotificationNotificationQueryResolvers<ContextType>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RestoreCommerceGrpcClient } from '@restorecommerce/rc-grpc-clients';
|
2
|
-
import {
|
2
|
+
import { NotificationServiceClient } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/notification';
|
3
3
|
import { GrpcClientConfig } from '@restorecommerce/grpc-client';
|
4
4
|
export declare class NotificationSrvGrpcClient extends RestoreCommerceGrpcClient {
|
5
|
-
readonly service:
|
5
|
+
readonly service: NotificationServiceClient;
|
6
6
|
constructor(address: string, cfg: GrpcClientConfig);
|
7
7
|
}
|
@@ -6,7 +6,7 @@ const notification_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/
|
|
6
6
|
class NotificationSrvGrpcClient extends rc_grpc_clients_1.RestoreCommerceGrpcClient {
|
7
7
|
constructor(address, cfg) {
|
8
8
|
super(address, cfg);
|
9
|
-
this.service = this.createClient(cfg, notification_1.
|
9
|
+
this.service = this.createClient(cfg, notification_1.NotificationServiceDefinition, this.channel);
|
10
10
|
}
|
11
11
|
}
|
12
12
|
exports.NotificationSrvGrpcClient = NotificationSrvGrpcClient;
|
@@ -12,5 +12,5 @@ export interface NotificationContext extends FacadeContext {
|
|
12
12
|
client: NotificationSrvGrpcClient;
|
13
13
|
};
|
14
14
|
}
|
15
|
-
export
|
15
|
+
export type NotificationModule = FacadeModule<NotificationContext>;
|
16
16
|
export declare const namespace = "notification";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FederatedOrderingSchema = void 0;
|
4
|
-
const
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
const federation_1 = require("@apollo/federation");
|
6
6
|
const schema_1 = require("./schema");
|
7
7
|
const interfaces_1 = require("../interfaces");
|
@@ -11,7 +11,7 @@ const graphql_1 = require("graphql");
|
|
11
11
|
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
12
12
|
// See https://github.com/apollographql/apollo-server/pull/4310
|
13
13
|
const FederatedOrderingSchema = (cfg) => (0, federation_1.buildSubgraphSchema)({
|
14
|
-
typeDefs: (0,
|
14
|
+
typeDefs: (0, graphql_tag_1.default)((0, graphql_1.printSchema)((0, schema_1.schema)(cfg))),
|
15
15
|
resolvers: (0, protos_1.generateSubServiceResolvers)(types_1.subServices, cfg, interfaces_1.namespace)
|
16
16
|
});
|
17
17
|
exports.FederatedOrderingSchema = FederatedOrderingSchema;
|