@fluidframework/aqueduct 2.0.0-internal.3.4.0 → 2.0.0-internal.4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/data-objects/pureDataObject.d.ts +1 -7
  2. package/dist/data-objects/pureDataObject.d.ts.map +1 -1
  3. package/dist/data-objects/pureDataObject.js +0 -10
  4. package/dist/data-objects/pureDataObject.js.map +1 -1
  5. package/dist/index.d.ts +1 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -6
  8. package/dist/index.js.map +1 -1
  9. package/dist/test/tsconfig.tsbuildinfo +1 -1
  10. package/dist/test/types/validateAqueductPrevious.generated.js +20 -10
  11. package/dist/test/types/validateAqueductPrevious.generated.js.map +1 -1
  12. package/dist/utils/index.d.ts +0 -1
  13. package/dist/utils/index.d.ts.map +1 -1
  14. package/dist/utils/index.js +1 -3
  15. package/dist/utils/index.js.map +1 -1
  16. package/lib/data-objects/pureDataObject.js +0 -10
  17. package/lib/data-objects/pureDataObject.js.map +1 -1
  18. package/lib/index.js +1 -2
  19. package/lib/index.js.map +1 -1
  20. package/lib/utils/index.js +0 -1
  21. package/lib/utils/index.js.map +1 -1
  22. package/package.json +37 -16
  23. package/dist/container-services/containerServices.d.ts +0 -44
  24. package/dist/container-services/containerServices.d.ts.map +0 -1
  25. package/dist/container-services/containerServices.js +0 -100
  26. package/dist/container-services/containerServices.js.map +0 -1
  27. package/dist/container-services/index.d.ts +0 -6
  28. package/dist/container-services/index.d.ts.map +0 -1
  29. package/dist/container-services/index.js +0 -12
  30. package/dist/container-services/index.js.map +0 -1
  31. package/dist/test/containerServices.spec.js +0 -132
  32. package/dist/test/containerServices.spec.js.map +0 -1
  33. package/dist/utils/attachUtils.d.ts +0 -10
  34. package/dist/utils/attachUtils.d.ts.map +0 -1
  35. package/dist/utils/attachUtils.js +0 -25
  36. package/dist/utils/attachUtils.js.map +0 -1
  37. package/lib/container-services/containerServices.js +0 -95
  38. package/lib/container-services/containerServices.js.map +0 -1
  39. package/lib/container-services/index.js +0 -6
  40. package/lib/container-services/index.js.map +0 -1
  41. package/lib/utils/attachUtils.js +0 -21
  42. package/lib/utils/attachUtils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"validateAqueductPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateAqueductPrevious.generated.ts"],"names":[],"mappings":";;AAwBA,wDAAwD,CACpD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD,CAChD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,wEAAwE,CACpE,oEAAoE,EAAE,CAAC,CAAC;AAW5E,oEAAoE,CAChE,wEAAwE,EAAE,CAAC,CAAC;AAWhF,gEAAgE,CAC5D,4DAA4D,EAAE,CAAC,CAAC;AAWpE,4DAA4D,CACxD,gEAAgE,EAAE,CAAC,CAAC;AAWxE,uCAAuC,CACnC,mCAAmC,EAAE,CAAC,CAAC;AAW3C,mCAAmC,CAC/B,uCAAuC,EAAE,CAAC,CAAC;AAW/C,8CAA8C,CAC1C,0CAA0C,EAAE,CAAC,CAAC;AAWlD,0CAA0C,CACtC,8CAA8C,EAAE,CAAC,CAAC;AAWtD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,kDAAkD,CAC9C,8CAA8C,EAAE,CAAC,CAAC;AAWtD,8CAA8C,CAC1C,kDAAkD,EAAE,CAAC,CAAC;AAW1D,gEAAgE,CAC5D,4DAA4D,EAAE,CAAC,CAAC;AAWpE,4DAA4D,CACxD,gEAAgE,EAAE,CAAC,CAAC;AAWxE,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,uEAAuE,CACnE,mEAAmE,EAAE,CAAC,CAAC;AAW3E,mEAAmE,CAC/D,uEAAuE,EAAE,CAAC,CAAC;AAW/E,6DAA6D,CACzD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,yDAAyD,CACrD,6DAA6D,EAAE,CAAC,CAAC;AAWrE,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,4DAA4D,CACxD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,wDAAwD,CACpD,4DAA4D,EAAE,CAAC,CAAC;AAWpE,2DAA2D,CACvD,uDAAuD,EAAE,CAAC,CAAC;AAW/D,uDAAuD,CACnD,2DAA2D,EAAE,CAAC,CAAC;AAWnE,oDAAoD,CAChD,gDAAgD,EAAE,CAAC,CAAC;AAWxD,gDAAgD,CAC5C,oDAAoD,EAAE,CAAC,CAAC;AAW5D,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport * as old from \"@fluidframework/aqueduct-previous\";\nimport * as current from \"../../index\";\n\ntype TypeOnly<T> = {\n [P in keyof T]: TypeOnly<T[P]>;\n};\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerRuntimeFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_BaseContainerRuntimeFactory():\n TypeOnly<old.BaseContainerRuntimeFactory>;\ndeclare function use_current_ClassDeclaration_BaseContainerRuntimeFactory(\n use: TypeOnly<current.BaseContainerRuntimeFactory>);\nuse_current_ClassDeclaration_BaseContainerRuntimeFactory(\n get_old_ClassDeclaration_BaseContainerRuntimeFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerRuntimeFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_BaseContainerRuntimeFactory():\n TypeOnly<current.BaseContainerRuntimeFactory>;\ndeclare function use_old_ClassDeclaration_BaseContainerRuntimeFactory(\n use: TypeOnly<old.BaseContainerRuntimeFactory>);\nuse_old_ClassDeclaration_BaseContainerRuntimeFactory(\n get_current_ClassDeclaration_BaseContainerRuntimeFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_BaseContainerService():\n TypeOnly<old.BaseContainerService>;\ndeclare function use_current_ClassDeclaration_BaseContainerService(\n use: TypeOnly<current.BaseContainerService>);\nuse_current_ClassDeclaration_BaseContainerService(\n get_old_ClassDeclaration_BaseContainerService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_BaseContainerService():\n TypeOnly<current.BaseContainerService>;\ndeclare function use_old_ClassDeclaration_BaseContainerService(\n use: TypeOnly<old.BaseContainerService>);\nuse_old_ClassDeclaration_BaseContainerService(\n get_current_ClassDeclaration_BaseContainerService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore():\n TypeOnly<old.ContainerRuntimeFactoryWithDefaultDataStore>;\ndeclare function use_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n use: TypeOnly<current.ContainerRuntimeFactoryWithDefaultDataStore>);\nuse_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n get_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore():\n TypeOnly<current.ContainerRuntimeFactoryWithDefaultDataStore>;\ndeclare function use_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n use: TypeOnly<old.ContainerRuntimeFactoryWithDefaultDataStore>);\nuse_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n get_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ContainerServiceRegistryEntries\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_ContainerServiceRegistryEntries():\n TypeOnly<old.ContainerServiceRegistryEntries>;\ndeclare function use_current_TypeAliasDeclaration_ContainerServiceRegistryEntries(\n use: TypeOnly<current.ContainerServiceRegistryEntries>);\nuse_current_TypeAliasDeclaration_ContainerServiceRegistryEntries(\n get_old_TypeAliasDeclaration_ContainerServiceRegistryEntries());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ContainerServiceRegistryEntries\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_ContainerServiceRegistryEntries():\n TypeOnly<current.ContainerServiceRegistryEntries>;\ndeclare function use_old_TypeAliasDeclaration_ContainerServiceRegistryEntries(\n use: TypeOnly<old.ContainerServiceRegistryEntries>);\nuse_old_TypeAliasDeclaration_ContainerServiceRegistryEntries(\n get_current_TypeAliasDeclaration_ContainerServiceRegistryEntries());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObject\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_DataObject():\n TypeOnly<old.DataObject>;\ndeclare function use_current_ClassDeclaration_DataObject(\n use: TypeOnly<current.DataObject>);\nuse_current_ClassDeclaration_DataObject(\n get_old_ClassDeclaration_DataObject());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObject\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_DataObject():\n TypeOnly<current.DataObject>;\ndeclare function use_old_ClassDeclaration_DataObject(\n use: TypeOnly<old.DataObject>);\nuse_old_ClassDeclaration_DataObject(\n get_current_ClassDeclaration_DataObject());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_DataObjectFactory():\n TypeOnly<old.DataObjectFactory<any,any>>;\ndeclare function use_current_ClassDeclaration_DataObjectFactory(\n use: TypeOnly<current.DataObjectFactory<any,any>>);\nuse_current_ClassDeclaration_DataObjectFactory(\n get_old_ClassDeclaration_DataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_DataObjectFactory():\n TypeOnly<current.DataObjectFactory<any,any>>;\ndeclare function use_old_ClassDeclaration_DataObjectFactory(\n use: TypeOnly<old.DataObjectFactory<any,any>>);\nuse_old_ClassDeclaration_DataObjectFactory(\n get_current_ClassDeclaration_DataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_DataObjectTypes\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_DataObjectTypes():\n TypeOnly<old.DataObjectTypes>;\ndeclare function use_current_InterfaceDeclaration_DataObjectTypes(\n use: TypeOnly<current.DataObjectTypes>);\nuse_current_InterfaceDeclaration_DataObjectTypes(\n get_old_InterfaceDeclaration_DataObjectTypes());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_DataObjectTypes\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_DataObjectTypes():\n TypeOnly<current.DataObjectTypes>;\ndeclare function use_old_InterfaceDeclaration_DataObjectTypes(\n use: TypeOnly<old.DataObjectTypes>);\nuse_old_InterfaceDeclaration_DataObjectTypes(\n get_current_InterfaceDeclaration_DataObjectTypes());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IDataObjectProps\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDataObjectProps():\n TypeOnly<old.IDataObjectProps>;\ndeclare function use_current_InterfaceDeclaration_IDataObjectProps(\n use: TypeOnly<current.IDataObjectProps>);\nuse_current_InterfaceDeclaration_IDataObjectProps(\n get_old_InterfaceDeclaration_IDataObjectProps());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IDataObjectProps\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDataObjectProps():\n TypeOnly<current.IDataObjectProps>;\ndeclare function use_old_InterfaceDeclaration_IDataObjectProps(\n use: TypeOnly<old.IDataObjectProps>);\nuse_old_InterfaceDeclaration_IDataObjectProps(\n get_current_InterfaceDeclaration_IDataObjectProps());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IRootDataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IRootDataObjectFactory():\n TypeOnly<old.IRootDataObjectFactory>;\ndeclare function use_current_InterfaceDeclaration_IRootDataObjectFactory(\n use: TypeOnly<current.IRootDataObjectFactory>);\nuse_current_InterfaceDeclaration_IRootDataObjectFactory(\n get_old_InterfaceDeclaration_IRootDataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IRootDataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IRootDataObjectFactory():\n TypeOnly<current.IRootDataObjectFactory>;\ndeclare function use_old_InterfaceDeclaration_IRootDataObjectFactory(\n use: TypeOnly<old.IRootDataObjectFactory>);\nuse_old_InterfaceDeclaration_IRootDataObjectFactory(\n get_current_InterfaceDeclaration_IRootDataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObject\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_PureDataObject():\n TypeOnly<old.PureDataObject>;\ndeclare function use_current_ClassDeclaration_PureDataObject(\n use: TypeOnly<current.PureDataObject>);\nuse_current_ClassDeclaration_PureDataObject(\n get_old_ClassDeclaration_PureDataObject());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObject\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_PureDataObject():\n TypeOnly<current.PureDataObject>;\ndeclare function use_old_ClassDeclaration_PureDataObject(\n use: TypeOnly<old.PureDataObject>);\nuse_old_ClassDeclaration_PureDataObject(\n get_current_ClassDeclaration_PureDataObject());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_PureDataObjectFactory():\n TypeOnly<old.PureDataObjectFactory<any,any>>;\ndeclare function use_current_ClassDeclaration_PureDataObjectFactory(\n use: TypeOnly<current.PureDataObjectFactory<any,any>>);\nuse_current_ClassDeclaration_PureDataObjectFactory(\n get_old_ClassDeclaration_PureDataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_PureDataObjectFactory():\n TypeOnly<current.PureDataObjectFactory<any,any>>;\ndeclare function use_old_ClassDeclaration_PureDataObjectFactory(\n use: TypeOnly<old.PureDataObjectFactory<any,any>>);\nuse_old_ClassDeclaration_PureDataObjectFactory(\n get_current_ClassDeclaration_PureDataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_defaultFluidObjectRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_defaultFluidObjectRequestHandler():\n TypeOnly<typeof old.defaultFluidObjectRequestHandler>;\ndeclare function use_current_FunctionDeclaration_defaultFluidObjectRequestHandler(\n use: TypeOnly<typeof current.defaultFluidObjectRequestHandler>);\nuse_current_FunctionDeclaration_defaultFluidObjectRequestHandler(\n get_old_FunctionDeclaration_defaultFluidObjectRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_defaultFluidObjectRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_defaultFluidObjectRequestHandler():\n TypeOnly<typeof current.defaultFluidObjectRequestHandler>;\ndeclare function use_old_FunctionDeclaration_defaultFluidObjectRequestHandler(\n use: TypeOnly<typeof old.defaultFluidObjectRequestHandler>);\nuse_old_FunctionDeclaration_defaultFluidObjectRequestHandler(\n get_current_FunctionDeclaration_defaultFluidObjectRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_defaultRouteRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_defaultRouteRequestHandler():\n TypeOnly<typeof old.defaultRouteRequestHandler>;\ndeclare function use_current_VariableDeclaration_defaultRouteRequestHandler(\n use: TypeOnly<typeof current.defaultRouteRequestHandler>);\nuse_current_VariableDeclaration_defaultRouteRequestHandler(\n get_old_VariableDeclaration_defaultRouteRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_defaultRouteRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_defaultRouteRequestHandler():\n TypeOnly<typeof current.defaultRouteRequestHandler>;\ndeclare function use_old_VariableDeclaration_defaultRouteRequestHandler(\n use: TypeOnly<typeof old.defaultRouteRequestHandler>);\nuse_old_VariableDeclaration_defaultRouteRequestHandler(\n get_current_VariableDeclaration_defaultRouteRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_generateContainerServicesRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_generateContainerServicesRequestHandler():\n TypeOnly<typeof old.generateContainerServicesRequestHandler>;\ndeclare function use_current_VariableDeclaration_generateContainerServicesRequestHandler(\n use: TypeOnly<typeof current.generateContainerServicesRequestHandler>);\nuse_current_VariableDeclaration_generateContainerServicesRequestHandler(\n get_old_VariableDeclaration_generateContainerServicesRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_generateContainerServicesRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_generateContainerServicesRequestHandler():\n TypeOnly<typeof current.generateContainerServicesRequestHandler>;\ndeclare function use_old_VariableDeclaration_generateContainerServicesRequestHandler(\n use: TypeOnly<typeof old.generateContainerServicesRequestHandler>);\nuse_old_VariableDeclaration_generateContainerServicesRequestHandler(\n get_current_VariableDeclaration_generateContainerServicesRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getDefaultObjectFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getDefaultObjectFromContainer():\n TypeOnly<typeof old.getDefaultObjectFromContainer>;\ndeclare function use_current_FunctionDeclaration_getDefaultObjectFromContainer(\n use: TypeOnly<typeof current.getDefaultObjectFromContainer>);\nuse_current_FunctionDeclaration_getDefaultObjectFromContainer(\n get_old_FunctionDeclaration_getDefaultObjectFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getDefaultObjectFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getDefaultObjectFromContainer():\n TypeOnly<typeof current.getDefaultObjectFromContainer>;\ndeclare function use_old_FunctionDeclaration_getDefaultObjectFromContainer(\n use: TypeOnly<typeof old.getDefaultObjectFromContainer>);\nuse_old_FunctionDeclaration_getDefaultObjectFromContainer(\n get_current_FunctionDeclaration_getDefaultObjectFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getObjectFromContainer():\n TypeOnly<typeof old.getObjectFromContainer>;\ndeclare function use_current_FunctionDeclaration_getObjectFromContainer(\n use: TypeOnly<typeof current.getObjectFromContainer>);\nuse_current_FunctionDeclaration_getObjectFromContainer(\n get_old_FunctionDeclaration_getObjectFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getObjectFromContainer():\n TypeOnly<typeof current.getObjectFromContainer>;\ndeclare function use_old_FunctionDeclaration_getObjectFromContainer(\n use: TypeOnly<typeof old.getObjectFromContainer>);\nuse_old_FunctionDeclaration_getObjectFromContainer(\n get_current_FunctionDeclaration_getObjectFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectWithIdFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getObjectWithIdFromContainer():\n TypeOnly<typeof old.getObjectWithIdFromContainer>;\ndeclare function use_current_FunctionDeclaration_getObjectWithIdFromContainer(\n use: TypeOnly<typeof current.getObjectWithIdFromContainer>);\nuse_current_FunctionDeclaration_getObjectWithIdFromContainer(\n get_old_FunctionDeclaration_getObjectWithIdFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectWithIdFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getObjectWithIdFromContainer():\n TypeOnly<typeof current.getObjectWithIdFromContainer>;\ndeclare function use_old_FunctionDeclaration_getObjectWithIdFromContainer(\n use: TypeOnly<typeof old.getObjectWithIdFromContainer>);\nuse_old_FunctionDeclaration_getObjectWithIdFromContainer(\n get_current_FunctionDeclaration_getObjectWithIdFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_mountableViewRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_mountableViewRequestHandler():\n TypeOnly<typeof old.mountableViewRequestHandler>;\ndeclare function use_current_VariableDeclaration_mountableViewRequestHandler(\n use: TypeOnly<typeof current.mountableViewRequestHandler>);\nuse_current_VariableDeclaration_mountableViewRequestHandler(\n get_old_VariableDeclaration_mountableViewRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_mountableViewRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_mountableViewRequestHandler():\n TypeOnly<typeof current.mountableViewRequestHandler>;\ndeclare function use_old_VariableDeclaration_mountableViewRequestHandler(\n use: TypeOnly<typeof old.mountableViewRequestHandler>);\nuse_old_VariableDeclaration_mountableViewRequestHandler(\n get_current_VariableDeclaration_mountableViewRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_serviceRoutePathRoot\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_serviceRoutePathRoot():\n TypeOnly<typeof old.serviceRoutePathRoot>;\ndeclare function use_current_VariableDeclaration_serviceRoutePathRoot(\n use: TypeOnly<typeof current.serviceRoutePathRoot>);\nuse_current_VariableDeclaration_serviceRoutePathRoot(\n get_old_VariableDeclaration_serviceRoutePathRoot());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_serviceRoutePathRoot\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_serviceRoutePathRoot():\n TypeOnly<typeof current.serviceRoutePathRoot>;\ndeclare function use_old_VariableDeclaration_serviceRoutePathRoot(\n use: TypeOnly<typeof old.serviceRoutePathRoot>);\nuse_old_VariableDeclaration_serviceRoutePathRoot(\n get_current_VariableDeclaration_serviceRoutePathRoot());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_waitForAttach\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_waitForAttach():\n TypeOnly<typeof old.waitForAttach>;\ndeclare function use_current_FunctionDeclaration_waitForAttach(\n use: TypeOnly<typeof current.waitForAttach>);\nuse_current_FunctionDeclaration_waitForAttach(\n get_old_FunctionDeclaration_waitForAttach());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_waitForAttach\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_waitForAttach():\n TypeOnly<typeof current.waitForAttach>;\ndeclare function use_old_FunctionDeclaration_waitForAttach(\n use: TypeOnly<typeof old.waitForAttach>);\nuse_old_FunctionDeclaration_waitForAttach(\n get_current_FunctionDeclaration_waitForAttach());\n"]}
