@vived/host 5.8.1 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AppSandbox/Adapters/devModeAdapter.js.map +1 -1
- package/dist/cjs/AppSandbox/Adapters/index.js.map +1 -1
- package/dist/cjs/AppSandbox/Controller/index.js.map +1 -1
- package/dist/cjs/AppSandbox/Controller/setDevMode.js.map +1 -1
- package/dist/cjs/AppSandbox/Entities/AppSandboxEntity.js.map +1 -1
- package/dist/cjs/AppSandbox/Factories/AppSandboxFeatureFactory.js.map +1 -1
- package/dist/cjs/AppSandbox/Factories/setupAppSandbox.js.map +1 -1
- package/dist/cjs/AppSandbox/Mocks/DevModePMMock.js.map +1 -1
- package/dist/cjs/AppSandbox/Mocks/MockSetDevModeUC.js.map +1 -1
- package/dist/cjs/AppSandbox/Mocks/index.js.map +1 -1
- package/dist/cjs/AppSandbox/PMs/DevModePM.js.map +1 -1
- package/dist/cjs/AppSandbox/PMs/index.js.map +1 -1
- package/dist/cjs/AppSandbox/UCs/RedispatchThemeToAppUC.js.map +1 -1
- package/dist/cjs/AppSandbox/UCs/SetDevModeUC.js.map +1 -1
- package/dist/cjs/AppSandbox/UCs/index.js.map +1 -1
- package/dist/cjs/AppSandbox/UCs/submitActivityAssetHandlerSandbox.js +5 -1
- package/dist/cjs/AppSandbox/UCs/submitActivityAssetHandlerSandbox.js.map +1 -1
- package/dist/cjs/Assets/UCs/NewAppAssetUC.js.map +1 -1
- package/dist/cjs/Assets/UCs/NewAssetUC.js +3 -2
- package/dist/cjs/Assets/UCs/NewAssetUC.js.map +1 -1
- package/dist/cjs/BoundaryLog/Adapters/boundaryLogAdapter.js.map +1 -1
- package/dist/cjs/BoundaryLog/Adapters/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/Controllers/clearBoundaryLog.js.map +1 -1
- package/dist/cjs/BoundaryLog/Controllers/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/Entities/BoundaryLogEntity.js.map +1 -1
- package/dist/cjs/BoundaryLog/Entities/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/Entities/snapshotPayload.js.map +1 -1
- package/dist/cjs/BoundaryLog/Factories/BoundaryLogFactory.js.map +1 -1
- package/dist/cjs/BoundaryLog/Factories/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/Mocks/BoundaryLogPMMock.js.map +1 -1
- package/dist/cjs/BoundaryLog/Mocks/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/PMs/BoundaryLogPM.js.map +1 -1
- package/dist/cjs/BoundaryLog/PMs/index.js.map +1 -1
- package/dist/cjs/BoundaryLog/index.js.map +1 -1
- package/dist/cjs/Dialog/Entities/DialogQueue.js.map +1 -1
- package/dist/cjs/Dispatcher/Entities/HostDispatchEntity.js.map +1 -1
- package/dist/cjs/Dispatcher/Mocks/MockDispatchSetDevModeUC.js.map +1 -1
- package/dist/cjs/Dispatcher/Mocks/MockHostDispatcher.js.map +1 -1
- package/dist/cjs/Dispatcher/Mocks/index.js.map +1 -1
- package/dist/cjs/Dispatcher/UCs/DispatchSetDevModeUC.js.map +1 -1
- package/dist/cjs/Dispatcher/UCs/DispatchThemeUC.js.map +1 -1
- package/dist/cjs/Dispatcher/UCs/index.js.map +1 -1
- package/dist/cjs/Dispatcher/setupStandardHostDispatchers.js.map +1 -1
- package/dist/cjs/Handler/Entities/HostHandler.js.map +1 -1
- package/dist/cjs/Handler/UCs/GetAssetStreamURLHandler.js.map +1 -1
- package/dist/cjs/Handler/UCs/index.js.map +1 -1
- package/dist/cjs/Handler/setupStandardHostHandlers.js.map +1 -1
- package/dist/cjs/ThemeColors/Entities/HostThemeEntity.js.map +1 -1
- package/dist/cjs/ThemeColors/PM/ThemeColorsPM.js.map +1 -1
- package/dist/cjs/VivedAPI/UCs/FileUploadUC.js +43 -4
- package/dist/cjs/VivedAPI/UCs/FileUploadUC.js.map +1 -1
- package/dist/cjs/VivedAPI/UCs/PatchAssetFileUC.js +6 -0
- package/dist/cjs/VivedAPI/UCs/PatchAssetFileUC.js.map +1 -1
- package/dist/cjs/VivedAPI/UCs/PostNewAssetUC.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/AppSandbox/Adapters/devModeAdapter.js.map +1 -1
- package/dist/esm/AppSandbox/Adapters/index.js.map +1 -1
- package/dist/esm/AppSandbox/Controller/index.js.map +1 -1
- package/dist/esm/AppSandbox/Controller/setDevMode.js.map +1 -1
- package/dist/esm/AppSandbox/Entities/AppSandboxEntity.js.map +1 -1
- package/dist/esm/AppSandbox/Factories/AppSandboxFeatureFactory.js.map +1 -1
- package/dist/esm/AppSandbox/Factories/setupAppSandbox.js.map +1 -1
- package/dist/esm/AppSandbox/Mocks/DevModePMMock.js.map +1 -1
- package/dist/esm/AppSandbox/Mocks/MockSetDevModeUC.js.map +1 -1
- package/dist/esm/AppSandbox/Mocks/index.js.map +1 -1
- package/dist/esm/AppSandbox/PMs/DevModePM.js.map +1 -1
- package/dist/esm/AppSandbox/PMs/index.js.map +1 -1
- package/dist/esm/AppSandbox/UCs/RedispatchThemeToAppUC.js.map +1 -1
- package/dist/esm/AppSandbox/UCs/SetDevModeUC.js.map +1 -1
- package/dist/esm/AppSandbox/UCs/index.js.map +1 -1
- package/dist/esm/AppSandbox/UCs/submitActivityAssetHandlerSandbox.js +5 -1
- package/dist/esm/AppSandbox/UCs/submitActivityAssetHandlerSandbox.js.map +1 -1
- package/dist/esm/Assets/UCs/NewAppAssetUC.js.map +1 -1
- package/dist/esm/Assets/UCs/NewAssetUC.js +3 -2
- package/dist/esm/Assets/UCs/NewAssetUC.js.map +1 -1
- package/dist/esm/BoundaryLog/Adapters/boundaryLogAdapter.js.map +1 -1
- package/dist/esm/BoundaryLog/Adapters/index.js.map +1 -1
- package/dist/esm/BoundaryLog/Controllers/clearBoundaryLog.js.map +1 -1
- package/dist/esm/BoundaryLog/Controllers/index.js.map +1 -1
- package/dist/esm/BoundaryLog/Entities/BoundaryLogEntity.js.map +1 -1
- package/dist/esm/BoundaryLog/Entities/index.js.map +1 -1
- package/dist/esm/BoundaryLog/Entities/snapshotPayload.js.map +1 -1
- package/dist/esm/BoundaryLog/Factories/BoundaryLogFactory.js.map +1 -1
- package/dist/esm/BoundaryLog/Factories/index.js.map +1 -1
- package/dist/esm/BoundaryLog/Mocks/BoundaryLogPMMock.js.map +1 -1
- package/dist/esm/BoundaryLog/Mocks/index.js.map +1 -1
- package/dist/esm/BoundaryLog/PMs/BoundaryLogPM.js.map +1 -1
- package/dist/esm/BoundaryLog/PMs/index.js.map +1 -1
- package/dist/esm/BoundaryLog/index.js.map +1 -1
- package/dist/esm/Dialog/Entities/DialogQueue.js.map +1 -1
- package/dist/esm/Dispatcher/Entities/HostDispatchEntity.js.map +1 -1
- package/dist/esm/Dispatcher/Mocks/MockDispatchSetDevModeUC.js.map +1 -1
- package/dist/esm/Dispatcher/Mocks/MockHostDispatcher.js.map +1 -1
- package/dist/esm/Dispatcher/Mocks/index.js.map +1 -1
- package/dist/esm/Dispatcher/UCs/DispatchSetDevModeUC.js.map +1 -1
- package/dist/esm/Dispatcher/UCs/DispatchThemeUC.js.map +1 -1
- package/dist/esm/Dispatcher/UCs/index.js.map +1 -1
- package/dist/esm/Dispatcher/setupStandardHostDispatchers.js.map +1 -1
- package/dist/esm/Handler/Entities/HostHandler.js.map +1 -1
- package/dist/esm/Handler/UCs/GetAssetStreamURLHandler.js.map +1 -1
- package/dist/esm/Handler/UCs/index.js.map +1 -1
- package/dist/esm/Handler/setupStandardHostHandlers.js.map +1 -1
- package/dist/esm/ThemeColors/Entities/HostThemeEntity.js.map +1 -1
- package/dist/esm/ThemeColors/PM/ThemeColorsPM.js.map +1 -1
- package/dist/esm/VivedAPI/UCs/FileUploadUC.js +43 -4
- package/dist/esm/VivedAPI/UCs/FileUploadUC.js.map +1 -1
- package/dist/esm/VivedAPI/UCs/PatchAssetFileUC.js +6 -0
- package/dist/esm/VivedAPI/UCs/PatchAssetFileUC.js.map +1 -1
- package/dist/esm/VivedAPI/UCs/PostNewAssetUC.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/AppSandbox/UCs/submitActivityAssetHandlerSandbox.d.ts.map +1 -1
- package/dist/types/Assets/UCs/NewAssetUC.d.ts +6 -0
- package/dist/types/Assets/UCs/NewAssetUC.d.ts.map +1 -1
- package/package.json +67 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatchAssetFileUC.js","sourceRoot":"","sources":["../../../../src/VivedAPI/UCs/PatchAssetFileUC.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAGrB,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,OAAgB,gBAAiB,SAAQ,WAAW;IAKxD,MAAM,CAAC,GAAG,CAAC,UAAyB;QAClC,OAAO,qBAAqB,CAAC,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAClE,CAAC;;AANM,qBAAI,GAAG,kBAAkB,CAAC;AASnC,MAAM,UAAU,oBAAoB,CAAC,SAAoB;IACvD,OAAO,IAAI,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,mBAAoB,SAAQ,gBAAgB;IAChD,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,kBAAkB,CAAgB,aAAa,CAAC,IAAI,CAAC;YAC/D,EAAE,SAAS,CAAC;IAChB,CAAC;IAED,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,kBAAkB,CAAoB,iBAAiB,CAAC,IAAI,CAAC;YACvE,EAAE,YAAY,CA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O,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,UAAU,CAAC,SAAS,CAAC;qBAClB,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;oBACV,OAAO,YAAY,EAAE,CAAC;gBACxB,CAAC,CAAC;qBACD,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;oBACd,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,OAAO,EAAE,CAAC,CAAC;oBACzD,MAAM,IAAI,GAAG;wBACX,QAAQ;qBACT,CAAC;oBAEF,MAAM,OAAO,GAAuB;wBAClC,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;wBAC1B,OAAO,EAAE;4BACP,aAAa,EAAE,SAAS,GAAG,KAAK;yBACjC;qBACF,CAAC;oBAEF,OAAO,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;gBACrC,CAAC,CAAC;qBACD,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;oBACV,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACpB,CAAC,CAAC;qBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;oBACX,MAAM,CAAC,CAAC,CAAC,CAAC;oBACV,OAAO;gBACT,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAIA,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF","sourcesContent":["import {\n getSingletonComponent,\n AppObject,\n AppObjectRepo,\n AppObjectUC\n} from \"@vived/core\";\nimport { generateUniqueID } from \"@vived/core\";\nimport { VivedAPIEntity } from \"../Entities/VivedAPIEntity\";\nimport { FileUploadUC } from \"./FileUploadUC\";\nimport { JsonRequestUC, RequestJSONOptions } from \"./JsonRequestUC\";\nimport { SignedAuthTokenUC } from \"./SignedAuthTokenUC\";\n\nexport abstract class PatchAssetFileUC extends AppObjectUC {\n static type = \"PatchAssetFileUC\";\n\n abstract doPatch(assetId: string, file: File): Promise<string>;\n\n static get(appObjects: AppObjectRepo): PatchAssetFileUC | undefined {\n return getSingletonComponent(PatchAssetFileUC.type, appObjects);\n }\n}\n\nexport function makePatchAssetFileUC(appObject: AppObject): PatchAssetFileUC {\n return new PatchAssetFileUCImp(appObject);\n}\n\nclass PatchAssetFileUCImp extends PatchAssetFileUC {\n private get jsonRequester() {\n return this.getCachedSingleton<JsonRequestUC>(JsonRequestUC.type)\n ?.doRequest;\n }\n\n private get getAuthToken() {\n return this.getCachedSingleton<SignedAuthTokenUC>(SignedAuthTokenUC.type)\n ?.getAuthToken;\n }\n\n private get fileUpload() {\n return this.getCachedSingleton<FileUploadUC>(FileUploadUC.type)?.doUpload;\n }\n\n private get vivedAPI() {\n return this.getCachedSingleton<VivedAPIEntity>(VivedAPIEntity.type);\n }\n\n doPatch = (assetId: string, file: File): Promise<string> => {\n const getAuthToken = this.getAuthToken;\n const vivedAPI = this.vivedAPI;\n const jsonRequester = this.jsonRequester;\n const fileUpload = this.fileUpload;\n\n if (!getAuthToken || !vivedAPI || !jsonRequester || !fileUpload) {\n return Promise.reject();\n }\n\n let extension: string = \"\";\n const strArr = file.name.split(\".\");\n extension = strArr[strArr.length - 1];\n const filename = `${generateUniqueID()}.${extension}`;\n\n // Carry the source File's MIME type across the rebuild. #47 added this to\n // PostNewAssetUC and missed the sibling here, leaving the two upload paths\n // asymmetric. FileUploadUC sets Content-Type explicitly today, so a typeless\n // File no longer changes what S3 stores -- but the asymmetry is a trap for\n // anyone who changes that, and an untyped File is wrong on its own terms.\n const assetFile = new File([file], `${filename}`, {\n type: file.type,\n lastModified: Date.now()\n });\n\n return new Promise((resolve, reject) => {\n fileUpload(assetFile)\n .then((_) => {\n return getAuthToken();\n })\n .then((token) => {\n const url = vivedAPI.getEndpointURL(`assets/${assetId}`);\n const body = {\n filename\n };\n\n const options: RequestJSONOptions = {\n method: \"PATCH\",\n body: JSON.stringify(body),\n headers: {\n Authorization: \"Bearer \" + token\n }\n };\n\n return jsonRequester(url, options);\n })\n .then((_) => {\n resolve(filename);\n })\n .catch((e) => {\n reject(e);\n return;\n });\n });\n };\n\n constructor(appObject: AppObject) {\n super(appObject, PatchAssetFileUC.type);\n this.appObjects.registerSingleton(this);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostNewAssetUC.js","sourceRoot":"","sources":["../../../../src/VivedAPI/UCs/PostNewAssetUC.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAGL,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAiCxD;;;GAGG;AACH,MAAM,OAAgB,cAAe,SAAQ,WAAW;IAWtD;;;;OAIG;IACH,MAAM,CAAC,GAAG,CAAC,UAAyB;QAClC,OAAO,qBAAqB,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAChE,CAAC;;AAjBD,gDAAgD;AACzC,mBAAI,GAAG,gBAAgB,CAAC;AAmBjC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAoB;IACrD,OAAO,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,iBAAkB,SAAQ,cAAc;IAC5C,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,kBAAkB,CAAgB,aAAa,CAAC,IAAI,CAAC;YAC/D,EAAE,SAAS,CAAC;IAChB,CAAC;IAED,IAAY,kBAAkB;QAC5B,OAAO,IAAI,CAAC,kBAAkB,C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,CAAC,CAAC,EAAE,EAAE;oBACV,OAAO,kBAAkB,EAAE,CAAC;gBAC9B,CAAC,CAAC;qBACD,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;oBACd,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;oBAElD,mEAAmE;oBACnE,8DAA8D;oBAC9D,kEAAkE;oBAClE,+CAA+C;oBAC/C,MAAM,IAAI,GAAG;wBACX,OAAO,EAAE,OAAO;wBAChB,IAAI;wBACJ,WAAW;wBACX,QAAQ;wBACR,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC;qBAC9C,CAAC;oBAEF,MAAM,OAAO,GAAuB;wBAClC,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;wBAC1B,OAAO,EAAE;4BACP,aAAa,EAAE,SAAS,GAAG,KAAK;yBACjC;qBACF,CAAC;oBAEF,OAAO,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBACzC,CAAC,CAAC;qBACD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBACf,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;oBACzB,OAAO,CAAC;wBACN,EAAE,EAAE,OAAO;wBACX,QAAQ;qBACT,CAAC,CAAC;gBACL,CAAC,CAAC;qBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;oBACX,MAAM,CAAC,CAAC,CAAC,CAAC;oBACV,OAAO;gBACT,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAIA,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF","sourcesContent":["/**\n * PostNewAssetUC.ts\n *\n * This file defines the Use Case for creating new assets via the VIVED API.\n * PostNewAssetUC handles the complete workflow of uploading asset files and\n * creating asset metadata records through API requests.\n *\n * Key concepts:\n * - Orchestrates file upload and metadata creation for new assets\n * - Handles multipart file uploads with asset information\n * - Manages authentication tokens and API endpoints\n * - Coordinates between multiple UCs (JsonRequest, FileUpload, SignedAuthToken)\n * - Returns asset creation response with generated IDs\n *\n * Usage pattern:\n * 1. Get a UC instance using PostNewAssetUC.get(appObjects) or makePostNewAssetUC\n * 2. Call doPost with asset data including file and metadata\n * 3. Handle the returned Promise with asset creation response\n * 4. UC will coordinate authentication, file upload, and API requests\n */\n\nimport {\n AppObject,\n AppObjectRepo,\n AppObjectUC,\n generateUniqueID,\n getSingletonComponent\n} from \"@vived/core\";\nimport { VivedAPIEntity } from \"../Entities/VivedAPIEntity\";\nimport { FileUploadUC } from \"./FileUploadUC\";\nimport { JsonRequestUC, RequestJSONOptions } from \"./JsonRequestUC\";\nimport { SignedAuthTokenUC } from \"./SignedAuthTokenUC\";\n\n/**\n * Data transfer object for new asset creation requests\n */\nexport interface NewAssetApiDto {\n /** Display name for the new asset */\n name: string;\n /** Description text for the asset */\n description: string;\n /** ID of the user who will own this asset */\n ownerID: string;\n /**\n * Owner type for the asset. The backend authorizes app-owned assets via the\n * `app` branch only when this is `\"app\"`; an absent value is treated as the\n * `channel` default (the backend does not — and must not — infer it). See\n * vivedlearning/vived-api-legacy#133.\n */\n ownerType?: \"channel\" | \"activity\" | \"app\";\n /** File object containing the asset data */\n file: File;\n}\n\n/**\n * Response data transfer object for successful asset creation\n */\nexport interface NewAssetResponseDTO {\n /** Unique identifier assigned to the new asset */\n id: string;\n /** Final filename used for the stored asset file */\n filename: string;\n}\n\n/**\n * PostNewAssetUC provides functionality for creating new assets via API.\n * Abstract class that defines the interface for asset creation operations.\n */\nexport abstract class PostNewAssetUC extends AppObjectUC {\n /** Unique type identifier for this component */\n static type = \"PostNewAssetUC\";\n\n /**\n * Creates a new asset by uploading file and metadata to the API\n * @param data The asset creation data including file and metadata\n * @returns Promise resolving to the new asset response with ID and filename\n */\n abstract doPost(data: NewAssetApiDto): Promise<NewAssetResponseDTO>;\n\n /**\n * Retrieves a PostNewAssetUC component from an AppObject\n * @param appObjects The AppObjectRepo to get the component from\n * @returns The PostNewAssetUC component or undefined if not found\n */\n static get(appObjects: AppObjectRepo): PostNewAssetUC | undefined {\n return getSingletonComponent(PostNewAssetUC.type, appObjects);\n }\n}\n\n/**\n * Factory function to create a new PostNewAssetUC instance\n * @param appObject The AppObject to attach the UC to\n * @returns A new PostNewAssetUC instance\n */\nexport function makePostNewAssetUC(appObject: AppObject): PostNewAssetUC {\n return new PostNewAssetUCImp(appObject);\n}\n\n/**\n * Concrete implementation of PostNewAssetUC\n * This private class handles the actual asset creation workflow\n */\nclass PostNewAssetUCImp extends PostNewAssetUC {\n private get jsonRequester() {\n return this.getCachedSingleton<JsonRequestUC>(JsonRequestUC.type)\n ?.doRequest;\n }\n\n private get getPlayerAuthToken() {\n return this.getCachedSingleton<SignedAuthTokenUC>(SignedAuthTokenUC.type)\n ?.getAuthToken;\n }\n\n private get fileUploader() {\n return this.getCachedSingleton<FileUploadUC>(FileUploadUC.type)?.doUpload;\n }\n\n private get vivedAPI() {\n return this.getCachedSingleton<VivedAPIEntity>(VivedAPIEntity.type);\n }\n\n doPost = (data: NewAssetApiDto): Promise<NewAssetResponseDTO> => {\n const fileUploader = this.fileUploader;\n const getPlayerAuthToken = this.getPlayerAuthToken;\n const vivedAPI = this.vivedAPI;\n const jsonRequester = this.jsonRequester;\n\n if (!fileUploader || !getPlayerAuthToken || !vivedAPI || !jsonRequester) {\n return Promise.reject();\n }\n\n return new Promise((resolve, reject) => {\n const { description, file, name, ownerID, ownerType } = data;\n let assetId: string;\n\n const nameSplits = file.name.split(\".\");\n const extension = nameSplits[nameSplits.length - 1];\n const filename = `${generateUniqueID()}.${extension}`;\n const assetFile = new File([file], filename, {\n type: file.type,\n lastModified: Date.now()\n });\n\n fileUploader(assetFile)\n .then((_) => {\n return getPlayerAuthToken();\n })\n .then((token) => {\n const postURL = vivedAPI.getEndpointURL(\"assets\");\n\n // Forward ownerType only when the caller declared it. Omitting the\n // key (conditional spread → nothing when unset) preserves the\n // backend's channel default for non-app creates; the server never\n // infers owner type. See vived-api-legacy#133.\n const body = {\n ownerId: ownerID,\n name,\n description,\n filename,\n ...(ownerType !== undefined && { ownerType })\n };\n\n const options: RequestJSONOptions = {\n method: \"POST\",\n body: JSON.stringify(body),\n headers: {\n Authorization: \"Bearer \" + token\n }\n };\n\n return jsonRequester(postURL, options);\n })\n .then((result) => {\n assetId = result.assetId;\n resolve({\n id: assetId,\n filename\n });\n })\n .catch((e) => {\n reject(e);\n return;\n });\n });\n };\n\n constructor(appObject: AppObject) {\n super(appObject, PostNewAssetUC.type);\n this.appObjects.registerSingleton(this);\n }\n}\n"]}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC","sourcesContent":["export * from \"./Apps\";\
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC","sourcesContent":["export * from \"./Apps\";\nexport * from \"./AppSandbox\";\nexport * from \"./AssetPlugin\";\nexport * from \"./Assets\";\nexport * from \"./BoundaryLog\";\nexport * from \"./Cache\";\nexport * from \"./ChallengeResults\";\nexport * from \"./Dialog\";\nexport * from \"./Dispatcher\";\nexport * from \"./Events\";\nexport * from \"./Handler\";\nexport * from \"./Logger\";\nexport * from \"./Snackbar\";\nexport * from \"./StateMachine\";\nexport * from \"./ThemeColors\";\nexport * from \"./VivedAPI\";\nexport * from \"./ZSpaceHost\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitActivityAssetHandlerSandbox.d.ts","sourceRoot":"","sources":["../../../../src/AppSandbox/UCs/submitActivityAssetHandlerSandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,aAAa,GACxB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"submitActivityAssetHandlerSandbox.d.ts","sourceRoot":"","sources":["../../../../src/AppSandbox/UCs/submitActivityAssetHandlerSandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,aAAa,GACxB,yBAAyB,CAmD3B"}
|
|
@@ -31,6 +31,12 @@ export interface NewAssetDto {
|
|
|
31
31
|
description: string;
|
|
32
32
|
/** ID of the user or entity that owns this asset */
|
|
33
33
|
owner: string;
|
|
34
|
+
/**
|
|
35
|
+
* The kind of entity `owner` refers to. When absent, the backend treats
|
|
36
|
+
* the owner as a channel (it does not infer the type from the id), so
|
|
37
|
+
* non-channel owners must set this explicitly.
|
|
38
|
+
*/
|
|
39
|
+
ownerType?: "channel" | "activity" | "app";
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
42
|
* NewAssetUC handles the creation of new assets in the VIVED system.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewAssetUC.d.ts","sourceRoot":"","sources":["../../../../src/Assets/UCs/NewAssetUC.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EAEZ,MAAM,aAAa,CAAC;AAIrB;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,IAAI,EAAE,IAAI,CAAC;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NewAssetUC.d.ts","sourceRoot":"","sources":["../../../../src/Assets/UCs/NewAssetUC.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EAEZ,MAAM,aAAa,CAAC;AAIrB;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,IAAI,EAAE,IAAI,CAAC;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;CAC5C;AAED;;;;;GAKG;AACH,8BAAsB,UAAW,SAAQ,WAAW;IAClD,wDAAwD;IACxD,MAAM,CAAC,IAAI,SAAgB;IAE3B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAEnD;;;;;OAKG;IACH,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,aAAa,GAAG,UAAU,GAAG,SAAS;CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAE/D"}
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vived/host",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "Public Host package for the VIVED Learning App system",
|
|
5
|
-
"main": "./dist/cjs/index.js",
|
|
6
|
-
"module": "./dist/esm/index.js",
|
|
7
|
-
"types": "./dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/esm/index.js",
|
|
11
|
-
"require": "./dist/cjs/index.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "jest --watch --config jestconfig.json",
|
|
17
|
-
"test:once": "jest --config jestconfig.json",
|
|
18
|
-
"test:unit": "jest --config jestconfig.json --testMatch \"**/?(*.)+(test).+(ts|tsx|js)\" --watch",
|
|
19
|
-
"test:unit:once": "jest --config jestconfig.json --testMatch \"**/?(*.)+(test).+(ts|tsx|js)\"",
|
|
20
|
-
"test:integration": "jest --config jestconfig.json --testMatch \"**/__tests__/integration/**/*.+(ts|tsx|js)\" --watch",
|
|
21
|
-
"test:integration:once": "jest --config jestconfig.json --testMatch \"**/__tests__/integration/**/*.+(ts|tsx|js)\"",
|
|
22
|
-
"build": "npm run build:esm && npm run build:cjs",
|
|
23
|
-
"build:esm": "tsc",
|
|
24
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
25
|
-
"format": "prettier --write",
|
|
26
|
-
"format:all": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
27
|
-
"lint": "tslint -p tsconfig.json",
|
|
28
|
-
"prepare": "npm run build",
|
|
29
|
-
"prepublishOnly": "npm run test:once && npm run test:integration:once && npm run lint",
|
|
30
|
-
"preversion": "npm run lint",
|
|
31
|
-
"version": "npm run format && git add -A src",
|
|
32
|
-
"postversion": "git push && git push --tags"
|
|
33
|
-
},
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "git+https://bitbucket.org/cyberscience3d/vivedlearning_host.git"
|
|
37
|
-
},
|
|
38
|
-
"keywords": [
|
|
39
|
-
"VIVED"
|
|
40
|
-
],
|
|
41
|
-
"author": "Amos Patrick",
|
|
42
|
-
"license": "ISC",
|
|
43
|
-
"homepage": "https://bitbucket.org/cyberscience3d/vivedlearning_host#readme",
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/jest": "^29.5.14",
|
|
46
|
-
"jest": "^29.7.0",
|
|
47
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
48
|
-
"jsdom": "^26.0.0",
|
|
49
|
-
"prettier": "^3.5.3",
|
|
50
|
-
"ts-jest": "^29.2.6",
|
|
51
|
-
"tslint": "^6.1.3",
|
|
52
|
-
"tslint-config-prettier": "^1.18.0",
|
|
53
|
-
"typescript": "^5.8.2"
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"dist"
|
|
57
|
-
],
|
|
58
|
-
"publishConfig": {
|
|
59
|
-
"access": "public"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@types/webxr": "^0.5.20"
|
|
63
|
-
},
|
|
64
|
-
"peerDependencies": {
|
|
65
|
-
"@vived/core": "^2.0.1"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vived/host",
|
|
3
|
+
"version": "5.9.1",
|
|
4
|
+
"description": "Public Host package for the VIVED Learning App system",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/index.js",
|
|
11
|
+
"require": "./dist/cjs/index.js",
|
|
12
|
+
"types": "./dist/types/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "jest --watch --config jestconfig.json",
|
|
17
|
+
"test:once": "jest --config jestconfig.json",
|
|
18
|
+
"test:unit": "jest --config jestconfig.json --testMatch \"**/?(*.)+(test).+(ts|tsx|js)\" --watch",
|
|
19
|
+
"test:unit:once": "jest --config jestconfig.json --testMatch \"**/?(*.)+(test).+(ts|tsx|js)\"",
|
|
20
|
+
"test:integration": "jest --config jestconfig.json --testMatch \"**/__tests__/integration/**/*.+(ts|tsx|js)\" --watch",
|
|
21
|
+
"test:integration:once": "jest --config jestconfig.json --testMatch \"**/__tests__/integration/**/*.+(ts|tsx|js)\"",
|
|
22
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
23
|
+
"build:esm": "tsc",
|
|
24
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
25
|
+
"format": "prettier --write",
|
|
26
|
+
"format:all": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
27
|
+
"lint": "tslint -p tsconfig.json",
|
|
28
|
+
"prepare": "npm run build",
|
|
29
|
+
"prepublishOnly": "npm run test:once && npm run test:integration:once && npm run lint",
|
|
30
|
+
"preversion": "npm run lint",
|
|
31
|
+
"version": "npm run format && git add -A src",
|
|
32
|
+
"postversion": "git push && git push --tags"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://bitbucket.org/cyberscience3d/vivedlearning_host.git"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"VIVED"
|
|
40
|
+
],
|
|
41
|
+
"author": "Amos Patrick",
|
|
42
|
+
"license": "ISC",
|
|
43
|
+
"homepage": "https://bitbucket.org/cyberscience3d/vivedlearning_host#readme",
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/jest": "^29.5.14",
|
|
46
|
+
"jest": "^29.7.0",
|
|
47
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
48
|
+
"jsdom": "^26.0.0",
|
|
49
|
+
"prettier": "^3.5.3",
|
|
50
|
+
"ts-jest": "^29.2.6",
|
|
51
|
+
"tslint": "^6.1.3",
|
|
52
|
+
"tslint-config-prettier": "^1.18.0",
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist"
|
|
57
|
+
],
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@types/webxr": "^0.5.20"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@vived/core": "^2.0.1"
|
|
66
|
+
}
|
|
67
|
+
}
|