@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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.generated.js","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/schema.generated.ts"],"names":[],"mappings":"AAiLA,MAAM,CAAN,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACvC,uFAAW,CAAA;IACX,qGAAkB,CAAA;IAClB,mFAAS,CAAA;IACT,mGAAiB,CAAA;AACnB,CAAC,EALW,6BAA6B,KAA7B,6BAA6B,QAKxC;AA+JD,MAAM,CAAN,IAAY,+CAIX;AAJD,WAAY,+CAA+C;IACzD,qIAAgB,CAAA;IAChB,mIAAe,CAAA;IACf,yHAAU,CAAA;AACZ,CAAC,EAJW,+CAA+C,KAA/C,+CAA+C,QAI1D;AAED,MAAM,CAAN,IAAY,8CAIX;AAJD,WAAY,8CAA8C;IACxD,yHAAW,CAAA;IACX,mHAAQ,CAAA;IACR,mHAAQ,CAAA;AACV,CAAC,EAJW,8CAA8C,KAA9C,8CAA8C,QAIzD;AAoBD,MAAM,CAAN,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC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Q,CAAA;IACR,qGAAS,CAAA;AACX,CAAC,EANW,sCAAsC,KAAtC,sCAAsC,QAMjD;AAED,MAAM,CAAN,IAAY,uCAGX;AAHD,WAAY,uCAAuC;IACjD,mGAAO,CAAA;IACP,iGAAM,CAAA;AACR,CAAC,EAHW,uCAAuC,KAAvC,uCAAuC,QAGlD;AAED,MAAM,CAAN,IAAY,6CAGX;AAHD,WAAY,6CAA6C;IACvD,+GAAO,CAAA;IACP,6GAAM,CAAA;AACR,CAAC,EAHW,6CAA6C,KAA7C,6CAA6C,QAGxD;AAmQD,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;
|
1
|
+
{"version":3,"file":"schema.generated.js","sourceRoot":"","sources":["../../../../src/modules/invoicing/gql/schema.generated.ts"],"names":[],"mappings":"AAiLA,MAAM,CAAN,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACvC,uFAAW,CAAA;IACX,qGAAkB,CAAA;IAClB,mFAAS,CAAA;IACT,mGAAiB,CAAA;AACnB,CAAC,EALW,6BAA6B,KAA7B,6BAA6B,QAKxC;AA+JD,MAAM,CAAN,IAAY,+CAIX;AAJD,WAAY,+CAA+C;IACzD,qIAAgB,CAAA;IAChB,mIAAe,CAAA;IACf,yHAAU,CAAA;AACZ,CAAC,EAJW,+CAA+C,KAA/C,+CAA+C,QAI1D;AAED,MAAM,CAAN,IAAY,8CAIX;AAJD,WAAY,8CAA8C;IACxD,yHAAW,CAAA;IACX,mHAAQ,CAAA;IACR,mHAAQ,CAAA;AACV,CAAC,EAJW,8CAA8C,KAA9C,8CAA8C,QAIzD;AAoBD,MAAM,CAAN,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC9C,qGAAW,CAAA;IACX,iGAAS,CAAA;AACX,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,QAG/C;AAk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CAAN,IAAY,uCAGX;AAHD,WAAY,uCAAuC;IACjD,mGAAO,CAAA;IACP,iGAAM,CAAA;AACR,CAAC,EAHW,uCAAuC,KAAvC,uCAAuC,QAGlD;AAED,MAAM,CAAN,IAAY,6CAGX;AAHD,WAAY,6CAA6C;IACvD,+GAAO,CAAA;IACP,6GAAM,CAAA;AACR,CAAC,EAHW,6CAA6C,KAA7C,6CAA6C,QAGxD;AAmQD,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAuFD,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;AACrB,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B"}
|
@@ -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;
|
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;
|
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("
|
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":"
|
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 {
|
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 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,
|
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;
|
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,C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CAAoC,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("
|
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":"
|
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 {
|
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 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,
|
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;
|
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;
|
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("
|
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":"
|
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 {
|
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 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,
|
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;
|
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;
|
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("
|
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":"
|
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 {
|
2
|
+
import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
|
5
3
|
import { namespace } from '../interfaces.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 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,
|
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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/ostorage/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/ostorage/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 metaPackageIoRestorecommerceOstorage } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/ostorage.js';
|
2
2
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
3
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
3
4
|
export const subServices = [
|
4
5
|
metaPackageIoRestorecommerceOstorage
|
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/ostorage/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AACvJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/ostorage/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oCAAoC,EAAE,MAAM,gFAAgF,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,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 PaymentServiceConfig } from '../interfaces.js';
|
2
|
-
export declare const FederatedPaymentSchema: (cfg: PaymentServiceConfig) => import("
|
2
|
+
export declare const FederatedPaymentSchema: (cfg: PaymentServiceConfig) => 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/payment/gql/federation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/payment/gql/federation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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
|
-
import {
|
2
|
+
import { buildFederatedSubscriptionSchema } from '../../../gql/protos/index.js';
|
5
3
|
import { namespace } from '../interfaces.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 FederatedPaymentSchema = (cfg) => buildSubgraphSchema({
|
11
|
-
typeDefs: gql(printSchema(schema(cfg))),
|
12
|
-
resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
|
13
|
-
});
|
5
|
+
export const FederatedPaymentSchema = (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/payment/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/payment/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,EAA6B,MAAM,kBAAkB,CAAC;AACxE,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/payment/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/payment/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 metaPackageIoRestorecommercePayment } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/payment.js';
|
2
2
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
3
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
3
4
|
export const subServices = [
|
4
5
|
metaPackageIoRestorecommercePayment
|
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/payment/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACrJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/payment/gql/types.ts"],"names":[],"mappings":"AAAA,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;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 SchedulingServiceConfig } from '../interfaces.js';
|
2
|
-
export declare const FederatedSchedulingSchema: (cfg: SchedulingServiceConfig) => import("
|
2
|
+
export declare const FederatedSchedulingSchema: (cfg: SchedulingServiceConfig) => 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/scheduling/gql/federation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../../../src/modules/scheduling/gql/federation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,eAAO,MAAM,yBAAyB,QAAS,uBAAuB,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 FederatedSchedulingSchema = (cfg) => buildSubgraphSchema({
|
11
|
-
typeDefs: gql(printSchema(schema(cfg))),
|
12
|
-
resolvers: generateSubServiceResolvers(subServices, cfg, namespace)
|
13
|
-
});
|
5
|
+
export const FederatedSchedulingSchema = (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/scheduling/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../src/modules/scheduling/gql/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAgC,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAA4B,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/scheduling/gql/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/scheduling/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 metaPackageIoRestorecommerceScheduling } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/job.js';
|
2
2
|
import { registerPackagesRecursive } from '../../../gql/protos/index.js';
|
3
|
+
import { registerProtoMeta } from '@restorecommerce/kafka-client';
|
3
4
|
export const subServices = [
|
4
5
|
metaPackageIoRestorecommerceScheduling
|
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/scheduling/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,sCAAsC,EAAE,MAAM,2EAA2E,CAAC;AACpJ,OAAO,EAAsB,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/scheduling/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,sCAAsC,EAAE,MAAM,2EAA2E,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,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"}
|