@ketrics/sdk-backend 0.11.0 → 0.13.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/applications-errors.d.ts +172 -0
- package/dist/applications-errors.d.ts.map +1 -0
- package/dist/applications-errors.js +233 -0
- package/dist/applications-errors.js.map +1 -0
- package/dist/applications.d.ts +67 -0
- package/dist/applications.d.ts.map +1 -0
- package/dist/applications.js +26 -0
- package/dist/applications.js.map +1 -0
- package/dist/index.d.ts +110 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/job-errors.d.ts +0 -31
- package/dist/job-errors.d.ts.map +1 -1
- package/dist/job-errors.js +1 -39
- package/dist/job-errors.js.map +1 -1
- package/dist/job.d.ts +5 -9
- package/dist/job.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ketrics SDK - Applications Error Classes
|
|
3
|
+
*
|
|
4
|
+
* Provides typed errors for cross-app function invocation operations
|
|
5
|
+
* in tenant applications.
|
|
6
|
+
*
|
|
7
|
+
* Error Hierarchy:
|
|
8
|
+
* - ApplicationsError (base)
|
|
9
|
+
* - ApplicationNotFoundError
|
|
10
|
+
* - ApplicationNotDeployedError
|
|
11
|
+
* - ApplicationPermissionDeniedError
|
|
12
|
+
* - ApplicationInvocationError
|
|
13
|
+
* - ApplicationTimeoutError
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Base error class for all Applications errors
|
|
17
|
+
*
|
|
18
|
+
* All Applications errors extend this class and include:
|
|
19
|
+
* - applicationCode: The target application code
|
|
20
|
+
* - operation: The operation that failed
|
|
21
|
+
* - timestamp: When the error occurred
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class ApplicationsError extends Error {
|
|
24
|
+
/** Target application code */
|
|
25
|
+
readonly applicationCode: string;
|
|
26
|
+
/** Operation that failed */
|
|
27
|
+
readonly operation: string;
|
|
28
|
+
/** When the error occurred */
|
|
29
|
+
readonly timestamp: Date;
|
|
30
|
+
constructor(message: string, operation: string, applicationCode: string);
|
|
31
|
+
/**
|
|
32
|
+
* Serialize error for logging
|
|
33
|
+
*/
|
|
34
|
+
toJSON(): Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Error thrown when target application is not found
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* try {
|
|
42
|
+
* const app = await ketrics.Applications.connect('nonexistent');
|
|
43
|
+
* } catch (error) {
|
|
44
|
+
* if (error instanceof ketrics.Applications.NotFoundError) {
|
|
45
|
+
* console.log('Application not found:', error.applicationCode);
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class ApplicationNotFoundError extends ApplicationsError {
|
|
51
|
+
constructor(applicationCode: string);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Error thrown when target application has no active deployment
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* try {
|
|
59
|
+
* const app = await ketrics.Applications.connect('inactive-app');
|
|
60
|
+
* } catch (error) {
|
|
61
|
+
* if (error instanceof ketrics.Applications.NotDeployedError) {
|
|
62
|
+
* console.log('Application not deployed:', error.applicationCode);
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare class ApplicationNotDeployedError extends ApplicationsError {
|
|
68
|
+
constructor(applicationCode: string);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Error thrown when the calling application lacks permission to invoke the target
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```typescript
|
|
75
|
+
* try {
|
|
76
|
+
* const app = await ketrics.Applications.connect('restricted-app');
|
|
77
|
+
* } catch (error) {
|
|
78
|
+
* if (error instanceof ketrics.Applications.PermissionDeniedError) {
|
|
79
|
+
* console.log('Permission denied:', error.sourceApplicationCode, '->', error.applicationCode);
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare class ApplicationPermissionDeniedError extends ApplicationsError {
|
|
85
|
+
/** Source application code */
|
|
86
|
+
readonly sourceApplicationCode: string;
|
|
87
|
+
constructor(sourceApplicationCode: string, targetApplicationCode: string, detail?: string);
|
|
88
|
+
toJSON(): Record<string, unknown>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Error thrown when the invoked function fails during execution
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* try {
|
|
96
|
+
* const result = await app.invoke('processData', { items: [] });
|
|
97
|
+
* } catch (error) {
|
|
98
|
+
* if (error instanceof ketrics.Applications.InvocationError) {
|
|
99
|
+
* console.log('Function failed:', error.functionName, error.errorCode);
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export declare class ApplicationInvocationError extends ApplicationsError {
|
|
105
|
+
/** Error code from the target function */
|
|
106
|
+
readonly errorCode: string;
|
|
107
|
+
/** Function that failed */
|
|
108
|
+
readonly functionName: string;
|
|
109
|
+
constructor(applicationCode: string, functionName: string, errorCode: string, message: string);
|
|
110
|
+
toJSON(): Record<string, unknown>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Error thrown when cross-app function invocation times out
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* try {
|
|
118
|
+
* const result = await app.invoke('longRunningTask', { data: 'large' });
|
|
119
|
+
* } catch (error) {
|
|
120
|
+
* if (error instanceof ketrics.Applications.TimeoutError) {
|
|
121
|
+
* console.log('Timed out after', error.timeoutMs, 'ms');
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare class ApplicationTimeoutError extends ApplicationsError {
|
|
127
|
+
/** Function that timed out */
|
|
128
|
+
readonly functionName: string;
|
|
129
|
+
/** Timeout in milliseconds */
|
|
130
|
+
readonly timeoutMs: number;
|
|
131
|
+
constructor(applicationCode: string, functionName: string, timeoutMs: number);
|
|
132
|
+
toJSON(): Record<string, unknown>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Type guard to check if an error is an ApplicationsError
|
|
136
|
+
*
|
|
137
|
+
* @param error - The error to check
|
|
138
|
+
* @returns True if the error is an ApplicationsError
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* try {
|
|
143
|
+
* const app = await ketrics.Applications.connect('appb');
|
|
144
|
+
* const result = await app.invoke('calculate', { x: 1 });
|
|
145
|
+
* } catch (error) {
|
|
146
|
+
* if (isApplicationsError(error)) {
|
|
147
|
+
* console.log(`Applications error: ${error.applicationCode} - ${error.operation}`);
|
|
148
|
+
* }
|
|
149
|
+
* }
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
export declare function isApplicationsError(error: unknown): error is ApplicationsError;
|
|
153
|
+
/**
|
|
154
|
+
* Type guard to check if an error is a specific ApplicationsError type
|
|
155
|
+
*
|
|
156
|
+
* @param error - The error to check
|
|
157
|
+
* @param errorClass - The error class to check against
|
|
158
|
+
* @returns True if the error is an instance of the specified class
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* try {
|
|
163
|
+
* const app = await ketrics.Applications.connect('appb');
|
|
164
|
+
* } catch (error) {
|
|
165
|
+
* if (isApplicationsErrorType(error, ApplicationNotFoundError)) {
|
|
166
|
+
* console.log('Application not found:', error.applicationCode);
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
export declare function isApplicationsErrorType<T extends ApplicationsError>(error: unknown, errorClass: new (...args: any[]) => T): error is T;
|
|
172
|
+
//# sourceMappingURL=applications-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications-errors.d.ts","sourceRoot":"","sources":["../src/applications-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH;;;;;;;GAOG;AACH,8BAAsB,iBAAkB,SAAQ,KAAK;IACnD,8BAA8B;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAavE;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CASlC;AAMD;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAyB,SAAQ,iBAAiB;gBACjD,eAAe,EAAE,MAAM;CAOpC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,2BAA4B,SAAQ,iBAAiB;gBACpD,eAAe,EAAE,MAAM;CAOpC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,gCAAiC,SAAQ,iBAAiB;IACrE,8BAA8B;IAC9B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;gBAE3B,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAUzF,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMlC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,0BAA2B,SAAQ,iBAAiB;IAC/D,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,2BAA2B;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAElB,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAU7F,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAOlC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,uBAAwB,SAAQ,iBAAiB;IAC5D,8BAA8B;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAU5E,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAOlC;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAE9E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,EACjE,KAAK,EAAE,OAAO,EAEd,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACpC,KAAK,IAAI,CAAC,CAEZ"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Ketrics SDK - Applications Error Classes
|
|
4
|
+
*
|
|
5
|
+
* Provides typed errors for cross-app function invocation operations
|
|
6
|
+
* in tenant applications.
|
|
7
|
+
*
|
|
8
|
+
* Error Hierarchy:
|
|
9
|
+
* - ApplicationsError (base)
|
|
10
|
+
* - ApplicationNotFoundError
|
|
11
|
+
* - ApplicationNotDeployedError
|
|
12
|
+
* - ApplicationPermissionDeniedError
|
|
13
|
+
* - ApplicationInvocationError
|
|
14
|
+
* - ApplicationTimeoutError
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ApplicationTimeoutError = exports.ApplicationInvocationError = exports.ApplicationPermissionDeniedError = exports.ApplicationNotDeployedError = exports.ApplicationNotFoundError = exports.ApplicationsError = void 0;
|
|
18
|
+
exports.isApplicationsError = isApplicationsError;
|
|
19
|
+
exports.isApplicationsErrorType = isApplicationsErrorType;
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// Base Error Class
|
|
22
|
+
// ============================================================================
|
|
23
|
+
/**
|
|
24
|
+
* Base error class for all Applications errors
|
|
25
|
+
*
|
|
26
|
+
* All Applications errors extend this class and include:
|
|
27
|
+
* - applicationCode: The target application code
|
|
28
|
+
* - operation: The operation that failed
|
|
29
|
+
* - timestamp: When the error occurred
|
|
30
|
+
*/
|
|
31
|
+
class ApplicationsError extends Error {
|
|
32
|
+
constructor(message, operation, applicationCode) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.name = this.constructor.name;
|
|
35
|
+
this.operation = operation;
|
|
36
|
+
this.applicationCode = applicationCode;
|
|
37
|
+
this.timestamp = new Date();
|
|
38
|
+
// Maintains proper stack trace for where error was thrown
|
|
39
|
+
if (Error.captureStackTrace) {
|
|
40
|
+
Error.captureStackTrace(this, this.constructor);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Serialize error for logging
|
|
45
|
+
*/
|
|
46
|
+
toJSON() {
|
|
47
|
+
return {
|
|
48
|
+
name: this.name,
|
|
49
|
+
message: this.message,
|
|
50
|
+
applicationCode: this.applicationCode,
|
|
51
|
+
operation: this.operation,
|
|
52
|
+
timestamp: this.timestamp.toISOString(),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ApplicationsError = ApplicationsError;
|
|
57
|
+
// ============================================================================
|
|
58
|
+
// Specific Error Classes
|
|
59
|
+
// ============================================================================
|
|
60
|
+
/**
|
|
61
|
+
* Error thrown when target application is not found
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* try {
|
|
66
|
+
* const app = await ketrics.Applications.connect('nonexistent');
|
|
67
|
+
* } catch (error) {
|
|
68
|
+
* if (error instanceof ketrics.Applications.NotFoundError) {
|
|
69
|
+
* console.log('Application not found:', error.applicationCode);
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
class ApplicationNotFoundError extends ApplicationsError {
|
|
75
|
+
constructor(applicationCode) {
|
|
76
|
+
super(`Application '${applicationCode}' not found. Verify the application code is correct.`, 'connect', applicationCode);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ApplicationNotFoundError = ApplicationNotFoundError;
|
|
80
|
+
/**
|
|
81
|
+
* Error thrown when target application has no active deployment
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* try {
|
|
86
|
+
* const app = await ketrics.Applications.connect('inactive-app');
|
|
87
|
+
* } catch (error) {
|
|
88
|
+
* if (error instanceof ketrics.Applications.NotDeployedError) {
|
|
89
|
+
* console.log('Application not deployed:', error.applicationCode);
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
class ApplicationNotDeployedError extends ApplicationsError {
|
|
95
|
+
constructor(applicationCode) {
|
|
96
|
+
super(`Application '${applicationCode}' is not deployed or is inactive.`, 'connect', applicationCode);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.ApplicationNotDeployedError = ApplicationNotDeployedError;
|
|
100
|
+
/**
|
|
101
|
+
* Error thrown when the calling application lacks permission to invoke the target
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* try {
|
|
106
|
+
* const app = await ketrics.Applications.connect('restricted-app');
|
|
107
|
+
* } catch (error) {
|
|
108
|
+
* if (error instanceof ketrics.Applications.PermissionDeniedError) {
|
|
109
|
+
* console.log('Permission denied:', error.sourceApplicationCode, '->', error.applicationCode);
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
class ApplicationPermissionDeniedError extends ApplicationsError {
|
|
115
|
+
constructor(sourceApplicationCode, targetApplicationCode, detail) {
|
|
116
|
+
const detailMsg = detail ? ` ${detail}` : '';
|
|
117
|
+
super(`Application '${sourceApplicationCode}' does not have permission to invoke functions on '${targetApplicationCode}'.${detailMsg}`, 'connect', targetApplicationCode);
|
|
118
|
+
this.sourceApplicationCode = sourceApplicationCode;
|
|
119
|
+
}
|
|
120
|
+
toJSON() {
|
|
121
|
+
return {
|
|
122
|
+
...super.toJSON(),
|
|
123
|
+
sourceApplicationCode: this.sourceApplicationCode,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.ApplicationPermissionDeniedError = ApplicationPermissionDeniedError;
|
|
128
|
+
/**
|
|
129
|
+
* Error thrown when the invoked function fails during execution
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* try {
|
|
134
|
+
* const result = await app.invoke('processData', { items: [] });
|
|
135
|
+
* } catch (error) {
|
|
136
|
+
* if (error instanceof ketrics.Applications.InvocationError) {
|
|
137
|
+
* console.log('Function failed:', error.functionName, error.errorCode);
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
class ApplicationInvocationError extends ApplicationsError {
|
|
143
|
+
constructor(applicationCode, functionName, errorCode, message) {
|
|
144
|
+
super(`Function '${functionName}' on application '${applicationCode}' failed: ${message}`, 'invoke', applicationCode);
|
|
145
|
+
this.errorCode = errorCode;
|
|
146
|
+
this.functionName = functionName;
|
|
147
|
+
}
|
|
148
|
+
toJSON() {
|
|
149
|
+
return {
|
|
150
|
+
...super.toJSON(),
|
|
151
|
+
errorCode: this.errorCode,
|
|
152
|
+
functionName: this.functionName,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.ApplicationInvocationError = ApplicationInvocationError;
|
|
157
|
+
/**
|
|
158
|
+
* Error thrown when cross-app function invocation times out
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* try {
|
|
163
|
+
* const result = await app.invoke('longRunningTask', { data: 'large' });
|
|
164
|
+
* } catch (error) {
|
|
165
|
+
* if (error instanceof ketrics.Applications.TimeoutError) {
|
|
166
|
+
* console.log('Timed out after', error.timeoutMs, 'ms');
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
class ApplicationTimeoutError extends ApplicationsError {
|
|
172
|
+
constructor(applicationCode, functionName, timeoutMs) {
|
|
173
|
+
super(`Function '${functionName}' on application '${applicationCode}' timed out after ${timeoutMs}ms.`, 'invoke', applicationCode);
|
|
174
|
+
this.functionName = functionName;
|
|
175
|
+
this.timeoutMs = timeoutMs;
|
|
176
|
+
}
|
|
177
|
+
toJSON() {
|
|
178
|
+
return {
|
|
179
|
+
...super.toJSON(),
|
|
180
|
+
functionName: this.functionName,
|
|
181
|
+
timeoutMs: this.timeoutMs,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.ApplicationTimeoutError = ApplicationTimeoutError;
|
|
186
|
+
// ============================================================================
|
|
187
|
+
// Type Guards
|
|
188
|
+
// ============================================================================
|
|
189
|
+
/**
|
|
190
|
+
* Type guard to check if an error is an ApplicationsError
|
|
191
|
+
*
|
|
192
|
+
* @param error - The error to check
|
|
193
|
+
* @returns True if the error is an ApplicationsError
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* try {
|
|
198
|
+
* const app = await ketrics.Applications.connect('appb');
|
|
199
|
+
* const result = await app.invoke('calculate', { x: 1 });
|
|
200
|
+
* } catch (error) {
|
|
201
|
+
* if (isApplicationsError(error)) {
|
|
202
|
+
* console.log(`Applications error: ${error.applicationCode} - ${error.operation}`);
|
|
203
|
+
* }
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
function isApplicationsError(error) {
|
|
208
|
+
return error instanceof ApplicationsError;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Type guard to check if an error is a specific ApplicationsError type
|
|
212
|
+
*
|
|
213
|
+
* @param error - The error to check
|
|
214
|
+
* @param errorClass - The error class to check against
|
|
215
|
+
* @returns True if the error is an instance of the specified class
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* ```typescript
|
|
219
|
+
* try {
|
|
220
|
+
* const app = await ketrics.Applications.connect('appb');
|
|
221
|
+
* } catch (error) {
|
|
222
|
+
* if (isApplicationsErrorType(error, ApplicationNotFoundError)) {
|
|
223
|
+
* console.log('Application not found:', error.applicationCode);
|
|
224
|
+
* }
|
|
225
|
+
* }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
function isApplicationsErrorType(error,
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
230
|
+
errorClass) {
|
|
231
|
+
return error instanceof errorClass;
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=applications-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications-errors.js","sourceRoot":"","sources":["../src/applications-errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAiPH,kDAEC;AAoBD,0DAMC;AA3QD,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAsB,iBAAkB,SAAQ,KAAK;IAUnD,YAAY,OAAe,EAAE,SAAiB,EAAE,eAAuB;QACrE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,eAA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;;;;;GAiBG;AACH,SAAgB,mBAAmB,CAAC,KAAc;IAChD,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC5C,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,uBAAuB,CACrC,KAAc;AACd,8DAA8D;AAC9D,UAAqC;IAErC,OAAO,KAAK,YAAY,UAAU,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ketrics SDK - Applications Interfaces
|
|
3
|
+
*
|
|
4
|
+
* Provides type definitions for cross-app function invocation
|
|
5
|
+
* in tenant applications.
|
|
6
|
+
*
|
|
7
|
+
* Usage in tenant code:
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Connect to another application (eagerly validates)
|
|
10
|
+
* const appb = await ketrics.Applications.connect('appb');
|
|
11
|
+
*
|
|
12
|
+
* // Invoke a function on the connected application
|
|
13
|
+
* const result = await appb.invoke('calculateTotal', { items: [...] });
|
|
14
|
+
* console.log(result.success); // true
|
|
15
|
+
* console.log(result.result); // function return value
|
|
16
|
+
* console.log(result.executionTime); // execution time in ms
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Authorization:
|
|
20
|
+
* - Uses role-based permissions (app_domain roles)
|
|
21
|
+
* - The calling application's requestor must have permissions for the target app
|
|
22
|
+
* - No grants required - permissions flow through RBAC
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Result of invoking a function on a connected application
|
|
26
|
+
*/
|
|
27
|
+
export interface ApplicationInvokeResult {
|
|
28
|
+
/** Whether the invocation succeeded */
|
|
29
|
+
success: boolean;
|
|
30
|
+
/** Return value from the target function */
|
|
31
|
+
result?: unknown;
|
|
32
|
+
/** Execution time in milliseconds */
|
|
33
|
+
executionTime?: number;
|
|
34
|
+
/** Error details (only present when success is false) */
|
|
35
|
+
error?: {
|
|
36
|
+
code: string;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Connected Application Interface
|
|
42
|
+
*
|
|
43
|
+
* Represents a validated connection to another application.
|
|
44
|
+
* Returned by Applications.connect() after permission checks pass.
|
|
45
|
+
*/
|
|
46
|
+
export interface IApplicationConnection {
|
|
47
|
+
/** Target application code (read-only) */
|
|
48
|
+
readonly code: string;
|
|
49
|
+
/** Target application display name (read-only) */
|
|
50
|
+
readonly name: string;
|
|
51
|
+
/** Target application UUID (read-only) */
|
|
52
|
+
readonly applicationId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Invoke a function on the connected application
|
|
55
|
+
*
|
|
56
|
+
* Executes the specified function in the target application's VM sandbox.
|
|
57
|
+
* The response is wrapped in a standard envelope.
|
|
58
|
+
*
|
|
59
|
+
* @param functionName - Name of the exported function to call
|
|
60
|
+
* @param payload - Optional data to pass to the function
|
|
61
|
+
* @returns Invoke result envelope with success, result, and executionTime
|
|
62
|
+
* @throws ApplicationInvocationError if the function fails
|
|
63
|
+
* @throws ApplicationTimeoutError if the function exceeds the timeout
|
|
64
|
+
*/
|
|
65
|
+
invoke(functionName: string, payload?: Record<string, unknown>): Promise<ApplicationInvokeResult>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=applications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAMD;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACnG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Ketrics SDK - Applications Interfaces
|
|
4
|
+
*
|
|
5
|
+
* Provides type definitions for cross-app function invocation
|
|
6
|
+
* in tenant applications.
|
|
7
|
+
*
|
|
8
|
+
* Usage in tenant code:
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // Connect to another application (eagerly validates)
|
|
11
|
+
* const appb = await ketrics.Applications.connect('appb');
|
|
12
|
+
*
|
|
13
|
+
* // Invoke a function on the connected application
|
|
14
|
+
* const result = await appb.invoke('calculateTotal', { items: [...] });
|
|
15
|
+
* console.log(result.success); // true
|
|
16
|
+
* console.log(result.result); // function return value
|
|
17
|
+
* console.log(result.executionTime); // execution time in ms
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Authorization:
|
|
21
|
+
* - Uses role-based permissions (app_domain roles)
|
|
22
|
+
* - The calling application's requestor must have permissions for the target app
|
|
23
|
+
* - No grants required - permissions flow through RBAC
|
|
24
|
+
*/
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
//# sourceMappingURL=applications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -67,13 +67,15 @@ export { ExcelError, ExcelParseError, ExcelWriteError, isExcelError, isExcelErro
|
|
|
67
67
|
export { PdfPageSize, PdfStandardFont, PdfRgbColor, PdfDrawTextOptions, PdfDrawRectOptions, PdfDrawLineOptions, PdfDrawCircleOptions, PdfDrawImageOptions, PdfEmbeddedImage, PdfEmbeddedFont, IPdfPage, IPdfDocument, PdfManager, } from "./pdf";
|
|
68
68
|
export { PdfError, PdfParseError, PdfWriteError, isPdfError, isPdfErrorType } from "./pdf-errors";
|
|
69
69
|
export { JobStatusValue, RunInBackgroundOptions, RunInBackgroundParams, JobErrorDetails, JobStatus, JobListParams, JobListResult } from "./job";
|
|
70
|
-
export { JobError, JobNotFoundError, InvalidFunctionError,
|
|
70
|
+
export { JobError, JobNotFoundError, InvalidFunctionError, EltJobExecutionError, isJobError, isJobErrorType, } from "./job-errors";
|
|
71
71
|
export { MessagePriorityLevel, MessageChannelConfig, SendMessageParams, SendBulkMessageParams, SendGroupMessageParams, SendMessageResult, SendBulkMessageResult, MessagesManager, } from "./messages";
|
|
72
72
|
export { MessageError, MessageValidationError, GroupNotFoundError, TenantGrantPermissionDeniedError, isMessageError, isMessageErrorType, } from "./messages-errors";
|
|
73
73
|
export { DocumentDbListOptions, DocumentDbListResult, DocumentDbPutOptions, DocumentDbQueryOptions, IDocumentDbConnection, } from "./documentdb";
|
|
74
74
|
export { DocumentDbError, DocumentDbNotFoundError, DocumentDbAccessDeniedError, DocumentDbPermissionDeniedError, DocumentDbValidationError, DocumentDbOperationError, isDocumentDbError, isDocumentDbErrorType, } from "./documentdb-errors";
|
|
75
75
|
export { TenantUserInfo } from "./users";
|
|
76
76
|
export { UsersError, UsersPermissionDeniedError, isUsersError, isUsersErrorType } from "./users-errors";
|
|
77
|
+
export { ApplicationInvokeResult, IApplicationConnection } from "./applications";
|
|
78
|
+
export { ApplicationsError, ApplicationNotFoundError, ApplicationNotDeployedError, ApplicationPermissionDeniedError, ApplicationInvocationError, ApplicationTimeoutError, isApplicationsError, isApplicationsErrorType, } from "./applications-errors";
|
|
77
79
|
export { PutContent, FileContent, FileMetadata, FileInfo, PutOptions, PutResult, DeleteResult, DeleteError, DeleteByPrefixResult, ListOptions, ListResult, CopyOptions, CopyResult, MoveOptions, MoveResult, DownloadUrlOptions, UploadUrlOptions, PresignedUrl, IVolume, } from "./volumes";
|
|
78
80
|
export { VolumePermissionValue, VolumeError, VolumeNotFoundError, VolumeAccessDeniedError, VolumePermissionDeniedError, FileNotFoundError, FileAlreadyExistsError, InvalidPathError, FileSizeLimitError, ContentTypeNotAllowedError, isVolumeError, isVolumeErrorType, } from "./errors";
|
|
79
81
|
import type { TenantContext, ApplicationContext, RequestorContext, RuntimeContext, EnvironmentVariables } from "./context";
|
|
@@ -87,6 +89,7 @@ import type { RunInBackgroundParams, JobStatus, JobListParams, JobListResult } f
|
|
|
87
89
|
import type { SendMessageParams, SendBulkMessageParams, SendGroupMessageParams, SendMessageResult, SendBulkMessageResult } from "./messages";
|
|
88
90
|
import type { IDocumentDbConnection } from "./documentdb";
|
|
89
91
|
import type { TenantUserInfo } from "./users";
|
|
92
|
+
import type { IApplicationConnection } from "./applications";
|
|
90
93
|
/**
|
|
91
94
|
* Base class for all Volume errors
|
|
92
95
|
*/
|
|
@@ -178,6 +181,17 @@ export interface UsersErrorClass extends Error {
|
|
|
178
181
|
toJSON(): Record<string, unknown>;
|
|
179
182
|
}
|
|
180
183
|
export type UsersErrorConstructor = new (...args: any[]) => UsersErrorClass;
|
|
184
|
+
/**
|
|
185
|
+
* Base class for all Applications errors
|
|
186
|
+
*/
|
|
187
|
+
export interface ApplicationsErrorClass extends Error {
|
|
188
|
+
readonly applicationCode: string;
|
|
189
|
+
readonly operation: string;
|
|
190
|
+
readonly timestamp: Date;
|
|
191
|
+
toJSON(): Record<string, unknown>;
|
|
192
|
+
}
|
|
193
|
+
export type AbstractApplicationsErrorConstructor = abstract new (...args: any[]) => ApplicationsErrorClass;
|
|
194
|
+
export type ApplicationsErrorConstructor = new (...args: any[]) => ApplicationsErrorClass;
|
|
181
195
|
/**
|
|
182
196
|
* Volume Module
|
|
183
197
|
*
|
|
@@ -348,7 +362,6 @@ export interface JobGroupedModule {
|
|
|
348
362
|
Error: AbstractJobErrorConstructor;
|
|
349
363
|
NotFoundError: JobErrorConstructor;
|
|
350
364
|
InvalidFunctionError: JobErrorConstructor;
|
|
351
|
-
CrossAppPermissionError: JobErrorConstructor;
|
|
352
365
|
ExecutionError: JobErrorConstructor;
|
|
353
366
|
isError: (error: unknown) => error is JobErrorClass;
|
|
354
367
|
isErrorType: <T extends JobErrorClass>(error: unknown, errorClass: new (...args: never[]) => T) => error is T;
|
|
@@ -448,6 +461,47 @@ export interface UsersModule {
|
|
|
448
461
|
/** Type guard to check if error is a specific UsersError type */
|
|
449
462
|
isErrorType: <T extends UsersErrorClass>(error: unknown, errorClass: new (...args: any[]) => T) => error is T;
|
|
450
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Applications Module (Grouped)
|
|
466
|
+
*
|
|
467
|
+
* Groups cross-app function invocation operations, error classes, and type guards
|
|
468
|
+
* under a single namespace.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```typescript
|
|
472
|
+
* try {
|
|
473
|
+
* const appb = await ketrics.Applications.connect('appb');
|
|
474
|
+
* const result = await appb.invoke('calculateTotal', { items: [...] });
|
|
475
|
+
* console.log(result.success, result.result, result.executionTime);
|
|
476
|
+
* } catch (error) {
|
|
477
|
+
* if (error instanceof ketrics.Applications.NotFoundError) {
|
|
478
|
+
* console.log('Application not found');
|
|
479
|
+
* } else if (error instanceof ketrics.Applications.PermissionDeniedError) {
|
|
480
|
+
* console.log('No permission to invoke');
|
|
481
|
+
* }
|
|
482
|
+
* }
|
|
483
|
+
* ```
|
|
484
|
+
*/
|
|
485
|
+
export interface ApplicationsModule {
|
|
486
|
+
/** Connect to another application by code (eagerly validates) */
|
|
487
|
+
connect(applicationCode: string): Promise<IApplicationConnection>;
|
|
488
|
+
/** Base error class for all Applications errors (abstract) */
|
|
489
|
+
Error: AbstractApplicationsErrorConstructor;
|
|
490
|
+
/** Error thrown when target application doesn't exist */
|
|
491
|
+
NotFoundError: ApplicationsErrorConstructor;
|
|
492
|
+
/** Error thrown when target application is not deployed or inactive */
|
|
493
|
+
NotDeployedError: ApplicationsErrorConstructor;
|
|
494
|
+
/** Error thrown when requestor lacks permission for target application */
|
|
495
|
+
PermissionDeniedError: ApplicationsErrorConstructor;
|
|
496
|
+
/** Error thrown when the invoked function fails */
|
|
497
|
+
InvocationError: ApplicationsErrorConstructor;
|
|
498
|
+
/** Error thrown when cross-app invocation times out */
|
|
499
|
+
TimeoutError: ApplicationsErrorConstructor;
|
|
500
|
+
/** Type guard to check if error is an ApplicationsError */
|
|
501
|
+
isError: (error: unknown) => error is ApplicationsErrorClass;
|
|
502
|
+
/** Type guard to check if error is a specific ApplicationsError type */
|
|
503
|
+
isErrorType: <T extends ApplicationsErrorClass>(error: unknown, errorClass: new (...args: any[]) => T) => error is T;
|
|
504
|
+
}
|
|
451
505
|
/**
|
|
452
506
|
* Ketrics Platform SDK Interface
|
|
453
507
|
*
|
|
@@ -526,6 +580,8 @@ export interface KetricsSdkV1 {
|
|
|
526
580
|
DocumentDb: DocumentDbModule;
|
|
527
581
|
/** Users SDK - Tenant user listing */
|
|
528
582
|
Users: UsersModule;
|
|
583
|
+
/** Applications SDK - Cross-app function invocation */
|
|
584
|
+
Applications: ApplicationsModule;
|
|
529
585
|
}
|
|
530
586
|
/**
|
|
531
587
|
* Volume - S3-backed storage for tenant applications
|
|
@@ -840,8 +896,6 @@ export declare class Pdf {
|
|
|
840
896
|
* console.log('Job not found');
|
|
841
897
|
* } else if (error instanceof ketrics.Job.InvalidFunctionError) {
|
|
842
898
|
* console.log('Invalid function name');
|
|
843
|
-
* } else if (error instanceof ketrics.Job.CrossAppPermissionError) {
|
|
844
|
-
* console.log('Cross-app permission denied');
|
|
845
899
|
* }
|
|
846
900
|
* }
|
|
847
901
|
* }
|
|
@@ -855,7 +909,6 @@ export declare class Job {
|
|
|
855
909
|
* @param params - Job parameters including function name and optional payload
|
|
856
910
|
* @returns Job ID (UUID) that can be used to check status
|
|
857
911
|
* @throws InvalidFunctionError if function name is invalid
|
|
858
|
-
* @throws CrossAppPermissionError if cross-app job lacks permission
|
|
859
912
|
*/
|
|
860
913
|
static runInBackground(params: RunInBackgroundParams): Promise<string>;
|
|
861
914
|
/**
|
|
@@ -974,6 +1027,57 @@ export declare class Users {
|
|
|
974
1027
|
*/
|
|
975
1028
|
static list(): Promise<TenantUserInfo[]>;
|
|
976
1029
|
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Applications - Cross-app function invocation for tenant applications
|
|
1032
|
+
*
|
|
1033
|
+
* Access via `ketrics.Applications.connect()` to obtain a connection handle,
|
|
1034
|
+
* then invoke functions on the connected application.
|
|
1035
|
+
*
|
|
1036
|
+
* @example
|
|
1037
|
+
* ```typescript
|
|
1038
|
+
* export async function handler() {
|
|
1039
|
+
* try {
|
|
1040
|
+
* // Connect to another application (eagerly validates)
|
|
1041
|
+
* const appb = await ketrics.Applications.connect('appb');
|
|
1042
|
+
*
|
|
1043
|
+
* // Invoke a function on the connected application
|
|
1044
|
+
* const result = await appb.invoke('calculateTotal', { items: [...] });
|
|
1045
|
+
* console.log(result.success); // true
|
|
1046
|
+
* console.log(result.result); // function return value
|
|
1047
|
+
* console.log(result.executionTime); // execution time in ms
|
|
1048
|
+
*
|
|
1049
|
+
* } catch (error) {
|
|
1050
|
+
* if (error instanceof ketrics.Applications.NotFoundError) {
|
|
1051
|
+
* console.log('Application not found');
|
|
1052
|
+
* } else if (error instanceof ketrics.Applications.NotDeployedError) {
|
|
1053
|
+
* console.log('Application not deployed');
|
|
1054
|
+
* } else if (error instanceof ketrics.Applications.PermissionDeniedError) {
|
|
1055
|
+
* console.log('No permission to invoke');
|
|
1056
|
+
* } else if (error instanceof ketrics.Applications.InvocationError) {
|
|
1057
|
+
* console.log('Function execution failed');
|
|
1058
|
+
* } else if (error instanceof ketrics.Applications.TimeoutError) {
|
|
1059
|
+
* console.log('Function timed out');
|
|
1060
|
+
* }
|
|
1061
|
+
* }
|
|
1062
|
+
* }
|
|
1063
|
+
* ```
|
|
1064
|
+
*/
|
|
1065
|
+
export declare class Applications {
|
|
1066
|
+
private constructor();
|
|
1067
|
+
/**
|
|
1068
|
+
* Connect to another application by code
|
|
1069
|
+
*
|
|
1070
|
+
* Eagerly validates that the target application exists, is active and deployed,
|
|
1071
|
+
* and that the current requestor has permission via app_domain roles.
|
|
1072
|
+
*
|
|
1073
|
+
* @param applicationCode - Target application code (e.g., "inventory", "billing")
|
|
1074
|
+
* @returns Connected application handle with invoke() method
|
|
1075
|
+
* @throws ApplicationNotFoundError if application doesn't exist
|
|
1076
|
+
* @throws ApplicationNotDeployedError if application is not active/deployed
|
|
1077
|
+
* @throws ApplicationPermissionDeniedError if requestor lacks permission
|
|
1078
|
+
*/
|
|
1079
|
+
static connect(applicationCode: string): Promise<IApplicationConnection>;
|
|
1080
|
+
}
|
|
977
1081
|
/**
|
|
978
1082
|
* Global declaration for the Ketrics VM sandbox.
|
|
979
1083
|
*
|
|
@@ -989,6 +1093,7 @@ export declare class Users {
|
|
|
989
1093
|
* - Messages: Application messaging (send, sendBulk, sendToGroup, errors, type guards)
|
|
990
1094
|
* - DocumentDb: DynamoDB-backed document storage (connect, put, get, delete, list, query, errors, type guards)
|
|
991
1095
|
* - Users: Tenant user listing (list, errors, type guards)
|
|
1096
|
+
* - Applications: Cross-app function invocation (connect, invoke, errors, type guards)
|
|
992
1097
|
*/
|
|
993
1098
|
declare global {
|
|
994
1099
|
/** Ketrics SDK global object - available in all tenant application code */
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAE;QACV,yCAAyC;QACzC,UAAU,IAAI,MAAM,CAAC;KACtB,CAAC;CACH"}
|
package/dist/index.js
CHANGED
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
59
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
|
-
exports.
|
|
61
|
-
exports.isVolumeErrorType = exports.isVolumeError = exports.ContentTypeNotAllowedError = exports.FileSizeLimitError = exports.InvalidPathError = exports.FileAlreadyExistsError = exports.FileNotFoundError = exports.VolumePermissionDeniedError = exports.VolumeAccessDeniedError = exports.VolumeNotFoundError = void 0;
|
|
60
|
+
exports.ApplicationNotFoundError = exports.ApplicationsError = exports.isUsersErrorType = exports.isUsersError = exports.UsersPermissionDeniedError = exports.UsersError = exports.isDocumentDbErrorType = exports.isDocumentDbError = exports.DocumentDbOperationError = exports.DocumentDbValidationError = exports.DocumentDbPermissionDeniedError = exports.DocumentDbAccessDeniedError = exports.DocumentDbNotFoundError = exports.DocumentDbError = exports.isMessageErrorType = exports.isMessageError = exports.TenantGrantPermissionDeniedError = exports.GroupNotFoundError = exports.MessageValidationError = exports.MessageError = exports.isJobErrorType = exports.isJobError = exports.EltJobExecutionError = exports.InvalidFunctionError = exports.JobNotFoundError = exports.JobError = exports.isPdfErrorType = exports.isPdfError = exports.PdfWriteError = exports.PdfParseError = exports.PdfError = exports.isExcelErrorType = exports.isExcelError = exports.ExcelWriteError = exports.ExcelParseError = exports.ExcelError = exports.isSecretErrorType = exports.isSecretError = exports.SecretDecryptionError = exports.SecretAccessDeniedError = exports.SecretNotFoundError = exports.SecretError = exports.isDatabaseErrorType = exports.isDatabaseError = exports.DatabaseTransactionError = exports.DatabaseQueryError = exports.DatabaseConnectionError = exports.DatabaseAccessDeniedError = exports.DatabaseNotFoundError = exports.DatabaseError = void 0;
|
|
61
|
+
exports.isVolumeErrorType = exports.isVolumeError = exports.ContentTypeNotAllowedError = exports.FileSizeLimitError = exports.InvalidPathError = exports.FileAlreadyExistsError = exports.FileNotFoundError = exports.VolumePermissionDeniedError = exports.VolumeAccessDeniedError = exports.VolumeNotFoundError = exports.VolumeError = exports.isApplicationsErrorType = exports.isApplicationsError = exports.ApplicationTimeoutError = exports.ApplicationInvocationError = exports.ApplicationPermissionDeniedError = exports.ApplicationNotDeployedError = void 0;
|
|
62
62
|
// ============================================================================
|
|
63
63
|
// Database Error Exports
|
|
64
64
|
// ============================================================================
|
|
@@ -106,7 +106,6 @@ var job_errors_1 = require("./job-errors");
|
|
|
106
106
|
Object.defineProperty(exports, "JobError", { enumerable: true, get: function () { return job_errors_1.JobError; } });
|
|
107
107
|
Object.defineProperty(exports, "JobNotFoundError", { enumerable: true, get: function () { return job_errors_1.JobNotFoundError; } });
|
|
108
108
|
Object.defineProperty(exports, "InvalidFunctionError", { enumerable: true, get: function () { return job_errors_1.InvalidFunctionError; } });
|
|
109
|
-
Object.defineProperty(exports, "CrossAppPermissionError", { enumerable: true, get: function () { return job_errors_1.CrossAppPermissionError; } });
|
|
110
109
|
Object.defineProperty(exports, "EltJobExecutionError", { enumerable: true, get: function () { return job_errors_1.EltJobExecutionError; } });
|
|
111
110
|
Object.defineProperty(exports, "isJobError", { enumerable: true, get: function () { return job_errors_1.isJobError; } });
|
|
112
111
|
Object.defineProperty(exports, "isJobErrorType", { enumerable: true, get: function () { return job_errors_1.isJobErrorType; } });
|
|
@@ -141,6 +140,18 @@ Object.defineProperty(exports, "UsersPermissionDeniedError", { enumerable: true,
|
|
|
141
140
|
Object.defineProperty(exports, "isUsersError", { enumerable: true, get: function () { return users_errors_1.isUsersError; } });
|
|
142
141
|
Object.defineProperty(exports, "isUsersErrorType", { enumerable: true, get: function () { return users_errors_1.isUsersErrorType; } });
|
|
143
142
|
// ============================================================================
|
|
143
|
+
// Applications Error Exports
|
|
144
|
+
// ============================================================================
|
|
145
|
+
var applications_errors_1 = require("./applications-errors");
|
|
146
|
+
Object.defineProperty(exports, "ApplicationsError", { enumerable: true, get: function () { return applications_errors_1.ApplicationsError; } });
|
|
147
|
+
Object.defineProperty(exports, "ApplicationNotFoundError", { enumerable: true, get: function () { return applications_errors_1.ApplicationNotFoundError; } });
|
|
148
|
+
Object.defineProperty(exports, "ApplicationNotDeployedError", { enumerable: true, get: function () { return applications_errors_1.ApplicationNotDeployedError; } });
|
|
149
|
+
Object.defineProperty(exports, "ApplicationPermissionDeniedError", { enumerable: true, get: function () { return applications_errors_1.ApplicationPermissionDeniedError; } });
|
|
150
|
+
Object.defineProperty(exports, "ApplicationInvocationError", { enumerable: true, get: function () { return applications_errors_1.ApplicationInvocationError; } });
|
|
151
|
+
Object.defineProperty(exports, "ApplicationTimeoutError", { enumerable: true, get: function () { return applications_errors_1.ApplicationTimeoutError; } });
|
|
152
|
+
Object.defineProperty(exports, "isApplicationsError", { enumerable: true, get: function () { return applications_errors_1.isApplicationsError; } });
|
|
153
|
+
Object.defineProperty(exports, "isApplicationsErrorType", { enumerable: true, get: function () { return applications_errors_1.isApplicationsErrorType; } });
|
|
154
|
+
// ============================================================================
|
|
144
155
|
// Volume Error Exports
|
|
145
156
|
// ============================================================================
|
|
146
157
|
var errors_1 = require("./errors");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;;;;AA0BH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,qDAS2B;AARzB,gHAAA,aAAa,OAAA;AACb,wHAAA,qBAAqB,OAAA;AACrB,4HAAA,yBAAyB,OAAA;AACzB,0HAAA,uBAAuB,OAAA;AACvB,qHAAA,kBAAkB,OAAA;AAClB,2HAAA,wBAAwB,OAAA;AACxB,kHAAA,eAAe,OAAA;AACf,sHAAA,mBAAmB,OAAA;AASrB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE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AE,0HAAA,0BAA0B,OAAA;AAAE,4GAAA,YAAY,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAQ/E,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,6DAS+B;AAR7B,wHAAA,iBAAiB,OAAA;AACjB,+HAAA,wBAAwB,OAAA;AACxB,kIAAA,2BAA2B,OAAA;AAC3B,uIAAA,gCAAgC,OAAA;AAChC,iIAAA,0BAA0B,OAAA;AAC1B,8HAAA,uBAAuB,OAAA;AACvB,0HAAA,mBAAmB,OAAA;AACnB,8HAAA,uBAAuB,OAAA;AAqCzB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E,mCAgBkB;AAbhB,gBAAgB;AAChB,qGAAA,WAAW,OAAA;AACX,6GAAA,mBAAmB,OAAA;AACnB,iHAAA,uBAAuB,OAAA;AACvB,qHAAA,2BAA2B,OAAA;AAC3B,2GAAA,iBAAiB,OAAA;AACjB,gHAAA,sBAAsB,OAAA;AACtB,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,oHAAA,0BAA0B,OAAA;AAC1B,cAAc;AACd,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA"}
|
package/dist/job-errors.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* - JobError (base)
|
|
8
8
|
* - JobNotFoundError
|
|
9
9
|
* - InvalidFunctionError
|
|
10
|
-
* - CrossAppPermissionError
|
|
11
10
|
* - EltJobExecutionError
|
|
12
11
|
*/
|
|
13
12
|
/**
|
|
@@ -68,34 +67,6 @@ export declare class InvalidFunctionError extends JobError {
|
|
|
68
67
|
constructor(functionName: string);
|
|
69
68
|
toJSON(): Record<string, unknown>;
|
|
70
69
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Error thrown when cross-app job lacks required permission
|
|
73
|
-
*
|
|
74
|
-
* This error occurs when attempting to create a job in another application
|
|
75
|
-
* without a valid application grant that includes background job permission.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* try {
|
|
80
|
-
* await ketrics.Job.runInBackground({
|
|
81
|
-
* application: 'other-app',
|
|
82
|
-
* function: 'processData',
|
|
83
|
-
* });
|
|
84
|
-
* } catch (error) {
|
|
85
|
-
* if (error instanceof ketrics.Job.CrossAppPermissionError) {
|
|
86
|
-
* console.log(`Cannot create job from '${error.sourceApp}' to '${error.targetApp}'`);
|
|
87
|
-
* }
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
export declare class CrossAppPermissionError extends JobError {
|
|
92
|
-
/** Source application code (where the job was created from) */
|
|
93
|
-
readonly sourceApp: string;
|
|
94
|
-
/** Target application code (where the job would run) */
|
|
95
|
-
readonly targetApp: string;
|
|
96
|
-
constructor(sourceApp: string, targetApp: string);
|
|
97
|
-
toJSON(): Record<string, unknown>;
|
|
98
|
-
}
|
|
99
70
|
/**
|
|
100
71
|
* Error thrown when job execution fails
|
|
101
72
|
*
|
|
@@ -147,8 +118,6 @@ export declare function isJobError(error: unknown): error is JobError;
|
|
|
147
118
|
* } catch (error) {
|
|
148
119
|
* if (isJobErrorType(error, JobNotFoundError)) {
|
|
149
120
|
* console.log('Job not found');
|
|
150
|
-
* } else if (isJobErrorType(error, CrossAppPermissionError)) {
|
|
151
|
-
* console.log('Permission denied');
|
|
152
121
|
* }
|
|
153
122
|
* }
|
|
154
123
|
* ```
|
package/dist/job-errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-errors.d.ts","sourceRoot":"","sources":["../src/job-errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"job-errors.d.ts","sourceRoot":"","sources":["../src/job-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH;;;;;;;GAOG;AACH,8BAAsB,QAAS,SAAQ,KAAK;IAC1C,mDAAmD;IACnD,QAAQ,CAAC,KAAK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9
9
|
* - JobNotFoundError
|
|
10
10
|
* - InvalidFunctionError
|
|
11
|
-
* - CrossAppPermissionError
|
|
12
11
|
* - EltJobExecutionError
|
|
13
12
|
*/
|
|
14
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.EltJobExecutionError = exports.
|
|
14
|
+
exports.EltJobExecutionError = exports.InvalidFunctionError = exports.JobNotFoundError = exports.JobError = void 0;
|
|
16
15
|
exports.isJobError = isJobError;
|
|
17
16
|
exports.isJobErrorType = isJobErrorType;
|
|
18
17
|
// ============================================================================
|
|
@@ -102,41 +101,6 @@ class InvalidFunctionError extends JobError {
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
exports.InvalidFunctionError = InvalidFunctionError;
|
|
105
|
-
/**
|
|
106
|
-
* Error thrown when cross-app job lacks required permission
|
|
107
|
-
*
|
|
108
|
-
* This error occurs when attempting to create a job in another application
|
|
109
|
-
* without a valid application grant that includes background job permission.
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* try {
|
|
114
|
-
* await ketrics.Job.runInBackground({
|
|
115
|
-
* application: 'other-app',
|
|
116
|
-
* function: 'processData',
|
|
117
|
-
* });
|
|
118
|
-
* } catch (error) {
|
|
119
|
-
* if (error instanceof ketrics.Job.CrossAppPermissionError) {
|
|
120
|
-
* console.log(`Cannot create job from '${error.sourceApp}' to '${error.targetApp}'`);
|
|
121
|
-
* }
|
|
122
|
-
* }
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
class CrossAppPermissionError extends JobError {
|
|
126
|
-
constructor(sourceApp, targetApp) {
|
|
127
|
-
super(`Cross-app job permission denied. Application '${sourceApp}' does not have background job permission for '${targetApp}'.`, "runInBackground");
|
|
128
|
-
this.sourceApp = sourceApp;
|
|
129
|
-
this.targetApp = targetApp;
|
|
130
|
-
}
|
|
131
|
-
toJSON() {
|
|
132
|
-
return {
|
|
133
|
-
...super.toJSON(),
|
|
134
|
-
sourceApp: this.sourceApp,
|
|
135
|
-
targetApp: this.targetApp,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
exports.CrossAppPermissionError = CrossAppPermissionError;
|
|
140
104
|
/**
|
|
141
105
|
* Error thrown when job execution fails
|
|
142
106
|
*
|
|
@@ -200,8 +164,6 @@ function isJobError(error) {
|
|
|
200
164
|
* } catch (error) {
|
|
201
165
|
* if (isJobErrorType(error, JobNotFoundError)) {
|
|
202
166
|
* console.log('Job not found');
|
|
203
|
-
* } else if (isJobErrorType(error, CrossAppPermissionError)) {
|
|
204
|
-
* console.log('Permission denied');
|
|
205
167
|
* }
|
|
206
168
|
* }
|
|
207
169
|
* ```
|
package/dist/job-errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-errors.js","sourceRoot":"","sources":["../src/job-errors.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"job-errors.js","sourceRoot":"","sources":["../src/job-errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AA6JH,gCAEC;AAoBD,wCAEC;AAnLD,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAsB,QAAS,SAAQ,KAAK;IAU1C,YAAY,OAAe,EAAE,SAAiB,EAAE,KAAc;QAC5D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAE5B,0DAA0D;QAC1D,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAClD,CA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AfD,oDAeC;AAED,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,UAAU,CAAC,KAAc;IACvC,OAAO,KAAK,YAAY,QAAQ,CAAC;AACnC,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,cAAc,CAAqB,KAAc,EAAE,UAAuC;IACxG,OAAO,KAAK,YAAY,UAAU,CAAC;AACrC,CAAC"}
|
package/dist/job.d.ts
CHANGED
|
@@ -53,18 +53,14 @@ export interface RunInBackgroundOptions {
|
|
|
53
53
|
* Parameters for Job.runInBackground()
|
|
54
54
|
*/
|
|
55
55
|
export interface RunInBackgroundParams {
|
|
56
|
-
/**
|
|
57
|
-
* Target application code (optional)
|
|
58
|
-
*
|
|
59
|
-
* If specified, creates a cross-app job that executes in another application.
|
|
60
|
-
* Requires a valid application grant with background job permission.
|
|
61
|
-
* If omitted, the job executes in the current application.
|
|
62
|
-
*/
|
|
63
|
-
application?: string;
|
|
64
56
|
/**
|
|
65
57
|
* Function name to execute
|
|
66
58
|
*
|
|
67
|
-
* Must be an exported function in the
|
|
59
|
+
* Must be an exported function in the current application.
|
|
60
|
+
*
|
|
61
|
+
* Functions prefixed with `_` (e.g., `_processData`) are "internal" —
|
|
62
|
+
* they can only be invoked by background jobs, not via the HTTP API.
|
|
63
|
+
* This allows you to create job-only logic that is not exposed as an API endpoint.
|
|
68
64
|
*/
|
|
69
65
|
function: string;
|
|
70
66
|
/**
|
package/dist/job.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../src/job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAMH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAM5E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;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