@marianmeres/collection-types 2.10.0 β 2.12.0
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/customer.d.ts +0 -2
- package/dist/mod.d.ts +0 -1
- package/dist/mod.js +0 -2
- package/dist/schema-builder.d.ts +6 -0
- package/package.json +1 -1
- package/dist/country.d.ts +0 -24
- package/dist/country.js +0 -7
package/dist/customer.d.ts
CHANGED
|
@@ -69,8 +69,6 @@ export interface AddressData {
|
|
|
69
69
|
phone?: string;
|
|
70
70
|
/** Whether this is the default address for its type */
|
|
71
71
|
is_default: boolean;
|
|
72
|
-
/** Country relation (UI-only, stored in relations table) */
|
|
73
|
-
country_rel?: never;
|
|
74
72
|
/** Index signature for compatibility with UserData */
|
|
75
73
|
[key: string]: unknown;
|
|
76
74
|
}
|
package/dist/mod.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export * from "./external-domain.js";
|
|
|
43
43
|
export * from "./account.js";
|
|
44
44
|
export * from "./product.js";
|
|
45
45
|
export * from "./project.js";
|
|
46
|
-
export * from "./country.js";
|
|
47
46
|
export * from "./template.js";
|
|
48
47
|
export * from "./email.js";
|
|
49
48
|
export * from "./example.js";
|
package/dist/mod.js
CHANGED
|
@@ -55,8 +55,6 @@ export * from "./account.js";
|
|
|
55
55
|
export * from "./product.js";
|
|
56
56
|
// Project/config domain types
|
|
57
57
|
export * from "./project.js";
|
|
58
|
-
// Country domain types (geographic reference data)
|
|
59
|
-
export * from "./country.js";
|
|
60
58
|
// Template domain types
|
|
61
59
|
export * from "./template.js";
|
|
62
60
|
// Email domain types
|
package/dist/schema-builder.d.ts
CHANGED
|
@@ -44,6 +44,12 @@ export type ObjectSchema<T> = {
|
|
|
44
44
|
* from the row, not the visible column.
|
|
45
45
|
*/
|
|
46
46
|
_data_table_hidden_columns?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Admin detail hint: opt in to the "Clone" (save-as-duplicate) button in the
|
|
49
|
+
* detail footer. Off by default β most collections don't want one-click
|
|
50
|
+
* duplication of a record.
|
|
51
|
+
*/
|
|
52
|
+
_clone_enabled?: boolean;
|
|
47
53
|
};
|
|
48
54
|
/** Extended schema (loose typing for __extends patterns) */
|
|
49
55
|
export type ExtendedSchema = {
|
package/package.json
CHANGED
package/dist/country.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Country type definitions for geographic reference data.
|
|
3
|
-
*
|
|
4
|
-
* Countries are stored in the project domain and referenced
|
|
5
|
-
* via weak relations from customer addresses.
|
|
6
|
-
*/
|
|
7
|
-
import type { MaybeLocalized } from "./utils.js";
|
|
8
|
-
/** Country data field schema */
|
|
9
|
-
export interface CountryData {
|
|
10
|
-
/** ISO 3166-1 alpha-2 code (e.g., "US", "GB") - used as path for uniqueness */
|
|
11
|
-
code: string;
|
|
12
|
-
/** Display name - can be a plain string or localized object (e.g., { en: "United States", de: "Vereinigte Staaten" }) */
|
|
13
|
-
name: MaybeLocalized<string>;
|
|
14
|
-
/** Phone prefix with + (e.g., "+1", "+44") */
|
|
15
|
-
phone_prefix?: string;
|
|
16
|
-
/** Flag emoji (e.g., "πΊπΈ") */
|
|
17
|
-
flag?: string;
|
|
18
|
-
/** Extensible metadata for future fields */
|
|
19
|
-
custom?: Record<string, unknown>;
|
|
20
|
-
/** Index signature for Model<T> compatibility */
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}
|
|
23
|
-
/** Country type identifier */
|
|
24
|
-
export type CountryType = "default";
|