@devrev/airsync-sdk 2.0.0-beta.4 → 2.0.0-beta.6
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/MIGRATION.md +1028 -0
- package/dist/attachments-streaming/attachments-streaming-pool.d.ts +6 -0
- package/dist/attachments-streaming/attachments-streaming-pool.d.ts.map +1 -1
- package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts +2 -2
- package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts.map +1 -1
- package/dist/attachments-streaming/attachments-streaming-pool.js +47 -21
- package/dist/common/constants.d.ts +3 -5
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +4 -6
- package/dist/common/helpers.d.ts +3 -21
- package/dist/common/helpers.d.ts.map +1 -1
- package/dist/common/helpers.js +6 -15
- package/dist/http/client.d.ts.map +1 -1
- package/dist/http/client.js +4 -8
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -18
- package/dist/logger/logger.d.ts +8 -63
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.interfaces.d.ts +0 -1
- package/dist/logger/logger.interfaces.d.ts.map +1 -1
- package/dist/logger/logger.js +14 -93
- package/dist/mappers/mappers.d.ts +2 -40
- package/dist/mappers/mappers.d.ts.map +1 -1
- package/dist/mappers/mappers.interfaces.d.ts +35 -154
- package/dist/mappers/mappers.interfaces.d.ts.map +1 -1
- package/dist/mappers/mappers.interfaces.js +1 -10
- package/dist/mappers/mappers.js +2 -40
- package/dist/multithreading/adapters/base-adapter.d.ts +19 -36
- package/dist/multithreading/adapters/base-adapter.d.ts.map +1 -1
- package/dist/multithreading/adapters/base-adapter.js +73 -71
- package/dist/multithreading/adapters/extraction-adapter.d.ts +12 -24
- package/dist/multithreading/adapters/extraction-adapter.d.ts.map +1 -1
- package/dist/multithreading/adapters/extraction-adapter.js +199 -200
- package/dist/multithreading/adapters/loading-adapter.d.ts +1 -6
- package/dist/multithreading/adapters/loading-adapter.d.ts.map +1 -1
- package/dist/multithreading/adapters/loading-adapter.helpers.d.ts +2 -12
- package/dist/multithreading/adapters/loading-adapter.helpers.d.ts.map +1 -1
- package/dist/multithreading/adapters/loading-adapter.helpers.js +2 -12
- package/dist/multithreading/adapters/loading-adapter.js +292 -314
- package/dist/multithreading/emit.d.ts +3 -2
- package/dist/multithreading/emit.d.ts.map +1 -1
- package/dist/multithreading/emit.js +3 -5
- package/dist/multithreading/process-task.d.ts +2 -12
- package/dist/multithreading/process-task.d.ts.map +1 -1
- package/dist/multithreading/process-task.js +45 -59
- package/dist/multithreading/spawn/spawn.d.ts +3 -9
- package/dist/multithreading/spawn/spawn.d.ts.map +1 -1
- package/dist/multithreading/spawn/spawn.helpers.d.ts +6 -25
- package/dist/multithreading/spawn/spawn.helpers.d.ts.map +1 -1
- package/dist/multithreading/spawn/spawn.helpers.js +7 -49
- package/dist/multithreading/spawn/spawn.js +18 -33
- package/dist/multithreading/worker.js +2 -4
- package/dist/repo/repo.d.ts +10 -0
- package/dist/repo/repo.d.ts.map +1 -1
- package/dist/repo/repo.helpers.d.ts +6 -0
- package/dist/repo/repo.helpers.d.ts.map +1 -0
- package/dist/repo/repo.helpers.js +16 -0
- package/dist/repo/repo.interfaces.d.ts +4 -16
- package/dist/repo/repo.interfaces.d.ts.map +1 -1
- package/dist/repo/repo.js +23 -8
- package/dist/state/base-state.d.ts +14 -36
- package/dist/state/base-state.d.ts.map +1 -1
- package/dist/state/base-state.js +16 -38
- package/dist/state/extraction-state.d.ts +4 -19
- package/dist/state/extraction-state.d.ts.map +1 -1
- package/dist/state/extraction-state.js +6 -23
- package/dist/state/install-initial-domain-mapping.d.ts +1 -1
- package/dist/state/install-initial-domain-mapping.d.ts.map +1 -1
- package/dist/state/install-initial-domain-mapping.js +1 -3
- package/dist/state/loading-state.d.ts +1 -11
- package/dist/state/loading-state.d.ts.map +1 -1
- package/dist/state/loading-state.js +2 -12
- package/dist/state/state.d.ts +2 -2
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.interfaces.d.ts +10 -24
- package/dist/state/state.interfaces.d.ts.map +1 -1
- package/dist/state/state.interfaces.js +9 -11
- package/dist/state/state.js +3 -3
- package/dist/state/time-value-resolver.d.ts +7 -36
- package/dist/state/time-value-resolver.d.ts.map +1 -1
- package/dist/state/time-value-resolver.js +7 -40
- package/dist/testing/mock-event.d.ts +2 -10
- package/dist/testing/mock-event.d.ts.map +1 -1
- package/dist/testing/mock-event.js +3 -11
- package/dist/testing/mock-server.d.ts +4 -27
- package/dist/testing/mock-server.d.ts.map +1 -1
- package/dist/testing/mock-server.interfaces.d.ts +10 -35
- package/dist/testing/mock-server.interfaces.d.ts.map +1 -1
- package/dist/testing/mock-server.js +19 -36
- package/dist/types/common.d.ts +1 -12
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +1 -6
- package/dist/types/external-domain-metadata.d.ts +30 -171
- package/dist/types/external-domain-metadata.d.ts.map +1 -1
- package/dist/types/extraction.d.ts +35 -120
- package/dist/types/extraction.d.ts.map +1 -1
- package/dist/types/extraction.js +5 -31
- package/dist/types/loading.d.ts.map +1 -1
- package/dist/types/workers.d.ts +18 -116
- package/dist/types/workers.d.ts.map +1 -1
- package/dist/types/workers.js +0 -6
- package/dist/uploader/uploader.d.ts +6 -58
- package/dist/uploader/uploader.d.ts.map +1 -1
- package/dist/uploader/uploader.helpers.d.ts +4 -27
- package/dist/uploader/uploader.helpers.d.ts.map +1 -1
- package/dist/uploader/uploader.helpers.js +64 -30
- package/dist/uploader/uploader.interfaces.d.ts +15 -25
- package/dist/uploader/uploader.interfaces.d.ts.map +1 -1
- package/dist/uploader/uploader.interfaces.js +8 -0
- package/dist/uploader/uploader.js +18 -84
- package/package.json +6 -4
package/dist/logger/logger.js
CHANGED
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Logger = exports.INSPECT_OPTIONS = exports.MAX_LOG_STRING_LENGTH = void 0;
|
|
4
4
|
exports.truncateMessage = truncateMessage;
|
|
5
|
-
exports.runWithUserLogContext = runWithUserLogContext;
|
|
6
|
-
exports.runWithSdkLogContext = runWithSdkLogContext;
|
|
7
|
-
exports.getSdkLogContextValue = getSdkLogContextValue;
|
|
8
5
|
exports.getPrintableState = getPrintableState;
|
|
9
6
|
exports.serializeError = serializeError;
|
|
10
7
|
exports.serializeAxiosError = serializeAxiosError;
|
|
11
|
-
const axios_1 = require("axios");
|
|
12
|
-
const node_async_hooks_1 = require("node:async_hooks");
|
|
13
8
|
const node_console_1 = require("node:console");
|
|
14
9
|
const node_util_1 = require("node:util");
|
|
15
10
|
const node_worker_threads_1 = require("node:worker_threads");
|
|
11
|
+
const axios_1 = require("axios");
|
|
16
12
|
const constants_1 = require("../common/constants");
|
|
17
13
|
const workers_1 = require("../types/workers");
|
|
18
14
|
const logger_interfaces_1 = require("./logger.interfaces");
|
|
@@ -27,102 +23,50 @@ exports.INSPECT_OPTIONS = {
|
|
|
27
23
|
maxArrayLength: MAX_LOG_ARRAY_LENGTH,
|
|
28
24
|
maxStringLength: exports.MAX_LOG_STRING_LENGTH,
|
|
29
25
|
};
|
|
30
|
-
/**
|
|
31
|
-
* Truncates a message that exceeds the maximum length, appending a suffix
|
|
32
|
-
* noting how many characters were omitted.
|
|
33
|
-
*/
|
|
34
26
|
function truncateMessage(message) {
|
|
35
27
|
if (message.length > exports.MAX_LOG_STRING_LENGTH) {
|
|
36
28
|
return `${message.substring(0, exports.MAX_LOG_STRING_LENGTH)}... ${message.length - exports.MAX_LOG_STRING_LENGTH} more characters`;
|
|
37
29
|
}
|
|
38
30
|
return message;
|
|
39
31
|
}
|
|
40
|
-
// ── SDK log context ──
|
|
41
32
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* without threading the flag through call signatures.
|
|
46
|
-
*/
|
|
47
|
-
const sdkLogContext = new node_async_hooks_1.AsyncLocalStorage();
|
|
48
|
-
/** Runs `fn` with logs marked as user-originated (`is_sdk_log: false`). */
|
|
49
|
-
function runWithUserLogContext(fn) {
|
|
50
|
-
return sdkLogContext.run(false, fn);
|
|
51
|
-
}
|
|
52
|
-
/** Runs `fn` with logs marked as SDK-originated (`is_sdk_log: true`). */
|
|
53
|
-
function runWithSdkLogContext(fn) {
|
|
54
|
-
return sdkLogContext.run(true, fn);
|
|
55
|
-
}
|
|
56
|
-
/** Returns the current context flag, or `defaultValue` if none is set. */
|
|
57
|
-
function getSdkLogContextValue(defaultValue) {
|
|
58
|
-
const storeValue = sdkLogContext.getStore();
|
|
59
|
-
if (typeof storeValue === 'boolean') {
|
|
60
|
-
return storeValue;
|
|
61
|
-
}
|
|
62
|
-
return defaultValue;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Custom logger that extends Node.js Console with context-aware logging.
|
|
66
|
-
* Handles local development, main thread, and worker thread logging differently.
|
|
33
|
+
* Console replacement that tags every log line with the event context. Worker
|
|
34
|
+
* threads forward log lines to the main thread, because the snap-in platform
|
|
35
|
+
* only captures logs written through the main thread's console.
|
|
67
36
|
*/
|
|
68
37
|
class Logger extends node_console_1.Console {
|
|
69
38
|
constructor({ event, options }) {
|
|
70
39
|
super(process.stdout, process.stderr);
|
|
71
40
|
this.originalConsole = console;
|
|
72
41
|
this.options = options;
|
|
73
|
-
this.tags = Object.assign(Object.assign({}, event.payload.event_context), { sdk_version: constants_1.LIBRARY_VERSION
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Converts any value to a string using `util.inspect()` for complex types.
|
|
77
|
-
*
|
|
78
|
-
* @param value - The value to convert
|
|
79
|
-
* @returns String representation of the value
|
|
80
|
-
*/
|
|
42
|
+
this.tags = Object.assign(Object.assign({}, event.payload.event_context), { sdk_version: constants_1.LIBRARY_VERSION });
|
|
43
|
+
}
|
|
81
44
|
valueToString(value) {
|
|
82
45
|
if (typeof value === 'string') {
|
|
83
46
|
return value;
|
|
84
47
|
}
|
|
85
48
|
return (0, node_util_1.inspect)(value, exports.INSPECT_OPTIONS);
|
|
86
49
|
}
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
* In production mode, wraps the message with JSON formatting and event context tags.
|
|
90
|
-
* In local development mode, logs the message directly without JSON wrapping.
|
|
91
|
-
* This is useful when you need to log already-stringified content.
|
|
92
|
-
*
|
|
93
|
-
* @param message - The pre-formatted message string to log
|
|
94
|
-
* @param level - Log level (info, warn, error)
|
|
95
|
-
* @param isSdkLog - Flag indicating if the log originated from the SDK
|
|
96
|
-
*/
|
|
97
|
-
logFn(message, level, isSdkLog = getSdkLogContextValue(true)) {
|
|
50
|
+
/** In production wraps the message in JSON with event context tags; in local development logs as-is. */
|
|
51
|
+
logFn(message, level) {
|
|
98
52
|
var _a;
|
|
99
53
|
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.isLocalDevelopment) {
|
|
100
54
|
this.originalConsole[level](message);
|
|
101
55
|
return;
|
|
102
56
|
}
|
|
103
|
-
const logObject = Object.assign(
|
|
57
|
+
const logObject = Object.assign({ message }, this.tags);
|
|
104
58
|
this.originalConsole[level](JSON.stringify(logObject));
|
|
105
59
|
}
|
|
106
|
-
/**
|
|
107
|
-
* Stringifies and logs arguments to the appropriate destination.
|
|
108
|
-
* On main thread, converts arguments to strings and calls logFn.
|
|
109
|
-
* In worker threads, forwards stringified arguments to the main thread for processing.
|
|
110
|
-
* All arguments are converted to strings using util.inspect and joined with spaces.
|
|
111
|
-
*
|
|
112
|
-
* @param args - Values to log (will be stringified and truncated if needed)
|
|
113
|
-
* @param level - Log level (info, warn, error)
|
|
114
|
-
*/
|
|
115
60
|
stringifyAndLog(args, level) {
|
|
116
61
|
let stringifiedArgs = args.map((arg) => this.valueToString(arg)).join(' ');
|
|
117
62
|
stringifiedArgs = truncateMessage(stringifiedArgs);
|
|
118
|
-
const isSdkLog = getSdkLogContextValue(true);
|
|
119
63
|
if (node_worker_threads_1.isMainThread) {
|
|
120
|
-
this.logFn(stringifiedArgs, level
|
|
64
|
+
this.logFn(stringifiedArgs, level);
|
|
121
65
|
}
|
|
122
66
|
else {
|
|
123
67
|
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.postMessage({
|
|
124
68
|
subject: workers_1.WorkerMessageSubject.WorkerMessageLog,
|
|
125
|
-
payload: { stringifiedArgs, level
|
|
69
|
+
payload: { stringifiedArgs, level },
|
|
126
70
|
});
|
|
127
71
|
}
|
|
128
72
|
}
|
|
@@ -140,14 +84,7 @@ class Logger extends node_console_1.Console {
|
|
|
140
84
|
}
|
|
141
85
|
}
|
|
142
86
|
exports.Logger = Logger;
|
|
143
|
-
/**
|
|
144
|
-
* Converts a state object into a printable format where arrays are summarized.
|
|
145
|
-
* Arrays show their length, first item, and last item instead of all elements.
|
|
146
|
-
* Objects are recursively processed and primitives are returned as-is.
|
|
147
|
-
*
|
|
148
|
-
* @param state - State object to convert
|
|
149
|
-
* @returns Printable representation with summarized arrays
|
|
150
|
-
*/
|
|
87
|
+
/** Summarizes arrays as `{ length, firstItem, lastItem }` instead of listing all elements. */
|
|
151
88
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
152
89
|
function getPrintableState(state) {
|
|
153
90
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -171,21 +108,13 @@ function getPrintableState(state) {
|
|
|
171
108
|
}
|
|
172
109
|
return processValue(state);
|
|
173
110
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Serializes an error into a structured format.
|
|
176
|
-
* Automatically detects and formats Axios errors with HTTP details.
|
|
177
|
-
* Returns other error types as-is.
|
|
178
|
-
*
|
|
179
|
-
* @param error - Error to serialize
|
|
180
|
-
* @returns Serialized error or original if not an Axios error
|
|
181
|
-
*/
|
|
111
|
+
/** Serializes any error into a loggable string; Axios errors get HTTP details. */
|
|
182
112
|
function serializeError(error) {
|
|
183
113
|
if ((0, axios_1.isAxiosError)(error)) {
|
|
184
114
|
return JSON.stringify(serializeAxiosError(error));
|
|
185
115
|
}
|
|
186
116
|
if (error instanceof Error) {
|
|
187
|
-
// Include error name (e.g. TypeError
|
|
188
|
-
// for easier debugging
|
|
117
|
+
// Include non-default error name (e.g. TypeError) for easier debugging
|
|
189
118
|
return error.name !== 'Error'
|
|
190
119
|
? `${error.name}: ${error.message}`
|
|
191
120
|
: error.message;
|
|
@@ -216,14 +145,6 @@ function serializeError(error) {
|
|
|
216
145
|
}
|
|
217
146
|
return stringified;
|
|
218
147
|
}
|
|
219
|
-
/**
|
|
220
|
-
* Serializes an Axios error into a structured format with HTTP request/response details.
|
|
221
|
-
* Extracts method, URL, parameters, status code, headers, and data.
|
|
222
|
-
* Includes CORS/network failure indicator when no response is available.
|
|
223
|
-
*
|
|
224
|
-
* @param error - Axios error to serialize
|
|
225
|
-
* @returns Structured object with error details
|
|
226
|
-
*/
|
|
227
148
|
function serializeAxiosError(error) {
|
|
228
149
|
var _a, _b, _c;
|
|
229
150
|
const serializedAxiosError = {
|
|
@@ -1,51 +1,13 @@
|
|
|
1
1
|
import { MappersCreateParams, MappersCreateResponse, MappersFactoryInterface, MappersGetByExternalIdParams, MappersGetByExternalIdResponse, MappersGetByTargetIdParams, MappersGetByTargetIdResponse, MappersUpdateParams, MappersUpdateResponse } from './mappers.interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* Manages sync mapper records that link external system items to DevRev items.
|
|
4
|
-
*
|
|
5
|
-
* Used for tracking relationships between external and DevRev entities during sync operations.
|
|
6
|
-
*/
|
|
2
|
+
/** Manages sync mapper records that link external system items to DevRev items. */
|
|
7
3
|
export declare class Mappers {
|
|
8
4
|
private devrevApiEndpoint;
|
|
9
5
|
private devrevApiToken;
|
|
10
6
|
constructor({ event }: MappersFactoryInterface);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves a sync mapper record by DevRev ID.
|
|
13
|
-
*
|
|
14
|
-
* Used to find the mapping when you know the DevRev ID and want to find the external system ID.
|
|
15
|
-
*
|
|
16
|
-
* @param params - Query parameters of type MappersGetByTargetIdParams
|
|
17
|
-
* @returns Promise resolving to the sync mapper record
|
|
18
|
-
*/
|
|
19
7
|
getByTargetId(params: MappersGetByTargetIdParams): Promise<MappersGetByTargetIdResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves a sync mapper record by external system ID.
|
|
22
|
-
*
|
|
23
|
-
* Used to find the mapping when you know the external system ID and want to find the DevRev ID.
|
|
24
|
-
*
|
|
25
|
-
* @param params - Query parameters of type MappersGetByExternalIdParams
|
|
26
|
-
* @returns Promise resolving to the sync mapper record
|
|
27
|
-
*/
|
|
28
8
|
getByExternalId(params: MappersGetByExternalIdParams): Promise<MappersGetByExternalIdResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a new sync mapper record to establish a relationship between external system
|
|
31
|
-
* entities and DevRev entities.
|
|
32
|
-
*
|
|
33
|
-
* This is called after importing an item from external system to DevRev to record
|
|
34
|
-
* the mapping for future synchronization operations.
|
|
35
|
-
*
|
|
36
|
-
* @param params - Creation parameters of type MappersCreateParams
|
|
37
|
-
* @returns Promise resolving to the created sync mapper record
|
|
38
|
-
*/
|
|
9
|
+
/** Called after importing an item to DevRev to record the mapping for future syncs. */
|
|
39
10
|
create(params: MappersCreateParams): Promise<MappersCreateResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Updates an existing sync mapper record.
|
|
42
|
-
*
|
|
43
|
-
* Used to modify existing mappings when external system entities change or when
|
|
44
|
-
* additional DevRev entities need to be associated.
|
|
45
|
-
*
|
|
46
|
-
* @param params - Update parameters of type MappersUpdateParams
|
|
47
|
-
* @returns Promise resolving to the updated sync mapper record
|
|
48
|
-
*/
|
|
49
11
|
update(params: MappersUpdateParams): Promise<MappersUpdateResponse>;
|
|
50
12
|
}
|
|
51
13
|
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,mFAAmF;AACnF,qBAAa,OAAO;IAClB,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,cAAc,CAAS;gBAEnB,EAAE,KAAK,EAAE,EAAE,uBAAuB;IAKxC,aAAa,CACjB,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,4BAA4B,CAAC;IAclC,eAAe,CACnB,MAAM,EAAE,4BAA4B,GACnC,OAAO,CAAC,8BAA8B,CAAC;IAc1C,uFAAuF;IACjF,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAanE,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAY1E"}
|
|
@@ -1,264 +1,148 @@
|
|
|
1
1
|
import { AirSyncEvent } from '../types/extraction';
|
|
2
2
|
import { DonV2 } from '../types/loading';
|
|
3
3
|
import { WorkerAdapterOptions } from '../types/workers';
|
|
4
|
-
/**
|
|
5
|
-
* Configuration interface for creating a Mappers instance.
|
|
6
|
-
*/
|
|
7
4
|
export interface MappersFactoryInterface {
|
|
8
5
|
event: AirSyncEvent;
|
|
9
6
|
options?: WorkerAdapterOptions;
|
|
10
7
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Parameters for updating a sync mapper record.
|
|
13
|
-
*/
|
|
14
8
|
export interface UpdateSyncMapperRecordParams {
|
|
15
|
-
/** External system IDs to add */
|
|
16
9
|
external_ids: {
|
|
17
10
|
add: string[];
|
|
18
11
|
};
|
|
19
12
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Example:
|
|
25
|
-
* external_ids: ["2a1c...-uuid", "john_doe"]
|
|
26
|
-
* secondary_ids: { "username": "john_doe" }
|
|
27
|
-
*
|
|
28
|
-
* Note: Values in `secondary_ids` are not indexed. If you need to look up by a
|
|
29
|
-
* secondary value (e.g., username), you must also include that value in `external_ids`.
|
|
13
|
+
* Labels values in `external_ids` with their usage context (e.g. a UUID for
|
|
14
|
+
* one API call, a login username for another). Not indexed: to look up by a
|
|
15
|
+
* secondary value it must also be present in `external_ids`.
|
|
30
16
|
*/
|
|
31
17
|
secondary_ids?: Record<string, string>;
|
|
32
|
-
/** DevRev entity IDs to add */
|
|
33
18
|
targets: {
|
|
34
19
|
add: DonV2[];
|
|
35
20
|
};
|
|
36
21
|
status: SyncMapperRecordStatus;
|
|
37
|
-
/**
|
|
38
|
-
* Optionally populated with the file name of the input file that contains the
|
|
39
|
-
* object data. Can be populated on create and on update of the object to help
|
|
40
|
-
* in finding the object later if some debugging is needed.
|
|
41
|
-
*/
|
|
22
|
+
/** Input file name(s) containing the object data; helps later debugging. */
|
|
42
23
|
input_files?: {
|
|
43
24
|
add: string[];
|
|
44
25
|
};
|
|
45
26
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* and the DevRev Loader evaluates whether to apply it, if the modified_date
|
|
50
|
-
* is present in this list the update is skipped (because the change
|
|
51
|
-
* originated in DevRev).
|
|
27
|
+
* Prevents update loops: after writing the object to the external system,
|
|
28
|
+
* add its modified_date here. The Loader skips extracted updates whose
|
|
29
|
+
* modified_date is listed (the change originated in DevRev).
|
|
52
30
|
*/
|
|
53
31
|
external_versions?: {
|
|
54
32
|
add: SyncMapperRecordExternalVersion[];
|
|
55
33
|
};
|
|
56
|
-
/**
|
|
57
|
-
* Free-form data storage for your use. Store any additional information here.
|
|
58
|
-
*/
|
|
34
|
+
/** Free-form storage; opaque to the platform. */
|
|
59
35
|
extra_data?: string;
|
|
60
36
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Represents a sync mapper record that links external system entities to DevRev entities.
|
|
63
|
-
*/
|
|
37
|
+
/** Links external system entities to DevRev entities. */
|
|
64
38
|
export interface SyncMapperRecord {
|
|
65
39
|
id: DonV2;
|
|
66
|
-
/** Array of external system IDs that map to the same DevRev object */
|
|
67
40
|
external_ids: string[];
|
|
68
41
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* Example:
|
|
74
|
-
* external_ids: ["2a1c...-uuid", "john_doe"]
|
|
75
|
-
* secondary_ids: { "username": "john_doe" }
|
|
76
|
-
*
|
|
77
|
-
* Note: Values in `secondary_ids` are not indexed. If you need to look up by a
|
|
78
|
-
* secondary value (e.g., username), you must also include that value in `external_ids`.
|
|
42
|
+
* Labels values in `external_ids` with their usage context (e.g. a UUID for
|
|
43
|
+
* one API call, a login username for another). Not indexed: to look up by a
|
|
44
|
+
* secondary value it must also be present in `external_ids`.
|
|
79
45
|
*/
|
|
80
46
|
secondary_ids?: Record<string, string>;
|
|
81
|
-
/** Array of DevRev entity IDs this mapping points to */
|
|
82
47
|
targets: DonV2[];
|
|
83
48
|
status: SyncMapperRecordStatus;
|
|
84
|
-
/**
|
|
85
|
-
* Optional file name where the object data was found.
|
|
86
|
-
* Useful for debugging - helps locate the source of object data later.
|
|
87
|
-
*/
|
|
49
|
+
/** Input file name(s) containing the object data; helps later debugging. */
|
|
88
50
|
input_files?: string[];
|
|
89
51
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* modified_date
|
|
93
|
-
* object's modified_date exists in this list the update is skipped (avoids
|
|
94
|
-
* re-applying a DevRev-originated change).
|
|
52
|
+
* Prevents update loops: after writing the object to the external system,
|
|
53
|
+
* its modified_date is stored here. The Loader skips extracted updates whose
|
|
54
|
+
* modified_date is listed (the change originated in DevRev).
|
|
95
55
|
*/
|
|
96
56
|
external_versions?: SyncMapperRecordExternalVersion[];
|
|
97
|
-
/**
|
|
98
|
-
* Free-form data storage for your use. Store any additional information here.
|
|
99
|
-
* Completely opaque to the platform - use however you need.
|
|
100
|
-
*/
|
|
57
|
+
/** Free-form storage; opaque to the platform. */
|
|
101
58
|
extra_data?: string;
|
|
102
59
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Parameters for retrieving a sync mapper record by DevRev target ID.
|
|
105
|
-
*/
|
|
106
60
|
export interface MappersGetByTargetIdParams {
|
|
107
|
-
/** The sync unit ID that scopes the synchronization context */
|
|
108
61
|
sync_unit: DonV2;
|
|
109
|
-
/** The DevRev entity ID to look up */
|
|
110
62
|
target: DonV2;
|
|
111
63
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Response containing a sync mapper record retrieved by target ID.
|
|
114
|
-
*/
|
|
115
64
|
export interface MappersGetByTargetIdResponse {
|
|
116
65
|
sync_mapper_record: SyncMapperRecord;
|
|
117
66
|
}
|
|
118
|
-
/**
|
|
119
|
-
* Parameters for creating a new sync mapper record.
|
|
120
|
-
*/
|
|
121
67
|
export interface MappersCreateParams {
|
|
122
|
-
/** The sync unit ID that scopes the synchronization context */
|
|
123
68
|
sync_unit: DonV2;
|
|
124
|
-
/** Array of external system identifiers */
|
|
125
69
|
external_ids: string[];
|
|
126
70
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* Example:
|
|
132
|
-
* external_ids: ["2a1c...-uuid", "john_doe"]
|
|
133
|
-
* secondary_ids: { "username": "john_doe" }
|
|
134
|
-
*
|
|
135
|
-
* Note: Values in `secondary_ids` are not indexed. If you need to look up by a
|
|
136
|
-
* secondary value (e.g., username), you must also include that value in `external_ids`.
|
|
71
|
+
* Labels values in `external_ids` with their usage context (e.g. a UUID for
|
|
72
|
+
* one API call, a login username for another). Not indexed: to look up by a
|
|
73
|
+
* secondary value it must also be present in `external_ids`.
|
|
137
74
|
*/
|
|
138
75
|
secondary_ids?: Record<string, string>;
|
|
139
|
-
/** Array of DevRev entity IDs this mapping points to */
|
|
140
76
|
targets: DonV2[];
|
|
141
77
|
status: SyncMapperRecordStatus;
|
|
142
|
-
/**
|
|
143
|
-
* Input file names where the object was encountered.
|
|
144
|
-
* Used for observability and tracking.
|
|
145
|
-
*/
|
|
78
|
+
/** Input file name(s) containing the object data; helps later debugging. */
|
|
146
79
|
input_files?: string[];
|
|
147
80
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* modified_date
|
|
151
|
-
* update if the modified_date is present (change originated in DevRev).
|
|
81
|
+
* Prevents update loops: after writing the object to the external system,
|
|
82
|
+
* add its modified_date here. The Loader skips extracted updates whose
|
|
83
|
+
* modified_date is listed (the change originated in DevRev).
|
|
152
84
|
*/
|
|
153
85
|
external_versions?: SyncMapperRecordExternalVersion[];
|
|
154
|
-
/**
|
|
155
|
-
* Opaque data for storing additional client-specific information.
|
|
156
|
-
* Fully managed by snapin authors.
|
|
157
|
-
*/
|
|
86
|
+
/** Free-form storage; opaque to the platform. */
|
|
158
87
|
extra_data?: string;
|
|
159
88
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Response containing the newly created sync mapper record.
|
|
162
|
-
*/
|
|
163
89
|
export interface MappersCreateResponse {
|
|
164
90
|
sync_mapper_record: SyncMapperRecord;
|
|
165
91
|
}
|
|
166
|
-
/**
|
|
167
|
-
* Parameters for updating an existing sync mapper record.
|
|
168
|
-
*/
|
|
169
92
|
export interface MappersUpdateParams {
|
|
170
|
-
/** The ID of the existing sync mapper record to update */
|
|
171
93
|
id: DonV2;
|
|
172
|
-
/** The sync unit ID that scopes the synchronization context */
|
|
173
94
|
sync_unit: DonV2;
|
|
174
|
-
/** External system IDs to add to the existing mapping */
|
|
175
95
|
external_ids: {
|
|
176
96
|
add: string[];
|
|
177
97
|
};
|
|
178
98
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* Example:
|
|
184
|
-
* external_ids: ["2a1c...-uuid", "john_doe"]
|
|
185
|
-
* secondary_ids: { "username": "john_doe" }
|
|
186
|
-
*
|
|
187
|
-
* Note: Values in `secondary_ids` are not indexed. If you need to look up by a
|
|
188
|
-
* secondary value (e.g., username), you must also include that value in `external_ids`.
|
|
99
|
+
* Labels values in `external_ids` with their usage context (e.g. a UUID for
|
|
100
|
+
* one API call, a login username for another). Not indexed: to look up by a
|
|
101
|
+
* secondary value it must also be present in `external_ids`.
|
|
189
102
|
*/
|
|
190
103
|
secondary_ids?: Record<string, string>;
|
|
191
|
-
/** DevRev entity IDs to add to the existing mapping */
|
|
192
104
|
targets: {
|
|
193
105
|
add: DonV2[];
|
|
194
106
|
};
|
|
195
107
|
status: SyncMapperRecordStatus;
|
|
196
|
-
/**
|
|
197
|
-
* Input file names where the object was encountered.
|
|
198
|
-
* Used for observability and tracking.
|
|
199
|
-
*/
|
|
108
|
+
/** Input file name(s) containing the object data; helps later debugging. */
|
|
200
109
|
input_files?: {
|
|
201
110
|
add: string[];
|
|
202
111
|
};
|
|
203
112
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* modified_date
|
|
207
|
-
* update if the modified_date is present (change originated in DevRev).
|
|
113
|
+
* Prevents update loops: after writing the object to the external system,
|
|
114
|
+
* add its modified_date here. The Loader skips extracted updates whose
|
|
115
|
+
* modified_date is listed (the change originated in DevRev).
|
|
208
116
|
*/
|
|
209
117
|
external_versions?: {
|
|
210
118
|
add: SyncMapperRecordExternalVersion[];
|
|
211
119
|
};
|
|
212
|
-
/**
|
|
213
|
-
* Opaque data for storing additional client-specific information.
|
|
214
|
-
* Fully managed by snapin authors.
|
|
215
|
-
*/
|
|
120
|
+
/** Free-form storage; opaque to the platform. */
|
|
216
121
|
extra_data?: string;
|
|
217
122
|
}
|
|
218
|
-
/**
|
|
219
|
-
* Response containing the updated sync mapper record.
|
|
220
|
-
*/
|
|
221
123
|
export interface MappersUpdateResponse {
|
|
222
124
|
sync_mapper_record: SyncMapperRecord;
|
|
223
125
|
}
|
|
224
|
-
/**
|
|
225
|
-
* Status of a sync mapper record indicating its operational state.
|
|
226
|
-
*/
|
|
227
126
|
export declare enum SyncMapperRecordStatus {
|
|
228
127
|
/** The mapping is active and operational (default) */
|
|
229
128
|
OPERATIONAL = "operational",
|
|
230
129
|
/** The mapping was filtered out by user filter settings */
|
|
231
130
|
FILTERED = "filtered",
|
|
232
|
-
/**
|
|
233
|
-
* The external object should be ignored in sync operations.
|
|
234
|
-
* Use to prevent objects from being created or updated in DevRev.
|
|
235
|
-
*/
|
|
131
|
+
/** Ignore the external object in sync; prevents create/update in DevRev. */
|
|
236
132
|
IGNORED = "ignored"
|
|
237
133
|
}
|
|
238
|
-
/**
|
|
239
|
-
* External version tracking to prevent update loops.
|
|
240
|
-
* Used to identify changes that originated from your system.
|
|
241
|
-
*/
|
|
134
|
+
/** Marks external changes as DevRev-originated to prevent update loops. */
|
|
242
135
|
export interface SyncMapperRecordExternalVersion {
|
|
243
136
|
/** Sync recipe version at the time the external change was written */
|
|
244
137
|
recipe_version: number;
|
|
245
138
|
/** External system modified timestamp (ISO 8601 string) used for loop detection */
|
|
246
139
|
modified_date: string;
|
|
247
140
|
}
|
|
248
|
-
/**
|
|
249
|
-
* Parameters for retrieving a sync mapper record by external system ID.
|
|
250
|
-
*/
|
|
251
141
|
export interface MappersGetByExternalIdParams {
|
|
252
|
-
/** The sync unit ID that scopes the synchronization context */
|
|
253
142
|
sync_unit: DonV2;
|
|
254
|
-
/** The identifier from the external system */
|
|
255
143
|
external_id: string;
|
|
256
|
-
/** The type of DevRev entity to look for */
|
|
257
144
|
target_type: SyncMapperRecordTargetType;
|
|
258
145
|
}
|
|
259
|
-
/**
|
|
260
|
-
* Types of DevRev entities that can be targets in sync mapper records.
|
|
261
|
-
*/
|
|
262
146
|
export declare enum SyncMapperRecordTargetType {
|
|
263
147
|
ACCESS_CONTROL_ENTRY = "access_control_entry",
|
|
264
148
|
ACCOUNT = "account",
|
|
@@ -285,9 +169,6 @@ export declare enum SyncMapperRecordTargetType {
|
|
|
285
169
|
USER = "user",
|
|
286
170
|
WORK = "work"
|
|
287
171
|
}
|
|
288
|
-
/**
|
|
289
|
-
* Response containing a sync mapper record retrieved by external ID.
|
|
290
|
-
*/
|
|
291
172
|
export interface MappersGetByExternalIdResponse {
|
|
292
173
|
sync_mapper_record: SyncMapperRecord;
|
|
293
174
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.interfaces.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"mappers.interfaces.d.ts","sourceRoot":"","sources":["../../src/mappers/mappers.interfaces.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SyncMapperRecordTargetType = exports.SyncMapperRecordStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Status of a sync mapper record indicating its operational state.
|
|
6
|
-
*/
|
|
7
4
|
var SyncMapperRecordStatus;
|
|
8
5
|
(function (SyncMapperRecordStatus) {
|
|
9
6
|
/** The mapping is active and operational (default) */
|
|
10
7
|
SyncMapperRecordStatus["OPERATIONAL"] = "operational";
|
|
11
8
|
/** The mapping was filtered out by user filter settings */
|
|
12
9
|
SyncMapperRecordStatus["FILTERED"] = "filtered";
|
|
13
|
-
/**
|
|
14
|
-
* The external object should be ignored in sync operations.
|
|
15
|
-
* Use to prevent objects from being created or updated in DevRev.
|
|
16
|
-
*/
|
|
10
|
+
/** Ignore the external object in sync; prevents create/update in DevRev. */
|
|
17
11
|
SyncMapperRecordStatus["IGNORED"] = "ignored";
|
|
18
12
|
})(SyncMapperRecordStatus || (exports.SyncMapperRecordStatus = SyncMapperRecordStatus = {}));
|
|
19
|
-
/**
|
|
20
|
-
* Types of DevRev entities that can be targets in sync mapper records.
|
|
21
|
-
*/
|
|
22
13
|
var SyncMapperRecordTargetType;
|
|
23
14
|
(function (SyncMapperRecordTargetType) {
|
|
24
15
|
SyncMapperRecordTargetType["ACCESS_CONTROL_ENTRY"] = "access_control_entry";
|