@wisemen/wise-crm 0.0.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.
Files changed (137) hide show
  1. package/README.md +0 -0
  2. package/dist/clients/index.d.ts +2 -0
  3. package/dist/clients/index.js +3 -0
  4. package/dist/clients/index.js.map +1 -0
  5. package/dist/clients/wise-crm-api-client/business.client.d.ts +9 -0
  6. package/dist/clients/wise-crm-api-client/business.client.js +18 -0
  7. package/dist/clients/wise-crm-api-client/business.client.js.map +1 -0
  8. package/dist/clients/wise-crm-api-client/index.d.ts +2 -0
  9. package/dist/clients/wise-crm-api-client/index.js +3 -0
  10. package/dist/clients/wise-crm-api-client/index.js.map +1 -0
  11. package/dist/clients/wise-crm-api-client/wise-crm-api.client.d.ts +9 -0
  12. package/dist/clients/wise-crm-api-client/wise-crm-api.client.js +8 -0
  13. package/dist/clients/wise-crm-api-client/wise-crm-api.client.js.map +1 -0
  14. package/dist/clients/wise-crm-service-user-client/index.d.ts +1 -0
  15. package/dist/clients/wise-crm-service-user-client/index.js +2 -0
  16. package/dist/clients/wise-crm-service-user-client/index.js.map +1 -0
  17. package/dist/clients/wise-crm-service-user-client/wise-crm-service-user.client.d.ts +19 -0
  18. package/dist/clients/wise-crm-service-user-client/wise-crm-service-user.client.js +93 -0
  19. package/dist/clients/wise-crm-service-user-client/wise-crm-service-user.client.js.map +1 -0
  20. package/dist/constants/index.d.ts +1 -0
  21. package/dist/constants/index.js +2 -0
  22. package/dist/constants/index.js.map +1 -0
  23. package/dist/constants/nats-subjects/index.d.ts +1 -0
  24. package/dist/constants/nats-subjects/index.js +2 -0
  25. package/dist/constants/nats-subjects/index.js.map +1 -0
  26. package/dist/constants/nats-subjects/subjects.d.ts +2 -0
  27. package/dist/constants/nats-subjects/subjects.js +3 -0
  28. package/dist/constants/nats-subjects/subjects.js.map +1 -0
  29. package/dist/functions/index.d.ts +1 -0
  30. package/dist/functions/index.js +2 -0
  31. package/dist/functions/index.js.map +1 -0
  32. package/dist/functions/map-address-string-to-command.function.d.ts +2 -0
  33. package/dist/functions/map-address-string-to-command.function.js +18 -0
  34. package/dist/functions/map-address-string-to-command.function.js.map +1 -0
  35. package/dist/index.d.ts +4 -0
  36. package/dist/index.js +5 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/types/address/address-command.builder.d.ts +16 -0
  39. package/dist/types/address/address-command.builder.js +57 -0
  40. package/dist/types/address/address-command.builder.js.map +1 -0
  41. package/dist/types/address/address-command.d.ts +14 -0
  42. package/dist/types/address/address-command.js +26 -0
  43. package/dist/types/address/address-command.js.map +1 -0
  44. package/dist/types/address/address.builder.d.ts +16 -0
  45. package/dist/types/address/address.builder.js +57 -0
  46. package/dist/types/address/address.builder.js.map +1 -0
  47. package/dist/types/address/address.d.ts +12 -0
  48. package/dist/types/address/address.js +12 -0
  49. package/dist/types/address/address.js.map +1 -0
  50. package/dist/types/address/address.response.d.ts +12 -0
  51. package/dist/types/address/address.response.js +12 -0
  52. package/dist/types/address/address.response.js.map +1 -0
  53. package/dist/types/address/index.d.ts +1 -0
  54. package/dist/types/address/index.js +2 -0
  55. package/dist/types/address/index.js.map +1 -0
  56. package/dist/types/business/business-billing-information.response.d.ts +11 -0
  57. package/dist/types/business/business-billing-information.response.js +11 -0
  58. package/dist/types/business/business-billing-information.response.js.map +1 -0
  59. package/dist/types/business/business-contact-person.response.d.ts +11 -0
  60. package/dist/types/business/business-contact-person.response.js +11 -0
  61. package/dist/types/business/business-contact-person.response.js.map +1 -0
  62. package/dist/types/business/business-detail.response.d.ts +22 -0
  63. package/dist/types/business/business-detail.response.js +18 -0
  64. package/dist/types/business/business-detail.response.js.map +1 -0
  65. package/dist/types/business/business-index.query.d.ts +6 -0
  66. package/dist/types/business/business-index.query.js +7 -0
  67. package/dist/types/business/business-index.query.js.map +1 -0
  68. package/dist/types/business/business-index.response.d.ts +14 -0
  69. package/dist/types/business/business-index.response.js +13 -0
  70. package/dist/types/business/business-index.response.js.map +1 -0
  71. package/dist/types/business/business.uuid.d.ts +2 -0
  72. package/dist/types/business/business.uuid.js +2 -0
  73. package/dist/types/business/business.uuid.js.map +1 -0
  74. package/dist/types/business/child-parent-business.response.d.ts +14 -0
  75. package/dist/types/business/child-parent-business.response.js +13 -0
  76. package/dist/types/business/child-parent-business.response.js.map +1 -0
  77. package/dist/types/business/index.d.ts +7 -0
  78. package/dist/types/business/index.js +8 -0
  79. package/dist/types/business/index.js.map +1 -0
  80. package/dist/types/index.d.ts +5 -0
  81. package/dist/types/index.js +6 -0
  82. package/dist/types/index.js.map +1 -0
  83. package/dist/types/individual/index.d.ts +5 -0
  84. package/dist/types/individual/index.js +6 -0
  85. package/dist/types/individual/index.js.map +1 -0
  86. package/dist/types/individual/individual-billing-information.response.d.ts +7 -0
  87. package/dist/types/individual/individual-billing-information.response.js +7 -0
  88. package/dist/types/individual/individual-billing-information.response.js.map +1 -0
  89. package/dist/types/individual/individual-contact-person.response.d.ts +11 -0
  90. package/dist/types/individual/individual-contact-person.response.js +11 -0
  91. package/dist/types/individual/individual-contact-person.response.js.map +1 -0
  92. package/dist/types/individual/individual-detail.response.d.ts +22 -0
  93. package/dist/types/individual/individual-detail.response.js +18 -0
  94. package/dist/types/individual/individual-detail.response.js.map +1 -0
  95. package/dist/types/individual/individual-linked-business.response.d.ts +9 -0
  96. package/dist/types/individual/individual-linked-business.response.js +9 -0
  97. package/dist/types/individual/individual-linked-business.response.js.map +1 -0
  98. package/dist/types/individual/individual.uuid.d.ts +2 -0
  99. package/dist/types/individual/individual.uuid.js +2 -0
  100. package/dist/types/individual/individual.uuid.js.map +1 -0
  101. package/dist/types/integration-events/business-billing-information-upserted-content.type.d.ts +10 -0
  102. package/dist/types/integration-events/business-billing-information-upserted-content.type.js +2 -0
  103. package/dist/types/integration-events/business-billing-information-upserted-content.type.js.map +1 -0
  104. package/dist/types/integration-events/business-created-content.type.d.ts +9 -0
  105. package/dist/types/integration-events/business-created-content.type.js +2 -0
  106. package/dist/types/integration-events/business-created-content.type.js.map +1 -0
  107. package/dist/types/integration-events/business-updated-content.type.d.ts +9 -0
  108. package/dist/types/integration-events/business-updated-content.type.js +2 -0
  109. package/dist/types/integration-events/business-updated-content.type.js.map +1 -0
  110. package/dist/types/integration-events/index.d.ts +7 -0
  111. package/dist/types/integration-events/index.js +8 -0
  112. package/dist/types/integration-events/index.js.map +1 -0
  113. package/dist/types/integration-events/individual-billing-information-upserted-content.type.d.ts +6 -0
  114. package/dist/types/integration-events/individual-billing-information-upserted-content.type.js +2 -0
  115. package/dist/types/integration-events/individual-billing-information-upserted-content.type.js.map +1 -0
  116. package/dist/types/integration-events/individual-created-content.type.d.ts +10 -0
  117. package/dist/types/integration-events/individual-created-content.type.js +2 -0
  118. package/dist/types/integration-events/individual-created-content.type.js.map +1 -0
  119. package/dist/types/integration-events/individual-updated-content.type.d.ts +10 -0
  120. package/dist/types/integration-events/individual-updated-content.type.js +2 -0
  121. package/dist/types/integration-events/individual-updated-content.type.js.map +1 -0
  122. package/dist/types/integration-events/integration-event.type.d.ts +9 -0
  123. package/dist/types/integration-events/integration-event.type.js +11 -0
  124. package/dist/types/integration-events/integration-event.type.js.map +1 -0
  125. package/dist/types/location/index.d.ts +2 -0
  126. package/dist/types/location/index.js +3 -0
  127. package/dist/types/location/index.js.map +1 -0
  128. package/dist/types/location/location-detail.response.d.ts +8 -0
  129. package/dist/types/location/location-detail.response.js +7 -0
  130. package/dist/types/location/location-detail.response.js.map +1 -0
  131. package/dist/types/location/location.uuid.d.ts +2 -0
  132. package/dist/types/location/location.uuid.js +2 -0
  133. package/dist/types/location/location.uuid.js.map +1 -0
  134. package/dist/types/uuid.d.ts +6 -0
  135. package/dist/types/uuid.js +4 -0
  136. package/dist/types/uuid.js.map +1 -0
  137. package/package.json +38 -0
