@devrev/airsync-sdk 2.0.0-beta.1 → 2.0.0-beta.10
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/README.md +7 -21
- package/dist/attachments-streaming/attachments-streaming-pool.d.ts +6 -7
- package/dist/attachments-streaming/attachments-streaming-pool.d.ts.map +1 -1
- package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts +4 -3
- package/dist/attachments-streaming/attachments-streaming-pool.interfaces.d.ts.map +1 -1
- package/dist/attachments-streaming/attachments-streaming-pool.js +69 -61
- package/dist/common/constants.d.ts +15 -12
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +20 -34
- package/dist/common/helpers.d.ts +3 -27
- package/dist/common/helpers.d.ts.map +1 -1
- package/dist/common/helpers.js +6 -36
- package/dist/http/{axios-client-internal.d.ts → client.d.ts} +1 -1
- package/dist/http/client.d.ts.map +1 -0
- package/dist/http/{axios-client-internal.js → client.js} +7 -4
- package/dist/http/errors.d.ts +8 -0
- package/dist/http/errors.d.ts.map +1 -0
- package/dist/http/errors.js +31 -0
- package/dist/index.d.ts +30 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -28
- package/dist/logger/logger.d.ts +13 -70
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.interfaces.d.ts +4 -7
- package/dist/logger/logger.interfaces.d.ts.map +1 -1
- package/dist/logger/logger.js +67 -92
- package/dist/mappers/mappers.d.ts +10 -43
- package/dist/mappers/mappers.d.ts.map +1 -1
- package/dist/mappers/mappers.interfaces.d.ts +173 -0
- package/dist/mappers/mappers.interfaces.d.ts.map +1 -0
- package/dist/mappers/{mappers.interface.js → mappers.interfaces.js} +1 -10
- package/dist/mappers/mappers.js +32 -46
- package/dist/multithreading/adapters/base-adapter.d.ts +39 -0
- package/dist/multithreading/adapters/base-adapter.d.ts.map +1 -0
- package/dist/multithreading/adapters/base-adapter.js +212 -0
- package/dist/multithreading/adapters/extraction-adapter.d.ts +49 -0
- package/dist/multithreading/adapters/extraction-adapter.d.ts.map +1 -0
- package/dist/multithreading/adapters/extraction-adapter.js +375 -0
- package/dist/multithreading/adapters/loading-adapter.d.ts +26 -0
- package/dist/multithreading/adapters/loading-adapter.d.ts.map +1 -0
- package/dist/multithreading/adapters/loading-adapter.helpers.d.ts +12 -0
- package/dist/multithreading/adapters/loading-adapter.helpers.d.ts.map +1 -0
- package/dist/multithreading/{worker-adapter/worker-adapter.helpers.js → adapters/loading-adapter.helpers.js} +2 -12
- package/dist/multithreading/adapters/loading-adapter.js +279 -0
- package/dist/multithreading/emit.d.ts +11 -0
- package/dist/multithreading/emit.d.ts.map +1 -0
- package/dist/multithreading/emit.js +25 -0
- package/dist/multithreading/process-task.d.ts +6 -1
- package/dist/multithreading/process-task.d.ts.map +1 -1
- package/dist/multithreading/process-task.js +120 -82
- package/dist/multithreading/spawn/spawn.d.ts +10 -11
- package/dist/multithreading/spawn/spawn.d.ts.map +1 -1
- package/dist/multithreading/spawn/spawn.helpers.d.ts +12 -11
- package/dist/multithreading/spawn/spawn.helpers.d.ts.map +1 -1
- package/dist/multithreading/spawn/spawn.helpers.js +142 -77
- package/dist/multithreading/spawn/spawn.js +59 -75
- package/dist/multithreading/worker.js +16 -5
- package/dist/repo/repo.d.ts +14 -5
- 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 +11 -20
- package/dist/repo/repo.interfaces.d.ts.map +1 -1
- package/dist/repo/repo.js +36 -22
- package/dist/state/base-state.d.ts +58 -0
- package/dist/state/base-state.d.ts.map +1 -0
- package/dist/state/base-state.js +242 -0
- package/dist/state/extraction-state.d.ts +14 -0
- package/dist/state/extraction-state.d.ts.map +1 -0
- package/dist/state/extraction-state.js +140 -0
- package/dist/state/install-initial-domain-mapping.d.ts +4 -0
- package/dist/state/install-initial-domain-mapping.d.ts.map +1 -0
- package/dist/{common → state}/install-initial-domain-mapping.js +5 -7
- package/dist/state/loading-state.d.ts +8 -0
- package/dist/state/loading-state.d.ts.map +1 -0
- package/dist/state/loading-state.js +29 -0
- package/dist/state/state.d.ts +3 -29
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.interfaces.d.ts +31 -12
- package/dist/state/state.interfaces.d.ts.map +1 -1
- package/dist/state/state.interfaces.js +17 -1
- package/dist/state/state.js +9 -164
- package/dist/state/time-value-resolver.d.ts +17 -0
- package/dist/state/time-value-resolver.d.ts.map +1 -0
- package/dist/state/time-value-resolver.js +110 -0
- package/dist/testing/mock-event.d.ts +10 -0
- package/dist/testing/mock-event.d.ts.map +1 -0
- package/dist/testing/mock-event.js +96 -0
- package/dist/testing/mock-server.d.ts +31 -0
- package/dist/testing/mock-server.d.ts.map +1 -0
- package/dist/testing/mock-server.interfaces.d.ts +54 -0
- package/dist/testing/mock-server.interfaces.d.ts.map +1 -0
- package/dist/testing/mock-server.interfaces.js +4 -0
- package/dist/testing/mock-server.js +297 -0
- package/dist/testing/test-adapters.d.ts +22 -0
- package/dist/testing/test-adapters.d.ts.map +1 -0
- package/dist/testing/test-adapters.js +32 -0
- package/dist/types/common.d.ts +4 -37
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +2 -17
- package/dist/types/errors.d.ts +15 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +28 -0
- package/dist/types/external-domain-metadata.d.ts +40 -162
- package/dist/types/external-domain-metadata.d.ts.map +1 -1
- package/dist/types/extraction.d.ts +135 -278
- package/dist/types/extraction.d.ts.map +1 -1
- package/dist/types/extraction.js +46 -133
- package/dist/types/loading.d.ts +15 -55
- package/dist/types/loading.d.ts.map +1 -1
- package/dist/types/loading.js +1 -23
- package/dist/types/workers.d.ts +70 -103
- package/dist/types/workers.d.ts.map +1 -1
- package/dist/types/workers.js +1 -6
- package/dist/uploader/uploader.d.ts +10 -61
- package/dist/uploader/uploader.d.ts.map +1 -1
- package/dist/uploader/uploader.helpers.d.ts +7 -27
- package/dist/uploader/uploader.helpers.d.ts.map +1 -1
- package/dist/uploader/uploader.helpers.js +80 -30
- package/dist/uploader/uploader.interfaces.d.ts +19 -54
- package/dist/uploader/uploader.interfaces.d.ts.map +1 -1
- package/dist/uploader/uploader.interfaces.js +8 -0
- package/dist/uploader/uploader.js +72 -124
- package/docs/MIGRATION.md +696 -0
- package/package.json +35 -22
- package/dist/attachments-streaming/attachments-streaming-pool.test.d.ts +0 -2
- package/dist/attachments-streaming/attachments-streaming-pool.test.d.ts.map +0 -1
- package/dist/attachments-streaming/attachments-streaming-pool.test.js +0 -321
- package/dist/common/control-protocol.d.ts +0 -10
- package/dist/common/control-protocol.d.ts.map +0 -1
- package/dist/common/control-protocol.js +0 -31
- package/dist/common/errors.d.ts +0 -6
- package/dist/common/errors.d.ts.map +0 -1
- package/dist/common/errors.js +0 -4
- package/dist/common/event-type-translation.d.ts +0 -24
- package/dist/common/event-type-translation.d.ts.map +0 -1
- package/dist/common/event-type-translation.js +0 -117
- package/dist/common/install-initial-domain-mapping.d.ts +0 -4
- package/dist/common/install-initial-domain-mapping.d.ts.map +0 -1
- package/dist/common/install-initial-domain-mapping.test.d.ts +0 -2
- package/dist/common/install-initial-domain-mapping.test.d.ts.map +0 -1
- package/dist/common/install-initial-domain-mapping.test.js +0 -208
- package/dist/deprecated/adapter/index.d.ts +0 -62
- package/dist/deprecated/adapter/index.d.ts.map +0 -1
- package/dist/deprecated/adapter/index.js +0 -151
- package/dist/deprecated/common/helpers.d.ts +0 -7
- package/dist/deprecated/common/helpers.d.ts.map +0 -1
- package/dist/deprecated/common/helpers.js +0 -47
- package/dist/deprecated/demo-extractor/external_domain_metadata.json +0 -38
- package/dist/deprecated/demo-extractor/index.d.ts +0 -18
- package/dist/deprecated/demo-extractor/index.d.ts.map +0 -1
- package/dist/deprecated/demo-extractor/index.js +0 -161
- package/dist/deprecated/http/client.d.ts +0 -22
- package/dist/deprecated/http/client.d.ts.map +0 -1
- package/dist/deprecated/http/client.js +0 -161
- package/dist/deprecated/uploader/index.d.ts +0 -35
- package/dist/deprecated/uploader/index.d.ts.map +0 -1
- package/dist/deprecated/uploader/index.js +0 -161
- package/dist/http/axios-client-internal.d.ts.map +0 -1
- package/dist/http/axios-client-internal.test.d.ts +0 -2
- package/dist/http/axios-client-internal.test.d.ts.map +0 -1
- package/dist/http/axios-client-internal.test.js +0 -154
- package/dist/http/axios-client.d.ts +0 -27
- package/dist/http/axios-client.d.ts.map +0 -1
- package/dist/http/axios-client.js +0 -57
- package/dist/http/constants.d.ts +0 -4
- package/dist/http/constants.d.ts.map +0 -1
- package/dist/http/constants.js +0 -6
- package/dist/http/index.d.ts +0 -3
- package/dist/http/index.d.ts.map +0 -1
- package/dist/http/index.js +0 -18
- package/dist/http/types.d.ts +0 -17
- package/dist/http/types.d.ts.map +0 -1
- package/dist/http/types.js +0 -2
- package/dist/logger/logger.constants.d.ts +0 -6
- package/dist/logger/logger.constants.d.ts.map +0 -1
- package/dist/logger/logger.constants.js +0 -13
- package/dist/logger/logger.context.d.ts +0 -58
- package/dist/logger/logger.context.d.ts.map +0 -1
- package/dist/logger/logger.context.js +0 -86
- package/dist/logger/logger.test.d.ts +0 -2
- package/dist/logger/logger.test.d.ts.map +0 -1
- package/dist/logger/logger.test.js +0 -490
- package/dist/mappers/mappers.interface.d.ts +0 -294
- package/dist/mappers/mappers.interface.d.ts.map +0 -1
- package/dist/mappers/mappers.test.d.ts +0 -2
- package/dist/mappers/mappers.test.d.ts.map +0 -1
- package/dist/mappers/mappers.test.js +0 -107
- package/dist/multithreading/create-worker.test.d.ts +0 -2
- package/dist/multithreading/create-worker.test.d.ts.map +0 -1
- package/dist/multithreading/create-worker.test.js +0 -89
- package/dist/multithreading/spawn/spawn.helpers.test.d.ts +0 -2
- package/dist/multithreading/spawn/spawn.helpers.test.d.ts.map +0 -1
- package/dist/multithreading/spawn/spawn.helpers.test.js +0 -293
- package/dist/multithreading/worker-adapter/worker-adapter.artifacts.test.d.ts +0 -2
- package/dist/multithreading/worker-adapter/worker-adapter.artifacts.test.d.ts.map +0 -1
- package/dist/multithreading/worker-adapter/worker-adapter.artifacts.test.js +0 -127
- package/dist/multithreading/worker-adapter/worker-adapter.d.ts +0 -91
- package/dist/multithreading/worker-adapter/worker-adapter.d.ts.map +0 -1
- package/dist/multithreading/worker-adapter/worker-adapter.helpers.d.ts +0 -22
- package/dist/multithreading/worker-adapter/worker-adapter.helpers.d.ts.map +0 -1
- package/dist/multithreading/worker-adapter/worker-adapter.helpers.test.d.ts +0 -2
- package/dist/multithreading/worker-adapter/worker-adapter.helpers.test.d.ts.map +0 -1
- package/dist/multithreading/worker-adapter/worker-adapter.helpers.test.js +0 -514
- package/dist/multithreading/worker-adapter/worker-adapter.js +0 -745
- package/dist/multithreading/worker-adapter/worker-adapter.test.d.ts +0 -2
- package/dist/multithreading/worker-adapter/worker-adapter.test.d.ts.map +0 -1
- package/dist/multithreading/worker-adapter/worker-adapter.test.js +0 -483
- package/dist/repo/repo.test.d.ts +0 -2
- package/dist/repo/repo.test.d.ts.map +0 -1
- package/dist/repo/repo.test.js +0 -131
- package/dist/state/state.test.d.ts +0 -2
- package/dist/state/state.test.d.ts.map +0 -1
- package/dist/state/state.test.js +0 -224
- package/dist/types/extraction.test.d.ts +0 -2
- package/dist/types/extraction.test.d.ts.map +0 -1
- package/dist/types/extraction.test.js +0 -70
- package/dist/types/index.d.ts +0 -10
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -18
- package/dist/uploader/uploader.helpers.test.d.ts +0 -2
- package/dist/uploader/uploader.helpers.test.d.ts.map +0 -1
- package/dist/uploader/uploader.helpers.test.js +0 -267
- package/dist/uploader/uploader.test.d.ts +0 -2
- package/dist/uploader/uploader.test.d.ts.map +0 -1
- package/dist/uploader/uploader.test.js +0 -589
|
@@ -1,62 +1,27 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { NormalizedAttachment } from '../repo/repo.interfaces';
|
|
3
|
-
import {
|
|
3
|
+
import { HttpStreamResponse } from '../types/extraction';
|
|
4
|
+
import { ArtifactToUpload, UploaderFactoryInterface, UploaderResult, UploadResponse } from './uploader.interfaces';
|
|
4
5
|
export declare class Uploader {
|
|
5
6
|
private isLocalDevelopment?;
|
|
6
7
|
private devrevApiEndpoint;
|
|
7
8
|
private devrevApiToken;
|
|
8
9
|
private requestId;
|
|
9
10
|
private defaultHeaders;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @param {string} itemType - The type of the item to be uploaded
|
|
14
|
-
* @param {object[] | object} fetchedObjects - The objects to be uploaded
|
|
15
|
-
* @returns {Promise<UploadResponse>} - The response object containing the artifact information or error information if there was an error
|
|
16
|
-
*/
|
|
11
|
+
private skipConfirmation;
|
|
12
|
+
constructor({ event, options, skipConfirmation }: UploaderFactoryInterface);
|
|
13
|
+
/** Compresses fetched objects to gzipped JSONL and uploads them as an artifact. */
|
|
17
14
|
upload(itemType: string, fetchedObjects: object[] | object): Promise<UploadResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Gets the upload URL for an artifact from the DevRev API.
|
|
20
|
-
* @param {string} filename - The name of the file to upload
|
|
21
|
-
* @param {string} fileType - The MIME type of the file
|
|
22
|
-
* @param {number} [fileSize] - Optional file size in bytes
|
|
23
|
-
* @returns {Promise<ArtifactToUpload | void>} The artifact upload information or undefined on error
|
|
24
|
-
*/
|
|
25
15
|
getArtifactUploadUrl(filename: string, fileType: string, fileSize?: number): Promise<UploaderResult<ArtifactToUpload>>;
|
|
26
|
-
/**
|
|
27
|
-
* Uploads an artifact file to the provided upload URL using multipart form data.
|
|
28
|
-
* @param {ArtifactToUpload} artifact - The artifact upload information containing upload URL and form data
|
|
29
|
-
* @param {Buffer} file - The file buffer to upload
|
|
30
|
-
* @returns {Promise<AxiosResponse | void>} The axios response or undefined on error
|
|
31
|
-
*/
|
|
16
|
+
/** Uploads the file buffer to the artifact's upload URL as multipart form data. */
|
|
32
17
|
uploadArtifact(artifact: ArtifactToUpload, file: Buffer): Promise<UploaderResult<AxiosResponse>>;
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
* @param {ArtifactToUpload} artifact - The artifact upload information containing upload URL and form data
|
|
36
|
-
* @param {AxiosResponse} fileStream - The axios response stream containing the file data
|
|
37
|
-
* @returns {Promise<AxiosResponse | void>} The axios response or undefined on error
|
|
38
|
-
*/
|
|
39
|
-
streamArtifact(artifact: ArtifactToUpload, fileStream: AxiosResponse): Promise<UploaderResult<AxiosResponse>>;
|
|
40
|
-
/**
|
|
41
|
-
* Confirms that an artifact upload has been completed successfully.
|
|
42
|
-
* @param {string} artifactId - The ID of the artifact to confirm
|
|
43
|
-
* @returns {Promise<AxiosResponse | void>} The axios response or undefined on error
|
|
44
|
-
*/
|
|
18
|
+
/** Streams a file from an HTTP response directly to the artifact's upload URL. */
|
|
19
|
+
streamArtifact(artifact: ArtifactToUpload, fileStream: HttpStreamResponse): Promise<UploaderResult<AxiosResponse>>;
|
|
45
20
|
confirmArtifactUpload(artifactId: string): Promise<{
|
|
46
21
|
response?: AxiosResponse;
|
|
47
22
|
error?: unknown;
|
|
48
23
|
}>;
|
|
49
|
-
/**
|
|
50
|
-
* Destroys a stream to prevent resource leaks.
|
|
51
|
-
* @param {any} fileStream - The axios response stream to destroy
|
|
52
|
-
*/
|
|
53
|
-
private destroyStream;
|
|
54
|
-
/**
|
|
55
|
-
* Retrieves attachment metadata from an artifact by downloading and parsing it.
|
|
56
|
-
* @param {object} param0 - Configuration object
|
|
57
|
-
* @param {string} param0.artifact - The artifact ID to download attachments from
|
|
58
|
-
* @returns {Promise<{attachments?: NormalizedAttachment[], error?: {message: string}}>} The attachments array or error object
|
|
59
|
-
*/
|
|
24
|
+
/** Downloads an artifact and parses it into attachment metadata. */
|
|
60
25
|
getAttachmentsFromArtifactId({ artifact, }: {
|
|
61
26
|
artifact: string;
|
|
62
27
|
}): Promise<{
|
|
@@ -65,25 +30,9 @@ export declare class Uploader {
|
|
|
65
30
|
message: string;
|
|
66
31
|
};
|
|
67
32
|
}>;
|
|
68
|
-
/**
|
|
69
|
-
* Gets the download URL for an artifact from the DevRev API.
|
|
70
|
-
* @param {string} artifactId - The ID of the artifact to download
|
|
71
|
-
* @returns {Promise<string | void>} The download URL or undefined on error
|
|
72
|
-
*/
|
|
73
33
|
private getArtifactDownloadUrl;
|
|
74
|
-
/**
|
|
75
|
-
* Downloads an artifact file from the given URL.
|
|
76
|
-
* @param {string} artifactUrl - The URL to download the artifact from
|
|
77
|
-
* @returns {Promise<Buffer | void>} The artifact file buffer or undefined on error
|
|
78
|
-
*/
|
|
79
34
|
private downloadArtifact;
|
|
80
|
-
/**
|
|
81
|
-
* Retrieves and parses JSON objects from an artifact by artifact ID.
|
|
82
|
-
* @param {object} param0 - Configuration object
|
|
83
|
-
* @param {string} param0.artifactId - The artifact ID to download and parse
|
|
84
|
-
* @param {boolean} [param0.isGzipped=false] - Whether the artifact is gzipped
|
|
85
|
-
* @returns {Promise<object[] | object | void>} The parsed JSON objects or undefined on error
|
|
86
|
-
*/
|
|
35
|
+
/** Downloads an artifact (optionally gzipped) and parses it as JSONL. */
|
|
87
36
|
getJsonObjectByArtifactId({ artifactId, isGzipped, }: {
|
|
88
37
|
artifactId: string;
|
|
89
38
|
isGzipped?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAOtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAWzD,OAAO,EAEL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACf,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,QAAQ;IACnB,OAAO,CAAC,kBAAkB,CAAC,CAAU;IACrC,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,gBAAgB,CAAU;gBAEtB,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,wBAAwB;IAW1E,mFAAmF;IAC7E,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,GAChC,OAAO,CAAC,cAAc,CAAC;IAwEpB,oBAAoB,CACxB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;IA2B5C,mFAAmF;IAC7E,cAAc,CAClB,QAAQ,EAAE,gBAAgB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IAmBzC,kFAAkF;IAC5E,cAAc,CAClB,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC7B,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IAqCnC,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QACvD,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IAgCF,oEAAoE;IAC9D,4BAA4B,CAAC,EACjC,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC;QACV,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;QACrC,KAAK,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7B,CAAC;YAuDY,sBAAsB;YAsBtB,gBAAgB;IAc9B,yEAAyE;IACnE,yBAAyB,CAAC,EAC9B,UAAU,EACV,SAAiB,GAClB,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;CA6B/C"}
|
|
@@ -1,33 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @returns {Buffer | void} The compressed buffer or undefined on error
|
|
6
|
-
*/
|
|
1
|
+
import { HttpStreamResponse } from '../types/extraction';
|
|
2
|
+
import { ArtifactDateRanges, UploaderResult } from './uploader.interfaces';
|
|
3
|
+
/** Computes oldest/newest created and modified timestamps (RFC3339) across uploaded items. */
|
|
4
|
+
export declare function computeArtifactDateRanges(fetchedObjects: object[] | object): ArtifactDateRanges;
|
|
7
5
|
export declare function compressGzip(jsonlObject: string): UploaderResult<Buffer>;
|
|
8
|
-
/**
|
|
9
|
-
* Decompresses a gzipped buffer to a JSONL string.
|
|
10
|
-
* @param {Buffer} gzippedJsonlObject - The gzipped buffer to decompress
|
|
11
|
-
* @returns {string | void} The decompressed JSONL string or undefined on error
|
|
12
|
-
*/
|
|
13
6
|
export declare function decompressGzip(gzippedJsonlObject: Buffer): UploaderResult<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Parses a JSONL string into an array of objects.
|
|
16
|
-
* @param {string} jsonlObject - The JSONL string to parse
|
|
17
|
-
* @returns {object[] | null} The parsed array of objects or null on error
|
|
18
|
-
*/
|
|
19
7
|
export declare function parseJsonl(jsonlObject: string): UploaderResult<object[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Downloads fetched objects to the local file system (for local development).
|
|
22
|
-
* @param {string} itemType - The type of items being downloaded
|
|
23
|
-
* @param {object | object[]} fetchedObjects - The objects to write to file
|
|
24
|
-
* @returns {Promise<void>} Resolves when the file is written or rejects on error
|
|
25
|
-
*/
|
|
8
|
+
/** Writes fetched objects to the local file system (local development only). */
|
|
26
9
|
export declare function downloadToLocal(itemType: string, fetchedObjects: object | object[]): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Truncates a filename if it exceeds the maximum allowed length.
|
|
29
|
-
* @param {string} filename - The filename to truncate
|
|
30
|
-
* @returns {string} The truncated filename
|
|
31
|
-
*/
|
|
32
10
|
export declare function truncateFilename(filename: string): string;
|
|
11
|
+
/** Destroys a stream to prevent memory leaks. */
|
|
12
|
+
export declare function destroyHttpStream(httpStream: HttpStreamResponse): void;
|
|
33
13
|
//# sourceMappingURL=uploader.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.helpers.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uploader.helpers.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.helpers.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAEL,kBAAkB,EAClB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAE/B,8FAA8F;AAC9F,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,GAChC,kBAAkB,CAwEpB;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAMxE;AAED,wBAAgB,cAAc,CAC5B,kBAAkB,EAAE,MAAM,GACzB,cAAc,CAAC,MAAM,CAAC,CAOxB;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,CAMxE;AAED,gFAAgF;AAChF,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,GAChC,OAAO,CAAC,IAAI,CAAC,CA4Bf;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgBzD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAUtE"}
|
|
@@ -36,20 +36,78 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.computeArtifactDateRanges = computeArtifactDateRanges;
|
|
39
40
|
exports.compressGzip = compressGzip;
|
|
40
41
|
exports.decompressGzip = decompressGzip;
|
|
41
42
|
exports.parseJsonl = parseJsonl;
|
|
42
43
|
exports.downloadToLocal = downloadToLocal;
|
|
43
44
|
exports.truncateFilename = truncateFilename;
|
|
45
|
+
exports.destroyHttpStream = destroyHttpStream;
|
|
44
46
|
const fs_1 = __importStar(require("fs"));
|
|
45
|
-
const js_jsonl_1 = require("js-jsonl");
|
|
46
47
|
const zlib_1 = __importDefault(require("zlib"));
|
|
48
|
+
const js_jsonl_1 = require("js-jsonl");
|
|
47
49
|
const constants_1 = require("../common/constants");
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
const uploader_interfaces_1 = require("./uploader.interfaces");
|
|
51
|
+
/** Computes oldest/newest created and modified timestamps (RFC3339) across uploaded items. */
|
|
52
|
+
function computeArtifactDateRanges(fetchedObjects) {
|
|
53
|
+
const items = Array.isArray(fetchedObjects)
|
|
54
|
+
? fetchedObjects
|
|
55
|
+
: [fetchedObjects];
|
|
56
|
+
const created = {
|
|
57
|
+
min: Number.POSITIVE_INFINITY,
|
|
58
|
+
max: Number.NEGATIVE_INFINITY,
|
|
59
|
+
};
|
|
60
|
+
const modified = {
|
|
61
|
+
min: Number.POSITIVE_INFINITY,
|
|
62
|
+
max: Number.NEGATIVE_INFINITY,
|
|
63
|
+
};
|
|
64
|
+
let hasCreated = false;
|
|
65
|
+
let hasModified = false;
|
|
66
|
+
const parseTimestamp = (value) => {
|
|
67
|
+
const ts = new Date(value).getTime();
|
|
68
|
+
return Number.isNaN(ts) ? undefined : ts;
|
|
69
|
+
};
|
|
70
|
+
for (const obj of items) {
|
|
71
|
+
if (!obj || typeof obj !== 'object') {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
const item = obj;
|
|
75
|
+
if (item.created_date != undefined) {
|
|
76
|
+
const ts = parseTimestamp(item.created_date);
|
|
77
|
+
if (ts != undefined) {
|
|
78
|
+
if (ts < created.min) {
|
|
79
|
+
created.min = ts;
|
|
80
|
+
}
|
|
81
|
+
if (ts > created.max) {
|
|
82
|
+
created.max = ts;
|
|
83
|
+
}
|
|
84
|
+
hasCreated = true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (item.modified_date != undefined) {
|
|
88
|
+
const ts = parseTimestamp(item.modified_date);
|
|
89
|
+
if (ts != undefined) {
|
|
90
|
+
if (ts < modified.min) {
|
|
91
|
+
modified.min = ts;
|
|
92
|
+
}
|
|
93
|
+
if (ts > modified.max) {
|
|
94
|
+
modified.max = ts;
|
|
95
|
+
}
|
|
96
|
+
hasModified = true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const result = {};
|
|
101
|
+
if (hasCreated) {
|
|
102
|
+
result[uploader_interfaces_1.ArtifactDateField.OldestCreatedDate] = new Date(created.min).toISOString();
|
|
103
|
+
result[uploader_interfaces_1.ArtifactDateField.NewestCreatedDate] = new Date(created.max).toISOString();
|
|
104
|
+
}
|
|
105
|
+
if (hasModified) {
|
|
106
|
+
result[uploader_interfaces_1.ArtifactDateField.OldestModifiedDate] = new Date(modified.min).toISOString();
|
|
107
|
+
result[uploader_interfaces_1.ArtifactDateField.NewestModifiedDate] = new Date(modified.max).toISOString();
|
|
108
|
+
}
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
53
111
|
function compressGzip(jsonlObject) {
|
|
54
112
|
try {
|
|
55
113
|
return { response: zlib_1.default.gzipSync(jsonlObject) };
|
|
@@ -58,11 +116,6 @@ function compressGzip(jsonlObject) {
|
|
|
58
116
|
return { error };
|
|
59
117
|
}
|
|
60
118
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Decompresses a gzipped buffer to a JSONL string.
|
|
63
|
-
* @param {Buffer} gzippedJsonlObject - The gzipped buffer to decompress
|
|
64
|
-
* @returns {string | void} The decompressed JSONL string or undefined on error
|
|
65
|
-
*/
|
|
66
119
|
function decompressGzip(gzippedJsonlObject) {
|
|
67
120
|
try {
|
|
68
121
|
const jsonlObject = zlib_1.default.gunzipSync(gzippedJsonlObject);
|
|
@@ -72,11 +125,6 @@ function decompressGzip(gzippedJsonlObject) {
|
|
|
72
125
|
return { error };
|
|
73
126
|
}
|
|
74
127
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Parses a JSONL string into an array of objects.
|
|
77
|
-
* @param {string} jsonlObject - The JSONL string to parse
|
|
78
|
-
* @returns {object[] | null} The parsed array of objects or null on error
|
|
79
|
-
*/
|
|
80
128
|
function parseJsonl(jsonlObject) {
|
|
81
129
|
try {
|
|
82
130
|
return { response: js_jsonl_1.jsonl.parse(jsonlObject) };
|
|
@@ -85,12 +133,7 @@ function parseJsonl(jsonlObject) {
|
|
|
85
133
|
return { error };
|
|
86
134
|
}
|
|
87
135
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Downloads fetched objects to the local file system (for local development).
|
|
90
|
-
* @param {string} itemType - The type of items being downloaded
|
|
91
|
-
* @param {object | object[]} fetchedObjects - The objects to write to file
|
|
92
|
-
* @returns {Promise<void>} Resolves when the file is written or rejects on error
|
|
93
|
-
*/
|
|
136
|
+
/** Writes fetched objects to the local file system (local development only). */
|
|
94
137
|
async function downloadToLocal(itemType, fetchedObjects) {
|
|
95
138
|
console.log(`Downloading ${itemType} to local file system.`);
|
|
96
139
|
try {
|
|
@@ -119,21 +162,28 @@ async function downloadToLocal(itemType, fetchedObjects) {
|
|
|
119
162
|
return Promise.reject(error);
|
|
120
163
|
}
|
|
121
164
|
}
|
|
122
|
-
/**
|
|
123
|
-
* Truncates a filename if it exceeds the maximum allowed length.
|
|
124
|
-
* @param {string} filename - The filename to truncate
|
|
125
|
-
* @returns {string} The truncated filename
|
|
126
|
-
*/
|
|
127
165
|
function truncateFilename(filename) {
|
|
128
|
-
// If the filename is already within the limit, return it as is.
|
|
129
166
|
if (filename.length <= constants_1.MAX_DEVREV_FILENAME_LENGTH) {
|
|
130
167
|
return filename;
|
|
131
168
|
}
|
|
132
169
|
console.warn(`Filename length exceeds the maximum limit of ${constants_1.MAX_DEVREV_FILENAME_LENGTH} characters. Truncating filename.`);
|
|
133
170
|
const extension = filename.slice(-constants_1.MAX_DEVREV_FILENAME_EXTENSION_LENGTH);
|
|
134
|
-
// Calculate how many characters are available for the name part after accounting for the extension and "..."
|
|
135
171
|
const availableNameLength = constants_1.MAX_DEVREV_FILENAME_LENGTH - constants_1.MAX_DEVREV_FILENAME_EXTENSION_LENGTH - 3; // -3 for "..."
|
|
136
|
-
// Truncate the name part and add an ellipsis
|
|
137
172
|
const truncatedFilename = filename.slice(0, availableNameLength);
|
|
138
173
|
return `${truncatedFilename}...${extension}`;
|
|
139
174
|
}
|
|
175
|
+
/** Destroys a stream to prevent memory leaks. */
|
|
176
|
+
function destroyHttpStream(httpStream) {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
try {
|
|
179
|
+
if (typeof ((_a = httpStream === null || httpStream === void 0 ? void 0 : httpStream.data) === null || _a === void 0 ? void 0 : _a.destroy) === 'function') {
|
|
180
|
+
httpStream.data.destroy();
|
|
181
|
+
}
|
|
182
|
+
else if (typeof ((_b = httpStream === null || httpStream === void 0 ? void 0 : httpStream.data) === null || _b === void 0 ? void 0 : _b.close) === 'function') {
|
|
183
|
+
httpStream.data.close();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
console.warn('Error while destroying stream:', error);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { ErrorRecord } from '../types/common';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { WorkerAdapterOptions } from '../types/workers';
|
|
2
|
+
import { AirSyncEvent } from '../types/extraction';
|
|
3
|
+
import { RuntimeOptions } from '../types/workers';
|
|
5
4
|
export interface UploaderFactoryInterface {
|
|
6
|
-
event:
|
|
7
|
-
options?:
|
|
5
|
+
event: AirSyncEvent;
|
|
6
|
+
options?: RuntimeOptions;
|
|
7
|
+
/** Skips confirm-upload; ESU uploads happen before a sync exists to attach them to. */
|
|
8
|
+
skipConfirmation?: boolean;
|
|
8
9
|
}
|
|
9
|
-
/**
|
|
10
|
-
* Generic result type for uploader operations that can either succeed with a response or fail with an error.
|
|
11
|
-
* @template T The type of the successful response data
|
|
12
|
-
*/
|
|
13
10
|
export type UploaderResult<T> = {
|
|
14
11
|
response: T;
|
|
15
12
|
error?: never;
|
|
@@ -17,28 +14,24 @@ export type UploaderResult<T> = {
|
|
|
17
14
|
response?: never;
|
|
18
15
|
error: unknown;
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export declare enum ArtifactDateField {
|
|
18
|
+
OldestCreatedDate = "oldest_created_date",
|
|
19
|
+
NewestCreatedDate = "newest_created_date",
|
|
20
|
+
OldestModifiedDate = "oldest_modified_date",
|
|
21
|
+
NewestModifiedDate = "newest_modified_date"
|
|
22
|
+
}
|
|
23
|
+
/** A file generated by the extractor and uploaded to AirSync. */
|
|
23
24
|
export interface Artifact {
|
|
24
25
|
id: string;
|
|
25
26
|
item_type: string;
|
|
26
27
|
item_count: number;
|
|
28
|
+
[ArtifactDateField.OldestCreatedDate]?: string;
|
|
29
|
+
[ArtifactDateField.NewestCreatedDate]?: string;
|
|
30
|
+
[ArtifactDateField.OldestModifiedDate]?: string;
|
|
31
|
+
[ArtifactDateField.NewestModifiedDate]?: string;
|
|
27
32
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*/
|
|
31
|
-
export interface ArtifactsPrepareResponse {
|
|
32
|
-
url: string;
|
|
33
|
-
id: string;
|
|
34
|
-
form_data: {
|
|
35
|
-
key: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* ArtifactToUpload is an interface that defines the structure of the response from the get upload url endpoint.
|
|
41
|
-
*/
|
|
33
|
+
export type ArtifactDateRanges = Pick<Artifact, ArtifactDateField.OldestCreatedDate | ArtifactDateField.NewestCreatedDate | ArtifactDateField.OldestModifiedDate | ArtifactDateField.NewestModifiedDate>;
|
|
34
|
+
/** Response from the get upload url endpoint. */
|
|
42
35
|
export interface ArtifactToUpload {
|
|
43
36
|
upload_url: string;
|
|
44
37
|
artifact_id: string;
|
|
@@ -47,30 +40,10 @@ export interface ArtifactToUpload {
|
|
|
47
40
|
value: string;
|
|
48
41
|
}[];
|
|
49
42
|
}
|
|
50
|
-
/**
|
|
51
|
-
* UploadResponse is an interface that defines the structure of the response from upload through Uploader.
|
|
52
|
-
*/
|
|
53
43
|
export interface UploadResponse {
|
|
54
44
|
artifact?: Artifact;
|
|
55
45
|
error?: ErrorRecord;
|
|
56
46
|
}
|
|
57
|
-
/**
|
|
58
|
-
* StreamAttachmentsResponse is an interface that defines the structure of the response from the stream attachments through Uploader.
|
|
59
|
-
*/
|
|
60
|
-
export interface StreamAttachmentsResponse {
|
|
61
|
-
ssorAttachments?: SsorAttachment[];
|
|
62
|
-
error?: ErrorRecord;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* StreamResponse is an interface that defines the structure of the response from the stream of single attachment through Uploader.
|
|
66
|
-
*/
|
|
67
|
-
export interface StreamResponse {
|
|
68
|
-
ssorAttachment?: SsorAttachment;
|
|
69
|
-
error?: ErrorRecord;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* SsorAttachment is an interface that defines the structure of the SSOR attachment.
|
|
73
|
-
*/
|
|
74
47
|
export interface SsorAttachment {
|
|
75
48
|
id: {
|
|
76
49
|
devrev: string;
|
|
@@ -84,12 +57,4 @@ export interface SsorAttachment {
|
|
|
84
57
|
};
|
|
85
58
|
inline?: boolean;
|
|
86
59
|
}
|
|
87
|
-
export interface StatsFileResponse {
|
|
88
|
-
error?: ErrorRecord;
|
|
89
|
-
statsFile?: StatsFileObject[];
|
|
90
|
-
}
|
|
91
|
-
export interface TransformerFileResponse {
|
|
92
|
-
error?: ErrorRecord;
|
|
93
|
-
transformerFile?: ExternalSystemItem[];
|
|
94
|
-
}
|
|
95
60
|
//# sourceMappingURL=uploader.interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.interfaces.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"uploader.interfaces.d.ts","sourceRoot":"","sources":["../../src/uploader/uploader.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IACxB;IAAE,QAAQ,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzC,oBAAY,iBAAiB;IAC3B,iBAAiB,wBAAwB;IACzC,iBAAiB,wBAAwB;IACzC,kBAAkB,yBAAyB;IAC3C,kBAAkB,yBAAyB;CAC5C;AAED,iEAAiE;AACjE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC;IAC/C,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC;IAC/C,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,EAAE,MAAM,CAAC;IAChD,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,EAAE,MAAM,CAAC;CACjD;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,QAAQ,EACN,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,kBAAkB,GACpC,iBAAiB,CAAC,kBAAkB,CACvC,CAAC;AAEF,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE;QACF,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArtifactDateField = void 0;
|
|
4
|
+
var ArtifactDateField;
|
|
5
|
+
(function (ArtifactDateField) {
|
|
6
|
+
ArtifactDateField["OldestCreatedDate"] = "oldest_created_date";
|
|
7
|
+
ArtifactDateField["NewestCreatedDate"] = "newest_created_date";
|
|
8
|
+
ArtifactDateField["OldestModifiedDate"] = "oldest_modified_date";
|
|
9
|
+
ArtifactDateField["NewestModifiedDate"] = "newest_modified_date";
|
|
10
|
+
})(ArtifactDateField || (exports.ArtifactDateField = ArtifactDateField = {}));
|