@nyig/models 0.2.41 → 0.2.42

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/index.d.mts CHANGED
@@ -2396,66 +2396,90 @@ declare const zReportTicketResponse: z.ZodObject<{
2396
2396
  title: z.ZodString;
2397
2397
  description: z.ZodString;
2398
2398
  requester: z.ZodObject<{
2399
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2400
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2399
2401
  name: z.ZodString;
2400
2402
  username: z.ZodOptional<z.ZodString>;
2401
2403
  password: z.ZodOptional<z.ZodString>;
2402
2404
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2403
- email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2404
- address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2405
2405
  country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2406
2406
  phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2407
2407
  birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2408
- }, "strip", z.ZodTypeAny, {
2408
+ _id: z.ZodString;
2409
+ editedBy: z.ZodOptional<z.ZodString>;
2410
+ createdAt: z.ZodOptional<z.ZodString>;
2411
+ updatedAt: z.ZodOptional<z.ZodString>;
2412
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2413
+ _id: string;
2409
2414
  name: string;
2415
+ email?: string | undefined;
2416
+ address?: string | undefined;
2410
2417
  username?: string | undefined;
2411
2418
  password?: string | undefined;
2412
2419
  roles?: number[] | undefined;
2413
- email?: string | undefined;
2414
- address?: string | undefined;
2415
2420
  country?: string | undefined;
2416
2421
  phoneNumber?: string | undefined;
2417
2422
  birthDate?: string | undefined;
2423
+ editedBy?: string | undefined;
2424
+ createdAt?: string | undefined;
2425
+ updatedAt?: string | undefined;
2418
2426
  }, {
2427
+ _id: string;
2419
2428
  name: string;
2429
+ email?: string | undefined;
2430
+ address?: string | undefined;
2420
2431
  username?: string | undefined;
2421
2432
  password?: string | undefined;
2422
2433
  roles?: number[] | undefined;
2423
- email?: string | undefined;
2424
- address?: string | undefined;
2425
2434
  country?: string | undefined;
2426
2435
  phoneNumber?: string | undefined;
2427
2436
  birthDate?: string | undefined;
2437
+ editedBy?: string | undefined;
2438
+ createdAt?: string | undefined;
2439
+ updatedAt?: string | undefined;
2428
2440
  }>;
2429
2441
  resolver: z.ZodOptional<z.ZodObject<{
2442
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2443
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2430
2444
  name: z.ZodString;
2431
2445
  username: z.ZodOptional<z.ZodString>;
2432
2446
  password: z.ZodOptional<z.ZodString>;
2433
2447
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2434
- email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2435
- address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2436
2448
  country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2437
2449
  phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2438
2450
  birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2439
- }, "strip", z.ZodTypeAny, {
2451
+ _id: z.ZodString;
2452
+ editedBy: z.ZodOptional<z.ZodString>;
2453
+ createdAt: z.ZodOptional<z.ZodString>;
2454
+ updatedAt: z.ZodOptional<z.ZodString>;
2455
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2456
+ _id: string;
2440
2457
  name: string;
2458
+ email?: string | undefined;
2459
+ address?: string | undefined;
2441
2460
  username?: string | undefined;
2442
2461
  password?: string | undefined;
2443
2462
  roles?: number[] | undefined;
2444
- email?: string | undefined;
2445
- address?: string | undefined;
2446
2463
  country?: string | undefined;
2447
2464
  phoneNumber?: string | undefined;
2448
2465
  birthDate?: string | undefined;
2466
+ editedBy?: string | undefined;
2467
+ createdAt?: string | undefined;
2468
+ updatedAt?: string | undefined;
2449
2469
  }, {
2470
+ _id: string;
2450
2471
  name: string;
2472
+ email?: string | undefined;
2473
+ address?: string | undefined;
2451
2474
  username?: string | undefined;
2452
2475
  password?: string | undefined;
2453
2476
  roles?: number[] | undefined;
2454
- email?: string | undefined;
2455
- address?: string | undefined;
2456
2477
  country?: string | undefined;
2457
2478
  phoneNumber?: string | undefined;
2458
2479
  birthDate?: string | undefined;
2480
+ editedBy?: string | undefined;
2481
+ createdAt?: string | undefined;
2482
+ updatedAt?: string | undefined;
2459
2483
  }>>;
2460
2484
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2461
2485
  status: TicketStatus;
@@ -2463,29 +2487,37 @@ declare const zReportTicketResponse: z.ZodObject<{
2463
2487
  title: string;
2464
2488
  description: string;
2465
2489
  requester: {
2490
+ _id: string;
2466
2491
  name: string;
2492
+ email?: string | undefined;
2493
+ address?: string | undefined;
2467
2494
  username?: string | undefined;
2468
2495
  password?: string | undefined;
2469
2496
  roles?: number[] | undefined;
2470
- email?: string | undefined;
2471
- address?: string | undefined;
2472
2497
  country?: string | undefined;
2473
2498
  phoneNumber?: string | undefined;
2474
2499
  birthDate?: string | undefined;
2500
+ editedBy?: string | undefined;
2501
+ createdAt?: string | undefined;
2502
+ updatedAt?: string | undefined;
2475
2503
  };
2476
2504
  editedBy?: string | undefined;
2477
2505
  createdAt?: string | undefined;
2478
2506
  updatedAt?: string | undefined;
2479
2507
  resolver?: {
2508
+ _id: string;
2480
2509
  name: string;
2510
+ email?: string | undefined;
2511
+ address?: string | undefined;
2481
2512
  username?: string | undefined;
2482
2513
  password?: string | undefined;
2483
2514
  roles?: number[] | undefined;
2484
- email?: string | undefined;
2485
- address?: string | undefined;
2486
2515
  country?: string | undefined;
2487
2516
  phoneNumber?: string | undefined;
2488
2517
  birthDate?: string | undefined;
2518
+ editedBy?: string | undefined;
2519
+ createdAt?: string | undefined;
2520
+ updatedAt?: string | undefined;
2489
2521
  } | undefined;
2490
2522
  }, {
2491
2523
  status: TicketStatus;
@@ -2493,29 +2525,37 @@ declare const zReportTicketResponse: z.ZodObject<{
2493
2525
  title: string;
2494
2526
  description: string;
2495
2527
  requester: {
2528
+ _id: string;
2496
2529
  name: string;
2530
+ email?: string | undefined;
2531
+ address?: string | undefined;
2497
2532
  username?: string | undefined;
2498
2533
  password?: string | undefined;
2499
2534
  roles?: number[] | undefined;
2500
- email?: string | undefined;
2501
- address?: string | undefined;
2502
2535
  country?: string | undefined;
2503
2536
  phoneNumber?: string | undefined;
2504
2537
  birthDate?: string | undefined;
2538
+ editedBy?: string | undefined;
2539
+ createdAt?: string | undefined;
2540
+ updatedAt?: string | undefined;
2505
2541
  };
2506
2542
  editedBy?: string | undefined;
2507
2543
  createdAt?: string | undefined;
2508
2544
  updatedAt?: string | undefined;
2509
2545
  resolver?: {
2546
+ _id: string;
2510
2547
  name: string;
2548
+ email?: string | undefined;
2549
+ address?: string | undefined;
2511
2550
  username?: string | undefined;
2512
2551
  password?: string | undefined;
2513
2552
  roles?: number[] | undefined;
2514
- email?: string | undefined;
2515
- address?: string | undefined;
2516
2553
  country?: string | undefined;
2517
2554
  phoneNumber?: string | undefined;
2518
2555
  birthDate?: string | undefined;
2556
+ editedBy?: string | undefined;
2557
+ createdAt?: string | undefined;
2558
+ updatedAt?: string | undefined;
2519
2559
  } | undefined;
2520
2560
  }>;
2521
2561
  type BReportTicket = z.infer<typeof zBReportTicket>;
package/index.d.ts CHANGED
@@ -2396,66 +2396,90 @@ declare const zReportTicketResponse: z.ZodObject<{
2396
2396
  title: z.ZodString;
2397
2397
  description: z.ZodString;
2398
2398
  requester: z.ZodObject<{
2399
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2400
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2399
2401
  name: z.ZodString;
2400
2402
  username: z.ZodOptional<z.ZodString>;
2401
2403
  password: z.ZodOptional<z.ZodString>;
2402
2404
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2403
- email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2404
- address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2405
2405
  country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2406
2406
  phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2407
2407
  birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2408
- }, "strip", z.ZodTypeAny, {
2408
+ _id: z.ZodString;
2409
+ editedBy: z.ZodOptional<z.ZodString>;
2410
+ createdAt: z.ZodOptional<z.ZodString>;
2411
+ updatedAt: z.ZodOptional<z.ZodString>;
2412
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2413
+ _id: string;
2409
2414
  name: string;
2415
+ email?: string | undefined;
2416
+ address?: string | undefined;
2410
2417
  username?: string | undefined;
2411
2418
  password?: string | undefined;
2412
2419
  roles?: number[] | undefined;
2413
- email?: string | undefined;
2414
- address?: string | undefined;
2415
2420
  country?: string | undefined;
2416
2421
  phoneNumber?: string | undefined;
2417
2422
  birthDate?: string | undefined;
2423
+ editedBy?: string | undefined;
2424
+ createdAt?: string | undefined;
2425
+ updatedAt?: string | undefined;
2418
2426
  }, {
2427
+ _id: string;
2419
2428
  name: string;
2429
+ email?: string | undefined;
2430
+ address?: string | undefined;
2420
2431
  username?: string | undefined;
2421
2432
  password?: string | undefined;
2422
2433
  roles?: number[] | undefined;
2423
- email?: string | undefined;
2424
- address?: string | undefined;
2425
2434
  country?: string | undefined;
2426
2435
  phoneNumber?: string | undefined;
2427
2436
  birthDate?: string | undefined;
2437
+ editedBy?: string | undefined;
2438
+ createdAt?: string | undefined;
2439
+ updatedAt?: string | undefined;
2428
2440
  }>;
2429
2441
  resolver: z.ZodOptional<z.ZodObject<{
2442
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2443
+ address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2430
2444
  name: z.ZodString;
2431
2445
  username: z.ZodOptional<z.ZodString>;
2432
2446
  password: z.ZodOptional<z.ZodString>;
2433
2447
  roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2434
- email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2435
- address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2436
2448
  country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2437
2449
  phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2438
2450
  birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
2439
- }, "strip", z.ZodTypeAny, {
2451
+ _id: z.ZodString;
2452
+ editedBy: z.ZodOptional<z.ZodString>;
2453
+ createdAt: z.ZodOptional<z.ZodString>;
2454
+ updatedAt: z.ZodOptional<z.ZodString>;
2455
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2456
+ _id: string;
2440
2457
  name: string;
2458
+ email?: string | undefined;
2459
+ address?: string | undefined;
2441
2460
  username?: string | undefined;
2442
2461
  password?: string | undefined;
2443
2462
  roles?: number[] | undefined;
2444
- email?: string | undefined;
2445
- address?: string | undefined;
2446
2463
  country?: string | undefined;
2447
2464
  phoneNumber?: string | undefined;
2448
2465
  birthDate?: string | undefined;
2466
+ editedBy?: string | undefined;
2467
+ createdAt?: string | undefined;
2468
+ updatedAt?: string | undefined;
2449
2469
  }, {
2470
+ _id: string;
2450
2471
  name: string;
2472
+ email?: string | undefined;
2473
+ address?: string | undefined;
2451
2474
  username?: string | undefined;
2452
2475
  password?: string | undefined;
2453
2476
  roles?: number[] | undefined;
2454
- email?: string | undefined;
2455
- address?: string | undefined;
2456
2477
  country?: string | undefined;
2457
2478
  phoneNumber?: string | undefined;
2458
2479
  birthDate?: string | undefined;
2480
+ editedBy?: string | undefined;
2481
+ createdAt?: string | undefined;
2482
+ updatedAt?: string | undefined;
2459
2483
  }>>;
2460
2484
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2461
2485
  status: TicketStatus;
@@ -2463,29 +2487,37 @@ declare const zReportTicketResponse: z.ZodObject<{
2463
2487
  title: string;
2464
2488
  description: string;
2465
2489
  requester: {
2490
+ _id: string;
2466
2491
  name: string;
2492
+ email?: string | undefined;
2493
+ address?: string | undefined;
2467
2494
  username?: string | undefined;
2468
2495
  password?: string | undefined;
2469
2496
  roles?: number[] | undefined;
2470
- email?: string | undefined;
2471
- address?: string | undefined;
2472
2497
  country?: string | undefined;
2473
2498
  phoneNumber?: string | undefined;
2474
2499
  birthDate?: string | undefined;
2500
+ editedBy?: string | undefined;
2501
+ createdAt?: string | undefined;
2502
+ updatedAt?: string | undefined;
2475
2503
  };
2476
2504
  editedBy?: string | undefined;
2477
2505
  createdAt?: string | undefined;
2478
2506
  updatedAt?: string | undefined;
2479
2507
  resolver?: {
2508
+ _id: string;
2480
2509
  name: string;
2510
+ email?: string | undefined;
2511
+ address?: string | undefined;
2481
2512
  username?: string | undefined;
2482
2513
  password?: string | undefined;
2483
2514
  roles?: number[] | undefined;
2484
- email?: string | undefined;
2485
- address?: string | undefined;
2486
2515
  country?: string | undefined;
2487
2516
  phoneNumber?: string | undefined;
2488
2517
  birthDate?: string | undefined;
2518
+ editedBy?: string | undefined;
2519
+ createdAt?: string | undefined;
2520
+ updatedAt?: string | undefined;
2489
2521
  } | undefined;
2490
2522
  }, {
2491
2523
  status: TicketStatus;
@@ -2493,29 +2525,37 @@ declare const zReportTicketResponse: z.ZodObject<{
2493
2525
  title: string;
2494
2526
  description: string;
2495
2527
  requester: {
2528
+ _id: string;
2496
2529
  name: string;
2530
+ email?: string | undefined;
2531
+ address?: string | undefined;
2497
2532
  username?: string | undefined;
2498
2533
  password?: string | undefined;
2499
2534
  roles?: number[] | undefined;
2500
- email?: string | undefined;
2501
- address?: string | undefined;
2502
2535
  country?: string | undefined;
2503
2536
  phoneNumber?: string | undefined;
2504
2537
  birthDate?: string | undefined;
2538
+ editedBy?: string | undefined;
2539
+ createdAt?: string | undefined;
2540
+ updatedAt?: string | undefined;
2505
2541
  };
2506
2542
  editedBy?: string | undefined;
2507
2543
  createdAt?: string | undefined;
2508
2544
  updatedAt?: string | undefined;
2509
2545
  resolver?: {
2546
+ _id: string;
2510
2547
  name: string;
2548
+ email?: string | undefined;
2549
+ address?: string | undefined;
2511
2550
  username?: string | undefined;
2512
2551
  password?: string | undefined;
2513
2552
  roles?: number[] | undefined;
2514
- email?: string | undefined;
2515
- address?: string | undefined;
2516
2553
  country?: string | undefined;
2517
2554
  phoneNumber?: string | undefined;
2518
2555
  birthDate?: string | undefined;
2556
+ editedBy?: string | undefined;
2557
+ createdAt?: string | undefined;
2558
+ updatedAt?: string | undefined;
2519
2559
  } | undefined;
2520
2560
  }>;
2521
2561
  type BReportTicket = z.infer<typeof zBReportTicket>;
package/index.js CHANGED
@@ -571,8 +571,8 @@ var zBReportTicket = import_zod20.z.object({
571
571
  });
572
572
  var zReportTicket = addAutoProps(zBReportTicket);
573
573
  var zReportTicketResponse = zReportTicket.extend({
574
- requester: zBUser,
575
- resolver: zBUser.optional()
574
+ requester: zUser,
575
+ resolver: zUser.optional()
576
576
  });
577
577
 
578
578
  // src/interface/semester/season.ts
package/index.mjs CHANGED
@@ -480,8 +480,8 @@ var zBReportTicket = z20.object({
480
480
  });
481
481
  var zReportTicket = addAutoProps(zBReportTicket);
482
482
  var zReportTicketResponse = zReportTicket.extend({
483
- requester: zBUser,
484
- resolver: zBUser.optional()
483
+ requester: zUser,
484
+ resolver: zUser.optional()
485
485
  });
486
486
 
487
487
  // src/interface/semester/season.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",