@fonderie/customers 6.0.0 → 6.1.1
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/brain/signatures.md +9 -8
- package/dist/index.cjs +33 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -25
- package/dist/index.d.ts +18 -25
- package/dist/index.js +31 -11
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -5
- package/dist/types.d.ts +1 -5
- package/package.json +4 -4
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["export type CustomerType = 'individual' | 'business';\nexport type CustomerSex = 'UNKNOWN' | 'MALE' | 'FEMALE';\nexport type CustomerLabelType = 'email' | 'phone' | 'address';\n\nexport interface ICustomerLabel {\n\tid: string;\n\ttype: CustomerLabelType;\n\tvalue: string;\n\tcreatedAt: string;\n}\n\nexport interface ICustomer {\n\tid: string;\n\tworkspaceId: string;\n\ttype: CustomerType;\n\tsex: CustomerSex;\n\tfirstName: string | null;\n\tlastName: string | null;\n\tcompanyName: string | null;\n\tavatarUrl: string | null;\n\tlocale: string;\n\treferenceCode: string | null;\n\treferralCode: string | null;\n\treferredBy: string | null;\n\tisBlacklisted: boolean;\n\tblacklistReason: string | null;\n\tcreatedBy: string | null;\n\tcreatedAt: string;\n\tupdatedAt: string;\n}\n\nexport interface ICustomerEmail {\n\tid: string;\n\tcustomerId: string;\n\temail: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n}\n\nexport interface ICustomerPhone {\n\tid: string;\n\tcustomerId: string;\n\tphone: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n}\n\nexport interface IAddress {\n\tid: string;\n\tcountryIso: string;\n\tsubdivision1Iso: string | null;\n\tsubdivision2Iso: string | null;\n\tzipPostalCode: string;\n\tunit: string | null;\n\tline1: string | null;\n\tline2: string | null;\n}\n\nexport interface ICustomerAddress {\n\taddrId: string;\n\tcustomerId: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\taddress: IAddress;\n}\n\nexport interface ICustomerNote {\n\tid: string;\n\tcustomerId: string;\n\tauthorId: string | null;\n\tbody: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["export type CustomerType = 'individual' | 'business';\nexport type CustomerSex = 'UNKNOWN' | 'MALE' | 'FEMALE';\nexport type CustomerLabelType = 'email' | 'phone' | 'address';\n\nexport interface ICustomerLabel {\n\tid: string;\n\ttype: CustomerLabelType;\n\tvalue: string;\n\tcreatedAt: string;\n}\n\nexport interface ICustomer {\n\tid: string;\n\tworkspaceId: string;\n\ttype: CustomerType;\n\tsex: CustomerSex;\n\tfirstName: string | null;\n\tlastName: string | null;\n\tcompanyName: string | null;\n\tavatarUrl: string | null;\n\tlocale: string;\n\treferenceCode: string | null;\n\treferralCode: string | null;\n\treferredBy: string | null;\n\tisBlacklisted: boolean;\n\tblacklistReason: string | null;\n\tcreatedBy: string | null;\n\tcreatedAt: string;\n\tupdatedAt: string;\n}\n\nexport interface ICustomerEmail {\n\tid: string;\n\tcustomerId: string;\n\temail: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n}\n\nexport interface ICustomerPhone {\n\tid: string;\n\tcustomerId: string;\n\tphone: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n}\n\nexport interface IAddress {\n\tid: string;\n\tcountryIso: string;\n\tsubdivision1Iso: string | null;\n\tsubdivision2Iso: string | null;\n\tzipPostalCode: string;\n\tunit: string | null;\n\tline1: string | null;\n\tline2: string | null;\n}\n\nexport interface ICustomerAddress {\n\taddrId: string;\n\tcustomerId: string;\n\tlabelId: string;\n\tlabel: string;\n\tisPrimary: boolean;\n\taddress: IAddress;\n}\n\nexport interface ICustomerNote {\n\tid: string;\n\tcustomerId: string;\n\tauthorId: string | null;\n\tbody: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n}\n\nexport interface ICustomerRelationship {\n\tid: string;\n\tworkspaceId: string;\n\tcustomerId: string;\n\trelatedId: string;\n\trelationship: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n}\n\nexport interface ICustomerShallow extends ICustomer {\n\temails: ICustomerEmail[];\n\tphones: ICustomerPhone[];\n\taddresses: ICustomerAddress[];\n\tnotes: ICustomerNote[];\n\ttags: string[];\n}\n\nexport interface ICustomerRelationshipExpanded {\n\tid: string;\n\tworkspaceId: string;\n\tcustomerId: string;\n\trelationship: string;\n\tisPrimary: boolean;\n\tcreatedAt: string;\n\tcustomer: ICustomerShallow;\n}\n\nexport interface ICustomerDetail extends ICustomer {\n\temails: ICustomerEmail[];\n\tphones: ICustomerPhone[];\n\taddresses: ICustomerAddress[];\n\tnotes: ICustomerNote[];\n\trelationships: ICustomerRelationshipExpanded[];\n\ttags: string[];\n}\n\n// Depth-2 variants: depth-1 customers have their own relationships resolved.\nexport interface ICustomerShallowD2 extends ICustomerShallow {\n\trelationships: ICustomerRelationshipExpanded[];\n}\n\nexport interface ICustomerRelationshipExpandedD2 extends Omit<ICustomerRelationshipExpanded, 'customer'> {\n\tcustomer: ICustomerShallowD2;\n}\n\nexport interface ICustomerDetailD2 extends Omit<ICustomerDetail, 'relationships'> {\n\trelationships: ICustomerRelationshipExpandedD2[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types.d.cts
CHANGED
|
@@ -70,10 +70,6 @@ interface ICustomerNote {
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
}
|
|
73
|
-
interface ICustomerTag {
|
|
74
|
-
customerId: string;
|
|
75
|
-
tag: string;
|
|
76
|
-
}
|
|
77
73
|
interface ICustomerRelationship {
|
|
78
74
|
id: string;
|
|
79
75
|
workspaceId: string;
|
|
@@ -117,4 +113,4 @@ interface ICustomerDetailD2 extends Omit<ICustomerDetail, 'relationships'> {
|
|
|
117
113
|
relationships: ICustomerRelationshipExpandedD2[];
|
|
118
114
|
}
|
|
119
115
|
|
|
120
|
-
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2
|
|
116
|
+
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2 };
|
package/dist/types.d.ts
CHANGED
|
@@ -70,10 +70,6 @@ interface ICustomerNote {
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
}
|
|
73
|
-
interface ICustomerTag {
|
|
74
|
-
customerId: string;
|
|
75
|
-
tag: string;
|
|
76
|
-
}
|
|
77
73
|
interface ICustomerRelationship {
|
|
78
74
|
id: string;
|
|
79
75
|
workspaceId: string;
|
|
@@ -117,4 +113,4 @@ interface ICustomerDetailD2 extends Omit<ICustomerDetail, 'relationships'> {
|
|
|
117
113
|
relationships: ICustomerRelationshipExpandedD2[];
|
|
118
114
|
}
|
|
119
115
|
|
|
120
|
-
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2
|
|
116
|
+
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/customers",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Workspace-scoped customer records — individuals and businesses with multiple emails, phones, addresses, notes, and tags.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fonderiejs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"check": "biome check --write src"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@fonderie/core": "^0.
|
|
45
|
+
"@fonderie/core": "^0.6.0",
|
|
46
46
|
"@fonderie/events": "^5.0.0",
|
|
47
47
|
"@fonderie/store": "^0.2.0",
|
|
48
48
|
"@fonderie/workspaces": "^5.0.0"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@fonderie/events": "../events",
|
|
61
61
|
"@fonderie/store": "../store",
|
|
62
62
|
"@fonderie/workspaces": "../workspaces",
|
|
63
|
-
"@types/node": "^26.
|
|
63
|
+
"@types/node": "^26.4.0",
|
|
64
64
|
"tsup": "^8.5.1",
|
|
65
65
|
"tsx": "^4.23.12",
|
|
66
66
|
"typescript": "^6.0.3"
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"url": "https://github.com/fonderiejs/fonderie/issues"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"zod": "^4.
|
|
87
|
+
"zod": "^4.5.1"
|
|
88
88
|
}
|
|
89
89
|
}
|