@meerkapp/wms-contracts 0.2.0-beta.6 → 0.2.0-beta.7
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/index.cjs +54 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +53 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1358,6 +1358,7 @@ __export(index_exports, {
|
|
|
1358
1358
|
OrganizationWhereInputObjectZodSchema: () => OrganizationWhereInputObjectZodSchema,
|
|
1359
1359
|
OrganizationWhereUniqueInputObjectSchema: () => OrganizationWhereUniqueInputObjectSchema,
|
|
1360
1360
|
OrganizationWhereUniqueInputObjectZodSchema: () => OrganizationWhereUniqueInputObjectZodSchema,
|
|
1361
|
+
PaginationQuerySchema: () => PaginationQuerySchema,
|
|
1361
1362
|
QueryModeSchema: () => QueryModeSchema,
|
|
1362
1363
|
ServerSettingsAggregateResultSchema: () => ServerSettingsAggregateResultSchema,
|
|
1363
1364
|
ServerSettingsAggregateSchema: () => ServerSettingsAggregateSchema,
|
|
@@ -12025,76 +12026,83 @@ var WarehouseResultSchema = z878.object({
|
|
|
12025
12026
|
employees: z878.array(z878.unknown())
|
|
12026
12027
|
}).strict();
|
|
12027
12028
|
|
|
12028
|
-
// src/
|
|
12029
|
+
// src/common/pagination.ts
|
|
12029
12030
|
var import_zod = require("zod");
|
|
12030
|
-
var
|
|
12031
|
-
|
|
12032
|
-
|
|
12031
|
+
var PaginationQuerySchema = import_zod.z.object({
|
|
12032
|
+
page: import_zod.z.coerce.number().int().min(1).default(1),
|
|
12033
|
+
limit: import_zod.z.coerce.number().int().min(1).max(100).default(20)
|
|
12033
12034
|
});
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12035
|
+
|
|
12036
|
+
// src/modules/auth/index.ts
|
|
12037
|
+
var import_zod2 = require("zod");
|
|
12038
|
+
var LoginSchema = import_zod2.z.object({
|
|
12039
|
+
email: import_zod2.z.string().email(),
|
|
12040
|
+
password: import_zod2.z.string().min(1)
|
|
12041
|
+
});
|
|
12042
|
+
var SetupInitSchema = import_zod2.z.object({
|
|
12043
|
+
email: import_zod2.z.string().email(),
|
|
12044
|
+
password: import_zod2.z.string().min(8),
|
|
12045
|
+
firstName: import_zod2.z.string().min(1),
|
|
12046
|
+
lastName: import_zod2.z.string().min(1)
|
|
12039
12047
|
});
|
|
12040
12048
|
|
|
12041
12049
|
// src/modules/organization/index.ts
|
|
12042
|
-
var
|
|
12043
|
-
var CreateOrganizationSchema =
|
|
12044
|
-
name:
|
|
12045
|
-
website:
|
|
12050
|
+
var import_zod3 = require("zod");
|
|
12051
|
+
var CreateOrganizationSchema = import_zod3.z.object({
|
|
12052
|
+
name: import_zod3.z.string().min(1),
|
|
12053
|
+
website: import_zod3.z.string().url().optional().nullable()
|
|
12046
12054
|
});
|
|
12047
12055
|
var UpdateOrganizationSchema = CreateOrganizationSchema.partial();
|
|
12048
|
-
var OrganizationSchema = OrganizationModelSchema.omit({ warehouses: true }).extend({ updatedAt:
|
|
12056
|
+
var OrganizationSchema = OrganizationModelSchema.omit({ warehouses: true }).extend({ updatedAt: import_zod3.z.string() });
|
|
12049
12057
|
|
|
12050
12058
|
// src/modules/warehouse/index.ts
|
|
12051
|
-
var
|
|
12052
|
-
var CreateWarehouseSchema =
|
|
12053
|
-
address:
|
|
12054
|
-
note:
|
|
12055
|
-
code:
|
|
12056
|
-
organizationId:
|
|
12057
|
-
localityId:
|
|
12059
|
+
var import_zod4 = require("zod");
|
|
12060
|
+
var CreateWarehouseSchema = import_zod4.z.object({
|
|
12061
|
+
address: import_zod4.z.string().min(1),
|
|
12062
|
+
note: import_zod4.z.string().optional().nullable(),
|
|
12063
|
+
code: import_zod4.z.string().min(1),
|
|
12064
|
+
organizationId: import_zod4.z.number().int().positive(),
|
|
12065
|
+
localityId: import_zod4.z.number().int().positive()
|
|
12058
12066
|
});
|
|
12059
12067
|
var UpdateWarehouseSchema = CreateWarehouseSchema.partial();
|
|
12060
|
-
var WarehouseSchema = WarehouseModelSchema.omit({ organization: true, locality: true }).extend({ updatedAt:
|
|
12068
|
+
var WarehouseSchema = WarehouseModelSchema.omit({ organization: true, locality: true }).extend({ updatedAt: import_zod4.z.string() });
|
|
12061
12069
|
|
|
12062
12070
|
// src/modules/locality/index.ts
|
|
12063
|
-
var
|
|
12064
|
-
var CreateLocalitySchema =
|
|
12065
|
-
name:
|
|
12066
|
-
countryId:
|
|
12071
|
+
var import_zod5 = require("zod");
|
|
12072
|
+
var CreateLocalitySchema = import_zod5.z.object({
|
|
12073
|
+
name: import_zod5.z.string().min(1),
|
|
12074
|
+
countryId: import_zod5.z.number().int().positive()
|
|
12067
12075
|
});
|
|
12068
|
-
var LocalitySchema = LocalityModelSchema.omit({ warehouses: true, country: true }).extend({ updatedAt:
|
|
12076
|
+
var LocalitySchema = LocalityModelSchema.omit({ warehouses: true, country: true }).extend({ updatedAt: import_zod5.z.string() });
|
|
12069
12077
|
|
|
12070
12078
|
// src/modules/country/index.ts
|
|
12071
|
-
var
|
|
12072
|
-
var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updatedAt:
|
|
12079
|
+
var import_zod6 = require("zod");
|
|
12080
|
+
var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updatedAt: import_zod6.z.string() });
|
|
12073
12081
|
|
|
12074
12082
|
// src/modules/employee/index.ts
|
|
12075
|
-
var
|
|
12076
|
-
var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id:
|
|
12083
|
+
var import_zod7 = require("zod");
|
|
12084
|
+
var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: import_zod7.z.number(), updatedAt: import_zod7.z.string() });
|
|
12077
12085
|
var EmployeeSchema = EmployeeModelSchema.omit({ password: true, warehouse: true, roleAssignments: true }).extend({
|
|
12078
|
-
lastSeen:
|
|
12079
|
-
updatedAt:
|
|
12080
|
-
roleAssignments:
|
|
12081
|
-
|
|
12086
|
+
lastSeen: import_zod7.z.string().nullable(),
|
|
12087
|
+
updatedAt: import_zod7.z.string(),
|
|
12088
|
+
roleAssignments: import_zod7.z.array(
|
|
12089
|
+
import_zod7.z.object({
|
|
12082
12090
|
employeeRole: EmployeeRoleSchema
|
|
12083
12091
|
})
|
|
12084
12092
|
)
|
|
12085
12093
|
});
|
|
12086
|
-
var UpdateEmployeeSchema =
|
|
12087
|
-
firstName:
|
|
12088
|
-
lastName:
|
|
12089
|
-
isActive:
|
|
12090
|
-
warehouseId:
|
|
12094
|
+
var UpdateEmployeeSchema = import_zod7.z.object({
|
|
12095
|
+
firstName: import_zod7.z.string().optional(),
|
|
12096
|
+
lastName: import_zod7.z.string().optional(),
|
|
12097
|
+
isActive: import_zod7.z.boolean().optional(),
|
|
12098
|
+
warehouseId: import_zod7.z.number().int().nullable().optional()
|
|
12091
12099
|
});
|
|
12092
|
-
var UpdateOwnEmailSchema =
|
|
12093
|
-
email:
|
|
12100
|
+
var UpdateOwnEmailSchema = import_zod7.z.object({
|
|
12101
|
+
email: import_zod7.z.string().email()
|
|
12094
12102
|
});
|
|
12095
|
-
var UpdateOwnPasswordSchema =
|
|
12096
|
-
currentPassword:
|
|
12097
|
-
newPassword:
|
|
12103
|
+
var UpdateOwnPasswordSchema = import_zod7.z.object({
|
|
12104
|
+
currentPassword: import_zod7.z.string(),
|
|
12105
|
+
newPassword: import_zod7.z.string().min(8)
|
|
12098
12106
|
});
|
|
12099
12107
|
// Annotate the CommonJS export names for ESM import in node:
|
|
12100
12108
|
0 && (module.exports = {
|
|
@@ -13426,6 +13434,7 @@ var UpdateOwnPasswordSchema = import_zod6.z.object({
|
|
|
13426
13434
|
OrganizationWhereInputObjectZodSchema,
|
|
13427
13435
|
OrganizationWhereUniqueInputObjectSchema,
|
|
13428
13436
|
OrganizationWhereUniqueInputObjectZodSchema,
|
|
13437
|
+
PaginationQuerySchema,
|
|
13429
13438
|
QueryModeSchema,
|
|
13430
13439
|
ServerSettingsAggregateResultSchema,
|
|
13431
13440
|
ServerSettingsAggregateSchema,
|