@@ -0,0 +1,11 @@
1
+ import { IndividualUuid } from "../individual/individual.uuid.js";
2
+ export declare class BusinessContactPersonResponse {
3
+ uuid: IndividualUuid;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string | null;
7
+ phone: string | null;
8
+ mobilePhone: string | null;
9
+ position: string | null;
10
+ isPrimary: boolean;
11
+ }
@@ -0,0 +1,11 @@
1
+ export class BusinessContactPersonResponse {
2
+ uuid;
3
+ firstName;
4
+ lastName;
5
+ email;
6
+ phone;
7
+ mobilePhone;
8
+ position;
9
+ isPrimary;
10
+ }
11
+ //# sourceMappingURL=business-contact-person.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-contact-person.response.js","sourceRoot":"","sources":["../../../lib/types/business/business-contact-person.response.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,6BAA6B;IACxC,IAAI,CAAgB;IACpB,SAAS,CAAQ;IACjB,QAAQ,CAAQ;IAChB,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,QAAQ,CAAe;IACvB,SAAS,CAAS;CACnB"}
@@ -0,0 +1,22 @@
1
+ import { LocationDetailResponse } from "../location/location-detail.response.js";
2
+ import { BusinessBillingInformationResponse } from "./business-billing-information.response.js";
3
+ import { BusinessContactPersonResponse } from "./business-contact-person.response.js";
4
+ import { BusinessUuid } from "./business.uuid.js";
5
+ import { ChildParentBusinessResponse } from "./child-parent-business.response.js";
6
+ export declare class BusinessDetailResponse {
7
+ uuid: BusinessUuid;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ name: string;
11
+ email: string | null;
12
+ phone: string | null;
13
+ mobilePhone: string | null;
14
+ vatNumber: string | null;
15
+ companyNumber: string | null;
16
+ location: LocationDetailResponse | null;
17
+ billingInformation: BusinessBillingInformationResponse | null;
18
+ contactPersons: BusinessContactPersonResponse[];
19
+ parent: ChildParentBusinessResponse | null;
20
+ children: ChildParentBusinessResponse[];
21
+ customFields: object | null;
22
+ }
@@ -0,0 +1,18 @@
1
+ export class BusinessDetailResponse {
2
+ uuid;
3
+ createdAt;
4
+ updatedAt;
5
+ name;
6
+ email;
7
+ phone;
8
+ mobilePhone;
9
+ vatNumber;
10
+ companyNumber;
11
+ location;
12
+ billingInformation;
13
+ contactPersons;
14
+ parent;
15
+ children;
16
+ customFields;
17
+ }
18
+ //# sourceMappingURL=business-detail.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-detail.response.js","sourceRoot":"","sources":["../../../lib/types/business/business-detail.response.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,sBAAsB;IACjC,IAAI,CAAc;IAClB,SAAS,CAAQ;IACjB,SAAS,CAAQ;IACjB,IAAI,CAAQ;IACZ,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,SAAS,CAAe;IACxB,aAAa,CAAe;IAC5B,QAAQ,CAA+B;IACvC,kBAAkB,CAA2C;IAC7D,cAAc,CAAiC;IAC/C,MAAM,CAAoC;IAC1C,QAAQ,CAA+B;IACvC,YAAY,CAAe;CAC5B"}
@@ -0,0 +1,6 @@
1
+ import { PaginatedOffsetSearchQuery } from '@wisemen/pagination';
2
+ export declare class ViewBusinessIndexQuery extends PaginatedOffsetSearchQuery {
3
+ search?: string;
4
+ sort?: never;
5
+ filter?: never;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { PaginatedOffsetSearchQuery } from '@wisemen/pagination';
2
+ export class ViewBusinessIndexQuery extends PaginatedOffsetSearchQuery {
3
+ search;
4
+ sort;
5
+ filter;
6
+ }
7
+ //# sourceMappingURL=business-index.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-index.query.js","sourceRoot":"","sources":["../../../lib/types/business/business-index.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAEhE,MAAM,OAAO,sBAAuB,SAAQ,0BAA0B;IACpE,MAAM,CAAS;IACf,IAAI,CAAQ;IACZ,MAAM,CAAQ;CACf"}
@@ -0,0 +1,14 @@
1
+ import { PaginatedOffsetResponse } from "@wisemen/pagination";
2
+ import { BusinessUuid } from "./business.uuid.js";
3
+ export declare class BusinessIndexResponse extends PaginatedOffsetResponse<BusinessIndexResponseItem> {
4
+ items: BusinessIndexResponseItem[];
5
+ }
6
+ export declare class BusinessIndexResponseItem {
7
+ uuid: BusinessUuid;
8
+ name: string;
9
+ email: string | null;
10
+ phone: string | null;
11
+ mobilePhone: string | null;
12
+ vatNumber: string | null;
13
+ companyNumber: string | null;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { PaginatedOffsetResponse } from "@wisemen/pagination";
2
+ export class BusinessIndexResponse extends PaginatedOffsetResponse {
3
+ }
4
+ export class BusinessIndexResponseItem {
5
+ uuid;
6
+ name;
7
+ email;
8
+ phone;
9
+ mobilePhone;
10
+ vatNumber;
11
+ companyNumber;
12
+ }
13
+ //# sourceMappingURL=business-index.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-index.response.js","sourceRoot":"","sources":["../../../lib/types/business/business-index.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,MAAM,OAAO,qBACX,SAAQ,uBAAkD;CAE3D;AAED,MAAM,OAAO,yBAAyB;IACpC,IAAI,CAAc;IAClB,IAAI,CAAQ;IACZ,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,SAAS,CAAe;IACxB,aAAa,CAAe;CAC7B"}
@@ -0,0 +1,2 @@
1
+ import { Uuid } from "../uuid.js";
2
+ export type BusinessUuid = Uuid<'Business'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=business.uuid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.uuid.js","sourceRoot":"","sources":["../../../lib/types/business/business.uuid.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { LocationDetailResponse } from "../location/location-detail.response.js";
2
+ import { BusinessUuid } from "./business.uuid.js";
3
+ export declare class ChildParentBusinessResponse {
4
+ uuid: BusinessUuid;
5
+ name: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ email: string | null;
9
+ phone: string | null;
10
+ mobilePhone: string | null;
11
+ vatNumber: string | null;
12
+ companyNumber: string | null;
13
+ location: LocationDetailResponse | null;
14
+ }
@@ -0,0 +1,13 @@
1
+ export class ChildParentBusinessResponse {
2
+ uuid;
3
+ name;
4
+ createdAt;
5
+ updatedAt;
6
+ email;
7
+ phone;
8
+ mobilePhone;
9
+ vatNumber;
10
+ companyNumber;
11
+ location;
12
+ }
13
+ //# sourceMappingURL=child-parent-business.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-parent-business.response.js","sourceRoot":"","sources":["../../../lib/types/business/child-parent-business.response.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,2BAA2B;IACtC,IAAI,CAAc;IAClB,IAAI,CAAQ;IACZ,SAAS,CAAQ;IACjB,SAAS,CAAQ;IACjB,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,SAAS,CAAe;IACxB,aAAa,CAAe;IAC5B,QAAQ,CAA+B;CACxC"}
@@ -0,0 +1,7 @@
1
+ export * from './business-billing-information.response.js';
2
+ export * from './business-contact-person.response.js';
3
+ export * from './business-detail.response.js';
4
+ export * from './business-index.query.js';
5
+ export * from './business-index.response.js';
6
+ export * from './business.uuid.js';
7
+ export * from './child-parent-business.response.js';
@@ -0,0 +1,8 @@
1
+ export * from './business-billing-information.response.js';
2
+ export * from './business-contact-person.response.js';
3
+ export * from './business-detail.response.js';
4
+ export * from './business-index.query.js';
5
+ export * from './business-index.response.js';
6
+ export * from './business.uuid.js';
7
+ export * from './child-parent-business.response.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/business/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAA;AAC1D,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './address/index.js';
2
+ export * from './business/index.js';
3
+ export * from './individual/index.js';
4
+ export * from './location/index.js';
5
+ export * from './integration-events/index.js';
@@ -0,0 +1,6 @@
1
+ export * from './address/index.js';
2
+ export * from './business/index.js';
3
+ export * from './individual/index.js';
4
+ export * from './location/index.js';
5
+ export * from './integration-events/index.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './individual-billing-information.response.js';
2
+ export * from './individual-contact-person.response.js';
3
+ export * from './individual-detail.response.js';
4
+ export * from './individual.uuid.js';
5
+ export * from './individual-linked-business.response.js';
@@ -0,0 +1,6 @@
1
+ export * from './individual-billing-information.response.js';
2
+ export * from './individual-contact-person.response.js';
3
+ export * from './individual-detail.response.js';
4
+ export * from './individual.uuid.js';
5
+ export * from './individual-linked-business.response.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/individual/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAA;AAC5D,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,0CAA0C,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { LocationDetailResponse } from "../location/location-detail.response.js";
2
+ export declare class IndividualBillingInformationResponse {
3
+ uuid: string;
4
+ invoiceEmail: string;
5
+ invoiceCcEmails: string[];
6
+ location: LocationDetailResponse;
7
+ }
@@ -0,0 +1,7 @@
1
+ export class IndividualBillingInformationResponse {
2
+ uuid;
3
+ invoiceEmail;
4
+ invoiceCcEmails;
5
+ location;
6
+ }
7
+ //# sourceMappingURL=individual-billing-information.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-billing-information.response.js","sourceRoot":"","sources":["../../../lib/types/individual/individual-billing-information.response.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,oCAAoC;IAC/C,IAAI,CAAQ;IACZ,YAAY,CAAQ;IACpB,eAAe,CAAU;IACzB,QAAQ,CAAwB;CACjC"}
@@ -0,0 +1,11 @@
1
+ import { IndividualUuid } from "./individual.uuid.js";
2
+ export declare class IndividualContactPersonResponse {
3
+ uuid: IndividualUuid;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string | null;
7
+ phone: string | null;
8
+ mobilePhone: string | null;
9
+ position: string | null;
10
+ isPrimary: boolean;
11
+ }
@@ -0,0 +1,11 @@
1
+ export class IndividualContactPersonResponse {
2
+ uuid;
3
+ firstName;
4
+ lastName;
5
+ email;
6
+ phone;
7
+ mobilePhone;
8
+ position;
9
+ isPrimary;
10
+ }
11
+ //# sourceMappingURL=individual-contact-person.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-contact-person.response.js","sourceRoot":"","sources":["../../../lib/types/individual/individual-contact-person.response.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,+BAA+B;IAC1C,IAAI,CAAgB;IACpB,SAAS,CAAQ;IACjB,QAAQ,CAAQ;IAChB,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,QAAQ,CAAe;IACvB,SAAS,CAAS;CACnB"}
@@ -0,0 +1,22 @@
1
+ import { LocationDetailResponse } from "../location/location-detail.response.js";
2
+ import { IndividualBillingInformationResponse } from "./individual-billing-information.response.js";
3
+ import { IndividualContactPersonResponse } from "./individual-contact-person.response.js";
4
+ import { IndividualUuid } from "./individual.uuid.js";
5
+ import { IndividualLinkedBusinessResponse } from "./individual-linked-business.response.js";
6
+ export declare class ViewIndividualDetailResponse {
7
+ uuid: IndividualUuid;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ firstName: string;
11
+ lastName: string;
12
+ email: string | null;
13
+ phone: string | null;
14
+ mobilePhone: string | null;
15
+ socialSecurityNumber: string | null;
16
+ birthDate: string | null;
17
+ location: LocationDetailResponse | null;
18
+ billingInformation: IndividualBillingInformationResponse | null;
19
+ contactPersons: IndividualContactPersonResponse[];
20
+ linkedBusinesses: IndividualLinkedBusinessResponse[];
21
+ customFields: object | null;
22
+ }
@@ -0,0 +1,18 @@
1
+ export class ViewIndividualDetailResponse {
2
+ uuid;
3
+ createdAt;
4
+ updatedAt;
5
+ firstName;
6
+ lastName;
7
+ email;
8
+ phone;
9
+ mobilePhone;
10
+ socialSecurityNumber;
11
+ birthDate;
12
+ location;
13
+ billingInformation;
14
+ contactPersons;
15
+ linkedBusinesses;
16
+ customFields;
17
+ }
18
+ //# sourceMappingURL=individual-detail.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-detail.response.js","sourceRoot":"","sources":["../../../lib/types/individual/individual-detail.response.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,4BAA4B;IACvC,IAAI,CAAgB;IACpB,SAAS,CAAQ;IACjB,SAAS,CAAQ;IACjB,SAAS,CAAQ;IACjB,QAAQ,CAAQ;IAChB,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;IAC1B,oBAAoB,CAAe;IACnC,SAAS,CAAe;IACxB,QAAQ,CAA+B;IACvC,kBAAkB,CAA6C;IAC/D,cAAc,CAAmC;IACjD,gBAAgB,CAAoC;IACpD,YAAY,CAAe;CAC5B"}
@@ -0,0 +1,9 @@
1
+ import { BusinessUuid } from "../business/business.uuid.js";
2
+ export declare class IndividualLinkedBusinessResponse {
3
+ uuid: BusinessUuid;
4
+ name: string;
5
+ position: string | null;
6
+ email: string | null;
7
+ phone: string | null;
8
+ mobilePhone: string | null;
9
+ }
@@ -0,0 +1,9 @@
1
+ export class IndividualLinkedBusinessResponse {
2
+ uuid;
3
+ name;
4
+ position;
5
+ email;
6
+ phone;
7
+ mobilePhone;
8
+ }
9
+ //# sourceMappingURL=individual-linked-business.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-linked-business.response.js","sourceRoot":"","sources":["../../../lib/types/individual/individual-linked-business.response.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,gCAAgC;IAC3C,IAAI,CAAc;IAClB,IAAI,CAAQ;IACZ,QAAQ,CAAe;IACvB,KAAK,CAAe;IACpB,KAAK,CAAe;IACpB,WAAW,CAAe;CAC3B"}
@@ -0,0 +1,2 @@
1
+ import { Uuid } from "../uuid.js";
2
+ export type IndividualUuid = Uuid<'Individual'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=individual.uuid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual.uuid.js","sourceRoot":"","sources":["../../../lib/types/individual/individual.uuid.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type BusinessBillingInformationUpsertedContent = {
2
+ businessUuid: string;
3
+ invoiceEmail: string;
4
+ invoiceEmailCc: string[];
5
+ reminderEmail: string;
6
+ reminderEmailCc: string[];
7
+ purchaseNoteEmail: string;
8
+ purchaseNoteCcEmails: string[];
9
+ billingAddress: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=business-billing-information-upserted-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-billing-information-upserted-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/business-billing-information-upserted-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export type BusinessCreatedContent = {
2
+ businessUuid: string;
3
+ name: string;
4
+ vatNumber: string | null;
5
+ address: string;
6
+ email: string | null;
7
+ phone: string | null;
8
+ mobilePhone: string | null;
9
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=business-created-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-created-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/business-created-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export type BusinessUpdatedContent = {
2
+ businessUuid: string;
3
+ name: string;
4
+ vatNumber: string | null;
5
+ address: string;
6
+ email: string | null;
7
+ phone: string | null;
8
+ mobilePhone: string | null;
9
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=business-updated-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-updated-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/business-updated-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export * from './integration-event.type.js';
2
+ export * from './business-created-content.type.js';
3
+ export * from './business-updated-content.type.js';
4
+ export * from './individual-created-content.type.js';
5
+ export * from './individual-updated-content.type.js';
6
+ export * from './individual-billing-information-upserted-content.type.js';
7
+ export * from './business-billing-information-upserted-content.type.js';
@@ -0,0 +1,8 @@
1
+ export * from './integration-event.type.js';
2
+ export * from './business-created-content.type.js';
3
+ export * from './business-updated-content.type.js';
4
+ export * from './individual-created-content.type.js';
5
+ export * from './individual-updated-content.type.js';
6
+ export * from './individual-billing-information-upserted-content.type.js';
7
+ export * from './business-billing-information-upserted-content.type.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/integration-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,oCAAoC,CAAA;AAClD,cAAc,sCAAsC,CAAA;AACpD,cAAc,sCAAsC,CAAA;AACpD,cAAc,2DAA2D,CAAA;AACzE,cAAc,yDAAyD,CAAA"}
@@ -0,0 +1,6 @@
1
+ export type IndividualBillingInformationUpsertedContent = {
2
+ individualUuid: string;
3
+ invoiceEmail: string;
4
+ invoiceEmailCc: string[];
5
+ billingAddress: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=individual-billing-information-upserted-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-billing-information-upserted-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/individual-billing-information-upserted-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type IndividualCreatedContent = {
2
+ individualUuid: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string | null;
6
+ phone: string | null;
7
+ mobilePhone: string | null;
8
+ socialSecurityNumber: string | null;
9
+ address: string | null;
10
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=individual-created-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-created-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/individual-created-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type IndividualUpdatedContent = {
2
+ individualUuid: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string | null;
6
+ phone: string | null;
7
+ mobilePhone: string | null;
8
+ socialSecurityNumber: string | null;
9
+ address: string | null;
10
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=individual-updated-content.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"individual-updated-content.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/individual-updated-content.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export declare enum WiseCrmIntegrationEventType {
2
+ USER_NOTIFICATION_CREATED = "user.notification.created",
3
+ INDIVIDUAL_CREATED = "individual.created",
4
+ INDIVIDUAL_UPDATED = "individual.updated",
5
+ INDIVIDUAL_BILLING_INFORMATION_UPSERTED = "individual.billing-information-upserted",
6
+ BUSINESS_CREATED = "business.created",
7
+ BUSINESS_UPDATED = "business.updated",
8
+ BUSINESS_BILLING_INFORMATION_UPSERTED = "business.billing-information-upserted"
9
+ }
@@ -0,0 +1,11 @@
1
+ export var WiseCrmIntegrationEventType;
2
+ (function (WiseCrmIntegrationEventType) {
3
+ WiseCrmIntegrationEventType["USER_NOTIFICATION_CREATED"] = "user.notification.created";
4
+ WiseCrmIntegrationEventType["INDIVIDUAL_CREATED"] = "individual.created";
5
+ WiseCrmIntegrationEventType["INDIVIDUAL_UPDATED"] = "individual.updated";
6
+ WiseCrmIntegrationEventType["INDIVIDUAL_BILLING_INFORMATION_UPSERTED"] = "individual.billing-information-upserted";
7
+ WiseCrmIntegrationEventType["BUSINESS_CREATED"] = "business.created";
8
+ WiseCrmIntegrationEventType["BUSINESS_UPDATED"] = "business.updated";
9
+ WiseCrmIntegrationEventType["BUSINESS_BILLING_INFORMATION_UPSERTED"] = "business.billing-information-upserted";
10
+ })(WiseCrmIntegrationEventType || (WiseCrmIntegrationEventType = {}));
11
+ //# sourceMappingURL=integration-event.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-event.type.js","sourceRoot":"","sources":["../../../lib/types/integration-events/integration-event.type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,2BAUX;AAVD,WAAY,2BAA2B;IACrC,sFAAuD,CAAA;IAEvD,wEAAyC,CAAA;IACzC,wEAAyC,CAAA;IACzC,kHAAmF,CAAA;IAEnF,oEAAqC,CAAA;IACrC,oEAAqC,CAAA;IACrC,8GAA+E,CAAA;AACjF,CAAC,EAVW,2BAA2B,KAA3B,2BAA2B,QAUtC"}
@@ -0,0 +1,2 @@
1
+ export * from './location.uuid.js';
2
+ export * from './location-detail.response.js';
@@ -0,0 +1,3 @@
1
+ export * from './location.uuid.js';
2
+ export * from './location-detail.response.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/location/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { AddressResponse } from "../address/address.response.js";
2
+ import { LocationUuid } from "./location.uuid.js";
3
+ export declare class LocationDetailResponse {
4
+ uuid: LocationUuid;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ address: AddressResponse;
8
+ }
@@ -0,0 +1,7 @@
1
+ export class LocationDetailResponse {
2
+ uuid;
3
+ createdAt;
4
+ updatedAt;
5
+ address;
6
+ }
7
+ //# sourceMappingURL=location-detail.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-detail.response.js","sourceRoot":"","sources":["../../../lib/types/location/location-detail.response.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,sBAAsB;IACjC,IAAI,CAAc;IAClB,SAAS,CAAQ;IACjB,SAAS,CAAQ;IACjB,OAAO,CAAiB;CACzB"}
@@ -0,0 +1,2 @@
1
+ import { Uuid } from "../uuid.js";
2
+ export type LocationUuid = Uuid<'Location'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=location.uuid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.uuid.js","sourceRoot":"","sources":["../../../lib/types/location/location.uuid.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type Uuid<Brand extends string> = string & {
2
+ readonly __brand: unique symbol;
3
+ } & {
4
+ readonly __uuid: Brand;
5
+ };
6
+ export declare function generateUuid<Brand extends Uuid<string> | null>(): Exclude<Brand, null>;
@@ -0,0 +1,4 @@
1
+ export function generateUuid() {
2
+ return crypto.randomUUID();
3
+ }
4
+ //# sourceMappingURL=uuid.js.map
@@ -0,0 +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"}