cleanstrategytypes 1.1.17 → 1.1.19

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,28 @@
1
+ name: Publish Package
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - name: Setup Node.js
14
+ uses: actions/setup-node@v4
15
+ with:
16
+ node-version: '20'
17
+ registry-url: 'https://registry.npmjs.org'
18
+
19
+ - name: Install dependencies
20
+ run: npm ci
21
+
22
+ - name: Build package
23
+ run: npm run build
24
+
25
+ - name: Publish to npm
26
+ run: npm publish --access public
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.esm.js","sources":["../src/index.ts"],"sourcesContent":["export interface IVote {\n id: string;\n roundId: string;\n userId: string;\n taskId: string;\n count?: number;\n}\n\nexport type ITask = {\n id: string;\n title: string;\n value: number;\n};\n\nexport type ISpace = {\n id: string;\n name: string;\n roles: string[];\n};\n\nexport interface ICurrentUser {\n id: string;\n displayName: string;\n email: string;\n deviceId: string;\n tenants: ISpace[];\n}\n\nexport interface IUser {\n id: string;\n displayName: string;\n color: string;\n}\n\nexport interface IRound {\n id: string;\n order: number;\n spaceId: string;\n endDate: Date;\n status?: \"finished\" | \"active\";\n}\n\nexport enum SpaceEventTypes {\n CONNECT = \"CONNECT\",\n DISCONNECT = \"DISCONNECT\",\n VOTE = \"VOTE\",\n DELETE_VOTE = \"DELETE_VOTE\",\n RESET_VOTES = \"RESET_VOTES\",\n START_ROUND = \"START_ROUND\",\n}\n\n// RequestMessage\n\nexport type VoteMessageBody = {\n type: \"minus\" | \"plus\";\n taskId: string;\n currentUserId: string;\n};\n\nexport type VoteDeleteMessageBody = {\n voteId: string;\n};\n\n// ResponseMessage\ntype ResponseMessageBase = {\n errorMessages?: { type: string; message: string }[];\n};\n\nexport type VoteMessageResponse = ResponseMessageBase & {\n vote: IVote;\n};\nexport type VoteDeleteMessageResponse = ResponseMessageBase & {\n voteId: string;\n};\n\nexport type StartRoundResponseMessage = ResponseMessageBase & {\n round: IRound;\n};\n\nexport type ConnectMessageResponse = ResponseMessageBase & {\n votes: IVote[];\n tasks: ITask[];\n users: IUser[];\n currentPeriod: IRound;\n};\n\nexport type ResetVotesMessageResponse = ResponseMessageBase & {\n votes: IVote[];\n};\n\nexport type StartRoundMessageResponse = ResponseMessageBase & {\n round?: IRound;\n};\n\nexport interface GameServerToClientEvents {\n [SpaceEventTypes.CONNECT]: (message: ConnectMessageResponse) => void;\n [SpaceEventTypes.DISCONNECT]: (message: any) => void;\n [SpaceEventTypes.START_ROUND]: (message: StartRoundMessageResponse) => void;\n [SpaceEventTypes.VOTE]: (message: VoteMessageResponse) => void;\n [SpaceEventTypes.DELETE_VOTE]: (message: VoteDeleteMessageResponse) => void;\n [SpaceEventTypes.RESET_VOTES]: (message: ResetVotesMessageResponse) => void;\n}\n\nexport interface GameClientToServerEvents {\n [SpaceEventTypes.CONNECT]: (message: any) => void;\n [SpaceEventTypes.START_ROUND]: (message: any) => void;\n [SpaceEventTypes.VOTE]: (message: VoteMessageBody) => void;\n [SpaceEventTypes.DELETE_VOTE]: (message: VoteDeleteMessageBody) => void;\n [SpaceEventTypes.RESET_VOTES]: (message: any) => void;\n}\n"],"names":[],"mappings":"IA0CY,gBAOX;AAPD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC7B,CAAC,EAPW,eAAe,KAAf,eAAe,GAO1B,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"bundle.esm.js","sources":["../src/index.ts"],"sourcesContent":["export interface IVote {\n id: string;\n roundId: string;\n userId: string;\n taskId: string;\n count?: number;\n}\n\nexport type ITask = {\n id: string;\n title: string;\n value: number;\n};\n\nexport type ISpace = {\n id: string;\n name: string;\n roles: string[];\n};\n\nexport interface ICurrentUser {\n id: string;\n displayName: string;\n email: string;\n deviceId: string;\n tenants: ISpace[];\n}\n\nexport interface IUser {\n id: string;\n displayName: string;\n}\n\nexport interface IRound {\n id: string;\n order: number;\n spaceId: string;\n endDate: Date;\n status?: \"finished\" | \"active\";\n}\n\nexport enum SpaceEventTypes {\n CONNECT = \"CONNECT\",\n DISCONNECT = \"DISCONNECT\",\n VOTE = \"VOTE\",\n DELETE_VOTE = \"DELETE_VOTE\",\n RESET_VOTES = \"RESET_VOTES\",\n START_ROUND = \"START_ROUND\",\n}\n\n// RequestMessage\n\nexport type VoteMessageBody = {\n type: \"minus\" | \"plus\";\n taskId: string;\n currentUserId: string;\n};\n\nexport type VoteDeleteMessageBody = {\n voteId: string;\n};\n\n// ResponseMessage\ntype ResponseMessageBase = {\n errorMessages?: { type: string; message: string }[];\n};\n\nexport type VoteMessageResponse = ResponseMessageBase & {\n vote: IVote;\n};\nexport type VoteDeleteMessageResponse = ResponseMessageBase & {\n voteId: string;\n};\n\nexport type StartRoundResponseMessage = ResponseMessageBase & {\n round: IRound;\n};\n\nexport type ConnectMessageResponse = ResponseMessageBase & {\n votes: IVote[];\n tasks: ITask[];\n users: IUser[];\n currentPeriod: IRound;\n};\n\nexport type ResetVotesMessageResponse = ResponseMessageBase & {\n votes: IVote[];\n};\n\nexport type StartRoundMessageResponse = ResponseMessageBase & {\n round?: IRound;\n};\n\nexport interface GameServerToClientEvents {\n [SpaceEventTypes.CONNECT]: (message: ConnectMessageResponse) => void;\n [SpaceEventTypes.DISCONNECT]: (message: any) => void;\n [SpaceEventTypes.START_ROUND]: (message: StartRoundMessageResponse) => void;\n [SpaceEventTypes.VOTE]: (message: VoteMessageResponse) => void;\n [SpaceEventTypes.DELETE_VOTE]: (message: VoteDeleteMessageResponse) => void;\n [SpaceEventTypes.RESET_VOTES]: (message: ResetVotesMessageResponse) => void;\n}\n\nexport interface GameClientToServerEvents {\n [SpaceEventTypes.CONNECT]: (message: any) => void;\n [SpaceEventTypes.START_ROUND]: (message: any) => void;\n [SpaceEventTypes.VOTE]: (message: VoteMessageBody) => void;\n [SpaceEventTypes.DELETE_VOTE]: (message: VoteDeleteMessageBody) => void;\n [SpaceEventTypes.RESET_VOTES]: (message: any) => void;\n}\n"],"names":[],"mappings":"IAyCY,gBAOX;AAPD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC7B,CAAC,EAPW,eAAe,KAAf,eAAe,GAO1B,EAAA,CAAA,CAAA;;;;"}
package/dist/index.d.ts CHANGED
@@ -25,7 +25,6 @@ export interface ICurrentUser {
25
25
  export interface IUser {
26
26
  id: string;
27
27
  displayName: string;
28
- color: string;
29
28
  }
30
29
  export interface IRound {
31
30
  id: string;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "cleanstrategytypes",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
7
7
  "build": "rollup -c",
8
- "test": "echo \"Error: no test specified\" && exit 1"
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "version": "npm run build && git add -A dist",
10
+ "postversion": "git push && git push --tags"
9
11
  },
10
12
  "author": "",
11
13
  "license": "ISC",