@awarevue/api-types 2.0.81 → 2.0.83

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.
Files changed (131) hide show
  1. package/dist/alarm-automation.d.ts +21 -37
  2. package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
  3. package/dist/api/agent-protocol/protocol.js +16 -12
  4. package/dist/api/commands/alarm.d.ts +40 -248
  5. package/dist/api/commands/all.d.ts +393 -4642
  6. package/dist/api/commands/camera-lift.d.ts +8 -32
  7. package/dist/api/commands/camera.d.ts +82 -373
  8. package/dist/api/commands/display.d.ts +21 -373
  9. package/dist/api/commands/door.d.ts +16 -64
  10. package/dist/api/commands/io-board.d.ts +4 -40
  11. package/dist/api/commands/nvr-exporter.d.ts +104 -1380
  12. package/dist/api/commands/nvr-recorder.d.ts +400 -5288
  13. package/dist/api/commands/pbx.d.ts +4 -56
  14. package/dist/api/commands/presence-tracker.d.ts +12 -128
  15. package/dist/api/commands/server.d.ts +114 -1382
  16. package/dist/api/commands/server.js +1 -1
  17. package/dist/api/error.d.ts +77 -443
  18. package/dist/api/error.js +1 -1
  19. package/dist/api/events/alarm.d.ts +20 -148
  20. package/dist/api/events/all.d.ts +74 -526
  21. package/dist/api/events/all.js +1 -1
  22. package/dist/api/events/camera.d.ts +46 -470
  23. package/dist/api/events/display.d.ts +1 -5
  24. package/dist/api/events/door.d.ts +34 -146
  25. package/dist/api/events/intercom-terminal.d.ts +22 -42
  26. package/dist/api/events/io-board.d.ts +2 -18
  27. package/dist/api/events/nvr-exporter.d.ts +4 -32
  28. package/dist/api/events/panic-button.d.ts +2 -10
  29. package/dist/api/events/presence-tracker.d.ts +4 -88
  30. package/dist/api/events/reader.d.ts +2 -22
  31. package/dist/api/events/server.d.ts +6 -34
  32. package/dist/api/mqtt/payloads.d.ts +4 -26
  33. package/dist/api/queries/all.d.ts +188 -1622
  34. package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
  35. package/dist/api/queries/nvr-exporter.d.ts +9 -73
  36. package/dist/api/queries/nvr-recorder.d.ts +300 -2828
  37. package/dist/api/rest/access-rule.d.ts +10 -86
  38. package/dist/api/rest/agreement.d.ts +3 -18
  39. package/dist/api/rest/api-keys.d.ts +3 -17
  40. package/dist/api/rest/app.d.ts +3 -51
  41. package/dist/api/rest/auth.d.ts +3 -19
  42. package/dist/api/rest/automation.d.ts +11 -236
  43. package/dist/api/rest/bookmarks.d.ts +8 -56
  44. package/dist/api/rest/camera.d.ts +12 -70
  45. package/dist/api/rest/cast.d.ts +1 -7
  46. package/dist/api/rest/custom-field.d.ts +21 -24
  47. package/dist/api/rest/device-group.d.ts +8 -32
  48. package/dist/api/rest/device.d.ts +104 -176
  49. package/dist/api/rest/io-device.d.ts +7 -75
  50. package/dist/api/rest/io-device.js +2 -2
  51. package/dist/api/rest/layout.d.ts +4 -102
  52. package/dist/api/rest/macros.d.ts +6 -82
  53. package/dist/api/rest/media.d.ts +17 -141
  54. package/dist/api/rest/notifications.d.ts +7 -15
  55. package/dist/api/rest/person-agreement.d.ts +1 -9
  56. package/dist/api/rest/person-presence.d.ts +8 -50
  57. package/dist/api/rest/person-type.d.ts +6 -39
  58. package/dist/api/rest/person.d.ts +18 -96
  59. package/dist/api/rest/query.d.ts +5 -15
  60. package/dist/api/rest/schedule.d.ts +78 -216
  61. package/dist/api/rest/security-level.d.ts +6 -43
  62. package/dist/api/rest/template.d.ts +10 -20
  63. package/dist/api/rest/token-conversion.d.ts +11 -28
  64. package/dist/api/rest/user.d.ts +15 -97
  65. package/dist/api/rest/view.d.ts +24 -496
  66. package/dist/api/rest/webrtc-playback.d.ts +3 -25
  67. package/dist/api/rest/zone.d.ts +5 -21
  68. package/dist/api/ws/device-communication.d.ts +10 -62
  69. package/dist/api/ws/notifications.d.ts +7 -33
  70. package/dist/api/ws/progress.d.ts +10 -72
  71. package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
  72. package/dist/objects/access-rule.d.ts +12 -132
  73. package/dist/objects/access-rule.js +1 -1
  74. package/dist/objects/agent-metadata.d.ts +38 -146
  75. package/dist/objects/agent-metadata.js +1 -1
  76. package/dist/objects/agreement.d.ts +1 -13
  77. package/dist/objects/all.d.ts +20 -1
  78. package/dist/objects/api-key.d.ts +1 -13
  79. package/dist/objects/automation-rule.d.ts +9 -168
  80. package/dist/objects/automation-rule.js +2 -2
  81. package/dist/objects/bookmark.d.ts +3 -33
  82. package/dist/objects/bookmark.js +1 -1
  83. package/dist/objects/credential.d.ts +13 -13
  84. package/dist/objects/credential.js +1 -1
  85. package/dist/objects/custom-field.d.ts +19 -15
  86. package/dist/objects/device/alarm.d.ts +1 -1
  87. package/dist/objects/device/any-device.d.ts +1333 -4451
  88. package/dist/objects/device/camera-lift.d.ts +1 -1
  89. package/dist/objects/device/camera.d.ts +29 -125
  90. package/dist/objects/device/camera.js +1 -1
  91. package/dist/objects/device/device-import.d.ts +307 -1735
  92. package/dist/objects/device/device-relation.d.ts +70 -58
  93. package/dist/objects/device/display.d.ts +1 -1
  94. package/dist/objects/device/door.d.ts +9 -14
  95. package/dist/objects/device/intercom-terminal.d.ts +10 -59
  96. package/dist/objects/device/io-board.d.ts +3 -9
  97. package/dist/objects/device/motion-sensor.d.ts +1 -1
  98. package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
  99. package/dist/objects/device/nvr-exporter.d.ts +3 -9
  100. package/dist/objects/device/nvr-recorder.d.ts +16 -68
  101. package/dist/objects/device/panic-button.d.ts +1 -1
  102. package/dist/objects/device/pbx.d.ts +1 -5
  103. package/dist/objects/device/system.d.ts +1 -1
  104. package/dist/objects/device/system.js +1 -1
  105. package/dist/objects/device-group.d.ts +2 -16
  106. package/dist/objects/layout.d.ts +3 -75
  107. package/dist/objects/macro.d.ts +3 -59
  108. package/dist/objects/macro.js +2 -2
  109. package/dist/objects/notification.d.ts +6 -24
  110. package/dist/objects/notification.js +1 -1
  111. package/dist/objects/person-agreement.d.ts +1 -13
  112. package/dist/objects/person-presence.d.ts +11 -165
  113. package/dist/objects/person-type.d.ts +2 -22
  114. package/dist/objects/person.d.ts +21 -153
  115. package/dist/objects/person.js +3 -3
  116. package/dist/objects/role.d.ts +3 -15
  117. package/dist/objects/schedule.d.ts +152 -314
  118. package/dist/objects/schedule.js +1 -1
  119. package/dist/objects/security-level.d.ts +1 -21
  120. package/dist/objects/template.d.ts +9 -13
  121. package/dist/objects/token-conversion.d.ts +8 -18
  122. package/dist/objects/user.d.ts +2 -20
  123. package/dist/objects/view.d.ts +52 -682
  124. package/dist/objects/world-object.d.ts +1 -7
  125. package/dist/objects/zone.d.ts +5 -29
  126. package/dist/objects/zone.js +1 -1
  127. package/dist/package.json +3 -3
  128. package/dist/permissions.d.ts +1 -1
  129. package/dist/primitives.d.ts +113 -551
  130. package/dist/primitives.js +1 -1
  131. package/package.json +3 -3
