@sellout/models 0.0.73 → 0.0.75

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.
Files changed (59) hide show
  1. package/.dist/graphql/mutations/{registerStripeTerminalReader.js → resetPasswordInApp.mutation.js} +3 -3
  2. package/.dist/graphql/mutations/resetPasswordInApp.mutation.js.map +1 -0
  3. package/.dist/graphql/mutations/{createStripeSetupIntent.js → setUserOrgContextId.js} +5 -3
  4. package/.dist/graphql/mutations/setUserOrgContextId.js.map +1 -0
  5. package/.dist/graphql/queries/customerProfile.js +42 -0
  6. package/.dist/graphql/queries/customerProfile.js.map +1 -0
  7. package/.dist/graphql/queries/organization.query.js +49 -0
  8. package/.dist/graphql/queries/organization.query.js.map +1 -0
  9. package/.dist/graphql/queries/organizations.js +49 -0
  10. package/.dist/graphql/queries/organizations.js.map +1 -0
  11. package/.dist/interfaces/ISecondaryEmail.d.ts +4 -0
  12. package/.dist/interfaces/{IStripe.js → ISecondaryEmail.js} +1 -1
  13. package/.dist/interfaces/ISecondaryEmail.js.map +1 -0
  14. package/.dist/interfaces/IStripeSource.d.ts +1 -1
  15. package/.dist/schemas/SecondaryEmail.d.ts +12 -0
  16. package/.dist/schemas/SecondaryEmail.js +14 -0
  17. package/.dist/schemas/SecondaryEmail.js.map +1 -0
  18. package/.dist/sellout-proto.js +561 -0
  19. package/package.json +4 -4
  20. package/src/proto/role.proto +20 -4
  21. package/.dist/enums/PaymentMethodEnum.d.ts +0 -5
  22. package/.dist/enums/PaymentMethodEnum.js +0 -10
  23. package/.dist/enums/PaymentMethodEnum.js.map +0 -1
  24. package/.dist/graphql/mutations/createStripeSetupIntent.js.map +0 -1
  25. package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js +0 -21
  26. package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js.map +0 -1
  27. package/.dist/graphql/mutations/listStripeTerminalReaders.query.d.ts +0 -2
  28. package/.dist/graphql/mutations/listStripeTerminalReaders.query.js +0 -21
  29. package/.dist/graphql/mutations/listStripeTerminalReaders.query.js.map +0 -1
  30. package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.d.ts +0 -2
  31. package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js +0 -13
  32. package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js.map +0 -1
  33. package/.dist/graphql/mutations/registerStripeTerminalReader.d.ts +0 -2
  34. package/.dist/graphql/mutations/registerStripeTerminalReader.js.map +0 -1
  35. package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js +0 -15
  36. package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js.map +0 -1
  37. package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js +0 -15
  38. package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js.map +0 -1
  39. package/.dist/graphql/queries/metrics.query.js +0 -29
  40. package/.dist/graphql/queries/metrics.query.js.map +0 -1
  41. package/.dist/graphql/queries/metricsData.query.d.ts +0 -2
  42. package/.dist/graphql/queries/metricsData.query.js +0 -29
  43. package/.dist/graphql/queries/metricsData.query.js.map +0 -1
  44. package/.dist/interfaces/IMetricData.d.ts +0 -57
  45. package/.dist/interfaces/IMetricData.js +0 -70
  46. package/.dist/interfaces/IMetricData.js.map +0 -1
  47. package/.dist/interfaces/IStripe.d.ts +0 -9
  48. package/.dist/interfaces/IStripe.js.map +0 -1
  49. package/.dist/utils/MetricsUtil.d.ts +0 -7
  50. package/.dist/utils/MetricsUtil.js +0 -29
  51. package/.dist/utils/MetricsUtil.js.map +0 -1
  52. package/.dist/utils/fee-util-broken-but-why.d.ts +0 -8
  53. package/.dist/utils/fee-util-broken-but-why.js +0 -38
  54. package/.dist/utils/fee-util-broken-but-why.js.map +0 -1
  55. /package/.dist/graphql/mutations/{createStripeSetupIntent.d.ts → resetPasswordInApp.mutation.d.ts} +0 -0
  56. /package/.dist/graphql/mutations/{listStripeTerminalReaders.mutation.d.ts → setUserOrgContextId.d.ts} +0 -0
  57. /package/.dist/graphql/{mutations/verifyPhoneAuthentication.mutation.d.ts → queries/customerProfile.d.ts} +0 -0
  58. /package/.dist/graphql/{mutations/verifyUserPhoneAuthentication.d.ts → queries/organization.query.d.ts} +0 -0
  59. /package/.dist/graphql/queries/{metrics.query.d.ts → organizations.d.ts} +0 -0
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
7
  const mutation = graphql_tag_1.default `
8
- mutation registerStripeTerminalReader(label: String, registrationCode: String) {
9
- registerStripeTerminalReader(label: $label, registrationCode: $registrationCode)
8
+ mutation resetUserPasswordInApp($oldPassword: String!, $newPassword: String!) {
9
+ resetUserPasswordInApp(oldPassword: $oldPassword, newPassword: $newPassword)
10
10
  }
11
11
  `;
