@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;
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaxpir/duiduidui-models",
3
- "version": "1.38.1",
3
+ "version": "1.38.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shaxpir/duiduidui-models"