@@ -1,53 +1,20 @@
1
1
  import { z } from 'zod';
2
- export declare const sCreatePersonTypeRequest: z.ZodObject<Omit<{
2
+ export declare const sCreatePersonTypeRequest: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  displayName: z.ZodString;
5
+ agreements: z.ZodArray<z.ZodString>;
5
6
  accessControlUser: z.ZodBoolean;
6
7
  systemUser: z.ZodBoolean;
7
- agreements: z.ZodArray<z.ZodString, "many">;
8
8
  securityCheck: z.ZodBoolean;
9
9
  inOnCreation: z.ZodBoolean;
10
- createdOn: z.ZodString;
11
- lastModifiedOn: z.ZodString;
12
- }, "createdOn" | "lastModifiedOn">, "strip", z.ZodTypeAny, {
13
- id: string;
14
- displayName: string;
15
- agreements: string[];
16
- accessControlUser: boolean;
17
- systemUser: boolean;
18
- securityCheck: boolean;
19
- inOnCreation: boolean;
20
- }, {
21
- id: string;
22
- displayName: string;
23
- agreements: string[];
24
- accessControlUser: boolean;
25
- systemUser: boolean;
26
- securityCheck: boolean;
27
- inOnCreation: boolean;
28
- }>;
10
+ }, z.core.$strip>;
29
11
  export type CreatePersonTypeRequest = z.infer<typeof sCreatePersonTypeRequest>;
