@misternooblet/squara-types 1.0.5 → 1.0.6

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.
@@ -16,8 +16,8 @@ export interface GroupMember {
16
16
  joinedAt: Date;
17
17
  splitRatio: number;
18
18
  }
19
- export interface GroupDocument {
20
- id: string;
19
+ export interface Group {
20
+ _id: string;
21
21
  name: string;
22
22
  type: GroupType;
23
23
  memberIds: string[];
@@ -33,11 +33,3 @@ export interface GroupDocument {
33
33
  updatedAt: Date;
34
34
  lastExpenseAt: Date | null;
35
35
  }
36
- export interface CreateGroupInput {
37
- name: string;
38
- type: GroupType;
39
- currency: string;
40
- invitedMembers?: string[];
41
- tripStartDate?: Date | null;
42
- tripEndDate?: Date | null;
43
- }
@@ -1 +1 @@
1
- export { GroupType, GroupMemberRole, GroupMember, GroupDocument, CreateGroupInput } from './expense';
1
+ export { GroupType, GroupMemberRole, GroupMember, Group } from './group';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GroupMemberRole = exports.GroupType = void 0;
4
- var expense_1 = require("./expense");
5
- Object.defineProperty(exports, "GroupType", { enumerable: true, get: function () { return expense_1.GroupType; } });
6
- Object.defineProperty(exports, "GroupMemberRole", { enumerable: true, get: function () { return expense_1.GroupMemberRole; } });
4
+ var group_1 = require("./group");
5
+ Object.defineProperty(exports, "GroupType", { enumerable: true, get: function () { return group_1.GroupType; } });
6
+ Object.defineProperty(exports, "GroupMemberRole", { enumerable: true, get: function () { return group_1.GroupMemberRole; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misternooblet/squara-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shared TypeScript types for the Squara app.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
File without changes