warqadui 0.0.70 → 0.0.71
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.d.mts +0 -6
- package/dist/index.d.ts +0 -6
- package/dist/index.js +2 -28
- package/dist/index.mjs +2 -28
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1123,20 +1123,14 @@ declare const createAccountSchema: z$1.ZodObject<{
|
|
|
1123
1123
|
email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
1124
1124
|
phoneNumber: z$1.ZodOptional<z$1.ZodString>;
|
|
1125
1125
|
sex: z$1.ZodEnum<["male", "female"]>;
|
|
1126
|
-
owner: z$1.ZodString;
|
|
1127
|
-
host: z$1.ZodString;
|
|
1128
1126
|
}, "strip", z$1.ZodTypeAny, {
|
|
1129
1127
|
name: string;
|
|
1130
1128
|
sex: "male" | "female";
|
|
1131
|
-
owner: string;
|
|
1132
|
-
host: string;
|
|
1133
1129
|
email?: string | undefined;
|
|
1134
1130
|
phoneNumber?: string | undefined;
|
|
1135
1131
|
}, {
|
|
1136
1132
|
name: string;
|
|
1137
1133
|
sex: "male" | "female";
|
|
1138
|
-
owner: string;
|
|
1139
|
-
host: string;
|
|
1140
1134
|
email?: string | undefined;
|
|
1141
1135
|
phoneNumber?: string | undefined;
|
|
1142
1136
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1123,20 +1123,14 @@ declare const createAccountSchema: z$1.ZodObject<{
|
|
|
1123
1123
|
email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
1124
1124
|
phoneNumber: z$1.ZodOptional<z$1.ZodString>;
|
|
1125
1125
|
sex: z$1.ZodEnum<["male", "female"]>;
|
|
1126
|
-
owner: z$1.ZodString;
|
|
1127
|
-
host: z$1.ZodString;
|
|
1128
1126
|
}, "strip", z$1.ZodTypeAny, {
|
|
1129
1127
|
name: string;
|
|
1130
1128
|
sex: "male" | "female";
|
|
1131
|
-
owner: string;
|
|
1132
|
-
host: string;
|
|
1133
1129
|
email?: string | undefined;
|
|
1134
1130
|
phoneNumber?: string | undefined;
|
|
1135
1131
|
}, {
|
|
1136
1132
|
name: string;
|
|
1137
1133
|
sex: "male" | "female";
|
|
1138
|
-
owner: string;
|
|
1139
|
-
host: string;
|
|
1140
1134
|
email?: string | undefined;
|
|
1141
1135
|
phoneNumber?: string | undefined;
|
|
1142
1136
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -8159,9 +8159,7 @@ var createAccountSchema = import_zod2.z.object({
|
|
|
8159
8159
|
message: "Please enter a valid email address"
|
|
8160
8160
|
}).transform((val) => val?.toLowerCase()),
|
|
8161
8161
|
phoneNumber: import_zod2.z.string().optional(),
|
|
8162
|
-
sex: import_zod2.z.enum(Enums_default.sex)
|
|
8163
|
-
owner: import_zod2.z.string().min(1, { message: "Owner is required" }),
|
|
8164
|
-
host: import_zod2.z.string().min(1, { message: "Host is required" })
|
|
8162
|
+
sex: import_zod2.z.enum(Enums_default.sex)
|
|
8165
8163
|
});
|
|
8166
8164
|
|
|
8167
8165
|
// src/components/accounts/AccountForm.tsx
|
|
@@ -8183,9 +8181,7 @@ function AccountForm() {
|
|
|
8183
8181
|
name: "",
|
|
8184
8182
|
email: "",
|
|
8185
8183
|
phoneNumber: "",
|
|
8186
|
-
sex: "male"
|
|
8187
|
-
owner: "",
|
|
8188
|
-
host: ""
|
|
8184
|
+
sex: "male"
|
|
8189
8185
|
},
|
|
8190
8186
|
shouldUnregister: false
|
|
8191
8187
|
});
|
|
@@ -8287,28 +8283,6 @@ function AccountForm() {
|
|
|
8287
8283
|
name: "phoneNumber",
|
|
8288
8284
|
placeholder: "Enter phone number"
|
|
8289
8285
|
}
|
|
8290
|
-
),
|
|
8291
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8292
|
-
Fields_default.SearchApi,
|
|
8293
|
-
{
|
|
8294
|
-
label: "Owner",
|
|
8295
|
-
form: methods,
|
|
8296
|
-
name: "owner",
|
|
8297
|
-
api: "/accounts/get/customer",
|
|
8298
|
-
placeholder: "Search for account owner...",
|
|
8299
|
-
required: true
|
|
8300
|
-
}
|
|
8301
|
-
),
|
|
8302
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
8303
|
-
Fields_default.Input,
|
|
8304
|
-
{
|
|
8305
|
-
label: "Host",
|
|
8306
|
-
form: methods,
|
|
8307
|
-
name: "host",
|
|
8308
|
-
type: "text",
|
|
8309
|
-
placeholder: "Unique host name",
|
|
8310
|
-
required: true
|
|
8311
|
-
}
|
|
8312
8286
|
)
|
|
8313
8287
|
] }),
|
|
8314
8288
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -8128,9 +8128,7 @@ var createAccountSchema = z2.object({
|
|
|
8128
8128
|
message: "Please enter a valid email address"
|
|
8129
8129
|
}).transform((val) => val?.toLowerCase()),
|
|
8130
8130
|
phoneNumber: z2.string().optional(),
|
|
8131
|
-
sex: z2.enum(Enums_default.sex)
|
|
8132
|
-
owner: z2.string().min(1, { message: "Owner is required" }),
|
|
8133
|
-
host: z2.string().min(1, { message: "Host is required" })
|
|
8131
|
+
sex: z2.enum(Enums_default.sex)
|
|
8134
8132
|
});
|
|
8135
8133
|
|
|
8136
8134
|
// src/components/accounts/AccountForm.tsx
|
|
@@ -8152,9 +8150,7 @@ function AccountForm() {
|
|
|
8152
8150
|
name: "",
|
|
8153
8151
|
email: "",
|
|
8154
8152
|
phoneNumber: "",
|
|
8155
|
-
sex: "male"
|
|
8156
|
-
owner: "",
|
|
8157
|
-
host: ""
|
|
8153
|
+
sex: "male"
|
|
8158
8154
|
},
|
|
8159
8155
|
shouldUnregister: false
|
|
8160
8156
|
});
|
|
@@ -8256,28 +8252,6 @@ function AccountForm() {
|
|
|
8256
8252
|
name: "phoneNumber",
|
|
8257
8253
|
placeholder: "Enter phone number"
|
|
8258
8254
|
}
|
|
8259
|
-
),
|
|
8260
|
-
/* @__PURE__ */ jsx43(
|
|
8261
|
-
Fields_default.SearchApi,
|
|
8262
|
-
{
|
|
8263
|
-
label: "Owner",
|
|
8264
|
-
form: methods,
|
|
8265
|
-
name: "owner",
|
|
8266
|
-
api: "/accounts/get/customer",
|
|
8267
|
-
placeholder: "Search for account owner...",
|
|
8268
|
-
required: true
|
|
8269
|
-
}
|
|
8270
|
-
),
|
|
8271
|
-
/* @__PURE__ */ jsx43(
|
|
8272
|
-
Fields_default.Input,
|
|
8273
|
-
{
|
|
8274
|
-
label: "Host",
|
|
8275
|
-
form: methods,
|
|
8276
|
-
name: "host",
|
|
8277
|
-
type: "text",
|
|
8278
|
-
placeholder: "Unique host name",
|
|
8279
|
-
required: true
|
|
8280
|
-
}
|
|
8281
8255
|
)
|
|
8282
8256
|
] }),
|
|
8283
8257
|
/* @__PURE__ */ jsx43("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ jsx43(
|