@dronedeploy/rocos-js-sdk 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,9 @@
1
1
  export declare const API_APPLICATION_AUTH_URL = "https://{url}/applications/auth";
2
2
  export declare const API_ADMIN_USER_INVITATION_URL = "https://{url}/admin/users/invitations";
3
3
  export declare const API_USER_URL = "https://{url}/users";
4
- export declare const API_USER_AUTH_URL = "https://{url}/users/auth";
5
4
  export declare const API_USER_TOKEN_URL = "https://{url}/users/token";
6
5
  export declare const API_OTP_URL = "https://{url}/otp";
7
6
  export declare const API_OTP_AUTH_URL = "https://{url}/otp/auth";
8
- export declare const API_USER_PASSWORD_RESET_URL = "https://{url}/users/forgotten-password-reset";
9
7
  export declare const API_USER_PASSWORD_FORGOT_URL = "https://{url}/users/forgotten-password";
10
8
  export declare const API_USER_INVITATION_URL = "https://{url}/users/invitations";
11
9
  export declare const API_USER_INVITATION_ACCEPT_URL = "https://{url}/users/invitations/{invitationId}/accept";
@@ -19,8 +17,6 @@ export declare const API_ACCOUNT_ACTIVATE_URL = "https://{url}/accounts/{account
19
17
  export declare const API_AUTH_USER_ACCOUNT_USER_URL = "https://{url}/accounts/{accountId}/users";
20
18
  export declare const API_AUTH_USER_ACCOUNT_USER_ID_URL = "https://{url}/accounts/{accountId}/users/{userId}";
21
19
  export declare const API_ACCOUNT_SETTINGS_URL = "https://{url}/accounts/{accountId}/settings";
22
- export declare const API_ACCOUNT_INTEGRATION_URL = "https://{url}/accounts/{accountId}/integrations/{integrationId}";
23
- export declare const API_ACCOUNT_INTEGRATION_TYPE_URL = "https://{url}/accounts/{accountId}/integrations/{integrationId}/{integrationType}";
24
20
  export declare const API_SERVER_TIME_URL = "https://{url}/time";
25
21
  export declare const API_ACCOUNT_PROJECT_URL = "https://{url}/accounts/{accountId}/projects";
26
22
  export declare const API_ACCOUNT_PROJECT_ID_URL = "https://{url}/accounts/{accountId}/projects/{projectId}";
@@ -96,7 +92,6 @@ export declare const API_PROJECT_GROUP_TYPE_CONFIG_URL = "https://{url}/projects
96
92
  export declare const API_PROJECT_GROUP_TYPE_VERSION_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{version}";
97
93
  export declare const API_PROJECT_GROUP_TYPE_OWNER_ID_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/owner/{ownerId}";
98
94
  export declare const API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{ownerId}/override";
99
- export declare const API_PROJECT_EXPORT_URL = "https://{url}/projects/{projectId}/export-jobs";
100
95
  export declare const API_PROJECT_STREAM_URL = "https://{url}/projects/{projectId}/streams";
101
96
  export declare const API_PROJECT_STREAM_ID_URL = "https://{url}/projects/{projectId}/streams/{streamId}";
102
97
  export declare const API_PROJECT_STREAM_DATA_URL = "https://{url}/projects/{projectId}/streams/{streamId}/data";
@@ -140,6 +135,7 @@ export declare const API_GRAPHS_ASSETS_URL = "https://{url}/graphs/projects/{pro
140
135
  export declare const API_PROJECT_WORKFLOW_URL = "https://{url}/projects/{projectId}/automate/flows";
141
136
  export declare const API_PROJECT_WORKFLOW_ID_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}";
142
137
  export declare const API_PROJECT_WORKFLOW_ASSET_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets";
138
+ export declare const API_PROJECT_WORKFLOW_ASSET_ID_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets/{assetId}";
143
139
  export declare const API_PROJECT_ROBOT_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robot-definitions/{profileId}/robots/{callsign}/automate/flows/deployments";
144
140
  export declare const API_PROJECT_PROFILE_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robot-definitions/{profileId}/automate/flows/deployments";
145
141
  export declare const API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robots/{callsign}/automate/flows/deployments";