30
- export declare const sUpdatePersonTypeRequest: z.ZodObject<Omit<{
31
- id: z.ZodOptional<z.ZodString>;
12
+ export declare const sUpdatePersonTypeRequest: z.ZodObject<{
32
13
  displayName: z.ZodOptional<z.ZodString>;
33
- agreements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ agreements: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
15
  accessControlUser: z.ZodOptional<z.ZodBoolean>;
35
16
  systemUser: z.ZodOptional<z.ZodBoolean>;
36
17
  securityCheck: z.ZodOptional<z.ZodBoolean>;
37
18
  inOnCreation: z.ZodOptional<z.ZodBoolean>;
38
- }, "id">, "strip", z.ZodTypeAny, {
39
- displayName?: string | undefined;
40
- agreements?: string[] | undefined;
41
- accessControlUser?: boolean | undefined;
42
- systemUser?: boolean | undefined;
43
- securityCheck?: boolean | undefined;
44
- inOnCreation?: boolean | undefined;
45
- }, {
46
- displayName?: string | undefined;
47
- agreements?: string[] | undefined;
48
- accessControlUser?: boolean | undefined;
49
- systemUser?: boolean | undefined;
50
- securityCheck?: boolean | undefined;
51
- inOnCreation?: boolean | undefined;
52
- }>;
19
+ }, z.core.$strip>;
53
20
  export type UpdatePersonTypeRequest = z.infer<typeof sUpdatePersonTypeRequest>;
@@ -9,56 +9,18 @@ export declare const sCreatePersonRequest: z.ZodObject<{
9
9
  validTo: z.ZodNullable<z.ZodString>;
10
10
  avatarId: z.ZodNullable<z.ZodString>;
11
11
  credentials: z.ZodArray<z.ZodObject<{
12
- type: z.ZodEnum<["card", "pin", "fingerprint"]>;
13
- value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
12
+ type: z.ZodEnum<{
13
+ card: "card";
14
+ pin: "pin";
15
+ fingerprint: "fingerprint";
16
+ }>;
17
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
14
18
  note: z.ZodNullable<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- value: string | Record<string, unknown>;
17
- type: "card" | "pin" | "fingerprint";
18
- note: string | null;
19
- }, {
20
- value: string | Record<string, unknown>;
21
- type: "card" | "pin" | "fingerprint";
22
- note: string | null;
23
- }>, "many">;
24
- accessRules: z.ZodArray<z.ZodString, "many">;
19
+ }, z.core.$strip>>;
20
+ accessRules: z.ZodArray<z.ZodString>;
25
21
  customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
