@or-sdk/library-types-v2 6.0.6 → 6.0.8
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/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +415 -601
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +415 -601
- package/dist/esm/index.js.map +4 -4
- package/dist/types/List.d.ts +6 -1
- package/dist/types/Packages/params.d.ts +11 -0
- package/dist/types/Packages/response.d.ts +169 -333
- package/package.json +2 -2
- package/dist/types/Packages/body.d.ts +0 -289
package/dist/types/List.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Prisma } from '@or-sdk/library-prisma';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export declare const ListView: z.ZodObject<{
|
|
3
4
|
items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -34,7 +35,11 @@ export declare const ListView: z.ZodObject<{
|
|
|
34
35
|
filter?: any;
|
|
35
36
|
scope?: any;
|
|
36
37
|
}>;
|
|
37
|
-
export declare const PaginationParamsFunc: (orderByEnum
|
|
38
|
+
export declare const PaginationParamsFunc: ({ orderByEnum, orderByDefault, orderDefault, }: {
|
|
39
|
+
orderByEnum?: [string, ...string[]];
|
|
40
|
+
orderByDefault?: string;
|
|
41
|
+
orderDefault?: Prisma.SortOrder;
|
|
42
|
+
}) => z.ZodObject<{
|
|
38
43
|
orderBy: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
39
44
|
order: z.ZodDefault<z.ZodNativeEnum<{
|
|
40
45
|
asc: "asc";
|
|
@@ -121,6 +121,7 @@ export declare const AddPackageReleaseReleaseStatusParams: z.ZodObject<{
|
|
|
121
121
|
level?: "USER" | "ACCOUNT" | "PDE";
|
|
122
122
|
}>;
|
|
123
123
|
export declare const GetPackagesParamsFilter: z.ZodObject<{
|
|
124
|
+
prerelease: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodAny, boolean, any>>>;
|
|
124
125
|
schemaType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
125
126
|
in: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
126
127
|
notIn: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
@@ -236,6 +237,7 @@ export declare const GetPackagesParamsFilter: z.ZodObject<{
|
|
|
236
237
|
};
|
|
237
238
|
}>>>;
|
|
238
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
prerelease?: boolean;
|
|
239
241
|
schemaType?: {
|
|
240
242
|
in?: any[];
|
|
241
243
|
notIn?: any[];
|
|
@@ -271,6 +273,7 @@ export declare const GetPackagesParamsFilter: z.ZodObject<{
|
|
|
271
273
|
};
|
|
272
274
|
};
|
|
273
275
|
}, {
|
|
276
|
+
prerelease?: any;
|
|
274
277
|
schemaType?: {
|
|
275
278
|
in?: any;
|
|
276
279
|
notIn?: any;
|
|
@@ -315,6 +318,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
315
318
|
desc: "desc";
|
|
316
319
|
}>>;
|
|
317
320
|
filter: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
321
|
+
prerelease: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodAny, boolean, any>>>;
|
|
318
322
|
schemaType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
319
323
|
in: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
320
324
|
notIn: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
@@ -430,6 +434,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
430
434
|
};
|
|
431
435
|
}>>>;
|
|
432
436
|
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
prerelease?: boolean;
|
|
433
438
|
schemaType?: {
|
|
434
439
|
in?: any[];
|
|
435
440
|
notIn?: any[];
|
|
@@ -465,6 +470,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
465
470
|
};
|
|
466
471
|
};
|
|
467
472
|
}, {
|
|
473
|
+
prerelease?: any;
|
|
468
474
|
schemaType?: {
|
|
469
475
|
in?: any;
|
|
470
476
|
notIn?: any;
|
|
@@ -501,6 +507,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
501
507
|
};
|
|
502
508
|
}>>>;
|
|
503
509
|
scope: z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
510
|
+
prerelease: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodAny, boolean, any>>>;
|
|
504
511
|
schemaType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
505
512
|
in: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
506
513
|
notIn: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
@@ -645,6 +652,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
645
652
|
orderBy?: string;
|
|
646
653
|
order?: "asc" | "desc";
|
|
647
654
|
filter?: {
|
|
655
|
+
prerelease?: boolean;
|
|
648
656
|
schemaType?: {
|
|
649
657
|
in?: any[];
|
|
650
658
|
notIn?: any[];
|
|
@@ -699,6 +707,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
699
707
|
orderBy?: string;
|
|
700
708
|
order?: "asc" | "desc";
|
|
701
709
|
filter?: {
|
|
710
|
+
prerelease?: any;
|
|
702
711
|
schemaType?: {
|
|
703
712
|
in?: any;
|
|
704
713
|
notIn?: any;
|
|
@@ -749,6 +758,7 @@ export declare const GetPackagesParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
749
758
|
query?: string;
|
|
750
759
|
}>>>;
|
|
751
760
|
export declare const GetPackageParams: z.ZodOptional<z.ZodObject<Pick<{
|
|
761
|
+
prerelease: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodAny, boolean, any>>>;
|
|
752
762
|
schemaType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
753
763
|
in: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
754
764
|
notIn: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
@@ -909,6 +919,7 @@ export declare const GetPackageParams: z.ZodOptional<z.ZodObject<Pick<{
|
|
|
909
919
|
export declare const DeletePackageParams: z.ZodObject<{
|
|
910
920
|
force: z.ZodEffects<z.ZodAny, boolean, any>;
|
|
911
921
|
filter: z.ZodObject<Pick<{
|
|
922
|
+
prerelease: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodAny, boolean, any>>>;
|
|
912
923
|
schemaType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<Pick<{
|
|
913
924
|
in: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|
|
914
925
|
notIn: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodTypeAny, any[], any>, z.ZodArray<z.ZodTypeAny, "many">]>>;
|