@clxmedia/types 1.0.1 → 1.0.2

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.
@@ -0,0 +1,62 @@
1
+ type ConditionalEnterpriseEventLog<T = {}> = T extends {
2
+ event_item_id: any;
3
+ } ? {
4
+ application_source: string;
5
+ event_item_type: string;
6
+ } : T extends {
7
+ event_item_type: any;
8
+ } ? {
9
+ application_source: string;
10
+ } : {};
11
+ export type EnterpriseEventLog = {
12
+ user_email: string;
13
+ description: string;
14
+ application_source?: string;
15
+ event_action: string;
16
+ event_unix_time_ms: number;
17
+ master_id?: number;
18
+ event_item_id?: string;
19
+ event_item_type?: string;
20
+ event_item_name?: string;
21
+ } & ConditionalEnterpriseEventLog;
22
+ type BaseEnterpriseEventLogQuery = {
23
+ master_id?: string;
24
+ user_email?: string;
25
+ limit?: string;
26
+ offset?: string;
27
+ order?: 'ASC' | 'DESC';
28
+ };
29
+ type EnterpriseEventItemIdExists = BaseEnterpriseEventLogQuery & {
30
+ event_item_id: string;
31
+ application_source: string;
32
+ event_item_type: string;
33
+ };
34
+ type EnterpriseEventItemTypeIdExists = BaseEnterpriseEventLogQuery & {
35
+ event_item_id?: string;
36
+ application_source: string;
37
+ event_item_type: string;
38
+ };
39
+ type EnterpriseEventNoSpecialRequirements = BaseEnterpriseEventLogQuery & {
40
+ event_item_id?: never;
41
+ event_item_type?: never;
42
+ application_source?: string;
43
+ };
44
+ export type EnterpriseEventLogQuery = EnterpriseEventItemIdExists | EnterpriseEventItemTypeIdExists | EnterpriseEventNoSpecialRequirements;
45
+ type ServiceKeys = 'accessToken' | 'jwtConfig';
46
+ type AccessConfigs = {
47
+ accessToken?: string;
48
+ jwtConfig?: {
49
+ jwtEmail: string;
50
+ jwtSecret: string;
51
+ };
52
+ };
53
+ type AccessConfig = {
54
+ [K in ServiceKeys]: {
55
+ [P in K]: AccessConfigs[K];
56
+ };
57
+ }[ServiceKeys];
58
+ export interface XperienceCoreClientConfig {
59
+ server: string;
60
+ accessConfig: AccessConfig;
61
+ }
62
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * as credstore from './credstore';
2
2
  export * as clxforms from './clxforms';
3
3
  export * as mediahub from './mediahub';
4
4
  export * as emailhub from './emailhub';
5
+ export * as core from './core';
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.emailhub = exports.mediahub = exports.clxforms = exports.credstore = void 0;
3
+ exports.core = exports.emailhub = exports.mediahub = exports.clxforms = exports.credstore = void 0;
4
4
  exports.credstore = require("./credstore");
5
5
  exports.clxforms = require("./clxforms");
6
6
  exports.mediahub = require("./mediahub");
7
7
  exports.emailhub = require("./emailhub");
8
+ exports.core = require("./core");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,11 +12,14 @@
12
12
  "clxforms": [
13
13
  "dist/clxforms/index.d.ts"
14
14
  ],
15
- "clxmedia": [
15
+ "mediahub": [
16
16
  "dist/mediahub/index.d.ts"
17
17
  ],
18
- "clxmedia-legacy": [
18
+ "emailhub": [
19
19
  "dist/emailhub/index.d.ts"
20
+ ],
21
+ "core": [
22
+ "dist/core/index.d.ts"
20
23
  ]
21
24
  }
22
25
  },