@shaxpir/duiduidui-models 1.38.1 → 1.38.2
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.
|
@@ -71,6 +71,7 @@ export declare class Workspace extends Content {
|
|
|
71
71
|
hasJourneyDate(journeyKey: string): boolean;
|
|
72
72
|
getJourneyDate(journeyKey: string): CompactDateTime;
|
|
73
73
|
setJourneyDate(journeyKey: string, journeyDate: CompactDateTime): void;
|
|
74
|
+
clearJourneyDate(journeyKey: string): void;
|
|
74
75
|
setGlobalConditions(conditions: Conditions): void;
|
|
75
76
|
get defaultVoice(): VoicePreference;
|
|
76
77
|
setDefaultVoice(value: VoicePreference): void;
|
package/dist/models/Workspace.js
CHANGED
|
@@ -233,6 +233,14 @@ class Workspace extends Content_1.Content {
|
|
|
233
233
|
batch.setPathValue(['payload', 'journey', journeyKey], journeyDate);
|
|
234
234
|
batch.commit();
|
|
235
235
|
}
|
|
236
|
+
clearJourneyDate(journeyKey) {
|
|
237
|
+
this.checkDisposed("Workspace.clearJourneyDate");
|
|
238
|
+
if (this.payload.journey.hasOwnProperty(journeyKey)) {
|
|
239
|
+
const batch = new Operation_1.BatchOperation(this);
|
|
240
|
+
batch.removeValueAtPath(['payload', 'journey', journeyKey]);
|
|
241
|
+
batch.commit();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
236
244
|
setGlobalConditions(conditions) {
|
|
237
245
|
this.checkDisposed("Workspace.setGlobalConditions");
|
|
238
246
|
const batch = new Operation_1.BatchOperation(this);
|