26
22
  type: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- type: string;
29
- firstName: string;
30
- lastName: string;
31
- avatarId: string | null;
32
- position: string | null;
33
- accessSuspended: boolean;
34
- staffMember: boolean;
35
- validFrom: string | null;
36
- validTo: string | null;
37
- credentials: {
38
- value: string | Record<string, unknown>;
39
- type: "card" | "pin" | "fingerprint";
40
- note: string | null;
41
- }[];
42
- accessRules: string[];
43
- customFields: Record<string, string> | null;
44
- }, {
45
- type: string;
46
- firstName: string;
47
- lastName: string;
48
- avatarId: string | null;
49
- position: string | null;
50
- accessSuspended: boolean;
51
- staffMember: boolean;
52
- validFrom: string | null;
53
- validTo: string | null;
54
- credentials: {
55
- value: string | Record<string, unknown>;
56
- type: "card" | "pin" | "fingerprint";
57
- note: string | null;
58
- }[];
59
- accessRules: string[];
60
- customFields: Record<string, string> | null;
61
- }>;
23
+ }, z.core.$strip>;
62
24
  export declare const sUpdatePersonRequest: z.ZodObject<{
63
25
  firstName: z.ZodOptional<z.ZodString>;
64
26
  lastName: z.ZodOptional<z.ZodString>;
@@ -69,59 +31,19 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
69
31
  validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
32
  avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
33
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
- type: z.ZodEnum<["card", "pin", "fingerprint"]>;
73
- value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
34
+ type: z.ZodEnum<{
35
+ card: "card";
36
+ pin: "pin";
37
+ fingerprint: "fingerprint";
38
+ }>;
39
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
74
40
  note: z.ZodNullable<z.ZodString>;
75
- }, "strip", z.ZodTypeAny, {
76
- value: string | Record<string, unknown>;
77
- type: "card" | "pin" | "fingerprint";
78
- note: string | null;
79
- }, {
80
- value: string | Record<string, unknown>;
81
- type: "card" | "pin" | "fingerprint";
82
- note: string | null;
83
- }>, "many">>;
84
- accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
41
+ }, z.core.$strip>>>;
42
+ accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
43
  customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
86
44
  type: z.ZodOptional<z.ZodString>;
87
45
  archived: z.ZodOptional<z.ZodBoolean>;
88
- }, "strip", z.ZodTypeAny, {
89
- type?: string | undefined;
90
- firstName?: string | undefined;
91
- lastName?: string | undefined;
92
- avatarId?: string | null | undefined;
93
- position?: string | null | undefined;
94
- accessSuspended?: boolean | undefined;
95
- staffMember?: boolean | undefined;
96
- validFrom?: string | null | undefined;
97
- validTo?: string | null | undefined;
98
- credentials?: {
99
- value: string | Record<string, unknown>;
100
- type: "card" | "pin" | "fingerprint";
101
- note: string | null;
102
- }[] | undefined;
103
- accessRules?: string[] | undefined;
104
- customFields?: Record<string, string> | null | undefined;
105
- archived?: boolean | undefined;
106
- }, {
107
- type?: string | undefined;
108
- firstName?: string | undefined;
109
- lastName?: string | undefined;
110
- avatarId?: string | null | undefined;
111
- position?: string | null | undefined;
112
- accessSuspended?: boolean | undefined;
113
- staffMember?: boolean | undefined;
114
- validFrom?: string | null | undefined;
115
- validTo?: string | null | undefined;
116
- credentials?: {
117
- value: string | Record<string, unknown>;
118
- type: "card" | "pin" | "fingerprint";
119
- note: string | null;
120
- }[] | undefined;
121
- accessRules?: string[] | undefined;
122
- customFields?: Record<string, string> | null | undefined;
123
- archived?: boolean | undefined;
124
- }>;
46
+ }, z.core.$strip>;
125
47
  export type CreatePersonRequest = z.infer<typeof sCreatePersonRequest>;
