@operato/shell 8.0.3 → 9.0.0-beta.10
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/CHANGELOG.md +85 -16
- package/dist/src/actions/busy.js +1 -1
- package/dist/src/actions/busy.js.map +1 -1
- package/dist/src/actions/index.d.ts +4 -4
- package/dist/src/actions/index.js +4 -4
- package/dist/src/actions/index.js.map +1 -1
- package/dist/src/actions/route.js +2 -2
- package/dist/src/actions/route.js.map +1 -1
- package/dist/src/app/app.d.ts +1 -1
- package/dist/src/app/app.js +81 -9
- package/dist/src/app/app.js.map +1 -1
- package/dist/src/app/pages/page-404.d.ts +1 -1
- package/dist/src/app/pages/page-404.js +8 -3
- package/dist/src/app/pages/page-404.js.map +1 -1
- package/dist/src/app/pages/page-view.js +33 -4
- package/dist/src/app/pages/page-view.js.map +1 -1
- package/dist/src/entries/public/home.js +16 -2
- package/dist/src/entries/public/home.js.map +1 -1
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.js +6 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/object-store.js +12 -2
- package/dist/src/object-store.js.map +1 -1
- package/dist/src/reducers/route.js +2 -2
- package/dist/src/reducers/route.js.map +1 -1
- package/dist/src/store.js +3 -3
- package/dist/src/store.js.map +1 -1
- package/dist/src/types/domain.js +86 -0
- package/dist/src/types/domain.js.map +1 -1
- package/dist/src/types/index.d.ts +5 -5
- package/dist/src/types/index.js +5 -5
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/privilege.d.ts +2 -2
- package/dist/src/types/privilege.js +74 -0
- package/dist/src/types/privilege.js.map +1 -1
- package/dist/src/types/role.d.ts +3 -3
- package/dist/src/types/role.js +86 -0
- package/dist/src/types/role.js.map +1 -1
- package/dist/src/types/user.js +50 -0
- package/dist/src/types/user.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/yarn-error.log +17014 -0
@@ -3,6 +3,15 @@ import '@material/web/icon/icon.js';
|
|
3
3
|
import { css, html, LitElement } from 'lit';
|
4
4
|
import { customElement } from 'lit/decorators.js';
|
5
5
|
let HomePage = class HomePage extends LitElement {
|
6
|
+
constructor() {
|
7
|
+
super(...arguments);
|
8
|
+
Object.defineProperty(this, "_applicationMeta", {
|
9
|
+
enumerable: true,
|
10
|
+
configurable: true,
|
11
|
+
writable: true,
|
12
|
+
value: void 0
|
13
|
+
});
|
14
|
+
}
|
6
15
|
render() {
|
7
16
|
var { title, description } = this.applicationMeta;
|
8
17
|
return html `
|
@@ -29,7 +38,11 @@ let HomePage = class HomePage extends LitElement {
|
|
29
38
|
return this._applicationMeta;
|
30
39
|
}
|
31
40
|
};
|
32
|
-
HomePage
|
41
|
+
Object.defineProperty(HomePage, "styles", {
|
42
|
+
enumerable: true,
|
43
|
+
configurable: true,
|
44
|
+
writable: true,
|
45
|
+
value: css `
|
33
46
|
:host {
|
34
47
|
background-color: var(--md-sys-color-background);
|
35
48
|
|
@@ -78,7 +91,8 @@ HomePage.styles = css `
|
|
78
91
|
font-size: 1.6rem;
|
79
92
|
}
|
80
93
|
}
|
81
|
-
|
94
|
+
`
|
95
|
+
});
|
82
96
|
HomePage = __decorate([
|
83
97
|
customElement('home-page')
|
84
98
|
], HomePage);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../../src/entries/public/home.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAG1C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../../src/entries/public/home.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,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ent":["import '@material/web/icon/icon.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('home-page')\nexport class HomePage extends LitElement {\n static styles = css`\n :host {\n background-color: var(--md-sys-color-background);\n\n display: block;\n position: relative;\n }\n\n [home] {\n position: absolute;\n left: 20px;\n top: 20px;\n font-size: 2em;\n color: white;\n }\n\n [message] {\n background-color: rgba(50, 66, 97, 0.8);\n padding: 60px 50px 0 50px;\n color: #fff;\n text-align: center;\n font-size: 20px;\n\n strong {\n display: block;\n font-size: 2.5rem;\n }\n\n img {\n width: 450px;\n max-width: 90%;\n display: block;\n margin: auto;\n margin-top: 20px;\n }\n }\n\n @media screen and (max-width: 460px) {\n [message] {\n padding: 60px 30px 0 30px;\n color: #fff;\n text-align: center;\n font-size: 15px;\n }\n\n [message] strong {\n font-size: 1.6rem;\n }\n }\n `\n\n _applicationMeta?: {\n icon: string\n title: string\n description: string\n }\n\n render() {\n var { title, description } = this.applicationMeta\n\n return html`\n <md-icon home @click=${() => (window.location.href = '/')}>home</md-icon>\n\n <div message>\n <strong>${title}</strong>\n ${description}\n <img src=\"/assets/images/home.png\" />\n </div>\n `\n }\n\n get applicationMeta() {\n if (!this._applicationMeta) {\n var iconLink = document.querySelector('link[rel=\"application-icon\"]') as HTMLLinkElement\n var titleMeta = document.querySelector('meta[name=\"application-name\"]') as HTMLMetaElement\n var descriptionMeta = document.querySelector('meta[name=\"application-description\"]') as HTMLMetaElement\n\n this._applicationMeta = {\n icon: iconLink?.href,\n title: titleMeta ? titleMeta.content : 'Things Factory',\n description: descriptionMeta ? descriptionMeta.content : 'Reimagining Software'\n }\n }\n\n return this._applicationMeta\n }\n}\n"]}
|
package/dist/src/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './types';
|
2
|
-
export * from './store';
|
3
|
-
export * from './actions';
|
4
|
-
export * from './app/pages/page-view';
|
5
|
-
export * from './object-store';
|
6
|
-
export * from './custom-alert';
|
1
|
+
export * from './types/index.js';
|
2
|
+
export * from './store.js';
|
3
|
+
export * from './actions/index.js';
|
4
|
+
export * from './app/pages/page-view.js';
|
5
|
+
export * from './object-store.js';
|
6
|
+
export * from './custom-alert.js';
|
package/dist/src/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
export * from './types';
|
2
|
-
export * from './store';
|
3
|
-
export * from './actions';
|
4
|
-
export * from './app/pages/page-view';
|
5
|
-
export * from './object-store';
|
6
|
-
export * from './custom-alert';
|
1
|
+
export * from './types/index.js';
|
2
|
+
export * from './store.js';
|
3
|
+
export * from './actions/index.js';
|
4
|
+
export * from './app/pages/page-view.js';
|
5
|
+
export * from './object-store.js';
|
6
|
+
export * from './custom-alert.js';
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA","sourcesContent":["export * from './types/index.js'\nexport * from './store.js'\nexport * from './actions/index.js'\nexport * from './app/pages/page-view.js'\nexport * from './object-store.js'\nexport * from './custom-alert.js'\n"]}
|
package/dist/src/object-store.js
CHANGED
@@ -44,8 +44,18 @@ class Queue {
|
|
44
44
|
return true;
|
45
45
|
}
|
46
46
|
}
|
47
|
-
Queue
|
48
|
-
|
47
|
+
Object.defineProperty(Queue, "queue", {
|
48
|
+
enumerable: true,
|
49
|
+
configurable: true,
|
50
|
+
writable: true,
|
51
|
+
value: []
|
52
|
+
});
|
53
|
+
Object.defineProperty(Queue, "workingOnPromise", {
|
54
|
+
enumerable: true,
|
55
|
+
configurable: true,
|
56
|
+
writable: true,
|
57
|
+
value: false
|
58
|
+
});
|
49
59
|
function getStore(storeName) {
|
50
60
|
return [
|
51
61
|
'add',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"object-store.js","sourceRoot":"","sources":["../../src/object-store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,mBAAmB;AACnB,MAAM,KAAK;IAST,MAAM,CAAC,OAAO,CAAC,OAAqB;QAClC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBACd,OAAO;gBACP,OAAO;gBACP,MAAM;aACP,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAA;QAChB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAA;QACd,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QAC/B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,KAAK,CAAA;QACd,CAAC;QACD,IAAI,CAAC;YACH,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC5B,IAAI,CAAC,OAAO;iBACT,IAAI,CAAC,KAAK,CAAC,EAAE;gBACZ,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAA;gBAC7B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;gBACnB,IAAI,CAAC,OAAO,EAAE,CAAA;YAChB,CAAC,CAAC;iBACD,KAAK,CAAC,GAAG,CAAC,EAAE;gBACX,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAA;gBAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;gBAChB,IAAI,CAAC,OAAO,EAAE,CAAA;YAChB,CAAC,CAAC,CAAA;QACN,CAA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AC,KAAK,CAAC,CAAA;QACf,CAAC,CAAA;QAED,OAAO,CAAC,eAAe,GAAG,UAAU,KAA4B;;YAC9D,IAAI,EAAE,GAAgB,MAAC,KAAK,CAAC,MAAqB,0CAAE,MAAM,CAAA;YAE1D,IAAI,KAAK,GAAG,EAAE,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;YACzF,KAAK,CAAC,WAAW,CAAC,wBAAwB,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;YAEnE,IAAI,KAAK,GAAG,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;YAC5F,KAAK,CAAC,WAAW,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QACzE,CAAC,CAAA;QAED,OAAO,CAAC,SAAS,GAAG,UAAU,KAAK;YACjC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;YAC5C,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;YACnB,OAAO,CAAC,EAAE,CAAC,CAAA;QACb,CAAC,CAAA;IACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,kBAAkB,GAAkB,QAAQ,CAAC,iBAAiB,CAAC,CAAA;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAkB,QAAQ,CAAC,eAAe,CAAC,CAAA","sourcesContent":["/*\n * [ Caution ]\n * Since this module is being used by a service worker, be very careful about adding imports or using functions for browsers.\n */\n\ntype OxObjectStore = {\n add: (value: any, key?: IDBValidKey | undefined) => IDBValidKey\n delete: (query: IDBValidKey | IDBKeyRange) => undefined\n clear: () => undefined\n get: (query: IDBValidKey | IDBKeyRange) => any\n getAll: (query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined) => any[]\n getAllKeys: (query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined) => IDBValidKey[]\n count: (query?: IDBValidKey | IDBKeyRange | undefined) => number\n put: (value: any, key?: IDBValidKey | undefined) => IDBValidKey\n openCursor: (\n query?: IDBValidKey | IDBKeyRange | null | undefined,\n direction?: IDBCursorDirection | undefined\n ) => IDBCursorWithValue | null\n openKeyCursor: (\n query?: IDBValidKey | IDBKeyRange | null | undefined,\n direction?: IDBCursorDirection | undefined\n ) => IDBCursor | null\n limit: (limit?: number) => undefined\n}\n\n/* promise queue */\nclass Queue {\n private static queue: {\n promise: Promise<IDBDatabase>\n resolve: (db: IDBDatabase) => void\n reject: (reason?: any) => void\n }[] = []\n\n private static workingOnPromise: boolean = false\n\n static enqueue(promise: Promise<any>) {\n return new Promise((resolve, reject) => {\n this.queue.push({\n promise,\n resolve,\n reject\n })\n this.dequeue()\n })\n }\n\n static dequeue() {\n if (this.workingOnPromise) {\n return false\n }\n const item = this.queue.shift()\n if (!item) {\n return false\n }\n try {\n this.workingOnPromise = true\n item.promise\n .then(value => {\n this.workingOnPromise = false\n item.resolve(value)\n this.dequeue()\n })\n .catch(err => {\n this.workingOnPromise = false\n item.reject(err)\n this.dequeue()\n })\n } catch (err) {\n this.workingOnPromise = false\n item.reject(err)\n this.dequeue()\n }\n return true\n }\n}\n\nfunction getStore(storeName: string): OxObjectStore {\n return [\n 'add',\n 'delete',\n 'clear',\n 'get',\n 'getAll',\n 'getAllKeys',\n 'count',\n 'put',\n 'openCursor',\n 'openKeyCursor'\n ].reduce(\n (sum, m) => {\n sum[m] = async (...params: any) => {\n const db = (await getIndexDB()) as IDBDatabase\n\n const transaction = db.transaction(storeName, 'readwrite')\n const store = transaction.objectStore(storeName)\n const method: (...p: any) => any = (store as any)[m]\n const request = method.apply(store, params)\n\n return await new Promise((resolve, reject) => {\n request.onsuccess = (event: Event) => {\n resolve((event.target as IDBRequest)?.result)\n }\n\n request.onerror = (event: Event) => {\n reject(event)\n }\n })\n }\n\n return sum\n },\n {\n async limit(this: OxObjectStore, limit = 50) {\n const keys = (await this.getAllKeys()).slice(0, -limit)\n for (let i = 0; i < keys.length; i++) {\n await this.delete(keys[i])\n }\n }\n } as any\n )\n}\n\nfunction getIndexedDB(): IDBFactory {\n if (typeof window !== 'undefined') {\n return window.indexedDB\n } else {\n return self.indexedDB\n }\n}\n\nvar db: IDBDatabase\n\nfunction getIndexDB() {\n if (db) {\n return db\n }\n\n return Queue.enqueue(\n new Promise(function (resolve, reject) {\n const indexedDB = getIndexedDB()\n\n if (!indexedDB) {\n reject('this browser does not support indexedDB')\n }\n const request = indexedDB.open('things-factory-database')\n\n request.onerror = function (event) {\n console.log(\"Why didn't you allow my web app to use IndexedDB?!\")\n reject(event)\n }\n\n request.onupgradeneeded = function (event: IDBVersionChangeEvent) {\n var db: IDBDatabase = (event.target as IDBRequest)?.result\n\n var store = db.createObjectStore('notifications', { keyPath: 'id', autoIncrement: true })\n store.createIndex('notification_id_unqiue', 'id', { unique: true })\n\n var store = db.createObjectStore('client_settings', { keyPath: 'key', autoIncrement: true })\n store.createIndex('client_setting_key_unqiue', 'key', { unique: true })\n }\n\n request.onsuccess = function (event) {\n console.log('IndexedDB opened successfully')\n db = request.result\n resolve(db)\n }\n })\n )\n}\n\n/* ready indexedDB Stores */\nexport const clientSettingStore: OxObjectStore = getStore('client_settings')\nexport const notificationStore: OxObjectStore = getStore('notifications')\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import startCase from 'lodash-es/startCase';
|
1
|
+
import startCase from 'lodash-es/startCase.js';
|
2
2
|
import { updateMetadata } from 'pwa-helpers/metadata.js';
|
3
|
-
import { REGISTER_NAVIGATION_CALLBACK, UNREGISTER_NAVIGATION_CALLBACK, UPDATE_ACTIVE_PAGE, UPDATE_CONTEXT, UPDATE_PAGE } from '../actions/const';
|
3
|
+
import { REGISTER_NAVIGATION_CALLBACK, UNREGISTER_NAVIGATION_CALLBACK, UPDATE_ACTIVE_PAGE, UPDATE_CONTEXT, UPDATE_PAGE } from '../actions/const.js';
|
4
4
|
const APP_TITLE_EL = document.querySelector('meta[name="application-name"]');
|
5
5
|
var appTitle;
|
6
6
|
if (APP_TITLE_EL) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/reducers/route.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/reducers/route.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,cAAc,EACd,WAAW,EACZ,MAAM,qBAAqB,CAAA;AAE5B,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,+BAA+B,CAAoB,CAAA;AAE/F,IAAI,QAA4B,CAAA;AAChC,IAAI,YAAY,EAAE,CAAC;IACjB,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAA;AACjC,CAAC;AAED,MAAM,aAAa,GAOf;IACF,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,EAAE;CACd,CAAA;AAED,MAAM,KAAK,GAAG,CAAC,KAAK,GAAG,aAAa,EAAE,MAAW,EAAE,EAAE;;IACnD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,WAAW;YACd,OAAO;gBACL,GAAG,KAAK;gBACR,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAA;QACH,KAAK,cAAc;YACjB,IAAI,KAAK,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,KAAK,CAAA;YACjC,IAAI,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA;YAEzD,cAAc,CAAC;gBACb,KAAK,EAAE,QAAQ,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxD,CAAC,CAAA;YACF,OAAO;gBACL,GAAG,KAAK;gBACR,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE;aAChF,CAAA;QACH,KAAK,kBAAkB;YACrB,OAAO;gBACL,GAAG,KAAK;gBACR,UAAU,EAAE,MAAM,CAAC,UAAU;aAC9B,CAAA;QAEH,KAAK,4BAA4B;YAC/B,OAAO;gBACL,GAAG,KAAK;gBACR,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;aACjD,CAAA;QACH,KAAK,8BAA8B;YACjC,OAAO;gBACL,GAAG,KAAK;gBACR,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC;aAC5E,CAAA;QAEH;YACE,OAAO,KAAK,CAAA;IAChB,CAAC;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA","sourcesContent":["import startCase from 'lodash-es/startCase.js'\nimport { updateMetadata } from 'pwa-helpers/metadata.js'\n\nimport {\n REGISTER_NAVIGATION_CALLBACK,\n UNREGISTER_NAVIGATION_CALLBACK,\n UPDATE_ACTIVE_PAGE,\n UPDATE_CONTEXT,\n UPDATE_PAGE\n} from '../actions/const.js'\n\nconst APP_TITLE_EL = document.querySelector('meta[name=\"application-name\"]') as HTMLMetaElement\n\nvar appTitle: string | undefined\nif (APP_TITLE_EL) {\n appTitle = APP_TITLE_EL.content\n}\n\nconst INITIAL_STATE: {\n page: string\n resourceId: string\n params: any\n activePage: any\n context: any\n callbacks: any[]\n} = {\n page: '',\n resourceId: '',\n params: {},\n activePage: null,\n context: {},\n callbacks: []\n}\n\nconst route = (state = INITIAL_STATE, action: any) => {\n switch (action.type) {\n case UPDATE_PAGE:\n return {\n ...state,\n page: action.page,\n resourceId: action.resourceId,\n params: action.params\n }\n case UPDATE_CONTEXT:\n let title = action.context?.title\n let text = typeof title === 'object' ? title.text : title\n\n updateMetadata({\n title: appTitle + (text ? ` - ${startCase(text)}` : '')\n })\n return {\n ...state,\n context: action.context || (state.activePage && state.activePage.context) || {}\n }\n case UPDATE_ACTIVE_PAGE:\n return {\n ...state,\n activePage: action.activePage\n }\n\n case REGISTER_NAVIGATION_CALLBACK:\n return {\n ...state,\n callbacks: [...state.callbacks, action.callback]\n }\n case UNREGISTER_NAVIGATION_CALLBACK:\n return {\n ...state,\n callbacks: state.callbacks.filter(callback => callback !== action.callback)\n }\n\n default:\n return state\n }\n}\n\nexport default route\n"]}
|
package/dist/src/store.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { lazyReducerEnhancer } from 'pwa-helpers/lazy-reducer-enhancer.js';
|
2
2
|
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
|
3
3
|
import thunk from 'redux-thunk';
|
4
|
-
import app from './reducers/app';
|
5
|
-
import route from './reducers/route';
|
6
|
-
import busy from './reducers/busy';
|
4
|
+
import app from './reducers/app.js';
|
5
|
+
import route from './reducers/route.js';
|
6
|
+
import busy from './reducers/busy.js';
|
7
7
|
// Sets up a Chrome extension for time travel debugging.
|
8
8
|
// See https://github.com/zalmoxisus/redux-devtools-extension for more information.
|
9
9
|
const devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
package/dist/src/store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,mBAAmB,CAAA;AACnC,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,IAAI,MAAM,oBAAoB,CAAA;AAMrC,wDAAwD;AACxD,mFAAmF;AACnF,MAAM,UAAU,GAAG,MAAM,CAAC,oCAAoC,IAAI,OAAO,CAAA;AAEzE,2FAA2F;AAC3F,IAAI,OAAO,MAAM,CAAC,OAAO,IAAI,WAAW,EAAE,CAAC;IACzC,MAAM,CAAC,OAAO,GAAG;QACf,GAAG,EAAE;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;SACxC;KACK,CAAA;AACV,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAA4C,WAAW,CACvE,KAAK,CAAC,EAAE,CAAC,KAAK,EACd,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CACzE,CAAA;AAED,6BAA6B;AAC7B,KAAK,CAAC,WAAW,CAAC;IAChB,GAAG;IACH,KAAK;IACL,IAAI;CACL,CAAC,CAAA","sourcesContent":["import { lazyReducerEnhancer, LazyStore } from 'pwa-helpers/lazy-reducer-enhancer.js'\nimport { Action, applyMiddleware, combineReducers, compose, createStore, Store } from 'redux'\nimport thunk from 'redux-thunk'\n\nimport app from './reducers/app.js'\nimport route from './reducers/route.js'\nimport busy from './reducers/busy.js'\n\ndeclare global {\n var __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any\n}\n\n// Sets up a Chrome extension for time travel debugging.\n// See https://github.com/zalmoxisus/redux-devtools-extension for more information.\nconst devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\n\n// Only for providing test environment - combineReducers 에서 process.env.NODE_ENV를 접근하기 때문에.\nif (typeof window.process == 'undefined') {\n window.process = {\n env: {\n NODE_ENV: JSON.stringify('development')\n }\n } as any\n}\n\nexport const store: Store<unknown, Action<any>> & LazyStore = createStore(\n state => state,\n devCompose(lazyReducerEnhancer(combineReducers), applyMiddleware(thunk))\n)\n\n// Initially loaded reducers.\nstore.addReducers({\n app,\n route,\n busy\n})\n"]}
|
package/dist/src/types/domain.js
CHANGED
@@ -1,3 +1,89 @@
|
|
1
1
|
export class Domain {
|
2
|
+
constructor() {
|
3
|
+
Object.defineProperty(this, "id", {
|
4
|
+
enumerable: true,
|
5
|
+
configurable: true,
|
6
|
+
writable: true,
|
7
|
+
value: void 0
|
8
|
+
});
|
9
|
+
Object.defineProperty(this, "name", {
|
10
|
+
enumerable: true,
|
11
|
+
configurable: true,
|
12
|
+
writable: true,
|
13
|
+
value: void 0
|
14
|
+
});
|
15
|
+
Object.defineProperty(this, "description", {
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true,
|
19
|
+
value: void 0
|
20
|
+
});
|
21
|
+
Object.defineProperty(this, "subdomain", {
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true,
|
25
|
+
value: void 0
|
26
|
+
});
|
27
|
+
Object.defineProperty(this, "extType", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: void 0
|
32
|
+
});
|
33
|
+
Object.defineProperty(this, "timezone", {
|
34
|
+
enumerable: true,
|
35
|
+
configurable: true,
|
36
|
+
writable: true,
|
37
|
+
value: void 0
|
38
|
+
});
|
39
|
+
Object.defineProperty(this, "systemFlag", {
|
40
|
+
enumerable: true,
|
41
|
+
configurable: true,
|
42
|
+
writable: true,
|
43
|
+
value: void 0
|
44
|
+
});
|
45
|
+
Object.defineProperty(this, "brandName", {
|
46
|
+
enumerable: true,
|
47
|
+
configurable: true,
|
48
|
+
writable: true,
|
49
|
+
value: void 0
|
50
|
+
});
|
51
|
+
Object.defineProperty(this, "brandImage", {
|
52
|
+
enumerable: true,
|
53
|
+
configurable: true,
|
54
|
+
writable: true,
|
55
|
+
value: void 0
|
56
|
+
});
|
57
|
+
Object.defineProperty(this, "contentImage", {
|
58
|
+
enumerable: true,
|
59
|
+
configurable: true,
|
60
|
+
writable: true,
|
61
|
+
value: void 0
|
62
|
+
});
|
63
|
+
Object.defineProperty(this, "owner", {
|
64
|
+
enumerable: true,
|
65
|
+
configurable: true,
|
66
|
+
writable: true,
|
67
|
+
value: void 0
|
68
|
+
});
|
69
|
+
Object.defineProperty(this, "theme", {
|
70
|
+
enumerable: true,
|
71
|
+
configurable: true,
|
72
|
+
writable: true,
|
73
|
+
value: void 0
|
74
|
+
});
|
75
|
+
Object.defineProperty(this, "createdAt", {
|
76
|
+
enumerable: true,
|
77
|
+
configurable: true,
|
78
|
+
writable: true,
|
79
|
+
value: void 0
|
80
|
+
});
|
81
|
+
Object.defineProperty(this, "updatedAt", {
|
82
|
+
enumerable: true,
|
83
|
+
configurable: true,
|
84
|
+
writable: true,
|
85
|
+
value: void 0
|
86
|
+
});
|
87
|
+
}
|
2
88
|
}
|
3
89
|
//# sourceMappingURL=domain.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,MAAM;
|
1
|
+
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,MAAM;IAAnB;QACW;;;;;WAAW;QAEpB;;;;;WAAa;QACb;;;;;WAAoB;QAEpB;;;;;WAAkB;QAElB;;;;;WAAgB;QAChB;;;;;WAAiB;QACjB;;;;;WAAoB;QAEpB;;;;;WAAkB;QAClB;;;;;WAAmB;QACnB;;;;;WAAqB;QAErB;;;;;WAAc;QACd;;;;;WAAc;QAEd;;;;;WAAgB;QAChB;;;;;WAAgB;IAClB,CAAC;CAAA","sourcesContent":["export class Domain {\n readonly id?: string\n\n name?: string\n description?: string\n\n subdomain?: string\n\n extType?: string\n timezone?: string\n systemFlag?: boolean\n\n brandName?: string\n brandImage?: string\n contentImage?: string\n\n owner?: string\n theme?: string\n\n createdAt?: Date\n updatedAt?: Date\n}\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './domain';
|
2
|
-
export * from './privilege';
|
3
|
-
export * from './role';
|
4
|
-
export * from './user';
|
5
|
-
export * from './types';
|
1
|
+
export * from './domain.js';
|
2
|
+
export * from './privilege.js';
|
3
|
+
export * from './role.js';
|
4
|
+
export * from './user.js';
|
5
|
+
export * from './types.js';
|
package/dist/src/types/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './domain';
|
2
|
-
export * from './privilege';
|
3
|
-
export * from './role';
|
4
|
-
export * from './user';
|
5
|
-
export * from './types';
|
1
|
+
export * from './domain.js';
|
2
|
+
export * from './privilege.js';
|
3
|
+
export * from './role.js';
|
4
|
+
export * from './user.js';
|
5
|
+
export * from './types.js';
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA","sourcesContent":["export * from './domain.js'\nexport * from './privilege.js'\nexport * from './role.js'\nexport * from './user.js'\nexport * from './types.js'\n"]}
|
@@ -1,3 +1,77 @@
|
|
1
1
|
export class Privilege {
|
2
|
+
constructor() {
|
3
|
+
Object.defineProperty(this, "id", {
|
4
|
+
enumerable: true,
|
5
|
+
configurable: true,
|
6
|
+
writable: true,
|
7
|
+
value: void 0
|
8
|
+
});
|
9
|
+
Object.defineProperty(this, "name", {
|
10
|
+
enumerable: true,
|
11
|
+
configurable: true,
|
12
|
+
writable: true,
|
13
|
+
value: void 0
|
14
|
+
});
|
15
|
+
Object.defineProperty(this, "category", {
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true,
|
19
|
+
value: void 0
|
20
|
+
});
|
21
|
+
Object.defineProperty(this, "nullable", {
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true,
|
25
|
+
value: void 0
|
26
|
+
});
|
27
|
+
Object.defineProperty(this, "description", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: void 0
|
32
|
+
});
|
33
|
+
Object.defineProperty(this, "roles", {
|
34
|
+
enumerable: true,
|
35
|
+
configurable: true,
|
36
|
+
writable: true,
|
37
|
+
value: void 0
|
38
|
+
});
|
39
|
+
Object.defineProperty(this, "creator", {
|
40
|
+
enumerable: true,
|
41
|
+
configurable: true,
|
42
|
+
writable: true,
|
43
|
+
value: void 0
|
44
|
+
});
|
45
|
+
Object.defineProperty(this, "creatorId", {
|
46
|
+
enumerable: true,
|
47
|
+
configurable: true,
|
48
|
+
writable: true,
|
49
|
+
value: void 0
|
50
|
+
});
|
51
|
+
Object.defineProperty(this, "updater", {
|
52
|
+
enumerable: true,
|
53
|
+
configurable: true,
|
54
|
+
writable: true,
|
55
|
+
value: void 0
|
56
|
+
});
|
57
|
+
Object.defineProperty(this, "updaterId", {
|
58
|
+
enumerable: true,
|
59
|
+
configurable: true,
|
60
|
+
writable: true,
|
61
|
+
value: void 0
|
62
|
+
});
|
63
|
+
Object.defineProperty(this, "createdAt", {
|
64
|
+
enumerable: true,
|
65
|
+
configurable: true,
|
66
|
+
writable: true,
|
67
|
+
value: void 0
|
68
|
+
});
|
69
|
+
Object.defineProperty(this, "updatedAt", {
|
70
|
+
enumerable: true,
|
71
|
+
configurable: true,
|
72
|
+
writable: true,
|
73
|
+
value: void 0
|
74
|
+
});
|
75
|
+
}
|
2
76
|
}
|
3
77
|
//# sourceMappingURL=privilege.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../../src/types/privilege.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;
|
1
|
+
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../../src/types/privilege.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;IAAtB;QACE;;;;;WAAW;QAEX;;;;;WAAa;QAEb;;;;;WAAiB;QAEjB;;;;;WAAe;QAEf;;;;;WAAoB;QAEpB;;;;;WAAc;QAEd;;;;;WAAc;QAEd;;;;;WAAkB;QAElB;;;;;WAAc;QAEd;;;;;WAAkB;QAElB;;;;;WAAgB;QAEhB;;;;;WAAgB;IAClB,CAAC;CAAA","sourcesContent":["import { Role } from './role.js'\nimport { User } from './user.js'\n\nexport class Privilege {\n id?: string\n\n name?: string\n\n category?: string\n\n nullable?: true\n\n description?: string\n\n roles?: Role[]\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|
package/dist/src/types/role.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Domain } from './domain';
|
2
|
-
import { User } from './user';
|
3
|
-
import { Privilege } from './privilege';
|
1
|
+
import { Domain } from './domain.js';
|
2
|
+
import { User } from './user.js';
|
3
|
+
import { Privilege } from './privilege.js';
|
4
4
|
export declare class Role {
|
5
5
|
readonly id?: string;
|
6
6
|
domain?: Domain;
|
package/dist/src/types/role.js
CHANGED
@@ -1,3 +1,89 @@
|
|
1
1
|
export class Role {
|
2
|
+
constructor() {
|
3
|
+
Object.defineProperty(this, "id", {
|
4
|
+
enumerable: true,
|
5
|
+
configurable: true,
|
6
|
+
writable: true,
|
7
|
+
value: void 0
|
8
|
+
});
|
9
|
+
Object.defineProperty(this, "domain", {
|
10
|
+
enumerable: true,
|
11
|
+
configurable: true,
|
12
|
+
writable: true,
|
13
|
+
value: void 0
|
14
|
+
});
|
15
|
+
Object.defineProperty(this, "domainId", {
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true,
|
19
|
+
value: void 0
|
20
|
+
});
|
21
|
+
Object.defineProperty(this, "name", {
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true,
|
25
|
+
value: void 0
|
26
|
+
});
|
27
|
+
Object.defineProperty(this, "users", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: void 0
|
32
|
+
});
|
33
|
+
Object.defineProperty(this, "privileges", {
|
34
|
+
enumerable: true,
|
35
|
+
configurable: true,
|
36
|
+
writable: true,
|
37
|
+
value: void 0
|
38
|
+
});
|
39
|
+
Object.defineProperty(this, "nullable", {
|
40
|
+
enumerable: true,
|
41
|
+
configurable: true,
|
42
|
+
writable: true,
|
43
|
+
value: void 0
|
44
|
+
});
|
45
|
+
Object.defineProperty(this, "description", {
|
46
|
+
enumerable: true,
|
47
|
+
configurable: true,
|
48
|
+
writable: true,
|
49
|
+
value: void 0
|
50
|
+
});
|
51
|
+
Object.defineProperty(this, "creator", {
|
52
|
+
enumerable: true,
|
53
|
+
configurable: true,
|
54
|
+
writable: true,
|
55
|
+
value: void 0
|
56
|
+
});
|
57
|
+
Object.defineProperty(this, "creatorId", {
|
58
|
+
enumerable: true,
|
59
|
+
configurable: true,
|
60
|
+
writable: true,
|
61
|
+
value: void 0
|
62
|
+
});
|
63
|
+
Object.defineProperty(this, "updater", {
|
64
|
+
enumerable: true,
|
65
|
+
configurable: true,
|
66
|
+
writable: true,
|
67
|
+
value: void 0
|
68
|
+
});
|
69
|
+
Object.defineProperty(this, "updaterId", {
|
70
|
+
enumerable: true,
|
71
|
+
configurable: true,
|
72
|
+
writable: true,
|
73
|
+
value: void 0
|
74
|
+
});
|
75
|
+
Object.defineProperty(this, "createdAt", {
|
76
|
+
enumerable: true,
|
77
|
+
configurable: true,
|
78
|
+
writable: true,
|
79
|
+
value: void 0
|
80
|
+
});
|
81
|
+
Object.defineProperty(this, "updatedAt", {
|
82
|
+
enumerable: true,
|
83
|
+
configurable: true,
|
84
|
+
writable: true,
|
85
|
+
value: void 0
|
86
|
+
});
|
87
|
+
}
|
2
88
|
}
|
3
89
|
//# sourceMappingURL=role.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../src/types/role.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../src/types/role.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;IAAjB;QACW;;;;;WAAW;QAEpB;;;;;WAAe;QAEf;;;;;WAAiB;QAEjB;;;;;WAAa;QAEb;;;;;WAAc;QAEd;;;;;WAAwB;QAExB;;;;;WAAe;QAEf;;;;;WAAoB;QAEpB;;;;;WAAc;QAEd;;;;;WAAkB;QAElB;;;;;WAAc;QAEd;;;;;WAAkB;QAElB;;;;;WAAgB;QAEhB;;;;;WAAgB;IAClB,CAAC;CAAA","sourcesContent":["import { Domain } from './domain.js'\nimport { User } from './user.js'\nimport { Privilege } from './privilege.js'\n\nexport class Role {\n readonly id?: string\n\n domain?: Domain\n\n domainId?: string\n\n name?: string\n\n users?: User[]\n\n privileges?: Privilege[]\n\n nullable?: true\n\n description?: string\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|
package/dist/src/types/user.js
CHANGED
@@ -8,5 +8,55 @@ export var UserStatus;
|
|
8
8
|
UserStatus["PWD_RESET_REQUIRED"] = "password_reset_required";
|
9
9
|
})(UserStatus || (UserStatus = {}));
|
10
10
|
export class User {
|
11
|
+
constructor() {
|
12
|
+
Object.defineProperty(this, "id", {
|
13
|
+
enumerable: true,
|
14
|
+
configurable: true,
|
15
|
+
writable: true,
|
16
|
+
value: void 0
|
17
|
+
});
|
18
|
+
Object.defineProperty(this, "name", {
|
19
|
+
enumerable: true,
|
20
|
+
configurable: true,
|
21
|
+
writable: true,
|
22
|
+
value: void 0
|
23
|
+
});
|
24
|
+
Object.defineProperty(this, "description", {
|
25
|
+
enumerable: true,
|
26
|
+
configurable: true,
|
27
|
+
writable: true,
|
28
|
+
value: void 0
|
29
|
+
});
|
30
|
+
Object.defineProperty(this, "email", {
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true,
|
34
|
+
value: void 0
|
35
|
+
});
|
36
|
+
Object.defineProperty(this, "creator", {
|
37
|
+
enumerable: true,
|
38
|
+
configurable: true,
|
39
|
+
writable: true,
|
40
|
+
value: void 0
|
41
|
+
});
|
42
|
+
Object.defineProperty(this, "updater", {
|
43
|
+
enumerable: true,
|
44
|
+
configurable: true,
|
45
|
+
writable: true,
|
46
|
+
value: void 0
|
47
|
+
});
|
48
|
+
Object.defineProperty(this, "createdAt", {
|
49
|
+
enumerable: true,
|
50
|
+
configurable: true,
|
51
|
+
writable: true,
|
52
|
+
value: void 0
|
53
|
+
});
|
54
|
+
Object.defineProperty(this, "updatedAt", {
|
55
|
+
enumerable: true,
|
56
|
+
configurable: true,
|
57
|
+
writable: true,
|
58
|
+
value: void 0
|
59
|
+
});
|
60
|
+
}
|
11
61
|
}
|
12
62
|
//# sourceMappingURL=user.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,4DAA8C,CAAA;AAChD,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAED,MAAM,OAAO,IAAI;
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,4DAA8C,CAAA;AAChD,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAED,MAAM,OAAO,IAAI;IAAjB;QACW;;;;;WAAW;QAEpB;;;;;WAAa;QACb;;;;;WAAoB;QAEpB;;;;;WAAc;QAEd;;;;;WAAc;QACd;;;;;WAAc;QAEd;;;;;WAAgB;QAChB;;;;;WAAgB;IAClB,CAAC;CAAA","sourcesContent":["export enum UserStatus {\n INACTIVE = 'inactive',\n ACTIVATED = 'activated',\n DELETED = 'deleted',\n LOCKED = 'locked',\n BANNED = 'banned',\n PWD_RESET_REQUIRED = 'password_reset_required'\n}\n\nexport class User {\n readonly id?: string\n\n name?: string\n description?: string\n\n email?: string\n\n creator?: User\n updater?: User\n\n createdAt?: Date\n updatedAt?: Date\n}\n"]}
|