@managemint-solutions/entities 1.1.9 → 1.1.11

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
+ org_type?: OrganizationTypes;
43
+ org_name?: string;
44
+ org_trading_name?: string | null;
45
+ org_vat_number?: string | null;
46
+ org_registration_number?: string | null;
47
+ org_email?: string;
48
+ org_website?: URL | null;
49
+ org_phone?: string | null;
50
+ org_address_line_1?: string | null;
51
+ org_address_line_2?: string | null;
52
+ org_city?: string | null;
53
+ org_state?: string | null;
54
+ org_postal_code?: string | null;
55
+ org_country?: string | null;
56
+ use_address_for_billing?: boolean;
57
+ org_billing_address_line_1?: string | null;
58
+ org_billing_address_line_2?: string | null;
59
+ org_billing_city?: string | null;
60
+ org_billing_state?: string | null;
61
+ org_billing_postal_code?: string | null;
62
+ org_billing_country?: string | null;
63
+ org_industry?: string | null;
64
+ org_marketting_consent_given: boolean;
65
+ org_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;
@@ -141,8 +141,8 @@ export interface Permissions {
141
141
  invoices: Omit<CrudPermission, 'create' | 'update' | 'delete'>;
142
142
  users: CrudPermission;
143
143
  user_permissions: Omit<CrudPermission, 'create' | 'delete'>;
144
- organization: Omit<CrudPermission, 'create' | 'delete'>;
145
- subscription: Omit<CrudPermission, 'read' | 'create' | 'delete'>;
144
+ organizations: Omit<CrudPermission, 'create' | 'delete'>;
145
+ subscriptions: Omit<CrudPermission, 'read' | 'create' | 'delete'>;
146
146
  payments: Omit<CrudPermission, 'read' | 'update' | 'delete'>;
147
147
  notifications: Omit<CrudPermission, 'create' | 'update' | 'delete'>;
148
148
  logs: Omit<CrudPermission, 'create' | 'update' | 'delete'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
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": {