@misaina08/dto-lib 0.0.0-development

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,6 @@
1
+ export declare enum FormatEnum {
2
+ VIRTUAL = "VIRTUAL",
3
+ DIFFERED = "DIFFERED",
4
+ IN_PERSON = "IN_PERSON"
5
+ }
6
+ //# sourceMappingURL=format.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.enum.d.ts","sourceRoot":"","sources":["../../src/enums/format.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormatEnum = void 0;
4
+ var FormatEnum;
5
+ (function (FormatEnum) {
6
+ FormatEnum["VIRTUAL"] = "VIRTUAL";
7
+ FormatEnum["DIFFERED"] = "DIFFERED";
8
+ FormatEnum["IN_PERSON"] = "IN_PERSON";
9
+ })(FormatEnum || (exports.FormatEnum = FormatEnum = {}));
10
+ //# sourceMappingURL=format.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.enum.js","sourceRoot":"","sources":["../../src/enums/format.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;AACzB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
@@ -0,0 +1,61 @@
1
+ import { FormatEnum } from './enums/format.enum';
2
+ export interface CategoryDto {
3
+ id: string;
4
+ name: string;
5
+ }
6
+ export interface EventResourceDto {
7
+ id: string;
8
+ title: string;
9
+ type: string;
10
+ webinar_id: string;
11
+ }
12
+ export interface EventDto {
13
+ id: string;
14
+ owner_id: string;
15
+ status: string;
16
+ title: string;
17
+ summary: string;
18
+ description: string;
19
+ format: FormatEnum;
20
+ address: string;
21
+ category_id: string;
22
+ max_attendee: number;
23
+ category?: CategoryDto;
24
+ event_resources?: EventResourceDto[];
25
+ }
26
+ export interface CreateCategoryDto {
27
+ name: string;
28
+ }
29
+ export interface CreateEventResourceDto {
30
+ title: string;
31
+ type: string;
32
+ webinar_id: string;
33
+ }
34
+ export interface CreateEventDto {
35
+ owner_id: string;
36
+ status: string;
37
+ title: string;
38
+ summary: string;
39
+ description: string;
40
+ location_type: FormatEnum;
41
+ address: string;
42
+ category_id: string;
43
+ max_attendee: number;
44
+ }
45
+ export interface UpdateEventResourceDto {
46
+ title?: string;
47
+ type?: string;
48
+ webinar_id?: string;
49
+ }
50
+ export interface UpdateEventDto {
51
+ owner_id?: string;
52
+ status?: string;
53
+ title?: string;
54
+ summary?: string;
55
+ description?: string;
56
+ location_type?: FormatEnum;
57
+ address?: string;
58
+ category_id?: string;
59
+ max_attendee?: number;
60
+ }
61
+ //# sourceMappingURL=event.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.dto.d.ts","sourceRoot":"","sources":["../src/event.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC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appingURL=event.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.dto.js","sourceRoot":"","sources":["../src/event.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './enums/format.enum';
2
+ export * from './event.dto';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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("./enums/format.enum"), exports);
18
+ __exportStar(require("./event.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@misaina08/dto-lib",
3
+ "version": "0.0.0-development",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "build": "tsc",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/kairos-wb/dto-lib.git"
18
+ },
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "type": "commonjs",
23
+ "bugs": {
24
+ "url": "https://github.com/kairos-wb/dto-lib/issues"
25
+ },
26
+ "homepage": "https://github.com/kairos-wb/dto-lib#readme",
27
+ "devDependencies": {
28
+ "@semantic-release/changelog": "^6.0.3",
29
+ "@semantic-release/git": "^10.0.1",
30
+ "semantic-release": "^24.2.9",
31
+ "typescript": "^5.9.3"
32
+ },
33
+ "dependencies": {
34
+ "class-transformer": "^0.5.1",
35
+ "class-validator": "^0.14.3"
36
+ }
37
+ }