@marianmeres/collection-types 2.11.0 β 2.14.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/payment.d.ts +11 -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/payment.d.ts
CHANGED
|
@@ -19,6 +19,17 @@ export interface PaymentData {
|
|
|
19
19
|
status: PaymentStatus;
|
|
20
20
|
/** Payment amount */
|
|
21
21
|
amount: number;
|
|
22
|
+
/**
|
|
23
|
+
* Cumulative amount refunded so far, in the same units as {@link amount}.
|
|
24
|
+
* Absent or `0` = nothing refunded.
|
|
25
|
+
*
|
|
26
|
+
* A value **below** `amount` is a PARTIAL refund, and `status` deliberately
|
|
27
|
+
* stays `"completed"` in that case β a partially refunded payment is still a
|
|
28
|
+
* completed one. So `status === "refunded"` answers "was ALL of it
|
|
29
|
+
* returned?", and this field answers "was ANY of it returned?". Reading the
|
|
30
|
+
* former as the latter is wrong the moment a partial refund happens.
|
|
31
|
+
*/
|
|
32
|
+
refunded_amount?: number;
|
|
22
33
|
/** Currency code */
|
|
23
34
|
currency: string;
|
|
24
35
|
/** Provider-specific reference ID */
|
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";
|