@meshmakers/octo-services 3.3.34 → 3.3.380
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 +94 -13
- package/fesm2022/meshmakers-octo-services.mjs +2877 -236
- package/fesm2022/meshmakers-octo-services.mjs.map +1 -1
- package/package.json +9 -6
- package/types/meshmakers-octo-services.d.ts +20627 -0
- package/index.d.ts +0 -217
package/index.d.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import * as graphql from 'graphql';
|
|
2
|
-
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { Apollo, Query } from 'apollo-angular';
|
|
4
|
-
import { PagedResultDto, DataSourceBase, MessageService } from '@meshmakers/shared-services';
|
|
5
|
-
import { HttpLink } from 'apollo-angular/http';
|
|
6
|
-
import { OperationVariables } from '@apollo/client/core/types';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
8
|
-
import { DeepPartial } from '@apollo/client/utilities';
|
|
9
|
-
import * as i0 from '@angular/core';
|
|
10
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
11
|
-
import { OperationVariables as OperationVariables$1, ApolloLink } from '@apollo/client/core';
|
|
12
|
-
import * as _apollo_client from '@apollo/client';
|
|
13
|
-
import { ObservableQuery } from '@apollo/client';
|
|
14
|
-
|
|
15
|
-
declare class OctoServiceOptions {
|
|
16
|
-
assetServices: string | null;
|
|
17
|
-
defaultDataSourceId?: string;
|
|
18
|
-
constructor();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class PagedGraphResultDto<P, C> extends PagedResultDto<C> {
|
|
22
|
-
document: P | null;
|
|
23
|
-
constructor();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare class OctoGraphQLServiceBase {
|
|
27
|
-
private readonly apollo;
|
|
28
|
-
private readonly httpLink;
|
|
29
|
-
private readonly octoServiceOptions;
|
|
30
|
-
constructor(apollo: Apollo, httpLink: HttpLink, octoServiceOptions: OctoServiceOptions);
|
|
31
|
-
protected getEntities<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedResultDto<TEntity>, result: NonNullable<TResult> | NonNullable<DeepPartial<TResult>>) => void): Observable<PagedResultDto<TEntity>>;
|
|
32
|
-
protected getGraphEntities<TResult, TP, TC, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (resultSet: PagedGraphResultDto<TP, TC>, result: NonNullable<TResult> | NonNullable<DeepPartial<TResult>>) => void): Observable<PagedGraphResultDto<TP, TC>>;
|
|
33
|
-
protected getEntityDetail<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, watchQuery: boolean, f: (result: NonNullable<TResult> | NonNullable<DeepPartial<TResult>>) => TEntity): Observable<TEntity | null>;
|
|
34
|
-
protected createUpdateEntity<TResult, TEntity, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => TEntity): Observable<TEntity>;
|
|
35
|
-
protected deleteEntity<TResult, TVariable extends OperationVariables>(tenantId: string, variables: TVariable, queryNode: DocumentNode, f: (result: TResult | null | undefined) => boolean): Observable<boolean>;
|
|
36
|
-
private createApolloForTenant;
|
|
37
|
-
private prepareWatchQuery;
|
|
38
|
-
private prepareQuery;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare class OctoServicesModule {
|
|
42
|
-
static forRoot(octoServiceOptions: OctoServiceOptions): ModuleWithProviders<OctoServicesModule>;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OctoServicesModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OctoServicesModule, never, never, never>;
|
|
45
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OctoServicesModule>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare class GraphQL {
|
|
49
|
-
static getCursor(position: number): string;
|
|
50
|
-
static offsetToCursor(offset: number): string | null;
|
|
51
|
-
}
|
|
52
|
-
declare const GraphQLCommonIgnoredProperties: string[];
|
|
53
|
-
declare const GraphQLCloneIgnoredProperties: string[];
|
|
54
|
-
|
|
55
|
-
type Maybe<T> = T | null;
|
|
56
|
-
type InputMaybe<T> = Maybe<T>;
|
|
57
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
58
|
-
type Scalars = {
|
|
59
|
-
ID: {
|
|
60
|
-
input: string;
|
|
61
|
-
output: string;
|
|
62
|
-
};
|
|
63
|
-
String: {
|
|
64
|
-
input: string;
|
|
65
|
-
output: string;
|
|
66
|
-
};
|
|
67
|
-
Boolean: {
|
|
68
|
-
input: boolean;
|
|
69
|
-
output: boolean;
|
|
70
|
-
};
|
|
71
|
-
Int: {
|
|
72
|
-
input: number;
|
|
73
|
-
output: number;
|
|
74
|
-
};
|
|
75
|
-
Float: {
|
|
76
|
-
input: number;
|
|
77
|
-
output: number;
|
|
78
|
-
};
|
|
79
|
-
BigInt: {
|
|
80
|
-
input: any;
|
|
81
|
-
output: any;
|
|
82
|
-
};
|
|
83
|
-
CkAttributeId: {
|
|
84
|
-
input: string;
|
|
85
|
-
output: string;
|
|
86
|
-
};
|
|
87
|
-
CkEnumId: {
|
|
88
|
-
input: string;
|
|
89
|
-
output: string;
|
|
90
|
-
};
|
|
91
|
-
CkModelId: {
|
|
92
|
-
input: any;
|
|
93
|
-
output: any;
|
|
94
|
-
};
|
|
95
|
-
CkRecordId: {
|
|
96
|
-
input: string;
|
|
97
|
-
output: string;
|
|
98
|
-
};
|
|
99
|
-
CkTypeId: {
|
|
100
|
-
input: string;
|
|
101
|
-
output: string;
|
|
102
|
-
};
|
|
103
|
-
DateTime: {
|
|
104
|
-
input: any;
|
|
105
|
-
output: any;
|
|
106
|
-
};
|
|
107
|
-
Decimal: {
|
|
108
|
-
input: any;
|
|
109
|
-
output: any;
|
|
110
|
-
};
|
|
111
|
-
LargeBinary: {
|
|
112
|
-
input: any;
|
|
113
|
-
output: any;
|
|
114
|
-
};
|
|
115
|
-
OctoObjectId: {
|
|
116
|
-
input: string;
|
|
117
|
-
output: string;
|
|
118
|
-
};
|
|
119
|
-
Seconds: {
|
|
120
|
-
input: any;
|
|
121
|
-
output: any;
|
|
122
|
-
};
|
|
123
|
-
SimpleScalar: {
|
|
124
|
-
input: any;
|
|
125
|
-
output: any;
|
|
126
|
-
};
|
|
127
|
-
ULong: {
|
|
128
|
-
input: any;
|
|
129
|
-
output: any;
|
|
130
|
-
};
|
|
131
|
-
Uri: {
|
|
132
|
-
input: any;
|
|
133
|
-
output: any;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
type FieldFilterDto = {
|
|
137
|
-
attributePath: Scalars['String']['input'];
|
|
138
|
-
comparisonValue?: InputMaybe<Scalars['SimpleScalar']['input']>;
|
|
139
|
-
operator: FieldFilterOperatorsDto;
|
|
140
|
-
};
|
|
141
|
-
/** Defines the operator of field compare */
|
|
142
|
-
declare enum FieldFilterOperatorsDto {
|
|
143
|
-
AnyEqDto = "ANY_EQ",
|
|
144
|
-
AnyLikeDto = "ANY_LIKE",
|
|
145
|
-
EqualsDto = "EQUALS",
|
|
146
|
-
GreaterEqualThanDto = "GREATER_EQUAL_THAN",
|
|
147
|
-
GreaterThanDto = "GREATER_THAN",
|
|
148
|
-
InDto = "IN",
|
|
149
|
-
LessEqualThanDto = "LESS_EQUAL_THAN",
|
|
150
|
-
LessThanDto = "LESS_THAN",
|
|
151
|
-
LikeDto = "LIKE",
|
|
152
|
-
MatchRegExDto = "MATCH_REG_EX",
|
|
153
|
-
NotEqualsDto = "NOT_EQUALS",
|
|
154
|
-
NotInDto = "NOT_IN"
|
|
155
|
-
}
|
|
156
|
-
type SearchFilterDto = {
|
|
157
|
-
attributePaths?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
158
|
-
language?: InputMaybe<Scalars['String']['input']>;
|
|
159
|
-
searchTerm: Scalars['String']['input'];
|
|
160
|
-
type?: InputMaybe<SearchFilterTypesDto>;
|
|
161
|
-
};
|
|
162
|
-
/** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */
|
|
163
|
-
declare enum SearchFilterTypesDto {
|
|
164
|
-
AttributeFilterDto = "ATTRIBUTE_FILTER",
|
|
165
|
-
TextSearchDto = "TEXT_SEARCH"
|
|
166
|
-
}
|
|
167
|
-
type SortDto = {
|
|
168
|
-
attributePath: Scalars['String']['input'];
|
|
169
|
-
sortOrder?: InputMaybe<SortOrdersDto>;
|
|
170
|
-
};
|
|
171
|
-
/** Defines the sort order */
|
|
172
|
-
declare enum SortOrdersDto {
|
|
173
|
-
AscendingDto = "ASCENDING",
|
|
174
|
-
DefaultDto = "DEFAULT",
|
|
175
|
-
DescendingDto = "DESCENDING"
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface IQueryVariablesDto extends OperationVariables$1 {
|
|
179
|
-
first?: number | null | undefined;
|
|
180
|
-
after?: string | null | undefined;
|
|
181
|
-
sort?: InputMaybe<InputMaybe<SortDto> | InputMaybe<SortDto>[]> | undefined;
|
|
182
|
-
searchFilter?: InputMaybe<SearchFilterDto> | undefined;
|
|
183
|
-
fieldFilters?: InputMaybe<InputMaybe<FieldFilterDto>[] | InputMaybe<FieldFilterDto>>;
|
|
184
|
-
}
|
|
185
|
-
declare abstract class GraphQlDataSource<TDto> extends DataSourceBase<TDto> {
|
|
186
|
-
abstract refetch(): Promise<void>;
|
|
187
|
-
abstract refetchWith(skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): Promise<void>;
|
|
188
|
-
abstract loadData(skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): void;
|
|
189
|
-
}
|
|
190
|
-
declare class AssetRepoGraphQlDataSource<TDto, TQueryDto, TVariablesDto extends IQueryVariablesDto> extends GraphQlDataSource<TDto> {
|
|
191
|
-
protected messageService: MessageService;
|
|
192
|
-
private readonly query;
|
|
193
|
-
private readonly defaultSort;
|
|
194
|
-
private queryRef;
|
|
195
|
-
private subscription;
|
|
196
|
-
constructor(messageService: MessageService, query: Query<TQueryDto, TVariablesDto>, defaultSort?: SortDto[] | null);
|
|
197
|
-
clear(): void;
|
|
198
|
-
refetch(): Promise<void>;
|
|
199
|
-
refetchWith(skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): Promise<void>;
|
|
200
|
-
protected createVariables(skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): TVariablesDto;
|
|
201
|
-
loadData(skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): void;
|
|
202
|
-
protected executeLoad(_value: ObservableQuery.Result<TQueryDto>, _index: number): PagedResultDto<TDto>;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
declare class OctoErrorLink extends ApolloLink {
|
|
206
|
-
private errorLink;
|
|
207
|
-
private readonly injector;
|
|
208
|
-
constructor();
|
|
209
|
-
private showErrorLike;
|
|
210
|
-
private showError;
|
|
211
|
-
request(operation: any, forward: any): _apollo_client.Observable<graphql.FormattedExecutionResult<Record<string, any>, Record<string, any>>>;
|
|
212
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OctoErrorLink, never>;
|
|
213
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OctoErrorLink>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export { AssetRepoGraphQlDataSource, FieldFilterOperatorsDto, GraphQL, GraphQLCloneIgnoredProperties, GraphQLCommonIgnoredProperties, GraphQlDataSource, OctoErrorLink, OctoGraphQLServiceBase, OctoServiceOptions, OctoServicesModule, PagedGraphResultDto, SearchFilterTypesDto, SortOrdersDto };
|
|
217
|
-
export type { FieldFilterDto, IQueryVariablesDto, InputMaybe, Maybe, Scalars, SearchFilterDto, SortDto };
|