@posx/core 5.5.201 → 5.5.203

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.
Files changed (30) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +85 -85
  3. package/build/index.d.ts +20 -11
  4. package/build/index.js +1 -1
  5. package/package.json +1 -1
  6. package/package.publish.json +116 -116
  7. package/web-bundles/agents/analyst.txt +2882 -2882
  8. package/web-bundles/agents/architect.txt +3543 -3543
  9. package/web-bundles/agents/bmad-master.txt +8756 -8756
  10. package/web-bundles/agents/bmad-orchestrator.txt +1490 -1490
  11. package/web-bundles/agents/dev.txt +428 -428
  12. package/web-bundles/agents/pm.txt +2229 -2229
  13. package/web-bundles/agents/po.txt +1364 -1364
  14. package/web-bundles/agents/qa.txt +386 -386
  15. package/web-bundles/agents/sm.txt +668 -668
  16. package/web-bundles/agents/ux-expert.txt +701 -701
  17. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2408 -2408
  18. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1631 -1631
  19. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -822
  20. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10989 -10989
  21. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -4047
  22. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3744 -3744
  23. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +465 -465
  24. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +990 -990
  25. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15467 -15467
  26. package/web-bundles/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2077 -2077
  27. package/web-bundles/teams/team-all.txt +11062 -11062
  28. package/web-bundles/teams/team-fullstack.txt +10392 -10392
  29. package/web-bundles/teams/team-ide-minimal.txt +3507 -3507
  30. package/web-bundles/teams/team-no-ui.txt +8951 -8951
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Francisco Hodge
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Francisco Hodge
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- # 第一阶段
2
- - 1. 创建,更新,删除都是通过 -> Http API
3
- - 2. 读取是通过本地数据库 -> 本地, (例外:订单从云端读取)
4
-
5
- # 第二阶段 (单机版)
6
- 1. 创建,更新,删除,读取都通过本地数据库,然后进行数据和云端同步(Web Worker)
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
- <div align="center">
19
- <img align="center" width="230" src="https://i.imgur.com/iHgtvmg.png" />
20
- <h2>Typescript Library Boilerplate Basic</h2>
21
- <blockquote>Minimal Library Starter Kit for your Typescript projects</blockquote>
22
-
23
- <a href="https://www.npmjs.com/package/@hodgef/ts-library-boilerplate-basic"><img src="https://badgen.net/npm/v/@hodgef/ts-library-boilerplate-basic?color=blue" alt="npm version"></a> <a href="https://github.com/hodgef/ts-library-boilerplate"><img src="https://img.shields.io/github/last-commit/hodgef/ts-library-boilerplate" alt="latest commit"></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"><img alt="Build Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Build/badge.svg?color=green" /></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"> <img alt="Publish Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Publish/badge.svg?color=green" /></a>
24
-
25
- <strong>For a plain Javascript alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).</strong>
26
-
27
- </div>
28
-
29
- ## ⭐️ Features
30
-
31
- - Webpack 5
32
- - Babel 7
33
- - Hot reloading (`npm start`)
34
- - Automatic Types file generation (index.d.ts)
35
- - UMD exports, so your library works everywhere.
36
- - Jest unit testing
37
- - Customizable file headers for your build [(Example 1)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/index.js) [(Example2)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/css/index.css)
38
- - Daily [dependabot](https://dependabot.com) dependency updates
39
-
40
- ## 📦 Getting Started
41
-
42
- ```
43
- git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
44
- npm install
45
- ```
46
-
47
- ## 💎 Customization
48
-
49
- > Before shipping, make sure to:
50
-
51
- 1. Edit `LICENSE` file
52
- 2. Edit `package.json` information (These will be used to generate the headers for your built files)
53
- 3. Edit `library: "MyLibrary"` with your library's export name in `./webpack.config.js`
54
-
55
- ## 🚀 Deployment
56
-
57
- 1. `npm publish`
58
- 2. Your users can include your library as usual
59
-
60
- ### npm
61
-
62
- ```
63
- import MyLibrary from 'my-library';
64
- const libraryInstance = new MyLibrary();
65
- ...
66
- ```
67
-
68
- ### self-host/cdn
69
-
70
- ```
71
- <script src="build/index.js"></script>
72
-
73
- const MyLibrary = window.MyLibrary.default;
74
- const libraryInstance = new MyLibrary();
75
- ...
76
- ```
77
-
78
- ## ✅ Libraries built with this boilerplate
79
-
80
- > Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/ts-library-boilerplate-basic/pulls)!
81
-
82
- - [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard
83
- - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard
84
- - [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Keyboard layouts for simple-keyboard
85
- - [atlas-monaco](https://github.com/datdao/atlas-monaco) - AtlasHCL for monaco editor
1
+ # 第一阶段
2
+ - 1. 创建,更新,删除都是通过 -> Http API
3
+ - 2. 读取是通过本地数据库 -> 本地, (例外:订单从云端读取)
4
+
5
+ # 第二阶段 (单机版)
6
+ 1. 创建,更新,删除,读取都通过本地数据库,然后进行数据和云端同步(Web Worker)
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ <div align="center">
19
+ <img align="center" width="230" src="https://i.imgur.com/iHgtvmg.png" />
20
+ <h2>Typescript Library Boilerplate Basic</h2>
21
+ <blockquote>Minimal Library Starter Kit for your Typescript projects</blockquote>
22
+
23
+ <a href="https://www.npmjs.com/package/@hodgef/ts-library-boilerplate-basic"><img src="https://badgen.net/npm/v/@hodgef/ts-library-boilerplate-basic?color=blue" alt="npm version"></a> <a href="https://github.com/hodgef/ts-library-boilerplate"><img src="https://img.shields.io/github/last-commit/hodgef/ts-library-boilerplate" alt="latest commit"></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"><img alt="Build Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Build/badge.svg?color=green" /></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"> <img alt="Publish Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Publish/badge.svg?color=green" /></a>
24
+
25
+ <strong>For a plain Javascript alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).</strong>
26
+
27
+ </div>
28
+
29
+ ## ⭐️ Features
30
+
31
+ - Webpack 5
32
+ - Babel 7
33
+ - Hot reloading (`npm start`)
34
+ - Automatic Types file generation (index.d.ts)
35
+ - UMD exports, so your library works everywhere.
36
+ - Jest unit testing
37
+ - Customizable file headers for your build [(Example 1)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/index.js) [(Example2)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/css/index.css)
38
+ - Daily [dependabot](https://dependabot.com) dependency updates
39
+
40
+ ## 📦 Getting Started
41
+
42
+ ```
43
+ git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
44
+ npm install
45
+ ```
46
+
47
+ ## 💎 Customization
48
+
49
+ > Before shipping, make sure to:
50
+
51
+ 1. Edit `LICENSE` file
52
+ 2. Edit `package.json` information (These will be used to generate the headers for your built files)
53
+ 3. Edit `library: "MyLibrary"` with your library's export name in `./webpack.config.js`
54
+
55
+ ## 🚀 Deployment
56
+
57
+ 1. `npm publish`
58
+ 2. Your users can include your library as usual
59
+
60
+ ### npm
61
+
62
+ ```
63
+ import MyLibrary from 'my-library';
64
+ const libraryInstance = new MyLibrary();
65
+ ...
66
+ ```
67
+
68
+ ### self-host/cdn
69
+
70
+ ```
71
+ <script src="build/index.js"></script>
72
+
73
+ const MyLibrary = window.MyLibrary.default;
74
+ const libraryInstance = new MyLibrary();
75
+ ...
76
+ ```
77
+
78
+ ## ✅ Libraries built with this boilerplate
79
+
80
+ > Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/ts-library-boilerplate-basic/pulls)!
81
+
82
+ - [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard
83
+ - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard
84
+ - [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Keyboard layouts for simple-keyboard
85
+ - [atlas-monaco](https://github.com/datdao/atlas-monaco) - AtlasHCL for monaco editor
package/build/index.d.ts CHANGED
@@ -33,6 +33,17 @@ declare module '@posx/core/index' {
33
33
  export * from '@posx/core/types/merchant.type';
34
34
  export * from '@posx/core/types/storage.type';
35
35
 
36
+ }
37
+ declare module '@posx/core/libs/FindOptions' {
38
+ export const Include: (query?: string) => (val: any) => any;
39
+ export const In: (query?: never[]) => (val: never) => boolean;
40
+ export const Between: (begin: number, end: number) => (val: number) => boolean;
41
+ export const Not: (query?: any) => (val: any, values: any) => boolean;
42
+ export const Raw: (fn: any) => any;
43
+ export const filterByParams: (params: {
44
+ [key: string]: any;
45
+ }) => (values: any) => boolean;
46
+
36
47
  }
37
48
  declare module '@posx/core/libs/electron.socket' {
38
49
  export class ElectronSocket {
@@ -248,17 +259,6 @@ declare module '@posx/core/libs/escpos.printer' {
248
259
  items: IPrintCommandLine[];
249
260
  }
250
261
 
251
- }
252
- declare module '@posx/core/libs/FindOptions' {
253
- export const Include: (query?: string) => (val: any) => any;
254
- export const In: (query?: never[]) => (val: never) => boolean;
255
- export const Between: (begin: number, end: number) => (val: number) => boolean;
256
- export const Not: (query?: any) => (val: any, values: any) => boolean;
257
- export const Raw: (fn: any) => any;
258
- export const filterByParams: (params: {
259
- [key: string]: any;
260
- }) => (values: any) => boolean;
261
-
262
262
  }
263
263
  declare module '@posx/core/service.factory' {
264
264
  import { IServiceOptions } from '@posx/core/types/misc.type';
@@ -1363,6 +1363,12 @@ declare module '@posx/core/services/invoice.service' {
1363
1363
  * Interface for invoice operation service that extends line operation service
1364
1364
  */
1365
1365
  export interface IInvoiceOperationService extends ILineOperationService {
1366
+ /**
1367
+ * Adds an invoice
1368
+ * @param invoice - The invoice to add
1369
+ * @returns A promise that resolves with the added invoice options
1370
+ */
1371
+ addInvoice(invoice: IInvoice): Promise<IInvoice>;
1366
1372
  /**
1367
1373
  * Hold an invoice
1368
1374
  * @param invoice - The invoice to hold
@@ -1577,6 +1583,7 @@ declare module '@posx/core/services/invoice.service' {
1577
1583
  sliceInvoice(invoice: IInvoice): IInvoice[];
1578
1584
  }
1579
1585
  export class InvoiceOperationService extends LineOperationService implements IInvoiceOperationService {
1586
+ addInvoice(invoice: IInvoice): Promise<IInvoice>;
1580
1587
  createInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<CreateInvoiceOptions>;
1581
1588
  updateInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<UpdateInvoiceOptions>;
1582
1589
  cancelInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<CancelInvoiceOptions>;
@@ -2138,6 +2145,7 @@ declare module '@posx/core/types/config.type' {
2138
2145
  landing_image: string;
2139
2146
  menu_banner_image: string;
2140
2147
  home_page_images: string[];
2148
+ paynow_method: PaynowMethod;
2141
2149
  }
2142
2150
  export class KioskSystemConfig implements IKioskSystemConfig {
2143
2151
  takeaway_only: boolean;
@@ -2147,6 +2155,7 @@ declare module '@posx/core/types/config.type' {
2147
2155
  landing_image: string;
2148
2156
  menu_banner_image: string;
2149
2157
  home_page_images: any[];
2158
+ paynow_method: PaynowMethod;
2150
2159
  constructor();
2151
2160
  }
2152
2161
  export interface IMarketing {