1
+ {"version":3,"file":"validateAqueductPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateAqueductPrevious.generated.ts"],"names":[],"mappings":";;AAwBA,wDAAwD,CACpD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD,CAChD,wDAAwD,EAAE,CAAC,CAAC;AAuBhE,wEAAwE,CACpE,oEAAoE,EAAE,CAAC,CAAC;AAW5E,oEAAoE,CAChE,wEAAwE,EAAE,CAAC,CAAC;AAuBhF,uCAAuC,CACnC,mCAAmC,EAAE,CAAC,CAAC;AAW3C,mCAAmC,CAC/B,uCAAuC,EAAE,CAAC,CAAC;AAW/C,8CAA8C,CAC1C,0CAA0C,EAAE,CAAC,CAAC;AAWlD,0CAA0C,CACtC,8CAA8C,EAAE,CAAC,CAAC;AAWtD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,kDAAkD,CAC9C,8CAA8C,EAAE,CAAC,CAAC;AAWtD,8CAA8C,CAC1C,kDAAkD,EAAE,CAAC,CAAC;AAW1D,gEAAgE,CAC5D,4DAA4D,EAAE,CAAC,CAAC;AAWpE,4DAA4D,CACxD,gEAAgE,EAAE,CAAC,CAAC;AAWxE,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAuBlE,6DAA6D,CACzD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,yDAAyD,CACrD,6DAA6D,EAAE,CAAC,CAAC;AAWrE,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,4DAA4D,CACxD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,wDAAwD,CACpD,4DAA4D,EAAE,CAAC,CAAC;AAWpE,2DAA2D,CACvD,uDAAuD,EAAE,CAAC,CAAC;AAW/D,uDAAuD,CACnD,2DAA2D,EAAE,CAAC,CAAC;AAEnE;;;;EAIE;AAEF;;;;EAIE;AAEF;;;;EAIE;AAEF;;;;EAIE","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport * as old from \"@fluidframework/aqueduct-previous\";\nimport * as current from \"../../index\";\n\ntype TypeOnly<T> = {\n [P in keyof T]: TypeOnly<T[P]>;\n};\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerRuntimeFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_BaseContainerRuntimeFactory():\n TypeOnly<old.BaseContainerRuntimeFactory>;\ndeclare function use_current_ClassDeclaration_BaseContainerRuntimeFactory(\n use: TypeOnly<current.BaseContainerRuntimeFactory>);\nuse_current_ClassDeclaration_BaseContainerRuntimeFactory(\n get_old_ClassDeclaration_BaseContainerRuntimeFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_BaseContainerRuntimeFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_BaseContainerRuntimeFactory():\n TypeOnly<current.BaseContainerRuntimeFactory>;\ndeclare function use_old_ClassDeclaration_BaseContainerRuntimeFactory(\n use: TypeOnly<old.BaseContainerRuntimeFactory>);\nuse_old_ClassDeclaration_BaseContainerRuntimeFactory(\n get_current_ClassDeclaration_BaseContainerRuntimeFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedClassDeclaration_BaseContainerService\": {\"forwardCompat\": false}\n*/\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedClassDeclaration_BaseContainerService\": {\"backCompat\": false}\n*/\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore():\n TypeOnly<old.ContainerRuntimeFactoryWithDefaultDataStore>;\ndeclare function use_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n use: TypeOnly<current.ContainerRuntimeFactoryWithDefaultDataStore>);\nuse_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n get_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore():\n TypeOnly<current.ContainerRuntimeFactoryWithDefaultDataStore>;\ndeclare function use_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n use: TypeOnly<old.ContainerRuntimeFactoryWithDefaultDataStore>);\nuse_old_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore(\n get_current_ClassDeclaration_ContainerRuntimeFactoryWithDefaultDataStore());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedTypeAliasDeclaration_ContainerServiceRegistryEntries\": {\"forwardCompat\": false}\n*/\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedTypeAliasDeclaration_ContainerServiceRegistryEntries\": {\"backCompat\": false}\n*/\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObject\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_DataObject():\n TypeOnly<old.DataObject>;\ndeclare function use_current_ClassDeclaration_DataObject(\n use: TypeOnly<current.DataObject>);\nuse_current_ClassDeclaration_DataObject(\n get_old_ClassDeclaration_DataObject());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObject\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_DataObject():\n TypeOnly<current.DataObject>;\ndeclare function use_old_ClassDeclaration_DataObject(\n use: TypeOnly<old.DataObject>);\nuse_old_ClassDeclaration_DataObject(\n get_current_ClassDeclaration_DataObject());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_DataObjectFactory():\n TypeOnly<old.DataObjectFactory<any,any>>;\ndeclare function use_current_ClassDeclaration_DataObjectFactory(\n use: TypeOnly<current.DataObjectFactory<any,any>>);\nuse_current_ClassDeclaration_DataObjectFactory(\n get_old_ClassDeclaration_DataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_DataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_DataObjectFactory():\n TypeOnly<current.DataObjectFactory<any,any>>;\ndeclare function use_old_ClassDeclaration_DataObjectFactory(\n use: TypeOnly<old.DataObjectFactory<any,any>>);\nuse_old_ClassDeclaration_DataObjectFactory(\n get_current_ClassDeclaration_DataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_DataObjectTypes\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_DataObjectTypes():\n TypeOnly<old.DataObjectTypes>;\ndeclare function use_current_InterfaceDeclaration_DataObjectTypes(\n use: TypeOnly<current.DataObjectTypes>);\nuse_current_InterfaceDeclaration_DataObjectTypes(\n get_old_InterfaceDeclaration_DataObjectTypes());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_DataObjectTypes\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_DataObjectTypes():\n TypeOnly<current.DataObjectTypes>;\ndeclare function use_old_InterfaceDeclaration_DataObjectTypes(\n use: TypeOnly<old.DataObjectTypes>);\nuse_old_InterfaceDeclaration_DataObjectTypes(\n get_current_InterfaceDeclaration_DataObjectTypes());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IDataObjectProps\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDataObjectProps():\n TypeOnly<old.IDataObjectProps>;\ndeclare function use_current_InterfaceDeclaration_IDataObjectProps(\n use: TypeOnly<current.IDataObjectProps>);\nuse_current_InterfaceDeclaration_IDataObjectProps(\n get_old_InterfaceDeclaration_IDataObjectProps());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IDataObjectProps\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDataObjectProps():\n TypeOnly<current.IDataObjectProps>;\ndeclare function use_old_InterfaceDeclaration_IDataObjectProps(\n use: TypeOnly<old.IDataObjectProps>);\nuse_old_InterfaceDeclaration_IDataObjectProps(\n get_current_InterfaceDeclaration_IDataObjectProps());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IRootDataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IRootDataObjectFactory():\n TypeOnly<old.IRootDataObjectFactory>;\ndeclare function use_current_InterfaceDeclaration_IRootDataObjectFactory(\n use: TypeOnly<current.IRootDataObjectFactory>);\nuse_current_InterfaceDeclaration_IRootDataObjectFactory(\n get_old_InterfaceDeclaration_IRootDataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_IRootDataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IRootDataObjectFactory():\n TypeOnly<current.IRootDataObjectFactory>;\ndeclare function use_old_InterfaceDeclaration_IRootDataObjectFactory(\n use: TypeOnly<old.IRootDataObjectFactory>);\nuse_old_InterfaceDeclaration_IRootDataObjectFactory(\n get_current_InterfaceDeclaration_IRootDataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObject\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_PureDataObject():\n TypeOnly<old.PureDataObject>;\ndeclare function use_current_ClassDeclaration_PureDataObject(\n use: TypeOnly<current.PureDataObject>);\nuse_current_ClassDeclaration_PureDataObject(\n get_old_ClassDeclaration_PureDataObject());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObject\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_PureDataObject():\n TypeOnly<current.PureDataObject>;\ndeclare function use_old_ClassDeclaration_PureDataObject(\n use: TypeOnly<old.PureDataObject>);\nuse_old_ClassDeclaration_PureDataObject(\n get_current_ClassDeclaration_PureDataObject());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObjectFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_PureDataObjectFactory():\n TypeOnly<old.PureDataObjectFactory<any,any>>;\ndeclare function use_current_ClassDeclaration_PureDataObjectFactory(\n use: TypeOnly<current.PureDataObjectFactory<any,any>>);\nuse_current_ClassDeclaration_PureDataObjectFactory(\n get_old_ClassDeclaration_PureDataObjectFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_PureDataObjectFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_PureDataObjectFactory():\n TypeOnly<current.PureDataObjectFactory<any,any>>;\ndeclare function use_old_ClassDeclaration_PureDataObjectFactory(\n use: TypeOnly<old.PureDataObjectFactory<any,any>>);\nuse_old_ClassDeclaration_PureDataObjectFactory(\n get_current_ClassDeclaration_PureDataObjectFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_defaultFluidObjectRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_defaultFluidObjectRequestHandler():\n TypeOnly<typeof old.defaultFluidObjectRequestHandler>;\ndeclare function use_current_FunctionDeclaration_defaultFluidObjectRequestHandler(\n use: TypeOnly<typeof current.defaultFluidObjectRequestHandler>);\nuse_current_FunctionDeclaration_defaultFluidObjectRequestHandler(\n get_old_FunctionDeclaration_defaultFluidObjectRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_defaultFluidObjectRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_defaultFluidObjectRequestHandler():\n TypeOnly<typeof current.defaultFluidObjectRequestHandler>;\ndeclare function use_old_FunctionDeclaration_defaultFluidObjectRequestHandler(\n use: TypeOnly<typeof old.defaultFluidObjectRequestHandler>);\nuse_old_FunctionDeclaration_defaultFluidObjectRequestHandler(\n get_current_FunctionDeclaration_defaultFluidObjectRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_defaultRouteRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_defaultRouteRequestHandler():\n TypeOnly<typeof old.defaultRouteRequestHandler>;\ndeclare function use_current_VariableDeclaration_defaultRouteRequestHandler(\n use: TypeOnly<typeof current.defaultRouteRequestHandler>);\nuse_current_VariableDeclaration_defaultRouteRequestHandler(\n get_old_VariableDeclaration_defaultRouteRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_defaultRouteRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_defaultRouteRequestHandler():\n TypeOnly<typeof current.defaultRouteRequestHandler>;\ndeclare function use_old_VariableDeclaration_defaultRouteRequestHandler(\n use: TypeOnly<typeof old.defaultRouteRequestHandler>);\nuse_old_VariableDeclaration_defaultRouteRequestHandler(\n get_current_VariableDeclaration_defaultRouteRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedVariableDeclaration_generateContainerServicesRequestHandler\": {\"forwardCompat\": false}\n*/\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedVariableDeclaration_generateContainerServicesRequestHandler\": {\"backCompat\": false}\n*/\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getDefaultObjectFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getDefaultObjectFromContainer():\n TypeOnly<typeof old.getDefaultObjectFromContainer>;\ndeclare function use_current_FunctionDeclaration_getDefaultObjectFromContainer(\n use: TypeOnly<typeof current.getDefaultObjectFromContainer>);\nuse_current_FunctionDeclaration_getDefaultObjectFromContainer(\n get_old_FunctionDeclaration_getDefaultObjectFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getDefaultObjectFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getDefaultObjectFromContainer():\n TypeOnly<typeof current.getDefaultObjectFromContainer>;\ndeclare function use_old_FunctionDeclaration_getDefaultObjectFromContainer(\n use: TypeOnly<typeof old.getDefaultObjectFromContainer>);\nuse_old_FunctionDeclaration_getDefaultObjectFromContainer(\n get_current_FunctionDeclaration_getDefaultObjectFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getObjectFromContainer():\n TypeOnly<typeof old.getObjectFromContainer>;\ndeclare function use_current_FunctionDeclaration_getObjectFromContainer(\n use: TypeOnly<typeof current.getObjectFromContainer>);\nuse_current_FunctionDeclaration_getObjectFromContainer(\n get_old_FunctionDeclaration_getObjectFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getObjectFromContainer():\n TypeOnly<typeof current.getObjectFromContainer>;\ndeclare function use_old_FunctionDeclaration_getObjectFromContainer(\n use: TypeOnly<typeof old.getObjectFromContainer>);\nuse_old_FunctionDeclaration_getObjectFromContainer(\n get_current_FunctionDeclaration_getObjectFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectWithIdFromContainer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_getObjectWithIdFromContainer():\n TypeOnly<typeof old.getObjectWithIdFromContainer>;\ndeclare function use_current_FunctionDeclaration_getObjectWithIdFromContainer(\n use: TypeOnly<typeof current.getObjectWithIdFromContainer>);\nuse_current_FunctionDeclaration_getObjectWithIdFromContainer(\n get_old_FunctionDeclaration_getObjectWithIdFromContainer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_getObjectWithIdFromContainer\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_getObjectWithIdFromContainer():\n TypeOnly<typeof current.getObjectWithIdFromContainer>;\ndeclare function use_old_FunctionDeclaration_getObjectWithIdFromContainer(\n use: TypeOnly<typeof old.getObjectWithIdFromContainer>);\nuse_old_FunctionDeclaration_getObjectWithIdFromContainer(\n get_current_FunctionDeclaration_getObjectWithIdFromContainer());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_mountableViewRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_mountableViewRequestHandler():\n TypeOnly<typeof old.mountableViewRequestHandler>;\ndeclare function use_current_VariableDeclaration_mountableViewRequestHandler(\n use: TypeOnly<typeof current.mountableViewRequestHandler>);\nuse_current_VariableDeclaration_mountableViewRequestHandler(\n get_old_VariableDeclaration_mountableViewRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_mountableViewRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_mountableViewRequestHandler():\n TypeOnly<typeof current.mountableViewRequestHandler>;\ndeclare function use_old_VariableDeclaration_mountableViewRequestHandler(\n use: TypeOnly<typeof old.mountableViewRequestHandler>);\nuse_old_VariableDeclaration_mountableViewRequestHandler(\n get_current_VariableDeclaration_mountableViewRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedVariableDeclaration_serviceRoutePathRoot\": {\"forwardCompat\": false}\n*/\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedVariableDeclaration_serviceRoutePathRoot\": {\"backCompat\": false}\n*/\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedFunctionDeclaration_waitForAttach\": {\"forwardCompat\": false}\n*/\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"RemovedFunctionDeclaration_waitForAttach\": {\"backCompat\": false}\n*/\n"]}
@@ -2,6 +2,5 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export { waitForAttach } from "./attachUtils";
6
5
  export { getDefaultObjectFromContainer, getObjectFromContainer, getObjectWithIdFromContainer, } from "./containerInteractions";
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAC"}
@@ -4,9 +4,7 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.getObjectWithIdFromContainer = exports.getObjectFromContainer = exports.getDefaultObjectFromContainer = exports.waitForAttach = void 0;
8
- var attachUtils_1 = require("./attachUtils");
9
- Object.defineProperty(exports, "waitForAttach", { enumerable: true, get: function () { return attachUtils_1.waitForAttach; } });
7
+ exports.getObjectWithIdFromContainer = exports.getObjectFromContainer = exports.getDefaultObjectFromContainer = void 0;
10
8
  var containerInteractions_1 = require("./containerInteractions");
