@sellout/models 0.0.288 → 0.0.289
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/graphql/mutations/createOrganisation.mutation.js +5 -4
- package/.dist/graphql/mutations/createOrganisation.mutation.js.map +1 -1
- package/.dist/sellout-proto.js +22 -0
- package/package.json +3 -3
- package/src/graphql/mutations/createOrganisation.mutation.ts +5 -4
- package/src/proto/organization.proto +1 -0
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const client_1 = require("@apollo/client");
|
|
4
4
|
const mutation = (0, client_1.gql) `
|
|
5
|
-
mutation createOrganization {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
mutation createOrganization($orgName: String) {
|
|
6
|
+
createOrganization(orgName:$orgName) {
|
|
7
|
+
_id
|
|
8
|
+
__typename
|
|
9
9
|
}
|
|
10
|
+
}
|
|
10
11
|
`;
|
|
11
12
|
exports.default = mutation;
|
|
12
13
|
//# sourceMappingURL=createOrganisation.mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOrganisation.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createOrganisation.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA
|
|
1
|
+
{"version":3,"file":"createOrganisation.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createOrganisation.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;;CAOnB,CAAC;AACF,kBAAe,QAAQ,CAAC"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -70437,6 +70437,7 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70437
70437
|
* @interface ICreateOrganizationRequest
|
|
70438
70438
|
* @property {string|null} [spanContext] CreateOrganizationRequest spanContext
|
|
70439
70439
|
* @property {string|null} [userId] CreateOrganizationRequest userId
|
|
70440
|
+
* @property {string|null} [orgName] CreateOrganizationRequest orgName
|
|
70440
70441
|
*/
|
|
70441
70442
|
|
|
70442
70443
|
/**
|
|
@@ -70470,6 +70471,14 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70470
70471
|
*/
|
|
70471
70472
|
CreateOrganizationRequest.prototype.userId = "";
|
|
70472
70473
|
|
|
70474
|
+
/**
|
|
70475
|
+
* CreateOrganizationRequest orgName.
|
|
70476
|
+
* @member {string} orgName
|
|
70477
|
+
* @memberof CreateOrganizationRequest
|
|
70478
|
+
* @instance
|
|
70479
|
+
*/
|
|
70480
|
+
CreateOrganizationRequest.prototype.orgName = "";
|
|
70481
|
+
|
|
70473
70482
|
/**
|
|
70474
70483
|
* Creates a new CreateOrganizationRequest instance using the specified properties.
|
|
70475
70484
|
* @function create
|
|
@@ -70498,6 +70507,8 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70498
70507
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
70499
70508
|
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
70500
70509
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
70510
|
+
if (message.orgName != null && Object.hasOwnProperty.call(message, "orgName"))
|
|
70511
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
|
|
70501
70512
|
return writer;
|
|
70502
70513
|
};
|
|
70503
70514
|
|
|
@@ -70538,6 +70549,9 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70538
70549
|
case 1:
|
|
70539
70550
|
message.userId = reader.string();
|
|
70540
70551
|
break;
|
|
70552
|
+
case 2:
|
|
70553
|
+
message.orgName = reader.string();
|
|
70554
|
+
break;
|
|
70541
70555
|
default:
|
|
70542
70556
|
reader.skipType(tag & 7);
|
|
70543
70557
|
break;
|
|
@@ -70579,6 +70593,9 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70579
70593
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
70580
70594
|
if (!$util.isString(message.userId))
|
|
70581
70595
|
return "userId: string expected";
|
|
70596
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
70597
|
+
if (!$util.isString(message.orgName))
|
|
70598
|
+
return "orgName: string expected";
|
|
70582
70599
|
return null;
|
|
70583
70600
|
};
|
|
70584
70601
|
|
|
@@ -70598,6 +70615,8 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70598
70615
|
message.spanContext = String(object.spanContext);
|
|
70599
70616
|
if (object.userId != null)
|
|
70600
70617
|
message.userId = String(object.userId);
|
|
70618
|
+
if (object.orgName != null)
|
|
70619
|
+
message.orgName = String(object.orgName);
|
|
70601
70620
|
return message;
|
|
70602
70621
|
};
|
|
70603
70622
|
|
|
@@ -70617,11 +70636,14 @@ $root.CreateOrganizationRequest = (function() {
|
|
|
70617
70636
|
if (options.defaults) {
|
|
70618
70637
|
object.spanContext = "";
|
|
70619
70638
|
object.userId = "";
|
|
70639
|
+
object.orgName = "";
|
|
70620
70640
|
}
|
|
70621
70641
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
70622
70642
|
object.spanContext = message.spanContext;
|
|
70623
70643
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
70624
70644
|
object.userId = message.userId;
|
|
70645
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
70646
|
+
object.orgName = message.orgName;
|
|
70625
70647
|
return object;
|
|
70626
70648
|
};
|
|
70627
70649
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.289",
|
|
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.
|
|
21
|
+
"@sellout/utils": "^0.0.289",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"protobufjs": "^6.11.2",
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "bd57b2f2b6fa2ac850e0ef0465755bfee80fbd0f"
|
|
36
36
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { gql } from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
const mutation = gql`
|
|
4
|
-
mutation createOrganization {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
mutation createOrganization($orgName: String) {
|
|
5
|
+
createOrganization(orgName:$orgName) {
|
|
6
|
+
_id
|
|
7
|
+
__typename
|
|
8
8
|
}
|
|
9
|
+
}
|
|
9
10
|
`;
|
|
10
11
|
export default mutation;
|