@fonderie/customers 5.0.0 → 6.0.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/README.md +2 -2
- package/brain/signatures.md +1 -6
- package/dist/index.cjs +29 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -7
- package/dist/types.d.ts +1 -7
- package/package.json +7 -7
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\
|
|
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 ICustomerTag {\n\tcustomerId: string;\n\ttag: 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
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
type CustomerType = 'individual' | 'business';
|
|
2
2
|
type CustomerSex = 'UNKNOWN' | 'MALE' | 'FEMALE';
|
|
3
3
|
type CustomerLabelType = 'email' | 'phone' | 'address';
|
|
4
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
5
|
-
type EmailLabel = 'work' | 'personal' | 'billing';
|
|
6
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
7
|
-
type PhoneLabel = 'mobile' | 'office' | 'home' | 'fax';
|
|
8
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
9
|
-
type AddressLabel = 'service' | 'billing' | 'other';
|
|
10
4
|
interface ICustomerLabel {
|
|
11
5
|
id: string;
|
|
12
6
|
type: CustomerLabelType;
|
|
@@ -123,4 +117,4 @@ interface ICustomerDetailD2 extends Omit<ICustomerDetail, 'relationships'> {
|
|
|
123
117
|
relationships: ICustomerRelationshipExpandedD2[];
|
|
124
118
|
}
|
|
125
119
|
|
|
126
|
-
export type {
|
|
120
|
+
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2, ICustomerTag };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
type CustomerType = 'individual' | 'business';
|
|
2
2
|
type CustomerSex = 'UNKNOWN' | 'MALE' | 'FEMALE';
|
|
3
3
|
type CustomerLabelType = 'email' | 'phone' | 'address';
|
|
4
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
5
|
-
type EmailLabel = 'work' | 'personal' | 'billing';
|
|
6
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
7
|
-
type PhoneLabel = 'mobile' | 'office' | 'home' | 'fax';
|
|
8
|
-
/** @deprecated resolved dynamically via fonderie_customer_labels */
|
|
9
|
-
type AddressLabel = 'service' | 'billing' | 'other';
|
|
10
4
|
interface ICustomerLabel {
|
|
11
5
|
id: string;
|
|
12
6
|
type: CustomerLabelType;
|
|
@@ -123,4 +117,4 @@ interface ICustomerDetailD2 extends Omit<ICustomerDetail, 'relationships'> {
|
|
|
123
117
|
relationships: ICustomerRelationshipExpandedD2[];
|
|
124
118
|
}
|
|
125
119
|
|
|
126
|
-
export type {
|
|
120
|
+
export type { CustomerLabelType, CustomerSex, CustomerType, IAddress, ICustomer, ICustomerAddress, ICustomerDetail, ICustomerDetailD2, ICustomerEmail, ICustomerLabel, ICustomerNote, ICustomerPhone, ICustomerRelationship, ICustomerRelationshipExpanded, ICustomerRelationshipExpandedD2, ICustomerShallow, ICustomerShallowD2, ICustomerTag };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/customers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Workspace-scoped customer records — individuals and businesses with multiple emails, phones, addresses, notes, and tags.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"fonderiejs",
|
|
7
7
|
"customers",
|
|
8
8
|
"saas",
|
|
9
9
|
"typescript"
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@fonderie/events": "../events",
|
|
61
61
|
"@fonderie/store": "../store",
|
|
62
62
|
"@fonderie/workspaces": "../workspaces",
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^26.2.0",
|
|
64
64
|
"tsup": "^8.5.1",
|
|
65
|
-
"tsx": "^4.
|
|
65
|
+
"tsx": "^4.23.12",
|
|
66
66
|
"typescript": "^6.0.3"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
],
|
|
77
77
|
"repository": {
|
|
78
78
|
"type": "git",
|
|
79
|
-
"url": "git+https://github.com/fonderiejs/
|
|
79
|
+
"url": "git+https://github.com/fonderiejs/fonderie.git",
|
|
80
80
|
"directory": "packages/customers"
|
|
81
81
|
},
|
|
82
|
-
"homepage": "https://github.com/fonderiejs/
|
|
82
|
+
"homepage": "https://github.com/fonderiejs/fonderie/tree/main/packages/customers#readme",
|
|
83
83
|
"bugs": {
|
|
84
|
-
"url": "https://github.com/fonderiejs/
|
|
84
|
+
"url": "https://github.com/fonderiejs/fonderie/issues"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"zod": "^4.4.3"
|