@sellout/models 0.0.204 → 0.0.205
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.
- package/.dist/sellout-proto.js +16 -33
- package/package.json +3 -3
- package/src/proto/order.proto +1 -1
package/.dist/sellout-proto.js
CHANGED
|
@@ -15803,7 +15803,7 @@ $root.OrderUpgrade = (function() {
|
|
|
15803
15803
|
* @property {boolean|null} [rollFees] OrderUpgrade rollFees
|
|
15804
15804
|
* @property {string|null} [paymentId] OrderUpgrade paymentId
|
|
15805
15805
|
* @property {IRefund|null} [refund] OrderUpgrade refund
|
|
15806
|
-
* @property {
|
|
15806
|
+
* @property {IScan|null} [scan] OrderUpgrade scan
|
|
15807
15807
|
* @property {string|null} [state] OrderUpgrade state
|
|
15808
15808
|
* @property {string|null} [qrCodeUrl] OrderUpgrade qrCodeUrl
|
|
15809
15809
|
* @property {string|null} [values] OrderUpgrade values
|
|
@@ -15818,7 +15818,6 @@ $root.OrderUpgrade = (function() {
|
|
|
15818
15818
|
* @param {IOrderUpgrade=} [properties] Properties to set
|
|
15819
15819
|
*/
|
|
15820
15820
|
function OrderUpgrade(properties) {
|
|
15821
|
-
this.scan = [];
|
|
15822
15821
|
if (properties)
|
|
15823
15822
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15824
15823
|
if (properties[keys[i]] != null)
|
|
@@ -15883,11 +15882,11 @@ $root.OrderUpgrade = (function() {
|
|
|
15883
15882
|
|
|
15884
15883
|
/**
|
|
15885
15884
|
* OrderUpgrade scan.
|
|
15886
|
-
* @member {
|
|
15885
|
+
* @member {IScan|null|undefined} scan
|
|
15887
15886
|
* @memberof OrderUpgrade
|
|
15888
15887
|
* @instance
|
|
15889
15888
|
*/
|
|
15890
|
-
OrderUpgrade.prototype.scan =
|
|
15889
|
+
OrderUpgrade.prototype.scan = null;
|
|
15891
15890
|
|
|
15892
15891
|
/**
|
|
15893
15892
|
* OrderUpgrade state.
|
|
@@ -15951,9 +15950,8 @@ $root.OrderUpgrade = (function() {
|
|
|
15951
15950
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.paymentId);
|
|
15952
15951
|
if (message.refund != null && Object.hasOwnProperty.call(message, "refund"))
|
|
15953
15952
|
$root.Refund.encode(message.refund, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
15954
|
-
if (message.scan != null && message
|
|
15955
|
-
|
|
15956
|
-
$root.Scan.encode(message.scan[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
15953
|
+
if (message.scan != null && Object.hasOwnProperty.call(message, "scan"))
|
|
15954
|
+
$root.Scan.encode(message.scan, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
15957
15955
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
15958
15956
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.state);
|
|
15959
15957
|
if (message.qrCodeUrl != null && Object.hasOwnProperty.call(message, "qrCodeUrl"))
|
|
@@ -16016,9 +16014,7 @@ $root.OrderUpgrade = (function() {
|
|
|
16016
16014
|
message.refund = $root.Refund.decode(reader, reader.uint32());
|
|
16017
16015
|
break;
|
|
16018
16016
|
case 7:
|
|
16019
|
-
|
|
16020
|
-
message.scan = [];
|
|
16021
|
-
message.scan.push($root.Scan.decode(reader, reader.uint32()));
|
|
16017
|
+
message.scan = $root.Scan.decode(reader, reader.uint32());
|
|
16022
16018
|
break;
|
|
16023
16019
|
case 8:
|
|
16024
16020
|
message.state = reader.string();
|
|
@@ -16088,13 +16084,9 @@ $root.OrderUpgrade = (function() {
|
|
|
16088
16084
|
return "refund." + error;
|
|
16089
16085
|
}
|
|
16090
16086
|
if (message.scan != null && message.hasOwnProperty("scan")) {
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
var error = $root.Scan.verify(message.scan[i]);
|
|
16095
|
-
if (error)
|
|
16096
|
-
return "scan." + error;
|
|
16097
|
-
}
|
|
16087
|
+
var error = $root.Scan.verify(message.scan);
|
|
16088
|
+
if (error)
|
|
16089
|
+
return "scan." + error;
|
|
16098
16090
|
}
|
|
16099
16091
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
16100
16092
|
if (!$util.isString(message.state))
|
|
@@ -16137,15 +16129,10 @@ $root.OrderUpgrade = (function() {
|
|
|
16137
16129
|
throw TypeError(".OrderUpgrade.refund: object expected");
|
|
16138
16130
|
message.refund = $root.Refund.fromObject(object.refund);
|
|
16139
16131
|
}
|
|
16140
|
-
if (object.scan) {
|
|
16141
|
-
if (
|
|
16142
|
-
throw TypeError(".OrderUpgrade.scan:
|
|
16143
|
-
message.scan =
|
|
16144
|
-
for (var i = 0; i < object.scan.length; ++i) {
|
|
16145
|
-
if (typeof object.scan[i] !== "object")
|
|
16146
|
-
throw TypeError(".OrderUpgrade.scan: object expected");
|
|
16147
|
-
message.scan[i] = $root.Scan.fromObject(object.scan[i]);
|
|
16148
|
-
}
|
|
16132
|
+
if (object.scan != null) {
|
|
16133
|
+
if (typeof object.scan !== "object")
|
|
16134
|
+
throw TypeError(".OrderUpgrade.scan: object expected");
|
|
16135
|
+
message.scan = $root.Scan.fromObject(object.scan);
|
|
16149
16136
|
}
|
|
16150
16137
|
if (object.state != null)
|
|
16151
16138
|
message.state = String(object.state);
|
|
@@ -16169,8 +16156,6 @@ $root.OrderUpgrade = (function() {
|
|
|
16169
16156
|
if (!options)
|
|
16170
16157
|
options = {};
|
|
16171
16158
|
var object = {};
|
|
16172
|
-
if (options.arrays || options.defaults)
|
|
16173
|
-
object.scan = [];
|
|
16174
16159
|
if (options.defaults) {
|
|
16175
16160
|
object._id = "";
|
|
16176
16161
|
object.name = "";
|
|
@@ -16179,6 +16164,7 @@ $root.OrderUpgrade = (function() {
|
|
|
16179
16164
|
object.rollFees = false;
|
|
16180
16165
|
object.paymentId = "";
|
|
16181
16166
|
object.refund = null;
|
|
16167
|
+
object.scan = null;
|
|
16182
16168
|
object.state = "";
|
|
16183
16169
|
object.qrCodeUrl = "";
|
|
16184
16170
|
object.values = "";
|
|
@@ -16197,11 +16183,8 @@ $root.OrderUpgrade = (function() {
|
|
|
16197
16183
|
object.paymentId = message.paymentId;
|
|
16198
16184
|
if (message.refund != null && message.hasOwnProperty("refund"))
|
|
16199
16185
|
object.refund = $root.Refund.toObject(message.refund, options);
|
|
16200
|
-
if (message.scan && message.scan
|
|
16201
|
-
object.scan =
|
|
16202
|
-
for (var j = 0; j < message.scan.length; ++j)
|
|
16203
|
-
object.scan[j] = $root.Scan.toObject(message.scan[j], options);
|
|
16204
|
-
}
|
|
16186
|
+
if (message.scan != null && message.hasOwnProperty("scan"))
|
|
16187
|
+
object.scan = $root.Scan.toObject(message.scan, options);
|
|
16205
16188
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
16206
16189
|
object.state = message.state;
|
|
16207
16190
|
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.205",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.205",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "176ea7750711f1013de1dc50ad11b42923de6c84"
|
|
35
35
|
}
|