@memberjunction/scheduling-base-types 2.107.0
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.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +74 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/package.json +23 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Main export for Scheduling Base Types
|
|
4
|
+
* @module @memberjunction/scheduling-base-types
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./types"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Core type definitions for the Scheduled Jobs system
|
|
3
|
+
* @module @memberjunction/scheduling-base-types
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Result returned by a scheduled job execution
|
|
7
|
+
*/
|
|
8
|
+
export interface ScheduledJobResult {
|
|
9
|
+
/**
|
|
10
|
+
* Whether the job completed successfully
|
|
11
|
+
*/
|
|
12
|
+
Success: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Error message if the job failed
|
|
15
|
+
*/
|
|
16
|
+
ErrorMessage?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Job-type specific execution details
|
|
19
|
+
* For Agents: { AgentRunID: string, TokensUsed: number, Cost: number }
|
|
20
|
+
* For Actions: { ResultCode: string, IsSuccess: boolean, OutputParams: any }
|
|
21
|
+
*/
|
|
22
|
+
Details?: Record<string, any>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Configuration for job-specific execution
|
|
26
|
+
* Each job type defines its own configuration schema
|
|
27
|
+
*/
|
|
28
|
+
export interface ScheduledJobConfiguration {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for Agent scheduled jobs
|
|
33
|
+
*/
|
|
34
|
+
export interface AgentJobConfiguration extends ScheduledJobConfiguration {
|
|
35
|
+
AgentID: string;
|
|
36
|
+
ConversationID?: string;
|
|
37
|
+
StartingPayload?: any;
|
|
38
|
+
InitialMessage?: string;
|
|
39
|
+
ConfigurationID?: string;
|
|
40
|
+
OverrideModelID?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Configuration for Action scheduled jobs
|
|
44
|
+
*/
|
|
45
|
+
export interface ActionJobConfiguration extends ScheduledJobConfiguration {
|
|
46
|
+
ActionID: string;
|
|
47
|
+
Params?: Array<{
|
|
48
|
+
ActionParamID: string;
|
|
49
|
+
ValueType: 'Static' | 'SQL Statement';
|
|
50
|
+
Value: string;
|
|
51
|
+
}>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Notification content structure
|
|
55
|
+
*/
|
|
56
|
+
export interface NotificationContent {
|
|
57
|
+
Subject: string;
|
|
58
|
+
Body: string;
|
|
59
|
+
Priority: 'Low' | 'Normal' | 'High';
|
|
60
|
+
Metadata?: Record<string, any>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Job execution status values
|
|
64
|
+
*/
|
|
65
|
+
export type ScheduledJobRunStatus = 'Running' | 'Completed' | 'Failed' | 'Cancelled' | 'Timeout';
|
|
66
|
+
/**
|
|
67
|
+
* Schedule status values
|
|
68
|
+
*/
|
|
69
|
+
export type ScheduledJobStatus = 'Pending' | 'Active' | 'Paused' | 'Disabled' | 'Expired';
|
|
70
|
+
/**
|
|
71
|
+
* Notification delivery channels
|
|
72
|
+
*/
|
|
73
|
+
export type NotificationChannel = 'Email' | 'InApp';
|
|
74
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;QACX,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,QAAQ,GAAG,eAAe,CAAC;QACtC,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACN;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAEjG;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1F;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,OAAO,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@memberjunction/scheduling-base-types",
|
|
3
|
+
"version": "2.107.0",
|
|
4
|
+
"description": "MemberJunction: Scheduling Base Types - core type definitions for the scheduled jobs system, usable anywhere without heavy dependencies",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"/dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"watch": "tsc --watch"
|
|
13
|
+
},
|
|
14
|
+
"author": "MemberJunction.com",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@memberjunction/global": "2.100.3"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "20.14.2",
|
|
21
|
+
"typescript": "^5.4.5"
|
|
22
|
+
}
|
|
23
|
+
}
|