Skip to content

Commit

Permalink
PR updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lyonsil committed Sep 26, 2023
1 parent b2ebb23 commit c3ec9b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c-sharp/Projects/ParatextProjectStorageInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public override ResponseToRequest SetProjectData(ProjectDataScope scope, string
);
}
);
return ResponseToRequest.Succeeded($"chapter:{verseRef}");
return ResponseToRequest.Succeeded($"{Chapter}:{verseRef}");
default:
return ResponseToRequest.Failed($"Unknown data type: {scope.DataType}");
}
Expand Down Expand Up @@ -184,7 +184,7 @@ public override ResponseToRequest SetExtensionData(ProjectDataScope scope, strin
textWriter.Flush();
}
);
return ResponseToRequest.Succeeded($"extensions:{scope.ExtensionName}");
return ResponseToRequest.Succeeded($"ExtensionData:{scope.ExtensionName}");
}
catch (Exception e)
{
Expand Down
10 changes: 10 additions & 0 deletions lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,17 @@ declare module 'shared/models/project-data-provider.model' {
import type { DataProviderDataType } from 'shared/models/data-provider.model';
/** Indicates to a PDP what extension data is being referenced */
export type ExtensionDataScope = {
/** Name of an extension as provided in its manifest */
extensionName: string;
/** Name of a unique partition or segment of data within the extension
* Some examples include (but are not limited to):
* - name of an important data structure that is maintained in a project
* - name of a downloaded data set that is being cached
* - name of a resource created by a user that should be maintained in a project
*
* This is the smallest level of granularity provided by a PDP for accessing extension data.
* There is no way to get or set just a portion of data identified by a single dataQualifier value.
* */
dataQualifier: string;
};
/** All Project Data Provider data types must extend from this */
Expand Down

0 comments on commit c3ec9b3

Please sign in to comment.