jp.db.schemas 1.0.26 → 1.0.27

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.
@@ -1,7 +1,6 @@
1
1
  import { HydratedDocument } from 'mongoose';
2
2
  export type OKUserLocationDocument = HydratedDocument<OKUserLocation>;
3
3
  export declare class OKUserLocation {
4
- id: number;
5
4
  city: String;
6
5
  country: String;
7
6
  countryCode: String;
@@ -36,4 +35,20 @@ export declare const OKUserSchema: import("mongoose").Schema<OKUser, import("mon
36
35
  } & {
37
36
  __v: number;
38
37
  }>;
38
+ export type OkLocation = {
39
+ city: string;
40
+ country: string;
41
+ countryCode: string;
42
+ countryName: string;
43
+ };
44
+ export type OkUserDto = {
45
+ uid: string;
46
+ birthday: string;
47
+ birthdaySet: boolean;
48
+ age: number;
49
+ first_name: string;
50
+ last_name: string;
51
+ location: OkLocation;
52
+ pic128x128: string;
53
+ };
39
54
  //# sourceMappingURL=user.ok.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.ok.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/user.ok.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAEtE,qBACa,cAAc;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;EAA+C,CAAC;AAEjF,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtD,qBACa,MAAM;IAEf,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,OAAO,CAAC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AE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -14,10 +14,6 @@ const mongoose_1 = require("@nestjs/mongoose");
14
14
  let OKUserLocation = class OKUserLocation {
15
15
  };
16
16
  exports.OKUserLocation = OKUserLocation;
17
- __decorate([
18
- (0, mongoose_1.Prop)(),
19
- __metadata("design:type", Number)
20
- ], OKUserLocation.prototype, "id", void 0);
21
17
  __decorate([
22
18
  (0, mongoose_1.Prop)(),
23
19
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"user.ok.schema.js","sourceRoot":"","sources":["../../src/schemas/user.ok.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAMxD,IAAM,cAAc,GAApB,MAAM,cAAc;CAe1B,CAAA;AAfY,wCAAc;AAEvB;IADC,IAAA,eAAI,GAAE;;0CACI;AAGX;IADC,IAAA,eAAI,GAAE;8BACD,MAAM;4CAAC;AAGb;IADC,IAAA,eAAI,GAAE;8BACE,MAAM;+CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACM,MAAM;mDAAC;AAGpB;IADC,IAAA,eAAI,GAAE;8BACM,MAAM;mDAAC;yBAdX,cAAc;IAD1B,IAAA,iBAAM,GAAE;GACI,cAAc,CAe1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAK1E,IAAM,MAAM,GAAZ,MAAM,MAAM;CAwBlB,CAAA;AAxBY,wBAAM;AAEf;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;wCACU;AAGjB;IADC,IAAA,eAAI,GAAE;;2CACc;AAGrB;IADC,IAAA,eAAI,GAAE;;mCACK;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A,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,9 +5,6 @@ export type OKUserLocationDocument = HydratedDocument<OKUserLocation>;
5
5
 
6
6
  @Schema()
7
7
  export class OKUserLocation {
8
- @Prop()
9
- id: number;
10
-
11
8
  @Prop()
12
9
  city: String;
13
10
 
@@ -53,3 +50,22 @@ export class OKUser {
53
50
  }
54
51
 
55
52
  export const OKUserSchema = SchemaFactory.createForClass(OKUser);
53
+
54
+
55
+ export type OkLocation = {
56
+ city: string;
57
+ country: string;
58
+ countryCode: string;
59
+ countryName: string;
60
+ };
61
+
62
+ export type OkUserDto = {
63
+ uid: string;
64
+ birthday: string;
65
+ birthdaySet: boolean;
66
+ age: number;
67
+ first_name: string;
68
+ last_name: string;
69
+ location: OkLocation;
70
+ pic128x128: string;
71
+ };