@@ -1,17 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.API_PROJECT_ROBOT_ATTRIBUTES_URL = exports.API_PROJECT_ROBOT_ID_URL = exports.API_PROJECT_ROBOT_URL = exports.API_PROJECT_MAPPED_ASSET_PATH_URL = exports.API_PROJECT_MAPPED_ASSETS_PATH_URL = exports.API_PROJECT_MISSION_ASSET_PATH_URL = exports.API_PROJECT_MISSION_ASSETS_PATH_URL = exports.API_PROJECT_FLOW_ASSET_PATH_URL = exports.API_PROJECT_ROBOT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATIONS_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PROVIDERS_PATH_URL = exports.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_URL = exports.API_PROJECT_USERS_URL = exports.API_PROJECT_ID_URL = exports.API_PROJECT_URL = exports.API_ACCOUNT_EXTERNAL_PROJECTS_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_ID_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_URL = exports.API_ACCOUNT_PROJECT_USER_ID_URL = exports.API_ACCOUNT_PROJECT_USER_URL = exports.API_ACCOUNT_PROJECT_ID_URL = exports.API_ACCOUNT_PROJECT_URL = exports.API_SERVER_TIME_URL = exports.API_ACCOUNT_INTEGRATION_TYPE_URL = exports.API_ACCOUNT_INTEGRATION_URL = exports.API_ACCOUNT_SETTINGS_URL = exports.API_AUTH_USER_ACCOUNT_USER_ID_URL = exports.API_AUTH_USER_ACCOUNT_USER_URL = exports.API_ACCOUNT_ACTIVATE_URL = exports.API_ACCOUNT_ID_URL = exports.API_ACCOUNT_URL = exports.API_USER_PAT_TOKEN_URL = exports.API_USER_PAT_URL = exports.API_USER_VERIFY_EMAIL_URL = exports.API_USER_INVITATION_CHECK_URL = exports.API_USER_INVITATION_ACCEPT_URL = exports.API_USER_INVITATION_URL = exports.API_USER_PASSWORD_FORGOT_URL = exports.API_USER_PASSWORD_RESET_URL = exports.API_OTP_AUTH_URL = exports.API_OTP_URL = exports.API_USER_TOKEN_URL = exports.API_USER_AUTH_URL = exports.API_USER_URL = exports.API_ADMIN_USER_INVITATION_URL = exports.API_APPLICATION_AUTH_URL = void 0;
4
- exports.API_PROJECT_STREAM_URL = exports.API_PROJECT_EXPORT_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_ID_URL = exports.API_PROJECT_GROUP_TYPE_VERSION_URL = exports.API_PROJECT_GROUP_TYPE_CONFIG_URL = exports.API_PROJECT_GROUP_TYPE_PUBLISH_URL = exports.API_PROJECT_GROUP_TYPE_ID_URL = exports.API_PROJECT_GROUP_TYPE_URL = exports.API_PROJECT_ENVIRONMENT_URL = exports.API_PROJECT_DEFINITION_IMPORT = exports.API_PROJECT_DEFINITION_EXPORT = exports.API_PROJECT_DEFINITION_GAMEPAD_URL = exports.API_PROJECT_DEFINITION_TRIGGER_URL = exports.API_PROJECT_DEFINITION_BUTTON_URL = exports.API_PROJECT_DEFINITION_ACTION_URL = exports.API_PROJECT_DEFINITION_EVENT_URL = exports.API_PROJECT_DEFINITION_COMMAND2_URL = exports.API_PROJECT_DEFINITION_COMMAND_URL = exports.API_PROJECT_DEFINITION_AGENT_URL = exports.API_PROJECT_DEFINITION_SETTING_URL = exports.API_PROJECT_DEFINITION_BLOB_URL = exports.API_PROJECT_DEFINITION_DASHBOARD_URL = exports.API_PROJECT_DEFINITION_COPY_URL = exports.API_PROJECT_DEFINITION_STREAM_URL = exports.API_PROJECT_DEFINITION_ID_URL = exports.API_PROJECT_DEFINITION_URL = exports.API_PROJECT_VROBOT_DEPLOY_URL = exports.API_PROJECT_VROBOT_DETAILS_URL = exports.API_PROJECT_COLLECTION_DOCS_URL = exports.API_PROJECT_COLLECTION_ID_URL = exports.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_DASHBOARD_WIDGET_URL = exports.API_PROJECT_DASHBOARD_ID_URL = exports.API_PROJECT_DASHBOARD_URL = exports.API_PROJECT_OPERATION_ID_URL = exports.API_PROJECT_OPERATION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTIONS_URL = exports.API_PROJECT_ROBOT_GAMEPAD_URL = exports.API_PROJECT_ROBOT_TRIGGER_URL = exports.API_PROJECT_ROBOT_BUTTON_URL = exports.API_PROJECT_ROBOT_COMMAND2_URL = exports.API_PROJECT_ROBOT_COMMAND_URL = exports.API_PROJECT_ROBOT_AGENT_URL = exports.API_PROJECT_ROBOT_SETTING_URL = exports.API_PROJECT_ROBOT_EVENT_HISTORY_URL = exports.API_PROJECT_ROBOT_EVENT_URL = exports.API_PROJECT_ROBOT_REGISTER_URL = exports.API_PROJECT_ROBOT_DEFINITION_URL = void 0;
5
- exports.API_DEVICE_CREDENTIALS_URL = exports.API_LINKED_PROJECT_URL = exports.API_PROJECT_WORKFLOW_AFFECTED_URL = exports.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_ROBOT_DEPLOYMENTS_URL = exports.API_PROJECT_WORKFLOW_ASSET_URL = exports.API_PROJECT_WORKFLOW_ID_URL = exports.API_PROJECT_WORKFLOW_URL = exports.API_GRAPHS_ASSETS_URL = exports.API_GRAPHS_ASSETS_UPLOAD_URL = exports.API_GRAPHS_TARGETS_URL = exports.API_GRAPHS_TARGET_UPLOAD_URL = exports.API_GRAPHS_OBSERVATION_KEYS_URL = exports.API_GRAPHS_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA = exports.API_GRAPHS_MAPS_GEOJSON_URL = exports.API_GRAPHS_MAPS_DEPLOY_URL = exports.API_GRAPHS_MAPS_COPY_URL = exports.API_GRAPHS_MAP_ID_URL = exports.API_GRAPHS_MAPS_MERGE_URL = exports.API_GRAPHS_MAPS_DEPLOYED_URL = exports.API_GRAPHS_MAPS_URL = exports.API_DD_INTEGRATION_LOCATIONS_URL = exports.API_DD_INTEGRATION_ISSUES_URL = exports.API_DD_INTEGRATION_OVERLAYS_URL = exports.API_DD_INTEGRATION_PLAN_BY_ID_URL = exports.API_DD_INTEGRATION_PLANS_URL = exports.API_SPOTTY_URL = exports.API_PROJECT_SCHEDULES_URL = exports.API_SOURCE_ID_URL = exports.API_SOURCE_URL = exports.API_SOURCE_SCHEMA_URL = exports.API_TEMPLATE_EXPORTER_URL = exports.API_TEMPLATE_PROVISION_ID_URL = exports.API_TEMPLATE_PROVISION_URL = exports.API_TEMPLATE_DEPLOY_URL = exports.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_PROFILE_DASHBOARD_ID_URL = exports.API_PROJECT_PROFILE_DASHBOARD_URL = exports.API_PROJECT_CALLSIGN_STREAM_URL = exports.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_ROBOT_DASHBOARD_ID_URL = exports.API_PROJECT_ROBOT_DASHBOARD_URL = exports.API_PROJECT_STREAM_CALLSIGN_URL = exports.API_PROJECT_STREAM_DATA_URL = exports.API_PROJECT_STREAM_ID_URL = void 0;
6
- exports.API_DEVICE_CREDENTIALS_AUTH_URL = void 0;
3
+ exports.API_PROJECT_ROBOT_EVENT_HISTORY_URL = exports.API_PROJECT_ROBOT_EVENT_URL = exports.API_PROJECT_ROBOT_REGISTER_URL = exports.API_PROJECT_ROBOT_DEFINITION_URL = exports.API_PROJECT_ROBOT_ATTRIBUTES_URL = exports.API_PROJECT_ROBOT_ID_URL = exports.API_PROJECT_ROBOT_URL = exports.API_PROJECT_MAPPED_ASSET_PATH_URL = exports.API_PROJECT_MAPPED_ASSETS_PATH_URL = exports.API_PROJECT_MISSION_ASSET_PATH_URL = exports.API_PROJECT_MISSION_ASSETS_PATH_URL = exports.API_PROJECT_FLOW_ASSET_PATH_URL = exports.API_PROJECT_ROBOT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATIONS_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PROVIDERS_PATH_URL = exports.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_URL = exports.API_PROJECT_USERS_URL = exports.API_PROJECT_ID_URL = exports.API_PROJECT_URL = exports.API_ACCOUNT_EXTERNAL_PROJECTS_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_ID_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_URL = exports.API_ACCOUNT_PROJECT_USER_ID_URL = exports.API_ACCOUNT_PROJECT_USER_URL = exports.API_ACCOUNT_PROJECT_ID_URL = exports.API_ACCOUNT_PROJECT_URL = exports.API_SERVER_TIME_URL = exports.API_ACCOUNT_SETTINGS_URL = exports.API_AUTH_USER_ACCOUNT_USER_ID_URL = exports.API_AUTH_USER_ACCOUNT_USER_URL = exports.API_ACCOUNT_ACTIVATE_URL = exports.API_ACCOUNT_ID_URL = exports.API_ACCOUNT_URL = exports.API_USER_PAT_TOKEN_URL = exports.API_USER_PAT_URL = exports.API_USER_VERIFY_EMAIL_URL = exports.API_USER_INVITATION_CHECK_URL = exports.API_USER_INVITATION_ACCEPT_URL = exports.API_USER_INVITATION_URL = exports.API_USER_PASSWORD_FORGOT_URL = exports.API_OTP_AUTH_URL = exports.API_OTP_URL = exports.API_USER_TOKEN_URL = exports.API_USER_URL = exports.API_ADMIN_USER_INVITATION_URL = exports.API_APPLICATION_AUTH_URL = void 0;
4
+ exports.API_PROJECT_ROBOT_DASHBOARD_ID_URL = exports.API_PROJECT_ROBOT_DASHBOARD_URL = exports.API_PROJECT_STREAM_CALLSIGN_URL = exports.API_PROJECT_STREAM_DATA_URL = exports.API_PROJECT_STREAM_ID_URL = exports.API_PROJECT_STREAM_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_ID_URL = exports.API_PROJECT_GROUP_TYPE_VERSION_URL = exports.API_PROJECT_GROUP_TYPE_CONFIG_URL = exports.API_PROJECT_GROUP_TYPE_PUBLISH_URL = exports.API_PROJECT_GROUP_TYPE_ID_URL = exports.API_PROJECT_GROUP_TYPE_URL = exports.API_PROJECT_ENVIRONMENT_URL = exports.API_PROJECT_DEFINITION_IMPORT = exports.API_PROJECT_DEFINITION_EXPORT = exports.API_PROJECT_DEFINITION_GAMEPAD_URL = exports.API_PROJECT_DEFINITION_TRIGGER_URL = exports.API_PROJECT_DEFINITION_BUTTON_URL = exports.API_PROJECT_DEFINITION_ACTION_URL = exports.API_PROJECT_DEFINITION_EVENT_URL = exports.API_PROJECT_DEFINITION_COMMAND2_URL = exports.API_PROJECT_DEFINITION_COMMAND_URL = exports.API_PROJECT_DEFINITION_AGENT_URL = exports.API_PROJECT_DEFINITION_SETTING_URL = exports.API_PROJECT_DEFINITION_BLOB_URL = exports.API_PROJECT_DEFINITION_DASHBOARD_URL = exports.API_PROJECT_DEFINITION_COPY_URL = exports.API_PROJECT_DEFINITION_STREAM_URL = exports.API_PROJECT_DEFINITION_ID_URL = exports.API_PROJECT_DEFINITION_URL = exports.API_PROJECT_VROBOT_DEPLOY_URL = exports.API_PROJECT_VROBOT_DETAILS_URL = exports.API_PROJECT_COLLECTION_DOCS_URL = exports.API_PROJECT_COLLECTION_ID_URL = exports.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_DASHBOARD_WIDGET_URL = exports.API_PROJECT_DASHBOARD_ID_URL = exports.API_PROJECT_DASHBOARD_URL = exports.API_PROJECT_OPERATION_ID_URL = exports.API_PROJECT_OPERATION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTIONS_URL = exports.API_PROJECT_ROBOT_GAMEPAD_URL = exports.API_PROJECT_ROBOT_TRIGGER_URL = exports.API_PROJECT_ROBOT_BUTTON_URL = exports.API_PROJECT_ROBOT_COMMAND2_URL = exports.API_PROJECT_ROBOT_COMMAND_URL = exports.API_PROJECT_ROBOT_AGENT_URL = exports.API_PROJECT_ROBOT_SETTING_URL = void 0;
5
+ exports.API_DEVICE_CREDENTIALS_AUTH_URL = exports.API_DEVICE_CREDENTIALS_URL = exports.API_LINKED_PROJECT_URL = exports.API_PROJECT_WORKFLOW_AFFECTED_URL = exports.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_ROBOT_DEPLOYMENTS_URL = exports.API_PROJECT_WORKFLOW_ASSET_ID_URL = exports.API_PROJECT_WORKFLOW_ASSET_URL = exports.API_PROJECT_WORKFLOW_ID_URL = exports.API_PROJECT_WORKFLOW_URL = exports.API_GRAPHS_ASSETS_URL = exports.API_GRAPHS_ASSETS_UPLOAD_URL = exports.API_GRAPHS_TARGETS_URL = exports.API_GRAPHS_TARGET_UPLOAD_URL = exports.API_GRAPHS_OBSERVATION_KEYS_URL = exports.API_GRAPHS_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA = exports.API_GRAPHS_MAPS_GEOJSON_URL = exports.API_GRAPHS_MAPS_DEPLOY_URL = exports.API_GRAPHS_MAPS_COPY_URL = exports.API_GRAPHS_MAP_ID_URL = exports.API_GRAPHS_MAPS_MERGE_URL = exports.API_GRAPHS_MAPS_DEPLOYED_URL = exports.API_GRAPHS_MAPS_URL = exports.API_DD_INTEGRATION_LOCATIONS_URL = exports.API_DD_INTEGRATION_ISSUES_URL = exports.API_DD_INTEGRATION_OVERLAYS_URL = exports.API_DD_INTEGRATION_PLAN_BY_ID_URL = exports.API_DD_INTEGRATION_PLANS_URL = exports.API_SPOTTY_URL = exports.API_PROJECT_SCHEDULES_URL = exports.API_SOURCE_ID_URL = exports.API_SOURCE_URL = exports.API_SOURCE_SCHEMA_URL = exports.API_TEMPLATE_EXPORTER_URL = exports.API_TEMPLATE_PROVISION_ID_URL = exports.API_TEMPLATE_PROVISION_URL = exports.API_TEMPLATE_DEPLOY_URL = exports.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_PROFILE_DASHBOARD_ID_URL = exports.API_PROJECT_PROFILE_DASHBOARD_URL = exports.API_PROJECT_CALLSIGN_STREAM_URL = exports.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL = void 0;
7
6
  exports.API_APPLICATION_AUTH_URL = 'https://{url}/applications/auth';
