@restorecommerce/facade 1.6.6 → 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.
Files changed (80) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/modules/access-control/gql/federation.d.ts +1 -1
  3. package/dist/modules/access-control/gql/federation.d.ts.map +1 -1
  4. package/dist/modules/access-control/gql/federation.js +2 -10
  5. package/dist/modules/access-control/gql/federation.js.map +1 -1
  6. package/dist/modules/access-control/gql/types.d.ts.map +1 -1
  7. package/dist/modules/access-control/gql/types.js +2 -0
  8. package/dist/modules/access-control/gql/types.js.map +1 -1
  9. package/dist/modules/catalog/gql/federation.d.ts +1 -1
  10. package/dist/modules/catalog/gql/federation.d.ts.map +1 -1
  11. package/dist/modules/catalog/gql/federation.js +2 -10
  12. package/dist/modules/catalog/gql/federation.js.map +1 -1
  13. package/dist/modules/catalog/gql/types.d.ts.map +1 -1
  14. package/dist/modules/catalog/gql/types.js +2 -0
  15. package/dist/modules/catalog/gql/types.js.map +1 -1
  16. package/dist/modules/fulfillment/gql/federation.d.ts +1 -1
  17. package/dist/modules/fulfillment/gql/federation.d.ts.map +1 -1
  18. package/dist/modules/fulfillment/gql/federation.js +2 -10
  19. package/dist/modules/fulfillment/gql/federation.js.map +1 -1
  20. package/dist/modules/fulfillment/gql/types.d.ts.map +1 -1
  21. package/dist/modules/fulfillment/gql/types.js +2 -0
  22. package/dist/modules/fulfillment/gql/types.js.map +1 -1
  23. package/dist/modules/indexing/gql/federation.d.ts +1 -1
  24. package/dist/modules/indexing/gql/federation.d.ts.map +1 -1
  25. package/dist/modules/indexing/gql/federation.js +2 -10
  26. package/dist/modules/indexing/gql/federation.js.map +1 -1
  27. package/dist/modules/indexing/gql/types.d.ts.map +1 -1
  28. package/dist/modules/indexing/gql/types.js +2 -0
  29. package/dist/modules/indexing/gql/types.js.map +1 -1
  30. package/dist/modules/invoicing/gql/federation.d.ts +1 -1
  31. package/dist/modules/invoicing/gql/federation.d.ts.map +1 -1
  32. package/dist/modules/invoicing/gql/federation.js +2 -10
  33. package/dist/modules/invoicing/gql/federation.js.map +1 -1
  34. package/dist/modules/invoicing/gql/types.d.ts.map +1 -1
  35. package/dist/modules/invoicing/gql/types.js +2 -0
  36. package/dist/modules/invoicing/gql/types.js.map +1 -1
  37. package/dist/modules/master_data/gql/federation.d.ts +1 -1
  38. package/dist/modules/master_data/gql/federation.d.ts.map +1 -1
  39. package/dist/modules/master_data/gql/federation.js +2 -10
  40. package/dist/modules/master_data/gql/federation.js.map +1 -1
  41. package/dist/modules/master_data/gql/types.d.ts.map +1 -1
  42. package/dist/modules/master_data/gql/types.js +2 -0
  43. package/dist/modules/master_data/gql/types.js.map +1 -1
  44. package/dist/modules/notification/gql/federation.d.ts +1 -1
  45. package/dist/modules/notification/gql/federation.d.ts.map +1 -1
  46. package/dist/modules/notification/gql/federation.js +2 -10
  47. package/dist/modules/notification/gql/federation.js.map +1 -1
  48. package/dist/modules/notification/gql/types.d.ts.map +1 -1
  49. package/dist/modules/notification/gql/types.js +2 -0
  50. package/dist/modules/notification/gql/types.js.map +1 -1
  51. package/dist/modules/ordering/gql/federation.d.ts +1 -1
  52. package/dist/modules/ordering/gql/federation.d.ts.map +1 -1
  53. package/dist/modules/ordering/gql/federation.js +2 -10
  54. package/dist/modules/ordering/gql/federation.js.map +1 -1
  55. package/dist/modules/ordering/gql/types.d.ts.map +1 -1
  56. package/dist/modules/ordering/gql/types.js +2 -0
  57. package/dist/modules/ordering/gql/types.js.map +1 -1
  58. package/dist/modules/ostorage/gql/federation.d.ts +1 -1
  59. package/dist/modules/ostorage/gql/federation.d.ts.map +1 -1
  60. package/dist/modules/ostorage/gql/federation.js +2 -10
  61. package/dist/modules/ostorage/gql/federation.js.map +1 -1
  62. package/dist/modules/ostorage/gql/types.d.ts.map +1 -1
  63. package/dist/modules/ostorage/gql/types.js +2 -0
  64. package/dist/modules/ostorage/gql/types.js.map +1 -1
  65. package/dist/modules/payment/gql/federation.d.ts +1 -1
  66. package/dist/modules/payment/gql/federation.d.ts.map +1 -1
  67. package/dist/modules/payment/gql/federation.js +2 -10
  68. package/dist/modules/payment/gql/federation.js.map +1 -1
  69. package/dist/modules/payment/gql/types.d.ts.map +1 -1
  70. package/dist/modules/payment/gql/types.js +2 -0
  71. package/dist/modules/payment/gql/types.js.map +1 -1
  72. package/dist/modules/scheduling/gql/federation.d.ts +1 -1
  73. package/dist/modules/scheduling/gql/federation.d.ts.map +1 -1
  74. package/dist/modules/scheduling/gql/federation.js +2 -10
  75. package/dist/modules/scheduling/gql/federation.js.map +1 -1
  76. package/dist/modules/scheduling/gql/types.d.ts.map +1 -1
  77. package/dist/modules/scheduling/gql/types.js +2 -0
  78. package/dist/modules/scheduling/gql/types.js.map +1 -1
  79. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  80. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  ## [1.6.6](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.6.5...@restorecommerce/facade@1.6.6) (2023-10-14)
