@northern.tech/store 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +9 -0
- package/.prettierignore +1 -0
- package/CHANGELOG.md +12 -0
- package/actions.ts +32 -0
- package/api/general-api.test.ts +51 -0
- package/api/general-api.ts +60 -0
- package/api/types/AWSCredentials.ts +16 -0
- package/api/types/Actor.ts +35 -0
- package/api/types/Addon.ts +17 -0
- package/api/types/AddonTenantadm.ts +17 -0
- package/api/types/Alert.ts +34 -0
- package/api/types/AlertDetails.ts +23 -0
- package/api/types/AlertSubject.ts +23 -0
- package/api/types/ApiBurst.ts +21 -0
- package/api/types/ApiBurstTenantadm.ts +21 -0
- package/api/types/ApiLimits.ts +16 -0
- package/api/types/ApiLimitsTenantadm.ts +16 -0
- package/api/types/ApiQuota.ts +17 -0
- package/api/types/ApiQuotaTenantadm.ts +17 -0
- package/api/types/Artifact.ts +48 -0
- package/api/types/ArtifactDeployments.ts +48 -0
- package/api/types/ArtifactInfo.ts +11 -0
- package/api/types/ArtifactInfoDeployments.ts +11 -0
- package/api/types/ArtifactLink.ts +11 -0
- package/api/types/ArtifactTypeInfo.ts +13 -0
- package/api/types/ArtifactTypeInfoDeployments.ts +13 -0
- package/api/types/ArtifactUpdate.ts +10 -0
- package/api/types/ArtifactUploadLink.ts +15 -0
- package/api/types/Attribute.ts +36 -0
- package/api/types/AttributeInventory.ts +32 -0
- package/api/types/AuditLog.ts +26 -0
- package/api/types/AuthSet.ts +33 -0
- package/api/types/AuthSetDeviceauth.ts +37 -0
- package/api/types/AutoAuthRequest.ts +23 -0
- package/api/types/AzureSharedAccessSecret.ts +11 -0
- package/api/types/BillingInfo.ts +13 -0
- package/api/types/BinaryDeltaConfiguration.ts +15 -0
- package/api/types/BinaryDeltaConfigurationDeployments.ts +15 -0
- package/api/types/BinaryDeltaLimits.ts +15 -0
- package/api/types/BinaryDeltaLimitsDeployments.ts +15 -0
- package/api/types/BoundingBox.ts +11 -0
- package/api/types/CancelRequest.ts +10 -0
- package/api/types/CardData.ts +49 -0
- package/api/types/CardSetupData.ts +17 -0
- package/api/types/CheckoutData.ts +13 -0
- package/api/types/Configuration.ts +11 -0
- package/api/types/Count.ts +13 -0
- package/api/types/Credentials.ts +23 -0
- package/api/types/DBusSubsystem.ts +27 -0
- package/api/types/DeltaConfiguration.ts +14 -0
- package/api/types/DeltaConfigurationDeployments.ts +14 -0
- package/api/types/Deployment.ts +95 -0
- package/api/types/DeploymentAggregation.ts +18 -0
- package/api/types/DeploymentAggregationItem.ts +18 -0
- package/api/types/DeploymentAggregationTerm.ts +23 -0
- package/api/types/DeploymentAggregationTerms.ts +18 -0
- package/api/types/DeploymentAttributeProjection.ts +11 -0
- package/api/types/DeploymentAuditlogs.ts +11 -0
- package/api/types/DeploymentDeployments.ts +99 -0
- package/api/types/DeploymentFilterTerm.ts +37 -0
- package/api/types/DeploymentIdentifier.ts +10 -0
- package/api/types/DeploymentPhase.ts +23 -0
- package/api/types/DeploymentReporting.ts +46 -0
- package/api/types/DeploymentSearchTerms.ts +39 -0
- package/api/types/DeploymentSortTerm.ts +25 -0
- package/api/types/DeploymentStatistics.ts +15 -0
- package/api/types/DeploymentStatusStatistics.ts +54 -0
- package/api/types/Device.ts +29 -0
- package/api/types/DeviceAggregation.ts +18 -0
- package/api/types/DeviceAggregationItem.ts +18 -0
- package/api/types/DeviceAggregationTerm.ts +27 -0
- package/api/types/DeviceAggregationTerms.ts +22 -0
- package/api/types/DeviceAttribute.ts +23 -0
- package/api/types/DeviceAttributeProjection.ts +15 -0
- package/api/types/DeviceAuditlogs.ts +17 -0
- package/api/types/DeviceAuthEvent.ts +23 -0
- package/api/types/DeviceConfiguration.ts +16 -0
- package/api/types/DeviceDeployment.ts +11 -0
- package/api/types/DeviceDeployments.ts +31 -0
- package/api/types/DeviceDeviceauth.ts +42 -0
- package/api/types/DeviceFilterAttribute.ts +22 -0
- package/api/types/DeviceFilterTerm.ts +41 -0
- package/api/types/DeviceInventory.ts +19 -0
- package/api/types/DeviceInventoryInventory.ts +19 -0
- package/api/types/DeviceReporting.ts +22 -0
- package/api/types/DeviceSearchTerms.ts +39 -0
- package/api/types/DeviceSortTerm.ts +29 -0
- package/api/types/DeviceState.ts +32 -0
- package/api/types/DeviceStateDeviceconnect.ts +33 -0
- package/api/types/DeviceStateIot_manager.ts +14 -0
- package/api/types/DeviceStatus.ts +19 -0
- package/api/types/DeviceWithImage.ts +80 -0
- package/api/types/DirectUploadMetadata.ts +18 -0
- package/api/types/EmailVerificationCompletion.ts +13 -0
- package/api/types/EmailVerificationRequest.ts +13 -0
- package/api/types/Error.ts +17 -0
- package/api/types/ErrorAuditlogs.ts +13 -0
- package/api/types/ErrorDeployments.ts +17 -0
- package/api/types/ErrorDeviceauth.ts +13 -0
- package/api/types/ErrorDeviceconfig.ts +17 -0
- package/api/types/ErrorDeviceconnect.ts +17 -0
- package/api/types/ErrorDevicemonitor.ts +17 -0
- package/api/types/ErrorExt.ts +18 -0
- package/api/types/ErrorInventory.ts +17 -0
- package/api/types/ErrorIot_manager.ts +17 -0
- package/api/types/ErrorNotFound.ts +17 -0
- package/api/types/ErrorReporting.ts +18 -0
- package/api/types/ErrorTenantadm.ts +13 -0
- package/api/types/ErrorUseradm.ts +17 -0
- package/api/types/Event.ts +48 -0
- package/api/types/ExternalIdentity.ts +17 -0
- package/api/types/Features.ts +17 -0
- package/api/types/FileUpload.ts +23 -0
- package/api/types/Filter.ts +19 -0
- package/api/types/FilterAttribute.ts +21 -0
- package/api/types/FilterDefinition.ts +18 -0
- package/api/types/FilterDeployments.ts +19 -0
- package/api/types/FilterInventory.ts +20 -0
- package/api/types/FilterPredicate.ts +78 -0
- package/api/types/FilterPredicateDeployments.ts +48 -0
- package/api/types/FilterPredicateInventory.ts +76 -0
- package/api/types/GeoBoundingBox.ts +10 -0
- package/api/types/GeoBoundingBoxFilter.ts +6 -0
- package/api/types/GeoDistance.ts +17 -0
- package/api/types/GeoDistanceFilter.ts +10 -0
- package/api/types/GeoPoint.ts +15 -0
- package/api/types/Group.ts +10 -0
- package/api/types/HTTP.ts +19 -0
- package/api/types/IdentityData.ts +25 -0
- package/api/types/InputParameter.ts +8 -0
- package/api/types/Integration.ts +24 -0
- package/api/types/JobStatus.ts +13 -0
- package/api/types/Limit.ts +21 -0
- package/api/types/LimitDeployments.ts +21 -0
- package/api/types/LimitDeviceauth.ts +10 -0
- package/api/types/LimitUseradm.ts +11 -0
- package/api/types/Limits.ts +11 -0
- package/api/types/LineDescriptor.ts +11 -0
- package/api/types/LogSubsystem.ts +23 -0
- package/api/types/LoginOptions.ts +18 -0
- package/api/types/ManagementAPIConfiguration.ts +5 -0
- package/api/types/MenderTypes.ts +183 -0
- package/api/types/MonitorConfiguration.ts +22 -0
- package/api/types/NewConfigurationDeployment.ts +15 -0
- package/api/types/NewConfigurationDeploymentResponse.ts +10 -0
- package/api/types/NewDeployment.ts +42 -0
- package/api/types/NewDeploymentForGroup.ts +33 -0
- package/api/types/NewDeploymentPhase.ts +37 -0
- package/api/types/NewDeploymentPhaseDeployments.ts +20 -0
- package/api/types/NewDeploymentV2.ts +31 -0
- package/api/types/NewTenant.ts +41 -0
- package/api/types/Object.ts +35 -0
- package/api/types/OwnUserUpdate.ts +21 -0
- package/api/types/PasswordResetCompletion.ts +17 -0
- package/api/types/PasswordResetRequest.ts +13 -0
- package/api/types/Permission.ts +21 -0
- package/api/types/PermissionObject.ts +14 -0
- package/api/types/PermissionSet.ts +22 -0
- package/api/types/PermissionSetWithScope.ts +15 -0
- package/api/types/PersonalAccessToken.ts +29 -0
- package/api/types/PersonalAccessTokenRequest.ts +18 -0
- package/api/types/Plan.ts +19 -0
- package/api/types/PlanBindingDetails.ts +13 -0
- package/api/types/PlanChangeRequest.ts +14 -0
- package/api/types/PlanLimits.ts +12 -0
- package/api/types/PreAuthSet.ts +16 -0
- package/api/types/Release.ts +32 -0
- package/api/types/ReleaseDeployments.ts +32 -0
- package/api/types/ReleaseUpdate.ts +13 -0
- package/api/types/Releases.ts +9 -0
- package/api/types/ReleasesDeleteError.ts +21 -0
- package/api/types/ReleasesDeployments.ts +9 -0
- package/api/types/Role.ts +19 -0
- package/api/types/RolePermission.ts +25 -0
- package/api/types/RolePermissionObject.ts +17 -0
- package/api/types/RoleUseradm.ts +19 -0
- package/api/types/SAMLMetadata.ts +21 -0
- package/api/types/Scope.ts +19 -0
- package/api/types/SelectAttribute.ts +17 -0
- package/api/types/ServiceSubsystem.ts +19 -0
- package/api/types/Settings.ts +23 -0
- package/api/types/SortCriteria.ts +30 -0
- package/api/types/SsoObject.ts +21 -0
- package/api/types/Status.ts +17 -0
- package/api/types/StatusDeviceauth.ts +18 -0
- package/api/types/StatusTenantadm.ts +19 -0
- package/api/types/StorageLimit.ts +17 -0
- package/api/types/SubscriptionData.ts +8 -0
- package/api/types/SupportRequest.ts +17 -0
- package/api/types/Tag.ts +27 -0
- package/api/types/Tags.ts +10 -0
- package/api/types/TaskResult.ts +13 -0
- package/api/types/TaskResultCLI.ts +10 -0
- package/api/types/TaskResultHTTPRequest.ts +8 -0
- package/api/types/TaskResultHTTPResponse.ts +10 -0
- package/api/types/Tenant.ts +38 -0
- package/api/types/TenantApiLimits.ts +12 -0
- package/api/types/TenantApiLimitsTenantadm.ts +12 -0
- package/api/types/TenantIdName.ts +14 -0
- package/api/types/TenantIdsData.ts +10 -0
- package/api/types/TenantInfo.ts +14 -0
- package/api/types/TenantShortInfo.ts +21 -0
- package/api/types/TenantTenantadm.ts +38 -0
- package/api/types/TenantsIdName.ts +6 -0
- package/api/types/Update.ts +17 -0
- package/api/types/UpdateDeployments.ts +18 -0
- package/api/types/UpdateFile.ts +13 -0
- package/api/types/UpdateFileDeployments.ts +13 -0
- package/api/types/UpdateTypes.ts +8 -0
- package/api/types/UpgradeCompleteRequest.ts +23 -0
- package/api/types/User.ts +13 -0
- package/api/types/UserAuditlogs.ts +13 -0
- package/api/types/UserNew.ts +26 -0
- package/api/types/UserUpdate.ts +25 -0
- package/api/types/UserUseradm.ts +45 -0
- package/api/types/UserWithTenantInfo.ts +8 -0
- package/api/types/XDeltaArgs.ts +9 -0
- package/api/types/XDeltaArgsDeployments.ts +9 -0
- package/api/types/XDeltaArgsLimits.ts +10 -0
- package/api/types/XDeltaArgsLimitsDeployments.ts +10 -0
- package/api/users-api.ts +34 -0
- package/appSlice/constants.ts +166 -0
- package/appSlice/index.ts +159 -0
- package/appSlice/reducer.test.ts +97 -0
- package/appSlice/selectors.ts +33 -0
- package/appSlice/thunks.test.ts +118 -0
- package/appSlice/thunks.ts +148 -0
- package/auth.test.ts +36 -0
- package/auth.ts +82 -0
- package/commonConstants.tsx +252 -0
- package/commonSelectors.ts +255 -0
- package/constants.ts +22 -0
- package/deploymentsSlice/constants.ts +175 -0
- package/deploymentsSlice/index.ts +145 -0
- package/deploymentsSlice/reducer.test.ts +108 -0
- package/deploymentsSlice/selectors.ts +58 -0
- package/deploymentsSlice/thunks.test.ts +425 -0
- package/deploymentsSlice/thunks.ts +382 -0
- package/devicesSlice/constants.ts +56 -0
- package/devicesSlice/index.ts +207 -0
- package/devicesSlice/reducer.test.ts +194 -0
- package/devicesSlice/selectors.ts +127 -0
- package/devicesSlice/thunks.test.tsx +1245 -0
- package/devicesSlice/thunks.tsx +1098 -0
- package/monitorSlice/constants.ts +17 -0
- package/monitorSlice/index.ts +65 -0
- package/monitorSlice/reducer.test.ts +79 -0
- package/monitorSlice/selectors.ts +15 -0
- package/monitorSlice/thunks.test.ts +112 -0
- package/monitorSlice/thunks.ts +101 -0
- package/onboardingSlice/constants.ts +53 -0
- package/onboardingSlice/index.ts +60 -0
- package/onboardingSlice/reducer.test.ts +45 -0
- package/onboardingSlice/selectors.ts +15 -0
- package/onboardingSlice/thunks.test.ts +235 -0
- package/onboardingSlice/thunks.ts +142 -0
- package/organizationSlice/constants.ts +82 -0
- package/organizationSlice/index.ts +111 -0
- package/organizationSlice/reducer.test.ts +78 -0
- package/organizationSlice/selectors.ts +45 -0
- package/organizationSlice/thunks.test.ts +619 -0
- package/organizationSlice/thunks.ts +383 -0
- package/package.json +38 -0
- package/releasesSlice/constants.ts +18 -0
- package/releasesSlice/index.ts +116 -0
- package/releasesSlice/reducer.test.ts +78 -0
- package/releasesSlice/selectors.ts +33 -0
- package/releasesSlice/thunks.test.ts +389 -0
- package/releasesSlice/thunks.ts +379 -0
- package/selectors.ts +22 -0
- package/store.ts +89 -0
- package/storehooks.test.tsx +386 -0
- package/storehooks.ts +250 -0
- package/thunks.ts +21 -0
- package/tsconfig.json +11 -0
- package/tsup.config.ts +11 -0
- package/usersSlice/constants.ts +374 -0
- package/usersSlice/index.ts +151 -0
- package/usersSlice/reducer.test.ts +141 -0
- package/usersSlice/selectors.ts +60 -0
- package/usersSlice/thunks.test.ts +660 -0
- package/usersSlice/thunks.ts +773 -0
- package/utils.test.ts +187 -0
- package/utils.ts +249 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Error descriptor.
|
|
8
|
+
*/
|
|
9
|
+
export type ErrorReporting = {
|
|
10
|
+
/**
|
|
11
|
+
* Description of the error.
|
|
12
|
+
*/
|
|
13
|
+
error?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Request ID passed with the request X-MEN-RequestID header or generated by the server.
|
|
16
|
+
*/
|
|
17
|
+
request_id?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Error descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type ErrorTenantadm = {
|
|
9
|
+
/**
|
|
10
|
+
* Description of the error.
|
|
11
|
+
*/
|
|
12
|
+
error?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Error descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type ErrorUseradm = {
|
|
9
|
+
/**
|
|
10
|
+
* Description of the error.
|
|
11
|
+
*/
|
|
12
|
+
error?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Request ID (same as in X-MEN-RequestID header).
|
|
15
|
+
*/
|
|
16
|
+
request_id?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DeviceAuthEvent } from "./DeviceAuthEvent";
|
|
6
|
+
export type Event = {
|
|
7
|
+
/**
|
|
8
|
+
* A unique event identifier generated by the Mender server
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Type of the event
|
|
13
|
+
*/
|
|
14
|
+
type?: Event.type;
|
|
15
|
+
delivery_statuses?: Array<{
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the integration the status belongs.
|
|
18
|
+
*/
|
|
19
|
+
integration_id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the event hook was executed successfully.
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The (HTTP) status code of the hook.
|
|
26
|
+
*/
|
|
27
|
+
status_code?: number;
|
|
28
|
+
/**
|
|
29
|
+
* An error message if the hook failed.
|
|
30
|
+
*/
|
|
31
|
+
error?: string;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Creation timestamp
|
|
35
|
+
*/
|
|
36
|
+
time?: string;
|
|
37
|
+
data?: DeviceAuthEvent;
|
|
38
|
+
};
|
|
39
|
+
export namespace Event {
|
|
40
|
+
/**
|
|
41
|
+
* Type of the event
|
|
42
|
+
*/
|
|
43
|
+
export enum type {
|
|
44
|
+
DEVICE_PROVISIONED = "device-provisioned",
|
|
45
|
+
DEVICE_DECOMMISSIONED = "device-decommissioned",
|
|
46
|
+
DEVICE_STATUS_CHANGED = "device-status-changed",
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Device external identity.
|
|
7
|
+
*/
|
|
8
|
+
export type ExternalIdentity = {
|
|
9
|
+
/**
|
|
10
|
+
* External identity.
|
|
11
|
+
*/
|
|
12
|
+
data?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Status flag.
|
|
15
|
+
*/
|
|
16
|
+
active?: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Features descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type Features = {
|
|
9
|
+
rbac?: boolean;
|
|
10
|
+
audit_logs?: boolean;
|
|
11
|
+
dynamic_groups?: boolean;
|
|
12
|
+
terminal?: boolean;
|
|
13
|
+
file_transfer?: boolean;
|
|
14
|
+
configuration?: boolean;
|
|
15
|
+
monitoring?: boolean;
|
|
16
|
+
reporting?: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type FileUpload = {
|
|
6
|
+
/**
|
|
7
|
+
* The destination path on the device
|
|
8
|
+
*/
|
|
9
|
+
path: string;
|
|
10
|
+
/**
|
|
11
|
+
* The numerical UID of the file on the device
|
|
12
|
+
*/
|
|
13
|
+
uid?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The numerical GID of the file on the device
|
|
16
|
+
*/
|
|
17
|
+
gid?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The octal representation of the mode of the file on the device
|
|
20
|
+
*/
|
|
21
|
+
mode?: string;
|
|
22
|
+
file?: Blob;
|
|
23
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { FilterPredicate } from "./FilterPredicate";
|
|
6
|
+
/**
|
|
7
|
+
* Filter definition
|
|
8
|
+
*/
|
|
9
|
+
export type Filter = {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier of the saved filter.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the saved filter.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
terms?: Array<FilterPredicate>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Filterable attribute
|
|
7
|
+
*/
|
|
8
|
+
export type FilterAttribute = {
|
|
9
|
+
/**
|
|
10
|
+
* Name of the attribute.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Scope of the attribute.
|
|
15
|
+
*/
|
|
16
|
+
scope: string;
|
|
17
|
+
/**
|
|
18
|
+
* Number of occurrences of the attribute in the database.
|
|
19
|
+
*/
|
|
20
|
+
count: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { FilterPredicate } from "./FilterPredicate";
|
|
6
|
+
/**
|
|
7
|
+
* Filter definition
|
|
8
|
+
*/
|
|
9
|
+
export type FilterDefinition = {
|
|
10
|
+
/**
|
|
11
|
+
* Name of the filter, must be unique.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* List of filter predicates, chained with boolean AND operators to build the search condition definition.
|
|
16
|
+
*/
|
|
17
|
+
terms?: Array<FilterPredicate>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { FilterPredicate } from "./FilterPredicate";
|
|
6
|
+
/**
|
|
7
|
+
* Inventory filter assigned to the deployment
|
|
8
|
+
*/
|
|
9
|
+
export type FilterDeployments = {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier of the saved filter.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the saved filter.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
terms?: Array<FilterPredicate>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { FilterPredicate } from "./FilterPredicate";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Filter definition
|
|
9
|
+
*/
|
|
10
|
+
export type FilterInventory = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of the saved filter.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the saved filter.
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
terms?: Array<FilterPredicate>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Attribute filter predicate
|
|
7
|
+
*/
|
|
8
|
+
export type FilterPredicate = {
|
|
9
|
+
/**
|
|
10
|
+
* Attribute name.
|
|
11
|
+
*/
|
|
12
|
+
attribute: string;
|
|
13
|
+
scope: string;
|
|
14
|
+
/**
|
|
15
|
+
* Type or operator of the filter predicate.
|
|
16
|
+
*
|
|
17
|
+
* | *Operator* | *Name* | *Argument type* |
|
|
18
|
+
* |:----------:|:-----------------------------|:----------------|
|
|
19
|
+
* | $eq | Equal (`==`) | any |
|
|
20
|
+
* | $ne | Not equal (`!=`) | any |
|
|
21
|
+
* | $gt | Greater than (`>`) | any |
|
|
22
|
+
* | $gte | Greater than or equal (`>=`) | any |
|
|
23
|
+
* | $lt | Less than (`<`) | any |
|
|
24
|
+
* | $lte | Less than or equal (`<=`) | any |
|
|
25
|
+
* | $ltne | Less than or does not exist | any |
|
|
26
|
+
* | $exists | Attribute exists | bool |
|
|
27
|
+
* | $in | Is an element of | array |
|
|
28
|
+
* | $nin | Is not an element of | array |
|
|
29
|
+
* | $regex | Regex filter | string |
|
|
30
|
+
*/
|
|
31
|
+
type: FilterPredicate.type;
|
|
32
|
+
/**
|
|
33
|
+
* The value of the attribute to be used in filtering.
|
|
34
|
+
* Attribute type is implicit, inferred from the JSON type.
|
|
35
|
+
*
|
|
36
|
+
* The $exists operator expects a boolean value: true means the specified
|
|
37
|
+
* attribute exists, false means the specified attribute doesn't exist.
|
|
38
|
+
*
|
|
39
|
+
* The $regex operator expects a string as a Perl compatible regular expression
|
|
40
|
+
* (PCRE), automatically anchored by ^. If the regular expression is not valid,
|
|
41
|
+
* the filter will produce no results. If you need to specify options and flags,
|
|
42
|
+
* you can provide the full regex in the format of /regex/flags, for example
|
|
43
|
+
* `/[a-z]+/i`.
|
|
44
|
+
*/
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
export namespace FilterPredicate {
|
|
48
|
+
/**
|
|
49
|
+
* Type or operator of the filter predicate.
|
|
50
|
+
*
|
|
51
|
+
* | *Operator* | *Name* | *Argument type* |
|
|
52
|
+
* |:----------:|:-----------------------------|:----------------|
|
|
53
|
+
* | $eq | Equal (`==`) | any |
|
|
54
|
+
* | $ne | Not equal (`!=`) | any |
|
|
55
|
+
* | $gt | Greater than (`>`) | any |
|
|
56
|
+
* | $gte | Greater than or equal (`>=`) | any |
|
|
57
|
+
* | $lt | Less than (`<`) | any |
|
|
58
|
+
* | $lte | Less than or equal (`<=`) | any |
|
|
59
|
+
* | $ltne | Less than or does not exist | any |
|
|
60
|
+
* | $exists | Attribute exists | bool |
|
|
61
|
+
* | $in | Is an element of | array |
|
|
62
|
+
* | $nin | Is not an element of | array |
|
|
63
|
+
* | $regex | Regex filter | string |
|
|
64
|
+
*/
|
|
65
|
+
export enum type {
|
|
66
|
+
_EQ = "$eq",
|
|
67
|
+
_GT = "$gt",
|
|
68
|
+
_GTE = "$gte",
|
|
69
|
+
_IN = "$in",
|
|
70
|
+
_LT = "$lt",
|
|
71
|
+
_LTE = "$lte",
|
|
72
|
+
_LTNE = "$ltne",
|
|
73
|
+
_NE = "$ne",
|
|
74
|
+
_NIN = "$nin",
|
|
75
|
+
_EXISTS = "$exists",
|
|
76
|
+
_REGEX = "$regex",
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Attribute filter predicate
|
|
7
|
+
*/
|
|
8
|
+
export type FilterPredicateDeployments = {
|
|
9
|
+
/**
|
|
10
|
+
* The scope of the attribute.
|
|
11
|
+
*
|
|
12
|
+
* Scope is a string and acts as namespace for the attribute name.
|
|
13
|
+
*/
|
|
14
|
+
scope: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the attribute to be queried for filtering.
|
|
17
|
+
*/
|
|
18
|
+
attribute: string;
|
|
19
|
+
/**
|
|
20
|
+
* Type or operator of the filter predicate.
|
|
21
|
+
*/
|
|
22
|
+
type: FilterPredicateDeployments.type;
|
|
23
|
+
/**
|
|
24
|
+
* The value of the attribute to be used in filtering.
|
|
25
|
+
*
|
|
26
|
+
* Attribute type is implicit, inferred from the JSON type.
|
|
27
|
+
*
|
|
28
|
+
* Supported types: number, string, array of numbers, array of strings.
|
|
29
|
+
* Mixed arrays are not allowed.
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
33
|
+
export namespace FilterPredicateDeployments {
|
|
34
|
+
/**
|
|
35
|
+
* Type or operator of the filter predicate.
|
|
36
|
+
*/
|
|
37
|
+
export enum type {
|
|
38
|
+
_EQ = "$eq",
|
|
39
|
+
_GT = "$gt",
|
|
40
|
+
_GTE = "$gte",
|
|
41
|
+
_IN = "$in",
|
|
42
|
+
_LT = "$lt",
|
|
43
|
+
_LTE = "$lte",
|
|
44
|
+
_NE = "$ne",
|
|
45
|
+
_NIN = "$nin",
|
|
46
|
+
_EXISTS = "$exists",
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Attribute filter predicate
|
|
7
|
+
*/
|
|
8
|
+
export type FilterPredicateInventory = {
|
|
9
|
+
/**
|
|
10
|
+
* Attribute name.
|
|
11
|
+
*/
|
|
12
|
+
attribute: string;
|
|
13
|
+
scope: string;
|
|
14
|
+
/**
|
|
15
|
+
* Type or operator of the filter predicate.
|
|
16
|
+
*
|
|
17
|
+
* | *Operator* | *Name* | *Argument type* |
|
|
18
|
+
* |:----------:|:-----------------------------|:----------------|
|
|
19
|
+
* | $eq | Equal (`==`) | any |
|
|
20
|
+
* | $ne | Not equal (`!=`) | any |
|
|
21
|
+
* | $gt | Greater than (`>`) | any |
|
|
22
|
+
* | $gte | Greater than or equal (`>=`) | any |
|
|
23
|
+
* | $lt | Less than (`<`) | any |
|
|
24
|
+
* | $lte | Less than or equal (`<=`) | any |
|
|
25
|
+
* | $exists | Attribute exists | bool |
|
|
26
|
+
* | $in | Is an element of | array |
|
|
27
|
+
* | $nin | Is not an element of | array |
|
|
28
|
+
* | $regex | Regex filter | string |
|
|
29
|
+
*/
|
|
30
|
+
type: FilterPredicateInventory.type;
|
|
31
|
+
/**
|
|
32
|
+
* The value of the attribute to be used in filtering.
|
|
33
|
+
* Attribute type is implicit, inferred from the JSON type.
|
|
34
|
+
*
|
|
35
|
+
* The $exists operator expects a boolean value: true means the specified
|
|
36
|
+
* attribute exists, false means the specified attribute doesn't exist.
|
|
37
|
+
*
|
|
38
|
+
* The $regex operator expects a string as a Perl compatible regular expression
|
|
39
|
+
* (PCRE), automatically anchored by ^. If the regular expression is not valid,
|
|
40
|
+
* the filter will produce no results. If you need to specify options and flags,
|
|
41
|
+
* you can provide the full regex in the format of /regex/flags, for example
|
|
42
|
+
* `/[a-z]+/i`.
|
|
43
|
+
*/
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export namespace FilterPredicateInventory {
|
|
48
|
+
/**
|
|
49
|
+
* Type or operator of the filter predicate.
|
|
50
|
+
*
|
|
51
|
+
* | *Operator* | *Name* | *Argument type* |
|
|
52
|
+
* |:----------:|:-----------------------------|:----------------|
|
|
53
|
+
* | $eq | Equal (`==`) | any |
|
|
54
|
+
* | $ne | Not equal (`!=`) | any |
|
|
55
|
+
* | $gt | Greater than (`>`) | any |
|
|
56
|
+
* | $gte | Greater than or equal (`>=`) | any |
|
|
57
|
+
* | $lt | Less than (`<`) | any |
|
|
58
|
+
* | $lte | Less than or equal (`<=`) | any |
|
|
59
|
+
* | $exists | Attribute exists | bool |
|
|
60
|
+
* | $in | Is an element of | array |
|
|
61
|
+
* | $nin | Is not an element of | array |
|
|
62
|
+
* | $regex | Regex filter | string |
|
|
63
|
+
*/
|
|
64
|
+
export enum type {
|
|
65
|
+
_EQ = "$eq",
|
|
66
|
+
_GT = "$gt",
|
|
67
|
+
_GTE = "$gte",
|
|
68
|
+
_IN = "$in",
|
|
69
|
+
_LT = "$lt",
|
|
70
|
+
_LTE = "$lte",
|
|
71
|
+
_NE = "$ne",
|
|
72
|
+
_NIN = "$nin",
|
|
73
|
+
_EXISTS = "$exists",
|
|
74
|
+
_REGEX = "$regex",
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { GeoPoint } from "./GeoPoint";
|
|
7
|
+
|
|
8
|
+
export type GeoDistance = {
|
|
9
|
+
/**
|
|
10
|
+
* Distance from given geo point. Supported units are:
|
|
11
|
+
* mi or miles, yd or yards, ft or feet, in or inch, km or kilometers,
|
|
12
|
+
* m or meters, cm or centimeters, mm or millimeters, NM, nmi, or nauticalmiles.
|
|
13
|
+
* The default unit is meters if none is specified.
|
|
14
|
+
*/
|
|
15
|
+
distance: string;
|
|
16
|
+
location: GeoPoint;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { GeoDistance } from "./GeoDistance";
|
|
7
|
+
|
|
8
|
+
export type GeoDistanceFilter = {
|
|
9
|
+
geo_distance: GeoDistance;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type GeoPoint = {
|
|
7
|
+
/**
|
|
8
|
+
* Latitude is a coordinate given as an angle that ranges from –90° at the south pole to 90° at the north pole.
|
|
9
|
+
*/
|
|
10
|
+
lat: number;
|
|
11
|
+
/**
|
|
12
|
+
* Longitude is a coordinate given as an angle that ranges from 0° at the Prime Meridian to +180° eastward and −180° westward.
|
|
13
|
+
*/
|
|
14
|
+
lon: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* HTTP Webhook configuration.
|
|
7
|
+
*/
|
|
8
|
+
export type HTTP = {
|
|
9
|
+
http: {
|
|
10
|
+
/**
|
|
11
|
+
* The destination URL for the webhook. The webhook will send POST requests with event details to this target URL.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
/**
|
|
15
|
+
* An optional secret used to verify the integrity of the payload. The string must be in hexadecimal format.
|
|
16
|
+
*/
|
|
17
|
+
secret?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Device identity attributes, in the form of a JSON structure.
|
|
7
|
+
*
|
|
8
|
+
* The attributes are completely vendor-specific, the provided ones are just an example.
|
|
9
|
+
* In reference implementation structure contains vendor-selected fields,
|
|
10
|
+
* such as MACs, serial numbers, etc.
|
|
11
|
+
*/
|
|
12
|
+
export type IdentityData = {
|
|
13
|
+
/**
|
|
14
|
+
* MAC address.
|
|
15
|
+
*/
|
|
16
|
+
mac?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Stock keeping unit.
|
|
19
|
+
*/
|
|
20
|
+
sku?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Serial number.
|
|
23
|
+
*/
|
|
24
|
+
sn?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Credentials } from "./Credentials";
|
|
6
|
+
export type Integration = {
|
|
7
|
+
/**
|
|
8
|
+
* A unique integration identifier generated by the mender server
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
provider: Integration.provider;
|
|
12
|
+
credentials: Credentials;
|
|
13
|
+
/**
|
|
14
|
+
* A short human readable description (max 1024 characters).
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
};
|
|
18
|
+
export namespace Integration {
|
|
19
|
+
export enum provider {
|
|
20
|
+
IOT_HUB = "iot-hub",
|
|
21
|
+
IOT_CORE = "iot-core",
|
|
22
|
+
WEBHOOK = "webhook",
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { InputParameter } from "./InputParameter";
|
|
6
|
+
import type { TaskResult } from "./TaskResult";
|
|
7
|
+
export type JobStatus = {
|
|
8
|
+
id?: string;
|
|
9
|
+
workflowName?: string;
|
|
10
|
+
inputParameters?: Array<InputParameter>;
|
|
11
|
+
status?: string;
|
|
12
|
+
results?: Array<TaskResult>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Limit descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export type Limit = {
|
|
9
|
+
/**
|
|
10
|
+
* Minimum value.
|
|
11
|
+
*/
|
|
12
|
+
min?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum value.
|
|
15
|
+
*/
|
|
16
|
+
max?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Default value.
|
|
19
|
+
*/
|
|
20
|
+
default?: number;
|
|
21
|
+
};
|