@puzzlin/models 1.3.0 → 1.5.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.
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/places/args/index.d.ts +3 -0
- package/dist/models/places/args/index.d.ts.map +1 -0
- package/dist/models/places/args/index.js +19 -0
- package/dist/models/places/args/index.js.map +1 -0
- package/dist/models/places/args/place-details.args.d.ts +6 -0
- package/dist/models/places/args/place-details.args.d.ts.map +1 -0
- package/dist/models/places/args/place-details.args.js +29 -0
- package/dist/models/places/args/place-details.args.js.map +1 -0
- package/dist/models/places/args/place-predictions.args.d.ts +6 -0
- package/dist/models/places/args/place-predictions.args.d.ts.map +1 -0
- package/dist/models/places/args/place-predictions.args.js +31 -0
- package/dist/models/places/args/place-predictions.args.js.map +1 -0
- package/dist/models/places/index.d.ts +3 -0
- package/dist/models/places/index.d.ts.map +1 -0
- package/dist/models/places/index.js +19 -0
- package/dist/models/places/index.js.map +1 -0
- package/dist/models/places/objects/index.d.ts +3 -0
- package/dist/models/places/objects/index.d.ts.map +1 -0
- package/dist/models/places/objects/index.js +19 -0
- package/dist/models/places/objects/index.js.map +1 -0
- package/dist/models/places/objects/place-details.object.d.ts +12 -0
- package/dist/models/places/objects/place-details.object.d.ts.map +1 -0
- package/dist/models/places/objects/place-details.object.js +72 -0
- package/dist/models/places/objects/place-details.object.js.map +1 -0
- package/dist/models/places/objects/place-prediction.object.d.ts +9 -0
- package/dist/models/places/objects/place-prediction.object.d.ts.map +1 -0
- package/dist/models/places/objects/place-prediction.object.js +48 -0
- package/dist/models/places/objects/place-prediction.object.js.map +1 -0
- package/dist/models/users/inputs/create-user-place.input.d.ts +7 -0
- package/dist/models/users/inputs/create-user-place.input.d.ts.map +1 -0
- package/dist/models/users/inputs/create-user-place.input.js +25 -0
- package/dist/models/users/inputs/create-user-place.input.js.map +1 -0
- package/dist/models/users/inputs/create-user-profile.input.d.ts +7 -0
- package/dist/models/users/inputs/create-user-profile.input.d.ts.map +1 -0
- package/dist/models/users/inputs/create-user-profile.input.js +38 -0
- package/dist/models/users/inputs/create-user-profile.input.js.map +1 -0
- package/dist/models/users/inputs/create-user.input.d.ts +2 -0
- package/dist/models/users/inputs/create-user.input.d.ts.map +1 -1
- package/dist/models/users/inputs/create-user.input.js +7 -0
- package/dist/models/users/inputs/create-user.input.js.map +1 -1
- package/dist/models/users/inputs/index.d.ts +6 -2
- package/dist/models/users/inputs/index.d.ts.map +1 -1
- package/dist/models/users/inputs/index.js +6 -2
- package/dist/models/users/inputs/index.js.map +1 -1
- package/dist/models/users/inputs/update-user-place.input.d.ts +4 -0
- package/dist/models/users/inputs/update-user-place.input.d.ts.map +1 -0
- package/dist/models/users/inputs/update-user-place.input.js +17 -0
- package/dist/models/users/inputs/update-user-place.input.js.map +1 -0
- package/dist/models/users/inputs/update-user-profile.input.d.ts +9 -0
- package/dist/models/users/inputs/update-user-profile.input.d.ts.map +1 -0
- package/dist/models/users/inputs/update-user-profile.input.js +28 -0
- package/dist/models/users/inputs/update-user-profile.input.js.map +1 -0
- package/dist/models/users/inputs/update-user.input.d.ts +5 -2
- package/dist/models/users/inputs/update-user.input.d.ts.map +1 -1
- package/dist/models/users/inputs/update-user.input.js +15 -1
- package/dist/models/users/inputs/update-user.input.js.map +1 -1
- package/dist/models/users/objects/index.d.ts +3 -1
- package/dist/models/users/objects/index.d.ts.map +1 -1
- package/dist/models/users/objects/index.js +3 -1
- package/dist/models/users/objects/index.js.map +1 -1
- package/dist/models/users/objects/user-place.object.d.ts +8 -0
- package/dist/models/users/objects/user-place.object.d.ts.map +1 -0
- package/dist/models/users/objects/user-place.object.js +28 -0
- package/dist/models/users/objects/user-place.object.js.map +1 -0
- package/dist/models/users/objects/user-profile.object.d.ts +10 -0
- package/dist/models/users/objects/user-profile.object.d.ts.map +1 -0
- package/dist/models/users/objects/user-profile.object.js +39 -0
- package/dist/models/users/objects/user-profile.object.js.map +1 -0
- package/dist/models/users/objects/user.object.d.ts +2 -0
- package/dist/models/users/objects/user.object.d.ts.map +1 -1
- package/dist/models/users/objects/user.object.js +5 -0
- package/dist/models/users/objects/user.object.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NodeInput } from '../../../utils';
|
|
2
|
+
import { CreateUserProfileInput } from './create-user-profile.input';
|
|
3
|
+
import { UpdateUserPlaceInput } from './update-user-place.input';
|
|
4
|
+
declare const UpdateUserProfileInput_base: import("@nestjs/common").Type<NodeInput & Partial<Omit<CreateUserProfileInput, "place">>>;
|
|
5
|
+
export declare class UpdateUserProfileInput extends UpdateUserProfileInput_base {
|
|
6
|
+
place?: UpdateUserPlaceInput;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=update-user-profile.input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-profile.input.d.ts","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user-profile.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;AAEjE,qBACa,sBAAuB,SAAQ,2BAG3C;IAIC,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.UpdateUserProfileInput = void 0;
|
|
13
|
+
const utils_1 = require("../../../utils");
|
|
14
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
15
|
+
const create_user_profile_input_1 = require("./create-user-profile.input");
|
|
16
|
+
const update_user_place_input_1 = require("./update-user-place.input");
|
|
17
|
+
let UpdateUserProfileInput = exports.UpdateUserProfileInput = class UpdateUserProfileInput extends (0, graphql_1.IntersectionType)(utils_1.NodeInput, (0, graphql_1.PartialType)((0, graphql_1.OmitType)(create_user_profile_input_1.CreateUserProfileInput, ['place']))) {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => update_user_place_input_1.UpdateUserPlaceInput, {
|
|
21
|
+
nullable: true,
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", update_user_place_input_1.UpdateUserPlaceInput)
|
|
24
|
+
], UpdateUserProfileInput.prototype, "place", void 0);
|
|
25
|
+
exports.UpdateUserProfileInput = UpdateUserProfileInput = __decorate([
|
|
26
|
+
(0, graphql_1.InputType)()
|
|
27
|
+
], UpdateUserProfileInput);
|
|
28
|
+
//# sourceMappingURL=update-user-profile.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-profile.input.js","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user-profile.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,6CAA4F;AAC5F,2EAAqE;AACrE,uEAAiE;AAG1D,IAAM,sBAAsB,oCAA5B,MAAM,sBAAuB,SAAQ,IAAA,0BAAgB,EAC1D,iBAAS,EACT,IAAA,qBAAW,EAAC,IAAA,kBAAQ,EAAC,kDAAsB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CACzD;CAKA,CAAA;AADC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,8CAAoB,EAAE;QACjC,QAAQ,EAAE,IAAI;KACf,CAAC;8BACM,8CAAoB;qDAAC;iCAPlB,sBAAsB;IADlC,IAAA,mBAAS,GAAE;GACC,sBAAsB,CAQlC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NodeInput } from '../../../utils';
|
|
1
|
+
import { FileUpload, NodeInput } from '../../../utils';
|
|
3
2
|
import { UserRoleEnum } from '@puzzlin/enums';
|
|
3
|
+
import { UpdateUserAccountInput } from './update-user-account.input';
|
|
4
|
+
import { UpdateUserProfileInput } from './update-user-profile.input';
|
|
4
5
|
export declare class UpdateUserInput extends NodeInput {
|
|
5
6
|
account?: UpdateUserAccountInput;
|
|
7
|
+
avatar?: FileUpload;
|
|
6
8
|
avatarUrl?: string;
|
|
7
9
|
firstName?: string;
|
|
8
10
|
lastName?: string;
|
|
11
|
+
profile?: UpdateUserProfileInput;
|
|
9
12
|
roles?: UserRoleEnum[];
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=update-user.input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.input.d.ts","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"update-user.input.d.ts","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBACa,eAAgB,SAAQ,SAAS;IAI5C,OAAO,CAAC,EAAE,sBAAsB,CAAC;IAKjC,MAAM,CAAC,EAAE,UAAU,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IAKjC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;CACxB"}
|
|
@@ -10,11 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateUserInput = void 0;
|
|
13
|
-
const update_user_account_input_1 = require("./update-user-account.input");
|
|
14
13
|
const utils_1 = require("../../../utils");
|
|
15
14
|
const graphql_1 = require("@nestjs/graphql");
|
|
16
15
|
const enums_1 = require("@puzzlin/enums");
|
|
17
16
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
17
|
+
const Upload = require("graphql-upload/GraphQLUpload.js");
|
|
18
|
+
const update_user_account_input_1 = require("./update-user-account.input");
|
|
19
|
+
const update_user_profile_input_1 = require("./update-user-profile.input");
|
|
18
20
|
let UpdateUserInput = exports.UpdateUserInput = class UpdateUserInput extends utils_1.NodeInput {
|
|
19
21
|
};
|
|
20
22
|
__decorate([
|
|
@@ -23,6 +25,12 @@ __decorate([
|
|
|
23
25
|
}),
|
|
24
26
|
__metadata("design:type", update_user_account_input_1.UpdateUserAccountInput)
|
|
25
27
|
], UpdateUserInput.prototype, "account", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)(() => Upload, {
|
|
30
|
+
nullable: true,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], UpdateUserInput.prototype, "avatar", void 0);
|
|
26
34
|
__decorate([
|
|
27
35
|
(0, graphql_1.Field)(() => String, {
|
|
28
36
|
nullable: true,
|
|
@@ -43,6 +51,12 @@ __decorate([
|
|
|
43
51
|
(0, utils_1.Trim)(),
|
|
44
52
|
__metadata("design:type", String)
|
|
45
53
|
], UpdateUserInput.prototype, "lastName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, graphql_1.Field)(() => update_user_profile_input_1.UpdateUserProfileInput, {
|
|
56
|
+
nullable: true,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", update_user_profile_input_1.UpdateUserProfileInput)
|
|
59
|
+
], UpdateUserInput.prototype, "profile", void 0);
|
|
46
60
|
__decorate([
|
|
47
61
|
(0, graphql_1.Field)(() => [enums_1.UserRoleEnum], {
|
|
48
62
|
nullable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.input.js","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"update-user.input.js","sourceRoot":"","sources":["../../../../src/models/users/inputs/update-user.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAsD;AACtD,6CAAmD;AACnD,0CAA8C;AAC9C,qDAAyD;AACzD,0DAA0D;AAC1D,2EAAqE;AACrE,2EAAqE;AAG9D,IAAM,eAAe,6BAArB,MAAM,eAAgB,SAAQ,iBAAS;CAqC7C,CAAA;AAjCC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kDAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;8BACQ,kDAAsB;gDAAC;AAKjC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACkB;AAKpB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACiB;AAMnB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,YAAI,GAAE;;kDACY;AAMnB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,YAAI,GAAE;;iDACW;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kDAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;8BACQ,kDAAsB;gDAAC;AAKjC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAY,CAAC,EAAE;QAC3B,QAAQ,EAAE,IAAI;KACf,CAAC;;8CACqB;0BApCZ,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAqC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
|
|
@@ -14,6 +14,8 @@ 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("./user.object"), exports);
|
|
18
17
|
__exportStar(require("./user-account.object"), exports);
|
|
18
|
+
__exportStar(require("./user-place.object"), exports);
|
|
19
|
+
__exportStar(require("./user-profile.object"), exports);
|
|
20
|
+
__exportStar(require("./user.object"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/users/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/users/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC;AACpC,wDAAsC;AACtC,gDAA8B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlaceDetails } from '../../../models/places';
|
|
2
|
+
import { Node, Timestamp } from '../../../utils';
|
|
3
|
+
declare const UserPlace_base: import("@nestjs/common").Type<Node & Timestamp & Omit<PlaceDetails, "id">>;
|
|
4
|
+
export declare class UserPlace extends UserPlace_base {
|
|
5
|
+
placeId: string;
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=user-place.object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-place.object.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/user-place.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;AAI1C,qBAGa,SAAU,SAAQ,cAAmF;IAEhH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.UserPlace = void 0;
|
|
13
|
+
const places_1 = require("../../../models/places");
|
|
14
|
+
const utils_1 = require("../../../utils");
|
|
15
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
16
|
+
const graphql_scalars_1 = require("graphql-scalars");
|
|
17
|
+
let UserPlace = exports.UserPlace = class UserPlace extends (0, graphql_1.IntersectionType)((0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp), (0, graphql_1.OmitType)(places_1.PlaceDetails, ['id'])) {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.NonEmptyStringResolver),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UserPlace.prototype, "placeId", void 0);
|
|
23
|
+
exports.UserPlace = UserPlace = __decorate([
|
|
24
|
+
(0, graphql_1.ObjectType)({
|
|
25
|
+
implements: [utils_1.Node],
|
|
26
|
+
})
|
|
27
|
+
], UserPlace);
|
|
28
|
+
//# sourceMappingURL=user-place.object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-place.object.js","sourceRoot":"","sources":["../../../../src/models/users/objects/user-place.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA+C;AAC/C,mCAA0C;AAC1C,6CAAgF;AAChF,qDAAyD;AAKlD,IAAM,SAAS,uBAAf,MAAM,SAAU,SAAQ,IAAA,0BAAgB,EAAC,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC,EAAE,IAAA,kBAAQ,EAAC,qBAAY,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;CAGjH,CAAA;AADC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,CAAC;;0CACpB;oBAFL,SAAS;IAHrB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,CAAC,YAAI,CAAC;KACnB,CAAC;GACW,SAAS,CAGrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Node, Timestamp } from '../../../utils';
|
|
2
|
+
import { UserPlace } from './user-place.object';
|
|
3
|
+
declare const UserProfile_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
4
|
+
export declare class UserProfile extends UserProfile_base {
|
|
5
|
+
introduction?: string;
|
|
6
|
+
place?: UserPlace;
|
|
7
|
+
speaks: string[];
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=user-profile.object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.object.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/user-profile.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;;AAEhD,qBAGa,WAAY,SAAQ,gBAAiC;IAIhE,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAGlB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.UserProfile = void 0;
|
|
13
|
+
const utils_1 = require("../../../utils");
|
|
14
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
15
|
+
const user_place_object_1 = require("./user-place.object");
|
|
16
|
+
let UserProfile = exports.UserProfile = class UserProfile extends (0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp) {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => String, {
|
|
20
|
+
nullable: true,
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UserProfile.prototype, "introduction", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => user_place_object_1.UserPlace, {
|
|
26
|
+
nullable: true,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", user_place_object_1.UserPlace)
|
|
29
|
+
], UserProfile.prototype, "place", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(() => [String]),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], UserProfile.prototype, "speaks", void 0);
|
|
34
|
+
exports.UserProfile = UserProfile = __decorate([
|
|
35
|
+
(0, graphql_1.ObjectType)({
|
|
36
|
+
implements: utils_1.Node,
|
|
37
|
+
})
|
|
38
|
+
], UserProfile);
|
|
39
|
+
//# sourceMappingURL=user-profile.object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.object.js","sourceRoot":"","sources":["../../../../src/models/users/objects/user-profile.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA0C;AAC1C,6CAAsE;AACtE,2DAAgD;AAKzC,IAAM,WAAW,yBAAjB,MAAM,WAAY,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CAajE,CAAA;AATC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACoB;AAKtB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;8BACM,6BAAS;0CAAC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;2CACL;sBAZN,WAAW;IAHvB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,WAAW,CAavB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Node, Timestamp } from '../../../utils';
|
|
2
2
|
import { UserRoleEnum } from '@puzzlin/enums';
|
|
3
3
|
import { UserAccount } from './user-account.object';
|
|
4
|
+
import { UserProfile } from './user-profile.object';
|
|
4
5
|
declare const User_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
5
6
|
export declare class User extends User_base {
|
|
6
7
|
account: UserAccount;
|
|
@@ -10,6 +11,7 @@ export declare class User extends User_base {
|
|
|
10
11
|
isVerified: boolean;
|
|
11
12
|
lastName: string;
|
|
12
13
|
loggedInAt?: string;
|
|
14
|
+
profile: UserProfile;
|
|
13
15
|
roles: UserRoleEnum[];
|
|
14
16
|
}
|
|
15
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.object.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/user.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAGa,IAAK,SAAQ,SAAiC;IAEzD,OAAO,EAAE,WAAW,CAAC;IAKrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAGlB,UAAU,EAAE,OAAO,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB"}
|
|
1
|
+
{"version":3,"file":"user.object.d.ts","sourceRoot":"","sources":["../../../../src/models/users/objects/user.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAGa,IAAK,SAAQ,SAAiC;IAEzD,OAAO,EAAE,WAAW,CAAC;IAKrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAGlB,UAAU,EAAE,OAAO,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,OAAO,EAAE,WAAW,CAAC;IAGrB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB"}
|
|
@@ -15,6 +15,7 @@ const graphql_1 = require("@nestjs/graphql");
|
|
|
15
15
|
const enums_1 = require("@puzzlin/enums");
|
|
16
16
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
17
17
|
const user_account_object_1 = require("./user-account.object");
|
|
18
|
+
const user_profile_object_1 = require("./user-profile.object");
|
|
18
19
|
let User = exports.User = class User extends (0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp) {
|
|
19
20
|
};
|
|
20
21
|
__decorate([
|
|
@@ -47,6 +48,10 @@ __decorate([
|
|
|
47
48
|
(0, graphql_1.Field)(() => graphql_scalars_1.GraphQLDateTimeISO),
|
|
48
49
|
__metadata("design:type", String)
|
|
49
50
|
], User.prototype, "loggedInAt", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, graphql_1.Field)(() => user_profile_object_1.UserProfile),
|
|
53
|
+
__metadata("design:type", user_profile_object_1.UserProfile)
|
|
54
|
+
], User.prototype, "profile", void 0);
|
|
50
55
|
__decorate([
|
|
51
56
|
(0, graphql_1.Field)(() => [enums_1.UserRoleEnum]),
|
|
52
57
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.object.js","sourceRoot":"","sources":["../../../../src/models/users/objects/user.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA0C;AAC1C,6CAAsE;AACtE,0CAA8C;AAC9C,qDAAmG;AACnG,+DAAoD;AAK7C,IAAM,IAAI,kBAAV,MAAM,IAAK,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"user.object.js","sourceRoot":"","sources":["../../../../src/models/users/objects/user.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA0C;AAC1C,6CAAsE;AACtE,0CAA8C;AAC9C,qDAAmG;AACnG,+DAAoD;AACpD,+DAAoD;AAK7C,IAAM,IAAI,kBAAV,MAAM,IAAK,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CA6B1D,CAAA;AA3BC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;8BAChB,iCAAW;qCAAC;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;uCACiB;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAoB,CAAC;;mCACpB;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,CAAC;;uCAClB;AAGlB;IADC,IAAA,eAAK,GAAE;;wCACY;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,CAAC;;sCACnB;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAkB,CAAC;;wCACZ;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;8BAChB,iCAAW;qCAAC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAY,CAAC,CAAC;;mCACN;eA5BX,IAAI;IAHhB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,IAAI,CA6BhB"}
|