@shaxpir/duiduidui-models 1.9.15 → 1.9.17

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.
@@ -21,6 +21,7 @@ export interface ManifestEntry {
21
21
  }
22
22
  export interface ManifestPayload {
23
23
  billing: any;
24
+ collection: any;
24
25
  device: any;
25
26
  image: any;
26
27
  metric: any;
@@ -27,6 +27,7 @@ class Manifest extends Model_1.Model {
27
27
  },
28
28
  payload: {
29
29
  billing: {},
30
+ collection: {},
30
31
  device: {},
31
32
  image: {},
32
33
  metric: {},
@@ -42,6 +42,7 @@ const shaxpir_common_1 = require("@shaxpir/shaxpir-common");
42
42
  const reconnecting_websocket_1 = __importDefault(require("reconnecting-websocket"));
43
43
  const models_1 = require("../models");
44
44
  const Billing_1 = require("../models/Billing");
45
+ const Collection_1 = require("../models/Collection");
45
46
  const Content_1 = require("../models/Content");
46
47
  const ContentKind_1 = require("../models/ContentKind");
47
48
  const Device_1 = require("../models/Device");
@@ -477,6 +478,9 @@ class ShareSync {
477
478
  if (kind === ContentKind_1.ContentKind.BILLING) {
478
479
  return new Billing_1.Billing(doc, shouldAcquire, shareSync);
479
480
  }
481
+ else if (kind === ContentKind_1.ContentKind.COLLECTION) {
482
+ return new Collection_1.Collection(doc, shouldAcquire, shareSync);
483
+ }
480
484
  else if (kind === ContentKind_1.ContentKind.DEVICE) {
481
485
  return new Device_1.Device(doc, shouldAcquire, shareSync);
482
486
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaxpir/duiduidui-models",
3
- "version": "1.9.15",
3
+ "version": "1.9.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shaxpir/duiduidui-models"