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
|
@@ -234,7 +234,7 @@ class Shares {
|
|
|
234
234
|
* access: "public",
|
|
235
235
|
* description: "A descriptive summary of the share",
|
|
236
236
|
* downloading_enabled: true,
|
|
237
|
-
* expiration: "2026-01-
|
|
237
|
+
* expiration: "2026-01-29T19:41:37Z",
|
|
238
238
|
* name: "Share Name",
|
|
239
239
|
* passphrase: "as!dfj39sd(*"
|
|
240
240
|
* }
|
|
@@ -326,88 +326,75 @@ class Shares {
|
|
|
326
326
|
* include_total_count: false
|
|
327
327
|
* })
|
|
328
328
|
*/
|
|
329
|
-
listReviewers(
|
|
329
|
+
listReviewers(accountId, shareId, request = {}, requestOptions) {
|
|
330
|
+
return core.HttpResponsePromise.fromPromise(this.__listReviewers(accountId, shareId, request, requestOptions));
|
|
331
|
+
}
|
|
332
|
+
__listReviewers(accountId_1, shareId_1) {
|
|
330
333
|
return __awaiter(this, arguments, void 0, function* (accountId, shareId, request = {}, requestOptions) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
374
|
-
case 429:
|
|
375
|
-
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
376
|
-
default:
|
|
377
|
-
throw new errors.FrameioError({
|
|
378
|
-
statusCode: _response.error.statusCode,
|
|
379
|
-
body: _response.error.body,
|
|
380
|
-
rawResponse: _response.rawResponse,
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
switch (_response.error.reason) {
|
|
385
|
-
case "non-json":
|
|
334
|
+
var _a, _b, _c;
|
|
335
|
+
const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
336
|
+
const _queryParams = {};
|
|
337
|
+
if (after != null) {
|
|
338
|
+
_queryParams["after"] = after;
|
|
339
|
+
}
|
|
340
|
+
if (pageSize != null) {
|
|
341
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
342
|
+
}
|
|
343
|
+
if (includeTotalCount != null) {
|
|
344
|
+
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
345
|
+
}
|
|
346
|
+
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);
|
|
347
|
+
const _response = yield core.fetcher({
|
|
348
|
+
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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
|
|
349
|
+
method: "GET",
|
|
350
|
+
headers: _headers,
|
|
351
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
352
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
353
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
354
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
355
|
+
});
|
|
356
|
+
if (_response.ok) {
|
|
357
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
358
|
+
}
|
|
359
|
+
if (_response.error.reason === "status-code") {
|
|
360
|
+
switch (_response.error.statusCode) {
|
|
361
|
+
case 400:
|
|
362
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 401:
|
|
364
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 403:
|
|
366
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
367
|
+
case 404:
|
|
368
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
369
|
+
case 409:
|
|
370
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
371
|
+
case 422:
|
|
372
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
373
|
+
case 429:
|
|
374
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
375
|
+
default:
|
|
386
376
|
throw new errors.FrameioError({
|
|
387
377
|
statusCode: _response.error.statusCode,
|
|
388
|
-
body: _response.error.
|
|
389
|
-
rawResponse: _response.rawResponse,
|
|
390
|
-
});
|
|
391
|
-
case "timeout":
|
|
392
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/shares/{share_id}/reviewers.");
|
|
393
|
-
case "unknown":
|
|
394
|
-
throw new errors.FrameioError({
|
|
395
|
-
message: _response.error.errorMessage,
|
|
378
|
+
body: _response.error.body,
|
|
396
379
|
rawResponse: _response.rawResponse,
|
|
397
380
|
});
|
|
398
381
|
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
382
|
+
}
|
|
383
|
+
switch (_response.error.reason) {
|
|
384
|
+
case "non-json":
|
|
385
|
+
throw new errors.FrameioError({
|
|
386
|
+
statusCode: _response.error.statusCode,
|
|
387
|
+
body: _response.error.rawBody,
|
|
388
|
+
rawResponse: _response.rawResponse,
|
|
389
|
+
});
|
|
390
|
+
case "timeout":
|
|
391
|
+
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/shares/{share_id}/reviewers.");
|
|
392
|
+
case "unknown":
|
|
393
|
+
throw new errors.FrameioError({
|
|
394
|
+
message: _response.error.errorMessage,
|
|
395
|
+
rawResponse: _response.rawResponse,
|
|
396
|
+
});
|
|
397
|
+
}
|
|
411
398
|
});
|
|
412
399
|
}
|
|
413
400
|
/**
|
|
@@ -693,7 +680,7 @@ class Shares {
|
|
|
693
680
|
* @example
|
|
694
681
|
* await client.shares.addAsset("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
695
682
|
* data: {
|
|
696
|
-
* asset_id: "
|
|
683
|
+
* asset_id: "26a44993-9abd-49bb-8e39-2f44b4a72f62"
|
|
697
684
|
* }
|
|
698
685
|
* })
|
|
699
686
|
*/
|
|
@@ -783,85 +770,75 @@ class Shares {
|
|
|
783
770
|
* include_total_count: false
|
|
784
771
|
* })
|
|
785
772
|
*/
|
|
786
|
-
index(
|
|
773
|
+
index(accountId, projectId, request = {}, requestOptions) {
|
|
774
|
+
return core.HttpResponsePromise.fromPromise(this.__index(accountId, projectId, request, requestOptions));
|
|
775
|
+
}
|
|
776
|
+
__index(accountId_1, projectId_1) {
|
|
787
777
|
return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
default:
|
|
831
|
-
throw new errors.FrameioError({
|
|
832
|
-
statusCode: _response.error.statusCode,
|
|
833
|
-
body: _response.error.body,
|
|
834
|
-
rawResponse: _response.rawResponse,
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
switch (_response.error.reason) {
|
|
839
|
-
case "non-json":
|
|
778
|
+
var _a, _b, _c;
|
|
779
|
+
const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
780
|
+
const _queryParams = {};
|
|
781
|
+
if (after != null) {
|
|
782
|
+
_queryParams["after"] = after;
|
|
783
|
+
}
|
|
784
|
+
if (pageSize != null) {
|
|
785
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
786
|
+
}
|
|
787
|
+
if (includeTotalCount != null) {
|
|
788
|
+
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
789
|
+
}
|
|
790
|
+
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);
|
|
791
|
+
const _response = yield core.fetcher({
|
|
792
|
+
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)}/projects/${encodeURIComponent(projectId)}/shares`),
|
|
793
|
+
method: "GET",
|
|
794
|
+
headers: _headers,
|
|
795
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
796
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
797
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
798
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
799
|
+
});
|
|
800
|
+
if (_response.ok) {
|
|
801
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
802
|
+
}
|
|
803
|
+
if (_response.error.reason === "status-code") {
|
|
804
|
+
switch (_response.error.statusCode) {
|
|
805
|
+
case 400:
|
|
806
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
807
|
+
case 401:
|
|
808
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
809
|
+
case 403:
|
|
810
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
811
|
+
case 404:
|
|
812
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
813
|
+
case 409:
|
|
814
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
815
|
+
case 422:
|
|
816
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
817
|
+
case 429:
|
|
818
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
819
|
+
default:
|
|
840
820
|
throw new errors.FrameioError({
|
|
841
821
|
statusCode: _response.error.statusCode,
|
|
842
|
-
body: _response.error.
|
|
843
|
-
rawResponse: _response.rawResponse,
|
|
844
|
-
});
|
|
845
|
-
case "timeout":
|
|
846
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/projects/{project_id}/shares.");
|
|
847
|
-
case "unknown":
|
|
848
|
-
throw new errors.FrameioError({
|
|
849
|
-
message: _response.error.errorMessage,
|
|
822
|
+
body: _response.error.body,
|
|
850
823
|
rawResponse: _response.rawResponse,
|
|
851
824
|
});
|
|
852
825
|
}
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
826
|
+
}
|
|
827
|
+
switch (_response.error.reason) {
|
|
828
|
+
case "non-json":
|
|
829
|
+
throw new errors.FrameioError({
|
|
830
|
+
statusCode: _response.error.statusCode,
|
|
831
|
+
body: _response.error.rawBody,
|
|
832
|
+
rawResponse: _response.rawResponse,
|
|
833
|
+
});
|
|
834
|
+
case "timeout":
|
|
835
|
+
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/projects/{project_id}/shares.");
|
|
836
|
+
case "unknown":
|
|
837
|
+
throw new errors.FrameioError({
|
|
838
|
+
message: _response.error.errorMessage,
|
|
839
|
+
rawResponse: _response.rawResponse,
|
|
840
|
+
});
|
|
841
|
+
}
|
|
865
842
|
});
|
|
866
843
|
}
|
|
867
844
|
/**
|
|
@@ -885,9 +862,9 @@ class Shares {
|
|
|
885
862
|
* data: {
|
|
886
863
|
* type: "asset",
|
|
887
864
|
* access: "public",
|
|
888
|
-
* asset_ids: ["
|
|
865
|
+
* asset_ids: ["b68f4112-23fe-475e-9927-c0405331266b", "888a368c-06b2-47f8-b3b1-09ce71d37e6b"],
|
|
889
866
|
* downloading_enabled: true,
|
|
890
|
-
* expiration: "2026-01-
|
|
867
|
+
* expiration: "2026-01-29T19:41:37Z",
|
|
891
868
|
* name: "Share Name",
|
|
892
869
|
* passphrase: "as!dfj39sd(*"
|
|
893
870
|
* }
|
|
@@ -5,9 +5,9 @@ import * as Frameio from "../../../../index.js";
|
|
|
5
5
|
* data: {
|
|
6
6
|
* type: "asset",
|
|
7
7
|
* access: "public",
|
|
8
|
-
* asset_ids: ["
|
|
8
|
+
* asset_ids: ["b68f4112-23fe-475e-9927-c0405331266b", "888a368c-06b2-47f8-b3b1-09ce71d37e6b"],
|
|
9
9
|
* downloading_enabled: true,
|
|
10
|
-
* expiration: "2026-01-
|
|
10
|
+
* expiration: "2026-01-29T19:41:37Z",
|
|
11
11
|
* name: "Share Name",
|
|
12
12
|
* passphrase: "as!dfj39sd(*"
|
|
13
13
|
* }
|
|
@@ -65,7 +65,7 @@ export declare class VersionStacks {
|
|
|
65
65
|
* include_total_count: false
|
|
66
66
|
* })
|
|
67
67
|
*/
|
|
68
|
-
index(accountId: Frameio.Uuid, versionStackId: Frameio.Uuid, request?: Frameio.VersionStacksIndexRequest, requestOptions?: VersionStacks.RequestOptions): core.HttpResponsePromise<Frameio.
|
|
68
|
+
index(accountId: Frameio.Uuid, versionStackId: Frameio.Uuid, request?: Frameio.VersionStacksIndexRequest, requestOptions?: VersionStacks.RequestOptions): core.HttpResponsePromise<Frameio.VersionStackAssetsWithIncludesResponse>;
|
|
69
69
|
private __index;
|
|
70
70
|
/**
|
|
71
71
|
* Show version stack details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
@@ -161,7 +161,7 @@ export declare class VersionStacks {
|
|
|
161
161
|
* @example
|
|
162
162
|
* await client.versionStacks.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
163
163
|
* data: {
|
|
164
|
-
* file_ids: ["
|
|
164
|
+
* file_ids: ["6ba6eaa7-1079-46ab-8448-0f9e9c7075e2", "2ea8d129-5381-48e0-852f-be35f90435a9"]
|
|
165
165
|
* }
|
|
166
166
|
* })
|
|
167
167
|
*/
|
|
@@ -134,7 +134,10 @@ class VersionStacks {
|
|
|
134
134
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
135
135
|
});
|
|
136
136
|
if (_response.ok) {
|
|
137
|
-
return {
|
|
137
|
+
return {
|
|
138
|
+
data: _response.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
};
|
|
138
141
|
}
|
|
139
142
|
if (_response.error.reason === "status-code") {
|
|
140
143
|
switch (_response.error.statusCode) {
|
|
@@ -478,7 +481,7 @@ class VersionStacks {
|
|
|
478
481
|
* @example
|
|
479
482
|
* await client.versionStacks.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
480
483
|
* data: {
|
|
481
|
-
* file_ids: ["
|
|
484
|
+
* file_ids: ["6ba6eaa7-1079-46ab-8448-0f9e9c7075e2", "2ea8d129-5381-48e0-852f-be35f90435a9"]
|
|
482
485
|
* }
|
|
483
486
|
* })
|
|
484
487
|
*/
|
|
@@ -53,7 +53,8 @@ export declare class Webhooks {
|
|
|
53
53
|
* include_total_count: false
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
|
-
index(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WebhooksIndexRequest, requestOptions?: Webhooks.RequestOptions):
|
|
56
|
+
index(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WebhooksIndexRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Frameio.WebhooksWithIncludesResponse>;
|
|
57
|
+
private __index;
|
|
57
58
|
/**
|
|
58
59
|
* Creates a single webhook with secret.<br/><br/>Valid events:<p><code>
|
|
59
60
|
* file.created, file.deleted, file.ready, file.updated, file.upload.completed, file.versioned, file.copied, folder.created, folder.deleted, folder.updated, folder.copied, comment.completed, comment.created, comment.deleted, comment.uncompleted, comment.updated, customfield.created, customfield.updated, customfield.deleted, metadata.value.updated, project.created, project.deleted, project.updated, collection.created, collection.updated, collection.deleted, share.created, share.updated, share.deleted, share.viewed
|
|
@@ -80,91 +80,78 @@ class Webhooks {
|
|
|
80
80
|
* include_total_count: false
|
|
81
81
|
* })
|
|
82
82
|
*/
|
|
83
|
-
index(
|
|
83
|
+
index(accountId, workspaceId, request = {}, requestOptions) {
|
|
84
|
+
return core.HttpResponsePromise.fromPromise(this.__index(accountId, workspaceId, request, requestOptions));
|
|
85
|
+
}
|
|
86
|
+
__index(accountId_1, workspaceId_1) {
|
|
84
87
|
return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
131
|
-
case 429:
|
|
132
|
-
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
133
|
-
default:
|
|
134
|
-
throw new errors.FrameioError({
|
|
135
|
-
statusCode: _response.error.statusCode,
|
|
136
|
-
body: _response.error.body,
|
|
137
|
-
rawResponse: _response.rawResponse,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
switch (_response.error.reason) {
|
|
142
|
-
case "non-json":
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
90
|
+
const _queryParams = {};
|
|
91
|
+
if (include != null) {
|
|
92
|
+
_queryParams["include"] = include;
|
|
93
|
+
}
|
|
94
|
+
if (after != null) {
|
|
95
|
+
_queryParams["after"] = after;
|
|
96
|
+
}
|
|
97
|
+
if (pageSize != null) {
|
|
98
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
99
|
+
}
|
|
100
|
+
if (includeTotalCount != null) {
|
|
101
|
+
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
102
|
+
}
|
|
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((_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)}/webhooks`),
|
|
106
|
+
method: "GET",
|
|
107
|
+
headers: _headers,
|
|
108
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
109
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
112
|
+
});
|
|
113
|
+
if (_response.ok) {
|
|
114
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
switch (_response.error.statusCode) {
|
|
118
|
+
case 400:
|
|
119
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 401:
|
|
121
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 403:
|
|
123
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 404:
|
|
125
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 409:
|
|
127
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
128
|
+
case 422:
|
|
129
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
130
|
+
case 429:
|
|
131
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
132
|
+
default:
|
|
143
133
|
throw new errors.FrameioError({
|
|
144
134
|
statusCode: _response.error.statusCode,
|
|
145
|
-
body: _response.error.
|
|
146
|
-
rawResponse: _response.rawResponse,
|
|
147
|
-
});
|
|
148
|
-
case "timeout":
|
|
149
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces/{workspace_id}/webhooks.");
|
|
150
|
-
case "unknown":
|
|
151
|
-
throw new errors.FrameioError({
|
|
152
|
-
message: _response.error.errorMessage,
|
|
135
|
+
body: _response.error.body,
|
|
153
136
|
rawResponse: _response.rawResponse,
|
|
154
137
|
});
|
|
155
138
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
139
|
+
}
|
|
140
|
+
switch (_response.error.reason) {
|
|
141
|
+
case "non-json":
|
|
142
|
+
throw new errors.FrameioError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.rawBody,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
147
|
+
case "timeout":
|
|
148
|
+
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/workspaces/{workspace_id}/webhooks.");
|
|
149
|
+
case "unknown":
|
|
150
|
+
throw new errors.FrameioError({
|
|
151
|
+
message: _response.error.errorMessage,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
168
155
|
});
|
|
169
156
|
}
|
|
170
157
|
/**
|
|
@@ -53,7 +53,8 @@ export declare class WorkspacePermissions {
|
|
|
53
53
|
* include_total_count: false
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
|
-
index(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WorkspacePermissionsIndexRequest, requestOptions?: WorkspacePermissions.RequestOptions):
|
|
56
|
+
index(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WorkspacePermissionsIndexRequest, requestOptions?: WorkspacePermissions.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceUserRolesResponse>;
|
|
57
|
+
private __index;
|
|
57
58
|
/**
|
|
58
59
|
* Remove a user from a given workspace. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
59
60
|
*
|