@techtulp/choremanji-types 1.6.0 → 1.7.0

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,29 @@
1
+ import { DeviceType } from './device-type';
2
+ export interface BetaChildInputType {
3
+ name: string;
4
+ device_type: DeviceType;
5
+ device_email: string;
6
+ }
7
+ export interface BetaRegisterInputType {
8
+ parent_name: string;
9
+ parent_email: string;
10
+ parent_password: string;
11
+ children: BetaChildInputType[];
12
+ }
13
+ export interface BetaChildOutputType {
14
+ id: string;
15
+ name: string;
16
+ username: string;
17
+ password: string;
18
+ device_type: DeviceType;
19
+ device_email: string;
20
+ }
21
+ export interface BetaRegisterOutputType {
22
+ family_id: string;
23
+ parent_id: string;
24
+ children: BetaChildOutputType[];
25
+ }
26
+ export interface BetaCountOutputType {
27
+ count: number;
28
+ cap: number;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare enum DeviceType {
2
+ IOS = "IOS",
3
+ ANDROID = "ANDROID"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceType = void 0;
4
+ var DeviceType;
5
+ (function (DeviceType) {
6
+ DeviceType["IOS"] = "IOS";
7
+ DeviceType["ANDROID"] = "ANDROID";
8
+ })(DeviceType || (exports.DeviceType = DeviceType = {}));
@@ -37,5 +37,6 @@ export declare enum ErrorType {
37
37
  ThemeOwnershipNotFound = "Theme ownership not found",
38
38
  ThemeAssignmentNotFound = "Theme assignment not found",
39
39
  ThemeAlreadyAssigned = "Theme already assigned to this child",
40
- FamilyDoesNotOwnTheme = "Family does not own this theme"
40
+ FamilyDoesNotOwnTheme = "Family does not own this theme",
41
+ BetaCapReached = "Beta registration cap reached"
41
42
  }
@@ -42,4 +42,5 @@ var ErrorType;
42
42
  ErrorType["ThemeAssignmentNotFound"] = "Theme assignment not found";
43
43
  ErrorType["ThemeAlreadyAssigned"] = "Theme already assigned to this child";
44
44
  ErrorType["FamilyDoesNotOwnTheme"] = "Family does not own this theme";
45
+ ErrorType["BetaCapReached"] = "Beta registration cap reached";
45
46
  })(ErrorType || (exports.ErrorType = ErrorType = {}));
package/dist/index.d.ts CHANGED
@@ -19,3 +19,6 @@ export * from './app-home-data.type';
19
19
  export * from './account-deletion.types';
20
20
  export * from './data-export.types';
21
21
  export * from './theme.types';
22
+ export * from './device-type';
23
+ export * from './user-segment';
24
+ export * from './beta.types';
package/dist/index.js CHANGED
@@ -35,3 +35,6 @@ __exportStar(require("./app-home-data.type"), exports);
35
35
  __exportStar(require("./account-deletion.types"), exports);
36
36
  __exportStar(require("./data-export.types"), exports);
37
37
  __exportStar(require("./theme.types"), exports);
38
+ __exportStar(require("./device-type"), exports);
39
+ __exportStar(require("./user-segment"), exports);
40
+ __exportStar(require("./beta.types"), exports);
@@ -0,0 +1,3 @@
1
+ export declare enum UserSegment {
2
+ BETA = "BETA"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserSegment = void 0;
4
+ var UserSegment;
5
+ (function (UserSegment) {
6
+ UserSegment["BETA"] = "BETA";
7
+ })(UserSegment || (exports.UserSegment = UserSegment = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techtulp/choremanji-types",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [