@tanglemedia/svelte-starter-toolbelt 2.0.0-next.0 → 2.0.0-next.1
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.
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { BaseMutationOpt,
|
|
1
|
+
import type { BaseMutationOpt, TMutationBase } from '../types/index.ts';
|
|
2
2
|
import type { ApiPostQuery, ServiceAbstract } from '@tanglemedia/svelte-starter-core';
|
|
3
|
-
|
|
4
|
-
collection: string;
|
|
5
|
-
service: ServiceAbstract<T>;
|
|
6
|
-
options?: InfiniteQueryOpt;
|
|
7
|
-
};
|
|
3
|
+
import { type CreateFindInfiniteQueryOpt } from './query/create-find-infinite-query.svelte.ts';
|
|
8
4
|
export type CreateMutationOpt<T extends TMutationBase> = {
|
|
9
5
|
collection: string;
|
|
10
6
|
service: ServiceAbstract<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanglemedia/svelte-starter-toolbelt",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"src",
|
|
6
6
|
"dist",
|
|
@@ -10,17 +10,21 @@
|
|
|
10
10
|
"sideEffects": [
|
|
11
11
|
"**/*.css"
|
|
12
12
|
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"module": "./dist/index.d.ts",
|
|
14
|
+
"svelte": "./dist/index.js",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"types": "./
|
|
19
|
-
"svelte": "./
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"svelte": "./dist/index.js",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.js"
|
|
20
22
|
},
|
|
21
23
|
"./server": {
|
|
22
|
-
"types": "./
|
|
23
|
-
"svelte": "./
|
|
24
|
+
"types": "./dist/server/index.d.ts",
|
|
25
|
+
"svelte": "./dist/server/index.js",
|
|
26
|
+
"import": "./dist/server/index.js",
|
|
27
|
+
"default": "./dist/server/index.js"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"peerDependencies": {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
readMe,
|
|
3
|
+
type AuthenticationClient,
|
|
4
|
+
type DirectusClient,
|
|
5
|
+
type RestClient,
|
|
6
|
+
type RestCommand
|
|
7
7
|
} from '@directus/sdk';
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type HandleEvent,
|
|
16
|
-
type ServiceAbstractOptions
|
|
9
|
+
ServiceAbstract,
|
|
10
|
+
type AnyObject,
|
|
11
|
+
type ConfigurableServiceClass,
|
|
12
|
+
type ConfiguredApplication,
|
|
13
|
+
type HandleEvent,
|
|
14
|
+
type ServiceAbstractOptions
|
|
17
15
|
} from '@tanglemedia/svelte-starter-core';
|
|
18
16
|
export class DirectusBaseService<T extends AnyObject> extends ServiceAbstract<T> {
|
|
19
17
|
public getDirectus() {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { BaseMutationOpt, InfiniteQueryOpt, TMutationBase } from '../types/index.ts';
|
|
2
2
|
import type { ApiPostQuery, ServiceAbstract } from '@tanglemedia/svelte-starter-core';
|
|
3
3
|
import { createInsertMutation } from './mutation/create-insert-mutation.ts';
|
|
4
|
-
import { createFindInfiniteQuery } from './query/create-find-infinite-query.svelte.ts';
|
|
4
|
+
import { createFindInfiniteQuery, type CreateFindInfiniteQueryOpt } from './query/create-find-infinite-query.svelte.ts';
|
|
5
5
|
import { createFindOneQuery } from './query/create-find-one-query.svelte.ts';
|
|
6
6
|
import { createFindQuery, getTotalCountQuery } from './query/create-find-query.svelte.ts';
|
|
7
7
|
import { createBulkDeleteMutation, createDeleteMutation, createUpdateMutation } from './mutation';
|
|
8
8
|
|
|
9
|
-
export type CreateFindInfiniteQueryOpt<T extends object> = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
9
|
+
// export type CreateFindInfiniteQueryOpt<T extends object> = {
|
|
10
|
+
// collection: string;
|
|
11
|
+
// service: ServiceAbstract<T>;
|
|
12
|
+
// options?: InfiniteQueryOpt;
|
|
13
|
+
// };
|
|
14
14
|
|
|
15
15
|
export type CreateMutationOpt<T extends TMutationBase> = {
|
|
16
16
|
collection: string;
|