@cerebruminc/yates 3.7.1 → 3.7.2-beta.dangerous.a83a572

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.7.2](https://github.com/cerebruminc/yates/compare/v3.7.1...v3.7.2) (2025-11-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * use default abilities for wildcard abilities ([4c22fa0](https://github.com/cerebruminc/yates/commit/4c22fa0220f0e087dc85c9392267cd5a60e426e9))
9
+
3
10
  ## [3.7.1](https://github.com/cerebruminc/yates/compare/v3.7.0...v3.7.1) (2025-11-13)
4
11
 
5
12
 
package/dist/index.d.ts CHANGED
@@ -42,28 +42,6 @@ declare module "@prisma/client" {
42
42
  _executeRequest: (params: any) => Promise<any>;
43
43
  }
44
44
  }
45
- export declare const sanitizeSlug: (slug: string) => string;
46
- export declare const createAbilityName: (model: string, ability: string) => string;
47
- export declare const createRoleName: (name: string) => string;
48
- export declare function getBatchId(query: any): string | undefined;
49
- export declare const createClient: (prisma: PrismaClient, getContext: GetContextFn, options?: ClientOptions) => import("@prisma/client/runtime/library").DynamicClientExtensionThis<Prisma.TypeMap<import("@prisma/client/runtime/library").InternalArgs & {
50
- result: {};
51
- model: {};
52
- query: {};
53
- client: {};
54
- }>, Prisma.TypeMapCb, {
55
- result: {};
56
- model: {};
57
- query: {};
58
- client: {};
59
- }>;
60
- export declare const createRoles: <ContextKeys extends string, YModels extends Prisma.ModelName, K extends CustomAbilities<string, Prisma.ModelName> = CustomAbilities<string, Prisma.ModelName>, T = DefaultAbilities<ContextKeys, YModels> & K>({ prisma, customAbilities, getRoles, }: {
61
- prisma: PrismaClient;
62
- customAbilities?: Partial<K> | undefined;
63
- getRoles: (abilities: T) => {
64
- [role: string]: "*" | AllAbilities<ContextKeys, YModels>[];
65
- };
66
- }) => Promise<void>;
67
45
  export interface SetupParams<ContextKeys extends string = string, YModels extends Models = Models, K extends CustomAbilities<ContextKeys, YModels> = CustomAbilities<ContextKeys, YModels>> {
68
46
  /**
69
47
  * The Prisma client instance. Used for database queries and model introspection.
@@ -89,6 +67,7 @@ export interface SetupParams<ContextKeys extends string = string, YModels extend
89
67
  getContext: GetContextFn<ContextKeys>;
90
68
  options?: ClientOptions;
91
69
  }
70
+ export declare const sanitizeSlug: (slug: string) => string;
92
71
  /**
93
72
  * Creates an extended client that sets contextual parameters and user role on every query
94
73
  **/