@awarevue/api-types 1.0.92 → 1.0.93

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/macros.d.ts CHANGED
@@ -21,6 +21,9 @@ export declare const sMacroItemDto: z.ZodObject<{
21
21
  export declare const sMacroDto: z.ZodObject<{
22
22
  id: z.ZodString;
23
23
  displayName: z.ZodString;
24
+ code: z.ZodNullable<z.ZodString>;
25
+ module: z.ZodNullable<z.ZodString>;
26
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
27
  createdOn: z.ZodString;
25
28
  lastModifiedOn: z.ZodString;
26
29
  createdBy: z.ZodNullable<z.ZodString>;
@@ -44,7 +47,10 @@ export declare const sMacroDto: z.ZodObject<{
44
47
  stepId: string;
45
48
  }>, "many">;
46
49
  }, "strip", z.ZodTypeAny, {
50
+ code: string | null;
47
51
  id: string;
52
+ module: string | null;
53
+ metadata: Record<string, unknown>;
48
54
  items: {
49
55
  id: string | null;
50
56
  params: Record<string, unknown>;
@@ -57,7 +63,10 @@ export declare const sMacroDto: z.ZodObject<{
57
63
  lastModifiedOn: string;
58
64
  createdBy: string | null;
59
65
  }, {
66
+ code: string | null;
60
67
  id: string;
68
+ module: string | null;
69
+ metadata: Record<string, unknown>;
61
70
  items: {
62
71
  id: string | null;
63
72
  params: Record<string, unknown>;
@@ -73,6 +82,9 @@ export declare const sMacroDto: z.ZodObject<{
73
82
  export declare const sAddMacroRequest: z.ZodObject<Omit<{
74
83
  id: z.ZodString;
75
84
  displayName: z.ZodString;
85
+ code: z.ZodNullable<z.ZodString>;
86
+ module: z.ZodNullable<z.ZodString>;
87
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
76
88
  createdOn: z.ZodString;
77
89
  lastModifiedOn: z.ZodString;
78
90
  createdBy: z.ZodNullable<z.ZodString>;
@@ -96,6 +108,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
96
108
  stepId: string;
97
109
  }>, "many">;
98
110
  }, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
111
+ code: string | null;
112
+ module: string | null;
113
+ metadata: Record<string, unknown>;
99
114
  items: {
100
115
  id: string | null;
101
116
  params: Record<string, unknown>;
@@ -105,6 +120,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
105
120
  }[];
106
121
  displayName: string;
107
122
  }, {
123
+ code: string | null;
124
+ module: string | null;
125
+ metadata: Record<string, unknown>;
108
126
  items: {
109
127
  id: string | null;
110
128
  params: Record<string, unknown>;
@@ -115,6 +133,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
115
133
  displayName: string;
116
134
  }>;
117
135
  export declare const sUpdateMacroRequest: z.ZodObject<{
136
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ module: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
118
139
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
140
  id: z.ZodNullable<z.ZodString>;
120
141
  stepId: z.ZodString;
@@ -136,6 +157,9 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
136
157
  }>, "many">>;
137
158
  displayName: z.ZodOptional<z.ZodString>;
138
159
  }, "strip", z.ZodTypeAny, {
160
+ code?: string | null | undefined;
161
+ module?: string | null | undefined;
162
+ metadata?: Record<string, unknown> | undefined;
139
163
  items?: {
140
164
  id: string | null;
141
165
  params: Record<string, unknown>;
@@ -145,6 +169,9 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
145
169
  }[] | undefined;
146
170
  displayName?: string | undefined;
147
171
  }, {
172
+ code?: string | null | undefined;
173
+ module?: string | null | undefined;
174
+ metadata?: Record<string, unknown> | undefined;
148
175
  items?: {
149
176
  id: string | null;
150
177
  params: Record<string, unknown>;
package/dist/macros.js CHANGED
@@ -12,6 +12,12 @@ exports.sMacroItemDto = zod_1.z.object({
12
12
  exports.sMacroDto = zod_1.z.object({
13
13
  id: zod_1.z.string().nonempty(),
14
14
  displayName: zod_1.z.string().nonempty(),
15
+ code: zod_1.z.string().nullable().describe('The code of the macro rule'),
16
+ module: zod_1.z
17
+ .string()
18
+ .nullable()
19
+ .describe('The module the macro rule belongs to'),
20
+ metadata: zod_1.z.record(zod_1.z.unknown()),
15
21
  createdOn: zod_1.z.string(),
16
22
  lastModifiedOn: zod_1.z.string(),
17
23
  createdBy: zod_1.z.string().nullable(),
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",