frameio 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/accountPermissions/client/Client.js +66 -79
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/accounts/client/Client.js +67 -74
- package/dist/cjs/api/resources/comments/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/comments/client/Client.js +69 -82
- package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/Client.js +4 -1
- package/dist/cjs/api/resources/folders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/folders/client/Client.js +4 -1
- package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.d.ts +1 -0
- package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.js +1 -0
- package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.d.ts +1 -0
- package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.js +1 -0
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/metadata/client/Client.js +4 -4
- package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +66 -76
- package/dist/cjs/api/resources/projects/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/projects/client/Client.js +66 -79
- package/dist/cjs/api/resources/shares/client/Client.d.ts +8 -6
- package/dist/cjs/api/resources/shares/client/Client.js +130 -153
- package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
- package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/versionStacks/client/Client.js +5 -2
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +66 -79
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +66 -76
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/workspaces/client/Client.js +69 -79
- package/dist/cjs/api/types/AssetInclude.d.ts +1 -0
- package/dist/cjs/api/types/AssetInclude.js +1 -0
- package/dist/cjs/api/types/{AuditLogsResponse.d.ts → AuditLogsWithIncludesResponse.d.ts} +1 -1
- package/dist/cjs/api/types/{AssetsWithIncludesResponse.d.ts → FileAssetsWithIncludesResponse.d.ts} +1 -1
- package/dist/cjs/api/types/FolderAssetsWithIncludesResponse.d.ts +8 -0
- package/dist/cjs/api/types/{UserRolesResponse.d.ts → ProjectUserRolesResponse.d.ts} +1 -1
- package/dist/cjs/api/types/ProjectUserRolesResponse.js +3 -0
- package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.d.ts +8 -0
- package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.js +3 -0
- package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +11 -0
- package/dist/cjs/api/types/WorkspaceUserRolesResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -3
- package/dist/cjs/api/types/index.js +6 -3
- package/dist/cjs/core/index.d.ts +0 -2
- package/dist/cjs/core/index.js +0 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/accountPermissions/client/Client.mjs +66 -79
- package/dist/esm/api/resources/accounts/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/accounts/client/Client.mjs +67 -74
- package/dist/esm/api/resources/comments/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/comments/client/Client.mjs +69 -82
- package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/files/client/Client.mjs +4 -1
- package/dist/esm/api/resources/folders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/folders/client/Client.mjs +4 -1
- package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.d.mts +1 -0
- package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.mjs +1 -0
- package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.d.mts +1 -0
- package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.mjs +1 -0
- package/dist/esm/api/resources/metadata/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/metadata/client/Client.mjs +4 -4
- package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +66 -76
- package/dist/esm/api/resources/projects/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/projects/client/Client.mjs +66 -79
- package/dist/esm/api/resources/shares/client/Client.d.mts +8 -6
- package/dist/esm/api/resources/shares/client/Client.mjs +130 -153
- package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
- package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +5 -2
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +66 -79
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +66 -76
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/workspaces/client/Client.mjs +69 -79
- package/dist/esm/api/types/AssetInclude.d.mts +1 -0
- package/dist/esm/api/types/AssetInclude.mjs +1 -0
- package/dist/esm/api/types/{AuditLogsResponse.d.mts → AuditLogsWithIncludesResponse.d.mts} +1 -1
- package/dist/esm/api/types/{AssetsWithIncludesResponse.d.mts → FileAssetsWithIncludesResponse.d.mts} +1 -1
- package/dist/esm/api/types/FolderAssetsWithIncludesResponse.d.mts +8 -0
- package/dist/esm/api/types/{UserRolesResponse.d.mts → ProjectUserRolesResponse.d.mts} +1 -1
- package/dist/esm/api/types/ProjectUserRolesResponse.mjs +2 -0
- package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.d.mts +8 -0
- package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.mjs +2 -0
- package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +11 -0
- package/dist/esm/api/types/WorkspaceUserRolesResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -3
- package/dist/esm/api/types/index.mjs +6 -3
- package/dist/esm/core/index.d.mts +0 -2
- package/dist/esm/core/index.mjs +0 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +42 -216
- package/dist/cjs/core/pagination/Page.d.ts +0 -32
- package/dist/cjs/core/pagination/Page.js +0 -100
- package/dist/cjs/core/pagination/Pageable.d.ts +0 -14
- package/dist/cjs/core/pagination/Pageable.js +0 -10
- package/dist/cjs/core/pagination/index.d.ts +0 -2
- package/dist/cjs/core/pagination/index.js +0 -7
- package/dist/cjs/core/utils/index.d.ts +0 -1
- package/dist/cjs/core/utils/index.js +0 -5
- package/dist/cjs/core/utils/setObjectProperty.d.ts +0 -11
- package/dist/cjs/core/utils/setObjectProperty.js +0 -42
- package/dist/esm/core/pagination/Page.d.mts +0 -32
- package/dist/esm/core/pagination/Page.mjs +0 -96
- package/dist/esm/core/pagination/Pageable.d.mts +0 -14
- package/dist/esm/core/pagination/Pageable.mjs +0 -6
- package/dist/esm/core/pagination/index.d.mts +0 -2
- package/dist/esm/core/pagination/index.mjs +0 -2
- package/dist/esm/core/utils/index.d.mts +0 -1
- package/dist/esm/core/utils/index.mjs +0 -1
- package/dist/esm/core/utils/setObjectProperty.d.mts +0 -11
- package/dist/esm/core/utils/setObjectProperty.mjs +0 -39
- /package/dist/cjs/api/types/{AssetsWithIncludesResponse.js → AuditLogsWithIncludesResponse.js} +0 -0
- /package/dist/cjs/api/types/{AuditLogsResponse.js → FileAssetsWithIncludesResponse.js} +0 -0
- /package/dist/cjs/api/types/{UserRolesResponse.js → FolderAssetsWithIncludesResponse.js} +0 -0
- /package/dist/esm/api/types/{AssetsWithIncludesResponse.mjs → AuditLogsWithIncludesResponse.mjs} +0 -0
- /package/dist/esm/api/types/{AuditLogsResponse.mjs → FileAssetsWithIncludesResponse.mjs} +0 -0
- /package/dist/esm/api/types/{UserRolesResponse.mjs → FolderAssetsWithIncludesResponse.mjs} +0 -0
|
@@ -44,88 +44,78 @@ export class WorkspacePermissions {
|
|
|
44
44
|
* include_total_count: false
|
|
45
45
|
* })
|
|
46
46
|
*/
|
|
47
|
-
index(
|
|
47
|
+
index(accountId, workspaceId, request = {}, requestOptions) {
|
|
48
|
+
return core.HttpResponsePromise.fromPromise(this.__index(accountId, workspaceId, request, requestOptions));
|
|
49
|
+
}
|
|
50
|
+
__index(accountId_1, workspaceId_1) {
|
|
48
51
|
return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
throw new errors.FrameioError({
|
|
96
|
-
statusCode: _response.error.statusCode,
|
|
97
|
-
body: _response.error.body,
|
|
98
|
-
rawResponse: _response.rawResponse,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
switch (_response.error.reason) {
|
|
103
|
-
case "non-json":
|
|
52
|
+
var _a, _b, _c;
|
|
53
|
+
const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
|
|
54
|
+
const _queryParams = {};
|
|
55
|
+
if (includeDeactivated != null) {
|
|
56
|
+
_queryParams["include_deactivated"] = includeDeactivated.toString();
|
|
57
|
+
}
|
|
58
|
+
if (after != null) {
|
|
59
|
+
_queryParams["after"] = after;
|
|
60
|
+
}
|
|
61
|
+
if (pageSize != null) {
|
|
62
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
63
|
+
}
|
|
64
|
+
if (includeTotalCount != null) {
|
|
65
|
+
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
66
|
+
}
|
|
67
|
+
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);
|
|
68
|
+
const _response = yield core.fetcher({
|
|
69
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces/${encodeURIComponent(workspaceId)}/users`),
|
|
70
|
+
method: "GET",
|
|
71
|
+
headers: _headers,
|
|
72
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
73
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
74
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
75
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
76
|
+
});
|
|
77
|
+
if (_response.ok) {
|
|
78
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
79
|
+
}
|
|
80
|
+
if (_response.error.reason === "status-code") {
|
|
81
|
+
switch (_response.error.statusCode) {
|
|
82
|
+
case 400:
|
|
83
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
84
|
+
case 401:
|
|
85
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
86
|
+
case 403:
|
|
87
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
88
|
+
case 404:
|
|
89
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
90
|
+
case 409:
|
|
91
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
92
|
+
case 422:
|
|
93
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
94
|
+
case 429:
|
|
95
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
96
|
+
default:
|
|
104
97
|
throw new errors.FrameioError({
|
|
105
98
|
statusCode: _response.error.statusCode,
|
|
106
|
-
body: _response.error.
|
|
107
|
-
rawResponse: _response.rawResponse,
|
|
108
|
-
});
|
|
109
|
-
case "timeout":
|
|
110
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces/{workspace_id}/users.");
|
|
111
|
-
case "unknown":
|
|
112
|
-
throw new errors.FrameioError({
|
|
113
|
-
message: _response.error.errorMessage,
|
|
99
|
+
body: _response.error.body,
|
|
114
100
|
rawResponse: _response.rawResponse,
|
|
115
101
|
});
|
|
116
102
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
103
|
+
}
|
|
104
|
+
switch (_response.error.reason) {
|
|
105
|
+
case "non-json":
|
|
106
|
+
throw new errors.FrameioError({
|
|
107
|
+
statusCode: _response.error.statusCode,
|
|
108
|
+
body: _response.error.rawBody,
|
|
109
|
+
rawResponse: _response.rawResponse,
|
|
110
|
+
});
|
|
111
|
+
case "timeout":
|
|
112
|
+
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces/{workspace_id}/users.");
|
|
113
|
+
case "unknown":
|
|
114
|
+
throw new errors.FrameioError({
|
|
115
|
+
message: _response.error.errorMessage,
|
|
116
|
+
rawResponse: _response.rawResponse,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
129
119
|
});
|
|
130
120
|
}
|
|
131
121
|
/**
|
|
@@ -120,7 +120,8 @@ export declare class Workspaces {
|
|
|
120
120
|
* include_total_count: false
|
|
121
121
|
* })
|
|
122
122
|
*/
|
|
123
|
-
index(accountId: Frameio.Uuid, request?: Frameio.WorkspacesIndexRequest, requestOptions?: Workspaces.RequestOptions):
|
|
123
|
+
index(accountId: Frameio.Uuid, request?: Frameio.WorkspacesIndexRequest, requestOptions?: Workspaces.RequestOptions): core.HttpResponsePromise<Frameio.WorkspacesWithIncludesResponse>;
|
|
124
|
+
private __index;
|
|
124
125
|
/**
|
|
125
126
|
* Create workspace from an account. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
126
127
|
*
|
|
@@ -296,91 +296,81 @@ export class Workspaces {
|
|
|
296
296
|
* include_total_count: false
|
|
297
297
|
* })
|
|
298
298
|
*/
|
|
299
|
-
index(
|
|
299
|
+
index(accountId, request = {}, requestOptions) {
|
|
300
|
+
return core.HttpResponsePromise.fromPromise(this.__index(accountId, request, requestOptions));
|
|
301
|
+
}
|
|
302
|
+
__index(accountId_1) {
|
|
300
303
|
return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
default:
|
|
350
|
-
throw new errors.FrameioError({
|
|
351
|
-
statusCode: _response.error.statusCode,
|
|
352
|
-
body: _response.error.body,
|
|
353
|
-
rawResponse: _response.rawResponse,
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
switch (_response.error.reason) {
|
|
358
|
-
case "non-json":
|
|
304
|
+
var _a, _b, _c;
|
|
305
|
+
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
306
|
+
const _queryParams = {};
|
|
307
|
+
if (include != null) {
|
|
308
|
+
_queryParams["include"] = include;
|
|
309
|
+
}
|
|
310
|
+
if (after != null) {
|
|
311
|
+
_queryParams["after"] = after;
|
|
312
|
+
}
|
|
313
|
+
if (pageSize != null) {
|
|
314
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
315
|
+
}
|
|
316
|
+
if (includeTotalCount != null) {
|
|
317
|
+
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
318
|
+
}
|
|
319
|
+
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);
|
|
320
|
+
const _response = yield core.fetcher({
|
|
321
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces`),
|
|
322
|
+
method: "GET",
|
|
323
|
+
headers: _headers,
|
|
324
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
325
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
326
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
327
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
328
|
+
});
|
|
329
|
+
if (_response.ok) {
|
|
330
|
+
return {
|
|
331
|
+
data: _response.body,
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
if (_response.error.reason === "status-code") {
|
|
336
|
+
switch (_response.error.statusCode) {
|
|
337
|
+
case 400:
|
|
338
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
339
|
+
case 401:
|
|
340
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
341
|
+
case 403:
|
|
342
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
343
|
+
case 404:
|
|
344
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
345
|
+
case 409:
|
|
346
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
347
|
+
case 422:
|
|
348
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
349
|
+
case 429:
|
|
350
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
351
|
+
default:
|
|
359
352
|
throw new errors.FrameioError({
|
|
360
353
|
statusCode: _response.error.statusCode,
|
|
361
|
-
body: _response.error.
|
|
362
|
-
rawResponse: _response.rawResponse,
|
|
363
|
-
});
|
|
364
|
-
case "timeout":
|
|
365
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces.");
|
|
366
|
-
case "unknown":
|
|
367
|
-
throw new errors.FrameioError({
|
|
368
|
-
message: _response.error.errorMessage,
|
|
354
|
+
body: _response.error.body,
|
|
369
355
|
rawResponse: _response.rawResponse,
|
|
370
356
|
});
|
|
371
357
|
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
358
|
+
}
|
|
359
|
+
switch (_response.error.reason) {
|
|
360
|
+
case "non-json":
|
|
361
|
+
throw new errors.FrameioError({
|
|
362
|
+
statusCode: _response.error.statusCode,
|
|
363
|
+
body: _response.error.rawBody,
|
|
364
|
+
rawResponse: _response.rawResponse,
|
|
365
|
+
});
|
|
366
|
+
case "timeout":
|
|
367
|
+
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces.");
|
|
368
|
+
case "unknown":
|
|
369
|
+
throw new errors.FrameioError({
|
|
370
|
+
message: _response.error.errorMessage,
|
|
371
|
+
rawResponse: _response.rawResponse,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
384
374
|
});
|
|
385
375
|
}
|
|
386
376
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./User.mjs";
|
|
2
2
|
export * from "./SelectDefinition.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./ProjectUserRolesResponse.mjs";
|
|
4
4
|
export * from "./FieldDefinitionWithIncludes.mjs";
|
|
5
5
|
export * from "./AuditLogsInclude.mjs";
|
|
6
6
|
export * from "./Folder.mjs";
|
|
@@ -16,7 +16,6 @@ export * from "./DateDefinition.mjs";
|
|
|
16
16
|
export * from "./UserValue.mjs";
|
|
17
17
|
export * from "./FolderWithIncludes.mjs";
|
|
18
18
|
export * from "./UserSingleDefinitionParams.mjs";
|
|
19
|
-
export * from "./UserRolesResponse.mjs";
|
|
20
19
|
export * from "./CommentInclude.mjs";
|
|
21
20
|
export * from "./UpdateSelectMultiDefinitionParams.mjs";
|
|
22
21
|
export * from "./SelectMultiDefinitionWithIncludes.mjs";
|
|
@@ -52,6 +51,7 @@ export * from "./VersionStack.mjs";
|
|
|
52
51
|
export * from "./WorkspaceInclude.mjs";
|
|
53
52
|
export * from "./ProjectInclude.mjs";
|
|
54
53
|
export * from "./File_.mjs";
|
|
54
|
+
export * from "./VersionStackAssetsWithIncludesResponse.mjs";
|
|
55
55
|
export * from "./ShareResponse.mjs";
|
|
56
56
|
export * from "./NumberDefinition.mjs";
|
|
57
57
|
export * from "./Links.mjs";
|
|
@@ -66,6 +66,7 @@ export * from "./UpdateRatingDefinitionParams.mjs";
|
|
|
66
66
|
export * from "./JsonErrorResponse.mjs";
|
|
67
67
|
export * from "./UserRole.mjs";
|
|
68
68
|
export * from "./MultiUserValue.mjs";
|
|
69
|
+
export * from "./FolderAssetsWithIncludesResponse.mjs";
|
|
69
70
|
export * from "./ToggleDefinitionWithIncludes.mjs";
|
|
70
71
|
export * from "./ProfileResponse.mjs";
|
|
71
72
|
export * from "./UserMultiDefinitionParams.mjs";
|
|
@@ -81,6 +82,7 @@ export * from "./NotFound.mjs";
|
|
|
81
82
|
export * from "./UserSingleDefinitionWithIncludes.mjs";
|
|
82
83
|
export * from "./UserSingleDefinition.mjs";
|
|
83
84
|
export * from "./FieldDefinitionsWithIncludesResponse.mjs";
|
|
85
|
+
export * from "./FileAssetsWithIncludesResponse.mjs";
|
|
84
86
|
export * from "./Uuid.mjs";
|
|
85
87
|
export * from "./FolderCopyResponse.mjs";
|
|
86
88
|
export * from "./FileWithIncludes.mjs";
|
|
@@ -116,6 +118,7 @@ export * from "./Account.mjs";
|
|
|
116
118
|
export * from "./UpdateSelectDefinitionParams.mjs";
|
|
117
119
|
export * from "./RenditionMediaLink.mjs";
|
|
118
120
|
export * from "./IntegerValue.mjs";
|
|
121
|
+
export * from "./AuditLogsWithIncludesResponse.mjs";
|
|
119
122
|
export * from "./UpdateNumberDefinitionParams.mjs";
|
|
120
123
|
export * from "./ProjectWithIncludesResponse.mjs";
|
|
121
124
|
export * from "./FileUploadStatusResponse.mjs";
|
|
@@ -147,6 +150,7 @@ export * from "./FieldDefinition.mjs";
|
|
|
147
150
|
export * from "./ProjectsWithIncludesResponse.mjs";
|
|
148
151
|
export * from "./UpdateUserRolesResponse.mjs";
|
|
149
152
|
export * from "./VersionStackWithIncludesResponse.mjs";
|
|
153
|
+
export * from "./WorkspaceUserRolesResponse.mjs";
|
|
150
154
|
export * from "./VersionStacksWithIncludesResponse.mjs";
|
|
151
155
|
export * from "./AddAssetResponse.mjs";
|
|
152
156
|
export * from "./Unauthorized.mjs";
|
|
@@ -154,7 +158,6 @@ export * from "./WorkspaceParams.mjs";
|
|
|
154
158
|
export * from "./FileWithUploadUrlsResponse.mjs";
|
|
155
159
|
export * from "./Email.mjs";
|
|
156
160
|
export * from "./MetadataWithDefinition.mjs";
|
|
157
|
-
export * from "./AuditLogsResponse.mjs";
|
|
158
161
|
export * from "./AssetInclude.mjs";
|
|
159
162
|
export * from "./FileWithUploadUrls.mjs";
|
|
160
163
|
export * from "./FileSort.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./User.mjs";
|
|
2
2
|
export * from "./SelectDefinition.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./ProjectUserRolesResponse.mjs";
|
|
4
4
|
export * from "./FieldDefinitionWithIncludes.mjs";
|
|
5
5
|
export * from "./AuditLogsInclude.mjs";
|
|
6
6
|
export * from "./Folder.mjs";
|
|
@@ -16,7 +16,6 @@ export * from "./DateDefinition.mjs";
|
|
|
16
16
|
export * from "./UserValue.mjs";
|
|
17
17
|
export * from "./FolderWithIncludes.mjs";
|
|
18
18
|
export * from "./UserSingleDefinitionParams.mjs";
|
|
19
|
-
export * from "./UserRolesResponse.mjs";
|
|
20
19
|
export * from "./CommentInclude.mjs";
|
|
21
20
|
export * from "./UpdateSelectMultiDefinitionParams.mjs";
|
|
22
21
|
export * from "./SelectMultiDefinitionWithIncludes.mjs";
|
|
@@ -52,6 +51,7 @@ export * from "./VersionStack.mjs";
|
|
|
52
51
|
export * from "./WorkspaceInclude.mjs";
|
|
53
52
|
export * from "./ProjectInclude.mjs";
|
|
54
53
|
export * from "./File_.mjs";
|
|
54
|
+
export * from "./VersionStackAssetsWithIncludesResponse.mjs";
|
|
55
55
|
export * from "./ShareResponse.mjs";
|
|
56
56
|
export * from "./NumberDefinition.mjs";
|
|
57
57
|
export * from "./Links.mjs";
|
|
@@ -66,6 +66,7 @@ export * from "./UpdateRatingDefinitionParams.mjs";
|
|
|
66
66
|
export * from "./JsonErrorResponse.mjs";
|
|
67
67
|
export * from "./UserRole.mjs";
|
|
68
68
|
export * from "./MultiUserValue.mjs";
|
|
69
|
+
export * from "./FolderAssetsWithIncludesResponse.mjs";
|
|
69
70
|
export * from "./ToggleDefinitionWithIncludes.mjs";
|
|
70
71
|
export * from "./ProfileResponse.mjs";
|
|
71
72
|
export * from "./UserMultiDefinitionParams.mjs";
|
|
@@ -81,6 +82,7 @@ export * from "./NotFound.mjs";
|
|
|
81
82
|
export * from "./UserSingleDefinitionWithIncludes.mjs";
|
|
82
83
|
export * from "./UserSingleDefinition.mjs";
|
|
83
84
|
export * from "./FieldDefinitionsWithIncludesResponse.mjs";
|
|
85
|
+
export * from "./FileAssetsWithIncludesResponse.mjs";
|
|
84
86
|
export * from "./Uuid.mjs";
|
|
85
87
|
export * from "./FolderCopyResponse.mjs";
|
|
86
88
|
export * from "./FileWithIncludes.mjs";
|
|
@@ -116,6 +118,7 @@ export * from "./Account.mjs";
|
|
|
116
118
|
export * from "./UpdateSelectDefinitionParams.mjs";
|
|
117
119
|
export * from "./RenditionMediaLink.mjs";
|
|
118
120
|
export * from "./IntegerValue.mjs";
|
|
121
|
+
export * from "./AuditLogsWithIncludesResponse.mjs";
|
|
119
122
|
export * from "./UpdateNumberDefinitionParams.mjs";
|
|
120
123
|
export * from "./ProjectWithIncludesResponse.mjs";
|
|
121
124
|
export * from "./FileUploadStatusResponse.mjs";
|
|
@@ -147,6 +150,7 @@ export * from "./FieldDefinition.mjs";
|
|
|
147
150
|
export * from "./ProjectsWithIncludesResponse.mjs";
|
|
148
151
|
export * from "./UpdateUserRolesResponse.mjs";
|
|
149
152
|
export * from "./VersionStackWithIncludesResponse.mjs";
|
|
153
|
+
export * from "./WorkspaceUserRolesResponse.mjs";
|
|
150
154
|
export * from "./VersionStacksWithIncludesResponse.mjs";
|
|
151
155
|
export * from "./AddAssetResponse.mjs";
|
|
152
156
|
export * from "./Unauthorized.mjs";
|
|
@@ -154,7 +158,6 @@ export * from "./WorkspaceParams.mjs";
|
|
|
154
158
|
export * from "./FileWithUploadUrlsResponse.mjs";
|
|
155
159
|
export * from "./Email.mjs";
|
|
156
160
|
export * from "./MetadataWithDefinition.mjs";
|
|
157
|
-
export * from "./AuditLogsResponse.mjs";
|
|
158
161
|
export * from "./AssetInclude.mjs";
|
|
159
162
|
export * from "./FileWithUploadUrls.mjs";
|
|
160
163
|
export * from "./FileSort.mjs";
|
package/dist/esm/core/index.mjs
CHANGED
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.3";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.2.
|
|
1
|
+
export const SDK_VERSION = "1.2.3";
|