126
48
  export type UpdatePersonRequest = {
127
49
  id: string;
@@ -8,20 +8,10 @@ export interface PaginatedQueryResponse<T> {
8
8
  items: T[];
9
9
  total: number;
10
10
  }
11
- export declare const sPaginatedQueryRequestOf: <T extends z.AnyZodObject>(criteriaSchema: T) => z.ZodObject<{} & {
12
- [x: string]: z.ZodOptional<any>;
13
- }, any, any, {
14
- [x: string]: any;
15
- }, {
16
- [x: string]: any;
17
- }>;
11
+ export declare const sPaginatedQueryRequestOf: <T extends z.ZodObject<z.ZodRawShape>>(criteriaSchema: T) => z.ZodObject<{
12
+ [x: string]: z.ZodOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
13
+ }, z.core.$strip>;
18
14
  export declare const sPaginatedQueryResponseOf: <T extends ZodTypeAny>(itemSchema: T) => z.ZodObject<{
19
- items: z.ZodArray<T, "many">;
15
+ items: z.ZodArray<T>;
20
16
  total: z.ZodNumber;
21
- }, "strip", z.ZodTypeAny, {
22
- items: T["_output"][];
23
- total: number;
24
- }, {
25
- items: T["_input"][];
26
- total: number;
27
- }>;
17
+ }, z.core.$strip>;
@@ -1,249 +1,111 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sCreateScheduleRequest: z.ZodObject<{
3
3
  displayName: z.ZodString;
4
- flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
4
+ flag: z.ZodNullable<z.ZodEnum<{
5
+ never: "never";
6
+ always: "always";
7
+ }>>;
5
8
  include: z.ZodNullable<z.ZodObject<{
6
9
  startDate: z.ZodNullable<z.ZodString>;
7
10
  endDate: z.ZodNullable<z.ZodString>;
8
11
  timeIntervals: z.ZodArray<z.ZodObject<{
9
- weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
12
+ weekDay: z.ZodEnum<{
13
+ mon: "mon";
14
+ tue: "tue";
15
+ wed: "wed";
16
+ thu: "thu";
17
+ fri: "fri";
18
+ sat: "sat";
19
+ sun: "sun";
20
+ }>;
10
21
  from: z.ZodNumber;
11
22
  to: z.ZodNumber;
12
- }, "strip", z.ZodTypeAny, {
13
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
14
- from: number;
15
- to: number;
16
- }, {
17
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
18
- from: number;
19
- to: number;
20
- }>, "many">;
21
- repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
22
- }, "strip", z.ZodTypeAny, {
23
- startDate: string | null;
24
- endDate: string | null;
25
- timeIntervals: {
26
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
27
- from: number;
28
- to: number;
29
- }[];
30
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
31
- }, {
32
- startDate: string | null;
33
- endDate: string | null;
34
- timeIntervals: {
35
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
36
- from: number;
37
- to: number;
38
- }[];
39
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
40
- }>>;
23
+ }, z.core.$strip>>;
24
+ repeat: z.ZodNullable<z.ZodEnum<{
25
+ daily: "daily";
26
+ weekly: "weekly";
27
+ monthly: "monthly";
28
+ yearly: "yearly";
29
+ }>>;
30
+ }, z.core.$strip>>;
41
31
  exclude: z.ZodNullable<z.ZodObject<{
42
32
  startDate: z.ZodNullable<z.ZodString>;
43
33
  endDate: z.ZodNullable<z.ZodString>;
44
34
  timeIntervals: z.ZodArray<z.ZodObject<{
45
- weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
35
+ weekDay: z.ZodEnum<{
36
+ mon: "mon";
37
+ tue: "tue";
38
+ wed: "wed";
39
+ thu: "thu";
40
+ fri: "fri";
41
+ sat: "sat";
42
+ sun: "sun";
43
+ }>;
46
44
  from: z.ZodNumber;
47
45
  to: z.ZodNumber;
48
- }, "strip", z.ZodTypeAny, {
49
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
50
- from: number;
51
- to: number;
52
- }, {
53
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
54
- from: number;
55
- to: number;
56
- }>, "many">;
57
- repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
58
- }, "strip", z.ZodTypeAny, {
59
- startDate: string | null;
60
- endDate: string | null;
61
- timeIntervals: {
62
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
63
- from: number;
64
- to: number;
65
- }[];
66
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
67
- }, {
68
- startDate: string | null;
69
- endDate: string | null;
70
- timeIntervals: {
71
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
72
- from: number;
73
- to: number;
74
- }[];
75
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
76
- }>>;
77
- }, "strip", z.ZodTypeAny, {
78
- displayName: string;
79
- include: {
80
- startDate: string | null;
81
- endDate: string | null;
82
- timeIntervals: {
83
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
84
- from: number;
85
- to: number;
86
- }[];
87
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
88
- } | null;
89
- exclude: {
90
- startDate: string | null;
91
- endDate: string | null;
92
- timeIntervals: {
93
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
94
- from: number;
95
- to: number;
96
- }[];
97
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
98
- } | null;
99
- flag: "never" | "always" | null;
100
- }, {
101
- displayName: string;
102
- include: {
103
- startDate: string | null;
104
- endDate: string | null;
105
- timeIntervals: {
106
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
107
- from: number;
108
- to: number;
109
- }[];
110
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
111
- } | null;
112
- exclude: {
113
- startDate: string | null;
114
- endDate: string | null;
115
- timeIntervals: {
116
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
117
- from: number;
118
- to: number;
119
- }[];
120
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
121
- } | null;
122
- flag: "never" | "always" | null;
123
- }>;
46
+ }, z.core.$strip>>;
47
+ repeat: z.ZodNullable<z.ZodEnum<{
48
+ daily: "daily";
49
+ weekly: "weekly";
50
+ monthly: "monthly";
51
+ yearly: "yearly";
52
+ }>>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
124
55
  export type CreateScheduleRequest = z.infer<typeof sCreateScheduleRequest>;