11
9
  Object.defineProperty(exports, "getDefaultObjectFromContainer", { enumerable: true, get: function () { return containerInteractions_1.getDefaultObjectFromContainer; } });
12
10
  Object.defineProperty(exports, "getObjectFromContainer", { enumerable: true, get: function () { return containerInteractions_1.getObjectFromContainer; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6CAA8C;AAArC,4GAAA,aAAa,OAAA;AACtB,iEAIiC;AAHhC,sIAAA,6BAA6B,OAAA;AAC7B,+HAAA,sBAAsB,OAAA;AACtB,qIAAA,4BAA4B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { waitForAttach } from \"./attachUtils\";\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n} from \"./containerInteractions\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,iEAIiC;AAHhC,sIAAA,6BAA6B,OAAA;AAC7B,+HAAA,sBAAsB,OAAA;AACtB,qIAAA,4BAA4B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n} from \"./containerInteractions\";\n"]}
@@ -3,8 +3,6 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { assert, EventForwarder } from "@fluidframework/common-utils";
6
- import { handleFromLegacyUri } from "@fluidframework/request-handler";
7
- import { serviceRoutePathRoot } from "../container-services";
8
6
  import { defaultFluidObjectRequestHandler } from "../request-handlers";
9
7
  /**
10
8
  * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.
@@ -124,14 +122,6 @@ export class PureDataObject extends EventForwarder {
124
122
  return handle.get();
125
123
  }
126
124
  }
127
- /**
128
- * Gets the service at a given id.
129
- * @param id - service id
130
- * @deprecated See https://github.com/microsoft/FluidFramework/pull/14430 for context
131
- */
132
- async getService(id) {
133
- return handleFromLegacyUri(`/${serviceRoutePathRoot}/${id}`, this.context.containerRuntime).get();
134
- }
135
125
  /**
136
126
  * Called every time the data store is initialized, before initializingFirstTime or
137
127
  * initializingFromExisting is called.
@@ -1 +1 @@
1
- {"version":3,"file":"pureDataObject.js","sourceRoot":"","sources":["../../src/data-objects/pureDataObject.ts"],"names":[],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IEvent } from \"@fluidframework/common-definitions\";\nimport { assert, EventForwarder } from \"@fluidframework/common-utils\";\nimport {\n\tIFluidHandle,\n\tIFluidLoadable,\n\tIFluidRouter,\n\tIProvideFluidHandle,\n\tIRequest,\n\tIResponse,\n\tFluidObject,\n} from \"@fluidframework/core-interfaces\";\nimport { IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { IDirectory } from \"@fluidframework/map\";\nimport { handleFromLegacyUri } from \"@fluidframework/request-handler\";\nimport { IFluidDataStoreContext } from \"@fluidframework/runtime-definitions\";\nimport { AsyncFluidObjectProvider } from \"@fluidframework/synthesize\";\nimport { serviceRoutePathRoot } from \"../container-services\";\nimport { defaultFluidObjectRequestHandler } from \"../request-handlers\";\nimport { DataObjectTypes, IDataObjectProps } from \"./types\";\n\n/**\n * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.\n * You probably don't want to inherit from this data store directly unless\n * you are creating another base data store class\n *\n * @typeParam I - The optional input types used to strongly type the data object\n */\nexport abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes>\n\textends EventForwarder<I[\"Events\"] & IEvent>\n\timplements IFluidLoadable, IFluidRouter, IProvideFluidHandle\n{\n\tprivate _disposed = false;\n\n\t/**\n\t * This is your FluidDataStoreRuntime object\n\t */\n\tprotected readonly runtime: IFluidDataStoreRuntime;\n\n\t/**\n\t * This context is used to talk up to the ContainerRuntime\n\t */\n\tprotected readonly context: IFluidDataStoreContext;\n\n\t/**\n\t * Providers are FluidObject keyed objects that provide back\n\t * a promise to the corresponding FluidObject or undefined.\n\t * Providers injected/provided by the Container and/or HostingApplication\n\t *\n\t * To define providers set FluidObject interfaces in the OptionalProviders generic type for your data store\n\t */\n\tprotected readonly providers: AsyncFluidObjectProvider<I[\"OptionalProviders\"]>;\n\n\tprotected initProps?: I[\"InitialState\"];\n\n\tprotected initializeP: Promise<void> | undefined;\n\n\tpublic get disposed() {\n\t\treturn this._disposed;\n\t}\n\n\tpublic get id() {\n\t\treturn this.runtime.id;\n\t}\n\tpublic get IFluidRouter() {\n\t\treturn this;\n\t}\n\tpublic get IFluidLoadable() {\n\t\treturn this;\n\t}\n\tpublic get IFluidHandle() {\n\t\treturn this.handle;\n\t}\n\n\t/**\n\t * Handle to a data store\n\t */\n\tpublic get handle(): IFluidHandle<this> {\n\t\t// PureDataObjectFactory already provides an entryPoint initialization function to the data store runtime,\n\t\t// so this object should always have access to a non-null entryPoint. Need to cast because PureDataObject\n\t\t// tried to be too smart with its typing for handles :).\n\t\tassert(this.runtime.entryPoint !== undefined, 0x46b /* EntryPoint was undefined */);\n\t\treturn this.runtime.entryPoint as IFluidHandle<this>;\n\t}\n\n\tpublic static async getDataObject(runtime: IFluidDataStoreRuntime) {\n\t\tconst obj = await runtime.entryPoint?.get();\n\t\tassert(obj !== undefined, 0x0bc /* \"The runtime's handle is not initialized yet!\" */);\n\t\treturn obj as PureDataObject;\n\t}\n\n\tpublic constructor(props: IDataObjectProps<I>) {\n\t\tsuper();\n\t\tthis.runtime = props.runtime;\n\t\tthis.context = props.context;\n\t\tthis.providers = props.providers;\n\t\tthis.initProps = props.initProps;\n\n\t\tassert(\n\t\t\t(this.runtime as any)._dataObject === undefined,\n\t\t\t0x0bd /* \"Object runtime already has DataObject!\" */,\n\t\t);\n\t\t(this.runtime as any)._dataObject = this;\n\n\t\t// Container event handlers\n\t\tthis.runtime.once(\"dispose\", () => {\n\t\t\tthis._disposed = true;\n\t\t\tthis.dispose();\n\t\t});\n\t}\n\n\t// #region IFluidRouter\n\n\t/**\n\t * Return this object if someone requests it directly\n\t * We will return this object in two scenarios:\n\t *\n\t * 1. the request url is a \"/\"\n\t *\n\t * 2. the request url is empty\n\t */\n\tpublic async request(req: IRequest): Promise<IResponse> {\n\t\treturn defaultFluidObjectRequestHandler(this, req);\n\t}\n\n\t// #endregion IFluidRouter\n\n\t/**\n\t * Call this API to ensure PureDataObject is fully initialized.\n\t * Initialization happens on demand, only on as-needed bases.\n\t * In most cases you should allow factory/object to decide when to finish initialization.\n\t * But if you are supplying your own implementation of DataStoreRuntime factory and overriding some methods\n\t * and need a fully initialized object, then you can call this API to ensure object is fully initialized.\n\t */\n\tpublic async finishInitialization(existing: boolean): Promise<void> {\n\t\tif (this.initializeP !== undefined) {\n\t\t\treturn this.initializeP;\n\t\t}\n\t\tthis.initializeP = this.initializeInternal(existing);\n\t\treturn this.initializeP;\n\t}\n\n\t/**\n\t * Internal initialize implementation. Overwriting this will change the flow of the PureDataObject and should\n\t * generally not be done.\n\t *\n\t * Calls initializingFirstTime, initializingFromExisting, and hasInitialized. Caller is\n\t * responsible for ensuring this is only invoked once.\n\t */\n\tpublic async initializeInternal(existing: boolean): Promise<void> {\n\t\tawait this.preInitialize();\n\t\tif (existing) {\n\t\t\tassert(\n\t\t\t\tthis.initProps === undefined,\n\t\t\t\t0x0be /* \"Trying to initialize from existing while initProps is set!\" */,\n\t\t\t);\n\t\t\tawait this.initializingFromExisting();\n\t\t} else {\n\t\t\tawait this.initializingFirstTime(\n\t\t\t\t(this.context.createProps as I[\"InitialState\"]) ?? this.initProps,\n\t\t\t);\n\t\t}\n\t\tawait this.hasInitialized();\n\t}\n\n\t/**\n\t * Retrieve Fluid object using the handle get\n\t *\n\t * @param key - key that object (handle/id) is stored with in the directory\n\t * @param directory - directory containing the object\n\t * @param getObjectFromDirectory - optional callback for fetching object from the directory, allows users to\n\t * define custom types/getters for object retrieval\n\t */\n\tpublic async getFluidObjectFromDirectory<T extends IFluidLoadable>(\n\t\tkey: string,\n\t\tdirectory: IDirectory,\n\t\tgetObjectFromDirectory?: (id: string, directory: IDirectory) => IFluidHandle | undefined,\n\t): Promise<T | undefined> {\n\t\tconst handleMaybe = getObjectFromDirectory\n\t\t\t? getObjectFromDirectory(key, directory)\n\t\t\t: directory.get(key);\n\t\tconst handle = handleMaybe?.IFluidHandle;\n\t\tif (handle) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\t\t\treturn handle.get();\n\t\t}\n\t}\n\n\t/**\n\t * Gets the service at a given id.\n\t * @param id - service id\n\t * @deprecated See https://github.com/microsoft/FluidFramework/pull/14430 for context\n\t */\n\tprotected async getService<T extends FluidObject>(id: string): Promise<T> {\n\t\treturn handleFromLegacyUri<T>(\n\t\t\t`/${serviceRoutePathRoot}/${id}`,\n\t\t\tthis.context.containerRuntime,\n\t\t).get();\n\t}\n\n\t/**\n\t * Called every time the data store is initialized, before initializingFirstTime or\n\t * initializingFromExisting is called.\n\t */\n\tprotected async preInitialize(): Promise<void> {}\n\n\t/**\n\t * Called the first time the data store is initialized (new creations with a new\n\t * data store runtime)\n\t *\n\t * @param props - Optional props to be passed in on create\n\t */\n\tprotected async initializingFirstTime(props?: I[\"InitialState\"]): Promise<void> {}\n\n\t/**\n\t * Called every time but the first time the data store is initialized (creations\n\t * with an existing data store runtime)\n\t */\n\tprotected async initializingFromExisting(): Promise<void> {}\n\n\t/**\n\t * Called every time the data store is initialized after create or existing.\n\t */\n\tprotected async hasInitialized(): Promise<void> {}\n\n\t/**\n\t * Called when the host container closes and disposes itself\n\t */\n\tpublic dispose(): void {\n\t\tsuper.dispose();\n\t}\n}\n"]}
1
+ {"version":3,"file":"pureDataObject.js","sourceRoot":"","sources":["../../src/data-objects/pureDataObject.ts"],"names":[],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IEvent } from \"@fluidframework/common-definitions\";\nimport { assert, EventForwarder } from \"@fluidframework/common-utils\";\nimport {\n\tIFluidHandle,\n\tIFluidLoadable,\n\tIFluidRouter,\n\tIProvideFluidHandle,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport { IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { IDirectory } from \"@fluidframework/map\";\nimport { IFluidDataStoreContext } from \"@fluidframework/runtime-definitions\";\nimport { AsyncFluidObjectProvider } from \"@fluidframework/synthesize\";\nimport { defaultFluidObjectRequestHandler } from \"../request-handlers\";\nimport { DataObjectTypes, IDataObjectProps } from \"./types\";\n\n/**\n * This is a bare-bones base class that does basic setup and enables for factory on an initialize call.\n * You probably don't want to inherit from this data store directly unless\n * you are creating another base data store class\n *\n * @typeParam I - The optional input types used to strongly type the data object\n */\nexport abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes>\n\textends EventForwarder<I[\"Events\"] & IEvent>\n\timplements IFluidLoadable, IFluidRouter, IProvideFluidHandle\n{\n\tprivate _disposed = false;\n\n\t/**\n\t * This is your FluidDataStoreRuntime object\n\t */\n\tprotected readonly runtime: IFluidDataStoreRuntime;\n\n\t/**\n\t * This context is used to talk up to the ContainerRuntime\n\t */\n\tprotected readonly context: IFluidDataStoreContext;\n\n\t/**\n\t * Providers are FluidObject keyed objects that provide back\n\t * a promise to the corresponding FluidObject or undefined.\n\t * Providers injected/provided by the Container and/or HostingApplication\n\t *\n\t * To define providers set FluidObject interfaces in the OptionalProviders generic type for your data store\n\t */\n\tprotected readonly providers: AsyncFluidObjectProvider<I[\"OptionalProviders\"]>;\n\n\tprotected initProps?: I[\"InitialState\"];\n\n\tprotected initializeP: Promise<void> | undefined;\n\n\tpublic get disposed() {\n\t\treturn this._disposed;\n\t}\n\n\tpublic get id() {\n\t\treturn this.runtime.id;\n\t}\n\tpublic get IFluidRouter() {\n\t\treturn this;\n\t}\n\tpublic get IFluidLoadable() {\n\t\treturn this;\n\t}\n\tpublic get IFluidHandle() {\n\t\treturn this.handle;\n\t}\n\n\t/**\n\t * Handle to a data store\n\t */\n\tpublic get handle(): IFluidHandle<this> {\n\t\t// PureDataObjectFactory already provides an entryPoint initialization function to the data store runtime,\n\t\t// so this object should always have access to a non-null entryPoint. Need to cast because PureDataObject\n\t\t// tried to be too smart with its typing for handles :).\n\t\tassert(this.runtime.entryPoint !== undefined, 0x46b /* EntryPoint was undefined */);\n\t\treturn this.runtime.entryPoint as IFluidHandle<this>;\n\t}\n\n\tpublic static async getDataObject(runtime: IFluidDataStoreRuntime) {\n\t\tconst obj = await runtime.entryPoint?.get();\n\t\tassert(obj !== undefined, 0x0bc /* \"The runtime's handle is not initialized yet!\" */);\n\t\treturn obj as PureDataObject;\n\t}\n\n\tpublic constructor(props: IDataObjectProps<I>) {\n\t\tsuper();\n\t\tthis.runtime = props.runtime;\n\t\tthis.context = props.context;\n\t\tthis.providers = props.providers;\n\t\tthis.initProps = props.initProps;\n\n\t\tassert(\n\t\t\t(this.runtime as any)._dataObject === undefined,\n\t\t\t0x0bd /* \"Object runtime already has DataObject!\" */,\n\t\t);\n\t\t(this.runtime as any)._dataObject = this;\n\n\t\t// Container event handlers\n\t\tthis.runtime.once(\"dispose\", () => {\n\t\t\tthis._disposed = true;\n\t\t\tthis.dispose();\n\t\t});\n\t}\n\n\t// #region IFluidRouter\n\n\t/**\n\t * Return this object if someone requests it directly\n\t * We will return this object in two scenarios:\n\t *\n\t * 1. the request url is a \"/\"\n\t *\n\t * 2. the request url is empty\n\t */\n\tpublic async request(req: IRequest): Promise<IResponse> {\n\t\treturn defaultFluidObjectRequestHandler(this, req);\n\t}\n\n\t// #endregion IFluidRouter\n\n\t/**\n\t * Call this API to ensure PureDataObject is fully initialized.\n\t * Initialization happens on demand, only on as-needed bases.\n\t * In most cases you should allow factory/object to decide when to finish initialization.\n\t * But if you are supplying your own implementation of DataStoreRuntime factory and overriding some methods\n\t * and need a fully initialized object, then you can call this API to ensure object is fully initialized.\n\t */\n\tpublic async finishInitialization(existing: boolean): Promise<void> {\n\t\tif (this.initializeP !== undefined) {\n\t\t\treturn this.initializeP;\n\t\t}\n\t\tthis.initializeP = this.initializeInternal(existing);\n\t\treturn this.initializeP;\n\t}\n\n\t/**\n\t * Internal initialize implementation. Overwriting this will change the flow of the PureDataObject and should\n\t * generally not be done.\n\t *\n\t * Calls initializingFirstTime, initializingFromExisting, and hasInitialized. Caller is\n\t * responsible for ensuring this is only invoked once.\n\t */\n\tpublic async initializeInternal(existing: boolean): Promise<void> {\n\t\tawait this.preInitialize();\n\t\tif (existing) {\n\t\t\tassert(\n\t\t\t\tthis.initProps === undefined,\n\t\t\t\t0x0be /* \"Trying to initialize from existing while initProps is set!\" */,\n\t\t\t);\n\t\t\tawait this.initializingFromExisting();\n\t\t} else {\n\t\t\tawait this.initializingFirstTime(\n\t\t\t\t(this.context.createProps as I[\"InitialState\"]) ?? this.initProps,\n\t\t\t);\n\t\t}\n\t\tawait this.hasInitialized();\n\t}\n\n\t/**\n\t * Retrieve Fluid object using the handle get\n\t *\n\t * @param key - key that object (handle/id) is stored with in the directory\n\t * @param directory - directory containing the object\n\t * @param getObjectFromDirectory - optional callback for fetching object from the directory, allows users to\n\t * define custom types/getters for object retrieval\n\t */\n\tpublic async getFluidObjectFromDirectory<T extends IFluidLoadable>(\n\t\tkey: string,\n\t\tdirectory: IDirectory,\n\t\tgetObjectFromDirectory?: (id: string, directory: IDirectory) => IFluidHandle | undefined,\n\t): Promise<T | undefined> {\n\t\tconst handleMaybe = getObjectFromDirectory\n\t\t\t? getObjectFromDirectory(key, directory)\n\t\t\t: directory.get(key);\n\t\tconst handle = handleMaybe?.IFluidHandle;\n\t\tif (handle) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\t\t\treturn handle.get();\n\t\t}\n\t}\n\n\t/**\n\t * Called every time the data store is initialized, before initializingFirstTime or\n\t * initializingFromExisting is called.\n\t */\n\tprotected async preInitialize(): Promise<void> {}\n\n\t/**\n\t * Called the first time the data store is initialized (new creations with a new\n\t * data store runtime)\n\t *\n\t * @param props - Optional props to be passed in on create\n\t */\n\tprotected async initializingFirstTime(props?: I[\"InitialState\"]): Promise<void> {}\n\n\t/**\n\t * Called every time but the first time the data store is initialized (creations\n\t * with an existing data store runtime)\n\t */\n\tprotected async initializingFromExisting(): Promise<void> {}\n\n\t/**\n\t * Called every time the data store is initialized after create or existing.\n\t */\n\tprotected async hasInitialized(): Promise<void> {}\n\n\t/**\n\t * Called when the host container closes and disposes itself\n\t */\n\tpublic dispose(): void {\n\t\tsuper.dispose();\n\t}\n}\n"]}
package/lib/index.js CHANGED
@@ -19,7 +19,6 @@
19
19
  export { DataObjectFactory, PureDataObjectFactory, } from "./data-object-factories";
