@microsoft/rayfin-data 1.30.0 → 1.32.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/dist/client/DataApi.d.ts +2 -2
- package/dist/client/DataApi.js +2 -2
- package/dist/graphql/GraphQLEntityClient.d.ts +3 -3
- package/dist/graphql/GraphQLEntityClient.js +3 -3
- package/dist/graphql/GraphQLQueryBuilder.d.ts +2 -2
- package/dist/graphql/GraphQLQueryBuilder.js +2 -2
- package/dist/graphql/ResponseHandler.d.ts +1 -1
- package/dist/graphql/ResponseHandler.js +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/package.json +4 -4
package/dist/client/DataApi.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiClient as ApiClientType } from '@microsoft/rayfin-lib';
|
|
2
|
-
import { GraphQLEntityClient } from '../graphql/GraphQLEntityClient';
|
|
3
|
-
import type { EntitySchema } from '../graphql/types';
|
|
2
|
+
import { GraphQLEntityClient } from '../graphql/GraphQLEntityClient.js';
|
|
3
|
+
import type { EntitySchema } from '../graphql/types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Type-safe data clients based on entity schema.
|
|
6
6
|
*/
|
package/dist/client/DataApi.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphQLClient } from '../graphql/GraphQLClient';
|
|
2
|
-
import { GraphQLEntityClient } from '../graphql/GraphQLEntityClient';
|
|
1
|
+
import { GraphQLClient } from '../graphql/GraphQLClient.js';
|
|
2
|
+
import { GraphQLEntityClient } from '../graphql/GraphQLEntityClient.js';
|
|
3
3
|
/**
|
|
4
4
|
* Data-specific operations client for interacting with Data API Builder GraphQL endpoints.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GraphQLClient } from './GraphQLClient';
|
|
2
|
-
import { GraphQLQueryBuilder } from './GraphQLQueryBuilder';
|
|
3
|
-
import type { EntitySchema, CreateInput, UpdateInput, WhereUniqueInput, FilterInput, OrderByInput, FieldSelection } from './types';
|
|
1
|
+
import type { GraphQLClient } from './GraphQLClient.js';
|
|
2
|
+
import { GraphQLQueryBuilder } from './GraphQLQueryBuilder.js';
|
|
3
|
+
import type { EntitySchema, CreateInput, UpdateInput, WhereUniqueInput, FilterInput, OrderByInput, FieldSelection } from './types.js';
|
|
4
4
|
export declare class GraphQLEntityClient<TSchema extends EntitySchema, TEntity extends keyof TSchema> {
|
|
5
5
|
private graphqlClient;
|
|
6
6
|
private entityNameString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPrimaryKeyField } from '@microsoft/rayfin-core';
|
|
2
|
-
import { deserializeDabResponse } from '../utils/serialization';
|
|
3
|
-
import { GraphQLQueryBuilder } from './GraphQLQueryBuilder';
|
|
4
|
-
import { formatGraphQLValue } from './formatValue';
|
|
2
|
+
import { deserializeDabResponse } from '../utils/serialization.js';
|
|
3
|
+
import { GraphQLQueryBuilder } from './GraphQLQueryBuilder.js';
|
|
4
|
+
import { formatGraphQLValue } from './formatValue.js';
|
|
5
5
|
export class GraphQLEntityClient {
|
|
6
6
|
graphqlClient;
|
|
7
7
|
entityNameString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GraphQLClient } from './GraphQLClient';
|
|
2
|
-
import type { EntitySchema, FilterInput, OrderByInput, PagedResult, FieldSelection } from './types';
|
|
1
|
+
import type { GraphQLClient } from './GraphQLClient.js';
|
|
2
|
+
import type { EntitySchema, FilterInput, OrderByInput, PagedResult, FieldSelection } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Fluent GraphQL query builder for constructing and executing complex queries.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPrimaryKeyField } from '@microsoft/rayfin-core';
|
|
2
2
|
import { EntityNameResolver } from '@microsoft/rayfin-lib';
|
|
3
|
-
import { ResponseHandler } from './ResponseHandler';
|
|
4
|
-
import { formatGraphQLValue } from './formatValue';
|
|
3
|
+
import { ResponseHandler } from './ResponseHandler.js';
|
|
4
|
+
import { formatGraphQLValue } from './formatValue.js';
|
|
5
5
|
/**
|
|
6
6
|
* Fluent GraphQL query builder for constructing and executing complex queries.
|
|
7
7
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { createDataApi, DataApi } from './client/DataApi';
|
|
2
|
-
export type { TypedDataClients } from './client/DataApi';
|
|
3
|
-
export { GraphQLClient } from './graphql/GraphQLClient';
|
|
4
|
-
export { GraphQLEntityClient } from './graphql/GraphQLEntityClient';
|
|
5
|
-
export { GraphQLQueryBuilder } from './graphql/GraphQLQueryBuilder';
|
|
6
|
-
export { ResponseHandler } from './graphql/ResponseHandler';
|
|
7
|
-
export type { GraphQLRequest, GraphQLResponse } from './graphql/GraphQLClient';
|
|
8
|
-
export type { EntitySchema, CleanEntityKeys, NestedFieldPath, IsRelationship, RelationshipInput, PrimaryKeyOnly, MutationInput, CreateInput, UpdateInput, WhereUniqueInput, FilterInput, FilterValue, RelationshipIsNullFilter, FieldFilterInput, FieldSelection, OrderByInput, PaginationConfig, PagedResult, StringFilterInput, NumberFilterInput, BooleanFilterInput, DateFilterInput, GenericFilterInput, } from './graphql/types';
|
|
1
|
+
export { createDataApi, DataApi } from './client/DataApi.js';
|
|
2
|
+
export type { TypedDataClients } from './client/DataApi.js';
|
|
3
|
+
export { GraphQLClient } from './graphql/GraphQLClient.js';
|
|
4
|
+
export { GraphQLEntityClient } from './graphql/GraphQLEntityClient.js';
|
|
5
|
+
export { GraphQLQueryBuilder } from './graphql/GraphQLQueryBuilder.js';
|
|
6
|
+
export { ResponseHandler } from './graphql/ResponseHandler.js';
|
|
7
|
+
export type { GraphQLRequest, GraphQLResponse } from './graphql/GraphQLClient.js';
|
|
8
|
+
export type { EntitySchema, CleanEntityKeys, NestedFieldPath, IsRelationship, RelationshipInput, PrimaryKeyOnly, MutationInput, CreateInput, UpdateInput, WhereUniqueInput, FilterInput, FilterValue, RelationshipIsNullFilter, FieldFilterInput, FieldSelection, OrderByInput, PaginationConfig, PagedResult, StringFilterInput, NumberFilterInput, BooleanFilterInput, DateFilterInput, GenericFilterInput, } from './graphql/types.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Main exports
|
|
2
|
-
export { createDataApi, DataApi } from './client/DataApi';
|
|
3
|
-
export { GraphQLClient } from './graphql/GraphQLClient';
|
|
4
|
-
export { GraphQLEntityClient } from './graphql/GraphQLEntityClient';
|
|
5
|
-
export { GraphQLQueryBuilder } from './graphql/GraphQLQueryBuilder';
|
|
2
|
+
export { createDataApi, DataApi } from './client/DataApi.js';
|
|
3
|
+
export { GraphQLClient } from './graphql/GraphQLClient.js';
|
|
4
|
+
export { GraphQLEntityClient } from './graphql/GraphQLEntityClient.js';
|
|
5
|
+
export { GraphQLQueryBuilder } from './graphql/GraphQLQueryBuilder.js';
|
|
6
6
|
// DAB utilities
|
|
7
|
-
export { ResponseHandler } from './graphql/ResponseHandler';
|
|
7
|
+
export { ResponseHandler } from './graphql/ResponseHandler.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/rayfin-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "Type-safe client library for Data API Builder endpoints",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"assets/docs"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@microsoft/rayfin-lib": "1.
|
|
17
|
-
"@microsoft/rayfin-core": "1.
|
|
16
|
+
"@microsoft/rayfin-lib": "1.32.0",
|
|
17
|
+
"@microsoft/rayfin-core": "1.32.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^20.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"kind": "api-reference"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "tsc",
|
|
54
|
+
"build": "tsc && node ../scripts/fix-esm-extensions.mjs ./dist",
|
|
55
55
|
"build:watch": "tsc --watch",
|
|
56
56
|
"clean": "rimraf dist && rimraf .tsbuildinfo",
|
|
57
57
|
"test": "vitest run",
|