@clxmedia/types 1.0.95 → 1.0.97

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,24 +1,12 @@
1
- type BaseEnterpriseEventLogQuery = {
1
+ import { EnterpriseEventAction, EnterpriseEventItemType, EventApplicationSource } from "../events";
2
+ export type EnterpriseEventLogQuery = {
3
+ application_source: EventApplicationSource;
4
+ event_item_type?: EnterpriseEventItemType;
5
+ event_action?: EnterpriseEventAction;
6
+ event_item_id?: string;
2
7
  master_id?: string;
3
8
  user_email?: string;
4
9
  limit?: string;
5
10
  offset?: string;
6
11
  order?: 'ASC' | 'DESC';
7
12
  };
8
- export type EnterpriseEventItemIdExists = BaseEnterpriseEventLogQuery & {
9
- event_item_id: string;
10
- application_source: string;
11
- event_item_type: string;
12
- };
13
- export type EnterpriseEventItemTypeIdExists = BaseEnterpriseEventLogQuery & {
14
- event_item_id?: string;
15
- application_source: string;
16
- event_item_type: string;
17
- };
18
- export type EnterpriseEventNoSpecialRequirements = BaseEnterpriseEventLogQuery & {
19
- event_item_id?: never;
20
- event_item_type?: never;
21
- application_source?: string;
22
- };
23
- export type EnterpriseEventLogQuery = EnterpriseEventItemIdExists | EnterpriseEventItemTypeIdExists | EnterpriseEventNoSpecialRequirements;
24
- export {};
@@ -1,12 +1,14 @@
1
+ type EnterpriseDefaultActions = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error';
2
+ export type EventApplicationSource = 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo';
1
3
  export type EnterpriseEventBase = {
2
4
  user_email: string;
3
5
  description: string;
4
6
  master_id: number;
7
+ application_source: EventApplicationSource;
5
8
  event_unix_time_ms: number;
6
9
  event_item_id?: string;
7
10
  event_item_name?: string;
8
11
  };
9
- type EnterpriseDefaultActions = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error';
10
12
  export type FormsEnterpriseEventAction = 'locked' | 'unlocked' | 'shared' | 'submitted' | 'reviewed' | (EnterpriseDefaultActions & {});
11
13
  export type FormsItemTypes = 'onboarding' | 'client-request';
12
14
  export type EnterpriseEventForms = EnterpriseEventBase & {
@@ -74,6 +76,8 @@ export type EnterpriseEventExternal = EnterpriseEventBase & {
74
76
  event_action: ExternalEnterpriseEventAction;
75
77
  };
76
78
  export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
79
+ export type EnterpriseEventItemType = FormsItemTypes | AuthItemTypes | ProjectsItemTypes | MediaHubItemTypes | AdsItemTypes | ExternalItemTypes | OdooItemTypes;
80
+ export type EnterpriseEventAction = FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
77
81
  export type EnterpriseEvent = EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
78
82
  export type EnterpriseEventSlugs = FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
79
83
  export type ServiceKeys = 'accessToken' | 'jwtConfig';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",