Skip to content

Commit 6f507e8

Browse files
committed
Add Collector ordering API, itemCustomizations, and repeatable getter
Add repeatable getter to HDSItemDef (defaults to 'unlimited'). Add moveSection/removeSection to CollectorRequest. Add moveItemKey/removeItemKey/itemCustomizations to CollectorRequestSection. Update setContent to deserialize itemCustomizations.
1 parent c229073 commit 6f507e8

14 files changed

Lines changed: 205 additions & 14 deletions

js/HDSModel/HDSItemDef.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export declare class HDSItemDef {
44
get eventTypes(): string[];
55
get key(): string;
66
get data(): any;
7+
get repeatable(): string;
78
/** label Localized */
89
get label(): string;
910
/** description Localized */

js/HDSModel/HDSItemDef.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/HDSModel/HDSItemDef.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/HDSModel/HDSItemDef.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/CollectorRequest.d.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export declare class CollectorRequest {
6767
get sectionsData(): any[];
6868
createSection(key: string, type: RequestSectionType): CollectorRequestSection;
6969
getSectionByKey(key: string): CollectorRequestSection;
70+
moveSection(key: string, toIndex: number): void;
71+
removeSection(key: string): void;
7072
addPermissions(permissions: Array<{
7173
streamId: string;
7274
defaultName: string;
@@ -127,12 +129,12 @@ declare class CollectorRequestSection implements CollectorSectionInterface {
127129
get key(): string;
128130
get itemKeys(): string[];
129131
get name(): localizableText;
130-
getData(): {
131-
key: string;
132-
type: RequestSectionType;
133-
name: localizableText;
134-
itemKeys: string[];
135-
};
132+
get itemCustomizations(): Record<string, Record<string, unknown>>;
133+
moveItemKey(key: string, toIndex: number): void;
134+
removeItemKey(key: string): void;
135+
setItemCustomization(key: string, customizations: Record<string, unknown>): void;
136+
getItemCustomization(key: string): Record<string, unknown> | undefined;
137+
getData(): any;
136138
}
137139
export {};
138140
//# sourceMappingURL=CollectorRequest.d.ts.map

js/appTemplates/CollectorRequest.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/CollectorRequest.js

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)