@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
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tasks: a piece of work owed to one target, an asset or a location. A task
|
|
3
|
+
* names the work the way the app already reaches it (a form, a manifest
|
|
4
|
+
* check, a stocktake), and the record that work produces completes it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TASK_STATUSES: readonly ["OPEN", "ASSIGNED", "COMPLETED", "CANCELLED", "EXPIRED"];
|
|
7
|
+
export declare type TaskStatus = (typeof TASK_STATUSES)[number];
|
|
8
|
+
/** The statuses of a task that is still owed. Every other status is final. */
|
|
9
|
+
export declare const TASK_LIVE_STATUSES: TaskStatus[];
|
|
10
|
+
export declare const TASK_ENTITIES: readonly ["asset", "location"];
|
|
11
|
+
/** What a task is done on. */
|
|
12
|
+
export declare type TaskEntity = (typeof TASK_ENTITIES)[number];
|
|
13
|
+
export declare const TASK_COMPLETION_KINDS: readonly ["SUBMISSION", "MANIFEST_CHECK", "STOCKTAKE"];
|
|
14
|
+
/**
|
|
15
|
+
* The record that completes a task: a form's submission, a manifest check (an
|
|
16
|
+
* `Inventory` snapshot) or a stocktake (a `Stocktake` snapshot).
|
|
17
|
+
*/
|
|
18
|
+
export declare type TaskCompletionKind = (typeof TASK_COMPLETION_KINDS)[number];
|
|
19
|
+
export declare const TASK_PRIORITIES: readonly [0, 1, 2, 3];
|
|
20
|
+
/** 0 is the lowest and 3 the highest. A task raised without one is 1. */
|
|
21
|
+
export declare type TaskPriority = (typeof TASK_PRIORITIES)[number];
|
|
22
|
+
export declare const DEFAULT_TASK_PRIORITY: TaskPriority;
|
|
23
|
+
/**
|
|
24
|
+
* How a task is completed, as a definition or a request states it.
|
|
25
|
+
* - `SUBMISSION` names the action whose form is to be submitted.
|
|
26
|
+
* - `MANIFEST_CHECK` may name the manifests a check may be taken against;
|
|
27
|
+
* with none named, each target's own manifests are used.
|
|
28
|
+
* - `STOCKTAKE` names nothing.
|
|
29
|
+
*/
|
|
30
|
+
export declare type TaskCompletionDefinition = {
|
|
31
|
+
requires: 'SUBMISSION';
|
|
32
|
+
actionName: string;
|
|
33
|
+
} | {
|
|
34
|
+
requires: 'MANIFEST_CHECK';
|
|
35
|
+
manifestIds?: string[];
|
|
36
|
+
} | {
|
|
37
|
+
requires: 'STOCKTAKE';
|
|
38
|
+
};
|
|
39
|
+
/** A manifest a check may be taken against to complete a task. */
|
|
40
|
+
export interface TaskManifestRef {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* How one task is completed, resolved for its target when the task was
|
|
46
|
+
* raised. A manifest check lists the manifests that satisfy it for this
|
|
47
|
+
* target: the target's own, narrowed to the ones the definition named.
|
|
48
|
+
*/
|
|
49
|
+
export interface TaskCompletion {
|
|
50
|
+
requires: TaskCompletionKind;
|
|
51
|
+
/** `SUBMISSION` only: the action whose form completes the task. */
|
|
52
|
+
actionName?: string;
|
|
53
|
+
/** `MANIFEST_CHECK` only: the manifests the definition named, if any. */
|
|
54
|
+
manifestIds?: string[];
|
|
55
|
+
/** `MANIFEST_CHECK` only: the manifests a check of this target may be taken against. */
|
|
56
|
+
manifests?: TaskManifestRef[];
|
|
57
|
+
}
|
|
58
|
+
/** Who a definition's tasks are for. */
|
|
59
|
+
export interface TaskAssignmentDefinition {
|
|
60
|
+
/** User group ids. Empty or absent: the task is for everyone. */
|
|
61
|
+
groups?: string[];
|
|
62
|
+
/** Permissions a person needs, besides `tasks:claim`, to take the task. */
|
|
63
|
+
requiredPermissions?: string[];
|
|
64
|
+
/** False: the task cannot be taken from the list and must be handed to someone. */
|
|
65
|
+
claimable?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/** When a task falls due and when it expires, counted from when it was raised. */
|
|
68
|
+
export interface TaskTiming {
|
|
69
|
+
dueInMinutes?: number;
|
|
70
|
+
expiresInMinutes?: number;
|
|
71
|
+
}
|
|
72
|
+
/** The asset or location a task is owed to, as it stood when the task was raised. */
|
|
73
|
+
export interface TaskTarget {
|
|
74
|
+
entity: TaskEntity;
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
/** Asset targets only. */
|
|
78
|
+
typeId?: string;
|
|
79
|
+
typePath?: string;
|
|
80
|
+
/** An asset's home location, or the location itself. */
|
|
81
|
+
locationId?: string;
|
|
82
|
+
/** An asset's home path, or where it was when it had no home; a location's own path. */
|
|
83
|
+
locationPath?: string;
|
|
84
|
+
}
|
|
85
|
+
/** Who may see a task and take it, copied from its definition when it was raised. */
|
|
86
|
+
export interface TaskVisibility {
|
|
87
|
+
groups: string[];
|
|
88
|
+
requiredPermissions: string[];
|
|
89
|
+
claimable: boolean;
|
|
90
|
+
/** True when `groups` is empty: the task is for everyone. */
|
|
91
|
+
openToAll: boolean;
|
|
92
|
+
}
|
|
93
|
+
export declare const TASK_ASSIGNMENT_MODES: readonly ["CLAIM", "DIRECT"];
|
|
94
|
+
/** `CLAIM`: the person took it from the list. `DIRECT`: someone handed it to them. */
|
|
95
|
+
export declare type TaskAssignmentMode = (typeof TASK_ASSIGNMENT_MODES)[number];
|
|
96
|
+
export interface TaskAssignment {
|
|
97
|
+
userId: string;
|
|
98
|
+
userName: string;
|
|
99
|
+
mode: TaskAssignmentMode;
|
|
100
|
+
at: number;
|
|
101
|
+
/** The user who made the assignment: the assignee, for a claim. */
|
|
102
|
+
by: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Where a task came from.
|
|
106
|
+
* - `MANUAL`: a person raised it.
|
|
107
|
+
* - `SCHEDULE`: a workflow's scheduled run. `occurrence` is the scheduled
|
|
108
|
+
* instant in the workflow's time zone, never the time the run started.
|
|
109
|
+
* - `RUN_NOW`: a workflow run a person asked for.
|
|
110
|
+
*/
|
|
111
|
+
export declare type TaskSource = {
|
|
112
|
+
kind: 'MANUAL';
|
|
113
|
+
userId: string;
|
|
114
|
+
userName: string;
|
|
115
|
+
} | {
|
|
116
|
+
kind: 'SCHEDULE';
|
|
117
|
+
workflowId: string;
|
|
118
|
+
workflowName: string;
|
|
119
|
+
occurrence: string;
|
|
120
|
+
} | {
|
|
121
|
+
kind: 'RUN_NOW';
|
|
122
|
+
workflowId: string;
|
|
123
|
+
workflowName: string;
|
|
124
|
+
requestedAt: number;
|
|
125
|
+
userId?: string;
|
|
126
|
+
userName?: string;
|
|
127
|
+
};
|
|
128
|
+
export declare const TASK_COMPLETED_VIA: readonly ["TASK", "MATCHED", "RECONCILED"];
|
|
129
|
+
/**
|
|
130
|
+
* How a record came to complete a task.
|
|
131
|
+
* - `TASK`: the record named the task.
|
|
132
|
+
* - `MATCHED`: the record did not name it, and was the work it asked for.
|
|
133
|
+
* - `RECONCILED`: someone pointed the task at a record already saved.
|
|
134
|
+
*/
|
|
135
|
+
export declare type TaskCompletedVia = (typeof TASK_COMPLETED_VIA)[number];
|
|
136
|
+
/** Present on a completed task: who did the work, and the record of it. */
|
|
137
|
+
export interface TaskCompleted {
|
|
138
|
+
at: number;
|
|
139
|
+
userId: string;
|
|
140
|
+
userName: string;
|
|
141
|
+
via: TaskCompletedVia;
|
|
142
|
+
submissionId?: string;
|
|
143
|
+
snapshotId?: string;
|
|
144
|
+
}
|
|
145
|
+
/** Present on a cancelled task. */
|
|
146
|
+
export interface TaskCancelled {
|
|
147
|
+
at: number;
|
|
148
|
+
userId: string;
|
|
149
|
+
userName: string;
|
|
150
|
+
reason: string;
|
|
151
|
+
}
|
|
152
|
+
export declare const TASK_EXPIRED_CAUSES: readonly ["EXPIRY", "REPLACED"];
|
|
153
|
+
/**
|
|
154
|
+
* Why a task expired: its time ran out, or a later run of the same work
|
|
155
|
+
* replaced it.
|
|
156
|
+
*/
|
|
157
|
+
export declare type TaskExpiredCause = (typeof TASK_EXPIRED_CAUSES)[number];
|
|
158
|
+
/** Present on an expired task. */
|
|
159
|
+
export interface TaskExpired {
|
|
160
|
+
at: number;
|
|
161
|
+
cause: TaskExpiredCause;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* What a run does when its target still has an open task of the same work.
|
|
165
|
+
* - `SKIP`: raise no new one.
|
|
166
|
+
* - `REPLACE`: expire the open one and raise a new one.
|
|
167
|
+
* - `STACK`: raise another beside it.
|
|
168
|
+
*/
|
|
169
|
+
export declare const TASK_OVERLAPS: readonly ["SKIP", "REPLACE", "STACK"];
|
|
170
|
+
export declare type TaskOverlap = (typeof TASK_OVERLAPS)[number];
|
|
171
|
+
/** One task, as every task read returns it. */
|
|
172
|
+
export interface GetTaskResponse {
|
|
173
|
+
id: string;
|
|
174
|
+
/** The definition the task was raised from. Absent on a task described in full, and on a workflow's own task. */
|
|
175
|
+
templateId?: string;
|
|
176
|
+
templateName?: string;
|
|
177
|
+
title: string;
|
|
178
|
+
instructions?: string;
|
|
179
|
+
priority: TaskPriority;
|
|
180
|
+
status: TaskStatus;
|
|
181
|
+
target: TaskTarget;
|
|
182
|
+
/**
|
|
183
|
+
* The location path the task is filed under: an asset's home, or where it
|
|
184
|
+
* was when it had none; a location's own path.
|
|
185
|
+
*/
|
|
186
|
+
scopePath: string;
|
|
187
|
+
visibility: TaskVisibility;
|
|
188
|
+
/** Present while the task is assigned, and kept on a task that finished while assigned. */
|
|
189
|
+
assignment?: TaskAssignment;
|
|
190
|
+
completion: TaskCompletion;
|
|
191
|
+
/**
|
|
192
|
+
* The instant the task's times are counted from: a scheduled run's
|
|
193
|
+
* occurrence, or the moment the task was raised.
|
|
194
|
+
*/
|
|
195
|
+
scheduledFor: number;
|
|
196
|
+
dueAt?: number;
|
|
197
|
+
expiresAt?: number;
|
|
198
|
+
startedAt?: number;
|
|
199
|
+
source: TaskSource;
|
|
200
|
+
completed?: TaskCompleted;
|
|
201
|
+
cancelled?: TaskCancelled;
|
|
202
|
+
expired?: TaskExpired;
|
|
203
|
+
created: number;
|
|
204
|
+
updated: number;
|
|
205
|
+
/**
|
|
206
|
+
* What the caller may do with the task. Hints for the interface, worked
|
|
207
|
+
* out as the routes work them out, and never authorisation: each route
|
|
208
|
+
* decides again when it is called.
|
|
209
|
+
*/
|
|
210
|
+
isMine: boolean;
|
|
211
|
+
/** Still owed, and past `dueAt`. */
|
|
212
|
+
overdue: boolean;
|
|
213
|
+
canClaim: boolean;
|
|
214
|
+
canRelease: boolean;
|
|
215
|
+
canAssign: boolean;
|
|
216
|
+
canComplete: boolean;
|
|
217
|
+
canCancel: boolean;
|
|
218
|
+
canUpdate: boolean;
|
|
219
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Tasks: a piece of work owed to one target, an asset or a location. A task
|
|
4
|
+
* names the work the way the app already reaches it (a form, a manifest
|
|
5
|
+
* check, a stocktake), and the record that work produces completes it.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TASK_OVERLAPS = exports.TASK_EXPIRED_CAUSES = exports.TASK_COMPLETED_VIA = exports.TASK_ASSIGNMENT_MODES = exports.DEFAULT_TASK_PRIORITY = exports.TASK_PRIORITIES = exports.TASK_COMPLETION_KINDS = exports.TASK_ENTITIES = exports.TASK_LIVE_STATUSES = exports.TASK_STATUSES = void 0;
|
|
9
|
+
exports.TASK_STATUSES = [
|
|
10
|
+
'OPEN',
|
|
11
|
+
'ASSIGNED',
|
|
12
|
+
'COMPLETED',
|
|
13
|
+
'CANCELLED',
|
|
14
|
+
'EXPIRED',
|
|
15
|
+
];
|
|
16
|
+
/** The statuses of a task that is still owed. Every other status is final. */
|
|
17
|
+
exports.TASK_LIVE_STATUSES = ['OPEN', 'ASSIGNED'];
|
|
18
|
+
exports.TASK_ENTITIES = ['asset', 'location'];
|
|
19
|
+
exports.TASK_COMPLETION_KINDS = [
|
|
20
|
+
'SUBMISSION',
|
|
21
|
+
'MANIFEST_CHECK',
|
|
22
|
+
'STOCKTAKE',
|
|
23
|
+
];
|
|
24
|
+
exports.TASK_PRIORITIES = [0, 1, 2, 3];
|
|
25
|
+
exports.DEFAULT_TASK_PRIORITY = 1;
|
|
26
|
+
exports.TASK_ASSIGNMENT_MODES = ['CLAIM', 'DIRECT'];
|
|
27
|
+
exports.TASK_COMPLETED_VIA = ['TASK', 'MATCHED', 'RECONCILED'];
|
|
28
|
+
exports.TASK_EXPIRED_CAUSES = ['EXPIRY', 'REPLACED'];
|
|
29
|
+
/**
|
|
30
|
+
* What a run does when its target still has an open task of the same work.
|
|
31
|
+
* - `SKIP`: raise no new one.
|
|
32
|
+
* - `REPLACE`: expire the open one and raise a new one.
|
|
33
|
+
* - `STACK`: raise another beside it.
|
|
34
|
+
*/
|
|
35
|
+
exports.TASK_OVERLAPS = ['SKIP', 'REPLACE', 'STACK'];
|
|
36
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/tasks/shared.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,aAAa,GAAG;IAC3B,MAAM;IACN,UAAU;IACV,WAAW;IACX,WAAW;IACX,SAAS;CACD,CAAA;AAIV,8EAA8E;AACjE,QAAA,kBAAkB,GAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAEvD,QAAA,aAAa,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAA;AAK9C,QAAA,qBAAqB,GAAG;IACnC,YAAY;IACZ,gBAAgB;IAChB,WAAW;CACH,CAAA;AAQG,QAAA,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAA;AAKvC,QAAA,qBAAqB,GAAiB,CAAC,CAAA;AA0EvC,QAAA,qBAAqB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAA;AAsCpD,QAAA,kBAAkB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,CAAU,CAAA;AA4B/D,QAAA,mBAAmB,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAU,CAAA;AAclE;;;;;GAKG;AACU,QAAA,aAAa,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IEntityMeta, SortOrders, StandardSortFields } from '../shared';
|
|
2
|
+
import { TaskAssignmentDefinition, TaskCompletionDefinition, TaskEntity, TaskPriority, TaskTiming } from '../tasks/shared';
|
|
3
|
+
/**
|
|
4
|
+
* Task definitions: a saved description of a piece of work (what is done, on
|
|
5
|
+
* what kind of target, who it is for and when it falls due) that tasks are
|
|
6
|
+
* raised from. A task copies its definition when it is raised, so editing a
|
|
7
|
+
* definition never changes a task that already exists.
|
|
8
|
+
*/
|
|
9
|
+
/** A definition's audience, as stored: every key present. */
|
|
10
|
+
export declare type TaskTemplateAssignment = Required<TaskAssignmentDefinition>;
|
|
11
|
+
export interface GetTaskTemplateResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* The definition's handle, unique within the organisation whatever its
|
|
15
|
+
* letter case, and never changed once set: tasks and workflows name it.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/** The title its tasks carry. */
|
|
19
|
+
label: string;
|
|
20
|
+
instructions?: string;
|
|
21
|
+
priority: TaskPriority;
|
|
22
|
+
/** What its tasks are done on. */
|
|
23
|
+
entity: TaskEntity;
|
|
24
|
+
assignment: TaskTemplateAssignment;
|
|
25
|
+
completion: TaskCompletionDefinition;
|
|
26
|
+
timing?: TaskTiming;
|
|
27
|
+
meta?: IEntityMeta;
|
|
28
|
+
}
|
|
29
|
+
export declare type TaskTemplateEmbedField = 'meta';
|
|
30
|
+
export interface GetTaskTemplatesQuery {
|
|
31
|
+
page?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
ids?: string[];
|
|
34
|
+
entity?: TaskEntity;
|
|
35
|
+
/** Matches the name and the label. */
|
|
36
|
+
search?: string;
|
|
37
|
+
sort?: StandardSortFields;
|
|
38
|
+
sortOrder?: SortOrders;
|
|
39
|
+
embed?: TaskTemplateEmbedField[];
|
|
40
|
+
}
|
|
41
|
+
export interface GetTaskTemplatesResponse {
|
|
42
|
+
query: GetTaskTemplatesQuery | null;
|
|
43
|
+
total: number;
|
|
44
|
+
items: GetTaskTemplateResponse[];
|
|
45
|
+
}
|
|
46
|
+
export interface PostTaskTemplateRequest {
|
|
47
|
+
name: string;
|
|
48
|
+
label: string;
|
|
49
|
+
instructions?: string;
|
|
50
|
+
priority?: TaskPriority;
|
|
51
|
+
entity: TaskEntity;
|
|
52
|
+
assignment?: TaskAssignmentDefinition;
|
|
53
|
+
completion: TaskCompletionDefinition;
|
|
54
|
+
timing?: TaskTiming;
|
|
55
|
+
}
|
|
56
|
+
export declare type PostTaskTemplateResponse = GetTaskTemplateResponse;
|
|
57
|
+
/**
|
|
58
|
+
* PATCH /tasktemplates/{id}. The name never changes. `assignment`,
|
|
59
|
+
* `completion` and `timing` are each replaced wholesale when sent, and
|
|
60
|
+
* `timing: null` clears it. `entity` cannot change while a workflow uses the
|
|
61
|
+
* definition.
|
|
62
|
+
*/
|
|
63
|
+
export interface UpdateTaskTemplateRequest {
|
|
64
|
+
label?: string;
|
|
65
|
+
instructions?: string | null;
|
|
66
|
+
priority?: TaskPriority;
|
|
67
|
+
entity?: TaskEntity;
|
|
68
|
+
assignment?: TaskAssignmentDefinition;
|
|
69
|
+
completion?: TaskCompletionDefinition;
|
|
70
|
+
timing?: TaskTiming | null;
|
|
71
|
+
}
|
|
72
|
+
export declare type UpdateTaskTemplateResponse = GetTaskTemplateResponse;
|
|
73
|
+
/** GET /tasktemplates/{id}/usage: what would be affected by changing or deleting it. */
|
|
74
|
+
export interface GetTaskTemplateUsageResponse {
|
|
75
|
+
/** The workflows that raise tasks from this definition. */
|
|
76
|
+
workflows: {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}[];
|
|
80
|
+
/** How many tasks raised from it are still owed. */
|
|
81
|
+
openTasks: number;
|
|
82
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tasktemplates/index.ts"],"names":[],"mappings":""}
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TELEMETRY TYPES
|
|
3
|
-
*/
|
|
4
|
-
export interface IAssetTelemetry {
|
|
5
|
-
battery?: number;
|
|
6
|
-
voltage?: number;
|
|
7
|
-
voltageMax?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface IReaderTelemetry {
|
|
10
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* TELEMETRY TYPES
|
|
3
|
+
*/
|
|
4
|
+
export interface IAssetTelemetry {
|
|
5
|
+
battery?: number;
|
|
6
|
+
voltage?: number;
|
|
7
|
+
voltageMax?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IReaderTelemetry {
|
|
10
|
+
}
|
package/dist/telemetry.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=telemetry.js.map
|
package/dist/types/[id]/get.d.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { GetFieldResponse } from '../../fields/[id]/get';
|
|
2
|
-
import { IFieldBindingDelta, ITypeFieldBindingDelta, OptionRule } from '../../fields';
|
|
3
|
-
import { IActionAttachment, IActionAttachmentAll, IEmbeddedEntity, IReadinessRule, IReadinessRuleAll } from '../../shared';
|
|
4
|
-
/**
|
|
5
|
-
* An authored field binding as read back (option rules §2.2, D11): the
|
|
6
|
-
* `{id, name}` stub plus exactly the delta keys the row carries — a bare
|
|
7
|
-
* binding reads back as the stub it always was. Resolved state stays in
|
|
8
|
-
* `fieldsAll`.
|
|
9
|
-
*/
|
|
10
|
-
export declare type IFieldBindingRow = IEmbeddedEntity & IFieldBindingDelta;
|
|
11
|
-
/** An authored type-field row as read back — `{id, name}` plus its delta. */
|
|
12
|
-
export declare type ITypeFieldBindingRow = IEmbeddedEntity & ITypeFieldBindingDelta;
|
|
13
|
-
export interface IFieldValue {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
valueString?: string;
|
|
17
|
-
valueInteger?: number;
|
|
18
|
-
valueDecimal?: number;
|
|
19
|
-
valueBoolean?: boolean;
|
|
20
|
-
valueDate?: string;
|
|
21
|
-
valueDateTime?: Date;
|
|
22
|
-
/** True when the value was derived by a COMPUTED/AGGREGATED binding (read-only). */
|
|
23
|
-
computed?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* A resolved field on a type (own + inherited), carrying its authoring
|
|
27
|
-
* `typePath` and any binding delta (`source`/`expression`/`visibleWhen`,
|
|
28
|
-
* `label`/`required`/`rememberLast`). `options` is the type's PROJECTION —
|
|
29
|
-
* the master minus the field's `discontinued` values (option rules §2.3);
|
|
30
|
-
* `discontinued` itself is read from the field, never from the entry, and a
|
|
31
|
-
* detached field simply has no entry. `optionRules` are THIS type's own only
|
|
32
|
-
* (option rules U2): absent on every descendant's entry unless it authors its
|
|
33
|
-
* own. The server-computed metadata (`referencedFields`/`timeSensitive`) is
|
|
34
|
-
* internal and not surfaced here.
|
|
35
|
-
*/
|
|
36
|
-
export interface IFieldDefinitionAll extends Omit<GetFieldResponse, 'discontinued'>, Omit<IFieldBindingDelta, 'detach'> {
|
|
37
|
-
typePath: string;
|
|
38
|
-
optionRules?: OptionRule[];
|
|
39
|
-
}
|
|
40
|
-
export interface IFieldValueAll extends IFieldValue {
|
|
41
|
-
typePath: string;
|
|
42
|
-
}
|
|
43
|
-
export interface GetTypeResponse {
|
|
44
|
-
id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
fullName?: string;
|
|
47
|
-
parent?: string;
|
|
48
|
-
fullNameTemplate?: string;
|
|
49
|
-
description?: string;
|
|
50
|
-
path?: string;
|
|
51
|
-
fields?: IFieldBindingRow[];
|
|
52
|
-
fieldsAll?: IFieldDefinitionAll[];
|
|
53
|
-
typeFields?: ITypeFieldBindingRow[];
|
|
54
|
-
typeFieldsAll?: IFieldDefinitionAll[];
|
|
55
|
-
typeFieldValues?: IFieldValue[];
|
|
56
|
-
typeFieldValuesAll?: IFieldValueAll[];
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated Use `manifestIds` instead.
|
|
59
|
-
*/
|
|
60
|
-
manifestId?: string;
|
|
61
|
-
manifestIds?: string[];
|
|
62
|
-
supportsStocktake?: boolean;
|
|
63
|
-
/** Assets of this type are kits (containers) — G2G M2. */
|
|
64
|
-
typeKit?: boolean;
|
|
65
|
-
readinessRules?: IReadinessRule[];
|
|
66
|
-
readinessRulesAll?: IReadinessRuleAll[];
|
|
67
|
-
actions?: IActionAttachment[];
|
|
68
|
-
actionsAll?: IActionAttachmentAll[];
|
|
69
|
-
}
|
|
1
|
+
import { GetFieldResponse } from '../../fields/[id]/get';
|
|
2
|
+
import { IFieldBindingDelta, ITypeFieldBindingDelta, OptionRule } from '../../fields';
|
|
3
|
+
import { IActionAttachment, IActionAttachmentAll, IEmbeddedEntity, IReadinessRule, IReadinessRuleAll } from '../../shared';
|
|
4
|
+
/**
|
|
5
|
+
* An authored field binding as read back (option rules §2.2, D11): the
|
|
6
|
+
* `{id, name}` stub plus exactly the delta keys the row carries — a bare
|
|
7
|
+
* binding reads back as the stub it always was. Resolved state stays in
|
|
8
|
+
* `fieldsAll`.
|
|
9
|
+
*/
|
|
10
|
+
export declare type IFieldBindingRow = IEmbeddedEntity & IFieldBindingDelta;
|
|
11
|
+
/** An authored type-field row as read back — `{id, name}` plus its delta. */
|
|
12
|
+
export declare type ITypeFieldBindingRow = IEmbeddedEntity & ITypeFieldBindingDelta;
|
|
13
|
+
export interface IFieldValue {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
valueString?: string;
|
|
17
|
+
valueInteger?: number;
|
|
18
|
+
valueDecimal?: number;
|
|
19
|
+
valueBoolean?: boolean;
|
|
20
|
+
valueDate?: string;
|
|
21
|
+
valueDateTime?: Date;
|
|
22
|
+
/** True when the value was derived by a COMPUTED/AGGREGATED binding (read-only). */
|
|
23
|
+
computed?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A resolved field on a type (own + inherited), carrying its authoring
|
|
27
|
+
* `typePath` and any binding delta (`source`/`expression`/`visibleWhen`,
|
|
28
|
+
* `label`/`required`/`rememberLast`). `options` is the type's PROJECTION —
|
|
29
|
+
* the master minus the field's `discontinued` values (option rules §2.3);
|
|
30
|
+
* `discontinued` itself is read from the field, never from the entry, and a
|
|
31
|
+
* detached field simply has no entry. `optionRules` are THIS type's own only
|
|
32
|
+
* (option rules U2): absent on every descendant's entry unless it authors its
|
|
33
|
+
* own. The server-computed metadata (`referencedFields`/`timeSensitive`) is
|
|
34
|
+
* internal and not surfaced here.
|
|
35
|
+
*/
|
|
36
|
+
export interface IFieldDefinitionAll extends Omit<GetFieldResponse, 'discontinued'>, Omit<IFieldBindingDelta, 'detach'> {
|
|
37
|
+
typePath: string;
|
|
38
|
+
optionRules?: OptionRule[];
|
|
39
|
+
}
|
|
40
|
+
export interface IFieldValueAll extends IFieldValue {
|
|
41
|
+
typePath: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GetTypeResponse {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
fullName?: string;
|
|
47
|
+
parent?: string;
|
|
48
|
+
fullNameTemplate?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
path?: string;
|
|
51
|
+
fields?: IFieldBindingRow[];
|
|
52
|
+
fieldsAll?: IFieldDefinitionAll[];
|
|
53
|
+
typeFields?: ITypeFieldBindingRow[];
|
|
54
|
+
typeFieldsAll?: IFieldDefinitionAll[];
|
|
55
|
+
typeFieldValues?: IFieldValue[];
|
|
56
|
+
typeFieldValuesAll?: IFieldValueAll[];
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use `manifestIds` instead.
|
|
59
|
+
*/
|
|
60
|
+
manifestId?: string;
|
|
61
|
+
manifestIds?: string[];
|
|
62
|
+
supportsStocktake?: boolean;
|
|
63
|
+
/** Assets of this type are kits (containers) — G2G M2. */
|
|
64
|
+
typeKit?: boolean;
|
|
65
|
+
readinessRules?: IReadinessRule[];
|
|
66
|
+
readinessRulesAll?: IReadinessRuleAll[];
|
|
67
|
+
actions?: IActionAttachment[];
|
|
68
|
+
actionsAll?: IActionAttachmentAll[];
|
|
69
|
+
}
|
package/dist/types/[id]/get.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=get.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './patch';
|
|
2
|
-
export * from './get';
|
|
1
|
+
export * from './patch';
|
|
2
|
+
export * from './get';
|
package/dist/types/[id]/index.js
CHANGED
|
@@ -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("./patch"), exports);
|
|
18
|
-
__exportStar(require("./get"), 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("./patch"), exports);
|
|
18
|
+
__exportStar(require("./get"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './request';
|
|
2
|
-
export * from './response';
|
|
1
|
+
export * from './request';
|
|
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("./request"), 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("./request"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|