@spotto/contract 1.0.69-alpha.2 → 1.0.69-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -33
- package/dist/assets/[id]/get.d.ts +17 -0
- package/dist/assets/get/query.d.ts +21 -10
- package/dist/assets/location/request.d.ts +4 -0
- package/dist/assets/summary/index.d.ts +1 -0
- package/dist/assets/summary/index.js +1 -0
- package/dist/assets/summary/index.js.map +1 -1
- package/dist/assets/summary/response.d.ts +7 -0
- package/dist/assets/summary/response.js +3 -0
- package/dist/assets/summary/response.js.map +1 -0
- package/dist/events/constants.d.ts +1 -1
- package/dist/events/constants.js +1 -0
- package/dist/events/constants.js.map +1 -1
- package/dist/events/get/response.d.ts +32 -16
- package/dist/fields/constants.d.ts +1 -1
- package/dist/fields/constants.js +24 -19
- package/dist/fields/constants.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -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/locations/constants.d.ts +1 -1
- package/dist/locations/constants.js +2 -0
- package/dist/locations/constants.js.map +1 -1
- package/dist/manifests/get/query.d.ts +3 -2
- package/dist/manifests/index.d.ts +1 -0
- package/dist/manifests/index.js +1 -0
- package/dist/manifests/index.js.map +1 -1
- package/dist/manifests/suggestions/index.d.ts +2 -0
- package/dist/manifests/suggestions/index.js +19 -0
- package/dist/manifests/suggestions/index.js.map +1 -0
- package/dist/manifests/suggestions/query.d.ts +5 -0
- package/dist/manifests/suggestions/query.js +3 -0
- package/dist/manifests/suggestions/query.js.map +1 -0
- package/dist/manifests/suggestions/response.d.ts +15 -0
- package/dist/manifests/suggestions/response.js +3 -0
- package/dist/manifests/suggestions/response.js.map +1 -0
- package/dist/organisations/constants.d.ts +0 -1
- package/dist/reports.d.ts +38 -0
- package/dist/reports.js +3 -0
- package/dist/reports.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/snapshots/[id]/get.d.ts +16 -0
- package/dist/snapshots/[id]/get.js +1 -0
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/get/query.d.ts +2 -2
- package/dist/snapshots/post/request.d.ts +4 -1
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/system/index.d.ts +4 -2
- package/dist/types/[id]/get.d.ts +0 -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
|
@@ -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/manifests/suggestions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/manifests/suggestions/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetManifestSuggestionsQuery } from './query';
|
|
2
|
+
import { IEmbeddedEntity } from '../../shared';
|
|
3
|
+
export interface GetManifestSuggestionsResponse {
|
|
4
|
+
query: GetManifestSuggestionsQuery;
|
|
5
|
+
suggestions: {
|
|
6
|
+
suggestion: string;
|
|
7
|
+
name: string;
|
|
8
|
+
matchedProp: string;
|
|
9
|
+
matchedPropValue: string;
|
|
10
|
+
}[];
|
|
11
|
+
matches: (IEmbeddedEntity & {
|
|
12
|
+
matchedProp: string;
|
|
13
|
+
matchedPropValue: string;
|
|
14
|
+
})[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/manifests/suggestions/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IEntityMeta, StandardSortFields, SortOrders } from './shared';
|
|
2
|
+
export interface SavedFilterValues {
|
|
3
|
+
search?: string;
|
|
4
|
+
typePathBeginsWith?: string[];
|
|
5
|
+
locationPathBeginsWith?: string[];
|
|
6
|
+
customFieldValues?: string;
|
|
7
|
+
supportsWith?: boolean;
|
|
8
|
+
withAsset?: boolean;
|
|
9
|
+
columnVisibility?: Record<string, boolean>;
|
|
10
|
+
visibleColumnCount?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare type ReportEmbedField = 'meta';
|
|
13
|
+
export interface GetReportResponse {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
filters: SavedFilterValues;
|
|
18
|
+
meta?: IEntityMeta;
|
|
19
|
+
}
|
|
20
|
+
export interface GetReportsQuery {
|
|
21
|
+
page?: number;
|
|
22
|
+
limit?: number;
|
|
23
|
+
ids?: string[];
|
|
24
|
+
sort?: StandardSortFields;
|
|
25
|
+
sortOrder?: SortOrders;
|
|
26
|
+
embed?: Array<ReportEmbedField>;
|
|
27
|
+
}
|
|
28
|
+
export interface GetReportsResponse {
|
|
29
|
+
query: GetReportsQuery | null;
|
|
30
|
+
total: number;
|
|
31
|
+
items: GetReportResponse[];
|
|
32
|
+
}
|
|
33
|
+
export interface PostReportRequest {
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
filters?: SavedFilterValues;
|
|
37
|
+
}
|
|
38
|
+
export declare type PostReportResponse = GetReportResponse;
|
package/dist/reports.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/reports.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"}
|
|
@@ -2,6 +2,7 @@ import { IEmbeddedEntity, IEntityMeta } from '../../shared';
|
|
|
2
2
|
import { GetManifestResponse, IManifestAsset, IManifestType } from '../../manifests';
|
|
3
3
|
import { Point } from 'geojson';
|
|
4
4
|
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
5
|
+
import { SnapshotTypeEnum } from '../get';
|
|
5
6
|
export interface IManifestTypeExtended extends IManifestType {
|
|
6
7
|
c_detected?: number;
|
|
7
8
|
c_sighted?: number;
|
|
@@ -28,6 +29,12 @@ export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
|
28
29
|
c_additional?: boolean;
|
|
29
30
|
fieldValues?: IFieldValue[];
|
|
30
31
|
}
|
|
32
|
+
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
33
|
+
assetId: string;
|
|
34
|
+
assetName?: string;
|
|
35
|
+
section?: string;
|
|
36
|
+
fieldValues?: IFieldValue[];
|
|
37
|
+
}
|
|
31
38
|
export interface ISnapshotSightedType extends ISnapshotType {
|
|
32
39
|
section?: string;
|
|
33
40
|
count: number;
|
|
@@ -40,6 +47,12 @@ export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
|
40
47
|
c_ignored?: boolean;
|
|
41
48
|
fieldValues?: IFieldValue[];
|
|
42
49
|
}
|
|
50
|
+
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
51
|
+
assetId: string;
|
|
52
|
+
assetName?: string;
|
|
53
|
+
section?: string;
|
|
54
|
+
fieldValues?: IFieldValue[];
|
|
55
|
+
}
|
|
43
56
|
export interface ISnapshotComputed {
|
|
44
57
|
missingTotal: number;
|
|
45
58
|
sightedTotal: number;
|
|
@@ -73,6 +86,7 @@ export interface GetSnapshotResponse {
|
|
|
73
86
|
asset?: IEmbeddedEntity & ISnapshotType;
|
|
74
87
|
manifest?: GetManifestResponseExtended;
|
|
75
88
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
89
|
+
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
76
90
|
sightedTypes?: ISnapshotSightedType[];
|
|
77
91
|
sightedAssets?: ISnapshotSightedAsset[];
|
|
78
92
|
computed?: ISnapshotComputed;
|
|
@@ -88,6 +102,7 @@ export interface GetSnapshotResponse {
|
|
|
88
102
|
updated: number;
|
|
89
103
|
};
|
|
90
104
|
}, 'manifest'>[];
|
|
105
|
+
type: SnapshotTypeEnum;
|
|
91
106
|
}
|
|
92
107
|
export interface GetSnapshotsItem {
|
|
93
108
|
id: string;
|
|
@@ -104,6 +119,7 @@ export interface GetSnapshotsItem {
|
|
|
104
119
|
created: number;
|
|
105
120
|
geolocation?: Point;
|
|
106
121
|
timezone?: string;
|
|
122
|
+
type: SnapshotTypeEnum;
|
|
107
123
|
}
|
|
108
124
|
export declare const testGetSnapshotRequest: GetSnapshotResponse;
|
|
109
125
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AA6IA,QAAQ;AACK,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,cAAc;KACrB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,aAAa,EAAE;YACb,KAAK,EAAE,CAAC;YACR,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC,EAAE,+EAA+E;YAChG,4GAA4G;SAC7G;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC,EAAE,+EAA+E;SACjG;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC,EAAE,+DAA+D;SAChF;KACF;IACD,IAAI,EAAE,WAAW;CAClB,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { SortOrders } from '../../shared';
|
|
|
2
2
|
export declare type SnapshotSortField = 'created' | 'submitted';
|
|
3
3
|
export declare const snapshotSortFields: SnapshotSortField[];
|
|
4
4
|
export declare type SnapshotEmbedField = 'meta';
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type SnapshotTypeEnum = 'Inventory' | 'Stocktake' | 'Dispatch';
|
|
6
6
|
export interface SnapshotFilters {
|
|
7
7
|
ids?: string[];
|
|
8
8
|
locationIds?: string[];
|
|
@@ -12,7 +12,7 @@ export interface SnapshotFilters {
|
|
|
12
12
|
readerIds?: string[];
|
|
13
13
|
timeFrom?: number;
|
|
14
14
|
timeTo?: number;
|
|
15
|
-
snapshotType?:
|
|
15
|
+
snapshotType?: SnapshotTypeEnum[];
|
|
16
16
|
locationPathBeginsWith?: string[];
|
|
17
17
|
typePathBeginsWith?: string[];
|
|
18
18
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Point } from 'geojson';
|
|
2
|
-
import { ISnapshotType, ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields } from '../[id]/get';
|
|
2
|
+
import { ISnapshotType, ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields, ISnapshotUndetectedAsset } from '../[id]/get';
|
|
3
3
|
import { GetManifestResponse } from '../../manifests';
|
|
4
4
|
import { IEmbeddedEntity } from '../../shared/embed';
|
|
5
5
|
import { GetTypeResponse } from '../../types';
|
|
6
|
+
import { SnapshotTypeEnum } from '../get';
|
|
6
7
|
export interface PostSnapshotRequest {
|
|
7
8
|
reader?: IEmbeddedEntity;
|
|
8
9
|
location?: IEmbeddedEntity & {
|
|
@@ -12,6 +13,7 @@ export interface PostSnapshotRequest {
|
|
|
12
13
|
geolocation?: Point;
|
|
13
14
|
manifest?: GetManifestResponse;
|
|
14
15
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
16
|
+
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
15
17
|
sightedTypes?: ISnapshotSightedType[];
|
|
16
18
|
sightedAssets?: ISnapshotSightedAsset[];
|
|
17
19
|
fields?: ISnapshotFields;
|
|
@@ -23,6 +25,7 @@ export interface PostSnapshotRequest {
|
|
|
23
25
|
updated: number;
|
|
24
26
|
};
|
|
25
27
|
}, 'manifest'>[];
|
|
28
|
+
type?: SnapshotTypeEnum;
|
|
26
29
|
}
|
|
27
30
|
export declare type PostSnapshotsRequest = PostSnapshotRequest[];
|
|
28
31
|
export declare const testPostSnapshotRequest1: PostSnapshotRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;AAoCA,SAAS;AACI,QAAA,wBAAwB,GAAwB;IAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,UAAU,EAAE;IAC5D,QAAQ,EAAE,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,YAAY,EAAE;IAChE,cAAc,EAAE;QACd;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,8BAA8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,WAAW;gBACtB,QAAQ,EAAE,YAAY;gBACtB,MAAM,EAAE,0BAA0B;gBAClC,QAAQ,EAAE,WAAW;gBACrB,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;KACf;IACD,cAAc,EAAE;QACd;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,8BAA8B;YACzC,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,uBAAuB;YACjC,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,eAAe;YAC1B,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,OAAO,EAAE,2BAA2B;YACpC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;SACvB;KACF;IACD,aAAa,EAAE;QACb;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;KACV;IACD,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
package/dist/system/index.d.ts
CHANGED
package/dist/types/[id]/get.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetFieldResponse } from '../../fields/[id]/get';
|
|
2
|
-
import { GetManifestResponse } from '../../manifests';
|
|
3
2
|
import { IEmbeddedEntity } from '../../shared';
|
|
4
3
|
export interface IFieldValue {
|
|
5
4
|
id: string;
|
|
@@ -36,6 +35,5 @@ export interface GetTypeResponse {
|
|
|
36
35
|
*/
|
|
37
36
|
manifestId?: string;
|
|
38
37
|
manifestIds?: string[];
|
|
39
|
-
manifest?: GetManifestResponse;
|
|
40
38
|
supportsStocktake?: boolean;
|
|
41
39
|
}
|
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":""}
|