@wisemen/wise-crm 0.0.1 → 0.0.3

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.
@@ -1,5 +1,6 @@
1
+ import { BusinessUuid } from "../business/business.uuid.js";
1
2
  export type BusinessBillingInformationUpsertedContent = {
2
- businessUuid: string;
3
+ businessUuid: BusinessUuid;
3
4
  invoiceEmail: string;
4
5
  invoiceEmailCc: string[];
5
6
  reminderEmail: string;
@@ -1,5 +1,6 @@
1
+ import { BusinessUuid } from "../business/business.uuid.js";
1
2
  export type BusinessCreatedContent = {
2
- businessUuid: string;
3
+ businessUuid: BusinessUuid;
3
4
  name: string;
4
5
  vatNumber: string | null;
5
6
  address: string;
@@ -1,5 +1,6 @@
1
+ import { BusinessUuid } from "../business/business.uuid.js";
1
2
  export type BusinessUpdatedContent = {
2
- businessUuid: string;
3
+ businessUuid: BusinessUuid;
3
4
  name: string;
4
5
  vatNumber: string | null;
5
6
  address: string;
@@ -1,5 +1,6 @@
1
+ import { IndividualUuid } from "../individual/individual.uuid.js";
1
2
  export type IndividualBillingInformationUpsertedContent = {
2
- individualUuid: string;
3
+ individualUuid: IndividualUuid;
3
4
  invoiceEmail: string;
4
5
  invoiceEmailCc: string[];
5
6
  billingAddress: string;
@@ -1,5 +1,6 @@
1
+ import { IndividualUuid } from "../individual/individual.uuid.js";
1
2
  export type IndividualCreatedContent = {
2
- individualUuid: string;
3
+ individualUuid: IndividualUuid;
3
4
  firstName: string;
4
5
  lastName: string;
5
6
  email: string | null;
@@ -1,5 +1,6 @@
1
+ import { IndividualUuid } from "../individual/individual.uuid.js";
1
2
  export type IndividualUpdatedContent = {
2
- individualUuid: string;
3
+ individualUuid: IndividualUuid;
3
4
  firstName: string;
4
5
  lastName: string;
5
6
  email: string | null;
@@ -1,6 +1,5 @@
1
1
  export type Uuid<Brand extends string> = string & {
2
- readonly __brand: unique symbol;
2
+ readonly __brand: 'uuid';
3
3
  } & {
4
4
  readonly __uuid: Brand;
5
5
  };
6
- export declare function generateUuid<Brand extends Uuid<string> | null>(): Exclude<Brand, null>;
@@ -1,4 +1,2 @@
1
- export function generateUuid() {
2
- return crypto.randomUUID();
3
- }
1
+ export {};
4
2
  //# sourceMappingURL=uuid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../lib/types/uuid.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,UAAU,EAA0B,CAAA;AACpD,CAAC"}
1
+ {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../lib/types/uuid.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisemen/wise-crm",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",