@clxmedia/types 1.0.156 → 1.0.158
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,27 @@
|
|
|
1
|
+
export type FeatureFlagStrategyTypes = "company" | "user" | "group" | "company_user" | "company_group";
|
|
2
|
+
export type FeatureFlagStrategyBase = {
|
|
3
|
+
type: FeatureFlagStrategyTypes;
|
|
4
|
+
};
|
|
5
|
+
export type FeatureFlagCompanyStrategy = FeatureFlagStrategyBase & {
|
|
6
|
+
type: 'company';
|
|
7
|
+
master_ids: number[];
|
|
8
|
+
};
|
|
9
|
+
export type FeatureFlagUserStrategy = FeatureFlagStrategyBase & {
|
|
10
|
+
type: 'user';
|
|
11
|
+
user_ids: number[];
|
|
12
|
+
};
|
|
13
|
+
export type FeatureFlagGroupStrategy = FeatureFlagStrategyBase & {
|
|
14
|
+
type: 'group';
|
|
15
|
+
group_ids: number[];
|
|
16
|
+
};
|
|
17
|
+
export type FeatureFlagCompanyUserStrategy = FeatureFlagStrategyBase & {
|
|
18
|
+
type: 'company_user';
|
|
19
|
+
master_ids: number[];
|
|
20
|
+
user_ids: number[];
|
|
21
|
+
};
|
|
22
|
+
export type FeatureFlagCompanyGroupStrategy = FeatureFlagStrategyBase & {
|
|
23
|
+
type: 'company_group';
|
|
24
|
+
master_ids: number[];
|
|
25
|
+
group_ids: number[];
|
|
26
|
+
};
|
|
27
|
+
export type FeatureFlagStrategyDefinition = FeatureFlagCompanyStrategy | FeatureFlagUserStrategy | FeatureFlagGroupStrategy | FeatureFlagCompanyUserStrategy | FeatureFlagCompanyGroupStrategy;
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tasks = exports.auth = exports.events = exports.eventlog = exports.clxforms = exports.credstore = void 0;
|
|
3
|
+
exports.tasks = exports.features = exports.auth = exports.events = exports.eventlog = exports.clxforms = exports.credstore = void 0;
|
|
4
4
|
exports.credstore = require("./credstore");
|
|
5
5
|
exports.clxforms = require("./clxforms");
|
|
6
6
|
exports.eventlog = require("./eventlog");
|
|
7
7
|
exports.events = require("./events");
|
|
8
8
|
exports.auth = require("./auth");
|
|
9
|
+
exports.features = require("./features");
|
|
9
10
|
exports.tasks = require("./tasks");
|
|
@@ -227,6 +227,7 @@ export type CLXTaskBase = {
|
|
|
227
227
|
slug: string;
|
|
228
228
|
is_active: boolean;
|
|
229
229
|
};
|
|
230
|
+
export type CLXTaskResolution = 'done' | 'skipped' | 'none';
|
|
230
231
|
export type CLXTask = CLXTaskBase & {
|
|
231
232
|
id: number;
|
|
232
233
|
is_required: boolean;
|
|
@@ -245,6 +246,7 @@ export type CLXTask = CLXTaskBase & {
|
|
|
245
246
|
entity_name: string;
|
|
246
247
|
assignment: CLiQUserLocator | null;
|
|
247
248
|
target: CLXTaskTargetNone | CLXTaskTarget;
|
|
249
|
+
resolution: CLXTaskResolution;
|
|
248
250
|
};
|
|
249
251
|
export type CLXTaskHistoryEntry = {
|
|
250
252
|
id: number;
|
|
@@ -266,7 +268,6 @@ export type CLXTaskWithStatus = CLXTask & {
|
|
|
266
268
|
skipped_at: Date | null;
|
|
267
269
|
responsibility: 'internal' | 'external';
|
|
268
270
|
status: CLXTaskStatus;
|
|
269
|
-
resolution: 'done' | 'skipped' | 'none';
|
|
270
271
|
};
|
|
271
272
|
export type CLXTaskWithHistory = CLXTaskWithStatus & {
|
|
272
273
|
history: CLXTaskHistoryEntry[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clxmedia/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.158",
|
|
4
4
|
"description": "Conversion Logix TypeScript type definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"types": "./dist/core/auth/index.d.ts",
|
|
22
22
|
"default": "./dist/core/auth/index.js"
|
|
23
23
|
},
|
|
24
|
+
"./core/features": {
|
|
25
|
+
"types": "./dist/core/features/index.d.ts",
|
|
26
|
+
"default": "./dist/core/features/index.js"
|
|
27
|
+
},
|
|
24
28
|
"./core/tasks": {
|
|
25
29
|
"types": "./dist/core/tasks/index.d.ts",
|
|
26
30
|
"default": "./dist/core/tasks/index.js"
|
|
@@ -62,6 +66,9 @@
|
|
|
62
66
|
"core/auth": [
|
|
63
67
|
"dist/core/auth/index.d.ts"
|
|
64
68
|
],
|
|
69
|
+
"core/features": [
|
|
70
|
+
"dist/core/features/index.d.ts"
|
|
71
|
+
],
|
|
65
72
|
"core/tasks": [
|
|
66
73
|
"dist/core/tasks/index.d.ts"
|
|
67
74
|
],
|