@sellout/models 0.0.412 → 0.0.413

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.
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("@apollo/client").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_1 = require("@apollo/client");
4
+ const mutation = (0, client_1.gql) `
5
+ mutation sendOrderAddOnAuthentication($orderId: String!, $eventId: String!) {
6
+ sendOrderAddOnAuthentication(orderId: $orderId, eventId: $eventId) {
7
+ ticketIds
8
+ }
9
+ }
10
+ `;
11
+ exports.default = mutation;
12
+ //# sourceMappingURL=sendOrderAddOnAuthentication.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendOrderAddOnAuthentication.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/sendOrderAddOnAuthentication.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;CAMnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("@apollo/client").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_1 = require("@apollo/client");
4
+ const mutation = (0, client_1.gql) `
5
+ mutation verifyOrderAddOnAuthentication(
6
+ $orderId: String!
7
+ $eventId: String!
8
+ $phoneVerificationToken: String!
9
+ ) {
10
+ verifyOrderAddOnAuthentication(
11
+ orderId: $orderId
12
+ eventId: $eventId
13
+ phoneVerificationToken: $phoneVerificationToken
14
+ ) {
15
+ token
16
+ user {
17
+ _id
18
+ email
19
+ firstName
20
+ lastName
21
+ phoneNumber
22
+ }
23
+ }
24
+ }
25
+ `;
26
+ exports.default = mutation;
27
+ //# sourceMappingURL=verifyOrderAddOnAuthentication.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyOrderAddOnAuthentication.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyOrderAddOnAuthentication.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;CAqBnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -38930,6 +38930,907 @@ $root.FindOrderByIdResponse = (function() {
38930
38930
  return FindOrderByIdResponse;
38931
38931
  })();
38932
38932
 
