@spotto/contract 1.0.70-alpha.42 → 1.0.70-alpha.44
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/actions/[id]/index.d.ts +1 -1
- package/dist/actions/[id]/index.js +17 -17
- package/dist/actions/[id]/patch/index.d.ts +2 -2
- package/dist/actions/[id]/patch/index.js +18 -18
- package/dist/actions/[id]/patch/request.d.ts +12 -12
- package/dist/actions/[id]/patch/request.js +2 -2
- package/dist/actions/[id]/patch/response.d.ts +1 -1
- package/dist/actions/[id]/patch/response.js +2 -2
- package/dist/actions/get/index.d.ts +2 -2
- package/dist/actions/get/index.js +18 -18
- package/dist/actions/get/query.d.ts +14 -14
- package/dist/actions/get/query.js +2 -2
- package/dist/actions/get/response.d.ts +25 -25
- package/dist/actions/get/response.js +2 -2
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +20 -20
- package/dist/actions/post/index.d.ts +2 -2
- package/dist/actions/post/index.js +18 -18
- package/dist/actions/post/request.d.ts +15 -15
- package/dist/actions/post/request.js +2 -2
- package/dist/actions/post/response.d.ts +1 -1
- package/dist/actions/post/response.js +2 -2
- package/dist/actions/shared.d.ts +63 -63
- package/dist/actions/shared.js +16 -16
- package/dist/ai/chat/index.d.ts +2 -2
- package/dist/ai/chat/index.js +18 -18
- package/dist/ai/chat/request.d.ts +42 -42
- package/dist/ai/chat/request.js +2 -2
- package/dist/ai/chat/response.d.ts +74 -74
- package/dist/ai/chat/response.js +10 -10
- package/dist/ai/expression/index.d.ts +2 -2
- package/dist/ai/expression/index.js +18 -18
- package/dist/ai/expression/request.d.ts +29 -29
- package/dist/ai/expression/request.js +2 -2
- package/dist/ai/expression/response.d.ts +23 -23
- package/dist/ai/expression/response.js +2 -2
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +20 -20
- package/dist/ai/semantic-query/index.d.ts +2 -2
- package/dist/ai/semantic-query/index.js +18 -18
- package/dist/ai/semantic-query/request.d.ts +43 -43
- package/dist/ai/semantic-query/request.js +2 -2
- package/dist/ai/semantic-query/response.d.ts +40 -40
- package/dist/ai/semantic-query/response.js +2 -2
- package/dist/ai/shared.d.ts +22 -22
- package/dist/ai/shared.js +10 -10
- package/dist/assets/[id]/get.d.ts +98 -98
- 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 +16 -16
- 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 +16 -16
- 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 +17 -17
- 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 +138 -138
- package/dist/assets/get/query.js +5 -5
- package/dist/assets/get/response.d.ts +12 -12
- package/dist/assets/get/response.js +2 -2
- package/dist/assets/index.d.ts +14 -14
- package/dist/assets/index.js +30 -30
- package/dist/assets/location/index.d.ts +2 -2
- package/dist/assets/location/index.js +18 -18
- package/dist/assets/location/request.d.ts +23 -23
- 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/partitions/index.d.ts +2 -2
- package/dist/assets/partitions/index.js +18 -18
- package/dist/assets/partitions/query.d.ts +16 -16
- package/dist/assets/partitions/query.js +2 -2
- package/dist/assets/partitions/response.d.ts +10 -10
- package/dist/assets/partitions/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 +15 -15
- 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/readiness/index.d.ts +2 -2
- package/dist/assets/readiness/index.js +18 -18
- package/dist/assets/readiness/query.d.ts +7 -7
- package/dist/assets/readiness/query.js +2 -2
- package/dist/assets/readiness/response.d.ts +24 -24
- package/dist/assets/readiness/response.js +2 -2
- package/dist/assets/rollup/index.d.ts +2 -2
- package/dist/assets/rollup/index.js +18 -18
- package/dist/assets/rollup/query.d.ts +12 -12
- package/dist/assets/rollup/query.js +4 -4
- package/dist/assets/rollup/response.d.ts +58 -58
- package/dist/assets/rollup/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 +2 -2
- package/dist/assets/summary/index.js +18 -18
- package/dist/assets/summary/response.d.ts +7 -7
- package/dist/assets/summary/response.js +2 -2
- 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 +61 -61
- package/dist/events/constants.js +78 -78
- 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 +40 -40
- package/dist/events/get/query.js +2 -2
- package/dist/events/get/response.d.ts +250 -250
- 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 +28 -28
- 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 +32 -32
- 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 +72 -72
- package/dist/fields/constants.js +55 -55
- 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 +24 -24
- 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/forms/[id]/index.d.ts +1 -1
- package/dist/forms/[id]/index.js +17 -17
- package/dist/forms/[id]/patch/index.d.ts +2 -2
- package/dist/forms/[id]/patch/index.js +18 -18
- package/dist/forms/[id]/patch/request.d.ts +14 -14
- package/dist/forms/[id]/patch/request.js +2 -2
- package/dist/forms/[id]/patch/response.d.ts +1 -1
- package/dist/forms/[id]/patch/response.js +2 -2
- package/dist/forms/constants.d.ts +19 -19
- package/dist/forms/constants.js +32 -32
- package/dist/forms/get/index.d.ts +2 -2
- package/dist/forms/get/index.js +18 -18
- package/dist/forms/get/query.d.ts +18 -18
- package/dist/forms/get/query.js +2 -2
- package/dist/forms/get/response.d.ts +23 -23
- package/dist/forms/get/response.js +2 -2
- package/dist/forms/index.d.ts +6 -6
- package/dist/forms/index.js +22 -22
- package/dist/forms/post/index.d.ts +2 -2
- package/dist/forms/post/index.js +18 -18
- package/dist/forms/post/request.d.ts +9 -9
- package/dist/forms/post/request.js +2 -2
- package/dist/forms/post/response.d.ts +1 -1
- package/dist/forms/post/response.js +2 -2
- package/dist/forms/shared.d.ts +136 -136
- package/dist/forms/shared.js +2 -2
- package/dist/forms/versions/index.d.ts +2 -2
- package/dist/forms/versions/index.js +18 -18
- package/dist/forms/versions/path.d.ts +8 -8
- package/dist/forms/versions/path.js +2 -2
- package/dist/forms/versions/response.d.ts +1 -1
- package/dist/forms/versions/response.js +2 -2
- package/dist/index.d.ts +31 -29
- package/dist/index.js +47 -45
- package/dist/index.js.map +1 -1
- package/dist/integrations/constants.d.ts +43 -43
- package/dist/integrations/constants.js +7 -7
- package/dist/integrations/index.d.ts +3 -3
- package/dist/integrations/index.js +19 -19
- 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/integrations/oneblink/index.d.ts +2 -2
- package/dist/integrations/oneblink/index.js +18 -18
- package/dist/integrations/oneblink/patch/index.d.ts +1 -1
- package/dist/integrations/oneblink/patch/index.js +17 -17
- package/dist/integrations/oneblink/patch/request.d.ts +8 -8
- package/dist/integrations/oneblink/patch/request.js +2 -2
- package/dist/integrations/oneblink/token.d.ts +6 -6
- package/dist/integrations/oneblink/token.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 +13 -13
- package/dist/locations/constants.js +23 -23
- 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 +54 -54
- 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]/delete.d.ts +9 -0
- package/dist/manifests/[id]/delete.js +3 -0
- package/dist/manifests/[id]/delete.js.map +1 -0
- package/dist/manifests/[id]/get.d.ts +57 -57
- package/dist/manifests/[id]/get.js +38 -38
- package/dist/manifests/[id]/index.d.ts +3 -2
- package/dist/manifests/[id]/index.js +19 -18
- package/dist/manifests/[id]/index.js.map +1 -1
- 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 +15 -15
- 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/formItems.d.ts +62 -62
- package/dist/manifests/formItems.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 +11 -11
- 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 +6 -6
- package/dist/manifests/index.js +22 -22
- package/dist/manifests/post/index.d.ts +2 -2
- package/dist/manifests/post/index.js +18 -18
- package/dist/manifests/post/request.d.ts +22 -22
- 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/manifests/rules.d.ts +131 -131
- package/dist/manifests/rules.js +2 -2
- package/dist/manifests/suggestions/index.d.ts +2 -2
- package/dist/manifests/suggestions/index.js +18 -18
- package/dist/manifests/suggestions/query.d.ts +5 -5
- package/dist/manifests/suggestions/query.js +2 -2
- package/dist/manifests/suggestions/response.d.ts +15 -15
- package/dist/manifests/suggestions/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 +36 -36
- 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 +13 -13
- 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 +64 -55
- package/dist/organisations/constants.js +12 -12
- package/dist/organisations/constants.js.map +1 -1
- 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 +5 -5
- package/dist/organisations/index.js +21 -21
- 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/organisations/sso/constants.d.ts +63 -63
- package/dist/organisations/sso/constants.js +65 -65
- package/dist/organisations/sso/index.d.ts +2 -2
- package/dist/organisations/sso/index.js +18 -18
- package/dist/organisations/sso/types.d.ts +162 -162
- package/dist/organisations/sso/types.js +12 -12
- 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 +36 -36
- 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/reports.d.ts +38 -38
- package/dist/reports.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/semantic-queries/[id]/index.d.ts +1 -1
- package/dist/semantic-queries/[id]/index.js +17 -17
- package/dist/semantic-queries/[id]/patch/index.d.ts +2 -2
- package/dist/semantic-queries/[id]/patch/index.js +18 -18
- package/dist/semantic-queries/[id]/patch/request.d.ts +20 -20
- package/dist/semantic-queries/[id]/patch/request.js +2 -2
- package/dist/semantic-queries/[id]/patch/response.d.ts +1 -1
- package/dist/semantic-queries/[id]/patch/response.js +2 -2
- package/dist/semantic-queries/get/index.d.ts +2 -2
- package/dist/semantic-queries/get/index.js +18 -18
- package/dist/semantic-queries/get/query.d.ts +18 -18
- package/dist/semantic-queries/get/query.js +2 -2
- package/dist/semantic-queries/get/response.d.ts +40 -40
- package/dist/semantic-queries/get/response.js +2 -2
- package/dist/semantic-queries/index.d.ts +4 -4
- package/dist/semantic-queries/index.js +20 -20
- package/dist/semantic-queries/post/index.d.ts +2 -2
- package/dist/semantic-queries/post/index.js +18 -18
- package/dist/semantic-queries/post/request.d.ts +56 -56
- package/dist/semantic-queries/post/request.js +2 -2
- package/dist/semantic-queries/post/response.d.ts +1 -1
- package/dist/semantic-queries/post/response.js +2 -2
- package/dist/semantic-queries/shared.d.ts +876 -876
- package/dist/semantic-queries/shared.js +318 -318
- package/dist/shared/attachments.d.ts +29 -29
- package/dist/shared/attachments.js +10 -10
- 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 +22 -22
- 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 +13 -13
- package/dist/shared/index.js +29 -29
- 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/readiness.d.ts +123 -123
- package/dist/shared/readiness.js +10 -10
- package/dist/shared/relative-date.d.ts +17 -17
- package/dist/shared/relative-date.js +11 -11
- 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 +305 -303
- package/dist/snapshots/[id]/get.js +34 -34
- 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 +64 -64
- package/dist/snapshots/get/query.js +26 -26
- 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 +102 -95
- package/dist/snapshots/post/request.js +239 -239
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/snapshots/post/response.d.ts +25 -16
- package/dist/snapshots/post/response.js +2 -2
- package/dist/sso/discover/index.d.ts +2 -2
- package/dist/sso/discover/index.js +18 -18
- package/dist/sso/discover/request.d.ts +9 -9
- package/dist/sso/discover/request.js +2 -2
- package/dist/sso/discover/response.d.ts +17 -17
- package/dist/sso/discover/response.js +2 -2
- package/dist/sso/get/index.d.ts +1 -1
- package/dist/sso/get/index.js +17 -17
- package/dist/sso/get/response.d.ts +22 -22
- package/dist/sso/get/response.js +2 -2
- package/dist/sso/idp-setup.d.ts +32 -32
- package/dist/sso/idp-setup.js +2 -2
- package/dist/sso/index.d.ts +7 -7
- package/dist/sso/index.js +23 -23
- package/dist/sso/offboard/index.d.ts +1 -1
- package/dist/sso/offboard/index.js +17 -17
- package/dist/sso/offboard/response.d.ts +9 -9
- package/dist/sso/offboard/response.js +2 -2
- package/dist/sso/onboard/index.d.ts +2 -2
- package/dist/sso/onboard/index.js +18 -18
- package/dist/sso/onboard/request.d.ts +70 -70
- package/dist/sso/onboard/request.js +2 -2
- package/dist/sso/onboard/response.d.ts +25 -25
- package/dist/sso/onboard/response.js +2 -2
- package/dist/sso/revert/index.d.ts +1 -1
- package/dist/sso/revert/index.js +17 -17
- package/dist/sso/revert/response.d.ts +33 -33
- package/dist/sso/revert/response.js +2 -2
- package/dist/sso/sso-mappings/index.d.ts +2 -2
- package/dist/sso/sso-mappings/index.js +18 -18
- package/dist/sso/sso-mappings/request.d.ts +19 -19
- package/dist/sso/sso-mappings/request.js +2 -2
- package/dist/sso/sso-mappings/response.d.ts +9 -9
- package/dist/sso/sso-mappings/response.js +2 -2
- package/dist/submissions/[id]/index.d.ts +1 -1
- package/dist/submissions/[id]/index.js +17 -17
- package/dist/submissions/[id]/void/post.d.ts +6 -6
- package/dist/submissions/[id]/void/post.js +2 -2
- package/dist/submissions/constants.d.ts +14 -14
- package/dist/submissions/constants.js +20 -20
- package/dist/submissions/get/index.d.ts +2 -2
- package/dist/submissions/get/index.js +18 -18
- package/dist/submissions/get/query.d.ts +14 -14
- package/dist/submissions/get/query.js +2 -2
- package/dist/submissions/get/response.d.ts +6 -6
- package/dist/submissions/get/response.js +2 -2
- package/dist/submissions/index.d.ts +6 -6
- package/dist/submissions/index.js +22 -22
- package/dist/submissions/post/index.d.ts +2 -2
- package/dist/submissions/post/index.js +18 -18
- package/dist/submissions/post/request.d.ts +24 -17
- package/dist/submissions/post/request.js +2 -2
- package/dist/submissions/post/response.d.ts +30 -22
- package/dist/submissions/post/response.js +2 -2
- package/dist/submissions/shared.d.ts +135 -133
- package/dist/submissions/shared.js +2 -2
- package/dist/submissions/uploads/[fileId]/get.d.ts +11 -11
- package/dist/submissions/uploads/[fileId]/get.js +2 -2
- package/dist/submissions/uploads/[fileId]/index.d.ts +1 -1
- package/dist/submissions/uploads/[fileId]/index.js +17 -17
- package/dist/submissions/uploads/index.d.ts +2 -2
- package/dist/submissions/uploads/index.js +18 -18
- package/dist/submissions/uploads/post/index.d.ts +2 -2
- package/dist/submissions/uploads/post/index.js +18 -18
- package/dist/submissions/uploads/post/request.d.ts +9 -9
- package/dist/submissions/uploads/post/request.js +2 -2
- package/dist/submissions/uploads/post/response.d.ts +18 -18
- package/dist/submissions/uploads/post/response.js +2 -2
- package/dist/system/index.d.ts +5 -5
- 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/tasks/[id]/index.d.ts +39 -0
- package/dist/tasks/[id]/index.js +3 -0
- package/dist/tasks/[id]/index.js.map +1 -0
- package/dist/tasks/access.d.ts +24 -0
- package/dist/tasks/access.js +3 -0
- package/dist/tasks/access.js.map +1 -0
- package/dist/tasks/get.d.ts +39 -0
- package/dist/tasks/get.js +5 -0
- package/dist/tasks/get.js.map +1 -0
- package/dist/tasks/index.d.ts +6 -0
- package/dist/tasks/index.js +23 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/post.d.ts +47 -0
- package/dist/tasks/post.js +3 -0
- package/dist/tasks/post.js.map +1 -0
- package/dist/tasks/settlement.d.ts +59 -0
- package/dist/tasks/settlement.js +18 -0
- package/dist/tasks/settlement.js.map +1 -0
- package/dist/tasks/shared.d.ts +219 -0
- package/dist/tasks/shared.js +36 -0
- package/dist/tasks/shared.js.map +1 -0
- package/dist/tasktemplates/index.d.ts +82 -0
- package/dist/tasktemplates/index.js +3 -0
- package/dist/tasktemplates/index.js.map +1 -0
- package/dist/telemetry.d.ts +10 -10
- package/dist/telemetry.js +2 -2
- package/dist/types/[id]/get.d.ts +69 -69
- 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 +33 -33
- 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/constants.d.ts +9 -9
- package/dist/types/constants.js +12 -12
- 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 +6 -6
- package/dist/types/index.js +22 -22
- package/dist/types/post/index.d.ts +2 -2
- package/dist/types/post/index.js +18 -18
- package/dist/types/post/request.d.ts +110 -110
- 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/usergroups/[id]/index.d.ts +1 -1
- package/dist/usergroups/[id]/index.js +17 -17
- package/dist/usergroups/[id]/patch/index.d.ts +2 -2
- package/dist/usergroups/[id]/patch/index.js +18 -18
- package/dist/usergroups/[id]/patch/request.d.ts +23 -23
- package/dist/usergroups/[id]/patch/request.js +2 -2
- package/dist/usergroups/[id]/patch/response.d.ts +1 -1
- package/dist/usergroups/[id]/patch/response.js +2 -2
- package/dist/usergroups/access.d.ts +100 -100
- package/dist/usergroups/access.js +23 -23
- package/dist/usergroups/get/index.d.ts +2 -2
- package/dist/usergroups/get/index.js +18 -18
- package/dist/usergroups/get/query.d.ts +12 -12
- package/dist/usergroups/get/query.js +2 -2
- package/dist/usergroups/get/response.d.ts +44 -44
- package/dist/usergroups/get/response.js +2 -2
- package/dist/usergroups/index.d.ts +5 -5
- package/dist/usergroups/index.js +21 -21
- package/dist/usergroups/post/index.d.ts +2 -2
- package/dist/usergroups/post/index.js +18 -18
- package/dist/usergroups/post/request.d.ts +17 -17
- package/dist/usergroups/post/request.js +2 -2
- package/dist/usergroups/post/response.d.ts +1 -1
- package/dist/usergroups/post/response.js +2 -2
- package/dist/usergroups/shared.d.ts +8 -8
- package/dist/usergroups/shared.js +10 -10
- package/dist/users/[id]/disable.d.ts +7 -7
- package/dist/users/[id]/disable.js +2 -2
- package/dist/users/[id]/enable.d.ts +6 -6
- package/dist/users/[id]/enable.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 +39 -39
- package/dist/users/[id]/get/response.js +2 -2
- package/dist/users/[id]/index.d.ts +5 -5
- package/dist/users/[id]/index.js +21 -21
- 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 +10 -10
- 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/console.d.ts +15 -15
- package/dist/users/console.js +4 -4
- package/dist/users/constants.d.ts +2 -2
- package/dist/users/constants.js +4 -4
- package/dist/users/current.d.ts +115 -108
- 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 +15 -15
- 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/home-layout/index.d.ts +3 -3
- package/dist/users/home-layout/index.js +19 -19
- package/dist/users/home-layout/request.d.ts +5 -5
- package/dist/users/home-layout/request.js +2 -2
- package/dist/users/home-layout/response.d.ts +5 -5
- package/dist/users/home-layout/response.js +2 -2
- package/dist/users/home-layout/shared.d.ts +288 -288
- package/dist/users/home-layout/shared.js +29 -29
- package/dist/users/index.d.ts +9 -9
- package/dist/users/index.js +25 -25
- package/dist/users/invites.d.ts +19 -19
- package/dist/users/invites.js +2 -2
- package/dist/users/password-reset.d.ts +33 -33
- package/dist/users/password-reset.js +2 -2
- package/dist/users/post/index.d.ts +2 -2
- package/dist/users/post/index.js +18 -18
- package/dist/users/post/request.d.ts +25 -25
- 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/views/[id]/index.d.ts +1 -1
- package/dist/views/[id]/index.js +17 -17
- package/dist/views/[id]/patch/index.d.ts +2 -2
- package/dist/views/[id]/patch/index.js +18 -18
- package/dist/views/[id]/patch/request.d.ts +9 -9
- package/dist/views/[id]/patch/request.js +2 -2
- package/dist/views/[id]/patch/response.d.ts +1 -1
- package/dist/views/[id]/patch/response.js +2 -2
- package/dist/views/get/index.d.ts +2 -2
- package/dist/views/get/index.js +18 -18
- package/dist/views/get/query.d.ts +12 -12
- package/dist/views/get/query.js +2 -2
- package/dist/views/get/response.d.ts +20 -20
- package/dist/views/get/response.js +2 -2
- package/dist/views/index.d.ts +4 -4
- package/dist/views/index.js +20 -20
- package/dist/views/post/index.d.ts +2 -2
- package/dist/views/post/index.js +18 -18
- package/dist/views/post/request.d.ts +10 -10
- package/dist/views/post/request.js +2 -2
- package/dist/views/post/response.d.ts +1 -1
- package/dist/views/post/response.js +2 -2
- package/dist/views/shared.d.ts +27 -27
- package/dist/views/shared.js +2 -2
- package/dist/workflows/index.d.ts +2 -44
- package/dist/workflows/index.js +18 -2
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/legacy.d.ts +60 -0
- package/dist/workflows/legacy.js +3 -0
- package/dist/workflows/legacy.js.map +1 -0
- package/dist/workflows/workflow.d.ts +398 -0
- package/dist/workflows/workflow.js +69 -0
- package/dist/workflows/workflow.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,303 +1,305 @@
|
|
|
1
|
-
import { IEmbeddedEntity, IEntityMeta, IReadiness } from '../../shared';
|
|
2
|
-
import { GetManifestResponse, IManifestAsset, IManifestRuleResult, IManifestType } from '../../manifests';
|
|
3
|
-
import { Point } from 'geojson';
|
|
4
|
-
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
5
|
-
import { SnapshotTypeEnum } from '../get';
|
|
6
|
-
import { ISubmissionAttachment, ISubmissionWriteBackAudit } from '../../submissions/shared';
|
|
7
|
-
export interface IManifestTypeExtended extends IManifestType {
|
|
8
|
-
c_detected?: number;
|
|
9
|
-
c_sighted?: number;
|
|
10
|
-
c_count?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface IManifestAssetExtended extends IManifestAsset {
|
|
13
|
-
c_count?: number;
|
|
14
|
-
c_sighted?: number;
|
|
15
|
-
}
|
|
16
|
-
declare type OmittedProperties = Omit<GetManifestResponse, 'types' | 'assets'>;
|
|
17
|
-
export interface GetManifestResponseExtended extends OmittedProperties {
|
|
18
|
-
types?: IManifestTypeExtended[];
|
|
19
|
-
assets?: IManifestAssetExtended[];
|
|
20
|
-
}
|
|
21
|
-
export interface ISnapshotType {
|
|
22
|
-
typeId: string;
|
|
23
|
-
typeName?: string;
|
|
24
|
-
typePath: string;
|
|
25
|
-
}
|
|
26
|
-
/** A scan recorded as supporting evidence for an inferred parent kit — the
|
|
27
|
-
* child asset whose tag read proved the kit was present. */
|
|
28
|
-
export interface ISnapshotEvidenceAsset {
|
|
29
|
-
assetId: string;
|
|
30
|
-
assetName?: string;
|
|
31
|
-
tagId?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
34
|
-
assetId: string;
|
|
35
|
-
assetName?: string;
|
|
36
|
-
section?: string;
|
|
37
|
-
c_additional?: boolean;
|
|
38
|
-
fieldValues?: IFieldValue[];
|
|
39
|
-
/** When this entry is a kit inferred from scans of its members rather than
|
|
40
|
-
* a direct tag read, the member scans that evidenced it. */
|
|
41
|
-
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
42
|
-
/** The user explicitly confirmed this asset has left its current group — a
|
|
43
|
-
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
44
|
-
* from its parent kit (it becomes a root asset). */
|
|
45
|
-
unGroup?: boolean;
|
|
46
|
-
/** The asset's readiness as it stood on the device at check time — frozen
|
|
47
|
-
* testimony from the submitting client. Absent on snapshots recorded
|
|
48
|
-
* before clients embedded readiness. */
|
|
49
|
-
readiness?: IReadiness;
|
|
50
|
-
}
|
|
51
|
-
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
52
|
-
assetId: string;
|
|
53
|
-
assetName?: string;
|
|
54
|
-
section?: string;
|
|
55
|
-
fieldValues?: IFieldValue[];
|
|
56
|
-
/** The asset's readiness as it stood on the device at check time — frozen
|
|
57
|
-
* testimony from the submitting client. Absent on snapshots recorded
|
|
58
|
-
* before clients embedded readiness. */
|
|
59
|
-
readiness?: IReadiness;
|
|
60
|
-
}
|
|
61
|
-
export interface ISnapshotSightedType extends ISnapshotType {
|
|
62
|
-
section?: string;
|
|
63
|
-
count: number;
|
|
64
|
-
c_ignored?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
67
|
-
assetId: string;
|
|
68
|
-
assetName?: string;
|
|
69
|
-
section?: string;
|
|
70
|
-
c_ignored?: boolean;
|
|
71
|
-
fieldValues?: IFieldValue[];
|
|
72
|
-
/**
|
|
73
|
-
* The user explicitly associated this asset with its manifest item (the
|
|
74
|
-
* spec's "otherwise explicitly associated" act) — authorises the
|
|
75
|
-
* kit-membership sync to move it here out of another kit. Without it a
|
|
76
|
-
* manual confirmation adds the asset only when it is ungrouped.
|
|
77
|
-
*/
|
|
78
|
-
selected?: boolean;
|
|
79
|
-
/** When this entry is a kit inferred from scans of its members rather than
|
|
80
|
-
* a direct tag read, the member scans that evidenced it. */
|
|
81
|
-
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
82
|
-
/** The user explicitly confirmed this asset has left its current group — a
|
|
83
|
-
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
84
|
-
* from its parent kit (it becomes a root asset). */
|
|
85
|
-
unGroup?: boolean;
|
|
86
|
-
/** The asset's readiness as it stood on the device at check time — frozen
|
|
87
|
-
* testimony from the submitting client. Absent on snapshots recorded
|
|
88
|
-
* before clients embedded readiness. */
|
|
89
|
-
readiness?: IReadiness;
|
|
90
|
-
}
|
|
91
|
-
export interface ISnapshotComputed {
|
|
92
|
-
missingTotal: number;
|
|
93
|
-
sightedTotal: number;
|
|
94
|
-
detectedAssets: number;
|
|
95
|
-
manifestTypes?: {
|
|
96
|
-
count: number;
|
|
97
|
-
countMissingTypes: number;
|
|
98
|
-
countMissing: number;
|
|
99
|
-
countSighted: number;
|
|
100
|
-
};
|
|
101
|
-
manifestAssets?: {
|
|
102
|
-
count: number;
|
|
103
|
-
countMissing: number;
|
|
104
|
-
countSighted: number;
|
|
105
|
-
};
|
|
106
|
-
additional?: {
|
|
107
|
-
countTypes: number;
|
|
108
|
-
countAssets: number;
|
|
109
|
-
};
|
|
110
|
-
/** How many of the manifest copy's rules failed at this check, at either
|
|
111
|
-
* level. Present only on a check whose copy has rules. */
|
|
112
|
-
rulesFailed?: number;
|
|
113
|
-
}
|
|
114
|
-
export interface ISnapshotFields {
|
|
115
|
-
notes?: string;
|
|
116
|
-
}
|
|
117
|
-
/** One asset touched (or deliberately left alone) by the kit-membership sync. */
|
|
118
|
-
export interface ISnapshotMembershipAsset {
|
|
119
|
-
assetId: string;
|
|
120
|
-
assetName?: string;
|
|
121
|
-
/** For retained entries: the manifest type entry the retention satisfied. */
|
|
122
|
-
typeId?: string;
|
|
123
|
-
section?: string;
|
|
124
|
-
/** For added entries: the membership came from a manual confirmation, not a
|
|
125
|
-
* scan — the tag was never read, so it joins the inspection follow-up list. */
|
|
126
|
-
manuallyConfirmed?: boolean;
|
|
127
|
-
/** For severed entries, and added entries that moved in from another kit:
|
|
128
|
-
* ID of the parent kit the asset left. */
|
|
129
|
-
fromKitId?: string;
|
|
130
|
-
/** For severed entries, and added entries that moved in from another kit:
|
|
131
|
-
* name of the parent kit the asset left. */
|
|
132
|
-
fromKitName?: string;
|
|
133
|
-
/** For severed entries: the sever was honoured although an ancestor of the
|
|
134
|
-
* asset was also seen in the check — an explicit `unGroup` outranks the
|
|
135
|
-
* ancestor guard; flagged so the receipt tells the whole story. */
|
|
136
|
-
ancestorPresent?: boolean;
|
|
137
|
-
}
|
|
138
|
-
export declare type SnapshotMembershipSkipReason = 'NOT_INVENTORY' | 'TARGET_NOT_FOUND' | 'TARGET_NOT_KIT' | 'ASSET_NOT_FOUND' | 'ALREADY_NESTED' | 'WOULD_CYCLE' | 'SIGHTED_IN_OTHER_KIT' | 'SIGHTED_UNRESOLVED' | 'ANCESTOR_SEEN';
|
|
139
|
-
export interface ISnapshotMembershipNotApplied {
|
|
140
|
-
reason: SnapshotMembershipSkipReason;
|
|
141
|
-
assetId?: string;
|
|
142
|
-
assetName?: string;
|
|
143
|
-
typeId?: string;
|
|
144
|
-
typePath?: string;
|
|
145
|
-
section?: string;
|
|
146
|
-
/** SIGHTED_UNRESOLVED: how many manually confirmed instances had no member to retain. */
|
|
147
|
-
count?: number;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Result of synchronising the target kit's direct membership with the
|
|
151
|
-
* submitted manifest (present only when the snapshot requested
|
|
152
|
-
* `syncGroupMembership` — the audit record of what the sync did).
|
|
153
|
-
*/
|
|
154
|
-
export interface ISnapshotMembershipSync {
|
|
155
|
-
/** Assets that became direct members (joined or moved in) — by scan, or by
|
|
156
|
-
* manual confirmation of their named line (`manuallyConfirmed: true`). */
|
|
157
|
-
added: ISnapshotMembershipAsset[];
|
|
158
|
-
/** Direct members removed because nothing in the manifest represented them. */
|
|
159
|
-
removed: ISnapshotMembershipAsset[];
|
|
160
|
-
/** Existing members kept without a scan under the manual-confirmation
|
|
161
|
-
* retention rule — the tag-inspection follow-up list. */
|
|
162
|
-
retained: ISnapshotMembershipAsset[];
|
|
163
|
-
/** Membership actions the sync declined, with reasons. */
|
|
164
|
-
notApplied: ISnapshotMembershipNotApplied[];
|
|
165
|
-
/** Assets un-grouped from their previous parent by a location or Dispatch
|
|
166
|
-
* check (`fromKitId`/`fromKitName` record what they left). Absent on
|
|
167
|
-
* snapshots recorded before the generalised sync existed. */
|
|
168
|
-
severed?: ISnapshotMembershipAsset[];
|
|
169
|
-
/** Assets now travelling with the target asset of a carrier check — one
|
|
170
|
-
* whose target is not a kit but is stocktakable. Present (possibly empty)
|
|
171
|
-
* only for that path: a carrier holds no members, so what a check of it
|
|
172
|
-
* states is company, not containment. */
|
|
173
|
-
carried?: ISnapshotMembershipAsset[];
|
|
174
|
-
}
|
|
175
|
-
export interface GetSnapshotResponse {
|
|
176
|
-
id: string;
|
|
177
|
-
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
178
|
-
user?: IEmbeddedEntity & {
|
|
179
|
-
type?: string;
|
|
180
|
-
};
|
|
181
|
-
reader?: IEmbeddedEntity;
|
|
182
|
-
location?: IEmbeddedEntity & {
|
|
183
|
-
path?: string;
|
|
184
|
-
};
|
|
185
|
-
asset?: IEmbeddedEntity & ISnapshotType & {
|
|
186
|
-
/** The target asset's readiness as the server computed it AFTER
|
|
187
|
-
* processing this snapshot (post membership-sync and manifest-status
|
|
188
|
-
* recompute) — a frozen server annotation, never accepted from
|
|
189
|
-
* clients. */
|
|
190
|
-
c_readiness?: IReadiness;
|
|
191
|
-
};
|
|
192
|
-
manifest?: GetManifestResponseExtended;
|
|
193
|
-
detectedAssets?: ISnapshotDetectedAsset[];
|
|
194
|
-
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
195
|
-
sightedTypes?: ISnapshotSightedType[];
|
|
196
|
-
sightedAssets?: ISnapshotSightedAsset[];
|
|
197
|
-
computed?: ISnapshotComputed;
|
|
198
|
-
fields?: ISnapshotFields;
|
|
199
|
-
submitted?: number;
|
|
200
|
-
created: number;
|
|
201
|
-
meta?: IEntityMeta;
|
|
202
|
-
/** Whether this snapshot asked the server to sync the target kit's direct
|
|
203
|
-
* membership with the manifest result. */
|
|
204
|
-
syncGroupMembership?: boolean;
|
|
205
|
-
/** Whether this snapshot asked the server to update group membership from
|
|
206
|
-
* its evidence (the generalised `updateGroupMembership` flag). */
|
|
207
|
-
updateGroupMembership?: boolean;
|
|
208
|
-
/** What the kit-membership sync did — see `ISnapshotMembershipSync`. */
|
|
209
|
-
membershipSync?: ISnapshotMembershipSync;
|
|
210
|
-
/** The manifest-check verdict this snapshot stamped — three-state: absent
|
|
211
|
-
* means this snapshot never stamped a verdict (it was not a qualifying
|
|
212
|
-
* manifest check); true means it stamped satisfied (0); false means it
|
|
213
|
-
* stamped not satisfied (2). Frozen history: the asset's live status may
|
|
214
|
-
* later change, this flag never does. Server-owned. */
|
|
215
|
-
c_satisfiesManifest?: boolean;
|
|
216
|
-
/** The ULID the client sent with this snapshot, when it sent one — the key
|
|
217
|
-
* a repeat of the same `POST /snapshots` is recognised by. */
|
|
218
|
-
clientReference?: string;
|
|
219
|
-
/**
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
*
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
* the
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
*
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
meta
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
answersComplete
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
1
|
+
import { IEmbeddedEntity, IEntityMeta, IReadiness } from '../../shared';
|
|
2
|
+
import { GetManifestResponse, IManifestAsset, IManifestRuleResult, IManifestType } from '../../manifests';
|
|
3
|
+
import { Point } from 'geojson';
|
|
4
|
+
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
5
|
+
import { SnapshotTypeEnum } from '../get';
|
|
6
|
+
import { ISubmissionAttachment, ISubmissionWriteBackAudit } from '../../submissions/shared';
|
|
7
|
+
export interface IManifestTypeExtended extends IManifestType {
|
|
8
|
+
c_detected?: number;
|
|
9
|
+
c_sighted?: number;
|
|
10
|
+
c_count?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IManifestAssetExtended extends IManifestAsset {
|
|
13
|
+
c_count?: number;
|
|
14
|
+
c_sighted?: number;
|
|
15
|
+
}
|
|
16
|
+
declare type OmittedProperties = Omit<GetManifestResponse, 'types' | 'assets'>;
|
|
17
|
+
export interface GetManifestResponseExtended extends OmittedProperties {
|
|
18
|
+
types?: IManifestTypeExtended[];
|
|
19
|
+
assets?: IManifestAssetExtended[];
|
|
20
|
+
}
|
|
21
|
+
export interface ISnapshotType {
|
|
22
|
+
typeId: string;
|
|
23
|
+
typeName?: string;
|
|
24
|
+
typePath: string;
|
|
25
|
+
}
|
|
26
|
+
/** A scan recorded as supporting evidence for an inferred parent kit — the
|
|
27
|
+
* child asset whose tag read proved the kit was present. */
|
|
28
|
+
export interface ISnapshotEvidenceAsset {
|
|
29
|
+
assetId: string;
|
|
30
|
+
assetName?: string;
|
|
31
|
+
tagId?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
34
|
+
assetId: string;
|
|
35
|
+
assetName?: string;
|
|
36
|
+
section?: string;
|
|
37
|
+
c_additional?: boolean;
|
|
38
|
+
fieldValues?: IFieldValue[];
|
|
39
|
+
/** When this entry is a kit inferred from scans of its members rather than
|
|
40
|
+
* a direct tag read, the member scans that evidenced it. */
|
|
41
|
+
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
42
|
+
/** The user explicitly confirmed this asset has left its current group — a
|
|
43
|
+
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
44
|
+
* from its parent kit (it becomes a root asset). */
|
|
45
|
+
unGroup?: boolean;
|
|
46
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
47
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
48
|
+
* before clients embedded readiness. */
|
|
49
|
+
readiness?: IReadiness;
|
|
50
|
+
}
|
|
51
|
+
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
52
|
+
assetId: string;
|
|
53
|
+
assetName?: string;
|
|
54
|
+
section?: string;
|
|
55
|
+
fieldValues?: IFieldValue[];
|
|
56
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
57
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
58
|
+
* before clients embedded readiness. */
|
|
59
|
+
readiness?: IReadiness;
|
|
60
|
+
}
|
|
61
|
+
export interface ISnapshotSightedType extends ISnapshotType {
|
|
62
|
+
section?: string;
|
|
63
|
+
count: number;
|
|
64
|
+
c_ignored?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
67
|
+
assetId: string;
|
|
68
|
+
assetName?: string;
|
|
69
|
+
section?: string;
|
|
70
|
+
c_ignored?: boolean;
|
|
71
|
+
fieldValues?: IFieldValue[];
|
|
72
|
+
/**
|
|
73
|
+
* The user explicitly associated this asset with its manifest item (the
|
|
74
|
+
* spec's "otherwise explicitly associated" act) — authorises the
|
|
75
|
+
* kit-membership sync to move it here out of another kit. Without it a
|
|
76
|
+
* manual confirmation adds the asset only when it is ungrouped.
|
|
77
|
+
*/
|
|
78
|
+
selected?: boolean;
|
|
79
|
+
/** When this entry is a kit inferred from scans of its members rather than
|
|
80
|
+
* a direct tag read, the member scans that evidenced it. */
|
|
81
|
+
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
82
|
+
/** The user explicitly confirmed this asset has left its current group — a
|
|
83
|
+
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
84
|
+
* from its parent kit (it becomes a root asset). */
|
|
85
|
+
unGroup?: boolean;
|
|
86
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
87
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
88
|
+
* before clients embedded readiness. */
|
|
89
|
+
readiness?: IReadiness;
|
|
90
|
+
}
|
|
91
|
+
export interface ISnapshotComputed {
|
|
92
|
+
missingTotal: number;
|
|
93
|
+
sightedTotal: number;
|
|
94
|
+
detectedAssets: number;
|
|
95
|
+
manifestTypes?: {
|
|
96
|
+
count: number;
|
|
97
|
+
countMissingTypes: number;
|
|
98
|
+
countMissing: number;
|
|
99
|
+
countSighted: number;
|
|
100
|
+
};
|
|
101
|
+
manifestAssets?: {
|
|
102
|
+
count: number;
|
|
103
|
+
countMissing: number;
|
|
104
|
+
countSighted: number;
|
|
105
|
+
};
|
|
106
|
+
additional?: {
|
|
107
|
+
countTypes: number;
|
|
108
|
+
countAssets: number;
|
|
109
|
+
};
|
|
110
|
+
/** How many of the manifest copy's rules failed at this check, at either
|
|
111
|
+
* level. Present only on a check whose copy has rules. */
|
|
112
|
+
rulesFailed?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface ISnapshotFields {
|
|
115
|
+
notes?: string;
|
|
116
|
+
}
|
|
117
|
+
/** One asset touched (or deliberately left alone) by the kit-membership sync. */
|
|
118
|
+
export interface ISnapshotMembershipAsset {
|
|
119
|
+
assetId: string;
|
|
120
|
+
assetName?: string;
|
|
121
|
+
/** For retained entries: the manifest type entry the retention satisfied. */
|
|
122
|
+
typeId?: string;
|
|
123
|
+
section?: string;
|
|
124
|
+
/** For added entries: the membership came from a manual confirmation, not a
|
|
125
|
+
* scan — the tag was never read, so it joins the inspection follow-up list. */
|
|
126
|
+
manuallyConfirmed?: boolean;
|
|
127
|
+
/** For severed entries, and added entries that moved in from another kit:
|
|
128
|
+
* ID of the parent kit the asset left. */
|
|
129
|
+
fromKitId?: string;
|
|
130
|
+
/** For severed entries, and added entries that moved in from another kit:
|
|
131
|
+
* name of the parent kit the asset left. */
|
|
132
|
+
fromKitName?: string;
|
|
133
|
+
/** For severed entries: the sever was honoured although an ancestor of the
|
|
134
|
+
* asset was also seen in the check — an explicit `unGroup` outranks the
|
|
135
|
+
* ancestor guard; flagged so the receipt tells the whole story. */
|
|
136
|
+
ancestorPresent?: boolean;
|
|
137
|
+
}
|
|
138
|
+
export declare type SnapshotMembershipSkipReason = 'NOT_INVENTORY' | 'TARGET_NOT_FOUND' | 'TARGET_NOT_KIT' | 'ASSET_NOT_FOUND' | 'ALREADY_NESTED' | 'WOULD_CYCLE' | 'SIGHTED_IN_OTHER_KIT' | 'SIGHTED_UNRESOLVED' | 'ANCESTOR_SEEN';
|
|
139
|
+
export interface ISnapshotMembershipNotApplied {
|
|
140
|
+
reason: SnapshotMembershipSkipReason;
|
|
141
|
+
assetId?: string;
|
|
142
|
+
assetName?: string;
|
|
143
|
+
typeId?: string;
|
|
144
|
+
typePath?: string;
|
|
145
|
+
section?: string;
|
|
146
|
+
/** SIGHTED_UNRESOLVED: how many manually confirmed instances had no member to retain. */
|
|
147
|
+
count?: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Result of synchronising the target kit's direct membership with the
|
|
151
|
+
* submitted manifest (present only when the snapshot requested
|
|
152
|
+
* `syncGroupMembership` — the audit record of what the sync did).
|
|
153
|
+
*/
|
|
154
|
+
export interface ISnapshotMembershipSync {
|
|
155
|
+
/** Assets that became direct members (joined or moved in) — by scan, or by
|
|
156
|
+
* manual confirmation of their named line (`manuallyConfirmed: true`). */
|
|
157
|
+
added: ISnapshotMembershipAsset[];
|
|
158
|
+
/** Direct members removed because nothing in the manifest represented them. */
|
|
159
|
+
removed: ISnapshotMembershipAsset[];
|
|
160
|
+
/** Existing members kept without a scan under the manual-confirmation
|
|
161
|
+
* retention rule — the tag-inspection follow-up list. */
|
|
162
|
+
retained: ISnapshotMembershipAsset[];
|
|
163
|
+
/** Membership actions the sync declined, with reasons. */
|
|
164
|
+
notApplied: ISnapshotMembershipNotApplied[];
|
|
165
|
+
/** Assets un-grouped from their previous parent by a location or Dispatch
|
|
166
|
+
* check (`fromKitId`/`fromKitName` record what they left). Absent on
|
|
167
|
+
* snapshots recorded before the generalised sync existed. */
|
|
168
|
+
severed?: ISnapshotMembershipAsset[];
|
|
169
|
+
/** Assets now travelling with the target asset of a carrier check — one
|
|
170
|
+
* whose target is not a kit but is stocktakable. Present (possibly empty)
|
|
171
|
+
* only for that path: a carrier holds no members, so what a check of it
|
|
172
|
+
* states is company, not containment. */
|
|
173
|
+
carried?: ISnapshotMembershipAsset[];
|
|
174
|
+
}
|
|
175
|
+
export interface GetSnapshotResponse {
|
|
176
|
+
id: string;
|
|
177
|
+
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
178
|
+
user?: IEmbeddedEntity & {
|
|
179
|
+
type?: string;
|
|
180
|
+
};
|
|
181
|
+
reader?: IEmbeddedEntity;
|
|
182
|
+
location?: IEmbeddedEntity & {
|
|
183
|
+
path?: string;
|
|
184
|
+
};
|
|
185
|
+
asset?: IEmbeddedEntity & ISnapshotType & {
|
|
186
|
+
/** The target asset's readiness as the server computed it AFTER
|
|
187
|
+
* processing this snapshot (post membership-sync and manifest-status
|
|
188
|
+
* recompute) — a frozen server annotation, never accepted from
|
|
189
|
+
* clients. */
|
|
190
|
+
c_readiness?: IReadiness;
|
|
191
|
+
};
|
|
192
|
+
manifest?: GetManifestResponseExtended;
|
|
193
|
+
detectedAssets?: ISnapshotDetectedAsset[];
|
|
194
|
+
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
195
|
+
sightedTypes?: ISnapshotSightedType[];
|
|
196
|
+
sightedAssets?: ISnapshotSightedAsset[];
|
|
197
|
+
computed?: ISnapshotComputed;
|
|
198
|
+
fields?: ISnapshotFields;
|
|
199
|
+
submitted?: number;
|
|
200
|
+
created: number;
|
|
201
|
+
meta?: IEntityMeta;
|
|
202
|
+
/** Whether this snapshot asked the server to sync the target kit's direct
|
|
203
|
+
* membership with the manifest result. */
|
|
204
|
+
syncGroupMembership?: boolean;
|
|
205
|
+
/** Whether this snapshot asked the server to update group membership from
|
|
206
|
+
* its evidence (the generalised `updateGroupMembership` flag). */
|
|
207
|
+
updateGroupMembership?: boolean;
|
|
208
|
+
/** What the kit-membership sync did — see `ISnapshotMembershipSync`. */
|
|
209
|
+
membershipSync?: ISnapshotMembershipSync;
|
|
210
|
+
/** The manifest-check verdict this snapshot stamped — three-state: absent
|
|
211
|
+
* means this snapshot never stamped a verdict (it was not a qualifying
|
|
212
|
+
* manifest check); true means it stamped satisfied (0); false means it
|
|
213
|
+
* stamped not satisfied (2). Frozen history: the asset's live status may
|
|
214
|
+
* later change, this flag never does. Server-owned. */
|
|
215
|
+
c_satisfiesManifest?: boolean;
|
|
216
|
+
/** The ULID the client sent with this snapshot, when it sent one — the key
|
|
217
|
+
* a repeat of the same `POST /snapshots` is recognised by. */
|
|
218
|
+
clientReference?: string;
|
|
219
|
+
/** The task the snapshot was taken for, when it named one. */
|
|
220
|
+
taskId?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The answers the check recorded to the form items of its manifest copy, in
|
|
223
|
+
* the items' order: what the checker entered, and the values the server
|
|
224
|
+
* injected (CONTEXT) or derived (COMPUTED), which carry `computed: true`.
|
|
225
|
+
* An item that was not shown has no entry, and neither has an unanswered
|
|
226
|
+
* optional one.
|
|
227
|
+
*/
|
|
228
|
+
fieldValues?: IFieldValue[];
|
|
229
|
+
/** The files captured for the copy's signature and photo blocks. */
|
|
230
|
+
attachments?: ISubmissionAttachment[];
|
|
231
|
+
/**
|
|
232
|
+
* What the check wrote to the checked asset: one entry per `writeBack`
|
|
233
|
+
* item of the copy, applied with the value written and the value it
|
|
234
|
+
* replaced, or skipped with the reason.
|
|
235
|
+
*/
|
|
236
|
+
writeBack?: ISnapshotWriteBackAudit[];
|
|
237
|
+
/**
|
|
238
|
+
* Present on a check whose manifest has form items. `true`: every required
|
|
239
|
+
* item that was shown has its answer. `false`: the check is recorded
|
|
240
|
+
* without them — it came from a client that predates form items, or lacked
|
|
241
|
+
* a required answer — and it wrote nothing to the asset.
|
|
242
|
+
*/
|
|
243
|
+
answersComplete?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* What each rule of the manifest copy came to at this check, in the rules'
|
|
246
|
+
* order (MANIFEST_RULES.md §5.1). Worked out by the server from the items
|
|
247
|
+
* the check's lines counted and from its answers; a client's own results
|
|
248
|
+
* are never taken. The values each rule read are kept as evidence, so a
|
|
249
|
+
* recorded check still explains itself after a brand or a capacity is
|
|
250
|
+
* edited. Present only on a check whose copy has rules.
|
|
251
|
+
*/
|
|
252
|
+
ruleResults?: IManifestRuleResult[];
|
|
253
|
+
geolocation?: Point;
|
|
254
|
+
timezone?: string;
|
|
255
|
+
types?: Omit<GetTypeResponse & {
|
|
256
|
+
meta?: {
|
|
257
|
+
created: number;
|
|
258
|
+
updated: number;
|
|
259
|
+
};
|
|
260
|
+
}, 'manifest'>[];
|
|
261
|
+
type: SnapshotTypeEnum;
|
|
262
|
+
}
|
|
263
|
+
/** A check's write-back audit: a submission's, with the id of the field the
|
|
264
|
+
* item binds. */
|
|
265
|
+
export interface ISnapshotWriteBackAudit extends ISubmissionWriteBackAudit {
|
|
266
|
+
fieldId?: string;
|
|
267
|
+
}
|
|
268
|
+
export interface GetSnapshotsItem {
|
|
269
|
+
id: string;
|
|
270
|
+
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
271
|
+
user?: IEmbeddedEntity & {
|
|
272
|
+
type?: string;
|
|
273
|
+
};
|
|
274
|
+
reader?: IEmbeddedEntity;
|
|
275
|
+
location?: IEmbeddedEntity & {
|
|
276
|
+
path?: string;
|
|
277
|
+
};
|
|
278
|
+
asset?: IEmbeddedEntity & ISnapshotType & {
|
|
279
|
+
/** The target asset's readiness as the server computed it AFTER
|
|
280
|
+
* processing this snapshot — see `GetSnapshotResponse['asset']`.
|
|
281
|
+
* Stored on every annotated snapshot; list rows omit it (detail
|
|
282
|
+
* carries it). */
|
|
283
|
+
c_readiness?: IReadiness;
|
|
284
|
+
};
|
|
285
|
+
manifest?: IEmbeddedEntity;
|
|
286
|
+
computed?: ISnapshotComputed;
|
|
287
|
+
fields?: ISnapshotFields;
|
|
288
|
+
submitted?: number;
|
|
289
|
+
created: number;
|
|
290
|
+
/** Attached when `embed=meta` was requested — the same block as
|
|
291
|
+
* `GetSnapshotResponse['meta']`. */
|
|
292
|
+
meta?: IEntityMeta;
|
|
293
|
+
/** The manifest-check verdict this snapshot stamped — three-state, see
|
|
294
|
+
* `GetSnapshotResponse['c_satisfiesManifest']`. Present on list rows so
|
|
295
|
+
* the snapshot filters can ask it. */
|
|
296
|
+
c_satisfiesManifest?: boolean;
|
|
297
|
+
/** See `GetSnapshotResponse['answersComplete']`. Present on list rows so a
|
|
298
|
+
* list can mark a check that was recorded without its answers. */
|
|
299
|
+
answersComplete?: boolean;
|
|
300
|
+
geolocation?: Point;
|
|
301
|
+
timezone?: string;
|
|
302
|
+
type: SnapshotTypeEnum;
|
|
303
|
+
}
|
|
304
|
+
export declare const testGetSnapshotRequest: GetSnapshotResponse;
|
|
305
|
+
export {};
|