20
20
  export { DataObject, PureDataObject } from "./data-objects";
21
21
  export { BaseContainerRuntimeFactory, ContainerRuntimeFactoryWithDefaultDataStore, } from "./container-runtime-factories";
22
- export { BaseContainerService, generateContainerServicesRequestHandler, serviceRoutePathRoot, } from "./container-services";
23
22
  export { defaultFluidObjectRequestHandler, defaultRouteRequestHandler, mountableViewRequestHandler, } from "./request-handlers";
24
- export { getDefaultObjectFromContainer, getObjectFromContainer, getObjectWithIdFromContainer, waitForAttach, } from "./utils";
23
+ export { getDefaultObjectFromContainer, getObjectFromContainer, getObjectWithIdFromContainer, } from "./utils";
25
24
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACN,iBAAiB,EAEjB,qBAAqB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAqC,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EACN,2BAA2B,EAC3B,2CAA2C,GAC3C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,oBAAoB,EAEpB,uCAAuC,EACvC,oBAAoB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,gCAAgC,EAChC,0BAA0B,EAC1B,2BAA2B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,EAC5B,aAAa,GACb,MAAM,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * The `aqueduct` package is a library for building Fluid objects and Fluid\n * containers within the Fluid Framework. Its goal is to provide a thin base\n * layer over the existing Fluid Framework interfaces that allows developers to\n * get started quickly.\n *\n * @remarks\n * About the library name: An \"aqueduct\" is a way to transport water from a source\n * to another location. The library name was chosen because its purpose is to\n * facilitate using lower level constructs and therefore handle 'fluid' items\n * same as an aqueduct.\n *\n * @packageDocumentation\n */\n\nexport {\n\tDataObjectFactory,\n\tIRootDataObjectFactory,\n\tPureDataObjectFactory,\n} from \"./data-object-factories\";\nexport { DataObject, DataObjectTypes, IDataObjectProps, PureDataObject } from \"./data-objects\";\nexport {\n\tBaseContainerRuntimeFactory,\n\tContainerRuntimeFactoryWithDefaultDataStore,\n} from \"./container-runtime-factories\";\nexport {\n\tBaseContainerService,\n\tContainerServiceRegistryEntries,\n\tgenerateContainerServicesRequestHandler,\n\tserviceRoutePathRoot,\n} from \"./container-services\";\nexport {\n\tdefaultFluidObjectRequestHandler,\n\tdefaultRouteRequestHandler,\n\tmountableViewRequestHandler,\n} from \"./request-handlers\";\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n\twaitForAttach,\n} from \"./utils\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACN,iBAAiB,EAEjB,qBAAqB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAqC,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EACN,2BAA2B,EAC3B,2CAA2C,GAC3C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,gCAAgC,EAChC,0BAA0B,EAC1B,2BAA2B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * The `aqueduct` package is a library for building Fluid objects and Fluid\n * containers within the Fluid Framework. Its goal is to provide a thin base\n * layer over the existing Fluid Framework interfaces that allows developers to\n * get started quickly.\n *\n * @remarks\n * About the library name: An \"aqueduct\" is a way to transport water from a source\n * to another location. The library name was chosen because its purpose is to\n * facilitate using lower level constructs and therefore handle 'fluid' items\n * same as an aqueduct.\n *\n * @packageDocumentation\n */\n\nexport {\n\tDataObjectFactory,\n\tIRootDataObjectFactory,\n\tPureDataObjectFactory,\n} from \"./data-object-factories\";\nexport { DataObject, DataObjectTypes, IDataObjectProps, PureDataObject } from \"./data-objects\";\nexport {\n\tBaseContainerRuntimeFactory,\n\tContainerRuntimeFactoryWithDefaultDataStore,\n} from \"./container-runtime-factories\";\nexport {\n\tdefaultFluidObjectRequestHandler,\n\tdefaultRouteRequestHandler,\n\tmountableViewRequestHandler,\n} from \"./request-handlers\";\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n} from \"./utils\";\n"]}
@@ -2,6 +2,5 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export { waitForAttach } from "./attachUtils";
6
5
  export { getDefaultObjectFromContainer, getObjectFromContainer, getObjectWithIdFromContainer, } from "./containerInteractions";
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { waitForAttach } from \"./attachUtils\";\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n} from \"./containerInteractions\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tgetDefaultObjectFromContainer,\n\tgetObjectFromContainer,\n\tgetObjectWithIdFromContainer,\n} from \"./containerInteractions\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/aqueduct",
3
- "version": "2.0.0-internal.3.4.0",
3
+ "version": "2.0.0-internal.4.0.0",
4
4
  "description": "A set of implementations for Fluid Framework interfaces.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -41,19 +41,19 @@