38933
+ $root.OrderAddOnAuthenticationRequest = (function() {
38934
+
38935
+ /**
38936
+ * Properties of an OrderAddOnAuthenticationRequest.
38937
+ * @exports IOrderAddOnAuthenticationRequest
38938
+ * @interface IOrderAddOnAuthenticationRequest
38939
+ * @property {string|null} [spanContext] OrderAddOnAuthenticationRequest spanContext
38940
+ * @property {string|null} [orderId] OrderAddOnAuthenticationRequest orderId
38941
+ * @property {string|null} [eventId] OrderAddOnAuthenticationRequest eventId
38942
+ * @property {string|null} [phoneVerificationToken] OrderAddOnAuthenticationRequest phoneVerificationToken
38943
+ */
38944
+
38945
+ /**
38946
+ * Constructs a new OrderAddOnAuthenticationRequest.
38947
+ * @exports OrderAddOnAuthenticationRequest
38948
+ * @classdesc Represents an OrderAddOnAuthenticationRequest.
38949
+ * @implements IOrderAddOnAuthenticationRequest
38950
+ * @constructor
38951
+ * @param {IOrderAddOnAuthenticationRequest=} [properties] Properties to set
38952
+ */
38953
+ function OrderAddOnAuthenticationRequest(properties) {
38954
+ if (properties)
38955
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38956
+ if (properties[keys[i]] != null)
38957
+ this[keys[i]] = properties[keys[i]];
38958
+ }
38959
+
38960
+ /**
38961
+ * OrderAddOnAuthenticationRequest spanContext.
38962
+ * @member {string} spanContext
38963
+ * @memberof OrderAddOnAuthenticationRequest
38964
+ * @instance
38965
+ */
38966
+ OrderAddOnAuthenticationRequest.prototype.spanContext = "";
38967
+
38968
+ /**
38969
+ * OrderAddOnAuthenticationRequest orderId.
38970
+ * @member {string} orderId
38971
+ * @memberof OrderAddOnAuthenticationRequest
38972
+ * @instance
38973
+ */
38974
+ OrderAddOnAuthenticationRequest.prototype.orderId = "";
38975
+
38976
+ /**
38977
+ * OrderAddOnAuthenticationRequest eventId.
38978
+ * @member {string} eventId
38979
+ * @memberof OrderAddOnAuthenticationRequest
38980
+ * @instance
38981
+ */
38982
+ OrderAddOnAuthenticationRequest.prototype.eventId = "";
38983
+
38984
+ /**
38985
+ * OrderAddOnAuthenticationRequest phoneVerificationToken.
38986
+ * @member {string} phoneVerificationToken
38987
+ * @memberof OrderAddOnAuthenticationRequest
38988
+ * @instance
38989
+ */
38990
+ OrderAddOnAuthenticationRequest.prototype.phoneVerificationToken = "";
38991
+
38992
+ /**
38993
+ * Creates a new OrderAddOnAuthenticationRequest instance using the specified properties.
38994
+ * @function create
38995
+ * @memberof OrderAddOnAuthenticationRequest
38996
+ * @static
38997
+ * @param {IOrderAddOnAuthenticationRequest=} [properties] Properties to set
38998
+ * @returns {OrderAddOnAuthenticationRequest} OrderAddOnAuthenticationRequest instance
38999
+ */
39000
+ OrderAddOnAuthenticationRequest.create = function create(properties) {
39001
+ return new OrderAddOnAuthenticationRequest(properties);
39002
+ };
39003
+
39004
+ /**
39005
+ * Encodes the specified OrderAddOnAuthenticationRequest message. Does not implicitly {@link OrderAddOnAuthenticationRequest.verify|verify} messages.
39006
+ * @function encode
39007
+ * @memberof OrderAddOnAuthenticationRequest
39008
+ * @static
39009
+ * @param {IOrderAddOnAuthenticationRequest} message OrderAddOnAuthenticationRequest message or plain object to encode
39010
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39011
+ * @returns {$protobuf.Writer} Writer
39012
+ */
39013
+ OrderAddOnAuthenticationRequest.encode = function encode(message, writer) {
39014
+ if (!writer)
39015
+ writer = $Writer.create();
39016
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
39017
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
39018
+ if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
39019
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orderId);
39020
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
39021
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventId);
39022
+ if (message.phoneVerificationToken != null && Object.hasOwnProperty.call(message, "phoneVerificationToken"))
39023
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.phoneVerificationToken);
39024
+ return writer;
39025
+ };
39026
+
39027
+ /**
39028
+ * Encodes the specified OrderAddOnAuthenticationRequest message, length delimited. Does not implicitly {@link OrderAddOnAuthenticationRequest.verify|verify} messages.
39029
+ * @function encodeDelimited
39030
+ * @memberof OrderAddOnAuthenticationRequest
39031
+ * @static
39032
+ * @param {IOrderAddOnAuthenticationRequest} message OrderAddOnAuthenticationRequest message or plain object to encode
39033
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39034
+ * @returns {$protobuf.Writer} Writer
39035
+ */
39036
+ OrderAddOnAuthenticationRequest.encodeDelimited = function encodeDelimited(message, writer) {
39037
+ return this.encode(message, writer).ldelim();
39038
+ };
39039
+
39040
+ /**
39041
+ * Decodes an OrderAddOnAuthenticationRequest message from the specified reader or buffer.
39042
+ * @function decode
39043
+ * @memberof OrderAddOnAuthenticationRequest
39044
+ * @static
39045
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39046
+ * @param {number} [length] Message length if known beforehand
39047
+ * @returns {OrderAddOnAuthenticationRequest} OrderAddOnAuthenticationRequest
39048
+ * @throws {Error} If the payload is not a reader or valid buffer
39049
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39050
+ */
39051
+ OrderAddOnAuthenticationRequest.decode = function decode(reader, length) {
39052
+ if (!(reader instanceof $Reader))
39053
+ reader = $Reader.create(reader);
39054
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrderAddOnAuthenticationRequest();
39055
+ while (reader.pos < end) {
39056
+ var tag = reader.uint32();
39057
+ switch (tag >>> 3) {
39058
+ case 1:
39059
+ message.spanContext = reader.string();
39060
+ break;
39061
+ case 2:
39062
+ message.orderId = reader.string();
39063
+ break;
39064
+ case 3:
39065
+ message.eventId = reader.string();
39066
+ break;
39067
+ case 4:
39068
+ message.phoneVerificationToken = reader.string();
39069
+ break;
39070
+ default:
39071
+ reader.skipType(tag & 7);
39072
+ break;
39073
+ }
39074
+ }
39075
+ return message;
39076
+ };
39077
+
39078
+ /**
39079
+ * Decodes an OrderAddOnAuthenticationRequest message from the specified reader or buffer, length delimited.
39080
+ * @function decodeDelimited
39081
+ * @memberof OrderAddOnAuthenticationRequest
39082
+ * @static
39083
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39084
+ * @returns {OrderAddOnAuthenticationRequest} OrderAddOnAuthenticationRequest
39085
+ * @throws {Error} If the payload is not a reader or valid buffer
39086
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39087
+ */
39088
+ OrderAddOnAuthenticationRequest.decodeDelimited = function decodeDelimited(reader) {
39089
+ if (!(reader instanceof $Reader))
39090
+ reader = new $Reader(reader);
39091
+ return this.decode(reader, reader.uint32());
39092
+ };
39093
+
39094
+ /**
39095
+ * Verifies an OrderAddOnAuthenticationRequest message.
39096
+ * @function verify
39097
+ * @memberof OrderAddOnAuthenticationRequest
39098
+ * @static
39099
+ * @param {Object.<string,*>} message Plain object to verify
39100
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39101
+ */
39102
+ OrderAddOnAuthenticationRequest.verify = function verify(message) {
39103
+ if (typeof message !== "object" || message === null)
39104
+ return "object expected";
39105
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
39106
+ if (!$util.isString(message.spanContext))
39107
+ return "spanContext: string expected";
39108
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
39109
+ if (!$util.isString(message.orderId))
39110
+ return "orderId: string expected";
39111
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
39112
+ if (!$util.isString(message.eventId))
39113
+ return "eventId: string expected";
39114
+ if (message.phoneVerificationToken != null && message.hasOwnProperty("phoneVerificationToken"))
39115
+ if (!$util.isString(message.phoneVerificationToken))
39116
+ return "phoneVerificationToken: string expected";
39117
+ return null;
39118
+ };
39119
+
39120
+ /**
39121
+ * Creates an OrderAddOnAuthenticationRequest message from a plain object. Also converts values to their respective internal types.
39122
+ * @function fromObject
39123
+ * @memberof OrderAddOnAuthenticationRequest
39124
+ * @static
39125
+ * @param {Object.<string,*>} object Plain object
39126
+ * @returns {OrderAddOnAuthenticationRequest} OrderAddOnAuthenticationRequest
39127
+ */
39128
+ OrderAddOnAuthenticationRequest.fromObject = function fromObject(object) {
39129
+ if (object instanceof $root.OrderAddOnAuthenticationRequest)
39130
+ return object;
39131
+ var message = new $root.OrderAddOnAuthenticationRequest();
39132
+ if (object.spanContext != null)
39133
+ message.spanContext = String(object.spanContext);
39134
+ if (object.orderId != null)
39135
+ message.orderId = String(object.orderId);
39136
+ if (object.eventId != null)
39137
+ message.eventId = String(object.eventId);
39138
+ if (object.phoneVerificationToken != null)
39139
+ message.phoneVerificationToken = String(object.phoneVerificationToken);
39140
+ return message;
39141
+ };
39142
+
39143
+ /**
39144
+ * Creates a plain object from an OrderAddOnAuthenticationRequest message. Also converts values to other types if specified.
39145
+ * @function toObject
39146
+ * @memberof OrderAddOnAuthenticationRequest
39147
+ * @static
39148
+ * @param {OrderAddOnAuthenticationRequest} message OrderAddOnAuthenticationRequest
39149
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39150
+ * @returns {Object.<string,*>} Plain object
39151
+ */
39152
+ OrderAddOnAuthenticationRequest.toObject = function toObject(message, options) {
39153
+ if (!options)
39154
+ options = {};
39155
+ var object = {};
39156
+ if (options.defaults) {
39157
+ object.spanContext = "";
39158
+ object.orderId = "";
39159
+ object.eventId = "";
39160
+ object.phoneVerificationToken = "";
39161
+ }
39162
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
39163
+ object.spanContext = message.spanContext;
39164
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
39165
+ object.orderId = message.orderId;
39166
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
39167
+ object.eventId = message.eventId;
39168
+ if (message.phoneVerificationToken != null && message.hasOwnProperty("phoneVerificationToken"))
39169
+ object.phoneVerificationToken = message.phoneVerificationToken;
39170
+ return object;
39171
+ };
39172
+
39173
+ /**
39174
+ * Converts this OrderAddOnAuthenticationRequest to JSON.
39175
+ * @function toJSON
39176
+ * @memberof OrderAddOnAuthenticationRequest
39177
+ * @instance
39178
+ * @returns {Object.<string,*>} JSON object
39179
+ */
39180
+ OrderAddOnAuthenticationRequest.prototype.toJSON = function toJSON() {
39181
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39182
+ };
39183
+
39184
+ return OrderAddOnAuthenticationRequest;
39185
+ })();
39186
+
39187
+ $root.SendOrderAddOnAuthenticationResponse = (function() {
39188
+
39189
+ /**
39190
+ * Properties of a SendOrderAddOnAuthenticationResponse.
39191
+ * @exports ISendOrderAddOnAuthenticationResponse
39192
+ * @interface ISendOrderAddOnAuthenticationResponse
39193
+ * @property {StatusCode|null} [status] SendOrderAddOnAuthenticationResponse status
39194
+ * @property {Array.<IError>|null} [errors] SendOrderAddOnAuthenticationResponse errors
39195
+ * @property {Array.<string>|null} [ticketIds] SendOrderAddOnAuthenticationResponse ticketIds
39196
+ */
39197
+
39198
+ /**
39199
+ * Constructs a new SendOrderAddOnAuthenticationResponse.
39200
+ * @exports SendOrderAddOnAuthenticationResponse
39201
+ * @classdesc Represents a SendOrderAddOnAuthenticationResponse.
39202
+ * @implements ISendOrderAddOnAuthenticationResponse
39203
+ * @constructor
39204
+ * @param {ISendOrderAddOnAuthenticationResponse=} [properties] Properties to set
39205
+ */
39206
+ function SendOrderAddOnAuthenticationResponse(properties) {
39207
+ this.errors = [];
39208
+ this.ticketIds = [];
39209
+ if (properties)
39210
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39211
+ if (properties[keys[i]] != null)
39212
+ this[keys[i]] = properties[keys[i]];
39213
+ }
39214
+
39215
+ /**
39216
+ * SendOrderAddOnAuthenticationResponse status.
39217
+ * @member {StatusCode} status
39218
+ * @memberof SendOrderAddOnAuthenticationResponse
39219
+ * @instance
39220
+ */
39221
+ SendOrderAddOnAuthenticationResponse.prototype.status = 0;
39222
+
39223
+ /**
39224
+ * SendOrderAddOnAuthenticationResponse errors.
39225
+ * @member {Array.<IError>} errors
39226
+ * @memberof SendOrderAddOnAuthenticationResponse
39227
+ * @instance
39228
+ */
39229
+ SendOrderAddOnAuthenticationResponse.prototype.errors = $util.emptyArray;
39230
+
39231
+ /**
39232
+ * SendOrderAddOnAuthenticationResponse ticketIds.
39233
+ * @member {Array.<string>} ticketIds
39234
+ * @memberof SendOrderAddOnAuthenticationResponse
39235
+ * @instance
39236
+ */
39237
+ SendOrderAddOnAuthenticationResponse.prototype.ticketIds = $util.emptyArray;
39238
+
39239
+ /**
39240
+ * Creates a new SendOrderAddOnAuthenticationResponse instance using the specified properties.
39241
+ * @function create
39242
+ * @memberof SendOrderAddOnAuthenticationResponse
39243
+ * @static
39244
+ * @param {ISendOrderAddOnAuthenticationResponse=} [properties] Properties to set
39245
+ * @returns {SendOrderAddOnAuthenticationResponse} SendOrderAddOnAuthenticationResponse instance
39246
+ */
39247
+ SendOrderAddOnAuthenticationResponse.create = function create(properties) {
39248
+ return new SendOrderAddOnAuthenticationResponse(properties);
39249
+ };
39250
+
39251
+ /**
39252
+ * Encodes the specified SendOrderAddOnAuthenticationResponse message. Does not implicitly {@link SendOrderAddOnAuthenticationResponse.verify|verify} messages.
39253
+ * @function encode
39254
+ * @memberof SendOrderAddOnAuthenticationResponse
39255
+ * @static
39256
+ * @param {ISendOrderAddOnAuthenticationResponse} message SendOrderAddOnAuthenticationResponse message or plain object to encode
39257
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39258
+ * @returns {$protobuf.Writer} Writer
39259
+ */
39260
+ SendOrderAddOnAuthenticationResponse.encode = function encode(message, writer) {
39261
+ if (!writer)
39262
+ writer = $Writer.create();
39263
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
39264
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
39265
+ if (message.errors != null && message.errors.length)
39266
+ for (var i = 0; i < message.errors.length; ++i)
39267
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
39268
+ if (message.ticketIds != null && message.ticketIds.length)
39269
+ for (var i = 0; i < message.ticketIds.length; ++i)
39270
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticketIds[i]);
39271
+ return writer;
39272
+ };
39273
+
39274
+ /**
39275
+ * Encodes the specified SendOrderAddOnAuthenticationResponse message, length delimited. Does not implicitly {@link SendOrderAddOnAuthenticationResponse.verify|verify} messages.
39276
+ * @function encodeDelimited
39277
+ * @memberof SendOrderAddOnAuthenticationResponse
39278
+ * @static
39279
+ * @param {ISendOrderAddOnAuthenticationResponse} message SendOrderAddOnAuthenticationResponse message or plain object to encode
39280
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39281
+ * @returns {$protobuf.Writer} Writer
39282
+ */
39283
+ SendOrderAddOnAuthenticationResponse.encodeDelimited = function encodeDelimited(message, writer) {
39284
+ return this.encode(message, writer).ldelim();
39285
+ };
39286
+
39287
+ /**
39288
+ * Decodes a SendOrderAddOnAuthenticationResponse message from the specified reader or buffer.
39289
+ * @function decode
39290
+ * @memberof SendOrderAddOnAuthenticationResponse
39291
+ * @static
39292
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39293
+ * @param {number} [length] Message length if known beforehand
39294
+ * @returns {SendOrderAddOnAuthenticationResponse} SendOrderAddOnAuthenticationResponse
39295
+ * @throws {Error} If the payload is not a reader or valid buffer
39296
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39297
+ */
39298
+ SendOrderAddOnAuthenticationResponse.decode = function decode(reader, length) {
39299
+ if (!(reader instanceof $Reader))
39300
+ reader = $Reader.create(reader);
39301
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendOrderAddOnAuthenticationResponse();
39302
+ while (reader.pos < end) {
39303
+ var tag = reader.uint32();
39304
+ switch (tag >>> 3) {
39305
+ case 1:
39306
+ message.status = reader.int32();
39307
+ break;
39308
+ case 2:
39309
+ if (!(message.errors && message.errors.length))
39310
+ message.errors = [];
39311
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
39312
+ break;
39313
+ case 3:
39314
+ if (!(message.ticketIds && message.ticketIds.length))
39315
+ message.ticketIds = [];
39316
+ message.ticketIds.push(reader.string());
39317
+ break;
39318
+ default:
39319
+ reader.skipType(tag & 7);
39320
+ break;
39321
+ }
39322
+ }
39323
+ return message;
39324
+ };
39325
+
39326
+ /**
39327
+ * Decodes a SendOrderAddOnAuthenticationResponse message from the specified reader or buffer, length delimited.
39328
+ * @function decodeDelimited
39329
+ * @memberof SendOrderAddOnAuthenticationResponse
39330
+ * @static
39331
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39332
+ * @returns {SendOrderAddOnAuthenticationResponse} SendOrderAddOnAuthenticationResponse
39333
+ * @throws {Error} If the payload is not a reader or valid buffer
39334
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39335
+ */
39336
+ SendOrderAddOnAuthenticationResponse.decodeDelimited = function decodeDelimited(reader) {
39337
+ if (!(reader instanceof $Reader))
39338
+ reader = new $Reader(reader);
39339
+ return this.decode(reader, reader.uint32());
39340
+ };
39341
+
39342
+ /**
39343
+ * Verifies a SendOrderAddOnAuthenticationResponse message.
39344
+ * @function verify
39345
+ * @memberof SendOrderAddOnAuthenticationResponse
39346
+ * @static
39347
+ * @param {Object.<string,*>} message Plain object to verify
39348
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39349
+ */
39350
+ SendOrderAddOnAuthenticationResponse.verify = function verify(message) {
39351
+ if (typeof message !== "object" || message === null)
39352
+ return "object expected";
39353
+ if (message.status != null && message.hasOwnProperty("status"))
39354
+ switch (message.status) {
39355
+ default:
39356
+ return "status: enum value expected";
39357
+ case 0:
39358
+ case 200:
39359
+ case 400:
39360
+ case 401:
39361
+ case 403:
39362
+ case 422:
39363
+ case 404:
39364
+ case 500:
39365
+ case 504:
39366
+ break;
39367
+ }
39368
+ if (message.errors != null && message.hasOwnProperty("errors")) {
39369
+ if (!Array.isArray(message.errors))
39370
+ return "errors: array expected";
39371
+ for (var i = 0; i < message.errors.length; ++i) {
39372
+ var error = $root.Error.verify(message.errors[i]);
39373
+ if (error)
39374
+ return "errors." + error;
39375
+ }
39376
+ }
39377
+ if (message.ticketIds != null && message.hasOwnProperty("ticketIds")) {
39378
+ if (!Array.isArray(message.ticketIds))
39379
+ return "ticketIds: array expected";
39380
+ for (var i = 0; i < message.ticketIds.length; ++i)
39381
+ if (!$util.isString(message.ticketIds[i]))
39382
+ return "ticketIds: string[] expected";
39383
+ }
39384
+ return null;
39385
+ };
39386
+
39387
+ /**
39388
+ * Creates a SendOrderAddOnAuthenticationResponse message from a plain object. Also converts values to their respective internal types.
39389
+ * @function fromObject
39390
+ * @memberof SendOrderAddOnAuthenticationResponse
39391
+ * @static
39392
+ * @param {Object.<string,*>} object Plain object
39393
+ * @returns {SendOrderAddOnAuthenticationResponse} SendOrderAddOnAuthenticationResponse
39394
+ */
39395
+ SendOrderAddOnAuthenticationResponse.fromObject = function fromObject(object) {
39396
+ if (object instanceof $root.SendOrderAddOnAuthenticationResponse)
39397
+ return object;
39398
+ var message = new $root.SendOrderAddOnAuthenticationResponse();
39399
+ switch (object.status) {
39400
+ case "UNKNOWN_CODE":
39401
+ case 0:
39402
+ message.status = 0;
39403
+ break;
39404
+ case "OK":
39405
+ case 200:
39406
+ message.status = 200;
39407
+ break;
39408
+ case "BAD_REQUEST":
39409
+ case 400:
39410
+ message.status = 400;
39411
+ break;
39412
+ case "UNAUTHORIZED":
39413
+ case 401:
39414
+ message.status = 401;
39415
+ break;
39416
+ case "FORBIDDEN":
39417
+ case 403:
39418
+ message.status = 403;
39419
+ break;
39420
+ case "UNPROCESSABLE_ENTITY":
39421
+ case 422:
39422
+ message.status = 422;
39423
+ break;
39424
+ case "NOT_FOUND":
39425
+ case 404:
39426
+ message.status = 404;
39427
+ break;
39428
+ case "INTERNAL_SERVER_ERROR":
39429
+ case 500:
39430
+ message.status = 500;
39431
+ break;
39432
+ case "GATEWAY_TIMEOUT":
39433
+ case 504:
39434
+ message.status = 504;
39435
+ break;
39436
+ }
39437
+ if (object.errors) {
39438
+ if (!Array.isArray(object.errors))
39439
+ throw TypeError(".SendOrderAddOnAuthenticationResponse.errors: array expected");
39440
+ message.errors = [];
39441
+ for (var i = 0; i < object.errors.length; ++i) {
39442
+ if (typeof object.errors[i] !== "object")
39443
+ throw TypeError(".SendOrderAddOnAuthenticationResponse.errors: object expected");
39444
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
39445
+ }
39446
+ }
39447
+ if (object.ticketIds) {
39448
+ if (!Array.isArray(object.ticketIds))
39449
+ throw TypeError(".SendOrderAddOnAuthenticationResponse.ticketIds: array expected");
39450
+ message.ticketIds = [];
39451
+ for (var i = 0; i < object.ticketIds.length; ++i)
39452
+ message.ticketIds[i] = String(object.ticketIds[i]);
39453
+ }
39454
+ return message;
39455
+ };
39456
+
39457
+ /**
39458
+ * Creates a plain object from a SendOrderAddOnAuthenticationResponse message. Also converts values to other types if specified.
39459
+ * @function toObject
39460
+ * @memberof SendOrderAddOnAuthenticationResponse
39461
+ * @static
39462
+ * @param {SendOrderAddOnAuthenticationResponse} message SendOrderAddOnAuthenticationResponse
39463
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39464
+ * @returns {Object.<string,*>} Plain object
39465
+ */
39466
+ SendOrderAddOnAuthenticationResponse.toObject = function toObject(message, options) {
39467
+ if (!options)
39468
+ options = {};
39469
+ var object = {};
39470
+ if (options.arrays || options.defaults) {
39471
+ object.errors = [];
39472
+ object.ticketIds = [];
39473
+ }
39474
+ if (options.defaults)
39475
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
39476
+ if (message.status != null && message.hasOwnProperty("status"))
39477
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
39478
+ if (message.errors && message.errors.length) {
39479
+ object.errors = [];
39480
+ for (var j = 0; j < message.errors.length; ++j)
39481
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
39482
+ }
39483
+ if (message.ticketIds && message.ticketIds.length) {
39484
+ object.ticketIds = [];
39485
+ for (var j = 0; j < message.ticketIds.length; ++j)
39486
+ object.ticketIds[j] = message.ticketIds[j];
39487
+ }
39488
+ return object;
39489
+ };
39490
+
39491
+ /**
39492
+ * Converts this SendOrderAddOnAuthenticationResponse to JSON.
39493
+ * @function toJSON
39494
+ * @memberof SendOrderAddOnAuthenticationResponse
39495
+ * @instance
39496
+ * @returns {Object.<string,*>} JSON object
39497
+ */
39498
+ SendOrderAddOnAuthenticationResponse.prototype.toJSON = function toJSON() {
39499
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39500
+ };
39501
+
39502
+ return SendOrderAddOnAuthenticationResponse;
39503
+ })();
39504
+
39505
+ $root.VerifyOrderAddOnAuthenticationResponse = (function() {
39506
+
39507
+ /**
39508
+ * Properties of a VerifyOrderAddOnAuthenticationResponse.
39509
+ * @exports IVerifyOrderAddOnAuthenticationResponse
39510
+ * @interface IVerifyOrderAddOnAuthenticationResponse
39511
+ * @property {StatusCode|null} [status] VerifyOrderAddOnAuthenticationResponse status
39512
+ * @property {Array.<IError>|null} [errors] VerifyOrderAddOnAuthenticationResponse errors
39513
+ * @property {IUser|null} [user] VerifyOrderAddOnAuthenticationResponse user
39514
+ * @property {string|null} [token] VerifyOrderAddOnAuthenticationResponse token
39515
+ */
39516
+
39517
+ /**
39518
+ * Constructs a new VerifyOrderAddOnAuthenticationResponse.
39519
+ * @exports VerifyOrderAddOnAuthenticationResponse
39520
+ * @classdesc Represents a VerifyOrderAddOnAuthenticationResponse.
39521
+ * @implements IVerifyOrderAddOnAuthenticationResponse
39522
+ * @constructor
39523
+ * @param {IVerifyOrderAddOnAuthenticationResponse=} [properties] Properties to set
39524
+ */
39525
+ function VerifyOrderAddOnAuthenticationResponse(properties) {
39526
+ this.errors = [];
39527
+ if (properties)
39528
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39529
+ if (properties[keys[i]] != null)
39530
+ this[keys[i]] = properties[keys[i]];
39531
+ }
39532
+
39533
+ /**
39534
+ * VerifyOrderAddOnAuthenticationResponse status.
39535
+ * @member {StatusCode} status
39536
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39537
+ * @instance
39538
+ */
39539
+ VerifyOrderAddOnAuthenticationResponse.prototype.status = 0;
39540
+
39541
+ /**
39542
+ * VerifyOrderAddOnAuthenticationResponse errors.
39543
+ * @member {Array.<IError>} errors
39544
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39545
+ * @instance
39546
+ */
39547
+ VerifyOrderAddOnAuthenticationResponse.prototype.errors = $util.emptyArray;
39548
+
39549
+ /**
39550
+ * VerifyOrderAddOnAuthenticationResponse user.
39551
+ * @member {IUser|null|undefined} user
39552
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39553
+ * @instance
39554
+ */
39555
+ VerifyOrderAddOnAuthenticationResponse.prototype.user = null;
39556
+
39557
+ /**
39558
+ * VerifyOrderAddOnAuthenticationResponse token.
39559
+ * @member {string} token
39560
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39561
+ * @instance
39562
+ */
39563
+ VerifyOrderAddOnAuthenticationResponse.prototype.token = "";
39564
+
39565
+ /**
39566
+ * Creates a new VerifyOrderAddOnAuthenticationResponse instance using the specified properties.
39567
+ * @function create
39568
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39569
+ * @static
39570
+ * @param {IVerifyOrderAddOnAuthenticationResponse=} [properties] Properties to set
39571
+ * @returns {VerifyOrderAddOnAuthenticationResponse} VerifyOrderAddOnAuthenticationResponse instance
39572
+ */
39573
+ VerifyOrderAddOnAuthenticationResponse.create = function create(properties) {
39574
+ return new VerifyOrderAddOnAuthenticationResponse(properties);
39575
+ };
39576
+
39577
+ /**
39578
+ * Encodes the specified VerifyOrderAddOnAuthenticationResponse message. Does not implicitly {@link VerifyOrderAddOnAuthenticationResponse.verify|verify} messages.
39579
+ * @function encode
39580
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39581
+ * @static
39582
+ * @param {IVerifyOrderAddOnAuthenticationResponse} message VerifyOrderAddOnAuthenticationResponse message or plain object to encode
39583
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39584
+ * @returns {$protobuf.Writer} Writer
39585
+ */
39586
+ VerifyOrderAddOnAuthenticationResponse.encode = function encode(message, writer) {
39587
+ if (!writer)
39588
+ writer = $Writer.create();
39589
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
39590
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
39591
+ if (message.errors != null && message.errors.length)
39592
+ for (var i = 0; i < message.errors.length; ++i)
39593
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
39594
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
39595
+ $root.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
39596
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
39597
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.token);
39598
+ return writer;
39599
+ };
39600
+
39601
+ /**
39602
+ * Encodes the specified VerifyOrderAddOnAuthenticationResponse message, length delimited. Does not implicitly {@link VerifyOrderAddOnAuthenticationResponse.verify|verify} messages.
39603
+ * @function encodeDelimited
39604
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39605
+ * @static
39606
+ * @param {IVerifyOrderAddOnAuthenticationResponse} message VerifyOrderAddOnAuthenticationResponse message or plain object to encode
39607
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39608
+ * @returns {$protobuf.Writer} Writer
39609
+ */
39610
+ VerifyOrderAddOnAuthenticationResponse.encodeDelimited = function encodeDelimited(message, writer) {
39611
+ return this.encode(message, writer).ldelim();
39612
+ };
39613
+
39614
+ /**
39615
+ * Decodes a VerifyOrderAddOnAuthenticationResponse message from the specified reader or buffer.
39616
+ * @function decode
39617
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39618
+ * @static
39619
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39620
+ * @param {number} [length] Message length if known beforehand
39621
+ * @returns {VerifyOrderAddOnAuthenticationResponse} VerifyOrderAddOnAuthenticationResponse
39622
+ * @throws {Error} If the payload is not a reader or valid buffer
39623
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39624
+ */
39625
+ VerifyOrderAddOnAuthenticationResponse.decode = function decode(reader, length) {
39626
+ if (!(reader instanceof $Reader))
39627
+ reader = $Reader.create(reader);
39628
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VerifyOrderAddOnAuthenticationResponse();
39629
+ while (reader.pos < end) {
39630
+ var tag = reader.uint32();
39631
+ switch (tag >>> 3) {
39632
+ case 1:
39633
+ message.status = reader.int32();
39634
+ break;
39635
+ case 2:
39636
+ if (!(message.errors && message.errors.length))
39637
+ message.errors = [];
39638
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
39639
+ break;
39640
+ case 3:
39641
+ message.user = $root.User.decode(reader, reader.uint32());
39642
+ break;
39643
+ case 4:
39644
+ message.token = reader.string();
39645
+ break;
39646
+ default:
39647
+ reader.skipType(tag & 7);
39648
+ break;
39649
+ }
39650
+ }
39651
+ return message;
39652
+ };
39653
+
39654
+ /**
39655
+ * Decodes a VerifyOrderAddOnAuthenticationResponse message from the specified reader or buffer, length delimited.
39656
+ * @function decodeDelimited
39657
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39658
+ * @static
39659
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39660
+ * @returns {VerifyOrderAddOnAuthenticationResponse} VerifyOrderAddOnAuthenticationResponse
39661
+ * @throws {Error} If the payload is not a reader or valid buffer
39662
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39663
+ */
39664
+ VerifyOrderAddOnAuthenticationResponse.decodeDelimited = function decodeDelimited(reader) {
39665
+ if (!(reader instanceof $Reader))
39666
+ reader = new $Reader(reader);
39667
+ return this.decode(reader, reader.uint32());
39668
+ };
39669
+
39670
+ /**
39671
+ * Verifies a VerifyOrderAddOnAuthenticationResponse message.
39672
+ * @function verify
39673
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39674
+ * @static
39675
+ * @param {Object.<string,*>} message Plain object to verify
39676
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39677
+ */
39678
+ VerifyOrderAddOnAuthenticationResponse.verify = function verify(message) {
39679
+ if (typeof message !== "object" || message === null)
39680
+ return "object expected";
39681
+ if (message.status != null && message.hasOwnProperty("status"))
39682
+ switch (message.status) {
39683
+ default:
39684
+ return "status: enum value expected";
39685
+ case 0:
39686
+ case 200:
39687
+ case 400:
39688
+ case 401:
39689
+ case 403:
39690
+ case 422:
39691
+ case 404:
39692
+ case 500:
39693
+ case 504:
39694
+ break;
39695
+ }
39696
+ if (message.errors != null && message.hasOwnProperty("errors")) {
39697
+ if (!Array.isArray(message.errors))
39698
+ return "errors: array expected";
39699
+ for (var i = 0; i < message.errors.length; ++i) {
39700
+ var error = $root.Error.verify(message.errors[i]);
39701
+ if (error)
39702
+ return "errors." + error;
39703
+ }
39704
+ }
39705
+ if (message.user != null && message.hasOwnProperty("user")) {
39706
+ var error = $root.User.verify(message.user);
39707
+ if (error)
39708
+ return "user." + error;
39709
+ }
39710
+ if (message.token != null && message.hasOwnProperty("token"))
39711
+ if (!$util.isString(message.token))
39712
+ return "token: string expected";
39713
+ return null;
39714
+ };
39715
+
39716
+ /**
39717
+ * Creates a VerifyOrderAddOnAuthenticationResponse message from a plain object. Also converts values to their respective internal types.
39718
+ * @function fromObject
39719
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39720
+ * @static
39721
+ * @param {Object.<string,*>} object Plain object
39722
+ * @returns {VerifyOrderAddOnAuthenticationResponse} VerifyOrderAddOnAuthenticationResponse
39723
+ */
39724
+ VerifyOrderAddOnAuthenticationResponse.fromObject = function fromObject(object) {
39725
+ if (object instanceof $root.VerifyOrderAddOnAuthenticationResponse)
39726
+ return object;
39727
+ var message = new $root.VerifyOrderAddOnAuthenticationResponse();
39728
+ switch (object.status) {
39729
+ case "UNKNOWN_CODE":
39730
+ case 0:
39731
+ message.status = 0;
39732
+ break;
39733
+ case "OK":
39734
+ case 200:
39735
+ message.status = 200;
39736
+ break;
39737
+ case "BAD_REQUEST":
39738
+ case 400:
39739
+ message.status = 400;
39740
+ break;
39741
+ case "UNAUTHORIZED":
39742
+ case 401:
39743
+ message.status = 401;
39744
+ break;
39745
+ case "FORBIDDEN":
39746
+ case 403:
39747
+ message.status = 403;
39748
+ break;
39749
+ case "UNPROCESSABLE_ENTITY":
39750
+ case 422:
39751
+ message.status = 422;
39752
+ break;
39753
+ case "NOT_FOUND":
39754
+ case 404:
39755
+ message.status = 404;
39756
+ break;
39757
+ case "INTERNAL_SERVER_ERROR":
39758
+ case 500:
39759
+ message.status = 500;
39760
+ break;
39761
+ case "GATEWAY_TIMEOUT":
39762
+ case 504:
39763
+ message.status = 504;
39764
+ break;
39765
+ }
39766
+ if (object.errors) {
39767
+ if (!Array.isArray(object.errors))
39768
+ throw TypeError(".VerifyOrderAddOnAuthenticationResponse.errors: array expected");
39769
+ message.errors = [];
39770
+ for (var i = 0; i < object.errors.length; ++i) {
39771
+ if (typeof object.errors[i] !== "object")
39772
+ throw TypeError(".VerifyOrderAddOnAuthenticationResponse.errors: object expected");
39773
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
39774
+ }
39775
+ }
39776
+ if (object.user != null) {
39777
+ if (typeof object.user !== "object")
39778
+ throw TypeError(".VerifyOrderAddOnAuthenticationResponse.user: object expected");
39779
+ message.user = $root.User.fromObject(object.user);
39780
+ }
39781
+ if (object.token != null)
39782
+ message.token = String(object.token);
39783
+ return message;
39784
+ };
39785
+
39786
+ /**
39787
+ * Creates a plain object from a VerifyOrderAddOnAuthenticationResponse message. Also converts values to other types if specified.
39788
+ * @function toObject
39789
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39790
+ * @static
39791
+ * @param {VerifyOrderAddOnAuthenticationResponse} message VerifyOrderAddOnAuthenticationResponse
39792
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39793
+ * @returns {Object.<string,*>} Plain object
39794
+ */
39795
+ VerifyOrderAddOnAuthenticationResponse.toObject = function toObject(message, options) {
39796
+ if (!options)
39797
+ options = {};
39798
+ var object = {};
39799
+ if (options.arrays || options.defaults)
39800
+ object.errors = [];
39801
+ if (options.defaults) {
39802
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
39803
+ object.user = null;
39804
+ object.token = "";
39805
+ }
39806
+ if (message.status != null && message.hasOwnProperty("status"))
39807
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
39808
+ if (message.errors && message.errors.length) {
39809
+ object.errors = [];
39810
+ for (var j = 0; j < message.errors.length; ++j)
39811
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
39812
+ }
39813
+ if (message.user != null && message.hasOwnProperty("user"))
39814
+ object.user = $root.User.toObject(message.user, options);
39815
+ if (message.token != null && message.hasOwnProperty("token"))
39816
+ object.token = message.token;
39817
+ return object;
39818
+ };
39819
+
39820
+ /**
39821
+ * Converts this VerifyOrderAddOnAuthenticationResponse to JSON.
39822
+ * @function toJSON
39823
+ * @memberof VerifyOrderAddOnAuthenticationResponse
39824
+ * @instance
39825
+ * @returns {Object.<string,*>} JSON object
39826
+ */
39827
+ VerifyOrderAddOnAuthenticationResponse.prototype.toJSON = function toJSON() {
39828
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39829
+ };
39830
+
39831
+ return VerifyOrderAddOnAuthenticationResponse;
39832
+ })();
39833
+
38933
39834
  $root.FindOrderByEmailRequest = (function() {
38934
39835
 
38935
39836
  /**
@@ -54252,6 +55153,72 @@ $root.OrderService = (function() {
54252
55153
  * @variation 2
54253
55154
  */
54254
55155
 
55156
+ /**
55157
+ * Callback as used by {@link OrderService#sendOrderAddOnAuthentication}.
55158
+ * @memberof OrderService
55159
+ * @typedef sendOrderAddOnAuthenticationCallback
55160
+ * @type {function}
55161
+ * @param {Error|null} error Error, if any
55162
+ * @param {SendOrderAddOnAuthenticationResponse} [response] SendOrderAddOnAuthenticationResponse
55163
+ */
55164
+
55165
+ /**
55166
+ * Calls sendOrderAddOnAuthentication.
55167
+ * @function sendOrderAddOnAuthentication
55168
+ * @memberof OrderService
55169
+ * @instance
55170
+ * @param {IOrderAddOnAuthenticationRequest} request OrderAddOnAuthenticationRequest message or plain object
55171
+ * @param {OrderService.sendOrderAddOnAuthenticationCallback} callback Node-style callback called with the error, if any, and SendOrderAddOnAuthenticationResponse
55172
+ * @returns {undefined}
55173
+ * @variation 1
55174
+ */
55175
+ Object.defineProperty(OrderService.prototype.sendOrderAddOnAuthentication = function sendOrderAddOnAuthentication(request, callback) {
55176
+ return this.rpcCall(sendOrderAddOnAuthentication, $root.OrderAddOnAuthenticationRequest, $root.SendOrderAddOnAuthenticationResponse, request, callback);
55177
+ }, "name", { value: "sendOrderAddOnAuthentication" });
55178
+
55179
+ /**
55180
+ * Calls sendOrderAddOnAuthentication.
55181
+ * @function sendOrderAddOnAuthentication
55182
+ * @memberof OrderService
55183
+ * @instance
55184
+ * @param {IOrderAddOnAuthenticationRequest} request OrderAddOnAuthenticationRequest message or plain object
55185
+ * @returns {Promise<SendOrderAddOnAuthenticationResponse>} Promise
55186
+ * @variation 2
55187
+ */
55188
+
55189
+ /**
55190
+ * Callback as used by {@link OrderService#verifyOrderAddOnAuthentication}.
55191
+ * @memberof OrderService
55192
+ * @typedef verifyOrderAddOnAuthenticationCallback
55193
+ * @type {function}
55194
+ * @param {Error|null} error Error, if any
55195
+ * @param {VerifyOrderAddOnAuthenticationResponse} [response] VerifyOrderAddOnAuthenticationResponse
55196
+ */
55197
+
55198
+ /**
55199
+ * Calls verifyOrderAddOnAuthentication.
55200
+ * @function verifyOrderAddOnAuthentication
55201
+ * @memberof OrderService
55202
+ * @instance
55203
+ * @param {IOrderAddOnAuthenticationRequest} request OrderAddOnAuthenticationRequest message or plain object
55204
+ * @param {OrderService.verifyOrderAddOnAuthenticationCallback} callback Node-style callback called with the error, if any, and VerifyOrderAddOnAuthenticationResponse
55205
+ * @returns {undefined}
55206
+ * @variation 1
55207
+ */
55208
+ Object.defineProperty(OrderService.prototype.verifyOrderAddOnAuthentication = function verifyOrderAddOnAuthentication(request, callback) {
55209
+ return this.rpcCall(verifyOrderAddOnAuthentication, $root.OrderAddOnAuthenticationRequest, $root.VerifyOrderAddOnAuthenticationResponse, request, callback);
55210
+ }, "name", { value: "verifyOrderAddOnAuthentication" });
55211
+
55212
+ /**
55213
+ * Calls verifyOrderAddOnAuthentication.
55214
+ * @function verifyOrderAddOnAuthentication
55215
+ * @memberof OrderService
55216
+ * @instance
55217
+ * @param {IOrderAddOnAuthenticationRequest} request OrderAddOnAuthenticationRequest message or plain object
55218
+ * @returns {Promise<VerifyOrderAddOnAuthenticationResponse>} Promise
55219
+ * @variation 2
55220
+ */
55221
+
54255
55222
  /**
54256
55223
  * Callback as used by {@link OrderService#findOrderByEventId}.
54257
55224
  * @memberof OrderService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.412",
3
+ "version": "0.0.413",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@apollo/client": "^3.9.6",
20
20
  "@hapi/joi": "^17.1.1",
21
- "@sellout/utils": "^0.0.412",
21
+ "@sellout/utils": "^0.0.413",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "^0.0.29",
24
24
  "@types/zen-observable": "^0.8.7",
@@ -33,5 +33,5 @@
33
33
  "protobufjs": "^6.11.2",
34
34
  "typescript": "^4.9.5"
35
35
  },
36
- "gitHead": "ae9ceaf62ad2b61dfe56f6e18f1287f5c97052f7"
36
+ "gitHead": "ff0e11ba9d1a51fce3f7bb3eb89545a81fcb5a0c"
37
37
  }
@@ -0,0 +1,13 @@
1
+ import { gql } from "@apollo/client";
2
+
3
+ const mutation = gql`
4
+ mutation sendOrderAddOnAuthentication($orderId: String!, $eventId: String!) {
5
+ sendOrderAddOnAuthentication(orderId: $orderId, eventId: $eventId) {
6
+ ticketIds
7
+ }
8
+ }
9
+ `;
10
+
11
+ export default mutation;
12
+
13
+
@@ -0,0 +1,26 @@
1
+ import { gql } from "@apollo/client";
2
+
3
+ const mutation = gql`
4
+ mutation verifyOrderAddOnAuthentication(
5
+ $orderId: String!
6
+ $eventId: String!
7
+ $phoneVerificationToken: String!
8
+ ) {
9
+ verifyOrderAddOnAuthentication(
10
+ orderId: $orderId
11
+ eventId: $eventId
12
+ phoneVerificationToken: $phoneVerificationToken
13
+ ) {
14
+ token
15
+ user {
16
+ _id
17
+ email
18
+ firstName
19
+ lastName
20
+ phoneNumber
21
+ }
22
+ }
23
+ }
24
+ `;
25
+
26
+ export default mutation;
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  import "error.proto";
4
4
  import "common.proto";
5
+ import "user.proto";
5
6
 
6
7
  /****************************************************************************************
7
8
  Order Models
@@ -718,6 +719,26 @@ message FindOrderByIdResponse {
718
719
  Order order = 2;
719
720
  }
720
721
 
722
+ message OrderAddOnAuthenticationRequest {
723
+ string spanContext = 1;
724
+ string orderId = 2;
725
+ string eventId = 3;
726
+ string phoneVerificationToken = 4;
727
+ }
728
+
729
+ message SendOrderAddOnAuthenticationResponse {
730
+ StatusCode status = 1;
731
+ repeated Error errors = 2;
732
+ repeated string ticketIds = 3;
733
+ }
734
+
735
+ message VerifyOrderAddOnAuthenticationResponse {
736
+ StatusCode status = 1;
737
+ repeated Error errors = 2;
738
+ User user = 3;
739
+ string token = 4;
740
+ }
741
+
721
742
  message FindOrderByEmailRequest {
722
743
  string spanContext = 0;
723
744
  string email = 1;
@@ -1109,6 +1130,8 @@ service OrderService {
1109
1130
  rpc queryMobileCheckInOrders(QueryMobileCheckInOrdersRequest) returns (QueryMobileCheckInOrdersResponse) {}
1110
1131
  rpc findMobileCheckInOrder(FindMobileCheckInOrderRequest) returns (FindMobileCheckInOrderResponse) {}
1111
1132
  rpc findOrderById(FindOrderByIdRequest) returns (FindOrderByIdResponse) {}
1133
+ rpc sendOrderAddOnAuthentication(OrderAddOnAuthenticationRequest) returns (SendOrderAddOnAuthenticationResponse) {}
1134
+ rpc verifyOrderAddOnAuthentication(OrderAddOnAuthenticationRequest) returns (VerifyOrderAddOnAuthenticationResponse) {}
1112
1135
  rpc findOrderByEventId(FindOrderByEventIdRequest) returns (FindOrderByEventIdResponse) {}
1113
1136
  rpc eventOrderCount(FindOrderByEventIdRequest) returns (FindEventOrderCountResponse) {}
1114
1137
  rpc findOrderByFeeId(FindOrderByFeeIdRequest) returns (FindOrderByIdResponse) {}