@ibiliaze/stringman 3.13.0 → 3.14.1

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/dist/seat.d.ts CHANGED
@@ -1,9 +1,15 @@
1
1
  export declare const getSeatRowFromName: (seatName: string) => string;
2
2
  export declare const getSeatColFromName: (seatName: string) => string;
3
3
  export declare const seatMapKey: (row: number, col: number) => string;
4
- export declare const getItemId: (fixtureId: string, sectionId: string, seatId: string) => string;
4
+ export declare const getItemId: ({ fixtureId, sectionId, seatId, categoryId, }: {
5
+ fixtureId: string;
6
+ sectionId: string;
7
+ seatId: string;
8
+ categoryId: string;
9
+ }) => string;
5
10
  export declare const getFromItemId: (itemId: string) => {
6
11
  fixtureId: string;
7
12
  sectionId: string;
8
13
  seatId: string;
14
+ categoryId: string;
9
15
  };
package/dist/seat.js CHANGED
@@ -7,7 +7,7 @@ const getSeatColFromName = (seatName) => seatName?.split(':')?.[1] || 'Unassigne
7
7
  exports.getSeatColFromName = getSeatColFromName;
8
8
  const seatMapKey = (row, col) => `${row}:${col}`;
9
9
  exports.seatMapKey = seatMapKey;
10
- const getItemId = (fixtureId, sectionId, seatId) => JSON.stringify({ fixtureId, sectionId, seatId });
10
+ const getItemId = ({ fixtureId, sectionId, seatId, categoryId, }) => JSON.stringify({ fixtureId, sectionId, seatId, categoryId });
11
11
  exports.getItemId = getItemId;
12
12
  const getFromItemId = (itemId) => JSON.parse(itemId);
13
13
  exports.getFromItemId = getFromItemId;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ibiliaze/stringman",
3
- "version": "3.13.0",
3
+ "version": "3.14.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "pub": "npm publish --access public",
10
- "git": "git add .; git commit -m 'changes'; git tag -a v3.13.0 -m 'v3.13.0'; git push origin v3.13.0; git push",
10
+ "git": "git add .; git commit -m 'changes'; git tag -a v3.14.1 -m 'v3.14.1'; git push origin v3.14.1; git push",
11
11
  "push": "npm run build; npm run git; npm run pub"
12
12
  },
13
13
  "author": "Ibi Hasanli",
package/src/seat.ts CHANGED
@@ -3,8 +3,18 @@ export const getSeatColFromName = (seatName: string) => seatName?.split(':')?.[1
3
3
 
4
4
  export const seatMapKey = (row: number, col: number) => `${row}:${col}`;
5
5
 
6
- export const getItemId = (fixtureId: string, sectionId: string, seatId: string) =>
7
- JSON.stringify({ fixtureId, sectionId, seatId });
6
+ export const getItemId = ({
7
+ fixtureId,
8
+ sectionId,
9
+ seatId,
10
+ categoryId,
11
+ }: {
12
+ fixtureId: string;
13
+ sectionId: string;
14
+ seatId: string;
15
+ categoryId: string;
16
+ }) => JSON.stringify({ fixtureId, sectionId, seatId, categoryId });
8
17
 
9
- export const getFromItemId = (itemId: string): { fixtureId: string; sectionId: string; seatId: string } =>
10
- JSON.parse(itemId);
18
+ export const getFromItemId = (
19
+ itemId: string
20
+ ): { fixtureId: string; sectionId: string; seatId: string; categoryId: string } => JSON.parse(itemId);