@spotto/contract 1.0.69-alpha.2 → 1.0.69-alpha.4
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 +60 -60
- package/dist/assets/[id]/get.js +2 -2
- package/dist/assets/[id]/index.d.ts +4 -4
- package/dist/assets/[id]/index.js +20 -20
- package/dist/assets/[id]/location.d.ts +6 -6
- package/dist/assets/[id]/location.js +2 -2
- package/dist/assets/[id]/patch/index.d.ts +2 -2
- package/dist/assets/[id]/patch/index.js +18 -18
- package/dist/assets/[id]/patch/request.d.ts +11 -11
- package/dist/assets/[id]/patch/request.js +2 -2
- package/dist/assets/[id]/patch/response.d.ts +7 -7
- package/dist/assets/[id]/patch/response.js +2 -2
- package/dist/assets/[id]/readers.d.ts +9 -9
- package/dist/assets/[id]/readers.js +2 -2
- package/dist/assets/count/index.d.ts +2 -2
- package/dist/assets/count/index.js +18 -18
- package/dist/assets/count/query.d.ts +1 -1
- package/dist/assets/count/query.js +2 -2
- package/dist/assets/count/response.d.ts +15 -15
- package/dist/assets/count/response.js +2 -2
- package/dist/assets/count-filtered/index.d.ts +1 -1
- package/dist/assets/count-filtered/index.js +17 -17
- package/dist/assets/count-filtered/response.d.ts +5 -5
- package/dist/assets/count-filtered/response.js +2 -2
- package/dist/assets/download/index.d.ts +2 -2
- package/dist/assets/download/index.js +18 -18
- package/dist/assets/download/query.d.ts +10 -10
- package/dist/assets/download/query.js +2 -2
- package/dist/assets/download/response.d.ts +3 -3
- package/dist/assets/download/response.js +2 -2
- package/dist/assets/errors.d.ts +3 -3
- package/dist/assets/errors.js +2 -2
- package/dist/assets/get/index.d.ts +2 -2
- package/dist/assets/get/index.js +18 -18
- package/dist/assets/get/query.d.ts +53 -53
- package/dist/assets/get/query.js +2 -2
- package/dist/assets/get/response.d.ts +6 -6
- package/dist/assets/get/response.js +2 -2
- package/dist/assets/index.d.ts +11 -11
- package/dist/assets/index.js +27 -27
- package/dist/assets/location/index.d.ts +2 -2
- package/dist/assets/location/index.js +18 -18
- package/dist/assets/location/request.d.ts +10 -10
- package/dist/assets/location/request.js +2 -2
- package/dist/assets/location/response.d.ts +2 -2
- package/dist/assets/location/response.js +2 -2
- package/dist/assets/post/index.d.ts +2 -2
- package/dist/assets/post/index.js +18 -18
- package/dist/assets/post/request.d.ts +13 -13
- package/dist/assets/post/request.js +9 -9
- package/dist/assets/post/response.d.ts +11 -11
- package/dist/assets/post/response.js +2 -2
- package/dist/assets/suggestions/index.d.ts +2 -2
- package/dist/assets/suggestions/index.js +18 -18
- package/dist/assets/suggestions/query.d.ts +5 -5
- package/dist/assets/suggestions/query.js +2 -2
- package/dist/assets/suggestions/response.d.ts +15 -15
- package/dist/assets/suggestions/response.js +2 -2
- package/dist/assets/summary/index.d.ts +1 -1
- package/dist/assets/summary/index.js +17 -17
- package/dist/assets/summary/summary.d.ts +9 -9
- package/dist/assets/summary/summary.js +2 -2
- package/dist/assets/upload/index.d.ts +2 -2
- package/dist/assets/upload/index.js +18 -18
- package/dist/assets/upload/request.d.ts +3 -3
- package/dist/assets/upload/request.js +2 -2
- package/dist/assets/upload/response.d.ts +7 -7
- package/dist/assets/upload/response.js +2 -2
- package/dist/errors.d.ts +4 -4
- package/dist/errors.js +2 -2
- package/dist/events/constants.d.ts +9 -9
- package/dist/events/constants.js +32 -32
- package/dist/events/count/index.d.ts +2 -2
- package/dist/events/count/index.js +18 -18
- package/dist/events/count/query.d.ts +5 -5
- package/dist/events/count/query.js +2 -2
- package/dist/events/count/response.d.ts +18 -18
- package/dist/events/count/response.js +2 -2
- package/dist/events/download/index.d.ts +2 -2
- package/dist/events/download/index.js +18 -18
- package/dist/events/download/query.d.ts +9 -9
- package/dist/events/download/query.js +2 -2
- package/dist/events/download/response.d.ts +3 -3
- package/dist/events/download/response.js +2 -2
- package/dist/events/get/index.d.ts +2 -2
- package/dist/events/get/index.js +18 -18
- package/dist/events/get/query.d.ts +15 -15
- package/dist/events/get/query.js +2 -2
- package/dist/events/get/response.d.ts +128 -128
- package/dist/events/get/response.js +2 -2
- package/dist/events/index.d.ts +5 -5
- package/dist/events/index.js +21 -21
- package/dist/events/post.d.ts +9 -9
- package/dist/events/post.js +2 -2
- package/dist/fields/[id]/get.d.ts +21 -21
- package/dist/fields/[id]/get.js +2 -2
- package/dist/fields/[id]/index.d.ts +2 -2
- package/dist/fields/[id]/index.js +18 -18
- package/dist/fields/[id]/patch/index.d.ts +2 -2
- package/dist/fields/[id]/patch/index.js +18 -18
- package/dist/fields/[id]/patch/request.d.ts +18 -18
- package/dist/fields/[id]/patch/request.js +2 -2
- package/dist/fields/[id]/patch/response.d.ts +1 -1
- package/dist/fields/[id]/patch/response.js +2 -2
- package/dist/fields/constants.d.ts +4 -4
- package/dist/fields/constants.js +22 -22
- package/dist/fields/get/index.d.ts +2 -2
- package/dist/fields/get/index.js +18 -18
- package/dist/fields/get/query.d.ts +9 -9
- package/dist/fields/get/query.js +2 -2
- package/dist/fields/get/response.d.ts +5 -5
- package/dist/fields/get/response.js +2 -2
- package/dist/fields/index.d.ts +5 -5
- package/dist/fields/index.js +21 -21
- package/dist/fields/post/index.d.ts +2 -2
- package/dist/fields/post/index.js +18 -18
- package/dist/fields/post/request.d.ts +18 -18
- package/dist/fields/post/request.js +8 -8
- package/dist/fields/post/response.d.ts +5 -5
- package/dist/fields/post/response.js +2 -2
- package/dist/fields/suggestions/index.d.ts +2 -2
- package/dist/fields/suggestions/index.js +18 -18
- package/dist/fields/suggestions/query.d.ts +5 -5
- package/dist/fields/suggestions/query.js +2 -2
- package/dist/fields/suggestions/response.d.ts +15 -15
- package/dist/fields/suggestions/response.js +2 -2
- package/dist/index.d.ts +20 -20
- package/dist/index.js +36 -36
- package/dist/integrations/constants.d.ts +21 -21
- package/dist/integrations/constants.js +2 -2
- package/dist/integrations/index.d.ts +2 -2
- package/dist/integrations/index.js +18 -18
- package/dist/integrations/mqtt/get.d.ts +1 -1
- package/dist/integrations/mqtt/get.js +2 -2
- package/dist/integrations/mqtt/index.d.ts +2 -2
- package/dist/integrations/mqtt/index.js +18 -18
- package/dist/integrations/mqtt/patch/index.d.ts +2 -2
- package/dist/integrations/mqtt/patch/index.js +18 -18
- package/dist/integrations/mqtt/patch/request.d.ts +3 -3
- package/dist/integrations/mqtt/patch/request.js +2 -2
- package/dist/integrations/mqtt/patch/response.d.ts +1 -1
- package/dist/integrations/mqtt/patch/response.js +2 -2
- package/dist/labels/[id]/get.d.ts +6 -6
- package/dist/labels/[id]/get.js +2 -2
- package/dist/labels/[id]/index.d.ts +2 -2
- package/dist/labels/[id]/index.js +18 -18
- package/dist/labels/[id]/patch/index.d.ts +2 -2
- package/dist/labels/[id]/patch/index.js +18 -18
- package/dist/labels/[id]/patch/request.d.ts +3 -3
- package/dist/labels/[id]/patch/request.js +2 -2
- package/dist/labels/[id]/patch/response.d.ts +1 -1
- package/dist/labels/[id]/patch/response.js +2 -2
- package/dist/labels/constants.d.ts +4 -4
- package/dist/labels/constants.js +2 -2
- package/dist/labels/get/index.d.ts +2 -2
- package/dist/labels/get/index.js +18 -18
- package/dist/labels/get/query.d.ts +11 -11
- package/dist/labels/get/query.js +2 -2
- package/dist/labels/get/response.d.ts +7 -7
- package/dist/labels/get/response.js +2 -2
- package/dist/labels/index.d.ts +4 -4
- package/dist/labels/index.js +20 -20
- package/dist/labels/post/index.d.ts +2 -2
- package/dist/labels/post/index.js +18 -18
- package/dist/labels/post/request.d.ts +4 -4
- package/dist/labels/post/request.js +2 -2
- package/dist/labels/post/response.d.ts +5 -5
- package/dist/labels/post/response.js +2 -2
- package/dist/locations/[id]/get.d.ts +39 -39
- package/dist/locations/[id]/get.js +2 -2
- package/dist/locations/[id]/index.d.ts +4 -4
- package/dist/locations/[id]/index.js +20 -20
- package/dist/locations/[id]/inventory.d.ts +9 -9
- package/dist/locations/[id]/inventory.js +2 -2
- package/dist/locations/[id]/patch/index.d.ts +2 -2
- package/dist/locations/[id]/patch/index.js +18 -18
- package/dist/locations/[id]/patch/request.d.ts +12 -12
- package/dist/locations/[id]/patch/request.js +2 -2
- package/dist/locations/[id]/patch/response.d.ts +7 -7
- package/dist/locations/[id]/patch/response.js +2 -2
- package/dist/locations/[id]/status.d.ts +4 -4
- package/dist/locations/[id]/status.js +2 -2
- package/dist/locations/constants.d.ts +4 -4
- package/dist/locations/constants.js +12 -12
- package/dist/locations/count/index.d.ts +2 -2
- package/dist/locations/count/index.js +18 -18
- package/dist/locations/count/query.d.ts +1 -1
- package/dist/locations/count/query.js +2 -2
- package/dist/locations/count/response.d.ts +6 -6
- package/dist/locations/count/response.js +2 -2
- package/dist/locations/download/index.d.ts +2 -2
- package/dist/locations/download/index.js +18 -18
- package/dist/locations/download/query.d.ts +10 -10
- package/dist/locations/download/query.js +2 -2
- package/dist/locations/download/response.d.ts +3 -3
- package/dist/locations/download/response.js +2 -2
- package/dist/locations/errors.d.ts +3 -3
- package/dist/locations/errors.js +2 -2
- package/dist/locations/get/index.d.ts +2 -2
- package/dist/locations/get/index.js +18 -18
- package/dist/locations/get/query.d.ts +32 -32
- package/dist/locations/get/query.js +2 -2
- package/dist/locations/get/response.d.ts +7 -7
- package/dist/locations/get/response.js +2 -2
- package/dist/locations/index.d.ts +8 -8
- package/dist/locations/index.js +24 -24
- package/dist/locations/post/index.d.ts +2 -2
- package/dist/locations/post/index.js +18 -18
- package/dist/locations/post/request.d.ts +13 -13
- package/dist/locations/post/request.js +2 -2
- package/dist/locations/post/response.d.ts +11 -11
- package/dist/locations/post/response.js +2 -2
- package/dist/locations/suggestions/index.d.ts +2 -2
- package/dist/locations/suggestions/index.js +18 -18
- package/dist/locations/suggestions/query.d.ts +7 -7
- package/dist/locations/suggestions/query.js +2 -2
- package/dist/locations/suggestions/response.d.ts +15 -15
- package/dist/locations/suggestions/response.js +2 -2
- package/dist/manifests/[id]/get.d.ts +35 -35
- package/dist/manifests/[id]/get.js +38 -38
- package/dist/manifests/[id]/index.d.ts +2 -2
- package/dist/manifests/[id]/index.js +18 -18
- package/dist/manifests/[id]/patch/index.d.ts +2 -2
- package/dist/manifests/[id]/patch/index.js +18 -18
- package/dist/manifests/[id]/patch/request.d.ts +8 -8
- package/dist/manifests/[id]/patch/request.js +45 -45
- package/dist/manifests/[id]/patch/response.d.ts +1 -1
- package/dist/manifests/[id]/patch/response.js +2 -2
- package/dist/manifests/get/index.d.ts +2 -2
- package/dist/manifests/get/index.js +18 -18
- package/dist/manifests/get/query.d.ts +10 -10
- package/dist/manifests/get/query.js +2 -2
- package/dist/manifests/get/response.d.ts +7 -7
- package/dist/manifests/get/response.js +2 -2
- package/dist/manifests/index.d.ts +3 -3
- package/dist/manifests/index.js +19 -19
- package/dist/manifests/post/index.d.ts +2 -2
- package/dist/manifests/post/index.js +18 -18
- package/dist/manifests/post/request.d.ts +16 -16
- package/dist/manifests/post/request.js +51 -51
- package/dist/manifests/post/response.d.ts +5 -5
- package/dist/manifests/post/response.js +2 -2
- package/dist/networks/constants.d.ts +6 -6
- package/dist/networks/constants.js +2 -2
- package/dist/networks/index.d.ts +1 -1
- package/dist/networks/index.js +17 -17
- package/dist/organisations/[id]/delete/index.d.ts +2 -2
- package/dist/organisations/[id]/delete/index.js +18 -18
- package/dist/organisations/[id]/delete/query.d.ts +3 -3
- package/dist/organisations/[id]/delete/query.js +2 -2
- package/dist/organisations/[id]/delete/response.d.ts +13 -13
- package/dist/organisations/[id]/delete/response.js +2 -2
- package/dist/organisations/[id]/get.d.ts +13 -13
- package/dist/organisations/[id]/get.js +2 -2
- package/dist/organisations/[id]/index.d.ts +4 -4
- package/dist/organisations/[id]/index.js +20 -20
- package/dist/organisations/[id]/patch/index.d.ts +2 -2
- package/dist/organisations/[id]/patch/index.js +18 -18
- package/dist/organisations/[id]/patch/request.d.ts +11 -11
- package/dist/organisations/[id]/patch/request.js +2 -2
- package/dist/organisations/[id]/patch/response.d.ts +1 -1
- package/dist/organisations/[id]/patch/response.js +2 -2
- package/dist/organisations/[id]/wifi/index.d.ts +2 -2
- package/dist/organisations/[id]/wifi/index.js +18 -18
- package/dist/organisations/[id]/wifi/query.d.ts +3 -3
- package/dist/organisations/[id]/wifi/query.js +2 -2
- package/dist/organisations/[id]/wifi/response.d.ts +4 -4
- package/dist/organisations/[id]/wifi/response.js +2 -2
- package/dist/organisations/constants.d.ts +35 -36
- package/dist/organisations/constants.js +2 -2
- package/dist/organisations/get/index.d.ts +2 -2
- package/dist/organisations/get/index.js +18 -18
- package/dist/organisations/get/query.d.ts +11 -11
- package/dist/organisations/get/query.js +2 -2
- package/dist/organisations/get/response.d.ts +7 -7
- package/dist/organisations/get/response.js +2 -2
- package/dist/organisations/index.d.ts +4 -4
- package/dist/organisations/index.js +20 -20
- package/dist/organisations/post/index.d.ts +2 -2
- package/dist/organisations/post/index.js +18 -18
- package/dist/organisations/post/request.d.ts +6 -6
- package/dist/organisations/post/request.js +2 -2
- package/dist/organisations/post/response.d.ts +1 -1
- package/dist/organisations/post/response.js +2 -2
- package/dist/readers/[id]/get.d.ts +41 -41
- package/dist/readers/[id]/get.js +2 -2
- package/dist/readers/[id]/index.d.ts +4 -4
- package/dist/readers/[id]/index.js +20 -20
- package/dist/readers/[id]/inventory/index.d.ts +1 -1
- package/dist/readers/[id]/inventory/index.js +17 -17
- package/dist/readers/[id]/inventory/response.d.ts +5 -5
- package/dist/readers/[id]/inventory/response.js +2 -2
- package/dist/readers/[id]/patch/index.d.ts +2 -2
- package/dist/readers/[id]/patch/index.js +18 -18
- package/dist/readers/[id]/patch/request.d.ts +13 -13
- package/dist/readers/[id]/patch/request.js +2 -2
- package/dist/readers/[id]/patch/response.d.ts +1 -1
- package/dist/readers/[id]/patch/response.js +2 -2
- package/dist/readers/[id]/status.d.ts +4 -4
- package/dist/readers/[id]/status.js +2 -2
- package/dist/readers/constants/deviceTypes.d.ts +43 -43
- package/dist/readers/constants/deviceTypes.js +198 -198
- package/dist/readers/constants/index.d.ts +2 -2
- package/dist/readers/constants/index.js +18 -18
- package/dist/readers/constants/types.d.ts +10 -10
- package/dist/readers/constants/types.js +24 -24
- package/dist/readers/count/index.d.ts +2 -2
- package/dist/readers/count/index.js +18 -18
- package/dist/readers/count/query.d.ts +1 -1
- package/dist/readers/count/query.js +2 -2
- package/dist/readers/count/response.d.ts +5 -5
- package/dist/readers/count/response.js +2 -2
- package/dist/readers/download/index.d.ts +2 -2
- package/dist/readers/download/index.js +18 -18
- package/dist/readers/download/query.d.ts +10 -10
- package/dist/readers/download/query.js +2 -2
- package/dist/readers/download/response.d.ts +3 -3
- package/dist/readers/download/response.js +2 -2
- package/dist/readers/get/index.d.ts +2 -2
- package/dist/readers/get/index.js +18 -18
- package/dist/readers/get/query.d.ts +24 -24
- package/dist/readers/get/query.js +2 -2
- package/dist/readers/get/response.d.ts +7 -7
- package/dist/readers/get/response.js +2 -2
- package/dist/readers/index.d.ts +8 -8
- package/dist/readers/index.js +24 -24
- package/dist/readers/post/index.d.ts +2 -2
- package/dist/readers/post/index.js +18 -18
- package/dist/readers/post/request.d.ts +14 -14
- package/dist/readers/post/request.js +2 -2
- package/dist/readers/post/response.d.ts +5 -5
- package/dist/readers/post/response.js +2 -2
- package/dist/readers/suggestions/index.d.ts +2 -2
- package/dist/readers/suggestions/index.js +18 -18
- package/dist/readers/suggestions/query.d.ts +5 -5
- package/dist/readers/suggestions/query.js +2 -2
- package/dist/readers/suggestions/response.d.ts +15 -15
- package/dist/readers/suggestions/response.js +2 -2
- package/dist/readers/user/index.d.ts +2 -2
- package/dist/readers/user/index.js +18 -18
- package/dist/readers/user/request.d.ts +3 -3
- package/dist/readers/user/request.js +2 -2
- package/dist/readers/user/response.d.ts +8 -8
- package/dist/readers/user/response.js +2 -2
- package/dist/roles/[id]/get.d.ts +6 -6
- package/dist/roles/[id]/get.js +2 -2
- package/dist/roles/[id]/index.d.ts +1 -1
- package/dist/roles/[id]/index.js +17 -17
- package/dist/roles/get/index.d.ts +2 -2
- package/dist/roles/get/index.js +18 -18
- package/dist/roles/get/query.d.ts +7 -7
- package/dist/roles/get/query.js +2 -2
- package/dist/roles/get/response.d.ts +7 -7
- package/dist/roles/get/response.js +2 -2
- package/dist/roles/index.d.ts +3 -3
- package/dist/roles/index.js +19 -19
- package/dist/roles/post/index.d.ts +2 -2
- package/dist/roles/post/index.js +18 -18
- package/dist/roles/post/request.d.ts +6 -6
- package/dist/roles/post/request.js +2 -2
- package/dist/roles/post/response.d.ts +1 -1
- package/dist/roles/post/response.js +2 -2
- package/dist/shared/body.d.ts +6 -6
- package/dist/shared/body.js +2 -2
- package/dist/shared/delete.d.ts +3 -3
- package/dist/shared/delete.js +2 -2
- package/dist/shared/embed.d.ts +8 -8
- package/dist/shared/embed.js +2 -2
- package/dist/shared/errors.d.ts +3 -3
- package/dist/shared/errors.js +2 -2
- package/dist/shared/headers.d.ts +3 -3
- package/dist/shared/headers.js +2 -2
- package/dist/shared/index.d.ts +10 -10
- package/dist/shared/index.js +26 -26
- package/dist/shared/path.d.ts +3 -3
- package/dist/shared/path.js +2 -2
- package/dist/shared/query.d.ts +12 -12
- package/dist/shared/query.js +2 -2
- package/dist/shared/sort.d.ts +12 -12
- package/dist/shared/sort.js +13 -13
- package/dist/shared/timestamp.d.ts +2 -2
- package/dist/shared/timestamp.js +4 -4
- package/dist/shared/timezone.d.ts +4 -4
- package/dist/shared/timezone.js +357 -357
- package/dist/snapshots/[id]/get.d.ts +125 -109
- package/dist/snapshots/[id]/get.js +34 -33
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/[id]/index.d.ts +1 -1
- package/dist/snapshots/[id]/index.js +17 -17
- package/dist/snapshots/get/index.d.ts +2 -2
- package/dist/snapshots/get/index.js +18 -18
- package/dist/snapshots/get/query.d.ts +25 -25
- package/dist/snapshots/get/query.js +4 -4
- package/dist/snapshots/get/response.d.ts +7 -7
- package/dist/snapshots/get/response.js +2 -2
- package/dist/snapshots/index.d.ts +3 -3
- package/dist/snapshots/index.js +19 -19
- package/dist/snapshots/post/index.d.ts +2 -2
- package/dist/snapshots/post/index.js +18 -18
- package/dist/snapshots/post/request.d.ts +33 -30
- package/dist/snapshots/post/request.js +239 -239
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/snapshots/post/response.d.ts +5 -5
- package/dist/snapshots/post/response.js +2 -2
- package/dist/system/index.d.ts +3 -3
- package/dist/system/index.js +2 -2
- package/dist/tags/constants.d.ts +9 -9
- package/dist/tags/constants.js +2 -2
- package/dist/tags/errors.d.ts +19 -19
- package/dist/tags/errors.js +2 -2
- package/dist/tags/get/index.d.ts +2 -2
- package/dist/tags/get/index.js +18 -18
- package/dist/tags/get/query.d.ts +3 -3
- package/dist/tags/get/query.js +2 -2
- package/dist/tags/get/response.d.ts +7 -7
- package/dist/tags/get/response.js +2 -2
- package/dist/tags/index.d.ts +3 -3
- package/dist/tags/index.js +19 -19
- package/dist/telemetry.d.ts +10 -10
- package/dist/telemetry.js +2 -2
- package/dist/types/[id]/get.d.ts +41 -41
- package/dist/types/[id]/get.js +2 -2
- package/dist/types/[id]/index.d.ts +2 -2
- package/dist/types/[id]/index.js +18 -18
- package/dist/types/[id]/patch/index.d.ts +2 -2
- package/dist/types/[id]/patch/index.js +18 -18
- package/dist/types/[id]/patch/request.d.ts +13 -13
- package/dist/types/[id]/patch/request.js +2 -2
- package/dist/types/[id]/patch/response.d.ts +1 -1
- package/dist/types/[id]/patch/response.js +2 -2
- package/dist/types/get/index.d.ts +2 -2
- package/dist/types/get/index.js +18 -18
- package/dist/types/get/query.d.ts +10 -10
- package/dist/types/get/query.js +2 -2
- package/dist/types/get/response.d.ts +7 -7
- package/dist/types/get/response.js +2 -2
- package/dist/types/hierarchy/index.d.ts +1 -1
- package/dist/types/hierarchy/index.js +17 -17
- package/dist/types/hierarchy/response.d.ts +8 -8
- package/dist/types/hierarchy/response.js +27 -27
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +21 -21
- package/dist/types/post/index.d.ts +2 -2
- package/dist/types/post/index.js +18 -18
- package/dist/types/post/request.d.ts +84 -84
- package/dist/types/post/request.js +24 -24
- package/dist/types/post/response.d.ts +5 -5
- package/dist/types/post/response.js +2 -2
- package/dist/types/suggestions/index.d.ts +2 -2
- package/dist/types/suggestions/index.js +18 -18
- package/dist/types/suggestions/query.d.ts +5 -5
- package/dist/types/suggestions/query.js +2 -2
- package/dist/types/suggestions/response.d.ts +15 -15
- package/dist/types/suggestions/response.js +2 -2
- package/dist/users/[id]/get/index.d.ts +2 -2
- package/dist/users/[id]/get/index.js +18 -18
- package/dist/users/[id]/get/query.d.ts +3 -3
- package/dist/users/[id]/get/query.js +2 -2
- package/dist/users/[id]/get/response.d.ts +22 -22
- package/dist/users/[id]/get/response.js +2 -2
- package/dist/users/[id]/index.d.ts +3 -3
- package/dist/users/[id]/index.js +19 -19
- package/dist/users/[id]/key.d.ts +3 -3
- package/dist/users/[id]/key.js +2 -2
- package/dist/users/[id]/patch/index.d.ts +2 -2
- package/dist/users/[id]/patch/index.js +18 -18
- package/dist/users/[id]/patch/request.d.ts +6 -6
- package/dist/users/[id]/patch/request.js +2 -2
- package/dist/users/[id]/patch/response.d.ts +1 -1
- package/dist/users/[id]/patch/response.js +2 -2
- package/dist/users/constants.d.ts +2 -2
- package/dist/users/constants.js +4 -4
- package/dist/users/current.d.ts +33 -33
- package/dist/users/current.js +2 -2
- package/dist/users/get/index.d.ts +2 -2
- package/dist/users/get/index.js +18 -18
- package/dist/users/get/query.d.ts +17 -17
- package/dist/users/get/query.js +2 -2
- package/dist/users/get/response.d.ts +7 -7
- package/dist/users/get/response.js +2 -2
- package/dist/users/index.d.ts +5 -5
- package/dist/users/index.js +21 -21
- package/dist/users/post/index.d.ts +2 -2
- package/dist/users/post/index.js +18 -18
- package/dist/users/post/request.d.ts +15 -15
- package/dist/users/post/request.js +2 -2
- package/dist/users/post/response.d.ts +1 -1
- package/dist/users/post/response.js +2 -2
- package/dist/workflows/index.d.ts +44 -44
- package/dist/workflows/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'MINEW' | 'FR22' | 'OTHER' | 'APPLICATION';
|
|
2
|
-
export declare const DEVICE_TYPES: DeviceType[];
|
|
3
|
-
export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
|
|
4
|
-
/** How the reader communicates with Spotto */
|
|
5
|
-
export declare type ConnectorProtocol = 'http' | 'mqtt';
|
|
6
|
-
/** How we validate the unique device identifier */
|
|
7
|
-
export declare type DeviceIdFormat = 'mac' | 'string';
|
|
8
|
-
export declare type DeviceManufacturer = 'spotto' | 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'minew' | 'digitalmatter' | 'kkm';
|
|
9
|
-
export interface IDeviceTypeDetail {
|
|
10
|
-
id: DeviceType;
|
|
11
|
-
name: string;
|
|
12
|
-
technology: DeviceTechnologyType[];
|
|
13
|
-
endpoint?: string;
|
|
14
|
-
manufacturer?: DeviceManufacturer;
|
|
15
|
-
protocols: ConnectorProtocol[];
|
|
16
|
-
deviceIdFormat?: DeviceIdFormat;
|
|
17
|
-
deviceIdRequired?: boolean;
|
|
18
|
-
/** Whether or not this reader type is visible from the front end */
|
|
19
|
-
visible: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const DEVICE_TYPE_DETAILS: IDeviceTypeDetail[];
|
|
22
|
-
/** Fetch the device type details given an ID */
|
|
23
|
-
export declare const getDeviceTypeById: (id: DeviceType) => IDeviceTypeDetail;
|
|
24
|
-
declare type QuerySignature = {
|
|
25
|
-
[P in keyof IDeviceTypeDetail]?: IDeviceTypeDetail[P];
|
|
26
|
-
};
|
|
27
|
-
/** Query the list of device types by one or more fields */
|
|
28
|
-
export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
|
|
29
|
-
/**
|
|
30
|
-
* Helper to fetch device type IDs that match a particular
|
|
31
|
-
* validation format
|
|
32
|
-
*/
|
|
33
|
-
export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
|
|
34
|
-
export declare const getDeviceTypesWithRequiredDeviceId: () => DeviceType[];
|
|
35
|
-
/** Helper to fetch device types for a given connector endpoint */
|
|
36
|
-
export declare const getDeviceTypesForManufacturer: (manufacturer: DeviceManufacturer) => DeviceType[];
|
|
37
|
-
/**
|
|
38
|
-
* Specific helper to test whether a given device type
|
|
39
|
-
* is an IoTX3 device
|
|
40
|
-
*/
|
|
41
|
-
export declare const isIoTX3: (id: DeviceType) => boolean;
|
|
42
|
-
export declare const isDeviceIdRequired: (id: DeviceType) => boolean;
|
|
43
|
-
export {};
|
|
1
|
+
export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'MINEW' | 'FR22' | 'OTHER' | 'APPLICATION';
|
|
2
|
+
export declare const DEVICE_TYPES: DeviceType[];
|
|
3
|
+
export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
|
|
4
|
+
/** How the reader communicates with Spotto */
|
|
5
|
+
export declare type ConnectorProtocol = 'http' | 'mqtt';
|
|
6
|
+
/** How we validate the unique device identifier */
|
|
7
|
+
export declare type DeviceIdFormat = 'mac' | 'string';
|
|
8
|
+
export declare type DeviceManufacturer = 'spotto' | 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'minew' | 'digitalmatter' | 'kkm';
|
|
9
|
+
export interface IDeviceTypeDetail {
|
|
10
|
+
id: DeviceType;
|
|
11
|
+
name: string;
|
|
12
|
+
technology: DeviceTechnologyType[];
|
|
13
|
+
endpoint?: string;
|
|
14
|
+
manufacturer?: DeviceManufacturer;
|
|
15
|
+
protocols: ConnectorProtocol[];
|
|
16
|
+
deviceIdFormat?: DeviceIdFormat;
|
|
17
|
+
deviceIdRequired?: boolean;
|
|
18
|
+
/** Whether or not this reader type is visible from the front end */
|
|
19
|
+
visible: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const DEVICE_TYPE_DETAILS: IDeviceTypeDetail[];
|
|
22
|
+
/** Fetch the device type details given an ID */
|
|
23
|
+
export declare const getDeviceTypeById: (id: DeviceType) => IDeviceTypeDetail;
|
|
24
|
+
declare type QuerySignature = {
|
|
25
|
+
[P in keyof IDeviceTypeDetail]?: IDeviceTypeDetail[P];
|
|
26
|
+
};
|
|
27
|
+
/** Query the list of device types by one or more fields */
|
|
28
|
+
export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
|
|
29
|
+
/**
|
|
30
|
+
* Helper to fetch device type IDs that match a particular
|
|
31
|
+
* validation format
|
|
32
|
+
*/
|
|
33
|
+
export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
|
|
34
|
+
export declare const getDeviceTypesWithRequiredDeviceId: () => DeviceType[];
|
|
35
|
+
/** Helper to fetch device types for a given connector endpoint */
|
|
36
|
+
export declare const getDeviceTypesForManufacturer: (manufacturer: DeviceManufacturer) => DeviceType[];
|
|
37
|
+
/**
|
|
38
|
+
* Specific helper to test whether a given device type
|
|
39
|
+
* is an IoTX3 device
|
|
40
|
+
*/
|
|
41
|
+
export declare const isIoTX3: (id: DeviceType) => boolean;
|
|
42
|
+
export declare const isDeviceIdRequired: (id: DeviceType) => boolean;
|
|
43
|
+
export {};
|
|
@@ -1,199 +1,199 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDeviceIdRequired = exports.isIoTX3 = exports.getDeviceTypesForManufacturer = exports.getDeviceTypesWithRequiredDeviceId = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
|
|
4
|
-
exports.DEVICE_TYPES = [
|
|
5
|
-
'B1',
|
|
6
|
-
'A1',
|
|
7
|
-
'RF1A4',
|
|
8
|
-
'RF1F',
|
|
9
|
-
'HD1',
|
|
10
|
-
'ZEBRA',
|
|
11
|
-
'IMPINJ',
|
|
12
|
-
'TURCK',
|
|
13
|
-
'DIGITAL_MATTER',
|
|
14
|
-
'KKM',
|
|
15
|
-
'MINEW',
|
|
16
|
-
'FR22',
|
|
17
|
-
'OTHER',
|
|
18
|
-
'APPLICATION',
|
|
19
|
-
];
|
|
20
|
-
exports.DEVICE_TYPE_DETAILS = [
|
|
21
|
-
{
|
|
22
|
-
id: 'B1',
|
|
23
|
-
name: 'Spotto B1 Bluetooth Reader',
|
|
24
|
-
technology: ['BLE'],
|
|
25
|
-
endpoint: 'iotx3/{readerId}',
|
|
26
|
-
manufacturer: 'iotx3',
|
|
27
|
-
protocols: ['http'],
|
|
28
|
-
deviceIdFormat: 'mac',
|
|
29
|
-
deviceIdRequired: true,
|
|
30
|
-
visible: true,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: 'A1',
|
|
34
|
-
name: 'Spotto A1 Bluetooth Reader',
|
|
35
|
-
technology: ['BLE'],
|
|
36
|
-
endpoint: 'spotto',
|
|
37
|
-
manufacturer: 'spotto',
|
|
38
|
-
protocols: ['mqtt', 'http'],
|
|
39
|
-
deviceIdFormat: 'mac',
|
|
40
|
-
deviceIdRequired: true,
|
|
41
|
-
visible: true,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: 'RF1A4',
|
|
45
|
-
name: 'Spotto RF1A4 RFID Reader',
|
|
46
|
-
technology: ['RFID'],
|
|
47
|
-
endpoint: 'iotx3/{readerId}',
|
|
48
|
-
protocols: ['http'],
|
|
49
|
-
deviceIdFormat: 'mac',
|
|
50
|
-
deviceIdRequired: true,
|
|
51
|
-
visible: false,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: 'RF1F',
|
|
55
|
-
name: 'Spotto RF1F RFID Reader',
|
|
56
|
-
technology: ['RFID'],
|
|
57
|
-
endpoint: 'iotx3/{readerId}',
|
|
58
|
-
protocols: ['http'],
|
|
59
|
-
deviceIdFormat: 'mac',
|
|
60
|
-
deviceIdRequired: true,
|
|
61
|
-
visible: false,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: 'HD1',
|
|
65
|
-
name: 'Spotto HD1 HID Reader',
|
|
66
|
-
technology: ['HID'],
|
|
67
|
-
endpoint: 'iotx3/{readerId}',
|
|
68
|
-
protocols: ['http'],
|
|
69
|
-
deviceIdFormat: 'mac',
|
|
70
|
-
deviceIdRequired: true,
|
|
71
|
-
visible: false,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 'ZEBRA',
|
|
75
|
-
name: 'Zebra RFID Reader',
|
|
76
|
-
technology: ['RFID'],
|
|
77
|
-
endpoint: 'zebra/{readerId}',
|
|
78
|
-
manufacturer: 'zebra',
|
|
79
|
-
protocols: ['http'],
|
|
80
|
-
visible: false,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 'IMPINJ',
|
|
84
|
-
name: 'Impinj RFID Reader',
|
|
85
|
-
technology: ['RFID'],
|
|
86
|
-
endpoint: 'impinj/{readerId}',
|
|
87
|
-
manufacturer: 'impinj',
|
|
88
|
-
protocols: ['http'],
|
|
89
|
-
visible: false,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
id: 'TURCK',
|
|
93
|
-
name: 'Turck Handheld RFID Reader',
|
|
94
|
-
technology: ['RFID'],
|
|
95
|
-
endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
|
|
96
|
-
manufacturer: 'turck',
|
|
97
|
-
protocols: ['http'],
|
|
98
|
-
visible: false,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: 'DIGITAL_MATTER',
|
|
102
|
-
name: 'Digital Matter BLE Reader',
|
|
103
|
-
technology: ['BLE'],
|
|
104
|
-
endpoint: 'digitalmatter',
|
|
105
|
-
manufacturer: 'digitalmatter',
|
|
106
|
-
protocols: ['http'],
|
|
107
|
-
deviceIdFormat: 'string',
|
|
108
|
-
deviceIdRequired: true,
|
|
109
|
-
visible: true,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 'KKM',
|
|
113
|
-
name: 'KKM BLE Reader',
|
|
114
|
-
technology: ['BLE'],
|
|
115
|
-
protocols: ['mqtt', 'http'],
|
|
116
|
-
endpoint: 'kb',
|
|
117
|
-
manufacturer: 'kkm',
|
|
118
|
-
deviceIdFormat: 'mac',
|
|
119
|
-
deviceIdRequired: true,
|
|
120
|
-
visible: true,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: 'MINEW',
|
|
124
|
-
name: 'Minew BLE Reader',
|
|
125
|
-
technology: ['BLE'],
|
|
126
|
-
protocols: ['mqtt', 'http'],
|
|
127
|
-
endpoint: 'minew',
|
|
128
|
-
manufacturer: 'minew',
|
|
129
|
-
deviceIdFormat: 'mac',
|
|
130
|
-
deviceIdRequired: true,
|
|
131
|
-
visible: false,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: 'FR22',
|
|
135
|
-
name: 'Bradley FR22 RFID Reader',
|
|
136
|
-
technology: ['RFID'],
|
|
137
|
-
endpoint: 'FR22/{organisationId}/{deviceId}',
|
|
138
|
-
protocols: ['mqtt'],
|
|
139
|
-
deviceIdFormat: 'string',
|
|
140
|
-
deviceIdRequired: false,
|
|
141
|
-
visible: true,
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
id: 'OTHER',
|
|
145
|
-
name: 'Custom Reader (BYO Device)',
|
|
146
|
-
technology: ['RFID', 'BLE', 'HID'],
|
|
147
|
-
endpoint: 'other/{readerId}',
|
|
148
|
-
protocols: ['http'],
|
|
149
|
-
deviceIdFormat: 'string',
|
|
150
|
-
deviceIdRequired: false,
|
|
151
|
-
visible: true,
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
id: 'APPLICATION',
|
|
155
|
-
name: 'Spotto Detector Application',
|
|
156
|
-
technology: ['BLE'],
|
|
157
|
-
endpoint: 'detector/{readerId}',
|
|
158
|
-
protocols: ['http'],
|
|
159
|
-
deviceIdFormat: 'string',
|
|
160
|
-
deviceIdRequired: true,
|
|
161
|
-
visible: false,
|
|
162
|
-
},
|
|
163
|
-
];
|
|
164
|
-
/** Fetch the device type details given an ID */
|
|
165
|
-
const getDeviceTypeById = (id) => exports.DEVICE_TYPE_DETAILS.find((detail) => detail.id === id);
|
|
166
|
-
exports.getDeviceTypeById = getDeviceTypeById;
|
|
167
|
-
/** Query the list of device types by one or more fields */
|
|
168
|
-
const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter((type) => Object.keys(query).every((key) => {
|
|
169
|
-
const testField = query[key];
|
|
170
|
-
const field = type[key];
|
|
171
|
-
// If we're comparing arrays, ensure all query items match
|
|
172
|
-
if ((testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array) {
|
|
173
|
-
const _field = field;
|
|
174
|
-
const _testField = testField;
|
|
175
|
-
return _field.every((item) => _testField === null || _testField === void 0 ? void 0 : _testField.includes(item));
|
|
176
|
-
}
|
|
177
|
-
return testField === field;
|
|
178
|
-
}));
|
|
179
|
-
exports.getDeviceTypes = getDeviceTypes;
|
|
180
|
-
/**
|
|
181
|
-
* Helper to fetch device type IDs that match a particular
|
|
182
|
-
* validation format
|
|
183
|
-
*/
|
|
184
|
-
const getDeviceTypesForFormat = (deviceIdFormat) => (0, exports.getDeviceTypes)({ deviceIdFormat }).map(({ id }) => id);
|
|
185
|
-
exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
|
|
186
|
-
const getDeviceTypesWithRequiredDeviceId = () => (0, exports.getDeviceTypes)({ deviceIdRequired: true }).map(({ id }) => id);
|
|
187
|
-
exports.getDeviceTypesWithRequiredDeviceId = getDeviceTypesWithRequiredDeviceId;
|
|
188
|
-
/** Helper to fetch device types for a given connector endpoint */
|
|
189
|
-
const getDeviceTypesForManufacturer = (manufacturer) => (0, exports.getDeviceTypes)({ manufacturer }).map(({ id }) => id);
|
|
190
|
-
exports.getDeviceTypesForManufacturer = getDeviceTypesForManufacturer;
|
|
191
|
-
/**
|
|
192
|
-
* Specific helper to test whether a given device type
|
|
193
|
-
* is an IoTX3 device
|
|
194
|
-
*/
|
|
195
|
-
const isIoTX3 = (id) => (0, exports.getDeviceTypesForManufacturer)('iotx3').includes(id);
|
|
196
|
-
exports.isIoTX3 = isIoTX3;
|
|
197
|
-
const isDeviceIdRequired = (id) => (0, exports.getDeviceTypesWithRequiredDeviceId)().includes(id);
|
|
198
|
-
exports.isDeviceIdRequired = isDeviceIdRequired;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDeviceIdRequired = exports.isIoTX3 = exports.getDeviceTypesForManufacturer = exports.getDeviceTypesWithRequiredDeviceId = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
|
|
4
|
+
exports.DEVICE_TYPES = [
|
|
5
|
+
'B1',
|
|
6
|
+
'A1',
|
|
7
|
+
'RF1A4',
|
|
8
|
+
'RF1F',
|
|
9
|
+
'HD1',
|
|
10
|
+
'ZEBRA',
|
|
11
|
+
'IMPINJ',
|
|
12
|
+
'TURCK',
|
|
13
|
+
'DIGITAL_MATTER',
|
|
14
|
+
'KKM',
|
|
15
|
+
'MINEW',
|
|
16
|
+
'FR22',
|
|
17
|
+
'OTHER',
|
|
18
|
+
'APPLICATION',
|
|
19
|
+
];
|
|
20
|
+
exports.DEVICE_TYPE_DETAILS = [
|
|
21
|
+
{
|
|
22
|
+
id: 'B1',
|
|
23
|
+
name: 'Spotto B1 Bluetooth Reader',
|
|
24
|
+
technology: ['BLE'],
|
|
25
|
+
endpoint: 'iotx3/{readerId}',
|
|
26
|
+
manufacturer: 'iotx3',
|
|
27
|
+
protocols: ['http'],
|
|
28
|
+
deviceIdFormat: 'mac',
|
|
29
|
+
deviceIdRequired: true,
|
|
30
|
+
visible: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'A1',
|
|
34
|
+
name: 'Spotto A1 Bluetooth Reader',
|
|
35
|
+
technology: ['BLE'],
|
|
36
|
+
endpoint: 'spotto',
|
|
37
|
+
manufacturer: 'spotto',
|
|
38
|
+
protocols: ['mqtt', 'http'],
|
|
39
|
+
deviceIdFormat: 'mac',
|
|
40
|
+
deviceIdRequired: true,
|
|
41
|
+
visible: true,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'RF1A4',
|
|
45
|
+
name: 'Spotto RF1A4 RFID Reader',
|
|
46
|
+
technology: ['RFID'],
|
|
47
|
+
endpoint: 'iotx3/{readerId}',
|
|
48
|
+
protocols: ['http'],
|
|
49
|
+
deviceIdFormat: 'mac',
|
|
50
|
+
deviceIdRequired: true,
|
|
51
|
+
visible: false,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'RF1F',
|
|
55
|
+
name: 'Spotto RF1F RFID Reader',
|
|
56
|
+
technology: ['RFID'],
|
|
57
|
+
endpoint: 'iotx3/{readerId}',
|
|
58
|
+
protocols: ['http'],
|
|
59
|
+
deviceIdFormat: 'mac',
|
|
60
|
+
deviceIdRequired: true,
|
|
61
|
+
visible: false,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'HD1',
|
|
65
|
+
name: 'Spotto HD1 HID Reader',
|
|
66
|
+
technology: ['HID'],
|
|
67
|
+
endpoint: 'iotx3/{readerId}',
|
|
68
|
+
protocols: ['http'],
|
|
69
|
+
deviceIdFormat: 'mac',
|
|
70
|
+
deviceIdRequired: true,
|
|
71
|
+
visible: false,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'ZEBRA',
|
|
75
|
+
name: 'Zebra RFID Reader',
|
|
76
|
+
technology: ['RFID'],
|
|
77
|
+
endpoint: 'zebra/{readerId}',
|
|
78
|
+
manufacturer: 'zebra',
|
|
79
|
+
protocols: ['http'],
|
|
80
|
+
visible: false,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'IMPINJ',
|
|
84
|
+
name: 'Impinj RFID Reader',
|
|
85
|
+
technology: ['RFID'],
|
|
86
|
+
endpoint: 'impinj/{readerId}',
|
|
87
|
+
manufacturer: 'impinj',
|
|
88
|
+
protocols: ['http'],
|
|
89
|
+
visible: false,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'TURCK',
|
|
93
|
+
name: 'Turck Handheld RFID Reader',
|
|
94
|
+
technology: ['RFID'],
|
|
95
|
+
endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
|
|
96
|
+
manufacturer: 'turck',
|
|
97
|
+
protocols: ['http'],
|
|
98
|
+
visible: false,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'DIGITAL_MATTER',
|
|
102
|
+
name: 'Digital Matter BLE Reader',
|
|
103
|
+
technology: ['BLE'],
|
|
104
|
+
endpoint: 'digitalmatter',
|
|
105
|
+
manufacturer: 'digitalmatter',
|
|
106
|
+
protocols: ['http'],
|
|
107
|
+
deviceIdFormat: 'string',
|
|
108
|
+
deviceIdRequired: true,
|
|
109
|
+
visible: true,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'KKM',
|
|
113
|
+
name: 'KKM BLE Reader',
|
|
114
|
+
technology: ['BLE'],
|
|
115
|
+
protocols: ['mqtt', 'http'],
|
|
116
|
+
endpoint: 'kb',
|
|
117
|
+
manufacturer: 'kkm',
|
|
118
|
+
deviceIdFormat: 'mac',
|
|
119
|
+
deviceIdRequired: true,
|
|
120
|
+
visible: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'MINEW',
|
|
124
|
+
name: 'Minew BLE Reader',
|
|
125
|
+
technology: ['BLE'],
|
|
126
|
+
protocols: ['mqtt', 'http'],
|
|
127
|
+
endpoint: 'minew',
|
|
128
|
+
manufacturer: 'minew',
|
|
129
|
+
deviceIdFormat: 'mac',
|
|
130
|
+
deviceIdRequired: true,
|
|
131
|
+
visible: false,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: 'FR22',
|
|
135
|
+
name: 'Bradley FR22 RFID Reader',
|
|
136
|
+
technology: ['RFID'],
|
|
137
|
+
endpoint: 'FR22/{organisationId}/{deviceId}',
|
|
138
|
+
protocols: ['mqtt'],
|
|
139
|
+
deviceIdFormat: 'string',
|
|
140
|
+
deviceIdRequired: false,
|
|
141
|
+
visible: true,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'OTHER',
|
|
145
|
+
name: 'Custom Reader (BYO Device)',
|
|
146
|
+
technology: ['RFID', 'BLE', 'HID'],
|
|
147
|
+
endpoint: 'other/{readerId}',
|
|
148
|
+
protocols: ['http'],
|
|
149
|
+
deviceIdFormat: 'string',
|
|
150
|
+
deviceIdRequired: false,
|
|
151
|
+
visible: true,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'APPLICATION',
|
|
155
|
+
name: 'Spotto Detector Application',
|
|
156
|
+
technology: ['BLE'],
|
|
157
|
+
endpoint: 'detector/{readerId}',
|
|
158
|
+
protocols: ['http'],
|
|
159
|
+
deviceIdFormat: 'string',
|
|
160
|
+
deviceIdRequired: true,
|
|
161
|
+
visible: false,
|
|
162
|
+
},
|
|
163
|
+
];
|
|
164
|
+
/** Fetch the device type details given an ID */
|
|
165
|
+
const getDeviceTypeById = (id) => exports.DEVICE_TYPE_DETAILS.find((detail) => detail.id === id);
|
|
166
|
+
exports.getDeviceTypeById = getDeviceTypeById;
|
|
167
|
+
/** Query the list of device types by one or more fields */
|
|
168
|
+
const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter((type) => Object.keys(query).every((key) => {
|
|
169
|
+
const testField = query[key];
|
|
170
|
+
const field = type[key];
|
|
171
|
+
// If we're comparing arrays, ensure all query items match
|
|
172
|
+
if ((testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array) {
|
|
173
|
+
const _field = field;
|
|
174
|
+
const _testField = testField;
|
|
175
|
+
return _field.every((item) => _testField === null || _testField === void 0 ? void 0 : _testField.includes(item));
|
|
176
|
+
}
|
|
177
|
+
return testField === field;
|
|
178
|
+
}));
|
|
179
|
+
exports.getDeviceTypes = getDeviceTypes;
|
|
180
|
+
/**
|
|
181
|
+
* Helper to fetch device type IDs that match a particular
|
|
182
|
+
* validation format
|
|
183
|
+
*/
|
|
184
|
+
const getDeviceTypesForFormat = (deviceIdFormat) => (0, exports.getDeviceTypes)({ deviceIdFormat }).map(({ id }) => id);
|
|
185
|
+
exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
|
|
186
|
+
const getDeviceTypesWithRequiredDeviceId = () => (0, exports.getDeviceTypes)({ deviceIdRequired: true }).map(({ id }) => id);
|
|
187
|
+
exports.getDeviceTypesWithRequiredDeviceId = getDeviceTypesWithRequiredDeviceId;
|
|
188
|
+
/** Helper to fetch device types for a given connector endpoint */
|
|
189
|
+
const getDeviceTypesForManufacturer = (manufacturer) => (0, exports.getDeviceTypes)({ manufacturer }).map(({ id }) => id);
|
|
190
|
+
exports.getDeviceTypesForManufacturer = getDeviceTypesForManufacturer;
|
|
191
|
+
/**
|
|
192
|
+
* Specific helper to test whether a given device type
|
|
193
|
+
* is an IoTX3 device
|
|
194
|
+
*/
|
|
195
|
+
const isIoTX3 = (id) => (0, exports.getDeviceTypesForManufacturer)('iotx3').includes(id);
|
|
196
|
+
exports.isIoTX3 = isIoTX3;
|
|
197
|
+
const isDeviceIdRequired = (id) => (0, exports.getDeviceTypesWithRequiredDeviceId)().includes(id);
|
|
198
|
+
exports.isDeviceIdRequired = isDeviceIdRequired;
|
|
199
199
|
//# sourceMappingURL=deviceTypes.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './deviceTypes';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './deviceTypes';
|
|
2
|
+
export * from './types';
|
|
@@ -1,19 +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("./deviceTypes"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
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("./deviceTypes"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare type ReaderType = 'FIXED' | 'ROVING' | 'MOVING';
|
|
2
|
-
export declare const READER_TYPES: ReaderType[];
|
|
3
|
-
export interface IReaderTypeDetail {
|
|
4
|
-
id: ReaderType;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
/** Whether or not this reader type is visible from the front end */
|
|
8
|
-
visible: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
|
|
1
|
+
export declare type ReaderType = 'FIXED' | 'ROVING' | 'MOVING';
|
|
2
|
+
export declare const READER_TYPES: ReaderType[];
|
|
3
|
+
export interface IReaderTypeDetail {
|
|
4
|
+
id: ReaderType;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
/** Whether or not this reader type is visible from the front end */
|
|
8
|
+
visible: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
|
|
4
|
-
exports.READER_TYPES = ['FIXED', 'ROVING', 'MOVING'];
|
|
5
|
-
exports.READER_TYPE_DETAILS = [
|
|
6
|
-
{
|
|
7
|
-
id: 'FIXED',
|
|
8
|
-
name: 'Fixed',
|
|
9
|
-
description: 'Plugged in with a location assigned. These readers are fixed in place and do not move unless the location is manually reassigned.',
|
|
10
|
-
visible: true,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
id: 'ROVING',
|
|
14
|
-
name: 'Handheld',
|
|
15
|
-
description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a location',
|
|
16
|
-
visible: true,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 'MOVING',
|
|
20
|
-
name: 'Vehicle',
|
|
21
|
-
description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
|
|
22
|
-
visible: true,
|
|
23
|
-
},
|
|
24
|
-
];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
|
|
4
|
+
exports.READER_TYPES = ['FIXED', 'ROVING', 'MOVING'];
|
|
5
|
+
exports.READER_TYPE_DETAILS = [
|
|
6
|
+
{
|
|
7
|
+
id: 'FIXED',
|
|
8
|
+
name: 'Fixed',
|
|
9
|
+
description: 'Plugged in with a location assigned. These readers are fixed in place and do not move unless the location is manually reassigned.',
|
|
10
|
+
visible: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'ROVING',
|
|
14
|
+
name: 'Handheld',
|
|
15
|
+
description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a location',
|
|
16
|
+
visible: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'MOVING',
|
|
20
|
+
name: 'Vehicle',
|
|
21
|
+
description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
|
|
22
|
+
visible: true,
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
25
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './query';
|
|
2
|
-
export * from './response';
|
|
1
|
+
export * from './query';
|
|
2
|
+
export * from './response';
|
|
@@ -1,19 +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);
|
|
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
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ReaderFilters as CountReadersQuery } from '../get/query';
|
|
1
|
+
export { ReaderFilters as CountReadersQuery } from '../get/query';
|