@forge/os 1.2.1 → 1.3.0-next.1
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/out/index.d.ts +2 -2
- package/out/index.d.ts.map +1 -1
- package/out/os.d.ts +1 -2
- package/out/os.d.ts.map +1 -1
- package/out/os.js +0 -5
- package/out/types.d.ts +0 -3
- package/out/types.d.ts.map +1 -1
- package/package.json +2 -2
package/out/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { os } from './os';
|
|
2
2
|
import { errorCodes } from './errorCodes';
|
|
3
3
|
import { ForgeError } from './errors';
|
|
4
|
-
import { ObjectReference
|
|
5
|
-
export { errorCodes, os, ForgeError, ObjectReference
|
|
4
|
+
import { ObjectReference } from './types';
|
|
5
|
+
export { errorCodes, os, ForgeError, ObjectReference };
|
|
6
6
|
export default os;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC;AAEvD,eAAe,EAAE,CAAC"}
|
package/out/os.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ObjectReference
|
|
2
|
+
import { ObjectReference } from './types';
|
|
3
3
|
export declare class ObjectStoreClient {
|
|
4
4
|
private sendRequest;
|
|
5
5
|
private requestJson;
|
|
6
6
|
put(objectId: string, buffer: Buffer, ttlSeconds?: number): Promise<ObjectReference | undefined>;
|
|
7
7
|
get(objectId: string): Promise<ObjectReference | undefined>;
|
|
8
8
|
delete(objectId: string): Promise<void>;
|
|
9
|
-
listVersions(objectId: string): Promise<VersionsList | undefined>;
|
|
10
9
|
download(objectId: string): Promise<Buffer | undefined>;
|
|
11
10
|
}
|
|
12
11
|
export declare const os: ObjectStoreClient;
|
package/out/os.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../src/os.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../src/os.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAQ1C,qBAAa,iBAAiB;YAEd,WAAW;YASX,WAAW;IAqCZ,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAahG,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAU3D,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAerE;AAED,eAAO,MAAM,EAAE,mBAA0B,CAAC"}
|
package/out/os.js
CHANGED
|
@@ -55,11 +55,6 @@ class ObjectStoreClient {
|
|
|
55
55
|
async delete(objectId) {
|
|
56
56
|
await this.requestJson(ValidHttpMethod.DELETE, `api/v1/objects/${objectId}`, { Accept: 'application/json' });
|
|
57
57
|
}
|
|
58
|
-
async listVersions(objectId) {
|
|
59
|
-
return this.requestJson(ValidHttpMethod.GET, `api/v1/objects/${objectId}/versions`, {
|
|
60
|
-
Accept: 'application/json'
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
58
|
async download(objectId) {
|
|
64
59
|
const response = await this.sendRequest(`api/v1/objects/${objectId}/download`, {
|
|
65
60
|
method: ValidHttpMethod.GET,
|
package/out/types.d.ts
CHANGED
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/os",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-next.1",
|
|
4
4
|
"description": "Forge Object Store SDK",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"jest-when": "^3.6.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@forge/api": "^5.0.0"
|
|
23
|
+
"@forge/api": "^5.0.1-next.0"
|
|
24
24
|
}
|
|
25
25
|
}
|