@puzzlin/models 0.7.1 → 0.8.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.
Files changed (34) hide show
  1. package/dist/auth/index.d.ts +0 -1
  2. package/dist/auth/index.d.ts.map +1 -1
  3. package/dist/auth/index.js +0 -1
  4. package/dist/auth/index.js.map +1 -1
  5. package/dist/auth/inputs/send-link-to-update-password.input.d.ts +1 -0
  6. package/dist/auth/inputs/send-link-to-update-password.input.d.ts.map +1 -1
  7. package/dist/auth/inputs/send-link-to-update-password.input.js +7 -2
  8. package/dist/auth/inputs/send-link-to-update-password.input.js.map +1 -1
  9. package/dist/eeg-recordings/inputs/send-eeg-recording-claim-request.input.d.ts +1 -0
  10. package/dist/eeg-recordings/inputs/send-eeg-recording-claim-request.input.d.ts.map +1 -1
  11. package/dist/eeg-recordings/inputs/send-eeg-recording-claim-request.input.js +7 -2
  12. package/dist/eeg-recordings/inputs/send-eeg-recording-claim-request.input.js.map +1 -1
  13. package/dist/subjects/inputs/update-subject.input.d.ts +2 -1
  14. package/dist/subjects/inputs/update-subject.input.d.ts.map +1 -1
  15. package/dist/subjects/inputs/update-subject.input.js +8 -0
  16. package/dist/subjects/inputs/update-subject.input.js.map +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/utils/inputs/file.input.d.ts +12 -0
  19. package/dist/utils/inputs/file.input.d.ts.map +1 -0
  20. package/dist/utils/inputs/file.input.js +24 -0
  21. package/dist/utils/inputs/file.input.js.map +1 -0
  22. package/dist/utils/inputs/index.d.ts +1 -0
  23. package/dist/utils/inputs/index.d.ts.map +1 -1
  24. package/dist/utils/inputs/index.js +1 -0
  25. package/dist/utils/inputs/index.js.map +1 -1
  26. package/package.json +4 -2
  27. package/dist/auth/utils/constants.d.ts +0 -3
  28. package/dist/auth/utils/constants.d.ts.map +0 -1
  29. package/dist/auth/utils/constants.js +0 -6
  30. package/dist/auth/utils/constants.js.map +0 -1
  31. package/dist/auth/utils/index.d.ts +0 -2
  32. package/dist/auth/utils/index.d.ts.map +0 -1
  33. package/dist/auth/utils/index.js +0 -18
  34. package/dist/auth/utils/index.js.map +0 -1
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" />
2
+ import { ReadStream } from 'fs';
3
+ export interface FileUpload {
4
+ filename: string;
5
+ mimetype: string;
6
+ encoding: string;
7
+ createReadStream: () => ReadStream;
8
+ }
9
+ export declare class FileInput {
10
+ file: FileUpload;
11
+ }
12
+ //# sourceMappingURL=file.input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.input.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/file.input.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGhC,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,UAAU,CAAC;CACpC;AAED,qBACa,SAAS;IAEpB,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FileInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const Upload = require("graphql-upload/GraphQLUpload.js");
15
+ let FileInput = exports.FileInput = class FileInput {
16
+ };
17
+ __decorate([
18
+ (0, graphql_1.Field)(() => Upload),
19
+ __metadata("design:type", Object)
20
+ ], FileInput.prototype, "file", void 0);
21
+ exports.FileInput = FileInput = __decorate([
22
+ (0, graphql_1.InputType)()
23
+ ], FileInput);
24
+ //# sourceMappingURL=file.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.input.js","sourceRoot":"","sources":["../../../src/utils/inputs/file.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AAEvD,0DAA0D;AAUnD,IAAM,SAAS,uBAAf,MAAM,SAAS;CAGrB,CAAA;AADC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACH;oBAFN,SAAS;IADrB,IAAA,mBAAS,GAAE;GACC,SAAS,CAGrB"}
@@ -1,2 +1,3 @@
1
+ export * from './file.input';
1
2
  export * from './node.input';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./file.input"), exports);
17
18
  __exportStar(require("./node.input"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puzzlin/models",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Shared models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,9 +18,11 @@
18
18
  "@nestjs/graphql": "^11.0.6",
19
19
  "@puzzlin/enums": "^0.5.0",
20
20
  "class-validator": "^0.14.0",
21
- "graphql-scalars": "^1.22.2"
21
+ "graphql-scalars": "^1.22.2",
22
+ "graphql-upload": "^14.0.0"
22
23
  },
23
24
  "devDependencies": {
25
+ "@types/graphql-upload": "^8.0.12",
24
26
  "@types/node": "^20.4.1",
25
27
  "rimraf": "^5.0.1",
26
28
  "tsc-alias": "^1.8.7",
@@ -1,3 +0,0 @@
1
- /** Token placeholder used for redirect URLs. */
2
- export declare const TOKEN_PLACEHOLDER = "{{token}}";
3
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/auth/utils/constants.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,cAAc,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TOKEN_PLACEHOLDER = void 0;
4
- /** Token placeholder used for redirect URLs. */
5
- exports.TOKEN_PLACEHOLDER = '{{token}}';
6
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/auth/utils/constants.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AACnC,QAAA,iBAAiB,GAAG,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './constants';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}