@puzzlin/models 0.7.2 → 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.
@@ -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.2",
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",