@daffodil/core 0.62.2 → 0.62.4
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/esm2020/graphql/apollo/queued-apollo/queued-apollo.service.mjs +16 -12
- package/fesm2015/daffodil-core-graphql.mjs +15 -11
- package/fesm2015/daffodil-core-graphql.mjs.map +1 -1
- package/fesm2020/daffodil-core-graphql.mjs +15 -11
- package/fesm2020/daffodil-core-graphql.mjs.map +1 -1
- package/graphql/package.json +1 -1
- package/package.json +1 -1
- package/routing/package.json +1 -1
- package/state/package.json +1 -1
- package/state/testing/package.json +1 -1
- package/testing/package.json +1 -1
|
@@ -28,17 +28,21 @@ export class DaffQueuedApollo {
|
|
|
28
28
|
}
|
|
29
29
|
addRequestToQueue(subscriber, request) {
|
|
30
30
|
this.queue.push(() => {
|
|
31
|
-
const sub = request.subscribe(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
const sub = request.subscribe({
|
|
32
|
+
next: response => {
|
|
33
|
+
// emit the outer observable
|
|
34
|
+
subscriber.next(response);
|
|
35
|
+
subscriber.complete();
|
|
36
|
+
this.finishRequestSubscription(sub);
|
|
37
|
+
},
|
|
38
|
+
error: error => {
|
|
39
|
+
subscriber.error(error);
|
|
40
|
+
this.finishRequestSubscription(sub);
|
|
41
|
+
},
|
|
42
|
+
complete: () => {
|
|
43
|
+
subscriber.complete();
|
|
44
|
+
this.finishRequestSubscription(sub);
|
|
45
|
+
},
|
|
42
46
|
});
|
|
43
47
|
});
|
|
44
48
|
// start the queue if previously empty
|
|
@@ -61,4 +65,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
61
65
|
providedIn: 'root',
|
|
62
66
|
}]
|
|
63
67
|
}], ctorParameters: function () { return [{ type: i1.Apollo }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ICAgIHN1YnNjcmliZXIubmV4dChyZXNwb25zZSk7XG4gICAgICAgICAgc3Vic2NyaWJlci5jb21wbGV0ZSgpO1xuXG4gICAgICAgICAgdGhpcy5maW5pc2hSZXF1ZXN0U3Vic2NyaXB0aW9uKHN1Yik7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yOiBlcnJvciA9PiB7XG4gICAgICAgICAgc3Vic2NyaWJlci5lcnJvcihlcnJvcik7XG4gICAgICAgICAgdGhpcy5maW5pc2hSZXF1ZXN0U3Vic2NyaXB0aW9uKHN1Yik7XG4gICAgICAgIH0sXG4gICAgICAgIGNvbXBsZXRlOiAoKSA9PiB7XG4gICAgICAgICAgc3Vic2NyaWJlci5jb21wbGV0ZSgpO1xuICAgICAgICAgIHRoaXMuZmluaXNoUmVxdWVzdFN1YnNjcmlwdGlvbihzdWIpO1xuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICAvLyBzdGFydCB0aGUgcXVldWUgaWYgcHJldmlvdXNseSBlbXB0eVxuICAgIGlmICh0aGlzLnF1ZXVlLmxlbmd0aCA9PT0gMSkge1xuICAgICAgdGhpcy5xdWV1ZVswXSgpO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgZmluaXNoUmVxdWVzdFN1YnNjcmlwdGlvbihyZXF1ZXN0U3Vic2NyaXB0aW9uOiBTdWJzY3JpcHRpb24pOiB2b2lkIHtcbiAgICByZXF1ZXN0U3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG5cbiAgICAvLyBwcm9jZXNzIHF1ZXVlXG4gICAgdGhpcy5xdWV1ZS5zaGlmdCgpO1xuICAgIHRoaXMucXVldWVbMF0/LigpO1xuICB9XG59XG4iXX0=
|
|
@@ -61,17 +61,21 @@ class DaffQueuedApollo {
|
|
|
61
61
|
}
|
|
62
62
|
addRequestToQueue(subscriber, request) {
|
|
63
63
|
this.queue.push(() => {
|
|
64
|
-
const sub = request.subscribe(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
const sub = request.subscribe({
|
|
65
|
+
next: response => {
|
|
66
|
+
// emit the outer observable
|
|
67
|
+
subscriber.next(response);
|
|
68
|
+
subscriber.complete();
|
|
69
|
+
this.finishRequestSubscription(sub);
|
|
70
|
+
},
|
|
71
|
+
error: error => {
|
|
72
|
+
subscriber.error(error);
|
|
73
|
+
this.finishRequestSubscription(sub);
|
|
74
|
+
},
|
|
75
|
+
complete: () => {
|
|
76
|
+
subscriber.complete();
|
|
77
|
+
this.finishRequestSubscription(sub);
|
|
78
|
+
},
|
|
75
79
|
});
|
|
76
80
|
});
|
|
77
81
|
// start the queue if previously empty
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-core-graphql.mjs","sources":["../../../libs/core/graphql/src/fragments/build-fragment-name-spread.ts","../../../libs/core/graphql/src/fragments/build-fragment-definition.ts","../../../libs/core/graphql/src/apollo/queued-apollo/queued-apollo.service.ts","../../../libs/core/graphql/src/daffodil-core-graphql.ts"],"sourcesContent":["import {\n DocumentNode,\n FragmentDefinitionNode,\n} from 'graphql';\n\nimport { unique } from '@daffodil/core';\n\nexport const getFragmentNames = (fragment: DocumentNode) =>\n fragment.definitions.filter(def =>\n def.kind === 'FragmentDefinition',\n ).map(def =>\n (<FragmentDefinitionNode>def).name.value,\n );\n\n/**\n * Builds a list of the first fragment name present inside the specified GraphQL document nodes.\n * Returns an empty array if no fragments have been defined or if null is passed.\n *\n * @param fragments The created fragments.\n */\nconst daffGetFragmentNames = (...fragments: DocumentNode[]): string[] =>\n fragments.reduce((acc, fragment) => {\n const names = getFragmentNames(fragment);\n if (names[0]) {\n acc.push(names[0]);\n }\n return acc;\n }, []);\n\n/**\n * Builds a string of fragment names that can be interpolated into a GraphQL query.\n * Each name is separated by a newline character: '\\n'.\n * If an empty array is passed, an empty string is returned.\n * Only the first fragment name from each passed fragment is returned.\n *\n * @param fragments A list of GraphQL documents that contain fragments.\n */\nexport const daffBuildFragmentNameSpread = (...fragments: DocumentNode[]): string =>\n unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\\n`), '');\n","import { DocumentNode } from 'graphql';\n\n/**\n * Builds a string of fragment definitions that can be interpolated into a GraphQL query.\n * Each definition is separated by a newline character: '\\n'.\n *\n * @param documents A list of GraphQL documents that should only contain fragments.\n */\nexport const daffBuildFragmentDefinition = (...documents: DocumentNode[]): string =>\n documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\\n`), '');\n","import { Injectable } from '@angular/core';\nimport {\n MutationOptions,\n FetchResult,\n} from '@apollo/client/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n Subscriber,\n Subscription,\n} from 'rxjs';\n\n/**\n * A service that will queue mutate calls to Apollo.\n * It will not send subsequent mutate requests until the previous one has been completed.\n * This is useful for avoiding race conditions on the backend.\n * This should be used alongside Apollo.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffQueuedApollo {\n queue: (() => void)[] = [];\n\n constructor(\n private apollo: Apollo,\n ) {}\n\n /**\n * Queue up a mutate request.\n * The request will not actually be queued until the returned observable is subscribed.\n * If the queue is empty, the request will be sent when it enters the queue.\n * Otherwise, it will be sent when it reaches the front of the queue.\n * The observable will complete after it emits once.\n *\n * @param options Mutation options.\n */\n mutate<T, V = Record<string, any>>(options: MutationOptions<T, V>): Observable<FetchResult<T>> {\n return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));\n }\n\n private addRequestToQueue(subscriber: Subscriber<any>, request: Observable<any>): void {\n this.queue.push(() => {\n const sub = request.subscribe(\n response => {\n // emit the outer observable\n subscriber.next(response);\n subscriber.complete();\n\n this.finishRequestSubscription(sub);\n },\n error => {\n subscriber.error(error);\n this.finishRequestSubscription(sub);\n },\n () => {\n subscriber.complete();\n this.finishRequestSubscription(sub);\n },\n );\n });\n\n // start the queue if previously empty\n if (this.queue.length === 1) {\n this.queue[0]();\n }\n }\n\n private finishRequestSubscription(requestSubscription: Subscription): void {\n requestSubscription.unsubscribe();\n\n // process queue\n this.queue.shift();\n this.queue[0]?.();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,gBAAgB,GAAG,CAAC,QAAsB,KACrD,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAC7B,GAAG,CAAC,IAAI,KAAK,oBAAoB,CAClC,CAAC,GAAG,CAAC,GAAG,IACkB,GAAI,CAAC,IAAI,CAAC,KAAK,CACzC,CAAC;AAEJ;;;;;AAKG;AACH,MAAM,oBAAoB,GAAG,CAAC,GAAG,SAAyB,KACxD,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAI;AACjC,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACzC,IAAA,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;QACZ,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpB,KAAA;AACD,IAAA,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC;AAET;;;;;;;AAOG;AACU,MAAA,2BAA2B,GAAG,CAAC,GAAG,SAAyB,KACtE,MAAM,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,CAAA,EAAA,CAAI,CAAC,EAAE,EAAE;;ACpCjG;;;;;AAKG;AACU,MAAA,2BAA2B,GAAG,CAAC,GAAG,SAAyB,KACtE,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,GAAG,CAAC,MAAM,CAAC,CAAA,EAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAA,EAAA,CAAI,CAAC,EAAE,EAAE;;ACGrF;;;;;AAKG;MAIU,gBAAgB,CAAA;AAG3B,IAAA,WAAA,CACU,MAAc,EAAA;AAAd,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAHxB,QAAA,IAAK,CAAA,KAAA,GAAmB,EAAE,CAAC;KAIvB;AAEJ;;;;;;;;AAQG;AACH,IAAA,MAAM,CAA6B,OAA8B,EAAA;QAC/D,OAAO,IAAI,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KACtG;IAEO,iBAAiB,CAAC,UAA2B,EAAE,OAAwB,EAAA;AAC7E,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAK;
|
|
1
|
+
{"version":3,"file":"daffodil-core-graphql.mjs","sources":["../../../libs/core/graphql/src/fragments/build-fragment-name-spread.ts","../../../libs/core/graphql/src/fragments/build-fragment-definition.ts","../../../libs/core/graphql/src/apollo/queued-apollo/queued-apollo.service.ts","../../../libs/core/graphql/src/daffodil-core-graphql.ts"],"sourcesContent":["import {\n DocumentNode,\n FragmentDefinitionNode,\n} from 'graphql';\n\nimport { unique } from '@daffodil/core';\n\nexport const getFragmentNames = (fragment: DocumentNode) =>\n fragment.definitions.filter(def =>\n def.kind === 'FragmentDefinition',\n ).map(def =>\n (<FragmentDefinitionNode>def).name.value,\n );\n\n/**\n * Builds a list of the first fragment name present inside the specified GraphQL document nodes.\n * Returns an empty array if no fragments have been defined or if null is passed.\n *\n * @param fragments The created fragments.\n */\nconst daffGetFragmentNames = (...fragments: DocumentNode[]): string[] =>\n fragments.reduce((acc, fragment) => {\n const names = getFragmentNames(fragment);\n if (names[0]) {\n acc.push(names[0]);\n }\n return acc;\n }, []);\n\n/**\n * Builds a string of fragment names that can be interpolated into a GraphQL query.\n * Each name is separated by a newline character: '\\n'.\n * If an empty array is passed, an empty string is returned.\n * Only the first fragment name from each passed fragment is returned.\n *\n * @param fragments A list of GraphQL documents that contain fragments.\n */\nexport const daffBuildFragmentNameSpread = (...fragments: DocumentNode[]): string =>\n unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\\n`), '');\n","import { DocumentNode } from 'graphql';\n\n/**\n * Builds a string of fragment definitions that can be interpolated into a GraphQL query.\n * Each definition is separated by a newline character: '\\n'.\n *\n * @param documents A list of GraphQL documents that should only contain fragments.\n */\nexport const daffBuildFragmentDefinition = (...documents: DocumentNode[]): string =>\n documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\\n`), '');\n","import { Injectable } from '@angular/core';\nimport {\n MutationOptions,\n FetchResult,\n} from '@apollo/client/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n Subscriber,\n Subscription,\n} from 'rxjs';\n\n/**\n * A service that will queue mutate calls to Apollo.\n * It will not send subsequent mutate requests until the previous one has been completed.\n * This is useful for avoiding race conditions on the backend.\n * This should be used alongside Apollo.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffQueuedApollo {\n queue: (() => void)[] = [];\n\n constructor(\n private apollo: Apollo,\n ) {}\n\n /**\n * Queue up a mutate request.\n * The request will not actually be queued until the returned observable is subscribed.\n * If the queue is empty, the request will be sent when it enters the queue.\n * Otherwise, it will be sent when it reaches the front of the queue.\n * The observable will complete after it emits once.\n *\n * @param options Mutation options.\n */\n mutate<T, V = Record<string, any>>(options: MutationOptions<T, V>): Observable<FetchResult<T>> {\n return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));\n }\n\n private addRequestToQueue(subscriber: Subscriber<any>, request: Observable<any>): void {\n this.queue.push(() => {\n const sub = request.subscribe({\n next: response => {\n // emit the outer observable\n subscriber.next(response);\n subscriber.complete();\n\n this.finishRequestSubscription(sub);\n },\n error: error => {\n subscriber.error(error);\n this.finishRequestSubscription(sub);\n },\n complete: () => {\n subscriber.complete();\n this.finishRequestSubscription(sub);\n },\n });\n });\n\n // start the queue if previously empty\n if (this.queue.length === 1) {\n this.queue[0]();\n }\n }\n\n private finishRequestSubscription(requestSubscription: Subscription): void {\n requestSubscription.unsubscribe();\n\n // process queue\n this.queue.shift();\n this.queue[0]?.();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,gBAAgB,GAAG,CAAC,QAAsB,KACrD,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAC7B,GAAG,CAAC,IAAI,KAAK,oBAAoB,CAClC,CAAC,GAAG,CAAC,GAAG,IACkB,GAAI,CAAC,IAAI,CAAC,KAAK,CACzC,CAAC;AAEJ;;;;;AAKG;AACH,MAAM,oBAAoB,GAAG,CAAC,GAAG,SAAyB,KACxD,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAI;AACjC,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACzC,IAAA,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;QACZ,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpB,KAAA;AACD,IAAA,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC;AAET;;;;;;;AAOG;AACU,MAAA,2BAA2B,GAAG,CAAC,GAAG,SAAyB,KACtE,MAAM,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,CAAA,EAAA,CAAI,CAAC,EAAE,EAAE;;ACpCjG;;;;;AAKG;AACU,MAAA,2BAA2B,GAAG,CAAC,GAAG,SAAyB,KACtE,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,GAAG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KAAK,CAAC,EAAE;AAC3B,YAAA,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AACjB,SAAA;KACF;AAEO,IAAA,yBAAyB,CAAC,mBAAiC,EAAA;;QACjE,mBAAmB,CAAC,WAAW,EAAE,CAAC;;AAGlC,QAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,EAAC,CAAC,CAAC,kDAAI,CAAC;KACnB;;gIArDU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhB,mBAAA,gBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA,CAAA;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACpBD;;AAEG;;;;"}
|
|
@@ -61,17 +61,21 @@ class DaffQueuedApollo {
|
|
|
61
61
|
}
|
|
62
62
|
addRequestToQueue(subscriber, request) {
|
|
63
63
|
this.queue.push(() => {
|
|
64
|
-
const sub = request.subscribe(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
const sub = request.subscribe({
|
|
65
|
+
next: response => {
|
|
66
|
+
// emit the outer observable
|
|
67
|
+
subscriber.next(response);
|
|
68
|
+
subscriber.complete();
|
|
69
|
+
this.finishRequestSubscription(sub);
|
|
70
|
+
},
|
|
71
|
+
error: error => {
|
|
72
|
+
subscriber.error(error);
|
|
73
|
+
this.finishRequestSubscription(sub);
|
|
74
|
+
},
|
|
75
|
+
complete: () => {
|
|
76
|
+
subscriber.complete();
|
|
77
|
+
this.finishRequestSubscription(sub);
|
|
78
|
+
},
|
|
75
79
|
});
|
|
76
80
|
});
|
|
77
81
|
// start the queue if previously empty
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-core-graphql.mjs","sources":["../../../libs/core/graphql/src/fragments/build-fragment-name-spread.ts","../../../libs/core/graphql/src/fragments/build-fragment-definition.ts","../../../libs/core/graphql/src/apollo/queued-apollo/queued-apollo.service.ts","../../../libs/core/graphql/src/daffodil-core-graphql.ts"],"sourcesContent":["import {\n DocumentNode,\n FragmentDefinitionNode,\n} from 'graphql';\n\nimport { unique } from '@daffodil/core';\n\nexport const getFragmentNames = (fragment: DocumentNode) =>\n fragment.definitions.filter(def =>\n def.kind === 'FragmentDefinition',\n ).map(def =>\n (<FragmentDefinitionNode>def).name.value,\n );\n\n/**\n * Builds a list of the first fragment name present inside the specified GraphQL document nodes.\n * Returns an empty array if no fragments have been defined or if null is passed.\n *\n * @param fragments The created fragments.\n */\nconst daffGetFragmentNames = (...fragments: DocumentNode[]): string[] =>\n fragments.reduce((acc, fragment) => {\n const names = getFragmentNames(fragment);\n if (names[0]) {\n acc.push(names[0]);\n }\n return acc;\n }, []);\n\n/**\n * Builds a string of fragment names that can be interpolated into a GraphQL query.\n * Each name is separated by a newline character: '\\n'.\n * If an empty array is passed, an empty string is returned.\n * Only the first fragment name from each passed fragment is returned.\n *\n * @param fragments A list of GraphQL documents that contain fragments.\n */\nexport const daffBuildFragmentNameSpread = (...fragments: DocumentNode[]): string =>\n unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\\n`), '');\n","import { DocumentNode } from 'graphql';\n\n/**\n * Builds a string of fragment definitions that can be interpolated into a GraphQL query.\n * Each definition is separated by a newline character: '\\n'.\n *\n * @param documents A list of GraphQL documents that should only contain fragments.\n */\nexport const daffBuildFragmentDefinition = (...documents: DocumentNode[]): string =>\n documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\\n`), '');\n","import { Injectable } from '@angular/core';\nimport {\n MutationOptions,\n FetchResult,\n} from '@apollo/client/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n Subscriber,\n Subscription,\n} from 'rxjs';\n\n/**\n * A service that will queue mutate calls to Apollo.\n * It will not send subsequent mutate requests until the previous one has been completed.\n * This is useful for avoiding race conditions on the backend.\n * This should be used alongside Apollo.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffQueuedApollo {\n queue: (() => void)[] = [];\n\n constructor(\n private apollo: Apollo,\n ) {}\n\n /**\n * Queue up a mutate request.\n * The request will not actually be queued until the returned observable is subscribed.\n * If the queue is empty, the request will be sent when it enters the queue.\n * Otherwise, it will be sent when it reaches the front of the queue.\n * The observable will complete after it emits once.\n *\n * @param options Mutation options.\n */\n mutate<T, V = Record<string, any>>(options: MutationOptions<T, V>): Observable<FetchResult<T>> {\n return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));\n }\n\n private addRequestToQueue(subscriber: Subscriber<any>, request: Observable<any>): void {\n this.queue.push(() => {\n const sub = request.subscribe(\n response => {\n // emit the outer observable\n subscriber.next(response);\n subscriber.complete();\n\n this.finishRequestSubscription(sub);\n },\n error => {\n subscriber.error(error);\n this.finishRequestSubscription(sub);\n },\n () => {\n subscriber.complete();\n this.finishRequestSubscription(sub);\n },\n );\n });\n\n // start the queue if previously empty\n if (this.queue.length === 1) {\n this.queue[0]();\n }\n }\n\n private finishRequestSubscription(requestSubscription: Subscription): void {\n requestSubscription.unsubscribe();\n\n // process queue\n this.queue.shift();\n this.queue[0]?.();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAOO,MAAM,gB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;;;;;AAQG;AACH,IAAA,MAAM,CAA6B,OAA8B,EAAA;QAC/D,OAAO,IAAI,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KACtG;IAEO,iBAAiB,CAAC,UAA2B,EAAE,OAAwB,EAAA;AAC7E,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAK;
|
|
1
|
+
{"version":3,"file":"daffodil-core-graphql.mjs","sources":["../../../libs/core/graphql/src/fragments/build-fragment-name-spread.ts","../../../libs/core/graphql/src/fragments/build-fragment-definition.ts","../../../libs/core/graphql/src/apollo/queued-apollo/queued-apollo.service.ts","../../../libs/core/graphql/src/daffodil-core-graphql.ts"],"sourcesContent":["import {\n DocumentNode,\n FragmentDefinitionNode,\n} from 'graphql';\n\nimport { unique } from '@daffodil/core';\n\nexport const getFragmentNames = (fragment: DocumentNode) =>\n fragment.definitions.filter(def =>\n def.kind === 'FragmentDefinition',\n ).map(def =>\n (<FragmentDefinitionNode>def).name.value,\n );\n\n/**\n * Builds a list of the first fragment name present inside the specified GraphQL document nodes.\n * Returns an empty array if no fragments have been defined or if null is passed.\n *\n * @param fragments The created fragments.\n */\nconst daffGetFragmentNames = (...fragments: DocumentNode[]): string[] =>\n fragments.reduce((acc, fragment) => {\n const names = getFragmentNames(fragment);\n if (names[0]) {\n acc.push(names[0]);\n }\n return acc;\n }, []);\n\n/**\n * Builds a string of fragment names that can be interpolated into a GraphQL query.\n * Each name is separated by a newline character: '\\n'.\n * If an empty array is passed, an empty string is returned.\n * Only the first fragment name from each passed fragment is returned.\n *\n * @param fragments A list of GraphQL documents that contain fragments.\n */\nexport const daffBuildFragmentNameSpread = (...fragments: DocumentNode[]): string =>\n unique(daffGetFragmentNames(...fragments)).reduce((acc, name) => acc.concat(`...${name}\\n`), '');\n","import { DocumentNode } from 'graphql';\n\n/**\n * Builds a string of fragment definitions that can be interpolated into a GraphQL query.\n * Each definition is separated by a newline character: '\\n'.\n *\n * @param documents A list of GraphQL documents that should only contain fragments.\n */\nexport const daffBuildFragmentDefinition = (...documents: DocumentNode[]): string =>\n documents.reduce((acc, fragment) => acc.concat(`${fragment.loc.source.body}\\n`), '');\n","import { Injectable } from '@angular/core';\nimport {\n MutationOptions,\n FetchResult,\n} from '@apollo/client/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n Subscriber,\n Subscription,\n} from 'rxjs';\n\n/**\n * A service that will queue mutate calls to Apollo.\n * It will not send subsequent mutate requests until the previous one has been completed.\n * This is useful for avoiding race conditions on the backend.\n * This should be used alongside Apollo.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffQueuedApollo {\n queue: (() => void)[] = [];\n\n constructor(\n private apollo: Apollo,\n ) {}\n\n /**\n * Queue up a mutate request.\n * The request will not actually be queued until the returned observable is subscribed.\n * If the queue is empty, the request will be sent when it enters the queue.\n * Otherwise, it will be sent when it reaches the front of the queue.\n * The observable will complete after it emits once.\n *\n * @param options Mutation options.\n */\n mutate<T, V = Record<string, any>>(options: MutationOptions<T, V>): Observable<FetchResult<T>> {\n return new Observable(subscriber => this.addRequestToQueue(subscriber, this.apollo.mutate(options)));\n }\n\n private addRequestToQueue(subscriber: Subscriber<any>, request: Observable<any>): void {\n this.queue.push(() => {\n const sub = request.subscribe({\n next: response => {\n // emit the outer observable\n subscriber.next(response);\n subscriber.complete();\n\n this.finishRequestSubscription(sub);\n },\n error: error => {\n subscriber.error(error);\n this.finishRequestSubscription(sub);\n },\n complete: () => {\n subscriber.complete();\n this.finishRequestSubscription(sub);\n },\n });\n });\n\n // start the queue if previously empty\n if (this.queue.length === 1) {\n this.queue[0]();\n }\n }\n\n private finishRequestSubscription(requestSubscription: Subscription): void {\n requestSubscription.unsubscribe();\n\n // process queue\n this.queue.shift();\n this.queue[0]?.();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';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AC,CAAC,CAAC,IAAI,CAAC;KACnB;;gIArDU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhB,mBAAA,gBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA,CAAA;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
|
package/graphql/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core/graphql","module":"../fesm2015/daffodil-core-graphql.mjs","es2020":"../fesm2020/daffodil-core-graphql.mjs","esm2020":"../esm2020/graphql/daffodil-core-graphql.mjs","fesm2020":"../fesm2020/daffodil-core-graphql.mjs","fesm2015":"../fesm2015/daffodil-core-graphql.mjs","typings":"daffodil-core-graphql.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core/graphql","module":"../fesm2015/daffodil-core-graphql.mjs","es2020":"../fesm2020/daffodil-core-graphql.mjs","esm2020":"../esm2020/graphql/daffodil-core-graphql.mjs","fesm2020":"../fesm2020/daffodil-core-graphql.mjs","fesm2015":"../fesm2015/daffodil-core-graphql.mjs","typings":"daffodil-core-graphql.d.ts","sideEffects":false,"version":"0.62.4"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/core"]}}},"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/core"]}}},"version":"0.62.4","description":"Interfaces built for daffodil/state","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/core":"^13.0.0","@angular/common":"^13.0.0","rxjs":"7.5.5"},"optionalDependencies":{"graphql":"^15.4.0","@angular/router":"^13.0.0","@apollo/client":"^3.0.0","@ngrx/store":"^13.0.0","angular-in-memory-web-api":"^0.13.0","apollo-angular":"^3.0.1","@faker-js/faker":"^7.6.0"},"module":"fesm2015/daffodil-core.mjs","es2020":"fesm2020/daffodil-core.mjs","esm2020":"esm2020/daffodil-core.mjs","fesm2020":"fesm2020/daffodil-core.mjs","fesm2015":"fesm2015/daffodil-core.mjs","typings":"daffodil-core.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./daffodil-core.d.ts","esm2020":"./esm2020/daffodil-core.mjs","es2020":"./fesm2020/daffodil-core.mjs","es2015":"./fesm2015/daffodil-core.mjs","node":"./fesm2015/daffodil-core.mjs","default":"./fesm2020/daffodil-core.mjs"},"./graphql":{"types":"./graphql/daffodil-core-graphql.d.ts","esm2020":"./esm2020/graphql/daffodil-core-graphql.mjs","es2020":"./fesm2020/daffodil-core-graphql.mjs","es2015":"./fesm2015/daffodil-core-graphql.mjs","node":"./fesm2015/daffodil-core-graphql.mjs","default":"./fesm2020/daffodil-core-graphql.mjs"},"./routing":{"types":"./routing/daffodil-core-routing.d.ts","esm2020":"./esm2020/routing/daffodil-core-routing.mjs","es2020":"./fesm2020/daffodil-core-routing.mjs","es2015":"./fesm2015/daffodil-core-routing.mjs","node":"./fesm2015/daffodil-core-routing.mjs","default":"./fesm2020/daffodil-core-routing.mjs"},"./state":{"types":"./state/daffodil-core-state.d.ts","esm2020":"./esm2020/state/daffodil-core-state.mjs","es2020":"./fesm2020/daffodil-core-state.mjs","es2015":"./fesm2015/daffodil-core-state.mjs","node":"./fesm2015/daffodil-core-state.mjs","default":"./fesm2020/daffodil-core-state.mjs"},"./state/testing":{"types":"./state/testing/daffodil-core-state-testing.d.ts","esm2020":"./esm2020/state/testing/daffodil-core-state-testing.mjs","es2020":"./fesm2020/daffodil-core-state-testing.mjs","es2015":"./fesm2015/daffodil-core-state-testing.mjs","node":"./fesm2015/daffodil-core-state-testing.mjs","default":"./fesm2020/daffodil-core-state-testing.mjs"},"./testing":{"types":"./testing/daffodil-core-testing.d.ts","esm2020":"./esm2020/testing/daffodil-core-testing.mjs","es2020":"./fesm2020/daffodil-core-testing.mjs","es2015":"./fesm2015/daffodil-core-testing.mjs","node":"./fesm2015/daffodil-core-testing.mjs","default":"./fesm2020/daffodil-core-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
package/routing/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core/routing","module":"../fesm2015/daffodil-core-routing.mjs","es2020":"../fesm2020/daffodil-core-routing.mjs","esm2020":"../esm2020/routing/daffodil-core-routing.mjs","fesm2020":"../fesm2020/daffodil-core-routing.mjs","fesm2015":"../fesm2015/daffodil-core-routing.mjs","typings":"daffodil-core-routing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core/routing","module":"../fesm2015/daffodil-core-routing.mjs","es2020":"../fesm2020/daffodil-core-routing.mjs","esm2020":"../esm2020/routing/daffodil-core-routing.mjs","fesm2020":"../fesm2020/daffodil-core-routing.mjs","fesm2015":"../fesm2015/daffodil-core-routing.mjs","typings":"daffodil-core-routing.d.ts","sideEffects":false,"version":"0.62.4"}
|
package/state/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core/state","module":"../fesm2015/daffodil-core-state.mjs","es2020":"../fesm2020/daffodil-core-state.mjs","esm2020":"../esm2020/state/daffodil-core-state.mjs","fesm2020":"../fesm2020/daffodil-core-state.mjs","fesm2015":"../fesm2015/daffodil-core-state.mjs","typings":"daffodil-core-state.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core/state","module":"../fesm2015/daffodil-core-state.mjs","es2020":"../fesm2020/daffodil-core-state.mjs","esm2020":"../esm2020/state/daffodil-core-state.mjs","fesm2020":"../fesm2020/daffodil-core-state.mjs","fesm2015":"../fesm2015/daffodil-core-state.mjs","typings":"daffodil-core-state.d.ts","sideEffects":false,"version":"0.62.4"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core/state/testing","module":"../../fesm2015/daffodil-core-state-testing.mjs","es2020":"../../fesm2020/daffodil-core-state-testing.mjs","esm2020":"../../esm2020/state/testing/daffodil-core-state-testing.mjs","fesm2020":"../../fesm2020/daffodil-core-state-testing.mjs","fesm2015":"../../fesm2015/daffodil-core-state-testing.mjs","typings":"daffodil-core-state-testing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core/state/testing","module":"../../fesm2015/daffodil-core-state-testing.mjs","es2020":"../../fesm2020/daffodil-core-state-testing.mjs","esm2020":"../../esm2020/state/testing/daffodil-core-state-testing.mjs","fesm2020":"../../fesm2020/daffodil-core-state-testing.mjs","fesm2015":"../../fesm2015/daffodil-core-state-testing.mjs","typings":"daffodil-core-state-testing.d.ts","sideEffects":false,"version":"0.62.4"}
|
package/testing/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/core/testing","module":"../fesm2015/daffodil-core-testing.mjs","es2020":"../fesm2020/daffodil-core-testing.mjs","esm2020":"../esm2020/testing/daffodil-core-testing.mjs","fesm2020":"../fesm2020/daffodil-core-testing.mjs","fesm2015":"../fesm2015/daffodil-core-testing.mjs","typings":"daffodil-core-testing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/core/testing","module":"../fesm2015/daffodil-core-testing.mjs","es2020":"../fesm2020/daffodil-core-testing.mjs","esm2020":"../esm2020/testing/daffodil-core-testing.mjs","fesm2020":"../fesm2020/daffodil-core-testing.mjs","fesm2015":"../fesm2015/daffodil-core-testing.mjs","typings":"daffodil-core-testing.d.ts","sideEffects":false,"version":"0.62.4"}
|