@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
@@ -2,5 +2,4 @@ export * from './inputs';
2
2
  export * from './objects';
3
3
  export * from './payloads';
4
4
  export * from './types';
5
- export * from './utils';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -18,5 +18,4 @@ __exportStar(require("./inputs"), exports);
18
18
  __exportStar(require("./objects"), exports);
19
19
  __exportStar(require("./payloads"), exports);
20
20
  __exportStar(require("./types"), exports);
21
- __exportStar(require("./utils"), exports);
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB"}
@@ -1,5 +1,6 @@
1
1
  export declare class SendLinkToUpdatePasswordInput {
2
2
  email: string;
3
3
  redirectUrl: URL;
4
+ tokenQueryParam: string;
4
5
  }
5
6
  //# sourceMappingURL=send-link-to-update-password.input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-link-to-update-password.input.d.ts","sourceRoot":"","sources":["../../../src/auth/inputs/send-link-to-update-password.input.ts"],"names":[],"mappings":"AAIA,qBACa,6BAA6B;IAExC,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,EAAE,GAAG,CAAC;CAClB"}
1
+ {"version":3,"file":"send-link-to-update-password.input.d.ts","sourceRoot":"","sources":["../../../src/auth/inputs/send-link-to-update-password.input.ts"],"names":[],"mappings":"AAGA,qBACa,6BAA6B;IAExC,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,EAAE,GAAG,CAAC;IAKjB,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -10,7 +10,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SendLinkToUpdatePasswordInput = void 0;
13
- const utils_1 = require("../utils");
14
13
  const graphql_1 = require("@nestjs/graphql");
15
14
  const graphql_scalars_1 = require("graphql-scalars");
16
15
  let SendLinkToUpdatePasswordInput = exports.SendLinkToUpdatePasswordInput = class SendLinkToUpdatePasswordInput {
@@ -21,10 +20,16 @@ __decorate([
21
20
  ], SendLinkToUpdatePasswordInput.prototype, "email", void 0);
22
21
  __decorate([
23
22
  (0, graphql_1.Field)(() => graphql_scalars_1.URLResolver, {
24
- description: `URL to redirect to for updating a user password including a "${utils_1.TOKEN_PLACEHOLDER}" placeholder.`,
23
+ description: 'URL to redirect to for updating a user password.',
25
24
  }),
26
25
  __metadata("design:type", URL)
27
26
  ], SendLinkToUpdatePasswordInput.prototype, "redirectUrl", void 0);
27
+ __decorate([
28
+ (0, graphql_1.Field)(() => String, {
29
+ description: 'Query param key to inject a token into.',
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], SendLinkToUpdatePasswordInput.prototype, "tokenQueryParam", void 0);
28
33
  exports.SendLinkToUpdatePasswordInput = SendLinkToUpdatePasswordInput = __decorate([
29
34
  (0, graphql_1.InputType)()
30
35
  ], SendLinkToUpdatePasswordInput);
@@ -1 +1 @@
1
- {"version":3,"file":"send-link-to-update-password.input.js","sourceRoot":"","sources":["../../../src/auth/inputs/send-link-to-update-password.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAA6C;AAC7C,6CAAmD;AACnD,qDAAoE;AAG7D,IAAM,6BAA6B,2CAAnC,MAAM,6BAA6B;CAQzC,CAAA;AANC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAoB,CAAC;;4DACpB;AAKd;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAW,EAAE;QACxB,WAAW,EAAE,gEAAgE,yBAAiB,gBAAgB;KAC/G,CAAC;8BACW,GAAG;kEAAC;wCAPN,6BAA6B;IADzC,IAAA,mBAAS,GAAE;GACC,6BAA6B,CAQzC"}
1
+ {"version":3,"file":"send-link-to-update-password.input.js","sourceRoot":"","sources":["../../../src/auth/inputs/send-link-to-update-password.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAAoE;AAG7D,IAAM,6BAA6B,2CAAnC,MAAM,6BAA6B;CAazC,CAAA;AAXC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAoB,CAAC;;4DACpB;AAKd;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAW,EAAE;QACxB,WAAW,EAAE,kDAAkD;KAChE,CAAC;8BACW,GAAG;kEAAC;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,yCAAyC;KACvD,CAAC;;sEACsB;wCAZb,6BAA6B;IADzC,IAAA,mBAAS,GAAE;GACC,6BAA6B,CAazC"}
@@ -1,5 +1,6 @@
1
1
  import { ClaimEegRecordingInput } from './claim-eeg-recording.input';
2
2
  export declare class SendEegRecordingClaimRequestInput extends ClaimEegRecordingInput {
3
3
  redirectUrl: URL;
4
+ tokenQueryParam: string;
4
5
  }
5
6
  //# sourceMappingURL=send-eeg-recording-claim-request.input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-eeg-recording-claim-request.input.d.ts","sourceRoot":"","sources":["../../../src/eeg-recordings/inputs/send-eeg-recording-claim-request.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAKrE,qBACa,iCAAkC,SAAQ,sBAAsB;IAI3E,WAAW,EAAE,GAAG,CAAC;CAClB"}
1
+ {"version":3,"file":"send-eeg-recording-claim-request.input.d.ts","sourceRoot":"","sources":["../../../src/eeg-recordings/inputs/send-eeg-recording-claim-request.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,qBACa,iCAAkC,SAAQ,sBAAsB;IAI3E,WAAW,EAAE,GAAG,CAAC;IAKjB,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -11,17 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SendEegRecordingClaimRequestInput = void 0;
13
13
  const claim_eeg_recording_input_1 = require("./claim-eeg-recording.input");
14
- const auth_1 = require("../../auth");
15
14
  const graphql_1 = require("@nestjs/graphql");
16
15
  const graphql_scalars_1 = require("graphql-scalars");
17
16
  let SendEegRecordingClaimRequestInput = exports.SendEegRecordingClaimRequestInput = class SendEegRecordingClaimRequestInput extends claim_eeg_recording_input_1.ClaimEegRecordingInput {
18
17
  };
19
18
  __decorate([
20
19
  (0, graphql_1.Field)(() => graphql_scalars_1.URLResolver, {
21
- description: `URL to redirect to for claiming a recording including a "${auth_1.TOKEN_PLACEHOLDER}" placeholder.`,
20
+ description: 'URL to redirect to for claiming a recording.',
22
21
  }),
23
22
  __metadata("design:type", URL)
24
23
  ], SendEegRecordingClaimRequestInput.prototype, "redirectUrl", void 0);
24
+ __decorate([
25
+ (0, graphql_1.Field)(() => String, {
26
+ description: 'Query param key to inject a token.',
27
+ }),
28
+ __metadata("design:type", String)
29
+ ], SendEegRecordingClaimRequestInput.prototype, "tokenQueryParam", void 0);
25
30
  exports.SendEegRecordingClaimRequestInput = SendEegRecordingClaimRequestInput = __decorate([
26
31
  (0, graphql_1.InputType)()
27
32
  ], SendEegRecordingClaimRequestInput);
@@ -1 +1 @@
1
- {"version":3,"file":"send-eeg-recording-claim-request.input.js","sourceRoot":"","sources":["../../../src/eeg-recordings/inputs/send-eeg-recording-claim-request.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAqE;AACrE,iCAA2C;AAC3C,6CAAmD;AACnD,qDAA8C;AAGvC,IAAM,iCAAiC,+CAAvC,MAAM,iCAAkC,SAAQ,kDAAsB;CAK5E,CAAA;AADC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAW,EAAE;QACxB,WAAW,EAAE,4DAA4D,wBAAiB,gBAAgB;KAC3G,CAAC;8BACW,GAAG;sEAAC;4CAJN,iCAAiC;IAD7C,IAAA,mBAAS,GAAE;GACC,iCAAiC,CAK7C"}
1
+ {"version":3,"file":"send-eeg-recording-claim-request.input.js","sourceRoot":"","sources":["../../../src/eeg-recordings/inputs/send-eeg-recording-claim-request.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAqE;AACrE,6CAAmD;AACnD,qDAA8C;AAGvC,IAAM,iCAAiC,+CAAvC,MAAM,iCAAkC,SAAQ,kDAAsB;CAU5E,CAAA;AANC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAW,EAAE;QACxB,WAAW,EAAE,8CAA8C;KAC5D,CAAC;8BACW,GAAG;sEAAC;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,oCAAoC;KAClD,CAAC;;0EACsB;4CATb,iCAAiC;IAD7C,IAAA,mBAAS,GAAE;GACC,iCAAiC,CAU7C"}
@@ -1,7 +1,8 @@
1
1
  import { CreateSubjectInput } from './create-subject.input';
2
- import { NodeInput } from '../../utils';
2
+ import { FileUpload, NodeInput } from '../../utils';
3
3
  declare const UpdateSubjectInput_base: import("@nestjs/common").Type<Partial<CreateSubjectInput> & NodeInput>;
4
4
  export declare class UpdateSubjectInput extends UpdateSubjectInput_base {
5
+ avatar: FileUpload;
5
6
  }
6
7
  export {};
7
8
  //# sourceMappingURL=update-subject.input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-subject.input.d.ts","sourceRoot":"","sources":["../../../src/subjects/inputs/update-subject.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;AAGpC,qBACa,kBAAmB,SAAQ,uBAA4D;CAAG"}
1
+ {"version":3,"file":"update-subject.input.d.ts","sourceRoot":"","sources":["../../../src/subjects/inputs/update-subject.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;AAIhD,qBACa,kBAAmB,SAAQ,uBAA4D;IAElG,MAAM,EAAE,UAAU,CAAC;CACpB"}
@@ -5,13 +5,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
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
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
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
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
12
  exports.UpdateSubjectInput = void 0;
10
13
  const create_subject_input_1 = require("./create-subject.input");
11
14
  const utils_1 = require("../../utils");
12
15
  const graphql_1 = require("@nestjs/graphql");
16
+ const Upload = require("graphql-upload/GraphQLUpload.js");
13
17
  let UpdateSubjectInput = exports.UpdateSubjectInput = class UpdateSubjectInput extends (0, graphql_1.IntersectionType)((0, graphql_1.PartialType)(create_subject_input_1.CreateSubjectInput), utils_1.NodeInput) {
14
18
  };
19
+ __decorate([
20
+ (0, graphql_1.Field)(() => Upload),
21
+ __metadata("design:type", Object)
22
+ ], UpdateSubjectInput.prototype, "avatar", void 0);
15
23
  exports.UpdateSubjectInput = UpdateSubjectInput = __decorate([
16
24
  (0, graphql_1.InputType)()
17
25
  ], UpdateSubjectInput);
@@ -1 +1 @@
1
- {"version":3,"file":"update-subject.input.js","sourceRoot":"","sources":["../../../src/subjects/inputs/update-subject.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iEAA4D;AAC5D,mCAAoC;AACpC,6CAA2E;AAGpE,IAAM,kBAAkB,gCAAxB,MAAM,kBAAmB,SAAQ,IAAA,0BAAgB,EAAC,IAAA,qBAAW,EAAC,yCAAkB,CAAC,EAAE,iBAAS,CAAC;CAAG,CAAA;6BAA1F,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAAwE"}
1
+ {"version":3,"file":"update-subject.input.js","sourceRoot":"","sources":["../../../src/subjects/inputs/update-subject.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA4D;AAC5D,mCAAgD;AAChD,6CAAkF;AAClF,0DAA0D;AAGnD,IAAM,kBAAkB,gCAAxB,MAAM,kBAAmB,SAAQ,IAAA,0BAAgB,EAAC,IAAA,qBAAW,EAAC,yCAAkB,CAAC,EAAE,iBAAS,CAAC;CAGnG,CAAA;AADC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kDACD;6BAFR,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B"}