@sellout/models 0.0.201 → 0.0.202-alpha.0

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.
@@ -5,8 +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 query = (0, graphql_tag_1.default) `
8
- query userProfilesAdmin($query: UserProfileQueryInput) {
9
- userProfilesAdmin(query: $query) {
8
+ query userProfilesAdmin(
9
+ $query: UserProfileQueryInput
10
+ $pagination: PaginationInput
11
+ ) {
12
+ userProfilesAdmin(query: $query, pagination: $pagination) {
10
13
  _id
11
14
  userId
12
15
  imageUrl
@@ -1 +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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -8,6 +8,7 @@ export declare enum PaginationTypes {
8
8
  CustomerOrders = "CustomerOrders",
9
9
  Events = "Events",
10
10
  Artists = "Artists",
11
- Venues = "Venues"
11
+ Venues = "Venues",
12
+ Customers = "Customers"
12
13
  }
13
14
  export declare type PaginationMap = Map<PaginationTypes, IPagination>;
@@ -9,5 +9,6 @@ var PaginationTypes;
9
9
  PaginationTypes["Events"] = "Events";
10
10
  PaginationTypes["Artists"] = "Artists";
11
11
  PaginationTypes["Venues"] = "Venues";
12
+ PaginationTypes["Customers"] = "Customers";
12
13
  })(PaginationTypes = exports.PaginationTypes || (exports.PaginationTypes = {}));
13
14
  //# sourceMappingURL=IPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IPagination.js","sourceRoot":"","sources":["../../src/interfaces/IPagination.ts"],"names":[],"mappings":";;;AAKA,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,8CAA2B,CAAA;IAC3B,oDAAiC,CAAA;IACjC,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;AACnB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B"}
1
+ {"version":3,"file":"IPagination.js","sourceRoot":"","sources":["../../src/interfaces/IPagination.ts"],"names":[],"mappings":";;;AAKA,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,8CAA2B,CAAA;IAC3B,oDAAiC,CAAA;IACjC,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;AACzB,CAAC,EARW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAQ1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.201",
3
+ "version": "0.0.202-alpha.0",
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.201",
20
+ "@sellout/utils": "^0.0.202-alpha.0",
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": "4172f8fb2ba3c22d5cae16599219e3e4ea7992bc"
34
+ "gitHead": "cdef344b4bd781f048e8e3e83ce68b59cba8e8fb"
35
35
  }
@@ -1,8 +1,11 @@
1
1
  import gql from "graphql-tag";
2
2
 
3
3
  const query = gql`
4
- query userProfilesAdmin($query: UserProfileQueryInput) {
5
- userProfilesAdmin(query: $query) {
4
+ query userProfilesAdmin(
5
+ $query: UserProfileQueryInput
6
+ $pagination: PaginationInput
7
+ ) {
8
+ userProfilesAdmin(query: $query, pagination: $pagination) {
6
9
  _id
7
10
  userId
8
11
  imageUrl
@@ -4,12 +4,13 @@ export default interface IPagination {
4
4
  }
5
5
 
6
6
  export enum PaginationTypes {
7
- Orders = 'Orders',
8
- EventOrders = 'EventOrders',
9
- CustomerOrders = 'CustomerOrders',
10
- Events = 'Events',
11
- Artists = 'Artists',
12
- Venues = 'Venues',
7
+ Orders = "Orders",
8
+ EventOrders = "EventOrders",
9
+ CustomerOrders = "CustomerOrders",
10
+ Events = "Events",
11
+ Artists = "Artists",
12
+ Venues = "Venues",
13
+ Customers = "Customers",
13
14
  }
14
15
 
15
16
  export type PaginationMap = Map<PaginationTypes, IPagination>;