@sellout/models 0.0.117 → 0.0.119

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.
@@ -18,6 +18,18 @@ const query = (0, graphql_tag_1.default) `
18
18
  phoneNumber
19
19
  }
20
20
  stripeCustomerId
21
+ stripeCustomer {
22
+ paymentMethods {
23
+ paymentMethodId
24
+ brand
25
+ last4
26
+ expMonth
27
+ expYear
28
+ funding
29
+ country
30
+ type
31
+ }
32
+ }
21
33
  analytics {
22
34
  label
23
35
  type
@@ -1 +1 @@
1
- {"version":3,"file":"customerProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"customerProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const query: import("graphql").DocumentNode;
2
+ export default query;
@@ -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 = (0, graphql_tag_1.default) `
8
+ query userProfilesAdmin($query: UserProfileQueryInput) {
9
+ userProfilesAdmin(query: $query) {
10
+ _id
11
+ userId
12
+ imageUrl
13
+ user {
14
+ _id
15
+ email
16
+ firstName
17
+ lastName
18
+ phoneNumber
19
+ __typename
20
+ }
21
+ stripeCustomerId
22
+ analytics {
23
+ label
24
+ type
25
+ interval
26
+ intervalOptions
27
+ coordinates {
28
+ x
29
+ y
30
+ __typename
31
+ }
32
+ segments {
33
+ label
34
+ type
35
+ coordinates {
36
+ x
37
+ y
38
+ __typename
39
+ }
40
+ __typename
41
+ }
42
+ __typename
43
+ }
44
+ __typename
45
+ }
46
+ }
47
+ `;
48
+ exports.default = query;
49
+ //# sourceMappingURL=userProfilesAdmin.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userProfilesAdmin.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userProfilesAdmin.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
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.117",
20
+ "@sellout/utils": "^0.0.119",
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": "6e6db193e907251426cbae10f2367e7e0ace5d63"
34
+ "gitHead": "355bb51ac8a0dbd9c69ed1a6ecc3765acfdf255e"
35
35
  }
@@ -14,6 +14,18 @@ const query = gql`
14
14
  phoneNumber
15
15
  }
16
16
  stripeCustomerId
17
+ stripeCustomer {
18
+ paymentMethods {
19
+ paymentMethodId
20
+ brand
21
+ last4
22
+ expMonth
23
+ expYear
24
+ funding
25
+ country
26
+ type
27
+ }
28
+ }
17
29
  analytics {
18
30
  label
19
31
  type
@@ -0,0 +1,45 @@
1
+ import gql from "graphql-tag";
2
+
3
+ const query = gql`
4
+ query userProfilesAdmin($query: UserProfileQueryInput) {
5
+ userProfilesAdmin(query: $query) {
6
+ _id
7
+ userId
8
+ imageUrl
9
+ user {
10
+ _id
11
+ email
12
+ firstName
13
+ lastName
14
+ phoneNumber
15
+ __typename
16
+ }
17
+ stripeCustomerId
18
+ analytics {
19
+ label
20
+ type
21
+ interval
22
+ intervalOptions
23
+ coordinates {
24
+ x
25
+ y
26
+ __typename
27
+ }
28
+ segments {
29
+ label
30
+ type
31
+ coordinates {
32
+ x
33
+ y
34
+ __typename
35
+ }
36
+ __typename
37
+ }
38
+ __typename
39
+ }
40
+ __typename
41
+ }
42
+ }
43
+ `;
44
+
45
+ export default query;