41
41
  "dependencies": {
42
42
  "@fluidframework/common-definitions": "^0.20.1",
43
43
  "@fluidframework/common-utils": "^1.1.1",
44
- "@fluidframework/container-definitions": "^2.0.0-internal.3.4.0",
45
- "@fluidframework/container-loader": "^2.0.0-internal.3.4.0",
46
- "@fluidframework/container-runtime": "^2.0.0-internal.3.4.0",
47
- "@fluidframework/container-runtime-definitions": "^2.0.0-internal.3.4.0",
48
- "@fluidframework/core-interfaces": "^2.0.0-internal.3.4.0",
49
- "@fluidframework/datastore": "^2.0.0-internal.3.4.0",
50
- "@fluidframework/datastore-definitions": "^2.0.0-internal.3.4.0",
51
- "@fluidframework/map": "^2.0.0-internal.3.4.0",
52
- "@fluidframework/request-handler": "^2.0.0-internal.3.4.0",
53
- "@fluidframework/runtime-definitions": "^2.0.0-internal.3.4.0",
54
- "@fluidframework/runtime-utils": "^2.0.0-internal.3.4.0",
55
- "@fluidframework/synthesize": "^2.0.0-internal.3.4.0",
56
- "@fluidframework/view-interfaces": "^2.0.0-internal.3.4.0",
44
+ "@fluidframework/container-definitions": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
45
+ "@fluidframework/container-loader": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
46
+ "@fluidframework/container-runtime": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
47
+ "@fluidframework/container-runtime-definitions": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
48
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
49
+ "@fluidframework/datastore": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
50
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
51
+ "@fluidframework/map": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
52
+ "@fluidframework/request-handler": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
53
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
54
+ "@fluidframework/runtime-utils": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
55
+ "@fluidframework/synthesize": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
56
+ "@fluidframework/view-interfaces": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
57
57
  "uuid": "^8.3.1"
58
58
  },
