@memberjunction/graphql-dataprovider 2.111.0 → 2.112.0
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 +13 -13
- package/dist/index.cjs +517 -534
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +494 -511
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ async function deleteUser(userId: number) {
|
|
|
143
143
|
|
|
144
144
|
```typescript
|
|
145
145
|
import { GraphQLDataProvider } from '@memberjunction/graphql-dataprovider';
|
|
146
|
-
import { RunViewParams } from '@memberjunction/
|
|
146
|
+
import { RunViewParams } from '@memberjunction/global';
|
|
147
147
|
|
|
148
148
|
const dataProvider = new GraphQLDataProvider();
|
|
149
149
|
|
|
@@ -202,7 +202,7 @@ async function runCustomQuery(queryId: string, parameters: any) {
|
|
|
202
202
|
|
|
203
203
|
```typescript
|
|
204
204
|
import { GraphQLDataProvider } from '@memberjunction/graphql-dataprovider';
|
|
205
|
-
import { TransactionGroupBase } from '@memberjunction/
|
|
205
|
+
import { TransactionGroupBase } from '@memberjunction/global';
|
|
206
206
|
|
|
207
207
|
const dataProvider = new GraphQLDataProvider({
|
|
208
208
|
graphQLEndpoint: 'https://api.example.com/graphql',
|
|
@@ -542,16 +542,16 @@ const syncResult = await systemClient.SyncRolesAndUsers({
|
|
|
542
542
|
|
|
543
543
|
## Key Classes and Types
|
|
544
544
|
|
|
545
|
-
| Class/Type
|
|
546
|
-
|
|
547
|
-
| `GraphQLDataProvider`
|
|
548
|
-
| `GraphQLProviderConfigData` | Configuration class for setting up the GraphQL provider with authentication and connection details
|
|
549
|
-
| `GraphQLActionClient`
|
|
550
|
-
| `GraphQLAIClient`
|
|
551
|
-
| `GraphQLSystemUserClient`
|
|
552
|
-
| `GraphQLTransactionGroup`
|
|
553
|
-
| `FieldMapper`
|
|
554
|
-
| `setupGraphQLClient`
|
|
545
|
+
| Class/Type | Description |
|
|
546
|
+
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
547
|
+
| `GraphQLDataProvider` | Main class implementing IEntityDataProvider, IMetadataProvider, IRunViewProvider, IRunReportProvider, and IRunQueryProvider interfaces |
|
|
548
|
+
| `GraphQLProviderConfigData` | Configuration class for setting up the GraphQL provider with authentication and connection details |
|
|
549
|
+
| `GraphQLActionClient` | Client for executing actions and entity actions through GraphQL |
|
|
550
|
+
| `GraphQLAIClient` | Client for AI operations including prompts, agents, and embeddings |
|
|
551
|
+
| `GraphQLSystemUserClient` | Specialized client for server-to-server communication using API keys |
|
|
552
|
+
| `GraphQLTransactionGroup` | Manages complex multi-entity transactions with variable support |
|
|
553
|
+
| `FieldMapper` | Handles automatic field name mapping between client and server |
|
|
554
|
+
| `setupGraphQLClient` | Helper function to quickly setup and configure the GraphQL client |
|
|
555
555
|
|
|
556
556
|
## API Documentation
|
|
557
557
|
|
|
@@ -610,4 +610,4 @@ const syncResult = await systemClient.SyncRolesAndUsers({
|
|
|
610
610
|
|
|
611
611
|
## License
|
|
612
612
|
|
|
613
|
-
ISC
|
|
613
|
+
ISC
|