8
7
  exports.API_ADMIN_USER_INVITATION_URL = 'https://{url}/admin/users/invitations';
9
8
  exports.API_USER_URL = 'https://{url}/users';
10
- exports.API_USER_AUTH_URL = 'https://{url}/users/auth';
11
9
  exports.API_USER_TOKEN_URL = 'https://{url}/users/token';
12
10
  exports.API_OTP_URL = 'https://{url}/otp';
13
11
  exports.API_OTP_AUTH_URL = 'https://{url}/otp/auth';
14
- exports.API_USER_PASSWORD_RESET_URL = 'https://{url}/users/forgotten-password-reset';
15
12
  exports.API_USER_PASSWORD_FORGOT_URL = 'https://{url}/users/forgotten-password';
16
13
  exports.API_USER_INVITATION_URL = 'https://{url}/users/invitations';
17
14
  exports.API_USER_INVITATION_ACCEPT_URL = 'https://{url}/users/invitations/{invitationId}/accept';
@@ -25,8 +22,6 @@ exports.API_ACCOUNT_ACTIVATE_URL = 'https://{url}/accounts/{accountId}/activate'
25
22
  exports.API_AUTH_USER_ACCOUNT_USER_URL = 'https://{url}/accounts/{accountId}/users';
26
23
  exports.API_AUTH_USER_ACCOUNT_USER_ID_URL = 'https://{url}/accounts/{accountId}/users/{userId}';
