@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/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +11 -12
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +11 -12
- package/dist/esm/index.js.map +2 -2
- package/dist/types/List.d.ts +26 -23
- package/dist/types/Packages/params.d.ts +123 -123
- package/dist/types/Packages/response.d.ts +26 -23
- package/dist/types/PropFilter.d.ts +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -11095,15 +11095,14 @@ var import_library_prisma4 = __toESM(require_dist());
|
|
|
11095
11095
|
// src/List.ts
|
|
11096
11096
|
var import_library_prisma2 = __toESM(require_dist());
|
|
11097
11097
|
var ListView = z.object({
|
|
11098
|
-
items: z.any().array(),
|
|
11099
|
-
|
|
11100
|
-
skip: z.number(),
|
|
11101
|
-
total: z.number(),
|
|
11098
|
+
items: z.any().array().describe("List of items"),
|
|
11099
|
+
total: z.number().describe("Total number of items in the list"),
|
|
11102
11100
|
cursor: z.object({
|
|
11103
|
-
skip: z.number()
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11101
|
+
skip: z.number().describe("Take+Skip from request query"),
|
|
11102
|
+
filter: z.object({}).passthrough().optional().describe("The filter used to get this list from query"),
|
|
11103
|
+
scope: z.object({}).passthrough().optional().describe("The scope used to get this list from query"),
|
|
11104
|
+
take: z.number().describe("Number of items to take from query")
|
|
11105
|
+
}).passthrough().describe("Next page cursor")
|
|
11107
11106
|
});
|
|
11108
11107
|
var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
|
|
11109
11108
|
OrderByEnum2["createdAt"] = "createdAt";
|
|
@@ -11253,9 +11252,9 @@ var InAndNotInFunc = ({
|
|
|
11253
11252
|
notInProp = true,
|
|
11254
11253
|
type
|
|
11255
11254
|
}) => z.object({
|
|
11256
|
-
in: type.transform((s) => [s]).or(z.array(type)).optional().describe("This values will be included in the result"),
|
|
11257
|
-
notIn: type.transform((s) => [s]).or(z.array(type)).optional().describe("This values will be excluded from the result")
|
|
11258
|
-
}).pick({ in: inProp, notIn: notInProp }).
|
|
11255
|
+
in: type.transform((s) => [s]).or(z.array(type)).nullable().optional().describe("This values will be included in the result"),
|
|
11256
|
+
notIn: type.transform((s) => [s]).or(z.array(type)).nullable().optional().describe("This values will be excluded from the result")
|
|
11257
|
+
}).pick({ in: inProp, notIn: notInProp }).default(defaultValue);
|
|
11259
11258
|
|
|
11260
11259
|
// src/Packages/params.ts
|
|
11261
11260
|
var UniversalPackageParams = z.object({
|
|
@@ -11314,7 +11313,7 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11314
11313
|
import_library_prisma5.PackageStatusDetailsLevelEnum.ACCOUNT,
|
|
11315
11314
|
import_library_prisma5.PackageStatusDetailsLevelEnum.PDE
|
|
11316
11315
|
],
|
|
11317
|
-
notIn: [
|
|
11316
|
+
notIn: []
|
|
11318
11317
|
}
|
|
11319
11318
|
})
|
|
11320
11319
|
}).optional().default({})
|