@restorecommerce/facade 1.1.0 → 1.1.2
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 +22 -0
- package/dist/index.d.ts +2 -2
- package/dist/modules/access-control/gql/schema.generated.d.ts +54 -9
- package/dist/modules/access-control/gql/schema.generated.js +7 -1
- package/dist/modules/catalog/gql/schema.generated.d.ts +37 -7
- package/dist/modules/catalog/gql/schema.generated.js +7 -1
- package/dist/modules/fulfillment/gql/schema.generated.d.ts +567 -224
- package/dist/modules/fulfillment/gql/schema.generated.js +13 -6
- package/dist/modules/fulfillment/gql/types.js +3 -1
- package/dist/modules/identity/gql/schema.generated.d.ts +28 -8
- package/dist/modules/indexing/gql/schema.generated.d.ts +45 -0
- package/dist/modules/indexing/gql/schema.generated.js +7 -0
- package/dist/modules/invoicing/gql/schema.generated.d.ts +95 -16
- package/dist/modules/invoicing/gql/schema.generated.js +7 -1
- package/dist/modules/notification/gql/schema.generated.d.ts +52 -7
- package/dist/modules/notification/gql/schema.generated.js +7 -1
- package/dist/modules/ordering/gql/schema.generated.d.ts +265 -202
- package/dist/modules/ordering/gql/schema.generated.js +18 -1
- package/dist/modules/ostorage/gql/schema.generated.d.ts +48 -3
- package/dist/modules/ostorage/gql/schema.generated.js +7 -1
- package/dist/modules/payment/gql/schema.generated.d.ts +31 -1
- package/dist/modules/payment/gql/schema.generated.js +7 -1
- package/dist/modules/resource/gql/schema.generated.d.ts +123 -21
- package/dist/modules/resource/gql/schema.generated.js +7 -1
- package/dist/modules/scheduling/gql/schema.generated.d.ts +48 -3
- package/dist/modules/scheduling/gql/schema.generated.js +7 -1
- package/package.json +41 -41
- package/LICENSE +0 -19
@@ -261,6 +261,34 @@ export declare type IIoRestorecommerceResourcebaseDeleteRequest = {
|
|
261
261
|
/** target scope */
|
262
262
|
scope?: InputMaybe<Scalars['String']>;
|
263
263
|
};
|
264
|
+
export declare type Subscription = {
|
265
|
+
__typename?: 'Subscription';
|
266
|
+
orderingOrders?: Maybe<SubscriptionOutput>;
|
267
|
+
fulfillmentFulfillment?: Maybe<SubscriptionOutput>;
|
268
|
+
fulfillmentFulfillmentCouriers?: Maybe<SubscriptionOutput>;
|
269
|
+
fulfillmentFulfillmentProduct?: Maybe<SubscriptionOutput>;
|
270
|
+
};
|
271
|
+
export declare type SubscriptionOrderingOrdersArgs = {
|
272
|
+
action?: InputMaybe<SubscriptionAction>;
|
273
|
+
};
|
274
|
+
export declare type SubscriptionFulfillmentFulfillmentArgs = {
|
275
|
+
action?: InputMaybe<SubscriptionAction>;
|
276
|
+
};
|
277
|
+
export declare type SubscriptionFulfillmentFulfillmentCouriersArgs = {
|
278
|
+
action?: InputMaybe<SubscriptionAction>;
|
279
|
+
};
|
280
|
+
export declare type SubscriptionFulfillmentFulfillmentProductArgs = {
|
281
|
+
action?: InputMaybe<SubscriptionAction>;
|
282
|
+
};
|
283
|
+
export declare type SubscriptionOutput = {
|
284
|
+
__typename?: 'SubscriptionOutput';
|
285
|
+
id?: Maybe<Scalars['String']>;
|
286
|
+
};
|
287
|
+
export declare enum SubscriptionAction {
|
288
|
+
Created = "CREATED",
|
289
|
+
Updated = "UPDATED",
|
290
|
+
Deleted = "DELETED"
|
291
|
+
}
|
264
292
|
export declare type WithIndex<TObject> = TObject & Record<string, any>;
|
265
293
|
export declare type ResolversObject<TObject> = WithIndex<TObject>;
|
266
294
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
@@ -336,6 +364,9 @@ export declare type ResolversTypes = ResolversObject<{
|
|
336
364
|
ProtoIoRestorecommerceResourcebaseDeleteResponse: ResolverTypeWrapper<ProtoIoRestorecommerceResourcebaseDeleteResponse>;
|
337
365
|
IoRestorecommerceResourcebaseDeleteResponse: ResolverTypeWrapper<IoRestorecommerceResourcebaseDeleteResponse>;
|
338
366
|
IIoRestorecommerceResourcebaseDeleteRequest: IIoRestorecommerceResourcebaseDeleteRequest;
|
367
|
+
Subscription: ResolverTypeWrapper<{}>;
|
368
|
+
SubscriptionOutput: ResolverTypeWrapper<SubscriptionOutput>;
|
369
|
+
SubscriptionAction: SubscriptionAction;
|
339
370
|
}>;
|
340
371
|
/** Mapping between all available schema types and the resolvers parents */
|
341
372
|
export declare type ResolversParentTypes = ResolversObject<{
|
@@ -380,6 +411,8 @@ export declare type ResolversParentTypes = ResolversObject<{
|
|
380
411
|
ProtoIoRestorecommerceResourcebaseDeleteResponse: ProtoIoRestorecommerceResourcebaseDeleteResponse;
|
381
412
|
IoRestorecommerceResourcebaseDeleteResponse: IoRestorecommerceResourcebaseDeleteResponse;
|
382
413
|
IIoRestorecommerceResourcebaseDeleteRequest: IIoRestorecommerceResourcebaseDeleteRequest;
|
414
|
+
Subscription: {};
|
415
|
+
SubscriptionOutput: SubscriptionOutput;
|
383
416
|
}>;
|
384
417
|
export declare type QueryResolvers<ContextType = SchedulingContext, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = ResolversObject<{
|
385
418
|
scheduling?: Resolver<ResolversTypes['SchedulingQuery'], ParentType, ContextType>;
|
@@ -458,7 +491,7 @@ export declare type IoRestorecommerceJobJobOptionsResolvers<ContextType = Schedu
|
|
458
491
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
459
492
|
}>;
|
460
493
|
export declare type IoRestorecommerceJobJobOptionsPriorityResolvers = {
|
461
|
-
NORMAL:
|
494
|
+
NORMAL: 0;
|
462
495
|
LOW: 10;
|
463
496
|
MEDIUM: -5;
|
464
497
|
HIGH: -10;
|
@@ -470,7 +503,7 @@ export declare type IoRestorecommerceJobBackoffResolvers<ContextType = Schedulin
|
|
470
503
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
471
504
|
}>;
|
472
505
|
export declare type IoRestorecommerceJobBackoffTypeResolvers = {
|
473
|
-
FIXED:
|
506
|
+
FIXED: 0;
|
474
507
|
EXPONENTIAL: 1;
|
475
508
|
};
|
476
509
|
export declare type IoRestorecommerceJobRepeatResolvers<ContextType = SchedulingContext, ParentType extends ResolversParentTypes['IoRestorecommerceJobRepeat'] = ResolversParentTypes['IoRestorecommerceJobRepeat']> = ResolversObject<{
|
@@ -495,7 +528,7 @@ export declare type IoRestorecommerceStatusOperationStatusResolvers<ContextType
|
|
495
528
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
496
529
|
}>;
|
497
530
|
export declare type IoRestorecommerceJobJobReadRequestSortOrderResolvers = {
|
498
|
-
UNSORTED:
|
531
|
+
UNSORTED: 0;
|
499
532
|
ASCENDING: 1;
|
500
533
|
DESCENDING: 2;
|
501
534
|
};
|
@@ -520,6 +553,16 @@ export declare type IoRestorecommerceResourcebaseDeleteResponseResolvers<Context
|
|
520
553
|
operationStatus?: Resolver<Maybe<ResolversTypes['IoRestorecommerceStatusOperationStatus']>, ParentType, ContextType>;
|
521
554
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
522
555
|
}>;
|
556
|
+
export declare type SubscriptionResolvers<ContextType = SchedulingContext, ParentType extends ResolversParentTypes['Subscription'] = ResolversParentTypes['Subscription']> = ResolversObject<{
|
557
|
+
orderingOrders?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "orderingOrders", ParentType, ContextType, Partial<SubscriptionOrderingOrdersArgs>>;
|
558
|
+
fulfillmentFulfillment?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillment", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillmentArgs>>;
|
559
|
+
fulfillmentFulfillmentCouriers?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillmentCouriers", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillmentCouriersArgs>>;
|
560
|
+
fulfillmentFulfillmentProduct?: SubscriptionResolver<Maybe<ResolversTypes['SubscriptionOutput']>, "fulfillmentFulfillmentProduct", ParentType, ContextType, Partial<SubscriptionFulfillmentFulfillmentProductArgs>>;
|
561
|
+
}>;
|
562
|
+
export declare type SubscriptionOutputResolvers<ContextType = SchedulingContext, ParentType extends ResolversParentTypes['SubscriptionOutput'] = ResolversParentTypes['SubscriptionOutput']> = ResolversObject<{
|
563
|
+
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
564
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
565
|
+
}>;
|
523
566
|
export declare type Resolvers<ContextType = SchedulingContext> = ResolversObject<{
|
524
567
|
Query?: QueryResolvers<ContextType>;
|
525
568
|
SchedulingQuery?: SchedulingQueryResolvers<ContextType>;
|
@@ -547,4 +590,6 @@ export declare type Resolvers<ContextType = SchedulingContext> = ResolversObject
|
|
547
590
|
SchedulingJobMutation?: SchedulingJobMutationResolvers<ContextType>;
|
548
591
|
ProtoIoRestorecommerceResourcebaseDeleteResponse?: ProtoIoRestorecommerceResourcebaseDeleteResponseResolvers<ContextType>;
|
549
592
|
IoRestorecommerceResourcebaseDeleteResponse?: IoRestorecommerceResourcebaseDeleteResponseResolvers<ContextType>;
|
593
|
+
Subscription?: SubscriptionResolvers<ContextType>;
|
594
|
+
SubscriptionOutput?: SubscriptionOutputResolvers<ContextType>;
|
550
595
|
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ModeType = exports.IoRestorecommerceJobJobReadRequestSortOrder = exports.IoRestorecommerceJobBackoffType = exports.IoRestorecommerceJobJobOptionsPriority = void 0;
|
3
|
+
exports.SubscriptionAction = exports.ModeType = exports.IoRestorecommerceJobJobReadRequestSortOrder = exports.IoRestorecommerceJobBackoffType = exports.IoRestorecommerceJobJobOptionsPriority = void 0;
|
4
4
|
var IoRestorecommerceJobJobOptionsPriority;
|
5
5
|
(function (IoRestorecommerceJobJobOptionsPriority) {
|
6
6
|
IoRestorecommerceJobJobOptionsPriority[IoRestorecommerceJobJobOptionsPriority["Normal"] = 0] = "Normal";
|
@@ -26,3 +26,9 @@ var ModeType;
|
|
26
26
|
ModeType["Update"] = "UPDATE";
|
27
27
|
ModeType["Upsert"] = "UPSERT";
|
28
28
|
})(ModeType = exports.ModeType || (exports.ModeType = {}));
|
29
|
+
var SubscriptionAction;
|
30
|
+
(function (SubscriptionAction) {
|
31
|
+
SubscriptionAction["Created"] = "CREATED";
|
32
|
+
SubscriptionAction["Updated"] = "UPDATED";
|
33
|
+
SubscriptionAction["Deleted"] = "DELETED";
|
34
|
+
})(SubscriptionAction = exports.SubscriptionAction || (exports.SubscriptionAction = {}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@restorecommerce/facade",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"description": "Facade for Restorecommerce microservices",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -19,85 +19,85 @@
|
|
19
19
|
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@apollo/federation": "^0.
|
23
|
-
"@apollo/gateway": "^2.
|
22
|
+
"@apollo/federation": "^0.37.1",
|
23
|
+
"@apollo/gateway": "^2.1.3",
|
24
24
|
"@cloudnative/health": "^2.1.2",
|
25
|
-
"@grpc/grpc-js": "^1.
|
26
|
-
"@grpc/proto-loader": "^0.
|
27
|
-
"@restorecommerce/grpc-client": "^1.0.
|
28
|
-
"@restorecommerce/kafka-client": "^1.0.
|
29
|
-
"@restorecommerce/logger": "^1.1
|
30
|
-
"@restorecommerce/rc-grpc-clients": "^
|
31
|
-
"@restorecommerce/service-config": "^1.0.
|
32
|
-
"apollo-server-core": "^3.
|
33
|
-
"apollo-server-koa": "^3.
|
25
|
+
"@grpc/grpc-js": "^1.7.1",
|
26
|
+
"@grpc/proto-loader": "^0.7.3",
|
27
|
+
"@restorecommerce/grpc-client": "^1.0.3",
|
28
|
+
"@restorecommerce/kafka-client": "^1.0.4",
|
29
|
+
"@restorecommerce/logger": "^1.2.1",
|
30
|
+
"@restorecommerce/rc-grpc-clients": "^2.0.1",
|
31
|
+
"@restorecommerce/service-config": "^1.0.3",
|
32
|
+
"apollo-server-core": "^3.10.3",
|
33
|
+
"apollo-server-koa": "^3.10.3",
|
34
34
|
"array.prototype.flat": "^1.3.0",
|
35
35
|
"co": "^4.6.0",
|
36
36
|
"debug": "^4.3.4",
|
37
37
|
"federation-subscription-tools": "^0.2.1",
|
38
38
|
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
39
39
|
"graphql-upload": "^13.0.0",
|
40
|
-
"graphql-ws": "^5.
|
40
|
+
"graphql-ws": "^5.11.2",
|
41
41
|
"handlebars": "^4.7.7",
|
42
|
-
"jose": "^4.
|
42
|
+
"jose": "^4.10.0",
|
43
43
|
"koa": "^2.13.4",
|
44
44
|
"koa-body": "^5.0.0",
|
45
45
|
"koa-compose": "^4.1.0",
|
46
46
|
"koa-helmet": "^6.1.0",
|
47
47
|
"koa-mount": "^4.0.0",
|
48
|
-
"koa-router": "^
|
48
|
+
"koa-router": "^12.0.0",
|
49
49
|
"koa-websocket": "^7.0.0",
|
50
50
|
"lodash": "^4.17.21",
|
51
|
-
"lru-cache": "^7.
|
51
|
+
"lru-cache": "^7.14.0",
|
52
52
|
"nanoid": "^3.3.4",
|
53
53
|
"node-fetch": "^2.6.7",
|
54
|
-
"oauth": "^0.
|
55
|
-
"oidc-provider": "^7.
|
54
|
+
"oauth": "^0.10.0",
|
55
|
+
"oidc-provider": "^7.12.0",
|
56
56
|
"querystring": "^0.2.1",
|
57
|
-
"request-ip": "^
|
58
|
-
"rxjs": "^7.5.
|
57
|
+
"request-ip": "^3.3.0",
|
58
|
+
"rxjs": "^7.5.7",
|
59
59
|
"ts-proto-descriptors": "^1.6.0",
|
60
60
|
"useragent": "^2.3.0",
|
61
|
-
"uuid": "^
|
62
|
-
"winston": "^3.8.
|
63
|
-
"ws": "^8.
|
61
|
+
"uuid": "^9.0.0",
|
62
|
+
"winston": "^3.8.2",
|
63
|
+
"ws": "^8.9.0"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
|
-
"@graphql-codegen/core": "^2.
|
67
|
-
"@graphql-codegen/typescript": "^2.4
|
68
|
-
"@graphql-codegen/typescript-resolvers": "^2.
|
66
|
+
"@graphql-codegen/core": "^2.6.2",
|
67
|
+
"@graphql-codegen/typescript": "^2.7.4",
|
68
|
+
"@graphql-codegen/typescript-resolvers": "^2.7.4",
|
69
69
|
"@types/array.prototype.flat": "^1.2.1",
|
70
70
|
"@types/co": "^4.6.3",
|
71
71
|
"@types/debug": "^4.1.7",
|
72
72
|
"@types/ejs": "^3.1.1",
|
73
|
-
"@types/express": "^4.17.
|
74
|
-
"@types/express-serve-static-core": "^4.17.
|
73
|
+
"@types/express": "^4.17.14",
|
74
|
+
"@types/express-serve-static-core": "^4.17.31",
|
75
75
|
"@types/graphql-upload": "^8.0.11",
|
76
|
-
"@types/jest": "^
|
77
|
-
"@types/koa": "^2.13.
|
76
|
+
"@types/jest": "^29.1.2",
|
77
|
+
"@types/koa": "^2.13.5",
|
78
78
|
"@types/koa-helmet": "^6.0.4",
|
79
79
|
"@types/koa-mount": "^4.0.1",
|
80
80
|
"@types/koa-router": "^7.4.1",
|
81
81
|
"@types/koa-websocket": "^5.0.7",
|
82
|
-
"@types/lodash": "^4.14.
|
82
|
+
"@types/lodash": "^4.14.186",
|
83
83
|
"@types/lru-cache": "^7.10.10",
|
84
|
-
"@types/node": "^
|
84
|
+
"@types/node": "^18.8.5",
|
85
85
|
"@types/oauth": "^0.9.1",
|
86
|
-
"@types/oidc-provider": "^7.
|
86
|
+
"@types/oidc-provider": "^7.12.0",
|
87
87
|
"@types/request-ip": "^0.0.37",
|
88
88
|
"@types/supertest": "^2.0.12",
|
89
89
|
"@types/useragent": "^2.3.1",
|
90
90
|
"@types/uuid": "^8.3.4",
|
91
91
|
"@types/ws": "^8.5.3",
|
92
|
-
"jest": "^
|
93
|
-
"nodemon": "^2.0.
|
92
|
+
"jest": "^29.2.0",
|
93
|
+
"nodemon": "^2.0.20",
|
94
94
|
"npm-run-all": "^4.1.5",
|
95
95
|
"rimraf": "^3.0.2",
|
96
|
-
"supertest": "^6.
|
97
|
-
"ts-jest": "^
|
98
|
-
"ts-node": "^10.
|
99
|
-
"tsconfig-paths": "^4.
|
100
|
-
"typescript": "^4.
|
96
|
+
"supertest": "^6.3.0",
|
97
|
+
"ts-jest": "^29.0.3",
|
98
|
+
"ts-node": "^10.9.1",
|
99
|
+
"tsconfig-paths": "^4.1.0",
|
100
|
+
"typescript": "^4.8.4"
|
101
101
|
},
|
102
102
|
"scripts": {
|
103
103
|
"build": "npm-run-all build:clean generate build:compile build:codegen:clean build:codegen:compile copyhbs",
|
@@ -130,5 +130,5 @@
|
|
130
130
|
}
|
131
131
|
}
|
132
132
|
},
|
133
|
-
"gitHead": "
|
133
|
+
"gitHead": "d4ac2692c0d2552b209cd49a73afc754ccf6cdf3"
|
134
134
|
}
|
package/LICENSE
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Copyright (c) n-fuse GmbH and other contributors.
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
5
|
-
the Software without restriction, including without limitation the rights to
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
-
so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
-
SOFTWARE.
|