@openxiot/xiot-core-spec-ts 0.0.2
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/index.d.ts +315 -0
- package/dist/index.js +331 -0
- package/dist/xiot/core/spec/codec/app/ApplicationCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/app/ApplicationCodec.js +50 -0
- package/dist/xiot/core/spec/codec/app/authorization/AuthorizationCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/authorization/AuthorizationCodec.js +41 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationEventbusImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationEventbusImplCodec.js +15 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationHttpImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationHttpImplCodec.js +15 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationJwtImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/authorization/impl/AuthorizationJwtImplCodec.js +14 -0
- package/dist/xiot/core/spec/codec/app/event/EventReceiverCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/event/EventReceiverCodec.js +41 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverEventbusImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverEventbusImplCodec.js +15 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverHttpImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverHttpImplCodec.js +15 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverKafkaImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/app/event/impl/EventReceiverKafkaImplCodec.js +18 -0
- package/dist/xiot/core/spec/codec/definition/ActionDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/ActionDefinitionCodec.js +43 -0
- package/dist/xiot/core/spec/codec/definition/ArgumentDefinitionCodec.d.ts +8 -0
- package/dist/xiot/core/spec/codec/definition/ArgumentDefinitionCodec.js +48 -0
- package/dist/xiot/core/spec/codec/definition/CategoryDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/CategoryDefinitionCodec.js +32 -0
- package/dist/xiot/core/spec/codec/definition/DescriptionCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/definition/DescriptionCodec.js +32 -0
- package/dist/xiot/core/spec/codec/definition/DeviceDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/DeviceDefinitionCodec.js +38 -0
- package/dist/xiot/core/spec/codec/definition/EventDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/EventDefinitionCodec.js +39 -0
- package/dist/xiot/core/spec/codec/definition/FormatDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/FormatDefinitionCodec.js +34 -0
- package/dist/xiot/core/spec/codec/definition/NamespaceDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/NamespaceDefinitionCodec.js +32 -0
- package/dist/xiot/core/spec/codec/definition/PropertyDefinitionCodec.d.ts +9 -0
- package/dist/xiot/core/spec/codec/definition/PropertyDefinitionCodec.js +95 -0
- package/dist/xiot/core/spec/codec/definition/ServiceDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/ServiceDefinitionCodec.js +71 -0
- package/dist/xiot/core/spec/codec/definition/UnitDefinitionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/definition/UnitDefinitionCodec.js +34 -0
- package/dist/xiot/core/spec/codec/definition/ValueListCodec.d.ts +6 -0
- package/dist/xiot/core/spec/codec/definition/ValueListCodec.js +31 -0
- package/dist/xiot/core/spec/codec/definition/ValueRangeCodec.d.ts +6 -0
- package/dist/xiot/core/spec/codec/definition/ValueRangeCodec.js +13 -0
- package/dist/xiot/core/spec/codec/definition/type/ActionTypeCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/definition/type/ActionTypeCodec.js +28 -0
- package/dist/xiot/core/spec/codec/definition/type/EventTypeCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/definition/type/EventTypeCodec.js +28 -0
- package/dist/xiot/core/spec/codec/definition/type/GroupTypeCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/definition/type/GroupTypeCodec.js +28 -0
- package/dist/xiot/core/spec/codec/definition/type/PropertyTypeCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/definition/type/PropertyTypeCodec.js +28 -0
- package/dist/xiot/core/spec/codec/definition/type/ServiceTypeCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/definition/type/ServiceTypeCodec.js +28 -0
- package/dist/xiot/core/spec/codec/device/DeviceCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/device/DeviceCodec.js +51 -0
- package/dist/xiot/core/spec/codec/image/ActionImageCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/image/ActionImageCodec.js +25 -0
- package/dist/xiot/core/spec/codec/image/ArgumentImageCodec.d.ts +8 -0
- package/dist/xiot/core/spec/codec/image/ArgumentImageCodec.js +44 -0
- package/dist/xiot/core/spec/codec/image/DeviceImageCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/image/DeviceImageCodec.js +17 -0
- package/dist/xiot/core/spec/codec/image/EventImageCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/image/EventImageCodec.js +27 -0
- package/dist/xiot/core/spec/codec/image/PropertyImageCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/image/PropertyImageCodec.js +18 -0
- package/dist/xiot/core/spec/codec/image/ServiceImageCodec.d.ts +4 -0
- package/dist/xiot/core/spec/codec/image/ServiceImageCodec.js +42 -0
- package/dist/xiot/core/spec/codec/instance/ActionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/instance/ActionCodec.js +49 -0
- package/dist/xiot/core/spec/codec/instance/ArgumentCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/instance/ArgumentCodec.js +44 -0
- package/dist/xiot/core/spec/codec/instance/DeviceInstanceCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/instance/DeviceInstanceCodec.js +25 -0
- package/dist/xiot/core/spec/codec/instance/EventCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/instance/EventCodec.js +45 -0
- package/dist/xiot/core/spec/codec/instance/PropertyCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/instance/PropertyCodec.js +98 -0
- package/dist/xiot/core/spec/codec/instance/ServiceCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/instance/ServiceCodec.js +55 -0
- package/dist/xiot/core/spec/codec/jwt/JwtCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/jwt/JwtCodec.js +41 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtEsImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtEsImplCodec.js +26 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtRsaImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtRsaImplCodec.js +26 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtSecretsImplCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/jwt/impl/JwtSecretsImplCodec.js +24 -0
- package/dist/xiot/core/spec/codec/key/AccessKeyCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/key/AccessKeyCodec.js +18 -0
- package/dist/xiot/core/spec/codec/key/DeviceCertCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/key/DeviceCertCodec.js +36 -0
- package/dist/xiot/core/spec/codec/key/DeviceKeyCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/key/DeviceKeyCodec.js +24 -0
- package/dist/xiot/core/spec/codec/lifecycle/app/ApplicationWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/app/ApplicationWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/ActionDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/ActionDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/DeviceDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/DeviceDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/EventDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/EventDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/FormatDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/FormatDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/PropertyDefinitionWithLifecycleCodec.d.ts +8 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/PropertyDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/ServiceDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/ServiceDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/UnitDefinitionWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/definition/UnitDefinitionWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/instance/DeviceInstanceWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/instance/DeviceInstanceWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/product/VersionWithLifecycleCodec.d.ts +10 -0
- package/dist/xiot/core/spec/codec/lifecycle/product/VersionWithLifecycleCodec.js +42 -0
- package/dist/xiot/core/spec/codec/lifecycle/template/DeviceTemplateWithLifecycleCodec.d.ts +11 -0
- package/dist/xiot/core/spec/codec/lifecycle/template/DeviceTemplateWithLifecycleCodec.js +38 -0
- package/dist/xiot/core/spec/codec/lifecycle/type/DeviceTypeWithLifecycleCodec.d.ts +12 -0
- package/dist/xiot/core/spec/codec/lifecycle/type/DeviceTypeWithLifecycleCodec.js +36 -0
- package/dist/xiot/core/spec/codec/notice/DeviceNoticeCodec.d.ts +8 -0
- package/dist/xiot/core/spec/codec/notice/DeviceNoticeCodec.js +122 -0
- package/dist/xiot/core/spec/codec/notice/OwnerNoticeCodec.d.ts +8 -0
- package/dist/xiot/core/spec/codec/notice/OwnerNoticeCodec.js +220 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceAccessKeyChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceAccessKeyChangedCodec.js +19 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceChildrenAddedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceChildrenAddedCodec.js +20 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceChildrenRemovedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceChildrenRemovedCodec.js +19 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceEventOccurredCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceEventOccurredCodec.js +18 -0
- package/dist/xiot/core/spec/codec/notice/device/DevicePropertiesChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DevicePropertiesChangedCodec.js +18 -0
- package/dist/xiot/core/spec/codec/notice/device/DevicePropertyChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DevicePropertyChangedCodec.js +18 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceRootActiveCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceRootActiveCodec.js +20 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceRootInactiveCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceRootInactiveCodec.js +16 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceSummaryChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/device/DeviceSummaryChangedCodec.js +20 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceAddedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceAddedCodec.js +23 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceRemovedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceRemovedCodec.js +19 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceSomewhereChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceSomewhereChangedCodec.js +26 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceSummaryChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerDeviceSummaryChangedCodec.js +26 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerEventOccurredCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerEventOccurredCodec.js +20 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerPropertiesChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerPropertiesChangedCodec.js +21 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleAddedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleAddedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleChangedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleExecutedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleExecutedCodec.js +47 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleRemovedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleRemovedCodec.js +23 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleTriggeredCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnerRuleTriggeredCodec.js +23 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnershipDisclaimedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnershipDisclaimedCodec.js +19 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnershipTakenCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/OwnershipTakenCodec.js +19 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeAddedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeAddedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeChangedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeRemovedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/home/OwnerHomeRemovedCodec.js +23 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceAddedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceAddedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceChangedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceChangedCodec.js +24 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceRemovedCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/notice/owner/space/OwnerSpaceRemovedCodec.js +23 -0
- package/dist/xiot/core/spec/codec/oauth2/Oauth2ConfigurationCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/oauth2/Oauth2ConfigurationCodec.js +49 -0
- package/dist/xiot/core/spec/codec/operation/AbstractOperationCodec.d.ts +10 -0
- package/dist/xiot/core/spec/codec/operation/AbstractOperationCodec.js +27 -0
- package/dist/xiot/core/spec/codec/operation/ActionOperationCodec.d.ts +14 -0
- package/dist/xiot/core/spec/codec/operation/ActionOperationCodec.js +84 -0
- package/dist/xiot/core/spec/codec/operation/ArgumentOperationCodec.d.ts +10 -0
- package/dist/xiot/core/spec/codec/operation/ArgumentOperationCodec.js +65 -0
- package/dist/xiot/core/spec/codec/operation/CombinationValueCodec.d.ts +6 -0
- package/dist/xiot/core/spec/codec/operation/CombinationValueCodec.js +70 -0
- package/dist/xiot/core/spec/codec/operation/EventOperationCodec.d.ts +14 -0
- package/dist/xiot/core/spec/codec/operation/EventOperationCodec.js +63 -0
- package/dist/xiot/core/spec/codec/operation/PropertyOperationCodec.d.ts +31 -0
- package/dist/xiot/core/spec/codec/operation/PropertyOperationCodec.js +151 -0
- package/dist/xiot/core/spec/codec/operation/RuleOperationCodec.d.ts +14 -0
- package/dist/xiot/core/spec/codec/operation/RuleOperationCodec.js +43 -0
- package/dist/xiot/core/spec/codec/ownership/DeviceOwnerCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/ownership/DeviceOwnerCodec.js +37 -0
- package/dist/xiot/core/spec/codec/ownership/OwnershipCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/ownership/OwnershipCodec.js +62 -0
- package/dist/xiot/core/spec/codec/product/ProductCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/product/ProductCodec.js +76 -0
- package/dist/xiot/core/spec/codec/product/ProductVersionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/product/ProductVersionCodec.js +69 -0
- package/dist/xiot/core/spec/codec/product/resource/ProductResourceCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/product/resource/ProductResourceCodec.js +45 -0
- package/dist/xiot/core/spec/codec/product/resource/ProductResourceVersionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/product/resource/ProductResourceVersionCodec.js +69 -0
- package/dist/xiot/core/spec/codec/product/resource/ResourceVersionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/product/resource/ResourceVersionCodec.js +65 -0
- package/dist/xiot/core/spec/codec/rbac/PermissionCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rbac/PermissionCodec.js +35 -0
- package/dist/xiot/core/spec/codec/rbac/RoleCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rbac/RoleCodec.js +34 -0
- package/dist/xiot/core/spec/codec/rbac/account/AccountCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rbac/account/AccountCodec.js +38 -0
- package/dist/xiot/core/spec/codec/rbac/organization/MemberCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rbac/organization/MemberCodec.js +34 -0
- package/dist/xiot/core/spec/codec/rbac/organization/OrganizationCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rbac/organization/OrganizationCodec.js +33 -0
- package/dist/xiot/core/spec/codec/rule/RuleCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/rule/RuleCodec.js +74 -0
- package/dist/xiot/core/spec/codec/shadow/DeviceShadowCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/shadow/DeviceShadowCodec.js +38 -0
- package/dist/xiot/core/spec/codec/shadow/ShadowCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/shadow/ShadowCodec.js +51 -0
- package/dist/xiot/core/spec/codec/somewhere/SomewhereCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/somewhere/SomewhereCodec.js +50 -0
- package/dist/xiot/core/spec/codec/space/SpaceCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/space/SpaceCodec.js +45 -0
- package/dist/xiot/core/spec/codec/summary/SummaryCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/summary/SummaryCodec.js +82 -0
- package/dist/xiot/core/spec/codec/template/ActionTemplateCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/template/ActionTemplateCodec.js +55 -0
- package/dist/xiot/core/spec/codec/template/DeviceTemplateCodec.d.ts +5 -0
- package/dist/xiot/core/spec/codec/template/DeviceTemplateCodec.js +24 -0
- package/dist/xiot/core/spec/codec/template/EventTemplateCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/template/EventTemplateCodec.js +51 -0
- package/dist/xiot/core/spec/codec/template/PropertyTemplateCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/template/PropertyTemplateCodec.js +78 -0
- package/dist/xiot/core/spec/codec/template/ServiceTemplateCodec.d.ts +7 -0
- package/dist/xiot/core/spec/codec/template/ServiceTemplateCodec.js +67 -0
- package/dist/xiot/core/spec/typedef/app/Application.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/app/Application.js +13 -0
- package/dist/xiot/core/spec/typedef/app/authorization/Authorization.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/authorization/Authorization.js +9 -0
- package/dist/xiot/core/spec/typedef/app/authorization/AuthorizationType.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/app/authorization/AuthorizationType.js +25 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationEventbusImpl.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationEventbusImpl.js +12 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationHttpImpl.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationHttpImpl.js +12 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationJwtImpl.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/app/authorization/impl/AuthorizationJwtImpl.js +12 -0
- package/dist/xiot/core/spec/typedef/app/event/EventReceiver.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/event/EventReceiver.js +9 -0
- package/dist/xiot/core/spec/typedef/app/event/EventReceiverType.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/app/event/EventReceiverType.js +25 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverEventbusImpl.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverEventbusImpl.js +12 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverHttpImpl.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverHttpImpl.js +12 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverKafkaImpl.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/app/event/impl/EventReceiverKafkaImpl.js +13 -0
- package/dist/xiot/core/spec/typedef/constant/Spec.d.ts +48 -0
- package/dist/xiot/core/spec/typedef/constant/Spec.js +52 -0
- package/dist/xiot/core/spec/typedef/definition/ActionDefinition.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/definition/ActionDefinition.js +21 -0
- package/dist/xiot/core/spec/typedef/definition/ArgumentDefinition.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/definition/ArgumentDefinition.js +11 -0
- package/dist/xiot/core/spec/typedef/definition/CategoryDefinition.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/CategoryDefinition.js +12 -0
- package/dist/xiot/core/spec/typedef/definition/DeviceDefinition.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/definition/DeviceDefinition.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/EventDefinition.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/definition/EventDefinition.js +17 -0
- package/dist/xiot/core/spec/typedef/definition/FormatDefinition.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/definition/FormatDefinition.js +11 -0
- package/dist/xiot/core/spec/typedef/definition/NamespaceDefinition.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/NamespaceDefinition.js +12 -0
- package/dist/xiot/core/spec/typedef/definition/PropertyDefinition.d.ts +24 -0
- package/dist/xiot/core/spec/typedef/definition/PropertyDefinition.js +71 -0
- package/dist/xiot/core/spec/typedef/definition/ServiceDefinition.d.ts +15 -0
- package/dist/xiot/core/spec/typedef/definition/ServiceDefinition.js +37 -0
- package/dist/xiot/core/spec/typedef/definition/UnitDefinition.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/definition/UnitDefinition.js +11 -0
- package/dist/xiot/core/spec/typedef/definition/property/Access.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/definition/property/Access.js +87 -0
- package/dist/xiot/core/spec/typedef/definition/property/ConstraintValue.d.ts +4 -0
- package/dist/xiot/core/spec/typedef/definition/property/ConstraintValue.js +2 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueDefinition.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueDefinition.js +12 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueList.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueList.js +21 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueRange.d.ts +18 -0
- package/dist/xiot/core/spec/typedef/definition/property/ValueRange.js +103 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataFormat.d.ts +23 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataFormat.js +96 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataValue.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataValue.js +2 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataValueFactory.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/DataValueFactory.js +115 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vbool.d.ts +12 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vbool.js +53 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vcombination.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vcombination.js +33 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vfloat.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vfloat.js +67 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vhex.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vhex.js +80 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint16.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint16.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint32.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint32.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint64.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint64.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint8.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vint8.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vstring.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vstring.js +36 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vtlv8.d.ts +12 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vtlv8.js +39 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint16.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint16.js +71 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint32.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint32.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint8.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/definition/property/data/value/Vuint8.js +65 -0
- package/dist/xiot/core/spec/typedef/definition/urn/ActionType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/ActionType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/DeviceType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/DeviceType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/EventType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/EventType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/Extendable.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/definition/urn/Extendable.js +18 -0
- package/dist/xiot/core/spec/typedef/definition/urn/FormatType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/FormatType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/GroupType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/GroupType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/PropertyType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/PropertyType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/ServiceType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/ServiceType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UnitType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UnitType.js +14 -0
- package/dist/xiot/core/spec/typedef/definition/urn/Urn.d.ts +24 -0
- package/dist/xiot/core/spec/typedef/definition/urn/Urn.js +146 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UrnStyle.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UrnStyle.js +11 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UrnType.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/definition/urn/UrnType.js +30 -0
- package/dist/xiot/core/spec/typedef/device/Device.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/device/Device.js +9 -0
- package/dist/xiot/core/spec/typedef/error/IotError.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/error/IotError.js +13 -0
- package/dist/xiot/core/spec/typedef/image/ActionImage.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/image/ActionImage.js +76 -0
- package/dist/xiot/core/spec/typedef/image/ArgumentImage.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/image/ArgumentImage.js +30 -0
- package/dist/xiot/core/spec/typedef/image/DeviceImage.d.ts +31 -0
- package/dist/xiot/core/spec/typedef/image/DeviceImage.js +283 -0
- package/dist/xiot/core/spec/typedef/image/EventImage.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/image/EventImage.js +48 -0
- package/dist/xiot/core/spec/typedef/image/PropertyImage.d.ts +22 -0
- package/dist/xiot/core/spec/typedef/image/PropertyImage.js +73 -0
- package/dist/xiot/core/spec/typedef/image/ServiceImage.d.ts +21 -0
- package/dist/xiot/core/spec/typedef/image/ServiceImage.js +172 -0
- package/dist/xiot/core/spec/typedef/instance/Action.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/instance/Action.js +33 -0
- package/dist/xiot/core/spec/typedef/instance/Argument.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/instance/Argument.js +18 -0
- package/dist/xiot/core/spec/typedef/instance/DeviceInstance.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/instance/DeviceInstance.js +17 -0
- package/dist/xiot/core/spec/typedef/instance/Event.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/instance/Event.js +23 -0
- package/dist/xiot/core/spec/typedef/instance/Property.d.ts +56 -0
- package/dist/xiot/core/spec/typedef/instance/Property.js +244 -0
- package/dist/xiot/core/spec/typedef/instance/PropertyValue.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/instance/PropertyValue.js +81 -0
- package/dist/xiot/core/spec/typedef/instance/Service.d.ts +19 -0
- package/dist/xiot/core/spec/typedef/instance/Service.js +48 -0
- package/dist/xiot/core/spec/typedef/jwt/Jwt.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/jwt/Jwt.js +16 -0
- package/dist/xiot/core/spec/typedef/jwt/JwtType.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/jwt/JwtType.js +25 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtEsImpl.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtEsImpl.js +15 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtRsaImpl.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtRsaImpl.js +15 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtSecretsImpl.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/jwt/impl/JwtSecretsImpl.js +13 -0
- package/dist/xiot/core/spec/typedef/key/AccessKey.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/key/AccessKey.js +10 -0
- package/dist/xiot/core/spec/typedef/key/DeviceCert.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/key/DeviceCert.js +12 -0
- package/dist/xiot/core/spec/typedef/key/DeviceKey.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/key/DeviceKey.js +13 -0
- package/dist/xiot/core/spec/typedef/lifecycle/Lifecycle.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/lifecycle/Lifecycle.js +25 -0
- package/dist/xiot/core/spec/typedef/lifecycle/ObjectWithLifecycle.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/lifecycle/ObjectWithLifecycle.js +10 -0
- package/dist/xiot/core/spec/typedef/notice/Notice.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/Notice.js +9 -0
- package/dist/xiot/core/spec/typedef/notice/NoticeCodec.d.ts +27 -0
- package/dist/xiot/core/spec/typedef/notice/NoticeCodec.js +6 -0
- package/dist/xiot/core/spec/typedef/notice/device/DeviceNotice.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/device/DeviceNotice.js +13 -0
- package/dist/xiot/core/spec/typedef/notice/device/DeviceNoticeType.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/notice/device/DeviceNoticeType.js +31 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceAccessKeyChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceAccessKeyChanged.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceChildrenAdded.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceChildrenAdded.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceChildrenRemoved.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceChildrenRemoved.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceEventOccurred.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceEventOccurred.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DevicePropertiesChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DevicePropertiesChanged.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DevicePropertyChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DevicePropertyChanged.js +17 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceRootActive.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceRootActive.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceRootInactive.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceRootInactive.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceSummaryChanged.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/device/impl/DeviceSummaryChanged.js +17 -0
- package/dist/xiot/core/spec/typedef/notice/owner/OwnerNotice.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/notice/owner/OwnerNotice.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/owner/OwnerNoticeType.d.ts +42 -0
- package/dist/xiot/core/spec/typedef/notice/owner/OwnerNoticeType.js +59 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceAdded.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceAdded.js +17 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceRemoved.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceRemoved.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceSomewhereChanged.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceSomewhereChanged.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceSummaryChanged.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerDeviceSummaryChanged.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerEventOccurred.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerEventOccurred.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerPropertiesChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerPropertiesChanged.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleAdded.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleAdded.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleChanged.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleExecuted.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleExecuted.js +16 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleRemoved.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleRemoved.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleTriggered.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnerRuleTriggered.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnershipDisclaimed.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnershipDisclaimed.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnershipTaken.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/OwnershipTaken.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeAdded.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeAdded.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeChanged.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeRemoved.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/home/OwnerHomeRemoved.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceAdded.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceAdded.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceChanged.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceChanged.js +15 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceRemoved.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/notice/owner/impl/space/OwnerSpaceRemoved.js +15 -0
- package/dist/xiot/core/spec/typedef/oauth2/Oauth2Configuration.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/oauth2/Oauth2Configuration.js +19 -0
- package/dist/xiot/core/spec/typedef/operation/AbstractOperation.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/operation/AbstractOperation.js +21 -0
- package/dist/xiot/core/spec/typedef/operation/ActionOperation.d.ts +17 -0
- package/dist/xiot/core/spec/typedef/operation/ActionOperation.js +50 -0
- package/dist/xiot/core/spec/typedef/operation/ArgumentOperation.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/operation/ArgumentOperation.js +52 -0
- package/dist/xiot/core/spec/typedef/operation/EventOperation.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/operation/EventOperation.js +58 -0
- package/dist/xiot/core/spec/typedef/operation/PropertyOperation.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/operation/PropertyOperation.js +53 -0
- package/dist/xiot/core/spec/typedef/operation/RemindOperation.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/operation/RemindOperation.js +25 -0
- package/dist/xiot/core/spec/typedef/operation/RuleOperation.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/operation/RuleOperation.js +25 -0
- package/dist/xiot/core/spec/typedef/operation/SleepOperation.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/operation/SleepOperation.js +25 -0
- package/dist/xiot/core/spec/typedef/operation/value/AnyValue.d.ts +3 -0
- package/dist/xiot/core/spec/typedef/operation/value/AnyValue.js +9 -0
- package/dist/xiot/core/spec/typedef/operation/value/AutoscalingValue.d.ts +3 -0
- package/dist/xiot/core/spec/typedef/operation/value/AutoscalingValue.js +9 -0
- package/dist/xiot/core/spec/typedef/operation/value/ReverseValue.d.ts +3 -0
- package/dist/xiot/core/spec/typedef/operation/value/ReverseValue.js +9 -0
- package/dist/xiot/core/spec/typedef/ownership/DeviceOwner.d.ts +4 -0
- package/dist/xiot/core/spec/typedef/ownership/DeviceOwner.js +10 -0
- package/dist/xiot/core/spec/typedef/ownership/Ownership.d.ts +12 -0
- package/dist/xiot/core/spec/typedef/ownership/Ownership.js +26 -0
- package/dist/xiot/core/spec/typedef/product/Product.d.ts +22 -0
- package/dist/xiot/core/spec/typedef/product/Product.js +25 -0
- package/dist/xiot/core/spec/typedef/product/ProductVersion.d.ts +17 -0
- package/dist/xiot/core/spec/typedef/product/ProductVersion.js +24 -0
- package/dist/xiot/core/spec/typedef/product/resource/ProductResource.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/product/resource/ProductResource.js +13 -0
- package/dist/xiot/core/spec/typedef/product/resource/ProductResourceVersion.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/product/resource/ProductResourceVersion.js +12 -0
- package/dist/xiot/core/spec/typedef/product/resource/ResourceVersion.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/product/resource/ResourceVersion.js +30 -0
- package/dist/xiot/core/spec/typedef/rbac/Permission.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/rbac/Permission.js +13 -0
- package/dist/xiot/core/spec/typedef/rbac/Role.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/rbac/Role.js +12 -0
- package/dist/xiot/core/spec/typedef/rbac/account/Account.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/rbac/account/Account.js +16 -0
- package/dist/xiot/core/spec/typedef/rbac/organization/Member.d.ts +12 -0
- package/dist/xiot/core/spec/typedef/rbac/organization/Member.js +22 -0
- package/dist/xiot/core/spec/typedef/rbac/organization/Organization.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/rbac/organization/Organization.js +12 -0
- package/dist/xiot/core/spec/typedef/registry/DeviceRegistry.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/registry/DeviceRegistry.js +7 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/AccessPoint.d.ts +4 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/AccessPoint.js +10 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/AccessPointType.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/AccessPointType.js +24 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/impl/AccessPointEventbus.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/impl/AccessPointEventbus.js +12 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/impl/AccessPointHttp.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/registry/accesspoint/impl/AccessPointHttp.js +13 -0
- package/dist/xiot/core/spec/typedef/rule/Rule.d.ts +44 -0
- package/dist/xiot/core/spec/typedef/rule/Rule.js +174 -0
- package/dist/xiot/core/spec/typedef/rule/RuleContent.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/rule/RuleContent.js +56 -0
- package/dist/xiot/core/spec/typedef/rule/RuleType.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/rule/RuleType.js +11 -0
- package/dist/xiot/core/spec/typedef/rule/condition/AbstractCondition.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/rule/condition/AbstractCondition.js +12 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ComplexCondition.d.ts +17 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ComplexCondition.js +57 -0
- package/dist/xiot/core/spec/typedef/rule/condition/EventCondition.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/rule/condition/EventCondition.js +59 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ExternalCondition.d.ts +19 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ExternalCondition.js +43 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ExternalType.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/rule/condition/ExternalType.js +9 -0
- package/dist/xiot/core/spec/typedef/rule/condition/NowCondition.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/rule/condition/NowCondition.js +15 -0
- package/dist/xiot/core/spec/typedef/rule/condition/PropertyCondition.d.ts +19 -0
- package/dist/xiot/core/spec/typedef/rule/condition/PropertyCondition.js +48 -0
- package/dist/xiot/core/spec/typedef/rule/condition/TimeCondition.d.ts +14 -0
- package/dist/xiot/core/spec/typedef/rule/condition/TimeCondition.js +85 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/ComparisonOperator.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/ComparisonOperator.js +32 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/LogicalOperator.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/LogicalOperator.js +22 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/compare/Comparator.d.ts +2 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/compare/Comparator.js +20 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/compare/Compare.d.ts +21 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/compare/Compare.js +67 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/logical/Logic.d.ts +2 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/logical/Logic.js +16 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/logical/Logical.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/rule/condition/operator/logical/Logical.js +15 -0
- package/dist/xiot/core/spec/typedef/rule/cron/CronExp.d.ts +31 -0
- package/dist/xiot/core/spec/typedef/rule/cron/CronExp.js +102 -0
- package/dist/xiot/core/spec/typedef/rule/listener/RuleExecutionListener.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/rule/listener/RuleExecutionListener.js +2 -0
- package/dist/xiot/core/spec/typedef/rule/parser/RuleContentParser.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/rule/parser/RuleContentParser.js +70 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/ConditionParser.d.ts +17 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/ConditionParser.js +72 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser0/Parser0.d.ts +28 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser0/Parser0.js +148 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser1/Parser1.d.ts +16 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser1/Parser1.js +90 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/Parser2.d.ts +31 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/Parser2.js +289 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/ParserState2.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/ParserState2.js +17 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/Token2.d.ts +22 -0
- package/dist/xiot/core/spec/typedef/rule/parser/condition/parser2/Token2.js +68 -0
- package/dist/xiot/core/spec/typedef/rule/parser/operation/OperationParser.d.ts +31 -0
- package/dist/xiot/core/spec/typedef/rule/parser/operation/OperationParser.js +331 -0
- package/dist/xiot/core/spec/typedef/rule/parser/operation/OperationState.d.ts +19 -0
- package/dist/xiot/core/spec/typedef/rule/parser/operation/OperationState.js +23 -0
- package/dist/xiot/core/spec/typedef/rule/parser/token/Token.d.ts +91 -0
- package/dist/xiot/core/spec/typedef/rule/parser/token/Token.js +269 -0
- package/dist/xiot/core/spec/typedef/rule/parser/token/Tokenizer.d.ts +29 -0
- package/dist/xiot/core/spec/typedef/rule/parser/token/Tokenizer.js +483 -0
- package/dist/xiot/core/spec/typedef/shadow/DeviceShadow.d.ts +5 -0
- package/dist/xiot/core/spec/typedef/shadow/DeviceShadow.js +10 -0
- package/dist/xiot/core/spec/typedef/shadow/Shadow.d.ts +7 -0
- package/dist/xiot/core/spec/typedef/shadow/Shadow.js +13 -0
- package/dist/xiot/core/spec/typedef/somewhere/Somewhere.d.ts +11 -0
- package/dist/xiot/core/spec/typedef/somewhere/Somewhere.js +45 -0
- package/dist/xiot/core/spec/typedef/somewhere/Where.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/somewhere/Where.js +26 -0
- package/dist/xiot/core/spec/typedef/space/Space.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/space/Space.js +20 -0
- package/dist/xiot/core/spec/typedef/status/AbstractStatus.d.ts +8 -0
- package/dist/xiot/core/spec/typedef/status/AbstractStatus.js +23 -0
- package/dist/xiot/core/spec/typedef/status/Status.d.ts +50 -0
- package/dist/xiot/core/spec/typedef/status/Status.js +54 -0
- package/dist/xiot/core/spec/typedef/summary/Summary.d.ts +24 -0
- package/dist/xiot/core/spec/typedef/summary/Summary.js +120 -0
- package/dist/xiot/core/spec/typedef/template/ActionTemplate.d.ts +17 -0
- package/dist/xiot/core/spec/typedef/template/ActionTemplate.js +33 -0
- package/dist/xiot/core/spec/typedef/template/DeviceTemplate.d.ts +12 -0
- package/dist/xiot/core/spec/typedef/template/DeviceTemplate.js +23 -0
- package/dist/xiot/core/spec/typedef/template/EventTemplate.d.ts +15 -0
- package/dist/xiot/core/spec/typedef/template/EventTemplate.js +26 -0
- package/dist/xiot/core/spec/typedef/template/PropertyTemplate.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/template/PropertyTemplate.js +16 -0
- package/dist/xiot/core/spec/typedef/template/ServiceTemplate.d.ts +24 -0
- package/dist/xiot/core/spec/typedef/template/ServiceTemplate.js +46 -0
- package/dist/xiot/core/spec/typedef/utils/Stack.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/utils/Stack.js +35 -0
- package/dist/xiot/core/spec/typedef/utils/StringUtils.d.ts +3 -0
- package/dist/xiot/core/spec/typedef/utils/StringUtils.js +14 -0
- package/dist/xiot/core/spec/typedef/utils/TemplateHelper.d.ts +30 -0
- package/dist/xiot/core/spec/typedef/utils/TemplateHelper.js +285 -0
- package/dist/xiot/core/spec/typedef/version/Version.d.ts +9 -0
- package/dist/xiot/core/spec/typedef/version/Version.js +40 -0
- package/dist/xiot/core/spec/typedef/xid/ActionID.d.ts +13 -0
- package/dist/xiot/core/spec/typedef/xid/ActionID.js +27 -0
- package/dist/xiot/core/spec/typedef/xid/EventID.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/xid/EventID.js +20 -0
- package/dist/xiot/core/spec/typedef/xid/PropertyID.d.ts +6 -0
- package/dist/xiot/core/spec/typedef/xid/PropertyID.js +20 -0
- package/dist/xiot/core/spec/typedef/xid/XID3.d.ts +10 -0
- package/dist/xiot/core/spec/typedef/xid/XID3.js +41 -0
- package/dist/xiot/core/support/codegen/codec/controlled/ActionControlledCodec.d.ts +3 -0
- package/dist/xiot/core/support/codegen/codec/controlled/ActionControlledCodec.js +8 -0
- package/dist/xiot/core/support/codegen/codec/controlled/DeviceControlledCodec.d.ts +3 -0
- package/dist/xiot/core/support/codegen/codec/controlled/DeviceControlledCodec.js +8 -0
- package/dist/xiot/core/support/codegen/codec/controlled/EventControlledCodec.d.ts +3 -0
- package/dist/xiot/core/support/codegen/codec/controlled/EventControlledCodec.js +8 -0
- package/dist/xiot/core/support/codegen/codec/controlled/PropertyControlledCodec.d.ts +3 -0
- package/dist/xiot/core/support/codegen/codec/controlled/PropertyControlledCodec.js +8 -0
- package/dist/xiot/core/support/codegen/codec/controlled/ServiceControlledCodec.d.ts +2 -0
- package/dist/xiot/core/support/codegen/codec/controlled/ServiceControlledCodec.js +6 -0
- package/dist/xiot/core/support/codegen/codec/controller/ActionControllerCodec.d.ts +6 -0
- package/dist/xiot/core/support/codegen/codec/controller/ActionControllerCodec.js +30 -0
- package/dist/xiot/core/support/codegen/codec/controller/DeviceControllerCodec.d.ts +5 -0
- package/dist/xiot/core/support/codegen/codec/controller/DeviceControllerCodec.js +20 -0
- package/dist/xiot/core/support/codegen/codec/controller/EventControllerCodec.d.ts +6 -0
- package/dist/xiot/core/support/codegen/codec/controller/EventControllerCodec.js +29 -0
- package/dist/xiot/core/support/codegen/codec/controller/PropertyControllerCodec.d.ts +7 -0
- package/dist/xiot/core/support/codegen/codec/controller/PropertyControllerCodec.js +25 -0
- package/dist/xiot/core/support/codegen/codec/controller/ServiceControllerCodec.d.ts +5 -0
- package/dist/xiot/core/support/codegen/codec/controller/ServiceControllerCodec.js +31 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/ActionControlled.d.ts +9 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/ActionControlled.js +25 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/DeviceControlled.d.ts +3 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/DeviceControlled.js +7 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/EventControlled.d.ts +12 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/EventControlled.js +20 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/PropertyControlled.d.ts +18 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/PropertyControlled.js +122 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/ServiceControlled.d.ts +8 -0
- package/dist/xiot/core/support/codegen/typedef/controlled/ServiceControlled.js +10 -0
- package/dist/xiot/core/support/codegen/typedef/controller/ActionController.d.ts +10 -0
- package/dist/xiot/core/support/codegen/typedef/controller/ActionController.js +15 -0
- package/dist/xiot/core/support/codegen/typedef/controller/DeviceController.d.ts +23 -0
- package/dist/xiot/core/support/codegen/typedef/controller/DeviceController.js +86 -0
- package/dist/xiot/core/support/codegen/typedef/controller/EventController.d.ts +8 -0
- package/dist/xiot/core/support/codegen/typedef/controller/EventController.js +12 -0
- package/dist/xiot/core/support/codegen/typedef/controller/PropertyController.d.ts +27 -0
- package/dist/xiot/core/support/codegen/typedef/controller/PropertyController.js +144 -0
- package/dist/xiot/core/support/codegen/typedef/controller/ServiceController.d.ts +15 -0
- package/dist/xiot/core/support/codegen/typedef/controller/ServiceController.js +70 -0
- package/dist/xiot/core/support/codegen/typedef/controller/SomewhereController.d.ts +7 -0
- package/dist/xiot/core/support/codegen/typedef/controller/SomewhereController.js +32 -0
- package/dist/xiot/core/support/codegen/typedef/controller/SummaryController.d.ts +7 -0
- package/dist/xiot/core/support/codegen/typedef/controller/SummaryController.js +55 -0
- package/dist/xiot/core/support/codegen/typedef/controller/operator/ActionInvokerWrapper.d.ts +9 -0
- package/dist/xiot/core/support/codegen/typedef/controller/operator/ActionInvokerWrapper.js +27 -0
- package/dist/xiot/core/support/codegen/typedef/controller/operator/PropertySetterWrapper.d.ts +8 -0
- package/dist/xiot/core/support/codegen/typedef/controller/operator/PropertySetterWrapper.js +27 -0
- package/dist/xiot/core/support/codegen/typedef/result/Result.d.ts +9 -0
- package/dist/xiot/core/support/codegen/typedef/result/Result.js +15 -0
- package/dist/xiot/core/support/codegen/typedef/rule/RuleController.d.ts +7 -0
- package/dist/xiot/core/support/codegen/typedef/rule/RuleController.js +14 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/RuleStatus.d.ts +2 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/RuleStatus.js +2 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleExecuted.d.ts +8 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleExecuted.js +11 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleReady.d.ts +3 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleReady.js +6 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleTriggered.d.ts +6 -0
- package/dist/xiot/core/support/codegen/typedef/rule/status/impl/RuleTriggered.js +10 -0
- package/package.json +62 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerNoticeCodec = void 0;
|
|
4
|
+
const NoticeCodec_1 = require("../../typedef/notice/NoticeCodec");
|
|
5
|
+
const OwnerNoticeType_1 = require("../../typedef/notice/owner/OwnerNoticeType");
|
|
6
|
+
const OwnerDeviceAdded_1 = require("../../typedef/notice/owner/impl/OwnerDeviceAdded");
|
|
7
|
+
const OwnerDeviceAddedCodec_1 = require("./owner/OwnerDeviceAddedCodec");
|
|
8
|
+
const OwnerDeviceRemoved_1 = require("../../typedef/notice/owner/impl/OwnerDeviceRemoved");
|
|
9
|
+
const OwnerDeviceRemovedCodec_1 = require("./owner/OwnerDeviceRemovedCodec");
|
|
10
|
+
const OwnerDeviceSummaryChanged_1 = require("../../typedef/notice/owner/impl/OwnerDeviceSummaryChanged");
|
|
11
|
+
const OwnerDeviceSummaryChangedCodec_1 = require("./owner/OwnerDeviceSummaryChangedCodec");
|
|
12
|
+
const OwnerPropertiesChanged_1 = require("../../typedef/notice/owner/impl/OwnerPropertiesChanged");
|
|
13
|
+
const OwnerPropertiesChangedCodec_1 = require("./owner/OwnerPropertiesChangedCodec");
|
|
14
|
+
const OwnerEventOccurred_1 = require("../../typedef/notice/owner/impl/OwnerEventOccurred");
|
|
15
|
+
const OwnerEventOccurredCodec_1 = require("./owner/OwnerEventOccurredCodec");
|
|
16
|
+
const OwnershipDisclaimed_1 = require("../../typedef/notice/owner/impl/OwnershipDisclaimed");
|
|
17
|
+
const OwnershipDisclaimedCodec_1 = require("./owner/OwnershipDisclaimedCodec");
|
|
18
|
+
const OwnershipTaken_1 = require("../../typedef/notice/owner/impl/OwnershipTaken");
|
|
19
|
+
const OwnershipTakenCodec_1 = require("./owner/OwnershipTakenCodec");
|
|
20
|
+
const OwnerRuleAdded_1 = require("../../typedef/notice/owner/impl/OwnerRuleAdded");
|
|
21
|
+
const OwnerRuleAddedCodec_1 = require("./owner/OwnerRuleAddedCodec");
|
|
22
|
+
const OwnerRuleRemoved_1 = require("../../typedef/notice/owner/impl/OwnerRuleRemoved");
|
|
23
|
+
const OwnerRuleRemovedCodec_1 = require("./owner/OwnerRuleRemovedCodec");
|
|
24
|
+
const OwnerRuleChanged_1 = require("../../typedef/notice/owner/impl/OwnerRuleChanged");
|
|
25
|
+
const OwnerRuleChangedCodec_1 = require("./owner/OwnerRuleChangedCodec");
|
|
26
|
+
const OwnerRuleTriggered_1 = require("../../typedef/notice/owner/impl/OwnerRuleTriggered");
|
|
27
|
+
const OwnerRuleTriggeredCodec_1 = require("./owner/OwnerRuleTriggeredCodec");
|
|
28
|
+
const OwnerRuleExecuted_1 = require("../../typedef/notice/owner/impl/OwnerRuleExecuted");
|
|
29
|
+
const OwnerRuleExecutedCodec_1 = require("./owner/OwnerRuleExecutedCodec");
|
|
30
|
+
const OwnerSpaceAdded_1 = require("../../typedef/notice/owner/impl/space/OwnerSpaceAdded");
|
|
31
|
+
const OwnerSpaceAddedCodec_1 = require("./owner/space/OwnerSpaceAddedCodec");
|
|
32
|
+
const OwnerSpaceChangedCodec_1 = require("./owner/space/OwnerSpaceChangedCodec");
|
|
33
|
+
const OwnerSpaceChanged_1 = require("../../typedef/notice/owner/impl/space/OwnerSpaceChanged");
|
|
34
|
+
const OwnerSpaceRemoved_1 = require("../../typedef/notice/owner/impl/space/OwnerSpaceRemoved");
|
|
35
|
+
const OwnerSpaceRemovedCodec_1 = require("./owner/space/OwnerSpaceRemovedCodec");
|
|
36
|
+
const OwnerDeviceSomewhereChanged_1 = require("../../typedef/notice/owner/impl/OwnerDeviceSomewhereChanged");
|
|
37
|
+
const OwnerDeviceSomewhereChangedCodec_1 = require("./owner/OwnerDeviceSomewhereChangedCodec");
|
|
38
|
+
const OwnerHomeAdded_1 = require("../../typedef/notice/owner/impl/home/OwnerHomeAdded");
|
|
39
|
+
const OwnerHomeAddedCodec_1 = require("./owner/home/OwnerHomeAddedCodec");
|
|
40
|
+
const OwnerHomeChangedCodec_1 = require("./owner/home/OwnerHomeChangedCodec");
|
|
41
|
+
const OwnerHomeChanged_1 = require("../../typedef/notice/owner/impl/home/OwnerHomeChanged");
|
|
42
|
+
const OwnerHomeRemoved_1 = require("../../typedef/notice/owner/impl/home/OwnerHomeRemoved");
|
|
43
|
+
const OwnerHomeRemovedCodec_1 = require("./owner/home/OwnerHomeRemovedCodec");
|
|
44
|
+
class OwnerNoticeCodec extends NoticeCodec_1.NoticeCodec {
|
|
45
|
+
mainType() {
|
|
46
|
+
return 'owner';
|
|
47
|
+
}
|
|
48
|
+
encode(x) {
|
|
49
|
+
let o = {};
|
|
50
|
+
switch ((0, OwnerNoticeType_1.OwnerNoticeTypeFromString)(x.subType())) {
|
|
51
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_ADDED:
|
|
52
|
+
if (x instanceof OwnerDeviceAdded_1.OwnerDeviceAdded) {
|
|
53
|
+
o = OwnerDeviceAddedCodec_1.OwnerDeviceAddedCodec.encode(x);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_REMOVED:
|
|
57
|
+
if (x instanceof OwnerDeviceRemoved_1.OwnerDeviceRemoved) {
|
|
58
|
+
o = OwnerDeviceRemovedCodec_1.OwnerDeviceRemovedCodec.encode(x);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_SUMMARY_CHANGED:
|
|
62
|
+
if (x instanceof OwnerDeviceSummaryChanged_1.OwnerDeviceSummaryChanged) {
|
|
63
|
+
o = OwnerDeviceSummaryChangedCodec_1.OwnerDeviceSummaryChangedCodec.encode(x);
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_SOMEWHERE_CHANGED:
|
|
67
|
+
if (x instanceof OwnerDeviceSomewhereChanged_1.OwnerDeviceSomewhereChanged) {
|
|
68
|
+
o = OwnerDeviceSomewhereChangedCodec_1.OwnerDeviceSomewhereChangedCodec.encode(x);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_PROPERTIES_CHANGED:
|
|
72
|
+
if (x instanceof OwnerPropertiesChanged_1.OwnerPropertiesChanged) {
|
|
73
|
+
o = OwnerPropertiesChangedCodec_1.OwnerPropertiesChangedCodec.encode(x);
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_EVENT_OCCURRED:
|
|
77
|
+
if (x instanceof OwnerEventOccurred_1.OwnerEventOccurred) {
|
|
78
|
+
o = OwnerEventOccurredCodec_1.OwnerEventOccurredCodec.encode(x);
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case OwnerNoticeType_1.OwnerNoticeType.OWNERSHIP_DISCLAIMED:
|
|
82
|
+
if (x instanceof OwnershipDisclaimed_1.OwnershipDisclaimed) {
|
|
83
|
+
o = OwnershipDisclaimedCodec_1.OwnershipDisclaimedCodec.encode(x);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case OwnerNoticeType_1.OwnerNoticeType.OWNERSHIP_TAKEN:
|
|
87
|
+
if (x instanceof OwnershipTaken_1.OwnershipTaken) {
|
|
88
|
+
o = OwnershipTakenCodec_1.OwnershipTakenCodec.encode(x);
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_ADDED:
|
|
92
|
+
if (x instanceof OwnerRuleAdded_1.OwnerRuleAdded) {
|
|
93
|
+
o = OwnerRuleAddedCodec_1.OwnerRuleAddedCodec.encode(x);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_REMOVED:
|
|
97
|
+
if (x instanceof OwnerRuleRemoved_1.OwnerRuleRemoved) {
|
|
98
|
+
o = OwnerRuleRemovedCodec_1.OwnerRuleRemovedCodec.encode(x);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_CHANGED:
|
|
102
|
+
if (x instanceof OwnerRuleChanged_1.OwnerRuleChanged) {
|
|
103
|
+
o = OwnerRuleChangedCodec_1.OwnerRuleChangedCodec.encode(x);
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_TRIGGERED:
|
|
107
|
+
if (x instanceof OwnerRuleTriggered_1.OwnerRuleTriggered) {
|
|
108
|
+
o = OwnerRuleTriggeredCodec_1.OwnerRuleTriggeredCodec.encode(x);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_EXECUTED:
|
|
112
|
+
if (x instanceof OwnerRuleExecuted_1.OwnerRuleExecuted) {
|
|
113
|
+
o = OwnerRuleExecutedCodec_1.OwnerRuleExecutedCodec.encode(x);
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_ADDED:
|
|
117
|
+
if (x instanceof OwnerHomeAdded_1.OwnerHomeAdded) {
|
|
118
|
+
o = OwnerHomeAddedCodec_1.OwnerHomeAddedCodec.encode(x);
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_CHANGED:
|
|
122
|
+
if (x instanceof OwnerHomeChanged_1.OwnerHomeChanged) {
|
|
123
|
+
o = OwnerHomeChangedCodec_1.OwnerHomeChangedCodec.encode(x);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_REMOVED:
|
|
127
|
+
if (x instanceof OwnerHomeRemoved_1.OwnerHomeRemoved) {
|
|
128
|
+
o = OwnerHomeRemovedCodec_1.OwnerHomeRemovedCodec.encode(x);
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_ADDED:
|
|
132
|
+
if (x instanceof OwnerSpaceAdded_1.OwnerSpaceAdded) {
|
|
133
|
+
o = OwnerSpaceAddedCodec_1.OwnerSpaceAddedCodec.encode(x);
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_CHANGED:
|
|
137
|
+
if (x instanceof OwnerSpaceChanged_1.OwnerSpaceChanged) {
|
|
138
|
+
o = OwnerSpaceChangedCodec_1.OwnerSpaceChangedCodec.encode(x);
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_REMOVED:
|
|
142
|
+
if (x instanceof OwnerSpaceRemoved_1.OwnerSpaceRemoved) {
|
|
143
|
+
o = OwnerSpaceRemovedCodec_1.OwnerSpaceRemovedCodec.encode(x);
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
return o;
|
|
150
|
+
}
|
|
151
|
+
decode(subType, o) {
|
|
152
|
+
let notice;
|
|
153
|
+
switch (subType) {
|
|
154
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_ADDED:
|
|
155
|
+
notice = OwnerDeviceAddedCodec_1.OwnerDeviceAddedCodec.decode(o);
|
|
156
|
+
break;
|
|
157
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_REMOVED:
|
|
158
|
+
notice = OwnerDeviceRemovedCodec_1.OwnerDeviceRemovedCodec.decode(o);
|
|
159
|
+
break;
|
|
160
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_SUMMARY_CHANGED:
|
|
161
|
+
notice = OwnerDeviceSummaryChangedCodec_1.OwnerDeviceSummaryChangedCodec.decode(o);
|
|
162
|
+
break;
|
|
163
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_SOMEWHERE_CHANGED:
|
|
164
|
+
notice = OwnerDeviceSomewhereChangedCodec_1.OwnerDeviceSomewhereChangedCodec.decode(o);
|
|
165
|
+
break;
|
|
166
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_PROPERTIES_CHANGED:
|
|
167
|
+
notice = OwnerPropertiesChangedCodec_1.OwnerPropertiesChangedCodec.decode(o);
|
|
168
|
+
break;
|
|
169
|
+
case OwnerNoticeType_1.OwnerNoticeType.DEVICE_EVENT_OCCURRED:
|
|
170
|
+
notice = OwnerEventOccurredCodec_1.OwnerEventOccurredCodec.decode(o);
|
|
171
|
+
break;
|
|
172
|
+
case OwnerNoticeType_1.OwnerNoticeType.OWNERSHIP_DISCLAIMED:
|
|
173
|
+
notice = OwnershipDisclaimedCodec_1.OwnershipDisclaimedCodec.decode(o);
|
|
174
|
+
break;
|
|
175
|
+
case OwnerNoticeType_1.OwnerNoticeType.OWNERSHIP_TAKEN:
|
|
176
|
+
notice = OwnershipTakenCodec_1.OwnershipTakenCodec.decode(o);
|
|
177
|
+
break;
|
|
178
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_ADDED:
|
|
179
|
+
notice = OwnerRuleAddedCodec_1.OwnerRuleAddedCodec.decode(o);
|
|
180
|
+
break;
|
|
181
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_REMOVED:
|
|
182
|
+
notice = OwnerRuleRemovedCodec_1.OwnerRuleRemovedCodec.decode(o);
|
|
183
|
+
break;
|
|
184
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_CHANGED:
|
|
185
|
+
notice = OwnerRuleChangedCodec_1.OwnerRuleChangedCodec.decode(o);
|
|
186
|
+
break;
|
|
187
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_TRIGGERED:
|
|
188
|
+
notice = OwnerRuleTriggeredCodec_1.OwnerRuleTriggeredCodec.decode(o);
|
|
189
|
+
break;
|
|
190
|
+
case OwnerNoticeType_1.OwnerNoticeType.RULE_EXECUTED:
|
|
191
|
+
notice = OwnerRuleExecutedCodec_1.OwnerRuleExecutedCodec.decode(o);
|
|
192
|
+
break;
|
|
193
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_ADDED:
|
|
194
|
+
notice = OwnerHomeAddedCodec_1.OwnerHomeAddedCodec.decode(o);
|
|
195
|
+
break;
|
|
196
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_CHANGED:
|
|
197
|
+
notice = OwnerHomeChangedCodec_1.OwnerHomeChangedCodec.decode(o);
|
|
198
|
+
break;
|
|
199
|
+
case OwnerNoticeType_1.OwnerNoticeType.HOME_REMOVED:
|
|
200
|
+
notice = OwnerHomeRemovedCodec_1.OwnerHomeRemovedCodec.decode(o);
|
|
201
|
+
break;
|
|
202
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_ADDED:
|
|
203
|
+
notice = OwnerSpaceAddedCodec_1.OwnerSpaceAddedCodec.decode(o);
|
|
204
|
+
break;
|
|
205
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_CHANGED:
|
|
206
|
+
notice = OwnerSpaceChangedCodec_1.OwnerSpaceChangedCodec.decode(o);
|
|
207
|
+
break;
|
|
208
|
+
case OwnerNoticeType_1.OwnerNoticeType.SPACE_REMOVED:
|
|
209
|
+
notice = OwnerSpaceRemovedCodec_1.OwnerSpaceRemovedCodec.decode(o);
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
throw new Error(`invalid subType: ${subType}`);
|
|
213
|
+
}
|
|
214
|
+
return notice;
|
|
215
|
+
}
|
|
216
|
+
decodeObject(o) {
|
|
217
|
+
return this.decode(o.type, o.payload);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
exports.OwnerNoticeCodec = OwnerNoticeCodec;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceAccessKeyChangedCodec = void 0;
|
|
4
|
+
const DeviceAccessKeyChanged_1 = require("../../../typedef/notice/device/impl/DeviceAccessKeyChanged");
|
|
5
|
+
class DeviceAccessKeyChangedCodec {
|
|
6
|
+
static encode(x) {
|
|
7
|
+
return {
|
|
8
|
+
did: x.did,
|
|
9
|
+
key: x.key,
|
|
10
|
+
timestamp: x.timestamp
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static decode(o) {
|
|
14
|
+
const { did } = o;
|
|
15
|
+
const { key } = o;
|
|
16
|
+
return new DeviceAccessKeyChanged_1.DeviceAccessKeyChanged(o.timestamp || new Date().getTime(), did, key);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.DeviceAccessKeyChangedCodec = DeviceAccessKeyChangedCodec;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceChildrenAddedCodec = void 0;
|
|
4
|
+
const DeviceChildrenAdded_1 = require("../../../typedef/notice/device/impl/DeviceChildrenAdded");
|
|
5
|
+
const DeviceCodec_1 = require("../../device/DeviceCodec");
|
|
6
|
+
class DeviceChildrenAddedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
did: x.did,
|
|
10
|
+
children: DeviceCodec_1.DeviceCodec.encodeArray(x.children),
|
|
11
|
+
timestamp: x.timestamp
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static decode(o) {
|
|
15
|
+
const e = new DeviceChildrenAdded_1.DeviceChildrenAdded(o.timestamp || new Date().getTime(), o.did);
|
|
16
|
+
e.children = DeviceCodec_1.DeviceCodec.decodeArray(o.children);
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DeviceChildrenAddedCodec = DeviceChildrenAddedCodec;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceChildrenRemovedCodec = void 0;
|
|
4
|
+
const DeviceChildrenRemoved_1 = require("../../../typedef/notice/device/impl/DeviceChildrenRemoved");
|
|
5
|
+
class DeviceChildrenRemovedCodec {
|
|
6
|
+
static encode(x) {
|
|
7
|
+
return {
|
|
8
|
+
did: x.did,
|
|
9
|
+
children: x.children,
|
|
10
|
+
timestamp: x.timestamp
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static decode(o) {
|
|
14
|
+
const e = new DeviceChildrenRemoved_1.DeviceChildrenRemoved(o.timestamp || new Date().getTime(), o.did);
|
|
15
|
+
e.children = o.children;
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.DeviceChildrenRemovedCodec = DeviceChildrenRemovedCodec;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceEventOccurredCodec = void 0;
|
|
4
|
+
const DeviceEventOccurred_1 = require("../../../typedef/notice/device/impl/DeviceEventOccurred");
|
|
5
|
+
const EventOperationCodec_1 = require("../../operation/EventOperationCodec");
|
|
6
|
+
class DeviceEventOccurredCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
event: EventOperationCodec_1.EventOperationCodec.Query.encodeObject(x.event),
|
|
10
|
+
timestamp: x.timestamp
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static decode(o) {
|
|
14
|
+
const e = EventOperationCodec_1.EventOperationCodec.Query.decodeObject(o.event);
|
|
15
|
+
return new DeviceEventOccurred_1.DeviceEventOccurred(o.timestamp || new Date().getTime(), e);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DeviceEventOccurredCodec = DeviceEventOccurredCodec;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DevicePropertiesChangedCodec = void 0;
|
|
4
|
+
const DevicePropertiesChanged_1 = require("../../../typedef/notice/device/impl/DevicePropertiesChanged");
|
|
5
|
+
const PropertyOperationCodec_1 = require("../../operation/PropertyOperationCodec");
|
|
6
|
+
class DevicePropertiesChangedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
properties: PropertyOperationCodec_1.PropertyOperationCodec.Notify.encodeArray(x.properties),
|
|
10
|
+
timestamp: x.timestamp
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static decode(o) {
|
|
14
|
+
const properties = PropertyOperationCodec_1.PropertyOperationCodec.Notify.decodeArray(o.properties);
|
|
15
|
+
return new DevicePropertiesChanged_1.DevicePropertiesChanged(o.timestamp || new Date().getTime(), properties);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DevicePropertiesChangedCodec = DevicePropertiesChangedCodec;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DevicePropertyChangedCodec = void 0;
|
|
4
|
+
const DevicePropertyChanged_1 = require("../../../typedef/notice/device/impl/DevicePropertyChanged");
|
|
5
|
+
const PropertyOperationCodec_1 = require("../../operation/PropertyOperationCodec");
|
|
6
|
+
class DevicePropertyChangedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
property: PropertyOperationCodec_1.PropertyOperationCodec.Notify.encodeObject(x.property),
|
|
10
|
+
timestamp: x.timestamp
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static decode(o) {
|
|
14
|
+
const property = PropertyOperationCodec_1.PropertyOperationCodec.Notify.decodeObject(o.property);
|
|
15
|
+
return new DevicePropertyChanged_1.DevicePropertyChanged(o.timestamp || new Date().getTime(), property);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DevicePropertyChangedCodec = DevicePropertyChangedCodec;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceRootActiveCodec = void 0;
|
|
4
|
+
const DeviceRootActive_1 = require("../../../typedef/notice/device/impl/DeviceRootActive");
|
|
5
|
+
const DeviceCodec_1 = require("../../device/DeviceCodec");
|
|
6
|
+
class DeviceRootActiveCodec {
|
|
7
|
+
static encode(record) {
|
|
8
|
+
return {
|
|
9
|
+
did: record.did,
|
|
10
|
+
children: DeviceCodec_1.DeviceCodec.encodeArray(record.children),
|
|
11
|
+
timestamp: record.timestamp
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static decode(o) {
|
|
15
|
+
const e = new DeviceRootActive_1.DeviceRootActive(o.timestamp || new Date().getTime(), o.did);
|
|
16
|
+
e.children = DeviceCodec_1.DeviceCodec.decodeArray(o.children);
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DeviceRootActiveCodec = DeviceRootActiveCodec;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceRootInactiveCodec = void 0;
|
|
4
|
+
const DeviceRootInactive_1 = require("../../../typedef/notice/device/impl/DeviceRootInactive");
|
|
5
|
+
class DeviceRootInactiveCodec {
|
|
6
|
+
static encode(x) {
|
|
7
|
+
return {
|
|
8
|
+
did: x.did,
|
|
9
|
+
timestamp: x.timestamp
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static decode(o) {
|
|
13
|
+
return new DeviceRootInactive_1.DeviceRootInactive(o.timestamp || new Date().getTime(), o.did);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.DeviceRootInactiveCodec = DeviceRootInactiveCodec;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceSummaryChangedCodec = void 0;
|
|
4
|
+
const DeviceSummaryChanged_1 = require("../../../typedef/notice/device/impl/DeviceSummaryChanged");
|
|
5
|
+
const SummaryCodec_1 = require("../../summary/SummaryCodec");
|
|
6
|
+
class DeviceSummaryChangedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
did: x.did,
|
|
10
|
+
timestamp: x.timestamp,
|
|
11
|
+
summary: SummaryCodec_1.SummaryCodec.encodeObject(x.summary)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static decode(o) {
|
|
15
|
+
const x = new DeviceSummaryChanged_1.DeviceSummaryChanged(o.timestamp || new Date().getTime(), o.did);
|
|
16
|
+
x.summary = SummaryCodec_1.SummaryCodec.decodeObject(o.summary || null);
|
|
17
|
+
return x;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DeviceSummaryChangedCodec = DeviceSummaryChangedCodec;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerDeviceAddedCodec = void 0;
|
|
4
|
+
const OwnerDeviceAdded_1 = require("../../../typedef/notice/owner/impl/OwnerDeviceAdded");
|
|
5
|
+
const SummaryCodec_1 = require("../../summary/SummaryCodec");
|
|
6
|
+
const SomewhereCodec_1 = require("../../somewhere/SomewhereCodec");
|
|
7
|
+
class OwnerDeviceAddedCodec {
|
|
8
|
+
static encode(x) {
|
|
9
|
+
return {
|
|
10
|
+
timestamp: x.timestamp,
|
|
11
|
+
appId: x.appId,
|
|
12
|
+
ownerId: x.ownerId,
|
|
13
|
+
did: x.did,
|
|
14
|
+
summary: SummaryCodec_1.SummaryCodec.encodeObject(x.summary),
|
|
15
|
+
somewhere: SomewhereCodec_1.SomewhereCodec.encodeObject(x.somewhere)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static decode(o) {
|
|
19
|
+
const { appId = '', ownerId = '', userId = '', did = '', summary, somewhere } = o;
|
|
20
|
+
return new OwnerDeviceAdded_1.OwnerDeviceAdded(o.timestamp || new Date().getTime(), appId, ownerId, userId, did, SummaryCodec_1.SummaryCodec.decodeObject(summary), SomewhereCodec_1.SomewhereCodec.decodeObject(somewhere));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.OwnerDeviceAddedCodec = OwnerDeviceAddedCodec;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerDeviceRemovedCodec = void 0;
|
|
4
|
+
const OwnerDeviceRemoved_1 = require("../../../typedef/notice/owner/impl/OwnerDeviceRemoved");
|
|
5
|
+
class OwnerDeviceRemovedCodec {
|
|
6
|
+
static encode(x) {
|
|
7
|
+
return {
|
|
8
|
+
timestamp: x.timestamp,
|
|
9
|
+
appId: x.appId,
|
|
10
|
+
ownerId: x.ownerId,
|
|
11
|
+
did: x.did
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static decode(o) {
|
|
15
|
+
const { appId = '', ownerId = '', userId = '', did = '' } = o;
|
|
16
|
+
return new OwnerDeviceRemoved_1.OwnerDeviceRemoved(o.timestamp || new Date().getTime(), appId, ownerId, userId, did);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.OwnerDeviceRemovedCodec = OwnerDeviceRemovedCodec;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OwnerDeviceSomewhereChanged } from '../../../typedef/notice/owner/impl/OwnerDeviceSomewhereChanged';
|
|
2
|
+
export declare class OwnerDeviceSomewhereChangedCodec {
|
|
3
|
+
static encode(x: OwnerDeviceSomewhereChanged): any;
|
|
4
|
+
static decode(x: any): OwnerDeviceSomewhereChanged;
|
|
5
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerDeviceSomewhereChangedCodec = void 0;
|
|
4
|
+
const OwnerDeviceSomewhereChanged_1 = require("../../../typedef/notice/owner/impl/OwnerDeviceSomewhereChanged");
|
|
5
|
+
const SomewhereCodec_1 = require("../../somewhere/SomewhereCodec");
|
|
6
|
+
class OwnerDeviceSomewhereChangedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
timestamp: x.timestamp,
|
|
10
|
+
appId: x.appId,
|
|
11
|
+
ownerId: x.ownerId,
|
|
12
|
+
did: x.did,
|
|
13
|
+
somewhere: SomewhereCodec_1.SomewhereCodec.encodeObject(x.somewhere)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static decode(x) {
|
|
17
|
+
const appId = x["appId"] || "";
|
|
18
|
+
const ownerId = x["ownerId"] || "";
|
|
19
|
+
const userId = x["userId"] || "";
|
|
20
|
+
const did = x["did"];
|
|
21
|
+
const somewhere = x["somewhere"];
|
|
22
|
+
const timestamp = x["timestamp"] || 0;
|
|
23
|
+
return new OwnerDeviceSomewhereChanged_1.OwnerDeviceSomewhereChanged(timestamp, appId, ownerId, userId, did, SomewhereCodec_1.SomewhereCodec.decodeObject(somewhere));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.OwnerDeviceSomewhereChangedCodec = OwnerDeviceSomewhereChangedCodec;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerDeviceSummaryChangedCodec = void 0;
|
|
4
|
+
const OwnerDeviceSummaryChanged_1 = require("../../../typedef/notice/owner/impl/OwnerDeviceSummaryChanged");
|
|
5
|
+
const SummaryCodec_1 = require("../../summary/SummaryCodec");
|
|
6
|
+
class OwnerDeviceSummaryChangedCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
timestamp: x.timestamp,
|
|
10
|
+
appId: x.appId,
|
|
11
|
+
ownerId: x.ownerId,
|
|
12
|
+
did: x.did,
|
|
13
|
+
summary: SummaryCodec_1.SummaryCodec.encodeObject(x.summary)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static decode(x) {
|
|
17
|
+
const appId = x["appId"] || "";
|
|
18
|
+
const ownerId = x["ownerId"] || "";
|
|
19
|
+
const userId = x["userId"] || "";
|
|
20
|
+
const did = x["did"];
|
|
21
|
+
const summary = x["summary"];
|
|
22
|
+
const timestamp = x["timestamp"] || 0;
|
|
23
|
+
return new OwnerDeviceSummaryChanged_1.OwnerDeviceSummaryChanged(timestamp, appId, ownerId, userId, did, SummaryCodec_1.SummaryCodec.decodeObject(summary));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.OwnerDeviceSummaryChangedCodec = OwnerDeviceSummaryChangedCodec;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OwnerEventOccurredCodec = void 0;
|
|
4
|
+
const OwnerEventOccurred_1 = require("../../../typedef/notice/owner/impl/OwnerEventOccurred");
|
|
5
|
+
const EventOperationCodec_1 = require("../../operation/EventOperationCodec");
|
|
6
|
+
class OwnerEventOccurredCodec {
|
|
7
|
+
static encode(x) {
|
|
8
|
+
return {
|
|
9
|
+
event: EventOperationCodec_1.EventOperationCodec.Query.encodeObject(x.event),
|
|
10
|
+
timestamp: x.timestamp,
|
|
11
|
+
appId: x.appId,
|
|
12
|
+
ownerId: x.ownerId
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static decode(o) {
|
|
16
|
+
const e = EventOperationCodec_1.EventOperationCodec.Query.decodeObject(o.event);
|
|
17
|
+
return new OwnerEventOccurred_1.OwnerEventOccurred(o.timestamp || new Date().getTime(), o.appId || '', o.ownerId || '', o.userId || '', e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.OwnerEventOccurredCodec = OwnerEventOccurredCodec;
|