@or-sdk/library-types-v2 6.0.11 → 6.0.12

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/esm/index.js CHANGED
@@ -11055,15 +11055,14 @@ var import_library_prisma4 = __toESM(require_dist());
11055
11055
  // src/List.ts
11056
11056
  var import_library_prisma2 = __toESM(require_dist());
11057
11057
  var ListView = z.object({
11058
- items: z.any().array(),
11059
- take: z.number(),
11060
- skip: z.number(),
11061
- total: z.number(),
11058
+ items: z.any().array().describe("List of items"),
11059
+ total: z.number().describe("Total number of items in the list"),
11062
11060
  cursor: z.object({
11063
- skip: z.number()
11064
- }),
11065
- filter: z.any().optional(),
11066
- scope: z.any().optional()
11061
+ skip: z.number().describe("Take+Skip from request query"),
11062
+ filter: z.object({}).passthrough().optional().describe("The filter used to get this list from query"),
11063
+ scope: z.object({}).passthrough().optional().describe("The scope used to get this list from query"),
11064
+ take: z.number().describe("Number of items to take from query")
11065
+ }).passthrough().describe("Next page cursor")
11067
11066
  });
11068
11067
  var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
11069
11068
  OrderByEnum2["createdAt"] = "createdAt";
@@ -11213,9 +11212,9 @@ var InAndNotInFunc = ({
11213
11212
  notInProp = true,
11214
11213
  type
11215
11214
  }) => z.object({
11216
- in: type.transform((s) => [s]).or(z.array(type)).optional().describe("This values will be included in the result"),
11217
- notIn: type.transform((s) => [s]).or(z.array(type)).optional().describe("This values will be excluded from the result")
11218
- }).pick({ in: inProp, notIn: notInProp }).optional().default(defaultValue);
11215
+ in: type.transform((s) => [s]).or(z.array(type)).nullable().optional().describe("This values will be included in the result"),
11216
+ notIn: type.transform((s) => [s]).or(z.array(type)).nullable().optional().describe("This values will be excluded from the result")
11217
+ }).pick({ in: inProp, notIn: notInProp }).default(defaultValue);
11219
11218
 
11220
11219
  // src/Packages/params.ts
11221
11220
  var UniversalPackageParams = z.object({
@@ -11274,7 +11273,7 @@ var GetPackagesParamsFilter = z.object({
11274
11273
  import_library_prisma5.PackageStatusDetailsLevelEnum.ACCOUNT,
11275
11274
  import_library_prisma5.PackageStatusDetailsLevelEnum.PDE
11276
11275
  ],
11277
- notIn: [import_library_prisma5.PackageStatusDetailsLevelEnum.USER]
11276
+ notIn: []
11278
11277
  }
11279
11278
  })
11280
11279
  }).optional().default({})