@sellout/models 0.0.89 → 0.0.90

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,11 +10,13 @@ const mutation = graphql_tag_1.default `
10
10
  $eventId: String!,
11
11
  $publishSiteIds: [String],
12
12
  $unpublishSiteIds: [String]
13
+ $published: Boolean
13
14
  ) {
14
15
  publishEvent(
15
16
  eventId: $eventId,
16
17
  publishSiteIds: $publishSiteIds,
17
18
  unpublishSiteIds: $unpublishSiteIds
19
+ published: $published
18
20
  ) {
19
21
  _id
20
22
  orgId
@@ -1 +1 @@
1
- {"version":3,"file":"publishEvent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/publishEvent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqDhB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,KAAK;IACrB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,UAAU;IAC1B,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,IAAI;IACpB,wBAAK,CAAC,SAAS,CAAC,OAAO;IACvB,wBAAK,CAAC,SAAS,CAAC,aAAa;CAChC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"publishEvent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/publishEvent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuDhB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,KAAK;IACrB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,UAAU;IAC1B,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,IAAI;IACpB,wBAAK,CAAC,SAAS,CAAC,OAAO;IACvB,wBAAK,CAAC,SAAS,CAAC,aAAa;CAChC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -36057,6 +36057,7 @@ $root.PublishEventRequest = (function() {
36057
36057
  * @property {string|null} [eventId] PublishEventRequest eventId
36058
36058
  * @property {Array.<string>|null} [publishSiteIds] PublishEventRequest publishSiteIds
36059
36059
  * @property {Array.<string>|null} [unpublishSiteIds] PublishEventRequest unpublishSiteIds
36060
+ * @property {boolean|null} [published] PublishEventRequest published
36060
36061
  */
36061
36062
 
36062
36063
  /**
@@ -36116,6 +36117,14 @@ $root.PublishEventRequest = (function() {
36116
36117
  */
36117
36118
  PublishEventRequest.prototype.unpublishSiteIds = $util.emptyArray;
36118
36119
 
36120
+ /**
36121
+ * PublishEventRequest published.
36122
+ * @member {boolean} published
36123
+ * @memberof PublishEventRequest
36124
+ * @instance
36125
+ */
36126
+ PublishEventRequest.prototype.published = false;
36127
+
36119
36128
  /**
36120
36129
  * Creates a new PublishEventRequest instance using the specified properties.
36121
36130
  * @function create
@@ -36152,6 +36161,8 @@ $root.PublishEventRequest = (function() {
36152
36161
  if (message.unpublishSiteIds != null && message.unpublishSiteIds.length)
36153
36162
  for (var i = 0; i < message.unpublishSiteIds.length; ++i)
36154
36163
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.unpublishSiteIds[i]);
36164
+ if (message.published != null && Object.hasOwnProperty.call(message, "published"))
36165
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.published);
36155
36166
  return writer;
36156
36167
  };
36157
36168
 
@@ -36205,6 +36216,9 @@ $root.PublishEventRequest = (function() {
36205
36216
  message.unpublishSiteIds = [];
36206
36217
  message.unpublishSiteIds.push(reader.string());
36207
36218
  break;
36219
+ case 5:
36220
+ message.published = reader.bool();
36221
+ break;
36208
36222
  default:
36209
36223
  reader.skipType(tag & 7);
36210
36224
  break;
@@ -36263,6 +36277,9 @@ $root.PublishEventRequest = (function() {
36263
36277
  if (!$util.isString(message.unpublishSiteIds[i]))
36264
36278
  return "unpublishSiteIds: string[] expected";
36265
36279
  }
36280
+ if (message.published != null && message.hasOwnProperty("published"))
36281
+ if (typeof message.published !== "boolean")
36282
+ return "published: boolean expected";
36266
36283
  return null;
36267
36284
  };
36268
36285
 
@@ -36298,6 +36315,8 @@ $root.PublishEventRequest = (function() {
36298
36315
  for (var i = 0; i < object.unpublishSiteIds.length; ++i)
36299
36316
  message.unpublishSiteIds[i] = String(object.unpublishSiteIds[i]);
36300
36317
  }
36318
+ if (object.published != null)
36319
+ message.published = Boolean(object.published);
36301
36320
  return message;
36302
36321
  };
36303
36322
 
@@ -36322,6 +36341,7 @@ $root.PublishEventRequest = (function() {
36322
36341
  object.spanContext = "";
36323
36342
  object.orgId = "";
36324
36343
  object.eventId = "";
36344
+ object.published = false;
36325
36345
  }
36326
36346
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
36327
36347
  object.spanContext = message.spanContext;
@@ -36339,6 +36359,8 @@ $root.PublishEventRequest = (function() {
36339
36359
  for (var j = 0; j < message.unpublishSiteIds.length; ++j)
36340
36360
  object.unpublishSiteIds[j] = message.unpublishSiteIds[j];
36341
36361
  }
36362
+ if (message.published != null && message.hasOwnProperty("published"))
36363
+ object.published = message.published;
36342
36364
  return object;
36343
36365
  };
36344
36366
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,8 +17,8 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@hapi/joi": "^16.1.7",
20
- "@sellout/service": "^0.0.89",
21
- "@sellout/utils": "^0.0.89",
20
+ "@sellout/service": "^0.0.90",
21
+ "@sellout/utils": "^0.0.90",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "0.0.29",
24
24
  "apollo-link-debounce": "^2.1.0",
@@ -32,5 +32,5 @@
32
32
  "protobufjs": "~6.10.1",
33
33
  "typescript": "^3.8.3"
34
34
  },
35
- "gitHead": "fdef7f54d0778a3b5ed2e255647054fbd3564e5d"
35
+ "gitHead": "fc1b53b0ee36af4680b2fd5f6ba5e7357023a89b"
36
36
  }
@@ -6,11 +6,13 @@ const mutation = gql`
6
6
  $eventId: String!,
7
7
  $publishSiteIds: [String],
8
8
  $unpublishSiteIds: [String]
9
+ $published: Boolean
9
10
  ) {
10
11
  publishEvent(
11
12
  eventId: $eventId,
12
13
  publishSiteIds: $publishSiteIds,
13
14
  unpublishSiteIds: $unpublishSiteIds
15
+ published: $published
14
16
  ) {
15
17
  _id
16
18
  orgId
@@ -176,6 +176,7 @@ message PublishEventRequest {
176
176
  string eventId = 2;
177
177
  repeated string publishSiteIds = 3;
178
178
  repeated string unpublishSiteIds = 4;
179
+ bool published = 5;
179
180
  }
180
181
 
181
182
  message PublishEventResponse {