27
24
  exports.API_ACCOUNT_SETTINGS_URL = 'https://{url}/accounts/{accountId}/settings';
28
- exports.API_ACCOUNT_INTEGRATION_URL = 'https://{url}/accounts/{accountId}/integrations/{integrationId}';
29
- exports.API_ACCOUNT_INTEGRATION_TYPE_URL = 'https://{url}/accounts/{accountId}/integrations/{integrationId}/{integrationType}';
30
25
  exports.API_SERVER_TIME_URL = 'https://{url}/time';
31
26
  exports.API_ACCOUNT_PROJECT_URL = 'https://{url}/accounts/{accountId}/projects';
32
27
  exports.API_ACCOUNT_PROJECT_ID_URL = 'https://{url}/accounts/{accountId}/projects/{projectId}';
@@ -102,7 +97,6 @@ exports.API_PROJECT_GROUP_TYPE_CONFIG_URL = 'https://{url}/projects/{projectId}/
102
97
  exports.API_PROJECT_GROUP_TYPE_VERSION_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{version}';
103
98
  exports.API_PROJECT_GROUP_TYPE_OWNER_ID_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/owner/{ownerId}';
104
99
  exports.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{ownerId}/override';
105
- exports.API_PROJECT_EXPORT_URL = 'https://{url}/projects/{projectId}/export-jobs';
106
100
  exports.API_PROJECT_STREAM_URL = 'https://{url}/projects/{projectId}/streams';
