@smartnowx/hcms-plugin-event-manager 0.0.3 → 0.0.5

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,32 @@
1
+ // @ts-check
2
+ const tseslint = require("typescript-eslint");
3
+ const rootConfig = require("../../eslint.config.js");
4
+
5
+ module.exports = tseslint.config(
6
+ ...rootConfig,
7
+ {
8
+ files: ["**/*.ts"],
9
+ rules: {
10
+ "@angular-eslint/directive-selector": [
11
+ "error",
12
+ {
13
+ type: "attribute",
14
+ prefix: "lib",
15
+ style: "camelCase",
16
+ },
17
+ ],
18
+ "@angular-eslint/component-selector": [
19
+ "error",
20
+ {
21
+ type: "element",
22
+ prefix: "lib",
23
+ style: "kebab-case",
24
+ },
25
+ ],
26
+ },
27
+ },
28
+ {
29
+ files: ["**/*.html"],
30
+ rules: {},
31
+ }
32
+ );
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "dist/hcms-plugin-event-manager",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartnowx/hcms-plugin-event-manager",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
@@ -9,18 +9,5 @@
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"
11
11
  },
12
- "sideEffects": false,
13
- "module": "fesm2022/smartnowx-hcms-plugin-event-manager.mjs",
14
- "typings": "index.d.ts",
15
- "exports": {
16
- "./package.json": {
17
- "default": "./package.json"
18
- },
19
- ".": {
20
- "types": "./index.d.ts",
21
- "esm2022": "./esm2022/smartnowx-hcms-plugin-event-manager.mjs",
22
- "esm": "./esm2022/smartnowx-hcms-plugin-event-manager.mjs",
23
- "default": "./fesm2022/smartnowx-hcms-plugin-event-manager.mjs"
24
- }
25
- }
26
- }
12
+ "sideEffects": false
13
+ }
@@ -14,5 +14,5 @@ export interface Event {
14
14
  secondary_image: string;
15
15
  created_at?: Date;
16
16
  updated_at?: Date;
17
- active: number;
18
- }
17
+ active: number;
18
+ }
@@ -1,4 +1,5 @@
1
1
  export interface Organization {
2
+
2
3
  id: number;
3
4
  name: string;
4
5
  image: string;
@@ -8,5 +9,6 @@ export interface Organization {
8
9
  transaction_fee_percentage?: number | null;
9
10
  created_at: Date | null;
10
11
  updated_at: Date | null;
11
- active: number;
12
- }
12
+ active: number;
13
+
14
+ }
@@ -0,0 +1,22 @@
1
+ export interface PromotionCode {
2
+ id: number;
3
+ organization_id: number;
4
+ event_id: number;
5
+ name: string;
6
+ description: string;
7
+ code: string;
8
+ type: "PERCENTAGE" | "FIXED";
9
+ usage_type: "SINGLE" | "MULTIPLE";
10
+ image: string;
11
+ author_id: number;
12
+ parent_id: number;
13
+ status: number;
14
+ transaction_id: number;
15
+ user_id?: number;
16
+ validity_start?: Date;
17
+ validity_end?: Date;
18
+ value: number;
19
+ created_at: Date;
20
+ updated_at: Date;
21
+ active: number;
22
+ }
@@ -1,4 +1,6 @@
1
+
1
2
  export interface Ticket {
3
+
2
4
  id: number;
3
5
  type_id: number;
4
6
  status: number;
@@ -11,5 +13,6 @@ export interface Ticket {
11
13
  laravel_through_key: number;
12
14
  created_at: string | null;
13
15
  updated_at: string | null;
14
- active: number;
16
+ active: number;
17
+
15
18
  }
@@ -0,0 +1,19 @@
1
+ export interface TicketOffice {
2
+ id: number;
3
+ name: string;
4
+ postcode: number;
5
+ city: string;
6
+ address: string;
7
+ location: string;
8
+ quota: number;
9
+ organization_id: number;
10
+ email: string;
11
+ phone: string;
12
+ leader_id: number;
13
+ opening_days: string;
14
+ open: string;
15
+ close: string;
16
+ created_at?: Date;
17
+ updated_at?: Date;
18
+ active: number;
19
+ }
@@ -1,4 +1,5 @@
1
1
  export interface TicketType {
2
+
2
3
  id: number;
3
4
  name: string;
4
5
  type: string;
@@ -6,11 +7,12 @@ export interface TicketType {
6
7
  event_id: number;
7
8
  sale_start: Date;
8
9
  sale_end: Date;
9
- valid_from?: Date;
10
- valid_to?: Date;
10
+ valid_from?: Date,
11
+ valid_to?: Date,
11
12
  max_available: number;
12
- seated: number;
13
+ seated: number
13
14
  created_at?: Date;
14
15
  updated_at?: Date;
15
- active: number;
16
+ active: number;
17
+
16
18
  }
@@ -1,4 +1,10 @@
1
+ /*
2
+ * Public API Surface of hcms-plugin-event-manager
3
+ */
4
+
1
5
  export * from './lib/models/Organization';
2
6
  export * from './lib/models/Event';
3
7
  export * from './lib/models/TicketType';
4
8
  export * from './lib/models/Ticket';
9
+ export * from './lib/models/TicketOffice';
10
+ export * from './lib/models/PromotionCode';
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/lib",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "types": []
11
+ },
12
+ "exclude": [
13
+ "**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,11 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.lib.json",
5
+ "compilerOptions": {
6
+ "declarationMap": false
7
+ },
8
+ "angularCompilerOptions": {
9
+ "compilationMode": "partial"
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/spec",
7
+ "types": [
8
+ "jasmine"
9
+ ]
10
+ },
11
+ "include": [
12
+ "**/*.spec.ts",
13
+ "**/*.d.ts"
14
+ ]
15
+ }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL21vZGVscy9FdmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBFdmVudCB7XG4gICAgaWQ6IG51bWJlcjtcbiAgICBvcmdhbml6YXRpb25faWQ6IG51bWJlcjtcbiAgICBuYW1lOiBzdHJpbmc7XG4gICAgdHlwZTogc3RyaW5nO1xuICAgIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gICAgZGF0ZTogRGF0ZTtcbiAgICBlbnRyYW5jZV9zdGFydD86IERhdGU7XG4gICAgZW50cmFuY2VfZW5kPzogRGF0ZTtcbiAgICB0b3duOiBzdHJpbmc7XG4gICAgdmVudWVfaWQ6IG51bWJlcjtcbiAgICBhZGRyZXNzOiBzdHJpbmc7XG4gICAgaW1hZ2U6IHN0cmluZztcbiAgICBzZWNvbmRhcnlfaW1hZ2U6IHN0cmluZztcbiAgICBjcmVhdGVkX2F0PzogRGF0ZTtcbiAgICB1cGRhdGVkX2F0PzogRGF0ZTtcbiAgICBhY3RpdmU6IG51bWJlcjsgXG4gIH0gXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3JnYW5pemF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2Rl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BlbnRlcmVkX2J5PzogbnVtYmVyO1xuICAgIGxhcmF2ZWxfdGhyb3VnaF9rZXk6IG51bWJlcjtcbiAgICBjcmVhdGVkX2F0OiBzdHJpbmcgfCBudWxsO1xuICAgIHVwZGF0ZWRfYXQ6IHN0cmluZyB8IG51bGw7XG4gICAgYWN0aXZlOiBudW1iZXI7IFxuICAgIFxufVxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGlja2V0VHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvbW9kZWxzL1RpY2tldFR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgVGlja2V0VHlwZSB7XG5cbiAgICBpZDogbnVtYmVyO1xuICAgIG5hbWU6IHN0cmluZztcbiAgICB0eXBlOiBzdHJpbmc7XG4gICAgcHJpY2U6IG51bWJlcjtcbiAgICBldmVudF9pZDogbnVtYmVyO1xuICAgIHNhbGVfc3RhcnQ6IERhdGU7XG4gICAgc2FsZV9lbmQ6IERhdGU7XG4gICAgdmFsaWRfZnJvbT86IERhdGUsXG4gICAgdmFsaWRfdG8/OiBEYXRlLFxuICAgIG1heF9hdmFpbGFibGU6IG51bWJlcjtcbiAgICBzZWF0ZWQ6IG51bWJlclxuICAgIGNyZWF0ZWRfYXQ/OiBEYXRlO1xuICAgIHVwZGF0ZWRfYXQ/OiBEYXRlO1xuICAgIGFjdGl2ZTogbnVtYmVyOyBcblxufVxuIl19
@@ -1,8 +0,0 @@
1
- /*
2
- * Public API Surface of hcms-plugin-event-manager
3
- */
4
- export * from './lib/models/Organization';
5
- export * from './lib/models/Event';
6
- export * from './lib/models/TicketType';
7
- export * from './lib/models/Ticket';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgaGNtcy1wbHVnaW4tZXZlbnQtbWFuYWdlclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9Pcmdhbml6YXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzL0V2ZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9UaWNrZXRUeXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9UaWNrZXQnO1xuIl19
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRub3d4LWhjbXMtcGx1Z2luLWV2ZW50LW1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc21hcnRub3d4LWhjbXMtcGx1Z2luLWV2ZW50LW1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,8 +0,0 @@
1
- /*
2
- * Public API Surface of hcms-plugin-event-manager
3
- */
4
-
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- //# sourceMappingURL=smartnowx-hcms-plugin-event-manager.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smartnowx-hcms-plugin-event-manager.mjs","sources":["../../../src/public-api.ts","../../../src/smartnowx-hcms-plugin-event-manager.ts"],"sourcesContent":["/*\n * Public API Surface of hcms-plugin-event-manager\n */\n\nexport * from './lib/models/Organization';\nexport * from './lib/models/Event';\nexport * from './lib/models/TicketType';\nexport * from './lib/models/Ticket';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG;;ACFH;;AAEG"}
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@smartnowx/hcms-plugin-event-manager" />
5
- export * from './public-api';