7
18
 
8
19
 
@@ -1,3 +1,3 @@
1
1
  import { type AccessControlServiceConfig } from '../interfaces.js';
2
- export declare const FederatedAccessControlSchema: (cfg: AccessControlServiceConfig) => import("graphql").GraphQLSchema;
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":"AAGA,OAAO,EAA6B,KAAK,0BAA0B,EAAa,MAAM,kBAAkB,CAAC;AASzG,eAAO,MAAM,4BAA4B,QAAS,0BAA0B,oCAG1E,CAAC"}
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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAA8D,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA+B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACnG,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAA8D,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACjI,CAAC,CAAC"}
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;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAKtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,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;AAE7F,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;AAC5C,CAAC,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("graphql").GraphQLSchema;
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":"AAGA,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,kBAAkB,CAAC;AAOxE,eAAO,MAAM,sBAAsB,QAAS,oBAAoB,oCAG9D,CAAC"}
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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAA6B,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAyB,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACvF,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
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;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAMtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,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;AAE7F,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;AAC5C,CAAC,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("graphql").GraphQLSchema;
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":"AAGA,OAAO,EAAE,KAAK,wBAAwB,EAAa,MAAM,kBAAkB,CAAC;AAO5E,eAAO,MAAM,0BAA0B,QAAS,wBAAwB,oCAGtE,CAAC"}
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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAiC,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAA6B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IAC/F,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
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;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAItC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,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;AAE7F,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;AAC5C,CAAC,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"}
@@ -1,3 +1,3 @@
1
1
  import { type SubSpaceServiceConfig } from '../../../gql/protos/index.js';