107
101
  exports.API_PROJECT_STREAM_ID_URL = 'https://{url}/projects/{projectId}/streams/{streamId}';
108
102
  exports.API_PROJECT_STREAM_DATA_URL = 'https://{url}/projects/{projectId}/streams/{streamId}/data';
@@ -146,6 +140,7 @@ exports.API_GRAPHS_ASSETS_URL = 'https://{url}/graphs/projects/{projectId}/asset
146
140
  exports.API_PROJECT_WORKFLOW_URL = 'https://{url}/projects/{projectId}/automate/flows';
147
141
  exports.API_PROJECT_WORKFLOW_ID_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}';
148
142
  exports.API_PROJECT_WORKFLOW_ASSET_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets';
143
+ exports.API_PROJECT_WORKFLOW_ASSET_ID_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets/{assetId}';
149
144
  exports.API_PROJECT_ROBOT_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robot-definitions/{profileId}/robots/{callsign}/automate/flows/deployments';
150
145
  exports.API_PROJECT_PROFILE_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robot-definitions/{profileId}/automate/flows/deployments';
151
146
  exports.API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robots/{callsign}/automate/flows/deployments';
@@ -7,6 +7,7 @@ export interface Resource {
7
7
  contentLink?: string;
8
8
  size?: number;
9
9
  path?: string;
10
+ id?: string;
10
11
  }
