@brightinteractive/platform-api 0.1.28 → 0.1.29
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/api/api.d.ts +3 -1
- package/api/entityQuotaOverrides.service.d.ts +65 -0
- package/api/theme.service.d.ts +184 -21
- package/fesm2022/brightinteractive-platform-api.mjs +730 -53
- package/fesm2022/brightinteractive-platform-api.mjs.map +1 -1
- package/model/assetFieldEqualsSearchCriterion.d.ts +4 -0
- package/model/assetFieldHasAllEqualSearchCriterion.d.ts +4 -0
- package/model/assetFieldHasAnyEqualSearchCriterion.d.ts +4 -0
- package/model/assetFieldMatchesSearchCriterion.d.ts +4 -0
- package/model/entityQuotaOverride.d.ts +29 -0
- package/model/entityQuotaOverrideRequest.d.ts +17 -0
- package/model/entityQuotaOverrideWithPermittedActions.d.ts +17 -0
- package/model/models.d.ts +5 -0
- package/model/theme.d.ts +15 -0
- package/model/themeAndSearchCriterion.d.ts +25 -0
- package/model/themeSearchCriterion.d.ts +2 -1
- package/model/themeSearchField.d.ts +3 -1
- package/model/userFieldInSearchCriterion.d.ts +26 -0
- package/model/userSearchCriterion.d.ts +2 -1
- package/model/userSearchField.d.ts +3 -1
- package/package.json +1 -1
|
@@ -7208,6 +7208,218 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
7208
7208
|
type: Optional
|
|
7209
7209
|
}] }] });
|
|
7210
7210
|
|
|
7211
|
+
/**
|
|
7212
|
+
* Dash API
|
|
7213
|
+
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
7214
|
+
*
|
|
7215
|
+
* The version of the OpenAPI document: 2.0.0
|
|
7216
|
+
* Contact: help@dash.app
|
|
7217
|
+
*
|
|
7218
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7219
|
+
* https://openapi-generator.tech
|
|
7220
|
+
* Do not edit the class manually.
|
|
7221
|
+
*/
|
|
7222
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
7223
|
+
class EntityQuotaOverridesService {
|
|
7224
|
+
constructor(httpClient, basePath, configuration) {
|
|
7225
|
+
this.httpClient = httpClient;
|
|
7226
|
+
this.basePath = 'https://api-v2.dash.app';
|
|
7227
|
+
this.defaultHeaders = new HttpHeaders();
|
|
7228
|
+
this.configuration = new Configuration();
|
|
7229
|
+
if (configuration) {
|
|
7230
|
+
this.configuration = configuration;
|
|
7231
|
+
}
|
|
7232
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
7233
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
7234
|
+
if (firstBasePath != undefined) {
|
|
7235
|
+
basePath = firstBasePath;
|
|
7236
|
+
}
|
|
7237
|
+
if (typeof basePath !== 'string') {
|
|
7238
|
+
basePath = this.basePath;
|
|
7239
|
+
}
|
|
7240
|
+
this.configuration.basePath = basePath;
|
|
7241
|
+
}
|
|
7242
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
7243
|
+
}
|
|
7244
|
+
// @ts-ignore
|
|
7245
|
+
addToHttpParams(httpParams, value, key) {
|
|
7246
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
7247
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
7248
|
+
}
|
|
7249
|
+
else {
|
|
7250
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
7251
|
+
}
|
|
7252
|
+
return httpParams;
|
|
7253
|
+
}
|
|
7254
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
7255
|
+
if (value == null) {
|
|
7256
|
+
return httpParams;
|
|
7257
|
+
}
|
|
7258
|
+
if (typeof value === "object") {
|
|
7259
|
+
if (Array.isArray(value)) {
|
|
7260
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
7261
|
+
}
|
|
7262
|
+
else if (value instanceof Date) {
|
|
7263
|
+
if (key != null) {
|
|
7264
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
7265
|
+
}
|
|
7266
|
+
else {
|
|
7267
|
+
throw Error("key may not be null if value is Date");
|
|
7268
|
+
}
|
|
7269
|
+
}
|
|
7270
|
+
else {
|
|
7271
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
7272
|
+
}
|
|
7273
|
+
}
|
|
7274
|
+
else if (key != null) {
|
|
7275
|
+
httpParams = httpParams.append(key, value);
|
|
7276
|
+
}
|
|
7277
|
+
else {
|
|
7278
|
+
throw Error("key may not be null if value is not object or array");
|
|
7279
|
+
}
|
|
7280
|
+
return httpParams;
|
|
7281
|
+
}
|
|
7282
|
+
getEntityQuotaOverride(accountId, id, observe = 'body', reportProgress = false, options) {
|
|
7283
|
+
if (accountId === null || accountId === undefined) {
|
|
7284
|
+
throw new Error('Required parameter accountId was null or undefined when calling getEntityQuotaOverride.');
|
|
7285
|
+
}
|
|
7286
|
+
if (id === null || id === undefined) {
|
|
7287
|
+
throw new Error('Required parameter id was null or undefined when calling getEntityQuotaOverride.');
|
|
7288
|
+
}
|
|
7289
|
+
let localVarHeaders = this.defaultHeaders;
|
|
7290
|
+
let localVarCredential;
|
|
7291
|
+
// authentication (bearerToken) required
|
|
7292
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
7293
|
+
if (localVarCredential) {
|
|
7294
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
7295
|
+
}
|
|
7296
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
7297
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
7298
|
+
// to determine the Accept header
|
|
7299
|
+
const httpHeaderAccepts = [
|
|
7300
|
+
'application/json'
|
|
7301
|
+
];
|
|
7302
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
7303
|
+
}
|
|
7304
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
7305
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
7306
|
+
}
|
|
7307
|
+
let localVarHttpContext = options && options.context;
|
|
7308
|
+
if (localVarHttpContext === undefined) {
|
|
7309
|
+
localVarHttpContext = new HttpContext();
|
|
7310
|
+
}
|
|
7311
|
+
let localVarTransferCache = options && options.transferCache;
|
|
7312
|
+
if (localVarTransferCache === undefined) {
|
|
7313
|
+
localVarTransferCache = true;
|
|
7314
|
+
}
|
|
7315
|
+
let responseType_ = 'json';
|
|
7316
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
7317
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
7318
|
+
responseType_ = 'text';
|
|
7319
|
+
}
|
|
7320
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
7321
|
+
responseType_ = 'json';
|
|
7322
|
+
}
|
|
7323
|
+
else {
|
|
7324
|
+
responseType_ = 'blob';
|
|
7325
|
+
}
|
|
7326
|
+
}
|
|
7327
|
+
let localVarPath = `/admin/accounts/${this.configuration.encodeParam({ name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/entities/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/quota-override`;
|
|
7328
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
7329
|
+
context: localVarHttpContext,
|
|
7330
|
+
responseType: responseType_,
|
|
7331
|
+
withCredentials: this.configuration.withCredentials,
|
|
7332
|
+
headers: localVarHeaders,
|
|
7333
|
+
observe: observe,
|
|
7334
|
+
transferCache: localVarTransferCache,
|
|
7335
|
+
reportProgress: reportProgress
|
|
7336
|
+
});
|
|
7337
|
+
}
|
|
7338
|
+
putEntityQuotaOverride(accountId, id, entityQuotaOverrideRequest, observe = 'body', reportProgress = false, options) {
|
|
7339
|
+
if (accountId === null || accountId === undefined) {
|
|
7340
|
+
throw new Error('Required parameter accountId was null or undefined when calling putEntityQuotaOverride.');
|
|
7341
|
+
}
|
|
7342
|
+
if (id === null || id === undefined) {
|
|
7343
|
+
throw new Error('Required parameter id was null or undefined when calling putEntityQuotaOverride.');
|
|
7344
|
+
}
|
|
7345
|
+
if (entityQuotaOverrideRequest === null || entityQuotaOverrideRequest === undefined) {
|
|
7346
|
+
throw new Error('Required parameter entityQuotaOverrideRequest was null or undefined when calling putEntityQuotaOverride.');
|
|
7347
|
+
}
|
|
7348
|
+
let localVarHeaders = this.defaultHeaders;
|
|
7349
|
+
let localVarCredential;
|
|
7350
|
+
// authentication (bearerToken) required
|
|
7351
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
7352
|
+
if (localVarCredential) {
|
|
7353
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
7354
|
+
}
|
|
7355
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
7356
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
7357
|
+
// to determine the Accept header
|
|
7358
|
+
const httpHeaderAccepts = [
|
|
7359
|
+
'application/json'
|
|
7360
|
+
];
|
|
7361
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
7362
|
+
}
|
|
7363
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
7364
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
7365
|
+
}
|
|
7366
|
+
let localVarHttpContext = options && options.context;
|
|
7367
|
+
if (localVarHttpContext === undefined) {
|
|
7368
|
+
localVarHttpContext = new HttpContext();
|
|
7369
|
+
}
|
|
7370
|
+
let localVarTransferCache = options && options.transferCache;
|
|
7371
|
+
if (localVarTransferCache === undefined) {
|
|
7372
|
+
localVarTransferCache = true;
|
|
7373
|
+
}
|
|
7374
|
+
// to determine the Content-Type header
|
|
7375
|
+
const consumes = [
|
|
7376
|
+
'application/json'
|
|
7377
|
+
];
|
|
7378
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
7379
|
+
if (httpContentTypeSelected !== undefined) {
|
|
7380
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
7381
|
+
}
|
|
7382
|
+
let responseType_ = 'json';
|
|
7383
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
7384
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
7385
|
+
responseType_ = 'text';
|
|
7386
|
+
}
|
|
7387
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
7388
|
+
responseType_ = 'json';
|
|
7389
|
+
}
|
|
7390
|
+
else {
|
|
7391
|
+
responseType_ = 'blob';
|
|
7392
|
+
}
|
|
7393
|
+
}
|
|
7394
|
+
let localVarPath = `/admin/accounts/${this.configuration.encodeParam({ name: "accountId", value: accountId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/entities/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/quota-override`;
|
|
7395
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
7396
|
+
context: localVarHttpContext,
|
|
7397
|
+
body: entityQuotaOverrideRequest,
|
|
7398
|
+
responseType: responseType_,
|
|
7399
|
+
withCredentials: this.configuration.withCredentials,
|
|
7400
|
+
headers: localVarHeaders,
|
|
7401
|
+
observe: observe,
|
|
7402
|
+
transferCache: localVarTransferCache,
|
|
7403
|
+
reportProgress: reportProgress
|
|
7404
|
+
});
|
|
7405
|
+
}
|
|
7406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EntityQuotaOverridesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7407
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EntityQuotaOverridesService, providedIn: 'root' }); }
|
|
7408
|
+
}
|
|
7409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EntityQuotaOverridesService, decorators: [{
|
|
7410
|
+
type: Injectable,
|
|
7411
|
+
args: [{
|
|
7412
|
+
providedIn: 'root'
|
|
7413
|
+
}]
|
|
7414
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
7415
|
+
type: Optional
|
|
7416
|
+
}, {
|
|
7417
|
+
type: Inject,
|
|
7418
|
+
args: [BASE_PATH]
|
|
7419
|
+
}] }, { type: Configuration, decorators: [{
|
|
7420
|
+
type: Optional
|
|
7421
|
+
}] }] });
|
|
7422
|
+
|
|
7211
7423
|
/**
|
|
7212
7424
|
* Dash API
|
|
7213
7425
|
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
@@ -13685,7 +13897,13 @@ class ThemeService {
|
|
|
13685
13897
|
}
|
|
13686
13898
|
return httpParams;
|
|
13687
13899
|
}
|
|
13688
|
-
deleteThemeFavicon(observe = 'body', reportProgress = false, options) {
|
|
13900
|
+
deleteThemeFavicon(contextType, contextId, observe = 'body', reportProgress = false, options) {
|
|
13901
|
+
if (contextType === null || contextType === undefined) {
|
|
13902
|
+
throw new Error('Required parameter contextType was null or undefined when calling deleteThemeFavicon.');
|
|
13903
|
+
}
|
|
13904
|
+
if (contextId === null || contextId === undefined) {
|
|
13905
|
+
throw new Error('Required parameter contextId was null or undefined when calling deleteThemeFavicon.');
|
|
13906
|
+
}
|
|
13689
13907
|
let localVarHeaders = this.defaultHeaders;
|
|
13690
13908
|
let localVarCredential;
|
|
13691
13909
|
// authentication (bearerToken) required
|
|
@@ -13724,7 +13942,7 @@ class ThemeService {
|
|
|
13724
13942
|
responseType_ = 'blob';
|
|
13725
13943
|
}
|
|
13726
13944
|
}
|
|
13727
|
-
let localVarPath = `/theme/favicon`;
|
|
13945
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme/favicon`;
|
|
13728
13946
|
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13729
13947
|
context: localVarHttpContext,
|
|
13730
13948
|
responseType: responseType_,
|
|
@@ -13735,7 +13953,7 @@ class ThemeService {
|
|
|
13735
13953
|
reportProgress: reportProgress
|
|
13736
13954
|
});
|
|
13737
13955
|
}
|
|
13738
|
-
|
|
13956
|
+
deleteThemeFaviconDeprecated(observe = 'body', reportProgress = false, options) {
|
|
13739
13957
|
let localVarHeaders = this.defaultHeaders;
|
|
13740
13958
|
let localVarCredential;
|
|
13741
13959
|
// authentication (bearerToken) required
|
|
@@ -13774,7 +13992,7 @@ class ThemeService {
|
|
|
13774
13992
|
responseType_ = 'blob';
|
|
13775
13993
|
}
|
|
13776
13994
|
}
|
|
13777
|
-
let localVarPath = `/theme/
|
|
13995
|
+
let localVarPath = `/theme/favicon`;
|
|
13778
13996
|
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13779
13997
|
context: localVarHttpContext,
|
|
13780
13998
|
responseType: responseType_,
|
|
@@ -13785,7 +14003,13 @@ class ThemeService {
|
|
|
13785
14003
|
reportProgress: reportProgress
|
|
13786
14004
|
});
|
|
13787
14005
|
}
|
|
13788
|
-
|
|
14006
|
+
deleteThemeHomepageImage(contextType, contextId, observe = 'body', reportProgress = false, options) {
|
|
14007
|
+
if (contextType === null || contextType === undefined) {
|
|
14008
|
+
throw new Error('Required parameter contextType was null or undefined when calling deleteThemeHomepageImage.');
|
|
14009
|
+
}
|
|
14010
|
+
if (contextId === null || contextId === undefined) {
|
|
14011
|
+
throw new Error('Required parameter contextId was null or undefined when calling deleteThemeHomepageImage.');
|
|
14012
|
+
}
|
|
13789
14013
|
let localVarHeaders = this.defaultHeaders;
|
|
13790
14014
|
let localVarCredential;
|
|
13791
14015
|
// authentication (bearerToken) required
|
|
@@ -13824,7 +14048,7 @@ class ThemeService {
|
|
|
13824
14048
|
responseType_ = 'blob';
|
|
13825
14049
|
}
|
|
13826
14050
|
}
|
|
13827
|
-
let localVarPath = `/theme/
|
|
14051
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme/homepage-image`;
|
|
13828
14052
|
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13829
14053
|
context: localVarHttpContext,
|
|
13830
14054
|
responseType: responseType_,
|
|
@@ -13835,7 +14059,7 @@ class ThemeService {
|
|
|
13835
14059
|
reportProgress: reportProgress
|
|
13836
14060
|
});
|
|
13837
14061
|
}
|
|
13838
|
-
|
|
14062
|
+
deleteThemeHomepageImageDeprecated(observe = 'body', reportProgress = false, options) {
|
|
13839
14063
|
let localVarHeaders = this.defaultHeaders;
|
|
13840
14064
|
let localVarCredential;
|
|
13841
14065
|
// authentication (bearerToken) required
|
|
@@ -13874,7 +14098,7 @@ class ThemeService {
|
|
|
13874
14098
|
responseType_ = 'blob';
|
|
13875
14099
|
}
|
|
13876
14100
|
}
|
|
13877
|
-
let localVarPath = `/theme/
|
|
14101
|
+
let localVarPath = `/theme/homepage-image`;
|
|
13878
14102
|
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13879
14103
|
context: localVarHttpContext,
|
|
13880
14104
|
responseType: responseType_,
|
|
@@ -13885,7 +14109,13 @@ class ThemeService {
|
|
|
13885
14109
|
reportProgress: reportProgress
|
|
13886
14110
|
});
|
|
13887
14111
|
}
|
|
13888
|
-
|
|
14112
|
+
deleteThemeLoginImage(contextType, contextId, observe = 'body', reportProgress = false, options) {
|
|
14113
|
+
if (contextType === null || contextType === undefined) {
|
|
14114
|
+
throw new Error('Required parameter contextType was null or undefined when calling deleteThemeLoginImage.');
|
|
14115
|
+
}
|
|
14116
|
+
if (contextId === null || contextId === undefined) {
|
|
14117
|
+
throw new Error('Required parameter contextId was null or undefined when calling deleteThemeLoginImage.');
|
|
14118
|
+
}
|
|
13889
14119
|
let localVarHeaders = this.defaultHeaders;
|
|
13890
14120
|
let localVarCredential;
|
|
13891
14121
|
// authentication (bearerToken) required
|
|
@@ -13924,8 +14154,8 @@ class ThemeService {
|
|
|
13924
14154
|
responseType_ = 'blob';
|
|
13925
14155
|
}
|
|
13926
14156
|
}
|
|
13927
|
-
let localVarPath = `/theme`;
|
|
13928
|
-
return this.httpClient.request('
|
|
14157
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme/login-image`;
|
|
14158
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13929
14159
|
context: localVarHttpContext,
|
|
13930
14160
|
responseType: responseType_,
|
|
13931
14161
|
withCredentials: this.configuration.withCredentials,
|
|
@@ -13935,10 +14165,7 @@ class ThemeService {
|
|
|
13935
14165
|
reportProgress: reportProgress
|
|
13936
14166
|
});
|
|
13937
14167
|
}
|
|
13938
|
-
|
|
13939
|
-
if (themePatchRequest === null || themePatchRequest === undefined) {
|
|
13940
|
-
throw new Error('Required parameter themePatchRequest was null or undefined when calling patchTheme.');
|
|
13941
|
-
}
|
|
14168
|
+
deleteThemeLoginImageDeprecated(observe = 'body', reportProgress = false, options) {
|
|
13942
14169
|
let localVarHeaders = this.defaultHeaders;
|
|
13943
14170
|
let localVarCredential;
|
|
13944
14171
|
// authentication (bearerToken) required
|
|
@@ -13965,14 +14192,6 @@ class ThemeService {
|
|
|
13965
14192
|
if (localVarTransferCache === undefined) {
|
|
13966
14193
|
localVarTransferCache = true;
|
|
13967
14194
|
}
|
|
13968
|
-
// to determine the Content-Type header
|
|
13969
|
-
const consumes = [
|
|
13970
|
-
'application/json'
|
|
13971
|
-
];
|
|
13972
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
13973
|
-
if (httpContentTypeSelected !== undefined) {
|
|
13974
|
-
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
13975
|
-
}
|
|
13976
14195
|
let responseType_ = 'json';
|
|
13977
14196
|
if (localVarHttpHeaderAcceptSelected) {
|
|
13978
14197
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -13985,10 +14204,9 @@ class ThemeService {
|
|
|
13985
14204
|
responseType_ = 'blob';
|
|
13986
14205
|
}
|
|
13987
14206
|
}
|
|
13988
|
-
let localVarPath = `/theme`;
|
|
13989
|
-
return this.httpClient.request('
|
|
14207
|
+
let localVarPath = `/theme/login-image`;
|
|
14208
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
13990
14209
|
context: localVarHttpContext,
|
|
13991
|
-
body: themePatchRequest,
|
|
13992
14210
|
responseType: responseType_,
|
|
13993
14211
|
withCredentials: this.configuration.withCredentials,
|
|
13994
14212
|
headers: localVarHeaders,
|
|
@@ -13997,9 +14215,12 @@ class ThemeService {
|
|
|
13997
14215
|
reportProgress: reportProgress
|
|
13998
14216
|
});
|
|
13999
14217
|
}
|
|
14000
|
-
|
|
14001
|
-
if (
|
|
14002
|
-
throw new Error('Required parameter
|
|
14218
|
+
deleteThemeLogo(contextType, contextId, observe = 'body', reportProgress = false, options) {
|
|
14219
|
+
if (contextType === null || contextType === undefined) {
|
|
14220
|
+
throw new Error('Required parameter contextType was null or undefined when calling deleteThemeLogo.');
|
|
14221
|
+
}
|
|
14222
|
+
if (contextId === null || contextId === undefined) {
|
|
14223
|
+
throw new Error('Required parameter contextId was null or undefined when calling deleteThemeLogo.');
|
|
14003
14224
|
}
|
|
14004
14225
|
let localVarHeaders = this.defaultHeaders;
|
|
14005
14226
|
let localVarCredential;
|
|
@@ -14027,14 +14248,6 @@ class ThemeService {
|
|
|
14027
14248
|
if (localVarTransferCache === undefined) {
|
|
14028
14249
|
localVarTransferCache = true;
|
|
14029
14250
|
}
|
|
14030
|
-
// to determine the Content-Type header
|
|
14031
|
-
const consumes = [
|
|
14032
|
-
'application/json'
|
|
14033
|
-
];
|
|
14034
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14035
|
-
if (httpContentTypeSelected !== undefined) {
|
|
14036
|
-
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14037
|
-
}
|
|
14038
14251
|
let responseType_ = 'json';
|
|
14039
14252
|
if (localVarHttpHeaderAcceptSelected) {
|
|
14040
14253
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -14047,10 +14260,9 @@ class ThemeService {
|
|
|
14047
14260
|
responseType_ = 'blob';
|
|
14048
14261
|
}
|
|
14049
14262
|
}
|
|
14050
|
-
let localVarPath = `/theme
|
|
14051
|
-
return this.httpClient.request('
|
|
14263
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme/logo`;
|
|
14264
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
14052
14265
|
context: localVarHttpContext,
|
|
14053
|
-
body: themeImageUploadRequest,
|
|
14054
14266
|
responseType: responseType_,
|
|
14055
14267
|
withCredentials: this.configuration.withCredentials,
|
|
14056
14268
|
headers: localVarHeaders,
|
|
@@ -14059,11 +14271,14 @@ class ThemeService {
|
|
|
14059
14271
|
reportProgress: reportProgress
|
|
14060
14272
|
});
|
|
14061
14273
|
}
|
|
14062
|
-
|
|
14063
|
-
if (themeSearchRequest === null || themeSearchRequest === undefined) {
|
|
14064
|
-
throw new Error('Required parameter themeSearchRequest was null or undefined when calling postThemeSearch.');
|
|
14065
|
-
}
|
|
14274
|
+
deleteThemeLogoDeprecated(observe = 'body', reportProgress = false, options) {
|
|
14066
14275
|
let localVarHeaders = this.defaultHeaders;
|
|
14276
|
+
let localVarCredential;
|
|
14277
|
+
// authentication (bearerToken) required
|
|
14278
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14279
|
+
if (localVarCredential) {
|
|
14280
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14281
|
+
}
|
|
14067
14282
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14068
14283
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14069
14284
|
// to determine the Accept header
|
|
@@ -14083,11 +14298,424 @@ class ThemeService {
|
|
|
14083
14298
|
if (localVarTransferCache === undefined) {
|
|
14084
14299
|
localVarTransferCache = true;
|
|
14085
14300
|
}
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
'
|
|
14089
|
-
|
|
14090
|
-
|
|
14301
|
+
let responseType_ = 'json';
|
|
14302
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14303
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14304
|
+
responseType_ = 'text';
|
|
14305
|
+
}
|
|
14306
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14307
|
+
responseType_ = 'json';
|
|
14308
|
+
}
|
|
14309
|
+
else {
|
|
14310
|
+
responseType_ = 'blob';
|
|
14311
|
+
}
|
|
14312
|
+
}
|
|
14313
|
+
let localVarPath = `/theme/logo`;
|
|
14314
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
14315
|
+
context: localVarHttpContext,
|
|
14316
|
+
responseType: responseType_,
|
|
14317
|
+
withCredentials: this.configuration.withCredentials,
|
|
14318
|
+
headers: localVarHeaders,
|
|
14319
|
+
observe: observe,
|
|
14320
|
+
transferCache: localVarTransferCache,
|
|
14321
|
+
reportProgress: reportProgress
|
|
14322
|
+
});
|
|
14323
|
+
}
|
|
14324
|
+
getTheme(contextType, contextId, observe = 'body', reportProgress = false, options) {
|
|
14325
|
+
if (contextType === null || contextType === undefined) {
|
|
14326
|
+
throw new Error('Required parameter contextType was null or undefined when calling getTheme.');
|
|
14327
|
+
}
|
|
14328
|
+
if (contextId === null || contextId === undefined) {
|
|
14329
|
+
throw new Error('Required parameter contextId was null or undefined when calling getTheme.');
|
|
14330
|
+
}
|
|
14331
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14332
|
+
let localVarCredential;
|
|
14333
|
+
// authentication (bearerToken) required
|
|
14334
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14335
|
+
if (localVarCredential) {
|
|
14336
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14337
|
+
}
|
|
14338
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14339
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14340
|
+
// to determine the Accept header
|
|
14341
|
+
const httpHeaderAccepts = [
|
|
14342
|
+
'application/json'
|
|
14343
|
+
];
|
|
14344
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14345
|
+
}
|
|
14346
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14347
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14348
|
+
}
|
|
14349
|
+
let localVarHttpContext = options && options.context;
|
|
14350
|
+
if (localVarHttpContext === undefined) {
|
|
14351
|
+
localVarHttpContext = new HttpContext();
|
|
14352
|
+
}
|
|
14353
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14354
|
+
if (localVarTransferCache === undefined) {
|
|
14355
|
+
localVarTransferCache = true;
|
|
14356
|
+
}
|
|
14357
|
+
let responseType_ = 'json';
|
|
14358
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14359
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14360
|
+
responseType_ = 'text';
|
|
14361
|
+
}
|
|
14362
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14363
|
+
responseType_ = 'json';
|
|
14364
|
+
}
|
|
14365
|
+
else {
|
|
14366
|
+
responseType_ = 'blob';
|
|
14367
|
+
}
|
|
14368
|
+
}
|
|
14369
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme`;
|
|
14370
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
14371
|
+
context: localVarHttpContext,
|
|
14372
|
+
responseType: responseType_,
|
|
14373
|
+
withCredentials: this.configuration.withCredentials,
|
|
14374
|
+
headers: localVarHeaders,
|
|
14375
|
+
observe: observe,
|
|
14376
|
+
transferCache: localVarTransferCache,
|
|
14377
|
+
reportProgress: reportProgress
|
|
14378
|
+
});
|
|
14379
|
+
}
|
|
14380
|
+
getThemeDeprecated(observe = 'body', reportProgress = false, options) {
|
|
14381
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14382
|
+
let localVarCredential;
|
|
14383
|
+
// authentication (bearerToken) required
|
|
14384
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14385
|
+
if (localVarCredential) {
|
|
14386
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14387
|
+
}
|
|
14388
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14389
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14390
|
+
// to determine the Accept header
|
|
14391
|
+
const httpHeaderAccepts = [
|
|
14392
|
+
'application/json'
|
|
14393
|
+
];
|
|
14394
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14395
|
+
}
|
|
14396
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14397
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14398
|
+
}
|
|
14399
|
+
let localVarHttpContext = options && options.context;
|
|
14400
|
+
if (localVarHttpContext === undefined) {
|
|
14401
|
+
localVarHttpContext = new HttpContext();
|
|
14402
|
+
}
|
|
14403
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14404
|
+
if (localVarTransferCache === undefined) {
|
|
14405
|
+
localVarTransferCache = true;
|
|
14406
|
+
}
|
|
14407
|
+
let responseType_ = 'json';
|
|
14408
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14409
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14410
|
+
responseType_ = 'text';
|
|
14411
|
+
}
|
|
14412
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14413
|
+
responseType_ = 'json';
|
|
14414
|
+
}
|
|
14415
|
+
else {
|
|
14416
|
+
responseType_ = 'blob';
|
|
14417
|
+
}
|
|
14418
|
+
}
|
|
14419
|
+
let localVarPath = `/theme`;
|
|
14420
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
14421
|
+
context: localVarHttpContext,
|
|
14422
|
+
responseType: responseType_,
|
|
14423
|
+
withCredentials: this.configuration.withCredentials,
|
|
14424
|
+
headers: localVarHeaders,
|
|
14425
|
+
observe: observe,
|
|
14426
|
+
transferCache: localVarTransferCache,
|
|
14427
|
+
reportProgress: reportProgress
|
|
14428
|
+
});
|
|
14429
|
+
}
|
|
14430
|
+
patchTheme(contextType, contextId, themePatchRequest, observe = 'body', reportProgress = false, options) {
|
|
14431
|
+
if (contextType === null || contextType === undefined) {
|
|
14432
|
+
throw new Error('Required parameter contextType was null or undefined when calling patchTheme.');
|
|
14433
|
+
}
|
|
14434
|
+
if (contextId === null || contextId === undefined) {
|
|
14435
|
+
throw new Error('Required parameter contextId was null or undefined when calling patchTheme.');
|
|
14436
|
+
}
|
|
14437
|
+
if (themePatchRequest === null || themePatchRequest === undefined) {
|
|
14438
|
+
throw new Error('Required parameter themePatchRequest was null or undefined when calling patchTheme.');
|
|
14439
|
+
}
|
|
14440
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14441
|
+
let localVarCredential;
|
|
14442
|
+
// authentication (bearerToken) required
|
|
14443
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14444
|
+
if (localVarCredential) {
|
|
14445
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14446
|
+
}
|
|
14447
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14448
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14449
|
+
// to determine the Accept header
|
|
14450
|
+
const httpHeaderAccepts = [
|
|
14451
|
+
'application/json'
|
|
14452
|
+
];
|
|
14453
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14454
|
+
}
|
|
14455
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14456
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14457
|
+
}
|
|
14458
|
+
let localVarHttpContext = options && options.context;
|
|
14459
|
+
if (localVarHttpContext === undefined) {
|
|
14460
|
+
localVarHttpContext = new HttpContext();
|
|
14461
|
+
}
|
|
14462
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14463
|
+
if (localVarTransferCache === undefined) {
|
|
14464
|
+
localVarTransferCache = true;
|
|
14465
|
+
}
|
|
14466
|
+
// to determine the Content-Type header
|
|
14467
|
+
const consumes = [
|
|
14468
|
+
'application/json'
|
|
14469
|
+
];
|
|
14470
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14471
|
+
if (httpContentTypeSelected !== undefined) {
|
|
14472
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14473
|
+
}
|
|
14474
|
+
let responseType_ = 'json';
|
|
14475
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14476
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14477
|
+
responseType_ = 'text';
|
|
14478
|
+
}
|
|
14479
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14480
|
+
responseType_ = 'json';
|
|
14481
|
+
}
|
|
14482
|
+
else {
|
|
14483
|
+
responseType_ = 'blob';
|
|
14484
|
+
}
|
|
14485
|
+
}
|
|
14486
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme`;
|
|
14487
|
+
return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
14488
|
+
context: localVarHttpContext,
|
|
14489
|
+
body: themePatchRequest,
|
|
14490
|
+
responseType: responseType_,
|
|
14491
|
+
withCredentials: this.configuration.withCredentials,
|
|
14492
|
+
headers: localVarHeaders,
|
|
14493
|
+
observe: observe,
|
|
14494
|
+
transferCache: localVarTransferCache,
|
|
14495
|
+
reportProgress: reportProgress
|
|
14496
|
+
});
|
|
14497
|
+
}
|
|
14498
|
+
patchThemeDeprecated(themePatchRequest, observe = 'body', reportProgress = false, options) {
|
|
14499
|
+
if (themePatchRequest === null || themePatchRequest === undefined) {
|
|
14500
|
+
throw new Error('Required parameter themePatchRequest was null or undefined when calling patchThemeDeprecated.');
|
|
14501
|
+
}
|
|
14502
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14503
|
+
let localVarCredential;
|
|
14504
|
+
// authentication (bearerToken) required
|
|
14505
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14506
|
+
if (localVarCredential) {
|
|
14507
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14508
|
+
}
|
|
14509
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14510
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14511
|
+
// to determine the Accept header
|
|
14512
|
+
const httpHeaderAccepts = [
|
|
14513
|
+
'application/json'
|
|
14514
|
+
];
|
|
14515
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14516
|
+
}
|
|
14517
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14518
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14519
|
+
}
|
|
14520
|
+
let localVarHttpContext = options && options.context;
|
|
14521
|
+
if (localVarHttpContext === undefined) {
|
|
14522
|
+
localVarHttpContext = new HttpContext();
|
|
14523
|
+
}
|
|
14524
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14525
|
+
if (localVarTransferCache === undefined) {
|
|
14526
|
+
localVarTransferCache = true;
|
|
14527
|
+
}
|
|
14528
|
+
// to determine the Content-Type header
|
|
14529
|
+
const consumes = [
|
|
14530
|
+
'application/json'
|
|
14531
|
+
];
|
|
14532
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14533
|
+
if (httpContentTypeSelected !== undefined) {
|
|
14534
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14535
|
+
}
|
|
14536
|
+
let responseType_ = 'json';
|
|
14537
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14538
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14539
|
+
responseType_ = 'text';
|
|
14540
|
+
}
|
|
14541
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14542
|
+
responseType_ = 'json';
|
|
14543
|
+
}
|
|
14544
|
+
else {
|
|
14545
|
+
responseType_ = 'blob';
|
|
14546
|
+
}
|
|
14547
|
+
}
|
|
14548
|
+
let localVarPath = `/theme`;
|
|
14549
|
+
return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
14550
|
+
context: localVarHttpContext,
|
|
14551
|
+
body: themePatchRequest,
|
|
14552
|
+
responseType: responseType_,
|
|
14553
|
+
withCredentials: this.configuration.withCredentials,
|
|
14554
|
+
headers: localVarHeaders,
|
|
14555
|
+
observe: observe,
|
|
14556
|
+
transferCache: localVarTransferCache,
|
|
14557
|
+
reportProgress: reportProgress
|
|
14558
|
+
});
|
|
14559
|
+
}
|
|
14560
|
+
postThemeImageUpload(contextType, contextId, themeImageUploadRequest, observe = 'body', reportProgress = false, options) {
|
|
14561
|
+
if (contextType === null || contextType === undefined) {
|
|
14562
|
+
throw new Error('Required parameter contextType was null or undefined when calling postThemeImageUpload.');
|
|
14563
|
+
}
|
|
14564
|
+
if (contextId === null || contextId === undefined) {
|
|
14565
|
+
throw new Error('Required parameter contextId was null or undefined when calling postThemeImageUpload.');
|
|
14566
|
+
}
|
|
14567
|
+
if (themeImageUploadRequest === null || themeImageUploadRequest === undefined) {
|
|
14568
|
+
throw new Error('Required parameter themeImageUploadRequest was null or undefined when calling postThemeImageUpload.');
|
|
14569
|
+
}
|
|
14570
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14571
|
+
let localVarCredential;
|
|
14572
|
+
// authentication (bearerToken) required
|
|
14573
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14574
|
+
if (localVarCredential) {
|
|
14575
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14576
|
+
}
|
|
14577
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14578
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14579
|
+
// to determine the Accept header
|
|
14580
|
+
const httpHeaderAccepts = [
|
|
14581
|
+
'application/json'
|
|
14582
|
+
];
|
|
14583
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14584
|
+
}
|
|
14585
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14586
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14587
|
+
}
|
|
14588
|
+
let localVarHttpContext = options && options.context;
|
|
14589
|
+
if (localVarHttpContext === undefined) {
|
|
14590
|
+
localVarHttpContext = new HttpContext();
|
|
14591
|
+
}
|
|
14592
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14593
|
+
if (localVarTransferCache === undefined) {
|
|
14594
|
+
localVarTransferCache = true;
|
|
14595
|
+
}
|
|
14596
|
+
// to determine the Content-Type header
|
|
14597
|
+
const consumes = [
|
|
14598
|
+
'application/json'
|
|
14599
|
+
];
|
|
14600
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14601
|
+
if (httpContentTypeSelected !== undefined) {
|
|
14602
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14603
|
+
}
|
|
14604
|
+
let responseType_ = 'json';
|
|
14605
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14606
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14607
|
+
responseType_ = 'text';
|
|
14608
|
+
}
|
|
14609
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14610
|
+
responseType_ = 'json';
|
|
14611
|
+
}
|
|
14612
|
+
else {
|
|
14613
|
+
responseType_ = 'blob';
|
|
14614
|
+
}
|
|
14615
|
+
}
|
|
14616
|
+
let localVarPath = `/context-types/${this.configuration.encodeParam({ name: "contextType", value: contextType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/contexts/${this.configuration.encodeParam({ name: "contextId", value: contextId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/theme-image-uploads`;
|
|
14617
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
14618
|
+
context: localVarHttpContext,
|
|
14619
|
+
body: themeImageUploadRequest,
|
|
14620
|
+
responseType: responseType_,
|
|
14621
|
+
withCredentials: this.configuration.withCredentials,
|
|
14622
|
+
headers: localVarHeaders,
|
|
14623
|
+
observe: observe,
|
|
14624
|
+
transferCache: localVarTransferCache,
|
|
14625
|
+
reportProgress: reportProgress
|
|
14626
|
+
});
|
|
14627
|
+
}
|
|
14628
|
+
postThemeImageUploadDeprecated(themeImageUploadRequest, observe = 'body', reportProgress = false, options) {
|
|
14629
|
+
if (themeImageUploadRequest === null || themeImageUploadRequest === undefined) {
|
|
14630
|
+
throw new Error('Required parameter themeImageUploadRequest was null or undefined when calling postThemeImageUploadDeprecated.');
|
|
14631
|
+
}
|
|
14632
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14633
|
+
let localVarCredential;
|
|
14634
|
+
// authentication (bearerToken) required
|
|
14635
|
+
localVarCredential = this.configuration.lookupCredential('bearerToken');
|
|
14636
|
+
if (localVarCredential) {
|
|
14637
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
14638
|
+
}
|
|
14639
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14640
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14641
|
+
// to determine the Accept header
|
|
14642
|
+
const httpHeaderAccepts = [
|
|
14643
|
+
'application/json'
|
|
14644
|
+
];
|
|
14645
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14646
|
+
}
|
|
14647
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14648
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14649
|
+
}
|
|
14650
|
+
let localVarHttpContext = options && options.context;
|
|
14651
|
+
if (localVarHttpContext === undefined) {
|
|
14652
|
+
localVarHttpContext = new HttpContext();
|
|
14653
|
+
}
|
|
14654
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14655
|
+
if (localVarTransferCache === undefined) {
|
|
14656
|
+
localVarTransferCache = true;
|
|
14657
|
+
}
|
|
14658
|
+
// to determine the Content-Type header
|
|
14659
|
+
const consumes = [
|
|
14660
|
+
'application/json'
|
|
14661
|
+
];
|
|
14662
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14663
|
+
if (httpContentTypeSelected !== undefined) {
|
|
14664
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14665
|
+
}
|
|
14666
|
+
let responseType_ = 'json';
|
|
14667
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14668
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
14669
|
+
responseType_ = 'text';
|
|
14670
|
+
}
|
|
14671
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14672
|
+
responseType_ = 'json';
|
|
14673
|
+
}
|
|
14674
|
+
else {
|
|
14675
|
+
responseType_ = 'blob';
|
|
14676
|
+
}
|
|
14677
|
+
}
|
|
14678
|
+
let localVarPath = `/theme-image-uploads`;
|
|
14679
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
14680
|
+
context: localVarHttpContext,
|
|
14681
|
+
body: themeImageUploadRequest,
|
|
14682
|
+
responseType: responseType_,
|
|
14683
|
+
withCredentials: this.configuration.withCredentials,
|
|
14684
|
+
headers: localVarHeaders,
|
|
14685
|
+
observe: observe,
|
|
14686
|
+
transferCache: localVarTransferCache,
|
|
14687
|
+
reportProgress: reportProgress
|
|
14688
|
+
});
|
|
14689
|
+
}
|
|
14690
|
+
postThemeSearch(themeSearchRequest, observe = 'body', reportProgress = false, options) {
|
|
14691
|
+
if (themeSearchRequest === null || themeSearchRequest === undefined) {
|
|
14692
|
+
throw new Error('Required parameter themeSearchRequest was null or undefined when calling postThemeSearch.');
|
|
14693
|
+
}
|
|
14694
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14695
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
14696
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
14697
|
+
// to determine the Accept header
|
|
14698
|
+
const httpHeaderAccepts = [
|
|
14699
|
+
'application/json'
|
|
14700
|
+
];
|
|
14701
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
14702
|
+
}
|
|
14703
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14704
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
14705
|
+
}
|
|
14706
|
+
let localVarHttpContext = options && options.context;
|
|
14707
|
+
if (localVarHttpContext === undefined) {
|
|
14708
|
+
localVarHttpContext = new HttpContext();
|
|
14709
|
+
}
|
|
14710
|
+
let localVarTransferCache = options && options.transferCache;
|
|
14711
|
+
if (localVarTransferCache === undefined) {
|
|
14712
|
+
localVarTransferCache = true;
|
|
14713
|
+
}
|
|
14714
|
+
// to determine the Content-Type header
|
|
14715
|
+
const consumes = [
|
|
14716
|
+
'application/json'
|
|
14717
|
+
];
|
|
14718
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14091
14719
|
if (httpContentTypeSelected !== undefined) {
|
|
14092
14720
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
14093
14721
|
}
|
|
@@ -15796,7 +16424,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
15796
16424
|
type: Optional
|
|
15797
16425
|
}] }] });
|
|
15798
16426
|
|
|
15799
|
-
const APIS = [AccountSecurityService, AccountsService, AssetCommentsService, AssetDeduplicationService, AssetDownloadEventsService, AssetEmbeddableLinksService, AssetMetadataExportService, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetShareAccessTokensService, AssetShareEmailsService, AssetSharesService, AssetsService, AutoTaggingImageSettingsService, CloudConnectionsService, CloudImportJobsService, CloudObjectsService, CollectionShareAccessTokensService, CollectionSharesService, CollectionsService, CorebookService, CustomService, DefaultService, ExternalAppService, FieldOptionImagesService, FieldOptionsService, FieldViewsService, FieldsService, FolderSettingsService, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadsService, OnboardingChecklistService, PingService, PortalAccessTokensService, PortalEmailsService, PortalsService, PresetTransformationsService, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalDatasService, SavedSearchService, SavedSearchesService, SearchFiltersService, ShopifyService, StaffMembersService, SubdomainsService, SubscriptionService, TextInImageSettingsService, ThemeService, UserPreferencesService, UserReferrerService, UsersService, WordPressService];
|
|
16427
|
+
const APIS = [AccountSecurityService, AccountsService, AssetCommentsService, AssetDeduplicationService, AssetDownloadEventsService, AssetEmbeddableLinksService, AssetMetadataExportService, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetShareAccessTokensService, AssetShareEmailsService, AssetSharesService, AssetsService, AutoTaggingImageSettingsService, CloudConnectionsService, CloudImportJobsService, CloudObjectsService, CollectionShareAccessTokensService, CollectionSharesService, CollectionsService, CorebookService, CustomService, DefaultService, EntityQuotaOverridesService, ExternalAppService, FieldOptionImagesService, FieldOptionsService, FieldViewsService, FieldsService, FolderSettingsService, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadsService, OnboardingChecklistService, PingService, PortalAccessTokensService, PortalEmailsService, PortalsService, PresetTransformationsService, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalDatasService, SavedSearchService, SavedSearchesService, SearchFiltersService, ShopifyService, StaffMembersService, SubdomainsService, SubscriptionService, TextInImageSettingsService, ThemeService, UserPreferencesService, UserReferrerService, UsersService, WordPressService];
|
|
15800
16428
|
|
|
15801
16429
|
/**
|
|
15802
16430
|
* Dash API
|
|
@@ -17558,6 +18186,30 @@ const EmbeddableLinkSortField = {
|
|
|
17558
18186
|
* Do not edit the class manually.
|
|
17559
18187
|
*/
|
|
17560
18188
|
|
|
18189
|
+
/**
|
|
18190
|
+
* Dash API
|
|
18191
|
+
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
18192
|
+
*
|
|
18193
|
+
* The version of the OpenAPI document: 2.0.0
|
|
18194
|
+
* Contact: help@dash.app
|
|
18195
|
+
*
|
|
18196
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
18197
|
+
* https://openapi-generator.tech
|
|
18198
|
+
* Do not edit the class manually.
|
|
18199
|
+
*/
|
|
18200
|
+
|
|
18201
|
+
/**
|
|
18202
|
+
* Dash API
|
|
18203
|
+
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
18204
|
+
*
|
|
18205
|
+
* The version of the OpenAPI document: 2.0.0
|
|
18206
|
+
* Contact: help@dash.app
|
|
18207
|
+
*
|
|
18208
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
18209
|
+
* https://openapi-generator.tech
|
|
18210
|
+
* Do not edit the class manually.
|
|
18211
|
+
*/
|
|
18212
|
+
|
|
17561
18213
|
/**
|
|
17562
18214
|
* Dash API
|
|
17563
18215
|
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
@@ -19788,6 +20440,20 @@ var SucceededPaymentStatus;
|
|
|
19788
20440
|
* https://openapi-generator.tech
|
|
19789
20441
|
* Do not edit the class manually.
|
|
19790
20442
|
*/
|
|
20443
|
+
var Theme;
|
|
20444
|
+
(function (Theme) {
|
|
20445
|
+
Theme.ContextTypeEnum = {
|
|
20446
|
+
Portal: 'PORTAL',
|
|
20447
|
+
Account: 'ACCOUNT'
|
|
20448
|
+
};
|
|
20449
|
+
})(Theme || (Theme = {}));
|
|
20450
|
+
|
|
20451
|
+
var ThemeAndSearchCriterion;
|
|
20452
|
+
(function (ThemeAndSearchCriterion) {
|
|
20453
|
+
ThemeAndSearchCriterion.TypeEnum = {
|
|
20454
|
+
And: 'AND'
|
|
20455
|
+
};
|
|
20456
|
+
})(ThemeAndSearchCriterion || (ThemeAndSearchCriterion = {}));
|
|
19791
20457
|
|
|
19792
20458
|
/**
|
|
19793
20459
|
* Dash API
|
|
@@ -19831,7 +20497,9 @@ const ThemeImageType = {
|
|
|
19831
20497
|
* Do not edit the class manually.
|
|
19832
20498
|
*/
|
|
19833
20499
|
const ThemeSearchField = {
|
|
19834
|
-
Subdomain: 'SUBDOMAIN'
|
|
20500
|
+
Subdomain: 'SUBDOMAIN',
|
|
20501
|
+
ContextType: 'CONTEXT_TYPE',
|
|
20502
|
+
ContextId: 'CONTEXT_ID'
|
|
19835
20503
|
};
|
|
19836
20504
|
|
|
19837
20505
|
var TieredValueBasedPlan;
|
|
@@ -20076,6 +20744,13 @@ var UserFieldEqualsSearchCriterion;
|
|
|
20076
20744
|
};
|
|
20077
20745
|
})(UserFieldEqualsSearchCriterion || (UserFieldEqualsSearchCriterion = {}));
|
|
20078
20746
|
|
|
20747
|
+
var UserFieldInSearchCriterion;
|
|
20748
|
+
(function (UserFieldInSearchCriterion) {
|
|
20749
|
+
UserFieldInSearchCriterion.TypeEnum = {
|
|
20750
|
+
FieldIn: 'FIELD_IN'
|
|
20751
|
+
};
|
|
20752
|
+
})(UserFieldInSearchCriterion || (UserFieldInSearchCriterion = {}));
|
|
20753
|
+
|
|
20079
20754
|
/**
|
|
20080
20755
|
* Dash API
|
|
20081
20756
|
* # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](#operation/postAssetUpload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](#operation/putCustomIntegrationSettings) (required for OAuth2 below), you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret, follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](#operation/putCustomIntegrationSettings). The response you receive from the custom integrations settings endpoint will include your client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](#operation/postAssetSearch) with the `STAGED_BY` criterion to find all [`Asset`](#tag/Assets) resources staged by the current user. Alternatively the [GET Current User](#operation/getCurrentUser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](#operation/getCurrentUser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](#tag/Assets) resources then the [GET Current User](#operation/getCurrentUser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](#tag/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](#tag/Fields) IDs. Full details, including the field name, can be got via the [GET Field](#tag/Fields/operation/getField) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](#tag/Fields) or a list of [`FieldOption`](#tag/Field-Options) IDs if [`Field.hasFixedOptions = true`](#tag/Fields) Where [`Field.hasFixedOptions = true`](#tag/Fields) details, including the field option name, can be got via the [GET Field Option](#operation/getFieldOption) endpoint. Where [`Field.hierarchical = true`](#tag/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](#tag/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](#tag/Fields/operation/getFields) endpoint. Where [`Field.hasFixedOptions = true`](#tag/Fields) the [POST Field Option Searches](#operation/postFieldOptionSearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](#tag/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](#tag/Field-Options), for the built-in Folders [`Field`](#tag/Fields). To determine the ID of the Folders [`Field`](#tag/Fields), use the [`Folder Settings`](#tag/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](#tag/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](#operation/postAssetSearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](#operation/postAssetAndUploadBatchJob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](#operation/postAssetUpload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](#operation/postAssetUpload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) 4. The assets will be created with a [lifecycle status](#tag/Asset-Lifecycle) of `STAGED`. Use the [POST Asset lifecycle transition batch job](postAssetLifecycleTransitionBatchJob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](#operation/postAssetUpload) via the [POST Asset Upload](#operation/postAssetUpload/operation/postAssetUpload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the (POST Asset Upload Completion)(#operation/postAssetUploadCompletion) ## Getting asset file versions The current [`AssetFile`](#operation/getAssetFiles) for an [`Asset`](#tag/Assets) is returned in the [`Asset`](#tag/Assets) resource via the [`Asset.currentFile`](#tag/Assets) property. The [GET Asset Files](#operation/getAssetFiles) endpoint can be used to get all [`AssetFile`](#operation/getAssetFiles) resources for an [`Asset`](#tag/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](#tag/Assets) map properties via the [POST Asset Metadata Edit Batch Job](#operation/postAssetMetadataEditBatchJob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](#operation/getAssetMetadataEditBatchJob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](#operation/postCollectionSearch/operation/postCollectionSearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](#tag/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](#operation/postAssetSearch) endpoint for how to specify the [`Collection.id`](#tag/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](#operation/postAssetSearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](#operation/postAssetSearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](#tag/Assets) : The datetime the [`Asset`](#tag/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](#tag/Assets) : The datetime the latest [`AssetFile`](#operation/getAssetFiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](#tag/Assets) : The datetime the *any* change was made to an [`Asset`](#tag/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
|
|
@@ -20118,7 +20793,9 @@ var UserOrSearchCriterion;
|
|
|
20118
20793
|
*/
|
|
20119
20794
|
const UserSearchField = {
|
|
20120
20795
|
IsAdmin: 'IS_ADMIN',
|
|
20121
|
-
Email: 'EMAIL'
|
|
20796
|
+
Email: 'EMAIL',
|
|
20797
|
+
Id: 'ID',
|
|
20798
|
+
Type: 'TYPE'
|
|
20122
20799
|
};
|
|
20123
20800
|
|
|
20124
20801
|
/**
|
|
@@ -20224,5 +20901,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
20224
20901
|
* Generated bundle index. Do not edit.
|
|
20225
20902
|
*/
|
|
20226
20903
|
|
|
20227
|
-
export { APIS, AccountPlan, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, ApiModule, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventField, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetShareSearchField, AssetShareSortField, AssetSharesService, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionShareSearchField, CollectionShareSortField, CollectionSharesService, CollectionSortField, CollectionsService, CompletedJob, Configuration, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DataType, DefaultService, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSortField, EventDateInterval, ExternalAccessUser, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LimitedDownloads, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PingService, PlanUpgradeRequiredDenialReason, PortalAccessTokensService, PortalEmailsService, PortalSortField, PortalUser, PortalsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, PublicCollectionShareSearchField, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalDatasService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyService, SliderValueBasedPlan, SortOrder, StaffMembersService, StorageAndDownloadsPlan, StorageAndDownloadsPlanRequest, StorageAndDownloadsV7Plan, StorageAndDownloadsV7PlanRequest, SubdomainsService, SubscriptionService, SucceededPaymentStatus, TextInImageSettingsService, ThemeImageType, ThemeSearchField, ThemeService, TieredValueBasedPlan, TieredValueBasedPlanRequest, UnlimitedDownloads, UnverifiedFreeTrialDenialReason, UnverifiedPaidPlanDenialReason, UserBatchCompletedJob, UserCanUploadSearchCriterion, UserCreationStatusResponse, UserDataAccountUser, UserDataPortalUser, UserDataShareUser, UserDataUnknown, UserFailure, UserFieldEqualsSearchCriterion, UserGroupSearchField, UserInGroupWhereFieldEqualsSearchCriterion, UserOrSearchCriterion, UserPreferencesService, UserReferrerService, UserSearchField, UserSortField, UsersService, WordPressService };
|
|
20904
|
+
export { APIS, AccountPlan, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, ApiModule, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventField, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetShareSearchField, AssetShareSortField, AssetSharesService, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionShareSearchField, CollectionShareSortField, CollectionSharesService, CollectionSortField, CollectionsService, CompletedJob, Configuration, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DataType, DefaultService, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSortField, EntityQuotaOverridesService, EventDateInterval, ExternalAccessUser, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LimitedDownloads, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PingService, PlanUpgradeRequiredDenialReason, PortalAccessTokensService, PortalEmailsService, PortalSortField, PortalUser, PortalsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, PublicCollectionShareSearchField, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalDatasService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyService, SliderValueBasedPlan, SortOrder, StaffMembersService, StorageAndDownloadsPlan, StorageAndDownloadsPlanRequest, StorageAndDownloadsV7Plan, StorageAndDownloadsV7PlanRequest, SubdomainsService, SubscriptionService, SucceededPaymentStatus, TextInImageSettingsService, Theme, ThemeAndSearchCriterion, ThemeImageType, ThemeSearchField, ThemeService, TieredValueBasedPlan, TieredValueBasedPlanRequest, UnlimitedDownloads, UnverifiedFreeTrialDenialReason, UnverifiedPaidPlanDenialReason, UserBatchCompletedJob, UserCanUploadSearchCriterion, UserCreationStatusResponse, UserDataAccountUser, UserDataPortalUser, UserDataShareUser, UserDataUnknown, UserFailure, UserFieldEqualsSearchCriterion, UserFieldInSearchCriterion, UserGroupSearchField, UserInGroupWhereFieldEqualsSearchCriterion, UserOrSearchCriterion, UserPreferencesService, UserReferrerService, UserSearchField, UserSortField, UsersService, WordPressService };
|
|
20228
20905
|
//# sourceMappingURL=brightinteractive-platform-api.mjs.map
|