@restorecommerce/facade 1.6.5 → 1.6.7
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 +27 -0
- package/dist/modules/access-control/gql/federation.d.ts +1 -1
- package/dist/modules/access-control/gql/federation.d.ts.map +1 -1
- package/dist/modules/access-control/gql/federation.js +2 -10
- package/dist/modules/access-control/gql/federation.js.map +1 -1
- package/dist/modules/access-control/gql/types.d.ts.map +1 -1
- package/dist/modules/access-control/gql/types.js +2 -0
- package/dist/modules/access-control/gql/types.js.map +1 -1
- package/dist/modules/catalog/gql/federation.d.ts +1 -1
- package/dist/modules/catalog/gql/federation.d.ts.map +1 -1
- package/dist/modules/catalog/gql/federation.js +2 -10
- package/dist/modules/catalog/gql/federation.js.map +1 -1
- package/dist/modules/catalog/gql/types.d.ts.map +1 -1
- package/dist/modules/catalog/gql/types.js +2 -0
- package/dist/modules/catalog/gql/types.js.map +1 -1
- package/dist/modules/fulfillment/gql/federation.d.ts +1 -1
- package/dist/modules/fulfillment/gql/federation.d.ts.map +1 -1
- package/dist/modules/fulfillment/gql/federation.js +2 -10
- package/dist/modules/fulfillment/gql/federation.js.map +1 -1
- package/dist/modules/fulfillment/gql/types.d.ts.map +1 -1
- package/dist/modules/fulfillment/gql/types.js +2 -0
- package/dist/modules/fulfillment/gql/types.js.map +1 -1
- package/dist/modules/identity/gql/schema.generated.d.ts +1 -0
- package/dist/modules/identity/gql/schema.generated.d.ts.map +1 -1
- package/dist/modules/identity/gql/schema.generated.js.map +1 -1
- package/dist/modules/indexing/gql/federation.d.ts +1 -1
- package/dist/modules/indexing/gql/federation.d.ts.map +1 -1
- package/dist/modules/indexing/gql/federation.js +2 -10
- package/dist/modules/indexing/gql/federation.js.map +1 -1
- package/dist/modules/indexing/gql/types.d.ts.map +1 -1
- package/dist/modules/indexing/gql/types.js +2 -0
- package/dist/modules/indexing/gql/types.js.map +1 -1
- package/dist/modules/invoicing/gql/federation.d.ts +1 -1
- package/dist/modules/invoicing/gql/federation.d.ts.map +1 -1
- package/dist/modules/invoicing/gql/federation.js +2 -10
- package/dist/modules/invoicing/gql/federation.js.map +1 -1
- package/dist/modules/invoicing/gql/schema.generated.d.ts +2 -0
- package/dist/modules/invoicing/gql/schema.generated.d.ts.map +1 -1
- package/dist/modules/invoicing/gql/schema.generated.js.map +1 -1
- package/dist/modules/invoicing/gql/types.d.ts.map +1 -1
- package/dist/modules/invoicing/gql/types.js +2 -0
- package/dist/modules/invoicing/gql/types.js.map +1 -1
- package/dist/modules/master_data/gql/federation.d.ts +1 -1
- package/dist/modules/master_data/gql/federation.d.ts.map +1 -1
- package/dist/modules/master_data/gql/federation.js +2 -10
- package/dist/modules/master_data/gql/federation.js.map +1 -1
- package/dist/modules/master_data/gql/types.d.ts.map +1 -1
- package/dist/modules/master_data/gql/types.js +2 -0
- package/dist/modules/master_data/gql/types.js.map +1 -1
- package/dist/modules/notification/gql/federation.d.ts +1 -1
- package/dist/modules/notification/gql/federation.d.ts.map +1 -1
- package/dist/modules/notification/gql/federation.js +2 -10
- package/dist/modules/notification/gql/federation.js.map +1 -1
- package/dist/modules/notification/gql/types.d.ts.map +1 -1
- package/dist/modules/notification/gql/types.js +2 -0
- package/dist/modules/notification/gql/types.js.map +1 -1
- package/dist/modules/ordering/gql/federation.d.ts +1 -1
- package/dist/modules/ordering/gql/federation.d.ts.map +1 -1
- package/dist/modules/ordering/gql/federation.js +2 -10
- package/dist/modules/ordering/gql/federation.js.map +1 -1
- package/dist/modules/ordering/gql/types.d.ts.map +1 -1
- package/dist/modules/ordering/gql/types.js +2 -0
- package/dist/modules/ordering/gql/types.js.map +1 -1
- package/dist/modules/ostorage/gql/federation.d.ts +1 -1
- package/dist/modules/ostorage/gql/federation.d.ts.map +1 -1
- package/dist/modules/ostorage/gql/federation.js +2 -10
- package/dist/modules/ostorage/gql/federation.js.map +1 -1
- package/dist/modules/ostorage/gql/types.d.ts.map +1 -1
- package/dist/modules/ostorage/gql/types.js +2 -0
- package/dist/modules/ostorage/gql/types.js.map +1 -1
- package/dist/modules/payment/gql/federation.d.ts +1 -1
- package/dist/modules/payment/gql/federation.d.ts.map +1 -1
- package/dist/modules/payment/gql/federation.js +2 -10
- package/dist/modules/payment/gql/federation.js.map +1 -1
- package/dist/modules/payment/gql/types.d.ts.map +1 -1
- package/dist/modules/payment/gql/types.js +2 -0
- package/dist/modules/payment/gql/types.js.map +1 -1
- package/dist/modules/scheduling/gql/federation.d.ts +1 -1
- package/dist/modules/scheduling/gql/federation.d.ts.map +1 -1
- package/dist/modules/scheduling/gql/federation.js +2 -10
- package/dist/modules/scheduling/gql/federation.js.map +1 -1
- package/dist/modules/scheduling/gql/types.d.ts.map +1 -1
- package/dist/modules/scheduling/gql/types.js +2 -0
- package/dist/modules/scheduling/gql/types.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,33 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.6.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.6.6...@restorecommerce/facade@1.6.7) (2023-10-24)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **facade:** convert all schemas to support subscriptions ([2d14d02](https://github.com/restorecommerce/libs/commit/2d14d02f502e6f6e64a4e530327ffd0aadbbe8c2))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [1.6.6](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.6.5...@restorecommerce/facade@1.6.6) (2023-10-14)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* **acs:** fix decorator declaration ([9847528](https://github.com/restorecommerce/libs/commit/98475283139362e8f5d8d04ac243bb32087b17c2))
|
23
|
+
|
24
|
+
|
25
|
+
### Reverts
|
26
|
+
|
27
|
+
* **access_control.proto:** revert enum order ([8aaa4e6](https://github.com/restorecommerce/libs/commit/8aaa4e63675ec2bd040602236ff82b0fe80e6d14))
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
6
33
|
## [1.6.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.6.4...@restorecommerce/facade@1.6.5) (2023-10-07)
|
7
34
|
|
8
35
|
**Note:** Version bump only for package @restorecommerce/facade
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type AccessControlServiceConfig } from '../interfaces.js';
|
2
|
-
export declare const FederatedAccessControlSchema: (cfg: AccessControlServiceConfig) => import("
|
2
|
+
export declare const FederatedAccessControlSchema: (cfg: AccessControlServiceConfig) => import("../../../gql/protos/types.js").FederatedSchemaWithResolvers;
|
3
3
|
//# sourceMappingURL=federation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/federation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,0BAA0B,EAAa,MAAM,kBAAkB,CAAC;AAI9E,eAAO,MAAM,4BAA4B,QAAS,0BAA0B,wEAA+E,CAAC"}
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import { gql } from 'graphql-tag';
|
2
|
-
import { buildSubgraphSchema } from '@apollo/federation';
|
3
1
|
import { schema } from './schema.js';
|
4
2
|
import { namespace } from '../interfaces.js';
|
5
|
-
import {
|
3
|
+
import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
|
6
4
|
import { subServices } from './types.js';
|
7
|
-
|
8
|
-
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
9
|
-
// See https://github.com/apollographql/apollo-server/pull/4310
|
10
|
-
export const FederatedAccessControlSchema = (cfg) => buildSubgraphSchema({
|
11
|
-
typeDefs: gql(printSchema(schema(cfg))),
|
12
|
-
resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
|
13
|
-
});
|
5
|
+
export const FederatedAccessControlSchema = (cfg) => buildFederatedSubscriptionSchema(subServices, cfg, namespace, schema(cfg));
|
14
6
|
//# sourceMappingURL=federation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAmC,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA+B,EAAE,EAAE,CAAC,gCAAgC,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAKtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
|
@@ -3,6 +3,7 @@ import { protoMetadata as metaPackageIoRestorecommerceRule } from '@restorecomme
|
|
3
3
|
import { protoMetadata as metaPackageIoRestorecommercePolicy_set } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/policy_set.js';
|
4
4
|
import { protoMetadata as metaPackageIoRestorecommerceAccess_control } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/access_control.js';
|
5
5
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
6
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
6
7
|
export const subServices = [
|
7
8
|
metaPackageIoRestorecommerceAccess_control,
|
8
9
|
metaPackageIoRestorecommercePolicy,
|
@@ -11,5 +12,6 @@ export const subServices = [
|
|
11
12
|
];
|
12
13
|
export const registerTypings = () => {
|
13
14
|
registerPackagesRecursive(...subServices);
|
15
|
+
registerProtoMeta(...subServices);
|
14
16
|
};
|
15
17
|
//# sourceMappingURL=types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AACnJ,OAAO,EAAE,aAAa,IAAI,gCAAgC,EAAE,MAAM,4EAA4E,CAAC;AAC/I,OAAO,EAAE,aAAa,IAAI,sCAAsC,EAAE,MAAM,kFAAkF,CAAC;AAC3J,OAAO,EAAE,aAAa,IAAI,0CAA0C,EAAE,MAAM,sFAAsF,CAAC;AACnK,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/access-control/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AACnJ,OAAO,EAAE,aAAa,IAAI,gCAAgC,EAAE,MAAM,4EAA4E,CAAC;AAC/I,OAAO,EAAE,aAAa,IAAI,sCAAsC,EAAE,MAAM,kFAAkF,CAAC;AAC3J,OAAO,EAAE,aAAa,IAAI,0CAA0C,EAAE,MAAM,sFAAsF,CAAC;AACnK,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,0CAA0C;IAC1C,kCAAkC;IAClC,gCAAgC;IAChC,sCAAsC;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;IAC1C,iBAAiB,CAAC,GAAG,WAAW,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type CatalogServiceConfig } from '../interfaces.js';
|
2
|
-
export declare const FederatedCatalogSchema: (cfg: CatalogServiceConfig) => import("
|
2
|
+
export declare const FederatedCatalogSchema: (cfg: CatalogServiceConfig) => import("../../../gql/protos/types.js").FederatedSchemaWithResolvers;
|
3
3
|
//# sourceMappingURL=federation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/federation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,kBAAkB,CAAC;AAIxE,eAAO,MAAM,sBAAsB,QAAS,oBAAoB,wEAA+E,CAAC"}
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import { gql } from 'graphql-tag';
|
2
|
-
import { buildSubgraphSchema } from '@apollo/federation';
|
3
1
|
import { schema } from './schema.js';
|
4
2
|
import { namespace } from '../interfaces.js';
|
5
|
-
import {
|
3
|
+
import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
|
6
4
|
import { subServices } from './types.js';
|
7
|
-
|
8
|
-
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
9
|
-
// See https://github.com/apollographql/apollo-server/pull/4310
|
10
|
-
export const FederatedCatalogSchema = (cfg) => buildSubgraphSchema({
|
11
|
-
typeDefs: gql(printSchema(schema(cfg))),
|
12
|
-
resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
|
13
|
-
});
|
5
|
+
export const FederatedCatalogSchema = (cfg) => buildFederatedSubscriptionSchema(subServices, cfg, namespace, schema(cfg));
|
14
6
|
//# sourceMappingURL=federation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAA6B,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAyB,EAAE,EAAE,CAAC,gCAAgC,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAMtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
|
@@ -4,6 +4,7 @@ import { protoMetadata as metaPackageIoRestorecommerceProduct_category } from '@
|
|
4
4
|
import { protoMetadata as metaPackageIoRestorecommercePrice_group } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/price_group.js';
|
5
5
|
import { protoMetadata as metaPackageIoRestorecommerceManufacturer } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/manufacturer.js';
|
6
6
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
7
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
7
8
|
export const subServices = [
|
8
9
|
metaPackageIoRestorecommerceProduct,
|
9
10
|
metaPackageIoRestorecommerceProduct_prototype,
|
@@ -13,5 +14,6 @@ export const subServices = [
|
|
13
14
|
];
|
14
15
|
export const registerTypings = () => {
|
15
16
|
registerPackagesRecursive(...subServices);
|
17
|
+
registerProtoMeta(...subServices);
|
16
18
|
};
|
17
19
|
//# sourceMappingURL=types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,6CAA6C,EAAE,MAAM,yFAAyF,CAAC;AACzK,OAAO,EAAE,aAAa,IAAI,4CAA4C,EAAE,MAAM,wFAAwF,CAAC;AACvK,OAAO,EAAE,aAAa,IAAI,uCAAuC,EAAE,MAAM,mFAAmF,CAAC;AAC7J,OAAO,EAAE,aAAa,IAAI,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC/J,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/catalog/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,6CAA6C,EAAE,MAAM,yFAAyF,CAAC;AACzK,OAAO,EAAE,aAAa,IAAI,4CAA4C,EAAE,MAAM,wFAAwF,CAAC;AACvK,OAAO,EAAE,aAAa,IAAI,uCAAuC,EAAE,MAAM,mFAAmF,CAAC;AAC7J,OAAO,EAAE,aAAa,IAAI,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC/J,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,mCAAmC;IACnC,6CAA6C;IAC7C,4CAA4C;IAC5C,uCAAuC;IACvC,wCAAwC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;IAC1C,iBAAiB,CAAC,GAAG,WAAW,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type FulfillmentServiceConfig } from '../interfaces.js';
|
2
|
-
export declare const FederatedFulfillmentSchema: (cfg: FulfillmentServiceConfig) => import("
|
2
|
+
export declare const FederatedFulfillmentSchema: (cfg: FulfillmentServiceConfig) => import("../../../gql/protos/types.js").FederatedSchemaWithResolvers;
|
3
3
|
//# sourceMappingURL=federation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/federation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAa,MAAM,kBAAkB,CAAC;AAI5E,eAAO,MAAM,0BAA0B,QAAS,wBAAwB,wEAA+E,CAAC"}
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import { gql } from 'graphql-tag';
|
2
|
-
import { buildSubgraphSchema } from '@apollo/federation';
|
3
1
|
import { schema } from './schema.js';
|
4
2
|
import { namespace } from '../interfaces.js';
|
5
|
-
import {
|
3
|
+
import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
|
6
4
|
import { subServices } from './types.js';
|
7
|
-
|
8
|
-
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
9
|
-
// See https://github.com/apollographql/apollo-server/pull/4310
|
10
|
-
export const FederatedFulfillmentSchema = (cfg) => buildSubgraphSchema({
|
11
|
-
typeDefs: gql(printSchema(schema(cfg))),
|
12
|
-
resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
|
13
|
-
});
|
5
|
+
export const FederatedFulfillmentSchema = (cfg) => buildFederatedSubscriptionSchema(subServices, cfg, namespace, schema(cfg));
|
14
6
|
//# sourceMappingURL=federation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAiC,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAA6B,EAAE,EAAE,CAAC,gCAAgC,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAItC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
|
@@ -2,6 +2,7 @@ import { protoMetadata as metaPackageIoRestorecommerceFulfillment } from '@resto
|
|
2
2
|
import { protoMetadata as metaPackageIoRestorecommerceFulfillmentCourier } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/fulfillment_courier.js';
|
3
3
|
import { protoMetadata as metaPackageIoRestorecommerceFulfillmentProduct } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/fulfillment_product.js';
|
4
4
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
5
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
5
6
|
export const subServices = [
|
6
7
|
metaPackageIoRestorecommerceFulfillment,
|
7
8
|
metaPackageIoRestorecommerceFulfillmentCourier,
|
@@ -9,5 +10,6 @@ export const subServices = [
|
|
9
10
|
];
|
10
11
|
export const registerTypings = () => {
|
11
12
|
registerPackagesRecursive(...subServices);
|
13
|
+
registerProtoMeta(...subServices);
|
12
14
|
};
|
13
15
|
//# sourceMappingURL=types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,uCAAuC,EAAE,MAAM,mFAAmF,CAAC;AAC7J,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,2FAA2F,CAAC;AAC5K,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,2FAA2F,CAAC;AAC5K,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/fulfillment/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,uCAAuC,EAAE,MAAM,mFAAmF,CAAC;AAC7J,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,2FAA2F,CAAC;AAC5K,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,2FAA2F,CAAC;AAC5K,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,uCAAuC;IACvC,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;IAC1C,iBAAiB,CAAC,GAAG,WAAW,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
@@ -647,6 +647,7 @@ export type IIoRestorecommerceUserRegisterRequest = {
|
|
647
647
|
defaultScope?: InputMaybe<Scalars['String']['input']>;
|
648
648
|
userType?: InputMaybe<IoRestorecommerceUserUserType>;
|
649
649
|
captchaCode?: InputMaybe<Scalars['String']['input']>;
|
650
|
+
data?: InputMaybe<IGoogleProtobufAny>;
|
650
651
|
};
|
651
652
|
export type ProtoIoRestorecommerceStatusOperationStatusObj = {
|
652
653
|
__typename?: 'ProtoIoRestorecommerceStatusOperationStatusObj';
|