11
12
  export interface Resources {
12
13
  [key: string]: Resource;
@@ -1,8 +1,5 @@
1
- import type { Workflow, WorkflowBase } from '../models/workflow/Workflow';
2
- import { RocosError } from '../models/RocosError';
1
+ import { type IBaseService, type IRocosSDKConfig, RocosError, type Workflow, type WorkflowBase } from '../models';
3
2
  import { BaseServiceAbstract } from './BaseServiceAbstract';
4
- import { IBaseService } from '../models/IBaseService';
5
- import { IRocosSDKConfig } from '../models/IRocosSDKConfig';
6
3
  export declare class WorkflowService extends BaseServiceAbstract implements IBaseService {
7
4
  constructor(config: IRocosSDKConfig);
8
5
  protected getError(e: Error): RocosError;
@@ -52,6 +49,7 @@ export declare class WorkflowService extends BaseServiceAbstract implements IBas
52
49
  */
53
50
  uploadAsset(projectId: string, workflowId: string, fileName: string, arrayBuffer: ArrayBuffer): Promise<void>;
54
51
  protected uploadAssetWithHash(projectId: string, workflowId: string, fileName: string, arrayBuffer: ArrayBuffer, hash: string): Promise<void>;
52
+ deleteAsset(projectId: string, workflowId: string, assetId: string): Promise<void>;
55
53
  /**
56
54
  * Get deployed workflows on robot
57
55
  *
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WorkflowService = void 0;
4
4
  const api_1 = require("../constants/api");
5
- const RocosError_1 = require("../models/RocosError");
5
+ const models_1 = require("../models");
6
6
  const BaseServiceAbstract_1 = require("./BaseServiceAbstract");
7
7
  const RocosLogger_1 = require("../logger/RocosLogger");
8
8
  const formatServiceUrl_1 = require("../helpers/formatServiceUrl");
@@ -13,7 +13,7 @@ class WorkflowService extends BaseServiceAbstract_1.BaseServiceAbstract {
13
13
  this.logger = RocosLogger_1.RocosLogger.getInstance(`WorkflowService(${this.config.url})`);
14
14
  }
15
15
  getError(e) {
16
- return new RocosError_1.RocosError(e, RocosError_1.errorCodes.WORKFLOW_SERVICE_ERROR);
16
+ return new models_1.RocosError(e, models_1.errorCodes.WORKFLOW_SERVICE_ERROR);
17
17
  }
18
18
  getStatus() {
19
19
  return true;
@@ -95,6 +95,9 @@ class WorkflowService extends BaseServiceAbstract_1.BaseServiceAbstract {
95
95
  if (uploadResponse.status !== 200)
96
96
  throw new Error(`Failed to upload file: ${uploadResponse.statusText}`);
97
97
  }
98
+ async deleteAsset(projectId, workflowId, assetId) {
99
+ return this.callDelete((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_PROJECT_WORKFLOW_ASSET_ID_URL, { url: this.config.url, projectId, workflowId, assetId }, this.config.insecure), `Failed to delete asset for ${projectId}, workflowId ${workflowId}.`);
100
+ }
98
101
  // Deployments
99
102
  /**
100
103
  * Get deployed workflows on robot
@@ -1,11 +1,9 @@
1
1
  export declare const API_APPLICATION_AUTH_URL = "https://{url}/applications/auth";
2
2
  export declare const API_ADMIN_USER_INVITATION_URL = "https://{url}/admin/users/invitations";
3
3
  export declare const API_USER_URL = "https://{url}/users";
4
- export declare const API_USER_AUTH_URL = "https://{url}/users/auth";
5
4
  export declare const API_USER_TOKEN_URL = "https://{url}/users/token";
6
5
  export declare const API_OTP_URL = "https://{url}/otp";
7
6
  export declare const API_OTP_AUTH_URL = "https://{url}/otp/auth";
8
- export declare const API_USER_PASSWORD_RESET_URL = "https://{url}/users/forgotten-password-reset";
9
7
  export declare const API_USER_PASSWORD_FORGOT_URL = "https://{url}/users/forgotten-password";
10
8
  export declare const API_USER_INVITATION_URL = "https://{url}/users/invitations";
11
9
  export declare const API_USER_INVITATION_ACCEPT_URL = "https://{url}/users/invitations/{invitationId}/accept";
@@ -19,8 +17,6 @@ export declare const API_ACCOUNT_ACTIVATE_URL = "https://{url}/accounts/{account
19
17
  export declare const API_AUTH_USER_ACCOUNT_USER_URL = "https://{url}/accounts/{accountId}/users";
20
18
  export declare const API_AUTH_USER_ACCOUNT_USER_ID_URL = "https://{url}/accounts/{accountId}/users/{userId}";
21
19
  export declare const API_ACCOUNT_SETTINGS_URL = "https://{url}/accounts/{accountId}/settings";
22
- export declare const API_ACCOUNT_INTEGRATION_URL = "https://{url}/accounts/{accountId}/integrations/{integrationId}";
23
- export declare const API_ACCOUNT_INTEGRATION_TYPE_URL = "https://{url}/accounts/{accountId}/integrations/{integrationId}/{integrationType}";
24
20
  export declare const API_SERVER_TIME_URL = "https://{url}/time";
25
21
  export declare const API_ACCOUNT_PROJECT_URL = "https://{url}/accounts/{accountId}/projects";
26
22
  export declare const API_ACCOUNT_PROJECT_ID_URL = "https://{url}/accounts/{accountId}/projects/{projectId}";
@@ -96,7 +92,6 @@ export declare const API_PROJECT_GROUP_TYPE_CONFIG_URL = "https://{url}/projects
96
92
  export declare const API_PROJECT_GROUP_TYPE_VERSION_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{version}";
97
93
  export declare const API_PROJECT_GROUP_TYPE_OWNER_ID_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/owner/{ownerId}";
98
94
  export declare const API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = "https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{ownerId}/override";
99
- export declare const API_PROJECT_EXPORT_URL = "https://{url}/projects/{projectId}/export-jobs";
100
95
  export declare const API_PROJECT_STREAM_URL = "https://{url}/projects/{projectId}/streams";
101
96
  export declare const API_PROJECT_STREAM_ID_URL = "https://{url}/projects/{projectId}/streams/{streamId}";
102
97
  export declare const API_PROJECT_STREAM_DATA_URL = "https://{url}/projects/{projectId}/streams/{streamId}/data";
@@ -140,6 +135,7 @@ export declare const API_GRAPHS_ASSETS_URL = "https://{url}/graphs/projects/{pro
140
135
  export declare const API_PROJECT_WORKFLOW_URL = "https://{url}/projects/{projectId}/automate/flows";
141
136
  export declare const API_PROJECT_WORKFLOW_ID_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}";
142
137
  export declare const API_PROJECT_WORKFLOW_ASSET_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets";
138
+ export declare const API_PROJECT_WORKFLOW_ASSET_ID_URL = "https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets/{assetId}";
143
139
  export declare const API_PROJECT_ROBOT_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robot-definitions/{profileId}/robots/{callsign}/automate/flows/deployments";
144
140
  export declare const API_PROJECT_PROFILE_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robot-definitions/{profileId}/automate/flows/deployments";
145
141
  export declare const API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = "https://{url}/projects/{projectId}/robots/{callsign}/automate/flows/deployments";
@@ -1,11 +1,9 @@
1
1
  export const API_APPLICATION_AUTH_URL = 'https://{url}/applications/auth';
2
2
  export const API_ADMIN_USER_INVITATION_URL = 'https://{url}/admin/users/invitations';
3
3
  export const API_USER_URL = 'https://{url}/users';
4
- export const API_USER_AUTH_URL = 'https://{url}/users/auth';
5
4
  export const API_USER_TOKEN_URL = 'https://{url}/users/token';
6
5
  export const API_OTP_URL = 'https://{url}/otp';
7
6
  export const API_OTP_AUTH_URL = 'https://{url}/otp/auth';
8
- export const API_USER_PASSWORD_RESET_URL = 'https://{url}/users/forgotten-password-reset';
9
7
  export const API_USER_PASSWORD_FORGOT_URL = 'https://{url}/users/forgotten-password';
10
8
  export const API_USER_INVITATION_URL = 'https://{url}/users/invitations';
11
9
  export const API_USER_INVITATION_ACCEPT_URL = 'https://{url}/users/invitations/{invitationId}/accept';
@@ -19,8 +17,6 @@ export const API_ACCOUNT_ACTIVATE_URL = 'https://{url}/accounts/{accountId}/acti
19
17
  export const API_AUTH_USER_ACCOUNT_USER_URL = 'https://{url}/accounts/{accountId}/users';
20
18
  export const API_AUTH_USER_ACCOUNT_USER_ID_URL = 'https://{url}/accounts/{accountId}/users/{userId}';
21
19
  export const API_ACCOUNT_SETTINGS_URL = 'https://{url}/accounts/{accountId}/settings';
22
- export const API_ACCOUNT_INTEGRATION_URL = 'https://{url}/accounts/{accountId}/integrations/{integrationId}';
23
- export const API_ACCOUNT_INTEGRATION_TYPE_URL = 'https://{url}/accounts/{accountId}/integrations/{integrationId}/{integrationType}';
24
20
  export const API_SERVER_TIME_URL = 'https://{url}/time';
25
21
  export const API_ACCOUNT_PROJECT_URL = 'https://{url}/accounts/{accountId}/projects';
26
22
  export const API_ACCOUNT_PROJECT_ID_URL = 'https://{url}/accounts/{accountId}/projects/{projectId}';
@@ -96,7 +92,6 @@ export const API_PROJECT_GROUP_TYPE_CONFIG_URL = 'https://{url}/projects/{projec
96
92
  export const API_PROJECT_GROUP_TYPE_VERSION_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{version}';
97
93
  export const API_PROJECT_GROUP_TYPE_OWNER_ID_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/owner/{ownerId}';
98
94
  export const API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = 'https://{url}/projects/{projectId}/config-groups/{type}/{configGroupId}/{ownerId}/override';
99
- export const API_PROJECT_EXPORT_URL = 'https://{url}/projects/{projectId}/export-jobs';
100
95
  export const API_PROJECT_STREAM_URL = 'https://{url}/projects/{projectId}/streams';
101
96
  export const API_PROJECT_STREAM_ID_URL = 'https://{url}/projects/{projectId}/streams/{streamId}';
102
97
  export const API_PROJECT_STREAM_DATA_URL = 'https://{url}/projects/{projectId}/streams/{streamId}/data';
@@ -140,6 +135,7 @@ export const API_GRAPHS_ASSETS_URL = 'https://{url}/graphs/projects/{projectId}/
140
135
  export const API_PROJECT_WORKFLOW_URL = 'https://{url}/projects/{projectId}/automate/flows';
141
136
  export const API_PROJECT_WORKFLOW_ID_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}';
142
137
  export const API_PROJECT_WORKFLOW_ASSET_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets';
138
+ export const API_PROJECT_WORKFLOW_ASSET_ID_URL = 'https://{url}/projects/{projectId}/automate/flows/{workflowId}/assets/{assetId}';
143
139
  export const API_PROJECT_ROBOT_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robot-definitions/{profileId}/robots/{callsign}/automate/flows/deployments';
144
140
  export const API_PROJECT_PROFILE_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robot-definitions/{profileId}/automate/flows/deployments';
145
141
  export const API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = 'https://{url}/projects/{projectId}/robots/{callsign}/automate/flows/deployments';
@@ -7,6 +7,7 @@ export interface Resource {
7
7
  contentLink?: string;
8
8
  size?: number;
9
9
  path?: string;
10
+ id?: string;
10
11
  }
11
12
  export interface Resources {
12
13
  [key: string]: Resource;
@@ -1,8 +1,5 @@
1
- import type { Workflow, WorkflowBase } from '../models/workflow/Workflow';
2
- import { RocosError } from '../models/RocosError';
1
+ import { type IBaseService, type IRocosSDKConfig, RocosError, type Workflow, type WorkflowBase } from '../models';
3
2
  import { BaseServiceAbstract } from './BaseServiceAbstract';
4
- import { IBaseService } from '../models/IBaseService';
5
- import { IRocosSDKConfig } from '../models/IRocosSDKConfig';
6
3
  export declare class WorkflowService extends BaseServiceAbstract implements IBaseService {
7
4
  constructor(config: IRocosSDKConfig);
8
5
  protected getError(e: Error): RocosError;
@@ -52,6 +49,7 @@ export declare class WorkflowService extends BaseServiceAbstract implements IBas
52
49
  */
53
50
  uploadAsset(projectId: string, workflowId: string, fileName: string, arrayBuffer: ArrayBuffer): Promise<void>;
54
51
  protected uploadAssetWithHash(projectId: string, workflowId: string, fileName: string, arrayBuffer: ArrayBuffer, hash: string): Promise<void>;
52
+ deleteAsset(projectId: string, workflowId: string, assetId: string): Promise<void>;
55
53
  /**
56
54
  * Get deployed workflows on robot
57
55
  *
@@ -1,5 +1,5 @@
1
- import { API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL, API_PROJECT_PROFILE_DEPLOYMENTS_URL, API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL, API_PROJECT_ROBOT_DEPLOYMENTS_URL, API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL, API_PROJECT_WORKFLOW_AFFECTED_URL, API_PROJECT_WORKFLOW_ASSET_URL, API_PROJECT_WORKFLOW_ID_URL, API_PROJECT_WORKFLOW_URL, } from '../constants/api';
2
- import { RocosError, errorCodes } from '../models/RocosError';
1
+ import { API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL, API_PROJECT_PROFILE_DEPLOYMENTS_URL, API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL, API_PROJECT_ROBOT_DEPLOYMENTS_URL, API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL, API_PROJECT_WORKFLOW_AFFECTED_URL, API_PROJECT_WORKFLOW_ASSET_ID_URL, API_PROJECT_WORKFLOW_ASSET_URL, API_PROJECT_WORKFLOW_ID_URL, API_PROJECT_WORKFLOW_URL, } from '../constants/api';
2
+ import { RocosError, errorCodes, } from '../models';
3
3
  import { BaseServiceAbstract } from './BaseServiceAbstract';
4
4
  import { RocosLogger } from '../logger/RocosLogger';
5
5
  import { formatServiceUrl } from '../helpers/formatServiceUrl';
@@ -92,6 +92,9 @@ export class WorkflowService extends BaseServiceAbstract {
92
92
  if (uploadResponse.status !== 200)
93
93
  throw new Error(`Failed to upload file: ${uploadResponse.statusText}`);
94
94
  }
95
+ async deleteAsset(projectId, workflowId, assetId) {
96
+ return this.callDelete(formatServiceUrl(API_PROJECT_WORKFLOW_ASSET_ID_URL, { url: this.config.url, projectId, workflowId, assetId }, this.config.insecure), `Failed to delete asset for ${projectId}, workflowId ${workflowId}.`);
97
+ }
95
98
  // Deployments
96
99
  /**
97
100
  * Get deployed workflows on robot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dronedeploy/rocos-js-sdk",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Javascript SDK for rocos",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",