@infuro/cms-core 1.0.33 → 1.0.34
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/README.md +9 -6
- package/dist/admin.cjs +980 -801
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +7 -2
- package/dist/admin.d.ts +7 -2
- package/dist/admin.js +1021 -842
- package/dist/admin.js.map +1 -1
- package/dist/api.cjs +1858 -848
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1824 -815
- package/dist/api.js.map +1 -1
- package/dist/auth.cjs +94 -11
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +17 -1
- package/dist/auth.d.ts +17 -1
- package/dist/auth.js +89 -11
- package/dist/auth.js.map +1 -1
- package/dist/cli.cjs +39 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +39 -0
- package/dist/cli.js.map +1 -1
- package/dist/{index-rZTnpK7y.d.cts → index-Bf5GO8fu.d.cts} +3 -2
- package/dist/{index-DWd5Gjc4.d.ts → index-DOiJuMQA.d.ts} +3 -2
- package/dist/index.cjs +2078 -841
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -8
- package/dist/index.d.ts +83 -8
- package/dist/index.js +2013 -786
- package/dist/index.js.map +1 -1
- package/dist/migrations/1778660000004-CreateCustomerAndCustomerContacts.ts +99 -0
- package/dist/migrations/1778660000005-AddCustomerIdToVendorCustomers.ts +39 -0
- package/dist/migrations/1778660000006-UpdateVendorCustomersContactNullable.ts +36 -0
- package/dist/migrations/1778660000007-VendorOwnerCustomerContactsPermission.ts +39 -0
- package/dist/migrations/1779300000000-VendorOwnerContactsPermission.ts +39 -0
- package/dist/migrations/1779400000000-AddCustomerContactIdToOrders.ts +33 -0
- package/package.json +4 -3
package/dist/admin.d.cts
CHANGED
|
@@ -88,6 +88,7 @@ interface CustomCrudConfig {
|
|
|
88
88
|
defaultSortField?: string;
|
|
89
89
|
/** Optional list filters (status, date range, paymentRef, orderNumber, etc.). */
|
|
90
90
|
filters?: CrudFilter[];
|
|
91
|
+
resource?: string;
|
|
91
92
|
}
|
|
92
93
|
interface AdminConfigValue {
|
|
93
94
|
customNavItems: CustomNavItem[];
|
|
@@ -178,8 +179,10 @@ type CreateEditFormProps = {
|
|
|
178
179
|
existingData?: Record<string, unknown> | null;
|
|
179
180
|
/** When creating: pre-fill the modal from this row (POST only; omit `id` in payload). */
|
|
180
181
|
duplicateSeed?: Record<string, unknown> | null;
|
|
182
|
+
/** Resource key from config — used to conditionally show password fields for 'customer'. */
|
|
183
|
+
resource?: string;
|
|
181
184
|
};
|
|
182
|
-
declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, duplicateSeed, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
|
|
185
|
+
declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, duplicateSeed, resource, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
|
|
183
186
|
|
|
184
187
|
declare function FormBuilder({ formId, duplicateFromId, }: {
|
|
185
188
|
formId?: string;
|
|
@@ -323,7 +326,9 @@ declare function BlogGeneratorPage(): react_jsx_runtime.JSX.Element;
|
|
|
323
326
|
/** @deprecated Use Admin → Plugins → Job scheduler. Kept for old bookmarks. */
|
|
324
327
|
declare function SchedulesPage(): react_jsx_runtime.JSX.Element;
|
|
325
328
|
|
|
326
|
-
declare function VendorOnboardPage(
|
|
329
|
+
declare function VendorOnboardPage({ showCreateForm }: {
|
|
330
|
+
showCreateForm?: boolean;
|
|
331
|
+
}): react_jsx_runtime.JSX.Element;
|
|
327
332
|
|
|
328
333
|
declare function VendorTeamPage(): react_jsx_runtime.JSX.Element;
|
|
329
334
|
|
package/dist/admin.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ interface CustomCrudConfig {
|
|
|
88
88
|
defaultSortField?: string;
|
|
89
89
|
/** Optional list filters (status, date range, paymentRef, orderNumber, etc.). */
|
|
90
90
|
filters?: CrudFilter[];
|
|
91
|
+
resource?: string;
|
|
91
92
|
}
|
|
92
93
|
interface AdminConfigValue {
|
|
93
94
|
customNavItems: CustomNavItem[];
|
|
@@ -178,8 +179,10 @@ type CreateEditFormProps = {
|
|
|
178
179
|
existingData?: Record<string, unknown> | null;
|
|
179
180
|
/** When creating: pre-fill the modal from this row (POST only; omit `id` in payload). */
|
|
180
181
|
duplicateSeed?: Record<string, unknown> | null;
|
|
182
|
+
/** Resource key from config — used to conditionally show password fields for 'customer'. */
|
|
183
|
+
resource?: string;
|
|
181
184
|
};
|
|
182
|
-
declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, duplicateSeed, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
|
|
185
|
+
declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, duplicateSeed, resource, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
|
|
183
186
|
|
|
184
187
|
declare function FormBuilder({ formId, duplicateFromId, }: {
|
|
185
188
|
formId?: string;
|
|
@@ -323,7 +326,9 @@ declare function BlogGeneratorPage(): react_jsx_runtime.JSX.Element;
|
|
|
323
326
|
/** @deprecated Use Admin → Plugins → Job scheduler. Kept for old bookmarks. */
|
|
324
327
|
declare function SchedulesPage(): react_jsx_runtime.JSX.Element;
|
|
325
328
|
|
|
326
|
-
declare function VendorOnboardPage(
|
|
329
|
+
declare function VendorOnboardPage({ showCreateForm }: {
|
|
330
|
+
showCreateForm?: boolean;
|
|
331
|
+
}): react_jsx_runtime.JSX.Element;
|
|
327
332
|
|
|
328
333
|
declare function VendorTeamPage(): react_jsx_runtime.JSX.Element;
|
|
329
334
|
|