@sellout/models 0.0.133 → 0.0.134

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("graphql").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
+ const mutation = (0, graphql_tag_1.default) `
8
+ mutation deleteSecondaryEmail($email: String!) {
9
+ deleteSecondaryEmail(email: $email) {
10
+ _id
11
+ firstName
12
+ lastName
13
+ phoneNumber
14
+ secondaryEmails
15
+ email
16
+ __typename
17
+ }
18
+ }
19
+ `;
20
+ exports.default = mutation;
21
+ //# sourceMappingURL=deleteSecondaryEmail.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteSecondaryEmail.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/deleteSecondaryEmail.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
7
  const mutation = (0, graphql_tag_1.default) `
8
8
  mutation generateOrderReport($query: OrderQueryInput) {
9
- generateOrderReport(query: $query)
9
+ generateOrderReport(query: $query) {
10
+ url
11
+ message
12
+ }
10
13
  }
11
14
  `;
12
15
  exports.default = mutation;
@@ -1 +1 @@
1
- {"version":3,"file":"generateOrderReport.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/generateOrderReport.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"generateOrderReport.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/generateOrderReport.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("graphql").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
+ const mutation = (0, graphql_tag_1.default) `
8
+ mutation makeSecondaryEmailPrimary($email: String!) {
9
+ makeSecondaryEmailPrimary(email: $email) {
10
+ _id
11
+ firstName
12
+ lastName
13
+ phoneNumber
14
+ secondaryEmails
15
+ email
16
+ __typename
17
+ }
18
+ }
19
+ `;
20
+ exports.default = mutation;
21
+ //# sourceMappingURL=makeSecondaryToPrimaryEmail.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeSecondaryToPrimaryEmail.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -21953,6 +21953,7 @@ $root.GenerateOrderReportResponse = (function() {
21953
21953
  * @property {StatusCode|null} [status] GenerateOrderReportResponse status
21954
21954
  * @property {Array.<IError>|null} [errors] GenerateOrderReportResponse errors
21955
21955
  * @property {string|null} [url] GenerateOrderReportResponse url
21956
+ * @property {string|null} [message] GenerateOrderReportResponse message
21956
21957
  */
21957
21958
 
21958
21959
  /**
@@ -21995,6 +21996,14 @@ $root.GenerateOrderReportResponse = (function() {
21995
21996
  */
21996
21997
  GenerateOrderReportResponse.prototype.url = "";
21997
21998
 
21999
+ /**
22000
+ * GenerateOrderReportResponse message.
22001
+ * @member {string} message
22002
+ * @memberof GenerateOrderReportResponse
22003
+ * @instance
22004
+ */
22005
+ GenerateOrderReportResponse.prototype.message = "";
22006
+
21998
22007
  /**
21999
22008
  * Creates a new GenerateOrderReportResponse instance using the specified properties.
22000
22009
  * @function create
@@ -22026,6 +22035,8 @@ $root.GenerateOrderReportResponse = (function() {
22026
22035
  $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
22027
22036
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
22028
22037
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
22038
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
22039
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
22029
22040
  return writer;
22030
22041
  };
22031
22042
 
@@ -22071,6 +22082,9 @@ $root.GenerateOrderReportResponse = (function() {
22071
22082
  case 2:
22072
22083
  message.url = reader.string();
22073
22084
  break;
22085
+ case 3:
22086
+ message.message = reader.string();
22087
+ break;
22074
22088
  default:
22075
22089
  reader.skipType(tag & 7);
22076
22090
  break;
@@ -22132,6 +22146,9 @@ $root.GenerateOrderReportResponse = (function() {
22132
22146
  if (message.url != null && message.hasOwnProperty("url"))
22133
22147
  if (!$util.isString(message.url))
22134
22148
  return "url: string expected";
22149
+ if (message.message != null && message.hasOwnProperty("message"))
22150
+ if (!$util.isString(message.message))
22151
+ return "message: string expected";
22135
22152
  return null;
22136
22153
  };
22137
22154
 
@@ -22193,6 +22210,8 @@ $root.GenerateOrderReportResponse = (function() {
22193
22210
  }
22194
22211
  if (object.url != null)
22195
22212
  message.url = String(object.url);
22213
+ if (object.message != null)
22214
+ message.message = String(object.message);
22196
22215
  return message;
22197
22216
  };
22198
22217
 
@@ -22214,6 +22233,7 @@ $root.GenerateOrderReportResponse = (function() {
22214
22233
  if (options.defaults) {
22215
22234
  object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
22216
22235
  object.url = "";
22236
+ object.message = "";
22217
22237
  }
22218
22238
  if (message.status != null && message.hasOwnProperty("status"))
22219
22239
  object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
@@ -22224,6 +22244,8 @@ $root.GenerateOrderReportResponse = (function() {
22224
22244
  }
22225
22245
  if (message.url != null && message.hasOwnProperty("url"))
22226
22246
  object.url = message.url;
22247
+ if (message.message != null && message.hasOwnProperty("message"))
22248
+ object.message = message.message;
22227
22249
  return object;
22228
22250
  };
22229
22251
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
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.133",
20
+ "@sellout/utils": "^0.0.134",
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": "6414cdaf4299b6b909a3d4c3017c3f8030ddf48b"
34
+ "gitHead": "bcfbc47dc782dd312597d7ba7c6d7d13d2d93ebe"
35
35
  }
@@ -1,9 +1,12 @@
1
- import gql from 'graphql-tag';
1
+ import gql from "graphql-tag";
2
2
 
3
3
  const mutation = gql`
4
4
  mutation generateOrderReport($query: OrderQueryInput) {
5
- generateOrderReport(query: $query)
5
+ generateOrderReport(query: $query) {
6
+ url
7
+ message
8
+ }
6
9
  }
7
10
  `;
8
11
 
9
- export default mutation;
12
+ export default mutation;
@@ -292,6 +292,7 @@ message GenerateOrderReportResponse {
292
292
  StatusCode status = 0;
293
293
  repeated Error errors = 1;
294
294
  string url = 2;
295
+ string message = 3;
295
296
  }
296
297
 
297
298
  /****************************************************************************************