2
- export declare const FederatedIndexingSchema: (cfg: SubSpaceServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedIndexingSchema: (cfg: SubSpaceServiceConfig) => 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/indexing/gql/federation.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AASvG,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,oCAGhE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/indexing/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAC;AAItC,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,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
- import { generateSubServiceResolvers } from '../../../gql/protos/index.js';
2
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
5
3
  import { namespace } from '../interfaces.js';
6
- import { printSchema } from 'graphql';
7
4
  import { subServices } from '../../access-control/gql/types.js';
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 FederatedIndexingSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedIndexingSchema = (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/indexing/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAA8B,MAAM,8BAA8B,CAAC;AAEvG,OAAO,EAAwB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACzF,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAoD,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACvH,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/indexing/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,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/indexing/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAGF,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/indexing/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { protoMetadata } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/search.js';
2
2
  import { registerPackagesRecursive } from '../../../gql/protos/index.js';
3
+ import { registerProtoMeta } from '@restorecommerce/kafka-client';
3
4
  export const subServices = [
4
5
  protoMetadata
5
6
  ];
6
7
  export const registerTypings = () => {
7
8
  registerPackagesRecursive(...subServices);
9
+ registerProtoMeta(...subServices);
8
10
  };
9
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/indexing/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8EAA8E,CAAC;AAC7G,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,aAAa;CACd,CAAC;AAGF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/indexing/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8EAA8E,CAAC;AAC7G,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,aAAa;CACd,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 InvoicingServiceConfig } from '../interfaces.js';
2
- export declare const FederatedInvoicingSchema: (cfg: InvoicingServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedInvoicingSchema: (cfg: InvoicingServiceConfig) => 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/invoicing/gql/federation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAO1E,eAAO,MAAM,wBAAwB,QAAS,sBAAsB,oCAGlE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,eAAO,MAAM,wBAAwB,QAAS,sBAAsB,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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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 FederatedInvoicingSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedInvoicingSchema = (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/invoicing/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA+B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAA2B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IAC3F,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA+B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAA2B,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/invoicing/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { protoMetadata as metaPackageIoRestorecommerceInvoicing } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/invoice.js';
2
2
  import { registerPackagesRecursive } from '../../../gql/protos/index.js';
3
+ import { registerProtoMeta } from '@restorecommerce/kafka-client';
3
4
  export const subServices = [
4
5
  metaPackageIoRestorecommerceInvoicing
5
6
  ];
6
7
  export const registerTypings = () => {
7
8
  registerPackagesRecursive(...subServices);
9
+ registerProtoMeta(...subServices);
8
10
  };
9
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qCAAqC,EAAE,MAAM,+EAA+E,CAAC;AACvJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,qCAAqC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qCAAqC,EAAE,MAAM,+EAA+E,CAAC;AACvJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,qCAAqC;CACtC,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 ResourceServiceConfig } from '../interfaces.js';
2
- export declare const FederatedResourceSchema: (cfg: ResourceServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedResourceSchema: (cfg: ResourceServiceConfig) => 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/master_data/gql/federation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAOzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,oCAGhE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/master_data/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAIzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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 FederatedResourceSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedResourceSchema = (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/master_data/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACzF,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/master_data/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,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/master_data/gql/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EActC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/master_data/gql/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EActC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
@@ -12,6 +12,7 @@ import { protoMetadata as metaPackageIoRestorecommerceTax_type } from '@restorec
12
12
  import { protoMetadata as metaPackageIoRestorecommerceUnitCode } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/unit_code.js';
13
13
  import { protoMetadata as metaPackageIoRestorecommerceCommand } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/command.js';
14
14
  import { registerPackagesRecursive } from '../../../gql/protos/index.js';
15
+ import { registerProtoMeta } from '@restorecommerce/kafka-client';
15
16
  export const subServices = [
16
17
  metaPackageIoRestorecommerceAddress,
17
18
  metaPackageIoRestorecommerceCountry,
@@ -29,5 +30,6 @@ export const subServices = [
29
30
  ];
30
31
  export const registerTypings = () => {
31
32
  registerPackagesRecursive(...subServices);
33
+ registerProtoMeta(...subServices);
32
34
  };
33
35
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/master_data/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,0FAA0F,CAAC;AAC3K,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,yCAAyC,EAAE,MAAM,qFAAqF,CAAC;AACjK,OAAO,EAAE,aAAa,IAAI,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AACnJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC/J,OAAO,EAAE,aAAa,IAAI,+BAA+B,EAAE,MAAM,2EAA2E,CAAC;AAC7I,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,iFAAiF,CAAC;AACxJ,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,mCAAmC;IACnC,mCAAmC;IACnC,oCAAoC;IACpC,8CAA8C;IAC9C,oCAAoC;IACpC,yCAAyC;IACzC,kCAAkC;IAClC,oCAAoC;IACpC,wCAAwC;IACxC,oCAAoC;IACpC,+BAA+B;IAC/B,oCAAoC;IACpC,mCAAmC;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/master_data/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,8CAA8C,EAAE,MAAM,0FAA0F,CAAC;AAC3K,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,yCAAyC,EAAE,MAAM,qFAAqF,CAAC;AACjK,OAAO,EAAE,aAAa,IAAI,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AACnJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC/J,OAAO,EAAE,aAAa,IAAI,+BAA+B,EAAE,MAAM,2EAA2E,CAAC;AAC7I,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,iFAAiF,CAAC;AACxJ,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,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,mCAAmC;IACnC,oCAAoC;IACpC,8CAA8C;IAC9C,oCAAoC;IACpC,yCAAyC;IACzC,kCAAkC;IAClC,oCAAoC;IACpC,wCAAwC;IACxC,oCAAoC;IACpC,+BAA+B;IAC/B,oCAAoC;IACpC,mCAAmC;CACpC,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 NotificationServiceConfig } from '../interfaces.js';
2
- export declare const FederatedNotificationSchema: (cfg: NotificationServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedNotificationSchema: (cfg: NotificationServiceConfig) => 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/notification/gql/federation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAO7E,eAAO,MAAM,2BAA2B,QAAS,yBAAyB,oCAGxE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/notification/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAI7E,eAAO,MAAM,2BAA2B,QAAS,yBAAyB,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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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 FederatedNotificationSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedNotificationSchema = (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/notification/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAkC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA8B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACjG,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/notification/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAkC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,GAA8B,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/notification/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/notification/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { protoMetadata as metaPackageIoRestorecommerceNotification } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/notification.js';
2
2
  import { registerPackagesRecursive } from '../../../gql/protos/index.js';
3
+ import { registerProtoMeta } from '@restorecommerce/kafka-client';
3
4
  export const subServices = [
4
5
  metaPackageIoRestorecommerceNotification
5
6
  ];
6
7
  export const registerTypings = () => {
7
8
  registerPackagesRecursive(...subServices);
9
+ registerProtoMeta(...subServices);
8
10
  };
9
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/notification/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,wCAAwC,EAAE,MAAM,oFAAoF,CAAC;AAC/J,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAqB;IAC3C,wCAAwC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/notification/gql/types.ts"],"names":[],"mappings":"AAAA,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,GAAqB;IAC3C,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 OrderingServiceConfig } from '../interfaces.js';
2
- export declare const FederatedOrderingSchema: (cfg: OrderingServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedOrderingSchema: (cfg: OrderingServiceConfig) => 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/ordering/gql/federation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAOzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,oCAGhE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/ordering/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAIzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,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 { generateSubServiceResolvers } from '../../../gql/protos/index.js';
3
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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 FederatedOrderingSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedOrderingSchema = (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/ordering/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACzF,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/ordering/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,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/ordering/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAE3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/ordering/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;AAG7F,eAAO,MAAM,WAAW,EAAE,aAAa,EAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,YAG3B,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { protoMetadata as metaPackageIoRestorecommerceOrdering } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/order.js';
2
2
  import { registerPackagesRecursive } from '../../../gql/protos/index.js';
3
+ import { registerProtoMeta } from '@restorecommerce/kafka-client';
3
4
  export const subServices = [
4
5
  metaPackageIoRestorecommerceOrdering
5
6
  ];
6
7
  export const registerTypings = () => {
7
8
  registerPackagesRecursive(...subServices);
9
+ registerProtoMeta(...subServices);
8
10
  };
9
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/ordering/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,6EAA6E,CAAC;AACpJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,oCAAoC;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,yBAAyB,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/ordering/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,6EAA6E,CAAC;AACpJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,oCAAoC;CACrC,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 OstorageServiceConfig } from '../interfaces.js';
2
- export declare const FederatedOstorageSchema: (cfg: OstorageServiceConfig) => import("graphql").GraphQLSchema;
2
+ export declare const FederatedOstorageSchema: (cfg: OstorageServiceConfig) => 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/ostorage/gql/federation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAMzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,oCAGhE,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/ostorage/gql/federation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzE,eAAO,MAAM,uBAAuB,QAAS,qBAAqB,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
- import { generateSubServiceResolvers } from '../../../gql/protos/index.js';
2
+ import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
5
3
  import { namespace } from '../interfaces.js';
6
4
  import { subServices } from './types.js';
7
- import { printSchema } from 'graphql';
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 FederatedOstorageSchema = (cfg) => buildSubgraphSchema({
11
- typeDefs: gql(printSchema(schema(cfg))),
12
- resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
13
- });
5
+ export const FederatedOstorageSchema = (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/ostorage/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,0FAA0F;AAC1F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACzF,QAAQ,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,SAAS,EAAE,2BAA2B,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;CACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/ostorage/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAA8B,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,gCAAgC,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC"}