Skip to content

Commit

Permalink
JNG-5816 add missing export methods (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Jul 2, 2024
1 parent 1cf19b8 commit 6d3963a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ private readonly {{ firstToLower imp }}StoredSerializer = {{ imp }}StoredSeriali
{{/ if }}
{{/ if }}

{{# and relation.isExportable relation.isCollection }}
{{# if relation.isExportable }}
/**
* From: relation.isExportable, relation.isCollection
* From: relation.isExportable
* @throws {AxiosError} With data containing {@link Array<FeedbackItem>} for status codes: 401, 403.
*/
async export(owner?: {{# if relation.isAccess }}JudoIdentifiable<any>{{ else }}{{ classDataName (getRelationOwnerAsClassType relation) "Stored" }}{{/ if }}, queryCustomizer?: {{ classDataName relation.target "QueryCustomizer" }}): Promise<any> {
Expand All @@ -62,7 +62,7 @@ private readonly {{ firstToLower imp }}StoredSerializer = {{ imp }}StoredSeriali

return response;
}
{{/ and }}
{{/ if }}

{{# if relation.isRefreshable }}
{{# if relation.isAccess }}
Expand Down Expand Up @@ -346,9 +346,9 @@ private readonly {{ firstToLower imp }}StoredSerializer = {{ imp }}StoredSeriali
{{/ if }}


{{# and targetRelation.isExportable targetRelation.isCollection }}
{{# if targetRelation.isExportable }}
/**
* From: relation.isExportable, relation.isCollection
* From: relation.isExportable
* @throws {AxiosError} With data containing {@link Array<FeedbackItem>} for status codes: 401, 403.
*/
async export{{ firstToUpper targetRelation.name }}(owner: {{ classDataName relation.target "Stored" }}, queryCustomizer?: {{ classDataName targetRelation.target "QueryCustomizer" }}): Promise<any> {
Expand All @@ -362,7 +362,7 @@ private readonly {{ firstToLower imp }}StoredSerializer = {{ imp }}StoredSeriali

return response;
}
{{/ and }}
{{/ if }}

{{# if targetRelation.isRangeable }}
{{# neq relation.name targetRelation.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export interface {{ serviceRelationName relation }} {
list(owner?: {{# if relation.isAccess }}JudoIdentifiable<any>{{ else }}{{ classDataName (getRelationOwnerAsClassType relation) "Stored" }}{{/ if }}, queryCustomizer?: {{ classDataName relation.target "QueryCustomizer" }}, headers?: Record<string, string>): Promise<JudoRestResponse<Array<{{ classDataName relation.target "Stored" }}>>>;
{{/ if }}
{{/ if }}
{{# and relation.isExportable relation.isCollection }}
{{# if relation.isExportable }}
export(owner?: {{# if relation.isAccess }}JudoIdentifiable<any>{{ else }}{{ classDataName (getRelationOwnerAsClassType relation) "Stored" }}{{/ if }}, queryCustomizer?: {{ classDataName relation.target "QueryCustomizer" }}): Promise<any>;
{{/ and }}
{{/ if }}
{{# if relation.isRefreshable }}
{{# if relation.isAccess }}
{{# unless relation.isCollection }}
Expand Down

0 comments on commit 6d3963a

Please sign in to comment.