59
59
  "devDependencies": {
@@ -62,7 +62,7 @@
62
62
  "@fluidframework/build-common": "^1.1.0",
63
63
  "@fluidframework/build-tools": "^0.13.0",
64
64
  "@fluidframework/eslint-config-fluid": "^2.0.0",
65
- "@fluidframework/mocha-test-setup": "^2.0.0-internal.3.4.0",
65
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.4.0.0 <2.0.0-internal.5.0.0",
66
66
  "@microsoft/api-extractor": "^7.34.4",
67
67
  "@types/mocha": "^9.1.1",
68
68
  "@types/node": "^14.18.38",
@@ -78,7 +78,28 @@
78
78
  },
79
79
  "module:es5": "es5/index.js",
80
80
  "typeValidation": {
81
- "broken": {}
81
+ "broken": {
82
+ "RemovedClassDeclaration_BaseContainerService": {
83
+ "forwardCompat": false,
84
+ "backCompat": false
85
+ },
86
+ "RemovedVariableDeclaration_generateContainerServicesRequestHandler": {
87
+ "forwardCompat": false,
88
+ "backCompat": false
89
+ },
90
+ "RemovedTypeAliasDeclaration_ContainerServiceRegistryEntries": {
91
+ "forwardCompat": false,
92
+ "backCompat": false
93
+ },
94
+ "RemovedVariableDeclaration_serviceRoutePathRoot": {
95
+ "forwardCompat": false,
96
+ "backCompat": false
97
+ },
98
+ "RemovedFunctionDeclaration_waitForAttach": {
99
+ "forwardCompat": false,
100
+ "backCompat": false
101
+ }
102
+ }
82
103
  },
