@spotto/contract 1.0.69-alpha.17 → 1.0.69-alpha.19
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/dist/assets/get/query.d.ts +10 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/constants.d.ts +21 -0
- package/dist/integrations/constants.js +5 -0
- package/dist/integrations/constants.js.map +1 -1
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.js +1 -0
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/oneblink/index.d.ts +2 -0
- package/dist/integrations/oneblink/index.js +19 -0
- package/dist/integrations/oneblink/index.js.map +1 -0
- package/dist/integrations/oneblink/patch/index.d.ts +1 -0
- package/dist/integrations/oneblink/patch/index.js +18 -0
- package/dist/integrations/oneblink/patch/index.js.map +1 -0
- package/dist/integrations/oneblink/patch/request.d.ts +7 -0
- package/dist/integrations/oneblink/patch/request.js +3 -0
- package/dist/integrations/oneblink/patch/request.js.map +1 -0
- package/dist/integrations/oneblink/token.d.ts +4 -0
- package/dist/integrations/oneblink/token.js +3 -0
- package/dist/integrations/oneblink/token.js.map +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/relative-date.d.ts +17 -0
- package/dist/shared/relative-date.js +12 -0
- package/dist/shared/relative-date.js.map +1 -0
- package/dist/system/index.d.ts +4 -2
- package/dist/users/current.d.ts +2 -0
- package/dist/views/[id]/index.d.ts +1 -0
- package/dist/views/[id]/index.js +18 -0
- package/dist/views/[id]/index.js.map +1 -0
- package/dist/views/[id]/patch/index.d.ts +2 -0
- package/dist/views/[id]/patch/index.js +19 -0
- package/dist/views/[id]/patch/index.js.map +1 -0
- package/dist/views/[id]/patch/request.d.ts +9 -0
- package/dist/views/[id]/patch/request.js +3 -0
- package/dist/views/[id]/patch/request.js.map +1 -0
- package/dist/views/[id]/patch/response.d.ts +1 -0
- package/dist/views/[id]/patch/response.js +3 -0
- package/dist/views/[id]/patch/response.js.map +1 -0
- package/dist/views/get/index.d.ts +2 -0
- package/dist/views/get/index.js +19 -0
- package/dist/views/get/index.js.map +1 -0
- package/dist/views/get/query.d.ts +12 -0
- package/dist/views/get/query.js +3 -0
- package/dist/views/get/query.js.map +1 -0
- package/dist/views/get/response.d.ts +20 -0
- package/dist/views/get/response.js +3 -0
- package/dist/views/get/response.js.map +1 -0
- package/dist/views/index.d.ts +4 -0
- package/dist/views/index.js +21 -0
- package/dist/views/index.js.map +1 -0
- package/dist/views/post/index.d.ts +2 -0
- package/dist/views/post/index.js +19 -0
- package/dist/views/post/index.js.map +1 -0
- package/dist/views/post/request.d.ts +10 -0
- package/dist/views/post/request.js +3 -0
- package/dist/views/post/request.js.map +1 -0
- package/dist/views/post/response.d.ts +1 -0
- package/dist/views/post/response.js +3 -0
- package/dist/views/post/response.js.map +1 -0
- package/dist/views/shared.d.ts +26 -0
- package/dist/views/shared.js +3 -0
- package/dist/views/shared.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchableSortFields, SortOrders } from '../../shared';
|
|
1
|
+
import { DateCondition, SearchableSortFields, SortOrders } from '../../shared';
|
|
2
2
|
export declare type AssetSearchField = 'name' | 'tagIds';
|
|
3
3
|
export declare type AssetEmbedField = 'meta' | 'tagIds' | 'candidateLocations' | 'telemetry' | 'readers';
|
|
4
4
|
export declare type AssetSortField = SearchableSortFields | 'battery';
|
|
@@ -10,21 +10,20 @@ declare type _CustomFieldsAssetFilterBase = {
|
|
|
10
10
|
export declare type CustomFieldsAssetFilterValue = _CustomFieldsAssetFilterBase & {
|
|
11
11
|
values: any[];
|
|
12
12
|
};
|
|
13
|
-
export declare type
|
|
14
|
-
|
|
15
|
-
to: string;
|
|
13
|
+
export declare type CustomFieldsAssetFilterDateCondition = _CustomFieldsAssetFilterBase & {
|
|
14
|
+
conditions: DateCondition[];
|
|
16
15
|
};
|
|
17
16
|
export declare type CustomFieldsAssetFilterNumberRange = _CustomFieldsAssetFilterBase & {
|
|
18
17
|
from: number;
|
|
19
18
|
to: number;
|
|
20
19
|
};
|
|
21
|
-
export declare type CustomFieldsAssetFilter = CustomFieldsAssetFilterValue |
|
|
20
|
+
export declare type CustomFieldsAssetFilter = CustomFieldsAssetFilterValue | CustomFieldsAssetFilterDateCondition | CustomFieldsAssetFilterNumberRange;
|
|
22
21
|
export declare type CustomFieldValues = {
|
|
23
22
|
values?: Array<CustomFieldsAssetFilterValue>;
|
|
24
23
|
integerRanges?: Array<CustomFieldsAssetFilterNumberRange>;
|
|
25
24
|
decimalRanges?: Array<CustomFieldsAssetFilterNumberRange>;
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
dateConditions?: Array<CustomFieldsAssetFilterDateCondition>;
|
|
26
|
+
dateTimeConditions?: Array<CustomFieldsAssetFilterDateCondition>;
|
|
28
27
|
};
|
|
29
28
|
export interface AssetFilters {
|
|
30
29
|
labels?: string[];
|
|
@@ -50,6 +49,9 @@ export interface AssetFilters {
|
|
|
50
49
|
manifestIds?: string[];
|
|
51
50
|
supportsWith?: boolean;
|
|
52
51
|
withAsset?: boolean;
|
|
52
|
+
createdAt?: DateCondition[];
|
|
53
|
+
updatedAt?: DateCondition[];
|
|
54
|
+
lastSeen?: DateCondition[];
|
|
53
55
|
}
|
|
54
56
|
export interface GetAssetsQuery extends AssetFilters {
|
|
55
57
|
page?: number;
|
|
@@ -57,5 +59,6 @@ export interface GetAssetsQuery extends AssetFilters {
|
|
|
57
59
|
sort?: AssetSortField;
|
|
58
60
|
sortOrder?: SortOrders;
|
|
59
61
|
embed?: Array<AssetEmbedField>;
|
|
62
|
+
timezone?: string;
|
|
60
63
|
}
|
|
61
64
|
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -35,4 +35,5 @@ __exportStar(require("./fields"), exports);
|
|
|
35
35
|
__exportStar(require("./workflows"), exports);
|
|
36
36
|
__exportStar(require("./system"), exports);
|
|
37
37
|
__exportStar(require("./reports"), exports);
|
|
38
|
+
__exportStar(require("./views"), exports);
|
|
38
39
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB;AACzB,0CAAuB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UpdateOneBlinkSettingsRequest } from './oneblink/patch/request';
|
|
1
2
|
export interface MQTTDisabled {
|
|
2
3
|
enabled: false;
|
|
3
4
|
}
|
|
@@ -18,4 +19,24 @@ export declare type MQTTIntegrationDetails = MQTTEnabled | MQTTDisabled;
|
|
|
18
19
|
export declare type MQTTSettings = MQTTEnabledWithDetails | MQTTDisabled;
|
|
19
20
|
export interface Integrations {
|
|
20
21
|
mqtt?: boolean;
|
|
22
|
+
oneblink?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare enum IntegrationType {
|
|
25
|
+
OneBlink = "oneblink"
|
|
26
|
+
}
|
|
27
|
+
export declare type OneBlinkIntegrationDetails = {
|
|
28
|
+
enabled: true;
|
|
29
|
+
accessKey: string;
|
|
30
|
+
} | {
|
|
31
|
+
enabled: false;
|
|
32
|
+
};
|
|
33
|
+
export declare type UpdateIntegrationRequest = UpdateOneBlinkSettingsRequest & {
|
|
34
|
+
type: IntegrationType.OneBlink;
|
|
35
|
+
};
|
|
36
|
+
export declare type UpdateIntegrationResponse = OneBlinkIntegrationDetails;
|
|
37
|
+
export interface GetIntegrationsResponse {
|
|
38
|
+
mqtt: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
};
|
|
41
|
+
oneblink: OneBlinkIntegrationDetails;
|
|
21
42
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationType = void 0;
|
|
4
|
+
var IntegrationType;
|
|
5
|
+
(function (IntegrationType) {
|
|
6
|
+
IntegrationType["OneBlink"] = "oneblink";
|
|
7
|
+
})(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
|
|
3
8
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/integrations/constants.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/integrations/constants.ts"],"names":[],"mappings":";;;AA8BA,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,wCAAqB,CAAA;AACvB,CAAC,EAFW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAE1B"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./mqtt"), exports);
|
|
18
|
+
__exportStar(require("./oneblink"), exports);
|
|
18
19
|
__exportStar(require("./constants"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,8CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./patch"), exports);
|
|
18
|
+
__exportStar(require("./token"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/oneblink/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,0CAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './request';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/integrations/oneblink/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/integrations/oneblink/patch/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/integrations/oneblink/token.ts"],"names":[],"mappings":""}
|
package/dist/shared/index.d.ts
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./query"), exports);
|
|
|
24
24
|
__exportStar(require("./sort"), exports);
|
|
25
25
|
__exportStar(require("./timezone"), exports);
|
|
26
26
|
__exportStar(require("./timestamp"), exports);
|
|
27
|
+
__exportStar(require("./relative-date"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/dist/shared/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,2CAAwB;AACxB,4CAAyB;AACzB,yCAAsB;AACtB,0CAAuB;AACvB,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,2CAAwB;AACxB,4CAAyB;AACzB,yCAAsB;AACtB,0CAAuB;AACvB,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B;AAC3B,kDAA+B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const dateFilterOperators: readonly ["eq", "gt", "gte", "lt", "lte"];
|
|
2
|
+
export declare type DateFilterOperator = (typeof dateFilterOperators)[number];
|
|
3
|
+
export declare const dateOffsetUnits: readonly ["days", "weeks", "months", "quarters", "years"];
|
|
4
|
+
export declare type DateOffsetUnit = (typeof dateOffsetUnits)[number];
|
|
5
|
+
export declare type DateOffset = {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: DateOffsetUnit;
|
|
8
|
+
};
|
|
9
|
+
export declare type AbsoluteDateCondition = {
|
|
10
|
+
operator: DateFilterOperator;
|
|
11
|
+
date: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type RelativeDateCondition = {
|
|
14
|
+
operator: DateFilterOperator;
|
|
15
|
+
offset: DateOffset;
|
|
16
|
+
};
|
|
17
|
+
export declare type DateCondition = AbsoluteDateCondition | RelativeDateCondition;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dateOffsetUnits = exports.dateFilterOperators = void 0;
|
|
4
|
+
exports.dateFilterOperators = ['eq', 'gt', 'gte', 'lt', 'lte'];
|
|
5
|
+
exports.dateOffsetUnits = [
|
|
6
|
+
'days',
|
|
7
|
+
'weeks',
|
|
8
|
+
'months',
|
|
9
|
+
'quarters',
|
|
10
|
+
'years',
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=relative-date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative-date.js","sourceRoot":"","sources":["../../src/shared/relative-date.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAU,CAAA;AAG/D,QAAA,eAAe,GAAG;IAC7B,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,OAAO;CACC,CAAA"}
|
package/dist/system/index.d.ts
CHANGED
package/dist/users/current.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { IEntityMeta, IEmbeddedEntity } from '../shared';
|
|
2
2
|
import { Preferences } from '../organisations/constants';
|
|
3
|
+
import { Integrations } from '../integrations/constants';
|
|
3
4
|
import { System } from '../system';
|
|
4
5
|
export interface EmbeddedRole extends IEmbeddedEntity {
|
|
5
6
|
permissions: string[];
|
|
6
7
|
}
|
|
7
8
|
export interface EmbeddedOrganisation extends IEmbeddedEntity {
|
|
8
9
|
preferences: Preferences;
|
|
10
|
+
integrations?: Integrations;
|
|
9
11
|
}
|
|
10
12
|
export interface CurrentUserResponse {
|
|
11
13
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './patch';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./patch"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/views/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/views/[id]/patch/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetViewResponse as UpdateViewResponse } from '../../get/response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/views/[id]/patch/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StandardSortFields, SortOrders } from '../../shared';
|
|
2
|
+
import { ViewEntityType } from '../shared';
|
|
3
|
+
export declare type ViewEmbedField = 'meta';
|
|
4
|
+
export interface GetViewsQuery {
|
|
5
|
+
page?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
ids?: string[];
|
|
8
|
+
sort?: StandardSortFields;
|
|
9
|
+
sortOrder?: SortOrders;
|
|
10
|
+
embed?: Array<ViewEmbedField>;
|
|
11
|
+
entityType?: ViewEntityType;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/views/get/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEntityMeta } from '../../shared';
|
|
2
|
+
import { ViewEntityType, ViewVisibility, ViewFilters, ViewDisplay } from '../shared';
|
|
3
|
+
import { GetViewsQuery } from './query';
|
|
4
|
+
export interface GetViewResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
entityType: ViewEntityType;
|
|
9
|
+
visibility: ViewVisibility;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
filters: ViewFilters;
|
|
12
|
+
display: ViewDisplay;
|
|
13
|
+
timezone?: string;
|
|
14
|
+
meta?: IEntityMeta;
|
|
15
|
+
}
|
|
16
|
+
export interface GetViewsResponse {
|
|
17
|
+
query: GetViewsQuery | null;
|
|
18
|
+
total: number;
|
|
19
|
+
items: GetViewResponse[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/views/get/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared"), exports);
|
|
18
|
+
__exportStar(require("./get"), exports);
|
|
19
|
+
__exportStar(require("./post"), exports);
|
|
20
|
+
__exportStar(require("./[id]"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/views/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ViewEntityType, ViewVisibility, ViewFilters, ViewDisplay } from '../shared';
|
|
2
|
+
export interface PostViewRequest {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
entityType: ViewEntityType;
|
|
6
|
+
visibility?: ViewVisibility;
|
|
7
|
+
filters?: ViewFilters;
|
|
8
|
+
display?: ViewDisplay;
|
|
9
|
+
timezone?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/views/post/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetViewResponse as PostViewResponse } from '../get/response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/views/post/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SortOrders } from '../shared';
|
|
2
|
+
import { AssetSortField } from '../assets/get/query';
|
|
3
|
+
export declare type ViewEntityType = 'asset';
|
|
4
|
+
export declare type ViewVisibility = 'private' | 'organisation';
|
|
5
|
+
export interface AssetViewFilters {
|
|
6
|
+
search?: string;
|
|
7
|
+
typePathBeginsWith?: string[];
|
|
8
|
+
locationPathBeginsWith?: string[];
|
|
9
|
+
customFieldValues?: string;
|
|
10
|
+
supportsWith?: boolean;
|
|
11
|
+
withAsset?: boolean;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
lastSeen?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare type ViewFilters = AssetViewFilters;
|
|
17
|
+
interface BaseViewDisplay {
|
|
18
|
+
columnVisibility?: Record<string, boolean>;
|
|
19
|
+
columnOrder?: string[];
|
|
20
|
+
sortOrder?: SortOrders;
|
|
21
|
+
}
|
|
22
|
+
export interface AssetViewDisplay extends BaseViewDisplay {
|
|
23
|
+
sort?: AssetSortField;
|
|
24
|
+
}
|
|
25
|
+
export declare type ViewDisplay = AssetViewDisplay;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/views/shared.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.69-alpha.
|
|
4
|
+
"version": "1.0.69-alpha.19",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"@types/geojson": "^7946.0.11",
|
|
19
19
|
"shx": "^0.3.4"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "cf106fac88bb576404dc8b301f9469dc2f0f020c"
|
|
22
22
|
}
|