125
56
  export declare const sUpdateScheduleRequest: z.ZodObject<{
126
57
  displayName: z.ZodOptional<z.ZodString>;
127
- flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["always", "never"]>>>;
58
+ flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
59
+ never: "never";
60
+ always: "always";
61
+ }>>>;
128
62
  include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
129
63
  startDate: z.ZodNullable<z.ZodString>;
130
64
  endDate: z.ZodNullable<z.ZodString>;
131
65
  timeIntervals: z.ZodArray<z.ZodObject<{
132
- weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
66
+ weekDay: z.ZodEnum<{
67
+ mon: "mon";
68
+ tue: "tue";
69
+ wed: "wed";
70
+ thu: "thu";
71
+ fri: "fri";
72
+ sat: "sat";
73
+ sun: "sun";
74
+ }>;
133
75
  from: z.ZodNumber;
134
76
  to: z.ZodNumber;
135
- }, "strip", z.ZodTypeAny, {
136
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
137
- from: number;
138
- to: number;
139
- }, {
140
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
141
- from: number;
142
- to: number;
143
- }>, "many">;
144
- repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
145
- }, "strip", z.ZodTypeAny, {
146
- startDate: string | null;
147
- endDate: string | null;
148
- timeIntervals: {
149
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
150
- from: number;
151
- to: number;
152
- }[];
153
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
154
- }, {
155
- startDate: string | null;
156
- endDate: string | null;
157
- timeIntervals: {
158
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
159
- from: number;
160
- to: number;
161
- }[];
162
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
163
- }>>>;
77
+ }, z.core.$strip>>;
78
+ repeat: z.ZodNullable<z.ZodEnum<{
79
+ daily: "daily";
80
+ weekly: "weekly";
81
+ monthly: "monthly";
82
+ yearly: "yearly";
83
+ }>>;
84
+ }, z.core.$strip>>>;
164
85
  exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
