frameio 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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/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/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/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -85,7 +85,7 @@ class Webhooks {
|
|
|
85
85
|
}
|
|
86
86
|
__index(accountId_1, workspaceId_1) {
|
|
87
87
|
return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
|
|
88
|
-
var _a, _b, _c;
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
89
|
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
90
90
|
const _queryParams = {};
|
|
91
91
|
if (include != null) {
|
|
@@ -101,8 +101,8 @@ class Webhooks {
|
|
|
101
101
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
102
102
|
}
|
|
103
103
|
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);
|
|
104
|
-
const _response = yield core.fetcher({
|
|
105
|
-
url: core.url.join((
|
|
104
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}/webhooks`),
|
|
106
106
|
method: "GET",
|
|
107
107
|
headers: _headers,
|
|
108
108
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -187,10 +187,10 @@ class Webhooks {
|
|
|
187
187
|
}
|
|
188
188
|
__create(accountId, workspaceId, request, requestOptions) {
|
|
189
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
var _a, _b, _c;
|
|
190
|
+
var _a, _b, _c, _d;
|
|
191
191
|
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);
|
|
192
|
-
const _response = yield core.fetcher({
|
|
193
|
-
url: core.url.join((
|
|
192
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
193
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}/webhooks`),
|
|
194
194
|
method: "POST",
|
|
195
195
|
headers: _headers,
|
|
196
196
|
contentType: "application/json",
|
|
@@ -271,15 +271,15 @@ class Webhooks {
|
|
|
271
271
|
}
|
|
272
272
|
__show(accountId_1, webhookId_1) {
|
|
273
273
|
return __awaiter(this, arguments, void 0, function* (accountId, webhookId, request = {}, requestOptions) {
|
|
274
|
-
var _a, _b, _c;
|
|
274
|
+
var _a, _b, _c, _d;
|
|
275
275
|
const { include } = request;
|
|
276
276
|
const _queryParams = {};
|
|
277
277
|
if (include != null) {
|
|
278
278
|
_queryParams["include"] = include;
|
|
279
279
|
}
|
|
280
280
|
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);
|
|
281
|
-
const _response = yield core.fetcher({
|
|
282
|
-
url: core.url.join((
|
|
281
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
282
|
+
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)}/webhooks/${encodeURIComponent(webhookId)}`),
|
|
283
283
|
method: "GET",
|
|
284
284
|
headers: _headers,
|
|
285
285
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -354,10 +354,10 @@ class Webhooks {
|
|
|
354
354
|
}
|
|
355
355
|
__delete(accountId, webhookId, requestOptions) {
|
|
356
356
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
var _a, _b, _c;
|
|
357
|
+
var _a, _b, _c, _d;
|
|
358
358
|
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);
|
|
359
|
-
const _response = yield core.fetcher({
|
|
360
|
-
url: core.url.join((
|
|
359
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
360
|
+
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)}/webhooks/${encodeURIComponent(webhookId)}`),
|
|
361
361
|
method: "DELETE",
|
|
362
362
|
headers: _headers,
|
|
363
363
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -440,10 +440,10 @@ class Webhooks {
|
|
|
440
440
|
}
|
|
441
441
|
__update(accountId, webhookId, request, requestOptions) {
|
|
442
442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
-
var _a, _b, _c;
|
|
443
|
+
var _a, _b, _c, _d;
|
|
444
444
|
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);
|
|
445
|
-
const _response = yield core.fetcher({
|
|
446
|
-
url: core.url.join((
|
|
445
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
446
|
+
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)}/webhooks/${encodeURIComponent(webhookId)}`),
|
|
447
447
|
method: "PATCH",
|
|
448
448
|
headers: _headers,
|
|
449
449
|
contentType: "application/json",
|
|
@@ -9,6 +9,7 @@ export declare namespace WorkspacePermissions {
|
|
|
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. */
|
|
@@ -85,7 +85,7 @@ class WorkspacePermissions {
|
|
|
85
85
|
}
|
|
86
86
|
__index(accountId_1, workspaceId_1) {
|
|
87
87
|
return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
|
|
88
|
-
var _a, _b, _c;
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
89
|
const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
90
90
|
const _queryParams = {};
|
|
91
91
|
if (includeDeactivated != null) {
|
|
@@ -101,8 +101,8 @@ class WorkspacePermissions {
|
|
|
101
101
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
102
102
|
}
|
|
103
103
|
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);
|
|
104
|
-
const _response = yield core.fetcher({
|
|
105
|
-
url: core.url.join((
|
|
104
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}/users`),
|
|
106
106
|
method: "GET",
|
|
107
107
|
headers: _headers,
|
|
108
108
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -178,10 +178,10 @@ class WorkspacePermissions {
|
|
|
178
178
|
}
|
|
179
179
|
__workspaceUserRolesDelete(accountId, workspaceId, userId, requestOptions) {
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
var _a, _b, _c;
|
|
181
|
+
var _a, _b, _c, _d;
|
|
182
182
|
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);
|
|
183
|
-
const _response = yield core.fetcher({
|
|
184
|
-
url: core.url.join((
|
|
183
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
184
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}/users/${encodeURIComponent(userId)}`),
|
|
185
185
|
method: "DELETE",
|
|
186
186
|
headers: _headers,
|
|
187
187
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -263,10 +263,10 @@ class WorkspacePermissions {
|
|
|
263
263
|
}
|
|
264
264
|
__workspaceUserRolesUpdate(accountId, workspaceId, userId, request, requestOptions) {
|
|
265
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
var _a, _b, _c;
|
|
266
|
+
var _a, _b, _c, _d;
|
|
267
267
|
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);
|
|
268
|
-
const _response = yield core.fetcher({
|
|
269
|
-
url: core.url.join((
|
|
268
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
269
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}/users/${encodeURIComponent(userId)}`),
|
|
270
270
|
method: "PATCH",
|
|
271
271
|
headers: _headers,
|
|
272
272
|
contentType: "application/json",
|
|
@@ -9,6 +9,7 @@ export declare namespace Workspaces {
|
|
|
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,15 +82,15 @@ class Workspaces {
|
|
|
82
82
|
}
|
|
83
83
|
__show(accountId_1, workspaceId_1) {
|
|
84
84
|
return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
|
|
85
|
-
var _a, _b, _c;
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
86
|
const { include } = request;
|
|
87
87
|
const _queryParams = {};
|
|
88
88
|
if (include != null) {
|
|
89
89
|
_queryParams["include"] = include;
|
|
90
90
|
}
|
|
91
91
|
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);
|
|
92
|
-
const _response = yield core.fetcher({
|
|
93
|
-
url: core.url.join((
|
|
92
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
93
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}`),
|
|
94
94
|
method: "GET",
|
|
95
95
|
headers: _headers,
|
|
96
96
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -168,10 +168,10 @@ class Workspaces {
|
|
|
168
168
|
}
|
|
169
169
|
__delete(accountId, workspaceId, requestOptions) {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
var _a, _b, _c;
|
|
171
|
+
var _a, _b, _c, _d;
|
|
172
172
|
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);
|
|
173
|
-
const _response = yield core.fetcher({
|
|
174
|
-
url: core.url.join((
|
|
173
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
174
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}`),
|
|
175
175
|
method: "DELETE",
|
|
176
176
|
headers: _headers,
|
|
177
177
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -251,10 +251,10 @@ class Workspaces {
|
|
|
251
251
|
}
|
|
252
252
|
__update(accountId, workspaceId, request, requestOptions) {
|
|
253
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
-
var _a, _b, _c;
|
|
254
|
+
var _a, _b, _c, _d;
|
|
255
255
|
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);
|
|
256
|
-
const _response = yield core.fetcher({
|
|
257
|
-
url: core.url.join((
|
|
256
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
257
|
+
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)}/workspaces/${encodeURIComponent(workspaceId)}`),
|
|
258
258
|
method: "PATCH",
|
|
259
259
|
headers: _headers,
|
|
260
260
|
contentType: "application/json",
|
|
@@ -337,7 +337,7 @@ class Workspaces {
|
|
|
337
337
|
}
|
|
338
338
|
__index(accountId_1) {
|
|
339
339
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
340
|
-
var _a, _b, _c;
|
|
340
|
+
var _a, _b, _c, _d;
|
|
341
341
|
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
342
342
|
const _queryParams = {};
|
|
343
343
|
if (include != null) {
|
|
@@ -353,8 +353,8 @@ class Workspaces {
|
|
|
353
353
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
354
354
|
}
|
|
355
355
|
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);
|
|
356
|
-
const _response = yield core.fetcher({
|
|
357
|
-
url: core.url.join((
|
|
356
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
357
|
+
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)}/workspaces`),
|
|
358
358
|
method: "GET",
|
|
359
359
|
headers: _headers,
|
|
360
360
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -436,10 +436,10 @@ class Workspaces {
|
|
|
436
436
|
}
|
|
437
437
|
__create(accountId, request, requestOptions) {
|
|
438
438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
-
var _a, _b, _c;
|
|
439
|
+
var _a, _b, _c, _d;
|
|
440
440
|
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);
|
|
441
|
-
const _response = yield core.fetcher({
|
|
442
|
-
url: core.url.join((
|
|
441
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
442
|
+
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)}/workspaces`),
|
|
443
443
|
method: "POST",
|
|
444
444
|
headers: _headers,
|
|
445
445
|
contentType: "application/json",
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.3.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
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/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class FrameioClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "frameio",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "frameio/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.3.0",
|
|
25
|
+
"User-Agent": "frameio/1.3.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _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. */
|
|
@@ -48,7 +48,7 @@ export class AccountPermissions {
|
|
|
48
48
|
}
|
|
49
49
|
__index(accountId_1) {
|
|
50
50
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
51
|
-
var _a, _b, _c;
|
|
51
|
+
var _a, _b, _c, _d;
|
|
52
52
|
const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
53
53
|
const _queryParams = {};
|
|
54
54
|
if (includeDeactivated != null) {
|
|
@@ -64,8 +64,8 @@ export class AccountPermissions {
|
|
|
64
64
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
65
65
|
}
|
|
66
66
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
67
|
-
const _response = yield core.fetcher({
|
|
68
|
-
url: core.url.join((
|
|
67
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
68
|
+
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`),
|
|
69
69
|
method: "GET",
|
|
70
70
|
headers: _headers,
|
|
71
71
|
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. */
|
|
@@ -46,7 +46,7 @@ export class Accounts {
|
|
|
46
46
|
}
|
|
47
47
|
__index() {
|
|
48
48
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
49
|
-
var _a, _b, _c;
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
50
|
const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
51
51
|
const _queryParams = {};
|
|
52
52
|
if (after != null) {
|
|
@@ -59,8 +59,8 @@ export class Accounts {
|
|
|
59
59
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
60
60
|
}
|
|
61
61
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
62
|
-
const _response = yield core.fetcher({
|
|
63
|
-
url: core.url.join((
|
|
62
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
63
|
+
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"),
|
|
64
64
|
method: "GET",
|
|
65
65
|
headers: _headers,
|
|
66
66
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -140,7 +140,7 @@ export class Accounts {
|
|
|
140
140
|
}
|
|
141
141
|
__auditlogIndex(accountId_1) {
|
|
142
142
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
143
|
-
var _a, _b, _c;
|
|
143
|
+
var _a, _b, _c, _d;
|
|
144
144
|
const { include, filters, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
145
145
|
const _queryParams = {};
|
|
146
146
|
if (include != null) {
|
|
@@ -159,8 +159,8 @@ export class Accounts {
|
|
|
159
159
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
160
160
|
}
|
|
161
161
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader(), "api-version": "4.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
162
|
-
const _response = yield core.fetcher({
|
|
163
|
-
url: core.url.join((
|
|
162
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
163
|
+
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`),
|
|
164
164
|
method: "GET",
|
|
165
165
|
headers: _headers,
|
|
166
166
|
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. */
|
|
@@ -58,7 +58,7 @@ export class Comments {
|
|
|
58
58
|
}
|
|
59
59
|
__show(accountId_1, commentId_1) {
|
|
60
60
|
return __awaiter(this, arguments, void 0, function* (accountId, commentId, request = {}, requestOptions) {
|
|
61
|
-
var _a, _b, _c;
|
|
61
|
+
var _a, _b, _c, _d;
|
|
62
62
|
const { timestamp_as_timecode: timestampAsTimecode, include } = request;
|
|
63
63
|
const _queryParams = {};
|
|
64
64
|
if (timestampAsTimecode != null) {
|
|
@@ -68,8 +68,8 @@ export class Comments {
|
|
|
68
68
|
_queryParams["include"] = include;
|
|
69
69
|
}
|
|
70
70
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
71
|
-
const _response = yield core.fetcher({
|
|
72
|
-
url: core.url.join((
|
|
71
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
72
|
+
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)}`),
|
|
73
73
|
method: "GET",
|
|
74
74
|
headers: _headers,
|
|
75
75
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -144,10 +144,10 @@ export class Comments {
|
|
|
144
144
|
}
|
|
145
145
|
__delete(accountId, commentId, requestOptions) {
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
var _a, _b, _c;
|
|
147
|
+
var _a, _b, _c, _d;
|
|
148
148
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
|
-
const _response = yield core.fetcher({
|
|
150
|
-
url: core.url.join((
|
|
149
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
150
|
+
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)}`),
|
|
151
151
|
method: "DELETE",
|
|
152
152
|
headers: _headers,
|
|
153
153
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -231,15 +231,15 @@ export class Comments {
|
|
|
231
231
|
}
|
|
232
232
|
__update(accountId, commentId, request, requestOptions) {
|
|
233
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
var _a, _b, _c;
|
|
234
|
+
var _a, _b, _c, _d;
|
|
235
235
|
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
236
236
|
const _queryParams = {};
|
|
237
237
|
if (timestampAsTimecode != null) {
|
|
238
238
|
_queryParams["timestamp_as_timecode"] = timestampAsTimecode.toString();
|
|
239
239
|
}
|
|
240
240
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
241
|
-
const _response = yield core.fetcher({
|
|
242
|
-
url: core.url.join((
|
|
241
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
242
|
+
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)}`),
|
|
243
243
|
method: "PATCH",
|
|
244
244
|
headers: _headers,
|
|
245
245
|
contentType: "application/json",
|
|
@@ -324,7 +324,7 @@ export class Comments {
|
|
|
324
324
|
}
|
|
325
325
|
__index(accountId_1, fileId_1) {
|
|
326
326
|
return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
|
|
327
|
-
var _a, _b, _c;
|
|
327
|
+
var _a, _b, _c, _d;
|
|
328
328
|
const { timestamp_as_timecode: timestampAsTimecode, include, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
329
329
|
const _queryParams = {};
|
|
330
330
|
if (timestampAsTimecode != null) {
|
|
@@ -343,8 +343,8 @@ export class Comments {
|
|
|
343
343
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
344
344
|
}
|
|
345
345
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
346
|
-
const _response = yield core.fetcher({
|
|
347
|
-
url: core.url.join((
|
|
346
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
347
|
+
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`),
|
|
348
348
|
method: "GET",
|
|
349
349
|
headers: _headers,
|
|
350
350
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -429,15 +429,15 @@ export class Comments {
|
|
|
429
429
|
}
|
|
430
430
|
__create(accountId, fileId, request, requestOptions) {
|
|
431
431
|
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
-
var _a, _b, _c;
|
|
432
|
+
var _a, _b, _c, _d;
|
|
433
433
|
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
434
434
|
const _queryParams = {};
|
|
435
435
|
if (timestampAsTimecode != null) {
|
|
436
436
|
_queryParams["timestamp_as_timecode"] = timestampAsTimecode.toString();
|
|
437
437
|
}
|
|
438
438
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
439
|
-
const _response = yield core.fetcher({
|
|
440
|
-
url: core.url.join((
|
|
439
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
440
|
+
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`),
|
|
441
441
|
method: "POST",
|
|
442
442
|
headers: _headers,
|
|
443
443
|
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. */
|