@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 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/modules/auth/index.ts
12029
+ // src/common/pagination.ts
12029
12030
  var import_zod = require("zod");
12030
- var LoginSchema = import_zod.z.object({
12031
- email: import_zod.z.string().email(),
12032
- password: import_zod.z.string().min(1)
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
- var SetupInitSchema = import_zod.z.object({
12035
- email: import_zod.z.string().email(),
12036
- password: import_zod.z.string().min(8),
12037
- firstName: import_zod.z.string().min(1),
12038
- lastName: import_zod.z.string().min(1)
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 import_zod2 = require("zod");
12043
- var CreateOrganizationSchema = import_zod2.z.object({
12044
- name: import_zod2.z.string().min(1),
12045
- website: import_zod2.z.string().url().optional().nullable()
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: import_zod2.z.string() });
12056
+ var OrganizationSchema = OrganizationModelSchema.omit({ warehouses: true }).extend({ updatedAt: import_zod3.z.string() });
12049
12057
 
12050
12058
  // src/modules/warehouse/index.ts
12051
- var import_zod3 = require("zod");
12052
- var CreateWarehouseSchema = import_zod3.z.object({
12053
- address: import_zod3.z.string().min(1),
12054
- note: import_zod3.z.string().optional().nullable(),
12055
- code: import_zod3.z.string().min(1),
12056
- organizationId: import_zod3.z.number().int().positive(),
12057
- localityId: import_zod3.z.number().int().positive()
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: import_zod3.z.string() });
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 import_zod4 = require("zod");
12064
- var CreateLocalitySchema = import_zod4.z.object({
12065
- name: import_zod4.z.string().min(1),
12066
- countryId: import_zod4.z.number().int().positive()
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: import_zod4.z.string() });
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 import_zod5 = require("zod");
12072
- var CountrySchema = CountryModelSchema.omit({ localities: true }).extend({ updatedAt: import_zod5.z.string() });
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 import_zod6 = require("zod");
12076
- var EmployeeRoleSchema = EmployeeRoleModelSchema.omit({ assignments: true, permissions: true }).extend({ id: import_zod6.z.number(), updatedAt: import_zod6.z.string() });
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: import_zod6.z.string().nullable(),
12079
- updatedAt: import_zod6.z.string(),
12080
- roleAssignments: import_zod6.z.array(
12081
- import_zod6.z.object({
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 = import_zod6.z.object({
12087
- firstName: import_zod6.z.string().optional(),
12088
- lastName: import_zod6.z.string().optional(),
12089
- isActive: import_zod6.z.boolean().optional(),
12090
- warehouseId: import_zod6.z.number().int().nullable().optional()
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 = import_zod6.z.object({
12093
- email: import_zod6.z.string().email()
12100
+ var UpdateOwnEmailSchema = import_zod7.z.object({
12101
+ email: import_zod7.z.string().email()
12094
12102
  });
12095
- var UpdateOwnPasswordSchema = import_zod6.z.object({
12096
- currentPassword: import_zod6.z.string(),
12097
- newPassword: import_zod6.z.string().min(8)
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,