@managemint-solutions/entities 1.1.10 → 1.1.12

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,9 +1,10 @@
1
1
  import { AuditTrailAction, AuditTrailEntityType } from "../enum";
2
2
  export type GetAuditTrailDto = {
3
+ search?: string | null;
3
4
  page: number;
4
5
  page_size: number;
5
- created_after?: Date | null;
6
- created_before?: Date | null;
6
+ created_after?: string | null;
7
+ created_before?: string | null;
7
8
  created_by?: string | null;
8
9
  action?: AuditTrailAction | null;
9
10
  entity_type?: AuditTrailEntityType | null;
@@ -38,3 +38,29 @@ export type CreateOrganizationDto = {
38
38
  seats_needed: number;
39
39
  payment_frequency: PaymentIntervals.MONTHLY;
40
40
  };
41
+ export type UpdateOrganizationDto = {
42
+ type?: OrganizationTypes;
43
+ name?: string;
44
+ trading_name?: string | null;
45
+ vat_number?: string | null;
46
+ registration_number?: string | null;
47
+ email?: string;
48
+ website?: string | null;
49
+ phone?: string | null;
50
+ address_line_1?: string | null;
51
+ address_line_2?: string | null;
52
+ city?: string | null;
53
+ state?: string | null;
54
+ post_code?: string | null;
55
+ country?: string | null;
56
+ use_address_for_billing?: boolean;
57
+ billing_address_line_1?: string | null;
58
+ billing_address_line_2?: string | null;
59
+ billing_city?: string | null;
60
+ billing_state?: string | null;
61
+ billing_post_code?: string | null;
62
+ billing_country?: string | null;
63
+ industry?: string | null;
64
+ marketing_consent: boolean;
65
+ currency?: string;
66
+ };
@@ -3,7 +3,7 @@ import { Modules } from '../modules/enum/index';
3
3
  import { UserIdentity } from '../users';
4
4
  import { SubscriptionCancellationStatus, SubscriptionReinstateStatus } from '../subscription/enum';
5
5
  import { PaymentStatuses } from '../payments/enums';
6
- export type Organization = {
6
+ export type OrganizationEntity = {
7
7
  mms_id: UUID;
8
8
  created_at: Date;
9
9
  type: string;
@@ -48,7 +48,4 @@ export type Organization = {
48
48
  cancellation_status: SubscriptionCancellationStatus;
49
49
  reinstate_status: SubscriptionReinstateStatus;
50
50
  card_expiring_soon: boolean;
51
- card_expiry_date: string | null;
52
- card_description: string | null;
53
- card_brand: string | null;
54
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {