@locusai/shared 0.16.2 → 0.17.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/common.d.ts CHANGED
@@ -1,62 +1,9 @@
1
1
  import { z } from "zod";
2
- export declare const BaseEntitySchema: z.ZodObject<{
3
- id: z.ZodUUID;
4
- createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
5
- updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
6
- }, z.core.$strip>;
7
- export type BaseEntity = z.infer<typeof BaseEntitySchema>;
8
- export declare const PaginationMetaSchema: z.ZodObject<{
9
- page: z.ZodNumber;
10
- limit: z.ZodNumber;
11
- total: z.ZodNumber;
12
- totalPages: z.ZodNumber;
13
- }, z.core.$strip>;
14
- export type PaginationMeta = z.infer<typeof PaginationMetaSchema>;
15
- export declare const PaginationRequestSchema: z.ZodObject<{
16
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
17
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
18
- }, z.core.$strip>;
19
- export type PaginationRequest = z.infer<typeof PaginationRequestSchema>;
20
2
  /**
21
3
  * Special type for cases where 'any' is absolutely necessary.
22
4
  * Use this sparingly and document why it's needed.
23
5
  */
24
6
  export type $FixMe = any;
25
- export declare const ApiResponseSchema: z.ZodObject<{
26
- success: z.ZodBoolean;
27
- data: z.ZodOptional<z.ZodUnknown>;
28
- error: z.ZodOptional<z.ZodObject<{
29
- code: z.ZodString;
30
- message: z.ZodString;
31
- details: z.ZodOptional<z.ZodUnknown>;
32
- }, z.core.$strip>>;
33
- meta: z.ZodOptional<z.ZodObject<{
34
- pagination: z.ZodOptional<z.ZodObject<{
35
- page: z.ZodNumber;
36
- limit: z.ZodNumber;
37
- total: z.ZodNumber;
38
- totalPages: z.ZodNumber;
39
- }, z.core.$strip>>;
40
- timestamp: z.ZodString;
41
- path: z.ZodString;
42
- requestId: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strip>>;
44
- }, z.core.$strip>;
45
- export type ApiResponse<T = unknown> = {
46
- success: boolean;
47
- data?: T;
48
- error?: {
49
- code: string;
50
- message: string;
51
- details?: unknown;
52
- };
53
- meta?: {
54
- pagination?: PaginationMeta;
55
- timestamp: string;
56
- path: string;
57
- requestId?: string;
58
- };
59
- };
60
7
  export declare const SuccessResponseSchema: z.ZodObject<{
61
8
  success: z.ZodLiteral<true>;
62
9
  message: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;GAGG;AAEH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC;AAEzB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;iBAkB5B,CAAC;AAEH,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,OAAO,IAAI;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,cAAc,CAAC;QAC5B,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAMH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAMrC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AAEH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC;AAEzB,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAMH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAMrC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
1
  export * from "./common";
2
- export * from "./constants";
3
- export * from "./enums";
4
- export * from "./models";
5
2
  export * from "./protocol";
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}