@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.
Files changed (86) hide show
  1. package/CHANGELOG.md +27 -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/identity/gql/schema.generated.d.ts +1 -0
  24. package/dist/modules/identity/gql/schema.generated.d.ts.map +1 -1
  25. package/dist/modules/identity/gql/schema.generated.js.map +1 -1
  26. package/dist/modules/indexing/gql/federation.d.ts +1 -1
  27. package/dist/modules/indexing/gql/federation.d.ts.map +1 -1
  28. package/dist/modules/indexing/gql/federation.js +2 -10
  29. package/dist/modules/indexing/gql/federation.js.map +1 -1
  30. package/dist/modules/indexing/gql/types.d.ts.map +1 -1
  31. package/dist/modules/indexing/gql/types.js +2 -0
  32. package/dist/modules/indexing/gql/types.js.map +1 -1
  33. package/dist/modules/invoicing/gql/federation.d.ts +1 -1
  34. package/dist/modules/invoicing/gql/federation.d.ts.map +1 -1
  35. package/dist/modules/invoicing/gql/federation.js +2 -10
  36. package/dist/modules/invoicing/gql/federation.js.map +1 -1
  37. package/dist/modules/invoicing/gql/schema.generated.d.ts +2 -0
  38. package/dist/modules/invoicing/gql/schema.generated.d.ts.map +1 -1
  39. package/dist/modules/invoicing/gql/schema.generated.js.map +1 -1
  40. package/dist/modules/invoicing/gql/types.d.ts.map +1 -1
  41. package/dist/modules/invoicing/gql/types.js +2 -0
  42. package/dist/modules/invoicing/gql/types.js.map +1 -1
  43. package/dist/modules/master_data/gql/federation.d.ts +1 -1
  44. package/dist/modules/master_data/gql/federation.d.ts.map +1 -1
  45. package/dist/modules/master_data/gql/federation.js +2 -10
  46. package/dist/modules/master_data/gql/federation.js.map +1 -1
  47. package/dist/modules/master_data/gql/types.d.ts.map +1 -1
  48. package/dist/modules/master_data/gql/types.js +2 -0
  49. package/dist/modules/master_data/gql/types.js.map +1 -1
  50. package/dist/modules/notification/gql/federation.d.ts +1 -1
  51. package/dist/modules/notification/gql/federation.d.ts.map +1 -1
  52. package/dist/modules/notification/gql/federation.js +2 -10
  53. package/dist/modules/notification/gql/federation.js.map +1 -1
  54. package/dist/modules/notification/gql/types.d.ts.map +1 -1
  55. package/dist/modules/notification/gql/types.js +2 -0
  56. package/dist/modules/notification/gql/types.js.map +1 -1
  57. package/dist/modules/ordering/gql/federation.d.ts +1 -1
  58. package/dist/modules/ordering/gql/federation.d.ts.map +1 -1
  59. package/dist/modules/ordering/gql/federation.js +2 -10
  60. package/dist/modules/ordering/gql/federation.js.map +1 -1
  61. package/dist/modules/ordering/gql/types.d.ts.map +1 -1
  62. package/dist/modules/ordering/gql/types.js +2 -0
  63. package/dist/modules/ordering/gql/types.js.map +1 -1
  64. package/dist/modules/ostorage/gql/federation.d.ts +1 -1
  65. package/dist/modules/ostorage/gql/federation.d.ts.map +1 -1
  66. package/dist/modules/ostorage/gql/federation.js +2 -10
  67. package/dist/modules/ostorage/gql/federation.js.map +1 -1
  68. package/dist/modules/ostorage/gql/types.d.ts.map +1 -1
  69. package/dist/modules/ostorage/gql/types.js +2 -0
  70. package/dist/modules/ostorage/gql/types.js.map +1 -1
  71. package/dist/modules/payment/gql/federation.d.ts +1 -1
  72. package/dist/modules/payment/gql/federation.d.ts.map +1 -1
  73. package/dist/modules/payment/gql/federation.js +2 -10
  74. package/dist/modules/payment/gql/federation.js.map +1 -1
  75. package/dist/modules/payment/gql/types.d.ts.map +1 -1
  76. package/dist/modules/payment/gql/types.js +2 -0
  77. package/dist/modules/payment/gql/types.js.map +1 -1
  78. package/dist/modules/scheduling/gql/federation.d.ts +1 -1
  79. package/dist/modules/scheduling/gql/federation.d.ts.map +1 -1
  80. package/dist/modules/scheduling/gql/federation.js +2 -10
  81. package/dist/modules/scheduling/gql/federation.js.map +1 -1
  82. package/dist/modules/scheduling/gql/types.d.ts.map +1 -1
  83. package/dist/modules/scheduling/gql/types.js +2 -0
  84. package/dist/modules/scheduling/gql/types.js.map +1 -1
  85. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  86. 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("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"}
@@ -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';