165
86
  startDate: z.ZodNullable<z.ZodString>;
166
87
  endDate: z.ZodNullable<z.ZodString>;
167
88
  timeIntervals: z.ZodArray<z.ZodObject<{
168
- weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
89
+ weekDay: z.ZodEnum<{
90
+ mon: "mon";
91
+ tue: "tue";
92
+ wed: "wed";
93
+ thu: "thu";
94
+ fri: "fri";
95
+ sat: "sat";
96
+ sun: "sun";
97
+ }>;
169
98
  from: z.ZodNumber;
170
99
  to: z.ZodNumber;
171
- }, "strip", z.ZodTypeAny, {
172
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
173
- from: number;
174
- to: number;
175
- }, {
176
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
177
- from: number;
178
- to: number;
179
- }>, "many">;
180
- repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
181
- }, "strip", z.ZodTypeAny, {
182
- startDate: string | null;
183
- endDate: string | null;
184
- timeIntervals: {
185
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
186
- from: number;
187
- to: number;
188
- }[];
189
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
190
- }, {
191
- startDate: string | null;
192
- endDate: string | null;
193
- timeIntervals: {
194
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
195
- from: number;
196
- to: number;
197
- }[];
198
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
199
- }>>>;
200
- }, "strip", z.ZodTypeAny, {
201
- displayName?: string | undefined;
202
- include?: {
203
- startDate: string | null;
204
- endDate: string | null;
205
- timeIntervals: {
206
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
207
- from: number;
208
- to: number;
209
- }[];
210
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
211
- } | null | undefined;
212
- exclude?: {
213
- startDate: string | null;
214
- endDate: string | null;
215
- timeIntervals: {
216
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
217
- from: number;
218
- to: number;
219
- }[];
220
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
221
- } | null | undefined;
222
- flag?: "never" | "always" | null | undefined;
223
- }, {
224
- displayName?: string | undefined;
225
- include?: {
226
- startDate: string | null;
227
- endDate: string | null;
228
- timeIntervals: {
229
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
230
- from: number;
231
- to: number;
232
- }[];
233
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
234
- } | null | undefined;
235
- exclude?: {
236
- startDate: string | null;
237
- endDate: string | null;
238
- timeIntervals: {
239
- weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
240
- from: number;
241
- to: number;
242
- }[];
243
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
244
- } | null | undefined;
245
- flag?: "never" | "always" | null | undefined;
246
- }>;
100
+ }, z.core.$strip>>;
101
+ repeat: z.ZodNullable<z.ZodEnum<{
102
+ daily: "daily";
103
+ weekly: "weekly";
104
+ monthly: "monthly";
105
+ yearly: "yearly";
106
+ }>>;
107
+ }, z.core.$strip>>>;
108
+ }, z.core.$strip>;
247
109
  export type UpdateScheduleRequest = {
248
110
  id: string;
249
111
  } & z.infer<typeof sUpdateScheduleRequest>;
@@ -1,34 +1,16 @@
1
1
  import { z } from 'zod';