12
12
  exports.default = mutation;
13
- //# sourceMappingURL=registerStripeTerminalReader.js.map
13
+ //# sourceMappingURL=resetPasswordInApp.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resetPasswordInApp.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/resetPasswordInApp.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -5,9 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
7
  const mutation = graphql_tag_1.default `
8
- mutation createStripeSetupIntent {
9
- createStripeSetupIntent
8
+ mutation setUserOrgContextId($orgId: String) {
9
+ setUserOrgContextId(orgId: $orgId) {
10
+ token
11
+ }
10
12
  }
11
13
  `;
12
14
  exports.default = mutation;
13
- //# sourceMappingURL=createStripeSetupIntent.js.map
15
+ //# sourceMappingURL=setUserOrgContextId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setUserOrgContextId.js","sourceRoot":"","sources":["../../../src/graphql/mutations/setUserOrgContextId.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;CAMnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,42 @@
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 query = graphql_tag_1.default `
8
+ query userProfiles($query: UserProfileQueryInput) {
9
+ userProfiles(query: $query) {
10
+ _id
11
+ imageUrl
12
+ user {
13
+ _id
14
+ email
15
+ firstName
16
+ lastName
17
+ phoneNumber
18
+ phoneNumberVerifiedAt
19
+ }
20
+ metrics {
21
+ orgId
22
+ yearToDateValue
23
+ lifeTimeValue
24
+ createdAt
25
+ lifeTimeTicketsPurchased
26
+ lifeTimeUpgradesPurchased
27
+ }
28
+ stripeCustomerId
29
+ address {
30
+ address1
31
+ address2
32
+ city
33
+ state
34
+ zip
35
+ country
36
+ phone
37
+ }
38
+ }
39
+ }
40
+ `;
41
+ exports.default = query;
42
+ //# sourceMappingURL=customerProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerProfile.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,49 @@
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 query = graphql_tag_1.default `
8
+ query organizations {
9
+ organizations {
10
+ _id
11
+ orgName
12
+ orgUrls
13
+ orgLogoUrl
14
+ createdAt
15
+ address {
16
+ address1
17
+ address2
18
+ city
19
+ state
20
+ zip
21
+ country
22
+ }
23
+ user {
24
+ email
25
+ }
26
+ seating {
27
+ publicKey
28
+ secretKey
29
+ designerKey
30
+ }
31
+ webFlow {
32
+ sites {
33
+ name
34
+ webFlowId
35
+ enabled
36
+ createdAt
37
+ updatedAt
38
+ previewUrl
39
+ domains {
40
+ lastPublishedAt
41
+ name
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ `;
48
+ exports.default = query;
49
+ //# sourceMappingURL=organization.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/organization.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,49 @@
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 query = graphql_tag_1.default `
8
+ query organizations {
9
+ organizations {
10
+ _id
11
+ orgName
12
+ orgUrls
13
+ orgLogoUrl
14
+ createdAt
15
+ address {
16
+ address1
17
+ address2
18
+ city
19
+ state
20
+ zip
21
+ country
22
+ }
23
+ user {
24
+ email
25
+ }
26
+ seating {
27
+ publicKey
28
+ secretKey
29
+ designerKey
30
+ }
31
+ webFlow {
32
+ sites {
33
+ name
34
+ webFlowId
35
+ enabled
36
+ createdAt
37
+ updatedAt
38
+ previewUrl
39
+ domains {
40
+ lastPublishedAt
41
+ name
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ `;
48
+ exports.default = query;
49
+ //# sourceMappingURL=organizations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/graphql/queries/organizations.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ export default interface ISecondaryEmail {
2
+ email: string;
3
+ verifiedAt?: number;
4
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IStripe.js.map
3
+ //# sourceMappingURL=ISecondaryEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISecondaryEmail.js","sourceRoot":"","sources":["../../src/interfaces/ISecondaryEmail.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export default interface IStripePaymentMethod {
1
+ export default interface IStripeSource {
2
2
  sourceId: string;
3
3
  brand: string;
4
4
  last4: string;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ email: {
3
+ type: StringConstructor;
4
+ required: boolean;
5
+ };
6
+ verifiedAt: {
7
+ type: NumberConstructor;
8
+ required: boolean;
9
+ default: number;
10
+ };
11
+ };
12
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ email: {
5
+ type: String,
6
+ required: true,
7
+ },
8
+ verifiedAt: {
9
+ type: Number,
10
+ required: false,
11
+ default: 0,
12
+ },
13
+ };
14
+ //# sourceMappingURL=SecondaryEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondaryEmail.js","sourceRoot":"","sources":["../../src/schemas/SecondaryEmail.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;CACF,CAAC"}