@aeriajs/builtins 0.0.112 → 0.0.113
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.
|
@@ -451,15 +451,15 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
451
451
|
readonly ask: true;
|
|
452
452
|
};
|
|
453
453
|
};
|
|
454
|
-
}>) => Promise<{
|
|
455
|
-
readonly _tag: "Result";
|
|
456
|
-
readonly error: undefined;
|
|
457
|
-
readonly result: any;
|
|
458
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
454
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
459
455
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
460
456
|
} & {
|
|
461
457
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
462
|
-
}
|
|
458
|
+
}> | {
|
|
459
|
+
readonly _tag: "Result";
|
|
460
|
+
readonly error: undefined;
|
|
461
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
462
|
+
}>;
|
|
463
463
|
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
464
464
|
readonly $id: "file";
|
|
465
465
|
readonly owned: "always";
|
|
@@ -509,15 +509,15 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
509
509
|
readonly ask: true;
|
|
510
510
|
};
|
|
511
511
|
};
|
|
512
|
-
}>) => Promise<{
|
|
513
|
-
readonly _tag: "Result";
|
|
514
|
-
readonly error: undefined;
|
|
515
|
-
readonly result: any;
|
|
516
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
512
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
517
513
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
518
514
|
} & {
|
|
519
515
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
520
|
-
}
|
|
516
|
+
}> | {
|
|
517
|
+
readonly _tag: "Result";
|
|
518
|
+
readonly error: undefined;
|
|
519
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
520
|
+
}>;
|
|
521
521
|
};
|
|
522
522
|
exposedFunctions: {
|
|
523
523
|
readonly get: "unauthenticated";
|
|
@@ -937,15 +937,15 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
937
937
|
readonly ask: true;
|
|
938
938
|
};
|
|
939
939
|
};
|
|
940
|
-
}>) => Promise<{
|
|
941
|
-
readonly _tag: "Result";
|
|
942
|
-
readonly error: undefined;
|
|
943
|
-
readonly result: any;
|
|
944
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
940
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
945
941
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
946
942
|
} & {
|
|
947
943
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
948
|
-
}
|
|
944
|
+
}> | {
|
|
945
|
+
readonly _tag: "Result";
|
|
946
|
+
readonly error: undefined;
|
|
947
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
948
|
+
}>;
|
|
949
949
|
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
950
950
|
readonly $id: "file";
|
|
951
951
|
readonly owned: "always";
|
|
@@ -995,15 +995,15 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
995
995
|
readonly ask: true;
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
|
-
}>) => Promise<{
|
|
999
|
-
readonly _tag: "Result";
|
|
1000
|
-
readonly error: undefined;
|
|
1001
|
-
readonly result: any;
|
|
1002
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
998
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1003
999
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1004
1000
|
} & {
|
|
1005
1001
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1006
|
-
}
|
|
1002
|
+
}> | {
|
|
1003
|
+
readonly _tag: "Result";
|
|
1004
|
+
readonly error: undefined;
|
|
1005
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
1006
|
+
}>;
|
|
1007
1007
|
};
|
|
1008
1008
|
contracts: {
|
|
1009
1009
|
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Context, SchemaWithId, RemovePayload } from '@aeriajs/types';
|
|
2
2
|
import type { description } from './description.js';
|
|
3
|
-
export declare const remove: (payload: RemovePayload<SchemaWithId<typeof description>>, context: Context<typeof description>) => Promise<{
|
|
4
|
-
readonly _tag: "Result";
|
|
5
|
-
readonly error: undefined;
|
|
6
|
-
readonly result: any;
|
|
7
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
3
|
+
export declare const remove: (payload: RemovePayload<SchemaWithId<typeof description>>, context: Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
8
4
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
9
5
|
} & {
|
|
10
6
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
11
|
-
}
|
|
7
|
+
}> | {
|
|
8
|
+
readonly _tag: "Result";
|
|
9
|
+
readonly error: undefined;
|
|
10
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
11
|
+
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Context, RemoveAllPayload } from '@aeriajs/types';
|
|
1
|
+
import type { Context, SchemaWithId, PackReferences, RemoveAllPayload } from '@aeriajs/types';
|
|
2
2
|
import type { description } from './description.js';
|
|
3
|
-
export declare const removeAll: (payload: RemoveAllPayload, context: Context<typeof description>) => Promise<{
|
|
4
|
-
readonly _tag: "Result";
|
|
5
|
-
readonly error: undefined;
|
|
6
|
-
readonly result: any;
|
|
7
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
3
|
+
export declare const removeAll: (payload: RemoveAllPayload, context: Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
8
4
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
9
5
|
} & {
|
|
10
6
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
11
|
-
}
|
|
7
|
+
}> | {
|
|
8
|
+
readonly _tag: "Result";
|
|
9
|
+
readonly error: undefined;
|
|
10
|
+
readonly result: import("mongodb").WithId<Omit<PackReferences<SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
11
|
+
}>;
|
|
@@ -106,15 +106,15 @@ export declare const user: {
|
|
|
106
106
|
readonly error: undefined;
|
|
107
107
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
108
108
|
}>;
|
|
109
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
110
|
-
readonly _tag: "Result";
|
|
111
|
-
readonly error: undefined;
|
|
112
|
-
readonly result: any;
|
|
113
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
109
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
114
110
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
115
111
|
} & {
|
|
116
112
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
117
|
-
}
|
|
113
|
+
}> | {
|
|
114
|
+
readonly _tag: "Result";
|
|
115
|
+
readonly error: undefined;
|
|
116
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
117
|
+
}>;
|
|
118
118
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
119
119
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
120
120
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
@@ -1675,15 +1675,15 @@ export declare const user: {
|
|
|
1675
1675
|
readonly error: undefined;
|
|
1676
1676
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1677
1677
|
}>;
|
|
1678
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1679
|
-
readonly _tag: "Result";
|
|
1680
|
-
readonly error: undefined;
|
|
1681
|
-
readonly result: any;
|
|
1682
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
1678
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1683
1679
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1684
1680
|
} & {
|
|
1685
1681
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1686
|
-
}
|
|
1682
|
+
}> | {
|
|
1683
|
+
readonly _tag: "Result";
|
|
1684
|
+
readonly error: undefined;
|
|
1685
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
1686
|
+
}>;
|
|
1687
1687
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1688
1688
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1689
1689
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
package/dist/index.d.ts
CHANGED
|
@@ -369,15 +369,15 @@ export declare const collections: {
|
|
|
369
369
|
readonly ask: true;
|
|
370
370
|
};
|
|
371
371
|
};
|
|
372
|
-
}>) => Promise<{
|
|
373
|
-
readonly _tag: "Result";
|
|
374
|
-
readonly error: undefined;
|
|
375
|
-
readonly result: any;
|
|
376
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
372
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
377
373
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
378
374
|
} & {
|
|
379
375
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
380
|
-
}
|
|
376
|
+
}> | {
|
|
377
|
+
readonly _tag: "Result";
|
|
378
|
+
readonly error: undefined;
|
|
379
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
380
|
+
}>;
|
|
381
381
|
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
382
382
|
readonly $id: "file";
|
|
383
383
|
readonly owned: "always";
|
|
@@ -427,15 +427,15 @@ export declare const collections: {
|
|
|
427
427
|
readonly ask: true;
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
}>) => Promise<{
|
|
431
|
-
readonly _tag: "Result";
|
|
432
|
-
readonly error: undefined;
|
|
433
|
-
readonly result: any;
|
|
434
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
430
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
435
431
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
436
432
|
} & {
|
|
437
433
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
438
|
-
}
|
|
434
|
+
}> | {
|
|
435
|
+
readonly _tag: "Result";
|
|
436
|
+
readonly error: undefined;
|
|
437
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
438
|
+
}>;
|
|
439
439
|
};
|
|
440
440
|
exposedFunctions: {
|
|
441
441
|
readonly get: "unauthenticated";
|
|
@@ -855,15 +855,15 @@ export declare const collections: {
|
|
|
855
855
|
readonly ask: true;
|
|
856
856
|
};
|
|
857
857
|
};
|
|
858
|
-
}>) => Promise<{
|
|
859
|
-
readonly _tag: "Result";
|
|
860
|
-
readonly error: undefined;
|
|
861
|
-
readonly result: any;
|
|
862
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
858
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
863
859
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
864
860
|
} & {
|
|
865
861
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
866
|
-
}
|
|
862
|
+
}> | {
|
|
863
|
+
readonly _tag: "Result";
|
|
864
|
+
readonly error: undefined;
|
|
865
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
866
|
+
}>;
|
|
867
867
|
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
868
868
|
readonly $id: "file";
|
|
869
869
|
readonly owned: "always";
|
|
@@ -913,15 +913,15 @@ export declare const collections: {
|
|
|
913
913
|
readonly ask: true;
|
|
914
914
|
};
|
|
915
915
|
};
|
|
916
|
-
}>) => Promise<{
|
|
917
|
-
readonly _tag: "Result";
|
|
918
|
-
readonly error: undefined;
|
|
919
|
-
readonly result: any;
|
|
920
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
916
|
+
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
921
917
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
922
918
|
} & {
|
|
923
919
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
924
|
-
}
|
|
920
|
+
}> | {
|
|
921
|
+
readonly _tag: "Result";
|
|
922
|
+
readonly error: undefined;
|
|
923
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
924
|
+
}>;
|
|
925
925
|
};
|
|
926
926
|
contracts: {
|
|
927
927
|
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
@@ -1351,15 +1351,15 @@ export declare const collections: {
|
|
|
1351
1351
|
readonly error: undefined;
|
|
1352
1352
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1353
1353
|
}>;
|
|
1354
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1355
|
-
readonly _tag: "Result";
|
|
1356
|
-
readonly error: undefined;
|
|
1357
|
-
readonly result: any;
|
|
1358
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
1354
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1359
1355
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1360
1356
|
} & {
|
|
1361
1357
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1362
|
-
}
|
|
1358
|
+
}> | {
|
|
1359
|
+
readonly _tag: "Result";
|
|
1360
|
+
readonly error: undefined;
|
|
1361
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
1362
|
+
}>;
|
|
1363
1363
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1364
1364
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1365
1365
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
@@ -2920,15 +2920,15 @@ export declare const collections: {
|
|
|
2920
2920
|
readonly error: undefined;
|
|
2921
2921
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
2922
2922
|
}>;
|
|
2923
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
2924
|
-
readonly _tag: "Result";
|
|
2925
|
-
readonly error: undefined;
|
|
2926
|
-
readonly result: any;
|
|
2927
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
2923
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
2928
2924
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
2929
2925
|
} & {
|
|
2930
2926
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2931
|
-
}
|
|
2927
|
+
}> | {
|
|
2928
|
+
readonly _tag: "Result";
|
|
2929
|
+
readonly error: undefined;
|
|
2930
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
2931
|
+
}>;
|
|
2932
2932
|
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
2933
2933
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
2934
2934
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.113",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"mongodb": "^6.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@aeriajs/core": "^0.0.
|
|
49
|
-
"@aeriajs/common": "^0.0.
|
|
50
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
51
|
-
"@aeriajs/types": "^0.0.
|
|
52
|
-
"@aeriajs/validation": "^0.0.
|
|
48
|
+
"@aeriajs/core": "^0.0.113",
|
|
49
|
+
"@aeriajs/common": "^0.0.72",
|
|
50
|
+
"@aeriajs/entrypoint": "^0.0.74",
|
|
51
|
+
"@aeriajs/types": "^0.0.63",
|
|
52
|
+
"@aeriajs/validation": "^0.0.75"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "echo skipping",
|