@meshmakers/octo-services 2.0.2304-13005 → 2.0.2304-23001
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/README.md +24 -28
- package/esm2020/lib/models/pagedGraphResultDto.mjs +8 -4
- package/esm2020/lib/octo-services.module.mjs +28 -28
- package/esm2020/lib/options/octo-service-options.mjs +7 -3
- package/esm2020/lib/services/octo-graph-ql-service-base.mjs +95 -95
- package/esm2020/lib/shared/graphQL.mjs +13 -13
- package/esm2020/meshmakers-octo-services.mjs +4 -4
- package/esm2020/public-api.mjs +9 -9
- package/fesm2015/meshmakers-octo-services.mjs +137 -129
- package/fesm2015/meshmakers-octo-services.mjs.map +1 -1
- package/fesm2020/meshmakers-octo-services.mjs +137 -129
- package/fesm2020/meshmakers-octo-services.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/models/pagedGraphResultDto.d.ts +5 -4
- package/lib/octo-services.module.d.ts +9 -9
- package/lib/options/octo-service-options.d.ts +5 -4
- package/lib/services/octo-graph-ql-service-base.d.ts +21 -20
- package/lib/shared/graphQL.d.ts +5 -5
- package/package.json +8 -8
- package/public-api.d.ts +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meshmakers-octo-services.mjs","sources":["../../../../projects/meshmakers/octo-services/src/lib/models/pagedGraphResultDto.ts","../../../../projects/meshmakers/octo-services/src/lib/services/octo-graph-ql-service-base.ts","../../../../projects/meshmakers/octo-services/src/lib/options/octo-service-options.ts","../../../../projects/meshmakers/octo-services/src/lib/octo-services.module.ts","../../../../projects/meshmakers/octo-services/src/lib/shared/graphQL.ts","../../../../projects/meshmakers/octo-services/src/public-api.ts","../../../../projects/meshmakers/octo-services/src/meshmakers-octo-services.ts"],"sourcesContent":["import {PagedResultDto} from \"@meshmakers/shared-services\";\r\n\r\nexport class PagedGraphResultDto<P, C> extends PagedResultDto<C> {\r\n\r\n document: P;\r\n}\r\n","import {DocumentNode} from \"graphql\";\r\nimport {finalize, map} from \"rxjs/operators\";\r\nimport {Apollo} from \"apollo-angular\";\r\nimport {OctoServiceOptions} from \"../options/octo-service-options\";\r\nimport {PagedGraphResultDto} from \"../models/pagedGraphResultDto\";\r\nimport {PagedResultDto} from \"@meshmakers/shared-services\";\r\nimport {HttpLink} from 'apollo-angular/http';\r\nimport {InMemoryCache} from '@apollo/client/core';\r\n\r\nexport class OctoGraphQLServiceBase {\r\n\r\n constructor(private apollo: Apollo, private httpLink: HttpLink, private octoServiceOptions: OctoServiceOptions) {\r\n }\r\n\r\n protected getEntities<TResult, TEntity, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedResultDto<TEntity>, result: TResult) => void) {\r\n\r\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\r\n return query.pipe(map(result => {\r\n\r\n const resultSet = new PagedResultDto<TEntity>();\r\n\r\n if (result.errors) {\r\n console.error(result.errors);\r\n throw Error(\"Error in GraphQL statement.\")\r\n } else if (result.data) {\r\n f(resultSet, result.data);\r\n }\r\n return resultSet;\r\n }));\r\n }\r\n\r\n protected getGraphEntities<TResult, TP, TC, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedGraphResultDto<TP, TC>, result: TResult) => void) {\r\n\r\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\r\n return query.pipe(map(result => {\r\n\r\n const resultSet = new PagedGraphResultDto<TP, TC>();\r\n\r\n if (result.errors) {\r\n console.error(result.errors);\r\n throw Error(\"Error in GraphQL statement.\")\r\n } else if (result.data) {\r\n f(resultSet, result.data);\r\n }\r\n return resultSet;\r\n }));\r\n }\r\n\r\n protected getEntityDetail<TResult, TEntity, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (result: TResult) => TEntity) {\r\n\r\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\r\n return query.pipe(map(result => {\r\n\r\n if (result.errors) {\r\n console.error(result.errors);\r\n throw Error(\"Error in GraphQL statement.\")\r\n } else if (result.data) {\r\n return f(result.data);\r\n }\r\n return null;\r\n }));\r\n }\r\n\r\n protected createUpdateEntity<TResult, TEntity, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult) => TEntity) {\r\n\r\n this.createApolloForTenant(tenantId);\r\n\r\n return this.apollo.use(tenantId).mutate<TResult>({\r\n mutation: queryNode,\r\n variables: variables\r\n }).pipe(\r\n map(value => f(value.data)),\r\n finalize(() => this.apollo.use(tenantId).client.reFetchObservableQueries(true))\r\n );\r\n }\r\n\r\n protected deleteEntity<TResult, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult) => boolean) {\r\n this.createApolloForTenant(tenantId);\r\n\r\n return this.apollo.use(tenantId).mutate<TResult>({\r\n mutation: queryNode,\r\n variables: variables\r\n }).pipe(\r\n map(value => f(value.data)),\r\n finalize(() => this.apollo.use(tenantId).getClient().reFetchObservableQueries(true))\r\n );\r\n }\r\n\r\n private createApolloForTenant(tenantId: string) {\r\n\r\n const result = this.apollo.use(tenantId);\r\n if (result) {\r\n return;\r\n }\r\n\r\n const uri = `${this.octoServiceOptions.assetServices}tenants/${tenantId}/GraphQL`;\r\n\r\n this.apollo.createNamed(tenantId,\r\n {\r\n link: this.httpLink.create({uri}),\r\n cache: new InMemoryCache({\r\n dataIdFromObject: o => <string>o.rtId\r\n }),\r\n });\r\n }\r\n\r\n private prepareWatchQuery<TResult, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode) {\r\n this.createApolloForTenant(tenantId);\r\n\r\n return this.apollo.use(tenantId).watchQuery<TResult>({\r\n query: queryNode,\r\n variables: variables\r\n }).valueChanges;\r\n }\r\n\r\n private prepareQuery<TResult, TVariable>(tenantId: string, variables: TVariable, queryNode: DocumentNode) {\r\n this.createApolloForTenant(tenantId);\r\n\r\n return this.apollo.use(tenantId).query<TResult>({\r\n query: queryNode,\r\n variables: variables,\r\n fetchPolicy: \"network-only\"\r\n });\r\n }\r\n\r\n\r\n}\r\n","export class OctoServiceOptions {\r\n assetServices: string;\r\n defaultDataSourceId?: string;\r\n}\r\n","import {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {OctoServiceOptions} from \"./options/octo-service-options\";\r\n\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [],\r\n exports: []\r\n})\r\nexport class OctoServicesModule {\r\n static forRoot(octoServiceOptions: OctoServiceOptions): ModuleWithProviders<OctoServicesModule> {\r\n return {\r\n ngModule: OctoServicesModule,\r\n providers: [\r\n {\r\n provide: OctoServiceOptions,\r\n useValue: octoServiceOptions\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n","export class GraphQL {\r\n\r\n public static getCursor(position: number): string {\r\n return btoa(`arrayconnection:${position}`);\r\n }\r\n\r\n public static offsetToCursor(offset: number): string {\r\n if (!offset) {\r\n return null;\r\n }\r\n\r\n return this.getCursor(offset - 1);\r\n }\r\n}\r\n\r\nexport const GraphQLCloneIgnoredProperties = [\"id\", \"rtId\", \"__typename\"];\r\n","/*\r\n * Public API Surface of osp-services\r\n */\r\n\r\nexport * from './lib/services/octo-graph-ql-service-base';\r\nexport * from './lib/options/octo-service-options';\r\nexport * from './lib/octo-services.module';\r\nexport * from './lib/models/pagedGraphResultDto';\r\nexport * from './lib/shared/graphQL';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEM,MAAO,mBAA0B,SAAQ,cAAiB,CAAA;AAG/D;;MCIY,sBAAsB,CAAA;AAEjC,IAAA,WAAA,CAAoB,MAAc,EAAU,QAAkB,EAAU,kBAAsC,EAAA;QAA1F,IAA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AAA,CAAA;gHAAlB,kBAAkB,EAAA,CAAA,CAAA;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;MCRY,OAAO,CAAA;IAEX,OAAO,SAAS,CAAC,QAAgB,EAAA;AACtC,QAAA,OAAO,IAAI,CAAC,CAAA,gBAAA,EAAmB,QAAQ,CAAA,CAAE,CAAC,CAAC;KAC5C;IAEM,OAAO,cAAc,CAAC,MAAc,EAAA;QACzC,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,OAAO,IAAI,CAAC;AACb,SAAA;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KACnC;AACF,CAAA;AAEY,MAAA,6BAA6B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY;;ACfxE;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"meshmakers-octo-services.mjs","sources":["../../../../projects/meshmakers/octo-services/src/lib/models/pagedGraphResultDto.ts","../../../../projects/meshmakers/octo-services/src/lib/services/octo-graph-ql-service-base.ts","../../../../projects/meshmakers/octo-services/src/lib/options/octo-service-options.ts","../../../../projects/meshmakers/octo-services/src/lib/octo-services.module.ts","../../../../projects/meshmakers/octo-services/src/lib/shared/graphQL.ts","../../../../projects/meshmakers/octo-services/src/public-api.ts","../../../../projects/meshmakers/octo-services/src/meshmakers-octo-services.ts"],"sourcesContent":["import {PagedResultDto} from \"@meshmakers/shared-services\";\n\nexport class PagedGraphResultDto<P, C> extends PagedResultDto<C> {\n\n document: P | null;\n\n constructor() {\n super();\n\n this.document = null;\n }\n}\n","import {DocumentNode} from \"graphql\";\nimport {finalize, map} from \"rxjs/operators\";\nimport {Apollo} from \"apollo-angular\";\nimport {OctoServiceOptions} from \"../options/octo-service-options\";\nimport {PagedGraphResultDto} from \"../models/pagedGraphResultDto\";\nimport {PagedResultDto} from \"@meshmakers/shared-services\";\nimport {HttpLink} from 'apollo-angular/http';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {OperationVariables} from \"@apollo/client/core/types\";\nimport {EmptyObject} from \"apollo-angular/types\";\n\nexport class OctoGraphQLServiceBase {\n\n constructor(private apollo: Apollo, private httpLink: HttpLink, private octoServiceOptions: OctoServiceOptions) {\n }\n\n protected getEntities<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedResultDto<TEntity>, result: TResult) => void) {\n\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\n return query.pipe(map(result => {\n\n const resultSet = new PagedResultDto<TEntity>();\n\n if (result.errors) {\n console.error(result.errors);\n throw Error(\"Error in GraphQL statement.\")\n } else if (result.data) {\n f(resultSet, result.data);\n }\n return resultSet;\n }));\n }\n\n protected getGraphEntities<TResult, TP, TC, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedGraphResultDto<TP, TC>, result: TResult) => void) {\n\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\n return query.pipe(map(result => {\n\n const resultSet = new PagedGraphResultDto<TP, TC>();\n\n if (result.errors) {\n console.error(result.errors);\n throw Error(\"Error in GraphQL statement.\")\n } else if (result.data) {\n f(resultSet, result.data);\n }\n return resultSet;\n }));\n }\n\n protected getEntityDetail<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (result: TResult) => TEntity) {\n\n const query = watchQuery ? this.prepareWatchQuery<TResult, TVariable>(tenantId, variables, queryNode) : this.prepareQuery<TResult, TVariable>(tenantId, variables, queryNode);\n return query.pipe(map(result => {\n\n if (result.errors) {\n console.error(result.errors);\n throw Error(\"Error in GraphQL statement.\")\n } else if (result.data) {\n return f(result.data);\n }\n return null;\n }));\n }\n\n protected createUpdateEntity<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => TEntity) {\n\n this.createApolloForTenant(tenantId);\n\n return this.apollo.use(tenantId).mutate<TResult>({\n mutation: queryNode,\n variables: variables\n }).pipe(\n map(value => f(value.data)),\n finalize(() => this.apollo.use(tenantId).client.reFetchObservableQueries(true))\n );\n }\n\n protected deleteEntity<TResult, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => boolean) {\n this.createApolloForTenant(tenantId);\n\n return this.apollo.use(tenantId).mutate<TResult>({\n mutation: queryNode,\n variables: variables\n }).pipe(\n map(value => f(value.data)),\n finalize(() => this.apollo.use(tenantId).client.reFetchObservableQueries(true))\n );\n }\n\n private createApolloForTenant(tenantId: string) {\n\n const result = this.apollo.use(tenantId);\n if (result) {\n return;\n }\n\n const uri = `${this.octoServiceOptions.assetServices}tenants/${tenantId}/GraphQL`;\n\n this.apollo.createNamed(tenantId,\n {\n link: this.httpLink.create({uri}),\n cache: new InMemoryCache({\n dataIdFromObject: o => <string>o['rtId']\n }),\n });\n }\n\n private prepareWatchQuery<TResult, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode) {\n this.createApolloForTenant(tenantId);\n\n return this.apollo.use(tenantId).watchQuery<TResult>({\n query: queryNode,\n variables: variables\n }).valueChanges;\n }\n\n private prepareQuery<TResult, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode) {\n this.createApolloForTenant(tenantId);\n\n return this.apollo.use(tenantId).query<TResult>({\n query: queryNode,\n variables: variables,\n fetchPolicy: \"network-only\"\n });\n }\n\n\n}\n","export class OctoServiceOptions {\n assetServices: string | null;\n defaultDataSourceId?: string;\n\n constructor() {\n this.assetServices = null;\n this.defaultDataSourceId = undefined;\n }\n}\n","import {ModuleWithProviders, NgModule} from '@angular/core';\nimport {OctoServiceOptions} from \"./options/octo-service-options\";\n\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: []\n})\nexport class OctoServicesModule {\n static forRoot(octoServiceOptions: OctoServiceOptions): ModuleWithProviders<OctoServicesModule> {\n return {\n ngModule: OctoServicesModule,\n providers: [\n {\n provide: OctoServiceOptions,\n useValue: octoServiceOptions\n }\n ]\n }\n }\n}\n","export class GraphQL {\n\n public static getCursor(position: number): string {\n return btoa(`arrayconnection:${position}`);\n }\n\n public static offsetToCursor(offset: number): string | null {\n if (!offset) {\n return null;\n }\n\n return this.getCursor(offset - 1);\n }\n}\n\nexport const GraphQLCloneIgnoredProperties = [\"id\", \"rtId\", \"__typename\"];\n","/*\n * Public API Surface of octo-services\n */\n\nexport * from './lib/services/octo-graph-ql-service-base';\nexport * from './lib/options/octo-service-options';\nexport * from './lib/octo-services.module';\nexport * from './lib/models/pagedGraphResultDto';\nexport * from './lib/shared/graphQL';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEM,MAAO,mBAA0B,SAAQ,cAAiB,CAAA;AAI9D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AAER,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;KACtB;AACF;;MCAY,sBAAsB,CAAA;AAEjC,IAAA,WAAA,CAAoB,MAAc,EAAU,QAAkB,EAAU,kBAAsC,EAAA;QAA1F,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAU,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAAU,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAoB;KAC7G;IAES,WAAW,CAAyD,QAAgB,EAAE,SAAoB,EAAE,SAAu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,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;MCRY,OAAO,CAAA;IAEX,OAAO,SAAS,CAAC,QAAgB,EAAA;AACtC,QAAA,OAAO,IAAI,CAAC,CAAA,gBAAA,EAAmB,QAAQ,CAAA,CAAE,CAAC,CAAC;KAC5C;IAEM,OAAO,cAAc,CAAC,MAAc,EAAA;QACzC,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,OAAO,IAAI,CAAC;AACb,SAAA;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KACnC;AACF,CAAA;AAEY,MAAA,6BAA6B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY;;ACfxE;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@meshmakers/octo-services" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@meshmakers/octo-services" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PagedResultDto } from "@meshmakers/shared-services";
|
|
2
|
-
export declare class PagedGraphResultDto<P, C> extends PagedResultDto<C> {
|
|
3
|
-
document: P;
|
|
4
|
-
|
|
1
|
+
import { PagedResultDto } from "@meshmakers/shared-services";
|
|
2
|
+
export declare class PagedGraphResultDto<P, C> extends PagedResultDto<C> {
|
|
3
|
+
document: P | null;
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { OctoServiceOptions } from "./options/octo-service-options";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OctoServicesModule {
|
|
5
|
-
static forRoot(octoServiceOptions: OctoServiceOptions): ModuleWithProviders<OctoServicesModule>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OctoServicesModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OctoServicesModule, never, never, never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OctoServicesModule>;
|
|
9
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { OctoServiceOptions } from "./options/octo-service-options";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OctoServicesModule {
|
|
5
|
+
static forRoot(octoServiceOptions: OctoServiceOptions): ModuleWithProviders<OctoServicesModule>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OctoServicesModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OctoServicesModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<OctoServicesModule>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare class OctoServiceOptions {
|
|
2
|
-
assetServices: string;
|
|
3
|
-
defaultDataSourceId?: string;
|
|
4
|
-
|
|
1
|
+
export declare class OctoServiceOptions {
|
|
2
|
+
assetServices: string | null;
|
|
3
|
+
defaultDataSourceId?: string;
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { DocumentNode } from "graphql";
|
|
2
|
-
import { Apollo } from "apollo-angular";
|
|
3
|
-
import { OctoServiceOptions } from "../options/octo-service-options";
|
|
4
|
-
import { PagedGraphResultDto } from "../models/pagedGraphResultDto";
|
|
5
|
-
import { PagedResultDto } from "@meshmakers/shared-services";
|
|
6
|
-
import { HttpLink } from 'apollo-angular/http';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected
|
|
14
|
-
protected
|
|
15
|
-
protected
|
|
16
|
-
protected
|
|
17
|
-
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
import { Apollo } from "apollo-angular";
|
|
3
|
+
import { OctoServiceOptions } from "../options/octo-service-options";
|
|
4
|
+
import { PagedGraphResultDto } from "../models/pagedGraphResultDto";
|
|
5
|
+
import { PagedResultDto } from "@meshmakers/shared-services";
|
|
6
|
+
import { HttpLink } from 'apollo-angular/http';
|
|
7
|
+
import { OperationVariables } from "@apollo/client/core/types";
|
|
8
|
+
export declare class OctoGraphQLServiceBase {
|
|
9
|
+
private apollo;
|
|
10
|
+
private httpLink;
|
|
11
|
+
private octoServiceOptions;
|
|
12
|
+
constructor(apollo: Apollo, httpLink: HttpLink, octoServiceOptions: OctoServiceOptions);
|
|
13
|
+
protected getEntities<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedResultDto<TEntity>, result: TResult) => void): import("rxjs").Observable<PagedResultDto<TEntity>>;
|
|
14
|
+
protected getGraphEntities<TResult, TP, TC, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedGraphResultDto<TP, TC>, result: TResult) => void): import("rxjs").Observable<PagedGraphResultDto<TP, TC>>;
|
|
15
|
+
protected getEntityDetail<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (result: TResult) => TEntity): import("rxjs").Observable<TEntity | null>;
|
|
16
|
+
protected createUpdateEntity<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => TEntity): import("rxjs").Observable<TEntity>;
|
|
17
|
+
protected deleteEntity<TResult, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => boolean): import("rxjs").Observable<boolean>;
|
|
18
|
+
private createApolloForTenant;
|
|
19
|
+
private prepareWatchQuery;
|
|
20
|
+
private prepareQuery;
|
|
21
|
+
}
|
package/lib/shared/graphQL.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class GraphQL {
|
|
2
|
-
static getCursor(position: number): string;
|
|
3
|
-
static offsetToCursor(offset: number): string;
|
|
4
|
-
}
|
|
5
|
-
export declare const GraphQLCloneIgnoredProperties: string[];
|
|
1
|
+
export declare class GraphQL {
|
|
2
|
+
static getCursor(position: number): string;
|
|
3
|
+
static offsetToCursor(offset: number): string | null;
|
|
4
|
+
}
|
|
5
|
+
export declare const GraphQLCloneIgnoredProperties: string[];
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshmakers/octo-services",
|
|
3
|
-
"version": "2.0.2304-
|
|
4
|
-
"dependencies": {
|
|
5
|
-
"tslib": "^2.5.0"
|
|
6
|
-
},
|
|
3
|
+
"version": "2.0.2304-23001",
|
|
7
4
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "^15.2.
|
|
9
|
-
"@angular/core": "^15.2.
|
|
5
|
+
"@angular/common": "^15.2.0",
|
|
6
|
+
"@angular/core": "^15.2.0"
|
|
10
7
|
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
11
12
|
"module": "fesm2015/meshmakers-octo-services.mjs",
|
|
12
13
|
"es2020": "fesm2020/meshmakers-octo-services.mjs",
|
|
13
14
|
"esm2020": "esm2020/meshmakers-octo-services.mjs",
|
|
@@ -26,6 +27,5 @@
|
|
|
26
27
|
"node": "./fesm2015/meshmakers-octo-services.mjs",
|
|
27
28
|
"default": "./fesm2020/meshmakers-octo-services.mjs"
|
|
28
29
|
}
|
|
29
|
-
}
|
|
30
|
-
"sideEffects": false
|
|
30
|
+
}
|
|
31
31
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lib/services/octo-graph-ql-service-base';
|
|
2
|
-
export * from './lib/options/octo-service-options';
|
|
3
|
-
export * from './lib/octo-services.module';
|
|
4
|
-
export * from './lib/models/pagedGraphResultDto';
|
|
5
|
-
export * from './lib/shared/graphQL';
|
|
1
|
+
export * from './lib/services/octo-graph-ql-service-base';
|
|
2
|
+
export * from './lib/options/octo-service-options';
|
|
3
|
+
export * from './lib/octo-services.module';
|
|
4
|
+
export * from './lib/models/pagedGraphResultDto';
|
|
5
|
+
export * from './lib/shared/graphQL';
|