@webuildbots/webuildbots-sdk 11.5.0 → 11.5.1

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.
@@ -10,7 +10,7 @@ import { Languages } from '../../const/languages-enums';
10
10
  export default class BlockBuilder {
11
11
  static DEFAULT_NAME: CommonGroups;
12
12
  static DEFAULT_GROUP: CommonGroups;
13
- static VERSION: string;
13
+ static VERSION: number;
14
14
  block: DeepPartial<Block>;
15
15
  constructor();
16
16
  addTitle(lang: Languages, title: string): this;
@@ -9,7 +9,8 @@ var BlockBuilder = /** @class */ (function () {
9
9
  revision: BlockBuilder.VERSION,
10
10
  created: new Date(),
11
11
  content: {},
12
- meta: {}
12
+ meta: {},
13
+ deleted: false
13
14
  };
14
15
  }
15
16
  BlockBuilder.prototype.addTitle = function (lang, title) {
@@ -111,7 +112,7 @@ var BlockBuilder = /** @class */ (function () {
111
112
  };
112
113
  BlockBuilder.DEFAULT_NAME = block_enums_1.CommonGroups.BUILT_AT_RUNTIME;
113
114
  BlockBuilder.DEFAULT_GROUP = block_enums_1.CommonGroups.BUILT_AT_RUNTIME;
114
- BlockBuilder.VERSION = '0.0.1';
115
+ BlockBuilder.VERSION = 1;
115
116
  return BlockBuilder;
116
117
  }());
117
118
  exports.default = BlockBuilder;
@@ -1,11 +1,6 @@
1
1
  export default interface BlockObj {
2
2
  _id?: any;
3
- revision?: string;
4
- history?: Array<{
5
- id?: string;
6
- revision?: string;
7
- created?: Date;
8
- }>;
3
+ revision?: number;
9
4
  clientDbId?: any;
10
5
  created: Date;
11
6
  eventIds?: string[];
@@ -93,10 +93,10 @@ export default interface WBBEvent {
93
93
  args: any;
94
94
  };
95
95
  blocks?: Array<{
96
- revision?: string;
96
+ revision?: number;
97
97
  history?: Array<{
98
98
  id?: string;
99
- revision?: string;
99
+ revision?: number;
100
100
  created?: Date;
101
101
  }>;
102
102
  clientDbId?: any;
@@ -270,10 +270,10 @@ export default interface WBBEvent {
270
270
  };
271
271
  }>;
272
272
  evaluatedBlocks?: Array<{
273
- revision?: string;
273
+ revision?: number;
274
274
  history?: Array<{
275
275
  id?: string;
276
- revision?: string;
276
+ revision?: number;
277
277
  created?: Date;
278
278
  }>;
279
279
  clientDbId?: any;
@@ -447,10 +447,10 @@ export default interface WBBEvent {
447
447
  };
448
448
  }>;
449
449
  preprocessedBlocks?: Array<{
450
- revision?: string;
450
+ revision?: number;
451
451
  history?: Array<{
452
452
  id?: string;
453
- revision?: string;
453
+ revision?: number;
454
454
  created?: Date;
455
455
  }>;
456
456
  clientDbId?: any;
@@ -690,10 +690,10 @@ export default interface WBBEvent {
690
690
  args?: any;
691
691
  };
692
692
  blocks?: Array<{
693
- revision?: string;
693
+ revision?: number;
694
694
  history?: Array<{
695
695
  id?: string;
696
- revision?: string;
696
+ revision?: number;
697
697
  created?: Date;
698
698
  }>;
699
699
  clientDbId?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webuildbots/webuildbots-sdk",
3
- "version": "11.5.0",
3
+ "version": "11.5.1",
4
4
  "description": "webuildbots sdk",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",