83
104
  "scripts": {
84
105
  "build": "concurrently npm:build:compile npm:lint && npm run build:docs",
@@ -1,44 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IResponse, IFluidRouter, IRequest, FluidObject } from "@fluidframework/core-interfaces";
6
- import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
7
- import { RuntimeRequestHandler } from "@fluidframework/request-handler";
8
- /**
9
- * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}
10
- */
11
- export declare const serviceRoutePathRoot = "_services";
12
- /**
13
- * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}
14
- */
15
- export declare type ContainerServiceRegistryEntries = Iterable<[
16
- string,
17
- (runtime: IContainerRuntime) => Promise<FluidObject>
18
- ]>;
19
- /**
20
- * This class is a simple starter class for building a Container Service. It simply provides routing
21
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
22
- */
23
- export declare abstract class BaseContainerService implements IFluidRouter {
24
- protected readonly runtime: IContainerRuntime;
25
- /**
26
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
27
- */
28
- get IFluidRouter(): this;
29
- /**
30
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
31
- */
32
- constructor(runtime: IContainerRuntime);
33
- /**
34
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
35
- */
36
- request(request: IRequest): Promise<IResponse>;
37
- }
38
- /**
39
- * Given a collection of IContainerServices will produce a RequestHandler for them all
40
- * @param serviceRegistry - Collection of Container Services
41
- * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}
42
- */
43
- export declare const generateContainerServicesRequestHandler: (serviceRegistry: ContainerServiceRegistryEntries) => RuntimeRequestHandler;
44
- //# sourceMappingURL=containerServices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"containerServices.d.ts","sourceRoot":"","sources":["../../src/container-services/containerServices.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAQxE;;GAEG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD;;GAEG;AACH,oBAAY,+BAA+B,GAAG,QAAQ,CACrD;IAAC,MAAM;IAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC;CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACH,8BAAsB,oBAAqB,YAAW,YAAY;IAWrD,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB;IAVzD;;OAEG;IACH,IAAW,YAAY,SAEtB;IAED;;OAEG;gBAC4B,OAAO,EAAE,iBAAiB;IAEzD;;OAEG;IACU,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;CAO3D;AAoBD;;;;GAIG;AACH,eAAO,MAAM,uCAAuC,wDAEjD,qBAkDF,CAAC"}
@@ -1,100 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.generateContainerServicesRequestHandler = exports.BaseContainerService = exports.serviceRoutePathRoot = void 0;
8
- const runtime_utils_1 = require("@fluidframework/runtime-utils");
9
- // TODO: should this just be "s"?
10
- /**
11
- * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}
12
- */
13
- exports.serviceRoutePathRoot = "_services";
14
- /**
15
- * This class is a simple starter class for building a Container Service. It simply provides routing
16
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
17
- */
18
- class BaseContainerService {
19
- /**
20
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
21
- */
22
- constructor(runtime) {
23
- this.runtime = runtime;
24
- }
25
- /**
26
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
27
- */
28
- get IFluidRouter() {
29
- return this;
30
- }
31
- /**
32
- * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class
33
- */
34
- async request(request) {
35
- return {
36
- status: 200,
37
- mimeType: "fluid/object",
38
- value: this,
39
- };
40
- }
41
- }
42
- exports.BaseContainerService = BaseContainerService;
43
- /**
44
- * ContainerService Factory that will only create one instance of the service for the Container.
45
- */
46
- class SingletonContainerServiceFactory {
47
- constructor(serviceFn) {
48
- this.serviceFn = serviceFn;
49
- }
50
- async getService(runtime) {
51
- if (!this.service) {
52
- this.service = this.serviceFn(runtime);
53
- }
54
- return this.service;
55
- }
56
- }
57
- /**
58
- * Given a collection of IContainerServices will produce a RequestHandler for them all
59
- * @param serviceRegistry - Collection of Container Services
60
- * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}
61
- */
62
- const generateContainerServicesRequestHandler = (serviceRegistry) => {
63
- const factories = new Map();
64
- new Map(serviceRegistry).forEach((fn, id) => {
65
- factories.set(id, new SingletonContainerServiceFactory(fn));
66
- });
67
- return async (request, runtime) => {
68
- if (request.pathParts[0] !== exports.serviceRoutePathRoot) {
69
- // If the request is not for a service we return undefined so the next handler can use it
70
- return undefined;
71
- }
72
- if (request.pathParts.length < 2) {
73
- // If there is not service to route to then return a failure
74
- return (0, runtime_utils_1.createResponseError)(400, "request did not specify a service to route to", request);
75
- }
76
- const factory = factories.get(request.pathParts[1]);
77
- if (!factory) {
78
- // If we can't find a registry entry then return
79
- return (0, runtime_utils_1.create404Response)(request);
80
- }
81
- const service = await factory.getService(runtime);
82
- const router = service.IFluidRouter;
83
- const subRequest = request.createSubRequest(2);
84
- if (router) {
85
- return router.request(subRequest);
86
- }
87
- if (!request.isLeaf(2)) {
88
- // If there is not terminating route but a sub-route was requested then we will fail.
89
- return (0, runtime_utils_1.createResponseError)(400, "request sub-url for service that doesn't support routing", request);
90
- }
91
- // Otherwise we will just return the service
92
- return {
93
- status: 200,
94
- mimeType: "fluid/object",
95
- value: service,
96
- };
97
- };
98
- };
99
- exports.generateContainerServicesRequestHandler = generateContainerServicesRequestHandler;
100
- //# sourceMappingURL=containerServices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"containerServices.js","sourceRoot":"","sources":["../../src/container-services/containerServices.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAKH,iEAIuC;AAEvC,iCAAiC;AACjC;;GAEG;AACU,QAAA,oBAAoB,GAAG,WAAW,CAAC;AAShD;;;GAGG;AACH,MAAsB,oBAAoB;IAQzC;;OAEG;IACH,YAA+B,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;IAAG,CAAC;IAV7D;;OAEG;IACH,IAAW,YAAY;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAOD;;OAEG;IACI,KAAK,CAAC,OAAO,CAAC,OAAiB;QACrC,OAAO;YACN,MAAM,EAAE,GAAG;YACX,QAAQ,EAAE,cAAc;YACxB,KAAK,EAAE,IAAI;SACX,CAAC;IACH,CAAC;CACD;AAvBD,oDAuBC;AAED;;GAEG;AACH,MAAM,gCAAgC;IAGrC,YACkB,SAA+D;QAA/D,cAAS,GAAT,SAAS,CAAsD;IAC9E,CAAC;IAEG,KAAK,CAAC,UAAU,CAAC,OAA0B;QACjD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD;AAED;;;;GAIG;AACI,MAAM,uCAAuC,GAAG,CACtD,eAAgD,EACxB,EAAE;IAC1B,MAAM,SAAS,GAAkD,IAAI,GAAG,EAAE,CAAC;IAC3E,IAAI,GAAG,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,gCAAgC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,EAAE,OAAsB,EAAE,OAA0B,EAAE,EAAE;QACnE,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,4BAAoB,EAAE;YAClD,yFAAyF;YACzF,OAAO,SAAS,CAAC;SACjB;QAED,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;YACjC,4DAA4D;YAC5D,OAAO,IAAA,mCAAmB,EACzB,GAAG,EACH,+CAA+C,EAC/C,OAAO,CACP,CAAC;SACF;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,EAAE;YACb,gDAAgD;YAChD,OAAO,IAAA,iCAAiB,EAAC,OAAO,CAAC,CAAC;SAClC;QAED,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;QACpC,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC/C,IAAI,MAAM,EAAE;YACX,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAClC;QAED,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACvB,qFAAqF;YACrF,OAAO,IAAA,mCAAmB,EACzB,GAAG,EACH,0DAA0D,EAC1D,OAAO,CACP,CAAC;SACF;QAED,4CAA4C;QAC5C,OAAO;YACN,MAAM,EAAE,GAAG;YACX,QAAQ,EAAE,cAAc;YACxB,KAAK,EAAE,OAAO;SACd,CAAC;IACH,CAAC,CAAC;AACH,CAAC,CAAC;AApDW,QAAA,uCAAuC,2CAoDlD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResponse, IFluidRouter, IRequest, FluidObject } from \"@fluidframework/core-interfaces\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport {\n\tRequestParser,\n\tcreate404Response,\n\tcreateResponseError,\n} from \"@fluidframework/runtime-utils\";\n\n// TODO: should this just be \"s\"?\n/**\n * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}\n */\nexport const serviceRoutePathRoot = \"_services\";\n\n/**\n * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}\n */\nexport type ContainerServiceRegistryEntries = Iterable<\n\t[string, (runtime: IContainerRuntime) => Promise<FluidObject>]\n>;\n\n/**\n * This class is a simple starter class for building a Container Service. It simply provides routing\n * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class\n */\nexport abstract class BaseContainerService implements IFluidRouter {\n\t/**\n\t * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class\n\t */\n\tpublic get IFluidRouter() {\n\t\treturn this;\n\t}\n\n\t/**\n\t * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class\n\t */\n\tconstructor(protected readonly runtime: IContainerRuntime) {}\n\n\t/**\n\t * @deprecated Use {@link @fluidframework/synthesize#DependencyContainer} as a replacement for this class\n\t */\n\tpublic async request(request: IRequest): Promise<IResponse> {\n\t\treturn {\n\t\t\tstatus: 200,\n\t\t\tmimeType: \"fluid/object\",\n\t\t\tvalue: this,\n\t\t};\n\t}\n}\n\n/**\n * ContainerService Factory that will only create one instance of the service for the Container.\n */\nclass SingletonContainerServiceFactory {\n\tprivate service: Promise<FluidObject> | undefined;\n\n\tpublic constructor(\n\t\tprivate readonly serviceFn: (runtime: IContainerRuntime) => Promise<FluidObject>,\n\t) {}\n\n\tpublic async getService(runtime: IContainerRuntime): Promise<FluidObject<IFluidRouter>> {\n\t\tif (!this.service) {\n\t\t\tthis.service = this.serviceFn(runtime);\n\t\t}\n\t\treturn this.service;\n\t}\n}\n\n/**\n * Given a collection of IContainerServices will produce a RequestHandler for them all\n * @param serviceRegistry - Collection of Container Services\n * @deprecated See {@link @fluidframework/synthesize#DependencyContainer}\n */\nexport const generateContainerServicesRequestHandler = (\n\tserviceRegistry: ContainerServiceRegistryEntries,\n): RuntimeRequestHandler => {\n\tconst factories: Map<string, SingletonContainerServiceFactory> = new Map();\n\tnew Map(serviceRegistry).forEach((fn, id) => {\n\t\tfactories.set(id, new SingletonContainerServiceFactory(fn));\n\t});\n\n\treturn async (request: RequestParser, runtime: IContainerRuntime) => {\n\t\tif (request.pathParts[0] !== serviceRoutePathRoot) {\n\t\t\t// If the request is not for a service we return undefined so the next handler can use it\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif (request.pathParts.length < 2) {\n\t\t\t// If there is not service to route to then return a failure\n\t\t\treturn createResponseError(\n\t\t\t\t400,\n\t\t\t\t\"request did not specify a service to route to\",\n\t\t\t\trequest,\n\t\t\t);\n\t\t}\n\n\t\tconst factory = factories.get(request.pathParts[1]);\n\t\tif (!factory) {\n\t\t\t// If we can't find a registry entry then return\n\t\t\treturn create404Response(request);\n\t\t}\n\n\t\tconst service = await factory.getService(runtime);\n\t\tconst router = service.IFluidRouter;\n\t\tconst subRequest = request.createSubRequest(2);\n\t\tif (router) {\n\t\t\treturn router.request(subRequest);\n\t\t}\n\n\t\tif (!request.isLeaf(2)) {\n\t\t\t// If there is not terminating route but a sub-route was requested then we will fail.\n\t\t\treturn createResponseError(\n\t\t\t\t400,\n\t\t\t\t\"request sub-url for service that doesn't support routing\",\n\t\t\t\trequest,\n\t\t\t);\n\t\t}\n\n\t\t// Otherwise we will just return the service\n\t\treturn {\n\t\t\tstatus: 200,\n\t\t\tmimeType: \"fluid/object\",\n\t\t\tvalue: service,\n\t\t};\n\t};\n};\n"]}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- export { BaseContainerService, ContainerServiceRegistryEntries, generateContainerServicesRequestHandler, serviceRoutePathRoot, } from "./containerServices";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/container-services/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,oBAAoB,EACpB,+BAA+B,EAC/B,uCAAuC,EACvC,oBAAoB,GACpB,MAAM,qBAAqB,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.serviceRoutePathRoot = exports.generateContainerServicesRequestHandler = exports.BaseContainerService = void 0;
8
- var containerServices_1 = require("./containerServices");
9
- Object.defineProperty(exports, "BaseContainerService", { enumerable: true, get: function () { return containerServices_1.BaseContainerService; } });
10
- Object.defineProperty(exports, "generateContainerServicesRequestHandler", { enumerable: true, get: function () { return containerServices_1.generateContainerServicesRequestHandler; } });
11
- Object.defineProperty(exports, "serviceRoutePathRoot", { enumerable: true, get: function () { return containerServices_1.serviceRoutePathRoot; } });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/container-services/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,yDAK6B;AAJ5B,yHAAA,oBAAoB,OAAA;AAEpB,4IAAA,uCAAuC,OAAA;AACvC,yHAAA,oBAAoB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tBaseContainerService,\n\tContainerServiceRegistryEntries,\n\tgenerateContainerServicesRequestHandler,\n\tserviceRoutePathRoot,\n} from \"./containerServices\";\n"]}