frameio 1.2.3 → 1.3.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/dist/cjs/Client.d.ts +1 -0
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/accountPermissions/client/Client.js +3 -3
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/client/Client.js +6 -6
- package/dist/cjs/api/resources/comments/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/comments/client/Client.js +15 -15
- package/dist/cjs/api/resources/files/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/files/client/Client.js +30 -30
- package/dist/cjs/api/resources/folders/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/folders/client/Client.js +24 -24
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/metadata/client/Client.js +6 -6
- package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/metadataFields/client/Client.js +12 -12
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +9 -9
- package/dist/cjs/api/resources/projects/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/projects/client/Client.js +15 -15
- package/dist/cjs/api/resources/shares/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shares/client/Client.js +30 -30
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/users/client/Client.js +3 -3
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/versionStacks/client/Client.js +18 -18
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +15 -15
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +9 -9
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/workspaces/client/Client.js +15 -15
- package/dist/cjs/api/types/AssetShareParams.d.ts +3 -2
- package/dist/cjs/api/types/Share.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +1 -0
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/accountPermissions/client/Client.mjs +3 -3
- package/dist/esm/api/resources/accounts/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/accounts/client/Client.mjs +6 -6
- package/dist/esm/api/resources/comments/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/comments/client/Client.mjs +15 -15
- package/dist/esm/api/resources/files/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/files/client/Client.mjs +30 -30
- package/dist/esm/api/resources/folders/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/folders/client/Client.mjs +24 -24
- package/dist/esm/api/resources/metadata/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/metadata/client/Client.mjs +6 -6
- package/dist/esm/api/resources/metadataFields/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/metadataFields/client/Client.mjs +12 -12
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +9 -9
- package/dist/esm/api/resources/projects/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/projects/client/Client.mjs +15 -15
- package/dist/esm/api/resources/shares/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shares/client/Client.mjs +30 -30
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/users/client/Client.mjs +3 -3
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +18 -18
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +15 -15
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +9 -9
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/workspaces/client/Client.mjs +15 -15
- package/dist/esm/api/types/AssetShareParams.d.mts +3 -2
- package/dist/esm/api/types/Share.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare namespace FrameioClient {
|
|
|
23
23
|
token: core.Supplier<core.BearerToken>;
|
|
24
24
|
/** Additional headers to include in requests. */
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
|
+
fetcher?: core.FetchFunction;
|
|
26
27
|
}
|
|
27
28
|
interface RequestOptions {
|
|
28
29
|
/** The maximum time to wait for a response in seconds. */
|
package/dist/cjs/Client.js
CHANGED
|
@@ -57,8 +57,8 @@ class FrameioClient {
|
|
|
57
57
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
58
58
|
"X-Fern-Language": "JavaScript",
|
|
59
59
|
"X-Fern-SDK-Name": "frameio",
|
|
60
|
-
"X-Fern-SDK-Version": "1.
|
|
61
|
-
"User-Agent": "frameio/1.
|
|
60
|
+
"X-Fern-SDK-Version": "1.3.1",
|
|
61
|
+
"User-Agent": "frameio/1.3.1",
|
|
62
62
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
63
63
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
64
64
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -9,6 +9,7 @@ export declare namespace AccountPermissions {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -84,7 +84,7 @@ class AccountPermissions {
|
|
|
84
84
|
}
|
|
85
85
|
__index(accountId_1) {
|
|
86
86
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
87
|
-
var _a, _b, _c;
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
88
|
const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
89
89
|
const _queryParams = {};
|
|
90
90
|
if (includeDeactivated != null) {
|
|
@@ -100,8 +100,8 @@ class AccountPermissions {
|
|
|
100
100
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
101
101
|
}
|
|
102
102
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
-
const _response = yield core.fetcher({
|
|
104
|
-
url: core.url.join((
|
|
103
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
104
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/users`),
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: _headers,
|
|
107
107
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -9,6 +9,7 @@ export declare namespace Accounts {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -82,7 +82,7 @@ class Accounts {
|
|
|
82
82
|
}
|
|
83
83
|
__index() {
|
|
84
84
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
85
|
-
var _a, _b, _c;
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
86
|
const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
87
87
|
const _queryParams = {};
|
|
88
88
|
if (after != null) {
|
|
@@ -95,8 +95,8 @@ class Accounts {
|
|
|
95
95
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
96
96
|
}
|
|
97
97
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
98
|
-
const _response = yield core.fetcher({
|
|
99
|
-
url: core.url.join((
|
|
98
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
99
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, "v4/accounts"),
|
|
100
100
|
method: "GET",
|
|
101
101
|
headers: _headers,
|
|
102
102
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -176,7 +176,7 @@ class Accounts {
|
|
|
176
176
|
}
|
|
177
177
|
__auditlogIndex(accountId_1) {
|
|
178
178
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
179
|
-
var _a, _b, _c;
|
|
179
|
+
var _a, _b, _c, _d;
|
|
180
180
|
const { include, filters, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
181
181
|
const _queryParams = {};
|
|
182
182
|
if (include != null) {
|
|
@@ -195,8 +195,8 @@ class Accounts {
|
|
|
195
195
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
196
196
|
}
|
|
197
197
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader(), "api-version": "4.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
198
|
-
const _response = yield core.fetcher({
|
|
199
|
-
url: core.url.join((
|
|
198
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
199
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/audit_logs`),
|
|
200
200
|
method: "GET",
|
|
201
201
|
headers: _headers,
|
|
202
202
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -9,6 +9,7 @@ export declare namespace Comments {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -94,7 +94,7 @@ class Comments {
|
|
|
94
94
|
}
|
|
95
95
|
__show(accountId_1, commentId_1) {
|
|
96
96
|
return __awaiter(this, arguments, void 0, function* (accountId, commentId, request = {}, requestOptions) {
|
|
97
|
-
var _a, _b, _c;
|
|
97
|
+
var _a, _b, _c, _d;
|
|
98
98
|
const { timestamp_as_timecode: timestampAsTimecode, include } = request;
|
|
99
99
|
const _queryParams = {};
|
|
100
100
|
if (timestampAsTimecode != null) {
|
|
@@ -104,8 +104,8 @@ class Comments {
|
|
|
104
104
|
_queryParams["include"] = include;
|
|
105
105
|
}
|
|
106
106
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
107
|
-
const _response = yield core.fetcher({
|
|
108
|
-
url: core.url.join((
|
|
107
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
108
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/comments/${encodeURIComponent(commentId)}`),
|
|
109
109
|
method: "GET",
|
|
110
110
|
headers: _headers,
|
|
111
111
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -180,10 +180,10 @@ class Comments {
|
|
|
180
180
|
}
|
|
181
181
|
__delete(accountId, commentId, requestOptions) {
|
|
182
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
-
var _a, _b, _c;
|
|
183
|
+
var _a, _b, _c, _d;
|
|
184
184
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
185
|
-
const _response = yield core.fetcher({
|
|
186
|
-
url: core.url.join((
|
|
185
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
186
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/comments/${encodeURIComponent(commentId)}`),
|
|
187
187
|
method: "DELETE",
|
|
188
188
|
headers: _headers,
|
|
189
189
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -267,15 +267,15 @@ class Comments {
|
|
|
267
267
|
}
|
|
268
268
|
__update(accountId, commentId, request, requestOptions) {
|
|
269
269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
-
var _a, _b, _c;
|
|
270
|
+
var _a, _b, _c, _d;
|
|
271
271
|
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
272
272
|
const _queryParams = {};
|
|
273
273
|
if (timestampAsTimecode != null) {
|
|
274
274
|
_queryParams["timestamp_as_timecode"] = timestampAsTimecode.toString();
|
|
275
275
|
}
|
|
276
276
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
277
|
-
const _response = yield core.fetcher({
|
|
278
|
-
url: core.url.join((
|
|
277
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
278
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/comments/${encodeURIComponent(commentId)}`),
|
|
279
279
|
method: "PATCH",
|
|
280
280
|
headers: _headers,
|
|
281
281
|
contentType: "application/json",
|
|
@@ -360,7 +360,7 @@ class Comments {
|
|
|
360
360
|
}
|
|
361
361
|
__index(accountId_1, fileId_1) {
|
|
362
362
|
return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
|
|
363
|
-
var _a, _b, _c;
|
|
363
|
+
var _a, _b, _c, _d;
|
|
364
364
|
const { timestamp_as_timecode: timestampAsTimecode, include, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
365
365
|
const _queryParams = {};
|
|
366
366
|
if (timestampAsTimecode != null) {
|
|
@@ -379,8 +379,8 @@ class Comments {
|
|
|
379
379
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
380
380
|
}
|
|
381
381
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
382
|
-
const _response = yield core.fetcher({
|
|
383
|
-
url: core.url.join((
|
|
382
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
383
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/comments`),
|
|
384
384
|
method: "GET",
|
|
385
385
|
headers: _headers,
|
|
386
386
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -465,15 +465,15 @@ class Comments {
|
|
|
465
465
|
}
|
|
466
466
|
__create(accountId, fileId, request, requestOptions) {
|
|
467
467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
-
var _a, _b, _c;
|
|
468
|
+
var _a, _b, _c, _d;
|
|
469
469
|
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
470
470
|
const _queryParams = {};
|
|
471
471
|
if (timestampAsTimecode != null) {
|
|
472
472
|
_queryParams["timestamp_as_timecode"] = timestampAsTimecode.toString();
|
|
473
473
|
}
|
|
474
474
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
475
|
-
const _response = yield core.fetcher({
|
|
476
|
-
url: core.url.join((
|
|
475
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
476
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/comments`),
|
|
477
477
|
method: "POST",
|
|
478
478
|
headers: _headers,
|
|
479
479
|
contentType: "application/json",
|
|
@@ -9,6 +9,7 @@ export declare namespace Files {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -97,7 +97,7 @@ class Files {
|
|
|
97
97
|
}
|
|
98
98
|
__list(accountId_1, folderId_1) {
|
|
99
99
|
return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
|
|
100
|
-
var _a, _b, _c;
|
|
100
|
+
var _a, _b, _c, _d;
|
|
101
101
|
const { include, sort, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
102
102
|
const _queryParams = {};
|
|
103
103
|
if (include != null) {
|
|
@@ -116,8 +116,8 @@ class Files {
|
|
|
116
116
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
117
117
|
}
|
|
118
118
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
119
|
-
const _response = yield core.fetcher({
|
|
120
|
-
url: core.url.join((
|
|
119
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
120
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
|
|
121
121
|
method: "GET",
|
|
122
122
|
headers: _headers,
|
|
123
123
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -202,10 +202,10 @@ class Files {
|
|
|
202
202
|
}
|
|
203
203
|
__create(accountId, folderId, request, requestOptions) {
|
|
204
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
-
var _a, _b, _c;
|
|
205
|
+
var _a, _b, _c, _d;
|
|
206
206
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
207
|
-
const _response = yield core.fetcher({
|
|
208
|
-
url: core.url.join((
|
|
207
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
208
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
|
|
209
209
|
method: "POST",
|
|
210
210
|
headers: _headers,
|
|
211
211
|
contentType: "application/json",
|
|
@@ -298,15 +298,15 @@ class Files {
|
|
|
298
298
|
}
|
|
299
299
|
__show(accountId_1, fileId_1) {
|
|
300
300
|
return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
|
|
301
|
-
var _a, _b, _c;
|
|
301
|
+
var _a, _b, _c, _d;
|
|
302
302
|
const { include } = request;
|
|
303
303
|
const _queryParams = {};
|
|
304
304
|
if (include != null) {
|
|
305
305
|
_queryParams["include"] = include;
|
|
306
306
|
}
|
|
307
307
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
308
|
-
const _response = yield core.fetcher({
|
|
309
|
-
url: core.url.join((
|
|
308
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
309
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
|
|
310
310
|
method: "GET",
|
|
311
311
|
headers: _headers,
|
|
312
312
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -381,10 +381,10 @@ class Files {
|
|
|
381
381
|
}
|
|
382
382
|
__delete(accountId, fileId, requestOptions) {
|
|
383
383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
-
var _a, _b, _c;
|
|
384
|
+
var _a, _b, _c, _d;
|
|
385
385
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
386
|
-
const _response = yield core.fetcher({
|
|
387
|
-
url: core.url.join((
|
|
386
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
387
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
|
|
388
388
|
method: "DELETE",
|
|
389
389
|
headers: _headers,
|
|
390
390
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -464,10 +464,10 @@ class Files {
|
|
|
464
464
|
}
|
|
465
465
|
__update(accountId, fileId, request, requestOptions) {
|
|
466
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
-
var _a, _b, _c;
|
|
467
|
+
var _a, _b, _c, _d;
|
|
468
468
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
469
|
-
const _response = yield core.fetcher({
|
|
470
|
-
url: core.url.join((
|
|
469
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
470
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
|
|
471
471
|
method: "PATCH",
|
|
472
472
|
headers: _headers,
|
|
473
473
|
contentType: "application/json",
|
|
@@ -552,7 +552,7 @@ class Files {
|
|
|
552
552
|
}
|
|
553
553
|
__copy(accountId_1, fileId_1) {
|
|
554
554
|
return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
|
|
555
|
-
var _a, _b, _c;
|
|
555
|
+
var _a, _b, _c, _d;
|
|
556
556
|
const { copy_metadata: copyMetadata, copy_comments: copyComments } = request, _body = __rest(request, ["copy_metadata", "copy_comments"]);
|
|
557
557
|
const _queryParams = {};
|
|
558
558
|
if (copyMetadata != null) {
|
|
@@ -562,8 +562,8 @@ class Files {
|
|
|
562
562
|
_queryParams["copy_comments"] = copyComments;
|
|
563
563
|
}
|
|
564
564
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
565
|
-
const _response = yield core.fetcher({
|
|
566
|
-
url: core.url.join((
|
|
565
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
566
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/copy`),
|
|
567
567
|
method: "POST",
|
|
568
568
|
headers: _headers,
|
|
569
569
|
contentType: "application/json",
|
|
@@ -647,10 +647,10 @@ class Files {
|
|
|
647
647
|
}
|
|
648
648
|
__createRemoteUpload(accountId, folderId, request, requestOptions) {
|
|
649
649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
650
|
-
var _a, _b, _c;
|
|
650
|
+
var _a, _b, _c, _d;
|
|
651
651
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
652
|
-
const _response = yield core.fetcher({
|
|
653
|
-
url: core.url.join((
|
|
652
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
653
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/remote_upload`),
|
|
654
654
|
method: "POST",
|
|
655
655
|
headers: _headers,
|
|
656
656
|
contentType: "application/json",
|
|
@@ -733,10 +733,10 @@ class Files {
|
|
|
733
733
|
}
|
|
734
734
|
__move(accountId, fileId, request, requestOptions) {
|
|
735
735
|
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
-
var _a, _b, _c;
|
|
736
|
+
var _a, _b, _c, _d;
|
|
737
737
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
738
|
-
const _response = yield core.fetcher({
|
|
739
|
-
url: core.url.join((
|
|
738
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
739
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/move`),
|
|
740
740
|
method: "PATCH",
|
|
741
741
|
headers: _headers,
|
|
742
742
|
contentType: "application/json",
|
|
@@ -820,10 +820,10 @@ class Files {
|
|
|
820
820
|
}
|
|
821
821
|
__createLocalUpload(accountId, folderId, request, requestOptions) {
|
|
822
822
|
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
-
var _a, _b, _c;
|
|
823
|
+
var _a, _b, _c, _d;
|
|
824
824
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
825
|
-
const _response = yield core.fetcher({
|
|
826
|
-
url: core.url.join((
|
|
825
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
826
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/local_upload`),
|
|
827
827
|
method: "POST",
|
|
828
828
|
headers: _headers,
|
|
829
829
|
contentType: "application/json",
|
|
@@ -901,10 +901,10 @@ class Files {
|
|
|
901
901
|
}
|
|
902
902
|
__showFileUploadStatus(accountId, fileId, requestOptions) {
|
|
903
903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
904
|
-
var _a, _b, _c;
|
|
904
|
+
var _a, _b, _c, _d;
|
|
905
905
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
906
|
-
const _response = yield core.fetcher({
|
|
907
|
-
url: core.url.join((
|
|
906
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
907
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/status`),
|
|
908
908
|
method: "GET",
|
|
909
909
|
headers: _headers,
|
|
910
910
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -9,6 +9,7 @@ export declare namespace Folders {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -93,15 +93,15 @@ class Folders {
|
|
|
93
93
|
}
|
|
94
94
|
__show(accountId_1, folderId_1) {
|
|
95
95
|
return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
|
|
96
|
-
var _a, _b, _c;
|
|
96
|
+
var _a, _b, _c, _d;
|
|
97
97
|
const { include } = request;
|
|
98
98
|
const _queryParams = {};
|
|
99
99
|
if (include != null) {
|
|
100
100
|
_queryParams["include"] = include;
|
|
101
101
|
}
|
|
102
102
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
-
const _response = yield core.fetcher({
|
|
104
|
-
url: core.url.join((
|
|
103
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
104
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: _headers,
|
|
107
107
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -176,10 +176,10 @@ class Folders {
|
|
|
176
176
|
}
|
|
177
177
|
__delete(accountId, folderId, requestOptions) {
|
|
178
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
-
var _a, _b, _c;
|
|
179
|
+
var _a, _b, _c, _d;
|
|
180
180
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
181
|
-
const _response = yield core.fetcher({
|
|
182
|
-
url: core.url.join((
|
|
181
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
182
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
|
|
183
183
|
method: "DELETE",
|
|
184
184
|
headers: _headers,
|
|
185
185
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -259,10 +259,10 @@ class Folders {
|
|
|
259
259
|
}
|
|
260
260
|
__update(accountId, folderId, request, requestOptions) {
|
|
261
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
-
var _a, _b, _c;
|
|
262
|
+
var _a, _b, _c, _d;
|
|
263
263
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
264
|
-
const _response = yield core.fetcher({
|
|
265
|
-
url: core.url.join((
|
|
264
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
265
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
|
|
266
266
|
method: "PATCH",
|
|
267
267
|
headers: _headers,
|
|
268
268
|
contentType: "application/json",
|
|
@@ -359,7 +359,7 @@ class Folders {
|
|
|
359
359
|
}
|
|
360
360
|
__index(accountId_1, folderId_1) {
|
|
361
361
|
return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
|
|
362
|
-
var _a, _b, _c;
|
|
362
|
+
var _a, _b, _c, _d;
|
|
363
363
|
const { include, type: type_, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
364
364
|
const _queryParams = {};
|
|
365
365
|
if (include != null) {
|
|
@@ -378,8 +378,8 @@ class Folders {
|
|
|
378
378
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
379
379
|
}
|
|
380
380
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
381
|
-
const _response = yield core.fetcher({
|
|
382
|
-
url: core.url.join((
|
|
381
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
382
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/children`),
|
|
383
383
|
method: "GET",
|
|
384
384
|
headers: _headers,
|
|
385
385
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -463,15 +463,15 @@ class Folders {
|
|
|
463
463
|
}
|
|
464
464
|
__copy(accountId_1, folderId_1) {
|
|
465
465
|
return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
|
|
466
|
-
var _a, _b, _c;
|
|
466
|
+
var _a, _b, _c, _d;
|
|
467
467
|
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
468
468
|
const _queryParams = {};
|
|
469
469
|
if (copyMetadata != null) {
|
|
470
470
|
_queryParams["copy_metadata"] = copyMetadata.toString();
|
|
471
471
|
}
|
|
472
472
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
473
|
-
const _response = yield core.fetcher({
|
|
474
|
-
url: core.url.join((
|
|
473
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
474
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/copy`),
|
|
475
475
|
method: "POST",
|
|
476
476
|
headers: _headers,
|
|
477
477
|
contentType: "application/json",
|
|
@@ -555,7 +555,7 @@ class Folders {
|
|
|
555
555
|
}
|
|
556
556
|
__list(accountId_1, folderId_1) {
|
|
557
557
|
return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
|
|
558
|
-
var _a, _b, _c;
|
|
558
|
+
var _a, _b, _c, _d;
|
|
559
559
|
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
560
560
|
const _queryParams = {};
|
|
561
561
|
if (include != null) {
|
|
@@ -571,8 +571,8 @@ class Folders {
|
|
|
571
571
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
572
572
|
}
|
|
573
573
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
574
|
-
const _response = yield core.fetcher({
|
|
575
|
-
url: core.url.join((
|
|
574
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
575
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
|
|
576
576
|
method: "GET",
|
|
577
577
|
headers: _headers,
|
|
578
578
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -652,10 +652,10 @@ class Folders {
|
|
|
652
652
|
}
|
|
653
653
|
__create(accountId, folderId, request, requestOptions) {
|
|
654
654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
655
|
-
var _a, _b, _c;
|
|
655
|
+
var _a, _b, _c, _d;
|
|
656
656
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
657
|
-
const _response = yield core.fetcher({
|
|
658
|
-
url: core.url.join((
|
|
657
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
658
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
|
|
659
659
|
method: "POST",
|
|
660
660
|
headers: _headers,
|
|
661
661
|
contentType: "application/json",
|
|
@@ -738,10 +738,10 @@ class Folders {
|
|
|
738
738
|
}
|
|
739
739
|
__move(accountId, folderId, request, requestOptions) {
|
|
740
740
|
return __awaiter(this, void 0, void 0, function* () {
|
|
741
|
-
var _a, _b, _c;
|
|
741
|
+
var _a, _b, _c, _d;
|
|
742
742
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
743
|
-
const _response = yield core.fetcher({
|
|
744
|
-
url: core.url.join((
|
|
743
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
744
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/move`),
|
|
745
745
|
method: "PATCH",
|
|
746
746
|
headers: _headers,
|
|
747
747
|
contentType: "application/json",
|
|
@@ -9,6 +9,7 @@ export declare namespace Metadata {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -97,10 +97,10 @@ class Metadata {
|
|
|
97
97
|
}
|
|
98
98
|
__bulkUpdate(accountId, projectId, request, requestOptions) {
|
|
99
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
var _a, _b, _c;
|
|
100
|
+
var _a, _b, _c, _d;
|
|
101
101
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
102
|
-
const _response = yield core.fetcher({
|
|
103
|
-
url: core.url.join((
|
|
102
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
103
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/metadata/values`),
|
|
104
104
|
method: "PATCH",
|
|
105
105
|
headers: _headers,
|
|
106
106
|
contentType: "application/json",
|
|
@@ -181,15 +181,15 @@ class Metadata {
|
|
|
181
181
|
}
|
|
182
182
|
__show(accountId_1, fileId_1) {
|
|
183
183
|
return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
|
|
184
|
-
var _a, _b, _c;
|
|
184
|
+
var _a, _b, _c, _d;
|
|
185
185
|
const { show_null: showNull } = request;
|
|
186
186
|
const _queryParams = {};
|
|
187
187
|
if (showNull != null) {
|
|
188
188
|
_queryParams["show_null"] = showNull.toString();
|
|
189
189
|
}
|
|
190
190
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
191
|
-
const _response = yield core.fetcher({
|
|
192
|
-
url: core.url.join((
|
|
191
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
192
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/metadata`),
|
|
193
193
|
method: "GET",
|
|
194
194
|
headers: _headers,
|
|
195
195
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -9,6 +9,7 @@ export declare namespace MetadataFields {
|
|
|
9
9
|
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
14
15
|
/** The maximum time to wait for a response in seconds. */
|