2
- export declare const sAddSecurityLevelRequest: z.ZodObject<Omit<{
3
- id: z.ZodString;
4
- order: z.ZodNumber;
2
+ export declare const sAddSecurityLevelRequest: z.ZodObject<{
3
+ default: z.ZodBoolean;
5
4
  name: z.ZodString;
5
+ order: z.ZodNumber;
6
6
  active: z.ZodBoolean;
7
7
  color: z.ZodString;
8
8
  checkFrequency: z.ZodNumber;
9
9
  checkOnExit: z.ZodBoolean;
10
10
  alwaysShowCheck: z.ZodBoolean;
11
- default: z.ZodBoolean;
12
- }, "id">, "strip", z.ZodTypeAny, {
13
- name: string;
14
- order: number;
15
- active: boolean;
16
- color: string;
17
- checkFrequency: number;
18
- checkOnExit: boolean;
19
- alwaysShowCheck: boolean;
20
- default: boolean;
21
- }, {
22
- name: string;
23
- order: number;
24
- active: boolean;
25
- color: string;
26
- checkFrequency: number;
27
- checkOnExit: boolean;
28
- alwaysShowCheck: boolean;
29
- default: boolean;
30
- }>;
11
+ }, z.core.$strip>;
31
12
  export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
13
+ default: z.ZodOptional<z.ZodBoolean>;
32
14
  name: z.ZodOptional<z.ZodString>;
33
15
  order: z.ZodOptional<z.ZodNumber>;
34
16
  active: z.ZodOptional<z.ZodBoolean>;
@@ -36,25 +18,6 @@ export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
36
18
  checkFrequency: z.ZodOptional<z.ZodNumber>;
37
19
  checkOnExit: z.ZodOptional<z.ZodBoolean>;
38
20
  alwaysShowCheck: z.ZodOptional<z.ZodBoolean>;
39
- default: z.ZodOptional<z.ZodBoolean>;
40
- }, "strip", z.ZodTypeAny, {
41
- name?: string | undefined;
42
- order?: number | undefined;
43
- active?: boolean | undefined;
44
- color?: string | undefined;
45
- checkFrequency?: number | undefined;
46
- checkOnExit?: boolean | undefined;
47
- alwaysShowCheck?: boolean | undefined;
48
- default?: boolean | undefined;
49
- }, {
50
- name?: string | undefined;
51
- order?: number | undefined;
52
- active?: boolean | undefined;
53
- color?: string | undefined;
54
- checkFrequency?: number | undefined;
55
- checkOnExit?: boolean | undefined;
56
- alwaysShowCheck?: boolean | undefined;
57
- default?: boolean | undefined;
58
- }>;
21
+ }, z.core.$strip>;
59
22
  export type AddSecurityLevelRequest = z.infer<typeof sAddSecurityLevelRequest>;
60
23
  export type UpdateSecurityLevelRequest = z.infer<typeof sUpdateSecurityLevelRequest>;
@@ -2,30 +2,20 @@ import { TemplateDto } from '../../objects/template';
2
2
  import { z } from 'zod';
3
3
  export declare const sNewTemplateRequest: z.ZodObject<{
4
4
  name: z.ZodString;
5
- type: z.ZodEnum<["id", "report"]>;
5
+ type: z.ZodEnum<{
6
+ id: "id";
7
+ report: "report";
8
+ }>;
6
9
  templateHtmlId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- type: "id" | "report";
9
- name: string;
10
- templateHtmlId: string;
11
- }, {
12
- type: "id" | "report";
13
- name: string;
14
- templateHtmlId: string;
15
- }>;
10
+ }, z.core.$strip>;
16
11
  export declare const sUpdateTemplateRequest: z.ZodObject<{
17
12
  name: z.ZodOptional<z.ZodString>;
18
- type: z.ZodOptional<z.ZodEnum<["id", "report"]>>;
13
+ type: z.ZodOptional<z.ZodEnum<{
14
+ id: "id";
15
+ report: "report";
16
+ }>>;
19
17
  templateHtmlId: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- type?: "id" | "report" | undefined;
22
- name?: string | undefined;
23
- templateHtmlId?: string | undefined;
24
- }, {
25
- type?: "id" | "report" | undefined;
26
- name?: string | undefined;
27
- templateHtmlId?: string | undefined;
28
- }>;
18
+ }, z.core.$strip>;
29
19
  export type NewTemplateRequest = z.infer<typeof sNewTemplateRequest>;
30
20
  export type UpdateTemplateRequest = z.infer<typeof sUpdateTemplateRequest>;
31
21
  export type TemplateRequestQueryParams = {