@spotto/contract 1.0.3 → 1.0.5

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.
Files changed (159) hide show
  1. package/dist/assets/[id]/get.d.ts +2 -0
  2. package/dist/assets/[id]/index.d.ts +1 -0
  3. package/dist/assets/[id]/index.js +1 -0
  4. package/dist/assets/[id]/index.js.map +1 -1
  5. package/dist/assets/[id]/patch/request.d.ts +1 -0
  6. package/dist/assets/[id]/patch/response.d.ts +1 -1
  7. package/dist/assets/[id]/readers.d.ts +9 -0
  8. package/dist/assets/[id]/readers.js +3 -0
  9. package/dist/assets/[id]/readers.js.map +1 -0
  10. package/dist/assets/count/index.d.ts +2 -0
  11. package/dist/assets/count/index.js +19 -0
  12. package/dist/assets/count/index.js.map +1 -0
  13. package/dist/assets/count/query.d.ts +1 -0
  14. package/dist/assets/count/query.js +3 -0
  15. package/dist/assets/count/query.js.map +1 -0
  16. package/dist/assets/count/response.d.ts +13 -0
  17. package/dist/assets/count/response.js +3 -0
  18. package/dist/assets/count/response.js.map +1 -0
  19. package/dist/assets/download/index.d.ts +2 -0
  20. package/dist/assets/download/index.js +19 -0
  21. package/dist/assets/download/index.js.map +1 -0
  22. package/dist/assets/download/query.d.ts +10 -0
  23. package/dist/assets/download/query.js +3 -0
  24. package/dist/assets/download/query.js.map +1 -0
  25. package/dist/assets/download/response.d.ts +3 -0
  26. package/dist/assets/download/response.js +3 -0
  27. package/dist/assets/download/response.js.map +1 -0
  28. package/dist/assets/get/query.d.ts +13 -5
  29. package/dist/assets/index.d.ts +2 -0
  30. package/dist/assets/index.js +2 -0
  31. package/dist/assets/index.js.map +1 -1
  32. package/dist/assets/post/request.d.ts +1 -0
  33. package/dist/events/constants.d.ts +0 -2
  34. package/dist/events/constants.js +1 -2
  35. package/dist/events/constants.js.map +1 -1
  36. package/dist/events/count/index.d.ts +2 -0
  37. package/dist/events/count/index.js +19 -0
  38. package/dist/events/count/index.js.map +1 -0
  39. package/dist/events/count/query.d.ts +5 -0
  40. package/dist/events/count/query.js +3 -0
  41. package/dist/events/count/query.js.map +1 -0
  42. package/dist/events/count/response.d.ts +17 -0
  43. package/dist/events/count/response.js +3 -0
  44. package/dist/events/count/response.js.map +1 -0
  45. package/dist/events/download/query.d.ts +3 -9
  46. package/dist/events/get/query.d.ts +5 -3
  47. package/dist/events/get/response.d.ts +0 -1
  48. package/dist/events/index.d.ts +1 -0
  49. package/dist/events/index.js +1 -0
  50. package/dist/events/index.js.map +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +1 -0
  53. package/dist/index.js.map +1 -1
  54. package/dist/labels/[id]/get.d.ts +6 -0
  55. package/dist/labels/[id]/get.js +3 -0
  56. package/dist/labels/[id]/get.js.map +1 -0
  57. package/dist/labels/[id]/index.d.ts +2 -0
  58. package/dist/labels/[id]/index.js +19 -0
  59. package/dist/labels/[id]/index.js.map +1 -0
  60. package/dist/labels/[id]/patch/index.d.ts +2 -0
  61. package/dist/labels/[id]/patch/index.js +19 -0
  62. package/dist/labels/[id]/patch/index.js.map +1 -0
  63. package/dist/labels/[id]/patch/request.d.ts +3 -0
  64. package/dist/labels/[id]/patch/request.js +3 -0
  65. package/dist/labels/[id]/patch/request.js.map +1 -0
  66. package/dist/labels/[id]/patch/response.d.ts +1 -0
  67. package/dist/labels/[id]/patch/response.js +3 -0
  68. package/dist/labels/[id]/patch/response.js.map +1 -0
  69. package/dist/labels/constants.d.ts +4 -0
  70. package/dist/labels/constants.js +3 -0
  71. package/dist/labels/constants.js.map +1 -0
  72. package/dist/labels/get/index.d.ts +2 -0
  73. package/dist/labels/get/index.js +19 -0
  74. package/dist/labels/get/index.js.map +1 -0
  75. package/dist/labels/get/query.d.ts +11 -0
  76. package/dist/labels/get/query.js +3 -0
  77. package/dist/labels/get/query.js.map +1 -0
  78. package/dist/labels/get/response.d.ts +7 -0
  79. package/dist/labels/get/response.js +3 -0
  80. package/dist/labels/get/response.js.map +1 -0
  81. package/dist/labels/index.d.ts +4 -0
  82. package/dist/labels/index.js +21 -0
  83. package/dist/labels/index.js.map +1 -0
  84. package/dist/labels/post/index.d.ts +2 -0
  85. package/dist/labels/post/index.js +19 -0
  86. package/dist/labels/post/index.js.map +1 -0
  87. package/dist/labels/post/request.d.ts +4 -0
  88. package/dist/labels/post/request.js +3 -0
  89. package/dist/labels/post/request.js.map +1 -0
  90. package/dist/labels/post/response.d.ts +5 -0
  91. package/dist/labels/post/response.js +3 -0
  92. package/dist/labels/post/response.js.map +1 -0
  93. package/dist/locations/[id]/get.d.ts +0 -1
  94. package/dist/locations/[id]/patch/request.d.ts +0 -1
  95. package/dist/locations/[id]/patch/response.d.ts +1 -1
  96. package/dist/locations/count/index.d.ts +2 -0
  97. package/dist/locations/count/index.js +19 -0
  98. package/dist/locations/count/index.js.map +1 -0
  99. package/dist/locations/count/query.d.ts +1 -0
  100. package/dist/locations/count/query.js +3 -0
  101. package/dist/locations/count/query.js.map +1 -0
  102. package/dist/locations/count/response.d.ts +6 -0
  103. package/dist/locations/count/response.js +3 -0
  104. package/dist/locations/count/response.js.map +1 -0
  105. package/dist/locations/download/index.d.ts +2 -0
  106. package/dist/locations/download/index.js +19 -0
  107. package/dist/locations/download/index.js.map +1 -0
  108. package/dist/locations/download/query.d.ts +10 -0
  109. package/dist/locations/download/query.js +3 -0
  110. package/dist/locations/download/query.js.map +1 -0
  111. package/dist/locations/download/response.d.ts +3 -0
  112. package/dist/locations/download/response.js +3 -0
  113. package/dist/locations/download/response.js.map +1 -0
  114. package/dist/locations/get/query.d.ts +7 -5
  115. package/dist/locations/index.d.ts +4 -2
  116. package/dist/locations/index.js +4 -2
  117. package/dist/locations/index.js.map +1 -1
  118. package/dist/locations/post/request.d.ts +0 -1
  119. package/dist/organisations/[id]/get.d.ts +3 -1
  120. package/dist/organisations/get/query.d.ts +1 -1
  121. package/dist/readers/[id]/get.d.ts +1 -1
  122. package/dist/readers/[id]/patch/response.d.ts +1 -1
  123. package/dist/readers/constants/deviceTypes.d.ts +6 -5
  124. package/dist/readers/constants/deviceTypes.js +51 -28
  125. package/dist/readers/constants/deviceTypes.js.map +1 -1
  126. package/dist/readers/count/index.d.ts +2 -0
  127. package/dist/readers/count/index.js +19 -0
  128. package/dist/readers/count/index.js.map +1 -0
  129. package/dist/readers/count/query.d.ts +1 -0
  130. package/dist/readers/count/query.js +3 -0
  131. package/dist/readers/count/query.js.map +1 -0
  132. package/dist/readers/count/response.d.ts +5 -0
  133. package/dist/readers/count/response.js +3 -0
  134. package/dist/readers/count/response.js.map +1 -0
  135. package/dist/readers/download/index.d.ts +2 -0
  136. package/dist/readers/download/index.js +19 -0
  137. package/dist/readers/download/index.js.map +1 -0
  138. package/dist/readers/download/query.d.ts +10 -0
  139. package/dist/readers/download/query.js +3 -0
  140. package/dist/readers/download/query.js.map +1 -0
  141. package/dist/readers/download/response.d.ts +3 -0
  142. package/dist/readers/download/response.js +3 -0
  143. package/dist/readers/download/response.js.map +1 -0
  144. package/dist/readers/get/query.d.ts +9 -5
  145. package/dist/readers/index.d.ts +4 -2
  146. package/dist/readers/index.js +4 -2
  147. package/dist/readers/index.js.map +1 -1
  148. package/dist/readers/post/request.d.ts +0 -2
  149. package/dist/shared/index.d.ts +2 -1
  150. package/dist/shared/index.js +2 -1
  151. package/dist/shared/index.js.map +1 -1
  152. package/dist/shared/timestamp.d.ts +2 -0
  153. package/dist/shared/timestamp.js +5 -0
  154. package/dist/shared/timestamp.js.map +1 -0
  155. package/dist/shared/{time.js → timezone.js} +1 -1
  156. package/dist/shared/timezone.js.map +1 -0
  157. package/package.json +3 -3
  158. package/dist/shared/time.js.map +0 -1
  159. /package/dist/shared/{time.d.ts → timezone.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ import { GetLabelsQuery } from './query';
2
+ import { GetLabelResponse } from '../[id]/get';
3
+ export interface GetLabelsResponse {
4
+ query: GetLabelsQuery | null;
5
+ total: number;
6
+ items: GetLabelResponse[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/labels/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './constants';
2
+ export * from './post';
3
+ export * from './get';
4
+ export * from './[id]';
@@ -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("./constants"), exports);
18
+ __exportStar(require("./post"), exports);
19
+ __exportStar(require("./get"), exports);
20
+ __exportStar(require("./[id]"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/labels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,yCAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -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/labels/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,4 @@
1
+ export interface PostLabelRequest {
2
+ name: string;
3
+ }
4
+ export declare type PostLabelsRequest = PostLabelRequest[];
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/labels/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { GetLabelResponse } from '../[id]/get';
2
+ export interface PostLabelsResponse {
3
+ inserted: number;
4
+ items: GetLabelResponse[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/labels/post/response.ts"],"names":[],"mappings":""}
@@ -8,7 +8,6 @@ export interface GetLocationResponse {
8
8
  name: string;
9
9
  tagIds?: string[];
10
10
  readers?: IEmbeddedReader[];
11
- level?: string;
12
11
  telemetry?: IAssetTelemetry;
13
12
  meta?: IEntityMeta;
14
13
  }
@@ -1,6 +1,5 @@
1
1
  export interface UpdateLocationRequest {
2
2
  name?: string;
3
- level?: string;
4
3
  tagIds?: string[];
5
4
  archived?: boolean;
6
5
  address?: string;
@@ -1,6 +1,6 @@
1
1
  import { DefaultError } from '../../../shared/errors';
2
2
  import { TagsExistError } from '../../../tags/errors';
3
- export { GetLocationResponse as UpdateLocationResponse } from '../../[id]/get';
3
+ export { GetLocationResponse as UpdateLocationResponse } from '../get';
4
4
  export interface UpdateLocationError extends DefaultError {
5
5
  data: TagsExistError;
6
6
  }
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -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/locations/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1 @@
1
+ export { LocationFilters as CountLocationsQuery } from '../get/query';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/locations/count/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface CountLocationsResponse {
2
+ hasTags: number;
3
+ hasReaders: number;
4
+ setupComplete: number;
5
+ total: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/locations/count/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -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/locations/download/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { SearchableSortFields, SortOrders, TimestampFormat } from '../../shared';
2
+ import { LocationFilters } from '../get';
3
+ export interface DownloadLocationsQuery extends LocationFilters {
4
+ limit?: number;
5
+ sort?: SearchableSortFields;
6
+ sortOrder?: SortOrders;
7
+ timestampFormat?: TimestampFormat;
8
+ timezone?: string;
9
+ withEntityLinks?: boolean;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/locations/download/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface DownloadLocationsResponse {
2
+ path: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/locations/download/response.ts"],"names":[],"mappings":""}
@@ -1,19 +1,21 @@
1
1
  import { SearchableSortFields, SortOrders } from '../../shared';
2
2
  export declare type LocationSearchField = 'name';
3
3
  export declare type LocationEmbedField = 'meta' | 'tagIds' | 'readers' | 'telemetry';
4
- export interface GetLocationsQuery {
5
- page?: number;
6
- limit?: number;
4
+ export interface LocationFilters {
7
5
  ids?: string[];
8
6
  tagIds?: string[];
9
7
  hasTags?: boolean;
10
8
  hasReaders?: boolean;
11
9
  setupComplete?: boolean;
12
10
  archived?: boolean;
13
- sort?: SearchableSortFields;
14
- sortOrder?: SortOrders;
15
11
  search?: string;
16
12
  searchFuzzy?: boolean;
17
13
  searchFields?: Array<LocationSearchField>;
14
+ }
15
+ export interface GetLocationsQuery extends LocationFilters {
16
+ page?: number;
17
+ limit?: number;
18
+ sort?: SearchableSortFields;
19
+ sortOrder?: SortOrders;
18
20
  embed?: Array<LocationEmbedField>;
19
21
  }
@@ -1,5 +1,7 @@
1
- export * from './post';
1
+ export * from './[id]';
2
+ export * from './count';
3
+ export * from './download';
2
4
  export * from './get';
5
+ export * from './post';
3
6
  export * from './suggestions';
4
- export * from './[id]';
5
7
  export * from './errors';
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./post"), exports);
17
+ __exportStar(require("./[id]"), exports);
18
+ __exportStar(require("./count"), exports);
19
+ __exportStar(require("./download"), exports);
18
20
  __exportStar(require("./get"), exports);
21
+ __exportStar(require("./post"), exports);
19
22
  __exportStar(require("./suggestions"), exports);
20
- __exportStar(require("./[id]"), exports);
21
23
  __exportStar(require("./errors"), exports);
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,gDAA8B;AAC9B,yCAAuB;AACvB,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB"}
@@ -1,6 +1,5 @@
1
1
  export interface PostLocationRequest {
2
2
  name: string;
3
- level?: string;
4
3
  tagIds?: string[];
5
4
  address?: string;
6
5
  geoLocation?: GeoJSON.GeoJSON;
@@ -1,10 +1,12 @@
1
- import { IEntityMeta } from '../../shared';
1
+ import { IEmbeddedEntity, IEntityMeta } from '../../shared';
2
2
  import { Preferences } from '../constants';
3
3
  import { Integrations } from '../../integrations/constants';
4
4
  export interface GetOrganisationResponse {
5
5
  id: string;
6
6
  name: string;
7
+ ancestors?: IEmbeddedEntity[];
7
8
  preferences?: Preferences;
8
9
  integrations?: Integrations;
9
10
  meta?: IEntityMeta;
11
+ children?: number;
10
12
  }
@@ -1,5 +1,5 @@
1
1
  import { StandardSortFields, SortOrders } from '../../shared';
2
- export declare type OrganisationEmbedField = 'meta' | 'preferences';
2
+ export declare type OrganisationEmbedField = 'meta' | 'preferences' | 'children';
3
3
  export interface GetOrganisationsQuery {
4
4
  page?: number;
5
5
  limit?: number;
@@ -21,7 +21,7 @@ export interface GetReaderResponse {
21
21
  type: ReaderType;
22
22
  deviceType: DeviceType;
23
23
  deviceId?: string;
24
- endpoint: string;
24
+ endpoint?: string;
25
25
  network?: string;
26
26
  location?: ReaderLocation;
27
27
  telemetry?: IReaderTelemetry;
@@ -1 +1 @@
1
- export { GetReaderResponse as UpdateReaderResponse } from '../../[id]/get';
1
+ export { GetReaderResponse as UpdateReaderResponse } from '../get';
@@ -1,15 +1,16 @@
1
- export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'OTHER' | 'APPLICATION';
1
+ export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'MINEW' | 'OTHER' | 'APPLICATION';
2
2
  export declare const DEVICE_TYPES: DeviceType[];
3
3
  export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
4
- export declare type ConnectorEndpoint = 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'digitalmatter' | 'detector' | 'other' | 'zebra';
5
4
  export declare type ConnectorProtocol = 'http' | 'mqtt';
6
5
  export declare type DeviceIdFormat = 'mac' | 'string';
6
+ export declare type DeviceManufacturer = 'spotto' | 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'minew' | 'digitalmatter' | 'kkm';
7
7
  export interface IDeviceTypeDetail {
8
8
  id: DeviceType;
9
9
  name: string;
10
10
  technology: DeviceTechnologyType[];
11
- endpoint?: ConnectorEndpoint;
12
- protocol: ConnectorProtocol;
11
+ endpoint?: string;
12
+ manufacturer?: DeviceManufacturer;
13
+ protocols: ConnectorProtocol[];
13
14
  deviceIdFormat?: DeviceIdFormat;
14
15
  visible: boolean;
15
16
  }
@@ -20,6 +21,6 @@ declare type QuerySignature = {
20
21
  };
21
22
  export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
22
23
  export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
23
- export declare const getDeviceTypesForEndpoint: (endpoint: ConnectorEndpoint) => DeviceType[];
24
+ export declare const getDeviceTypesForManufacturer: (manufacturer: DeviceManufacturer) => DeviceType[];
24
25
  export declare const isIoTX3: (id: DeviceType) => boolean;
25
26
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isIoTX3 = exports.getDeviceTypesForEndpoint = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
3
+ exports.isIoTX3 = exports.getDeviceTypesForManufacturer = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
4
4
  exports.DEVICE_TYPES = [
5
5
  'B1',
6
6
  'A1',
@@ -12,6 +12,7 @@ exports.DEVICE_TYPES = [
12
12
  'TURCK',
13
13
  'DIGITAL_MATTER',
14
14
  'KKM',
15
+ 'MINEW',
15
16
  'OTHER',
16
17
  'APPLICATION',
17
18
  ];
@@ -20,8 +21,9 @@ exports.DEVICE_TYPE_DETAILS = [
20
21
  id: 'B1',
21
22
  name: 'Spotto B1 Bluetooth Reader',
22
23
  technology: ['BLE'],
23
- endpoint: 'iotx3',
24
- protocol: 'http',
24
+ endpoint: 'iotx3/{readerId}',
25
+ manufacturer: 'iotx3',
26
+ protocols: ['http'],
25
27
  deviceIdFormat: 'mac',
26
28
  visible: true,
27
29
  },
@@ -29,7 +31,9 @@ exports.DEVICE_TYPE_DETAILS = [
29
31
  id: 'A1',
30
32
  name: 'Spotto A1 Bluetooth Reader',
31
33
  technology: ['BLE'],
32
- protocol: 'mqtt',
34
+ endpoint: 'spotto',
35
+ manufacturer: 'spotto',
36
+ protocols: ['mqtt', 'http'],
33
37
  deviceIdFormat: 'mac',
34
38
  visible: true,
35
39
  },
@@ -37,8 +41,8 @@ exports.DEVICE_TYPE_DETAILS = [
37
41
  id: 'RF1A4',
38
42
  name: 'Spotto RF1A4 RFID Reader',
39
43
  technology: ['RFID'],
40
- endpoint: 'iotx3',
41
- protocol: 'http',
44
+ endpoint: 'iotx3/{readerId}',
45
+ protocols: ['http'],
42
46
  deviceIdFormat: 'mac',
43
47
  visible: true,
44
48
  },
@@ -46,8 +50,8 @@ exports.DEVICE_TYPE_DETAILS = [
46
50
  id: 'RF1F',
47
51
  name: 'Spotto RF1F RFID Reader',
48
52
  technology: ['RFID'],
49
- endpoint: 'iotx3',
50
- protocol: 'http',
53
+ endpoint: 'iotx3/{readerId}',
54
+ protocols: ['http'],
51
55
  deviceIdFormat: 'mac',
52
56
  visible: true,
53
57
  },
@@ -55,8 +59,8 @@ exports.DEVICE_TYPE_DETAILS = [
55
59
  id: 'HD1',
56
60
  name: 'Spotto HD1 HID Reader',
57
61
  technology: ['HID'],
58
- endpoint: 'iotx3',
59
- protocol: 'http',
62
+ endpoint: 'iotx3/{readerId}',
63
+ protocols: ['http'],
60
64
  deviceIdFormat: 'mac',
61
65
  visible: true,
62
66
  },
@@ -64,24 +68,27 @@ exports.DEVICE_TYPE_DETAILS = [
64
68
  id: 'ZEBRA',
65
69
  name: 'Zebra RFID Reader',
66
70
  technology: ['RFID'],
67
- endpoint: 'zebra',
68
- protocol: 'http',
71
+ endpoint: 'zebra/{readerId}',
72
+ manufacturer: 'zebra',
73
+ protocols: ['http'],
69
74
  visible: true,
70
75
  },
71
76
  {
72
77
  id: 'IMPINJ',
73
78
  name: 'Impinj RFID Reader',
74
79
  technology: ['RFID'],
75
- endpoint: 'impinj',
76
- protocol: 'http',
80
+ endpoint: 'impinj/{readerId}',
81
+ manufacturer: 'impinj',
82
+ protocols: ['http'],
77
83
  visible: true,
78
84
  },
79
85
  {
80
86
  id: 'TURCK',
81
87
  name: 'Turck Handheld RFID Reader',
82
88
  technology: ['RFID'],
83
- endpoint: 'turck',
84
- protocol: 'http',
89
+ endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
90
+ manufacturer: 'turck',
91
+ protocols: ['http'],
85
92
  visible: true,
86
93
  },
87
94
  {
@@ -89,7 +96,8 @@ exports.DEVICE_TYPE_DETAILS = [
89
96
  name: 'Digital Matter BLE Reader',
90
97
  technology: ['BLE'],
91
98
  endpoint: 'digitalmatter',
92
- protocol: 'http',
99
+ manufacturer: 'digitalmatter',
100
+ protocols: ['http'],
93
101
  deviceIdFormat: 'string',
94
102
  visible: true,
95
103
  },
@@ -97,7 +105,19 @@ exports.DEVICE_TYPE_DETAILS = [
97
105
  id: 'KKM',
98
106
  name: 'KKM BLE Reader',
99
107
  technology: ['BLE'],
100
- protocol: 'mqtt',
108
+ protocols: ['mqtt', 'http'],
109
+ endpoint: 'kb',
110
+ manufacturer: 'kkm',
111
+ deviceIdFormat: 'mac',
112
+ visible: true,
113
+ },
114
+ {
115
+ id: 'MINEW',
116
+ name: 'Minew BLE Reader',
117
+ technology: ['BLE'],
118
+ protocols: ['mqtt', 'http'],
119
+ endpoint: 'minew',
120
+ manufacturer: 'minew',
101
121
  deviceIdFormat: 'mac',
102
122
  visible: true,
103
123
  },
@@ -105,16 +125,16 @@ exports.DEVICE_TYPE_DETAILS = [
105
125
  id: 'OTHER',
106
126
  name: 'Custom Reader (BYO Device)',
107
127
  technology: ['RFID', 'BLE', 'HID'],
108
- endpoint: 'other',
109
- protocol: 'http',
128
+ endpoint: 'other/{readerId}',
129
+ protocols: ['http'],
110
130
  visible: true,
111
131
  },
112
132
  {
113
133
  id: 'APPLICATION',
114
134
  name: 'Spotto Detector Application',
115
135
  technology: ['BLE'],
116
- endpoint: 'detector',
117
- protocol: 'http',
136
+ endpoint: 'detector/{readerId}',
137
+ protocols: ['http'],
118
138
  deviceIdFormat: 'string',
119
139
  visible: false,
120
140
  },
@@ -124,15 +144,18 @@ exports.getDeviceTypeById = getDeviceTypeById;
124
144
  const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter(type => Object.keys(query).every(key => {
125
145
  const testField = query[key];
126
146
  const field = type[key];
127
- return (testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array
128
- ? field.every(item => testField === null || testField === void 0 ? void 0 : testField.includes(item))
129
- : testField === field;
147
+ if ((testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array) {
148
+ const _field = field;
149
+ const _testField = testField;
150
+ return _field.every(item => _testField === null || _testField === void 0 ? void 0 : _testField.includes(item));
151
+ }
152
+ return testField === field;
130
153
  }));
131
154
  exports.getDeviceTypes = getDeviceTypes;
132
155
  const getDeviceTypesForFormat = (deviceIdFormat) => (0, exports.getDeviceTypes)({ deviceIdFormat }).map(({ id }) => id);
133
156
  exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
134
- const getDeviceTypesForEndpoint = (endpoint) => (0, exports.getDeviceTypes)({ endpoint }).map(({ id }) => id);
135
- exports.getDeviceTypesForEndpoint = getDeviceTypesForEndpoint;
136
- const isIoTX3 = (id) => (0, exports.getDeviceTypesForEndpoint)('iotx3').includes(id);
157
+ const getDeviceTypesForManufacturer = (manufacturer) => (0, exports.getDeviceTypes)({ manufacturer }).map(({ id }) => id);
158
+ exports.getDeviceTypesForManufacturer = getDeviceTypesForManufacturer;
159
+ const isIoTX3 = (id) => (0, exports.getDeviceTypesForManufacturer)('iotx3').includes(id);
137
160
  exports.isIoTX3 = isIoTX3;
138
161
  //# sourceMappingURL=deviceTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../../src/readers/constants/deviceTypes.ts"],"names":[],"mappings":";;;AAca,QAAA,YAAY,GAAiB;IACxC,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,OAAO;IACP,gBAAgB;IAChB,KAAK;IACL,OAAO;IACP,aAAa;CACd,CAAC;AA+BW,QAAA,mBAAmB,GAAwB;IACtD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,KAAK;QACT,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE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AAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AADtC,QAAA,yBAAyB,6BACa;AAM5C,MAAM,OAAO,GAAG,CAAC,EAAc,EAAE,EAAE,CACxC,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AADrC,QAAA,OAAO,WAC8B"}
1
+ {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../../src/readers/constants/deviceTypes.ts"],"names":[],"mappings":";;;AAea,QAAA,YAAY,GAAiB;IACxC,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,OAAO;IACP,gBAAgB;IAChB,KAAK;IACL,OAAO;IACP,OAAO;IACP,aAAa;CACd,CAAC;AAgCW,QAAA,mBAAmB,GAAwB;IACtD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,kBAAkB;QAC5B,YAAY,EAAE,OAAO;QACrB,SAAS,EAAE,CAAC,MAAM,CAAC;QACnB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,QAAQ;QACtB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAC3B,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,CAAC,MAAM,CAAC;QACnB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAA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'./query';
2
+ export * from './response';
@@ -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/readers/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1 @@
1
+ export { ReaderFilters as CountReadersQuery } from '../get/query';