@reviza/api-client 1.0.0-SNAPSHOT-073f1dba → 1.0.0-SNAPSHOT-3eaf8d8e

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.
@@ -33,4 +33,8 @@ export type ConfigData = {
33
33
  label: string;
34
34
  }[]>;
35
35
  colors: Record<FacilityTypeEnum, string>;
36
+ notification_terms: {
37
+ value: string;
38
+ label: string;
39
+ }[];
36
40
  };
@@ -56,7 +56,7 @@ export type FacilityData = {
56
56
  last_revision?: RevisionData | null;
57
57
  issues?: RevisionIssueData[];
58
58
  documents?: DocumentData[];
59
- related_facilities?: FacilityData[];
59
+ related_facilities?: RelatedFacilityData[];
60
60
  maps?: MapData[];
61
61
  created_at: string | null;
62
62
  updated_at: string | null;
@@ -0,0 +1,25 @@
1
+ import { CategoryNotificationEnum, NotificationTermEnum } from "../../../Enum/Notifications";
2
+ export type CategoryNotificationData = {
3
+ id: number;
4
+ name: string;
5
+ type_name: string;
6
+ notifications: CategoryNotificationTermData[];
7
+ categories: CategoryNotificationData[];
8
+ };
9
+ export type CategoryNotificationPayload = {
10
+ id: number;
11
+ notifications: CategoryNotificationTermPayload[];
12
+ categories: CategoryNotificationPayload[] | null;
13
+ };
14
+ export type CategoryNotificationTermData = {
15
+ type: CategoryNotificationEnum;
16
+ name: string;
17
+ enabled: boolean;
18
+ has_terms: boolean;
19
+ terms?: NotificationTermEnum[];
20
+ };
21
+ export type CategoryNotificationTermPayload = {
22
+ type: CategoryNotificationEnum;
23
+ enabled: boolean;
24
+ terms?: NotificationTermEnum[];
25
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { CategoryNotificationData, CategoryNotificationPayload } from "../Category";
2
+ import { OrganizationNotificationEnum, NotificationTermEnum } from "../../../Enum/Notifications";
3
+ export type OrganizationNotificationData = {
4
+ id: number;
5
+ name: string;
6
+ notifications: OrganizationNotificationTermData[];
7
+ categories: CategoryNotificationData[];
8
+ };
9
+ export type OrganizationNotificationPayload = {
10
+ id: number;
11
+ notifications: OrganizationNotificationTermPayload[];
12
+ categories: CategoryNotificationPayload[] | null;
13
+ };
14
+ export type OrganizationNotificationTermData = {
15
+ type: OrganizationNotificationEnum;
16
+ name: string;
17
+ enabled: boolean;
18
+ has_terms: boolean;
19
+ terms?: NotificationTermEnum[];
20
+ };
21
+ export type OrganizationNotificationTermPayload = {
22
+ type: OrganizationNotificationEnum;
23
+ enabled: boolean;
24
+ terms?: NotificationTermEnum[];
25
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,17 +1,4 @@
1
- import { CategoryNotificationEnum, OrganizationNotificationEnum } from "../../Enum/Notifications";
2
- export type CategoryNotificationData = {
3
- id: number;
4
- name: string;
5
- type_name: string;
6
- notifications: CategoryNotificationEnum[];
7
- notification_options: CategoryNotificationEnum[];
8
- categories: CategoryNotificationData[];
9
- };
10
- export type CategoryNotificationPayload = {
11
- id: number;
12
- notifications: CategoryNotificationEnum[];
13
- categories: CategoryNotificationPayload[] | null;
14
- };
1
+ import { OrganizationNotificationData, OrganizationNotificationPayload } from "./Organization";
15
2
  export type NotificationData = {
16
3
  full_name: string;
17
4
  email: string;
@@ -27,15 +14,3 @@ export type NotificationSettingsData = {
27
14
  export type NotificationSettingsPayload = {
28
15
  organizations: OrganizationNotificationPayload[];
29
16
  };
30
- export type OrganizationNotificationData = {
31
- id: number;
32
- name: string;
33
- notifications: OrganizationNotificationEnum[];
34
- notification_options: OrganizationNotificationEnum[];
35
- categories: CategoryNotificationData[];
36
- };
37
- export type OrganizationNotificationPayload = {
38
- id: number;
39
- notifications: OrganizationNotificationEnum[];
40
- categories: CategoryNotificationPayload[] | null;
41
- };
@@ -6,6 +6,13 @@ export declare enum CategoryNotificationEnum {
6
6
  FACILITY_ISSUE_REMINDER = "FACILITY_ISSUE_REMINDER",
7
7
  REVISION_DOCUMENT_UPLOADED = "REVISION_DOCUMENT_UPLOADED"
8
8
  }
9
+ export declare enum NotificationTermEnum {
10
+ MONTHS_6 = "MONTHS_6",
11
+ MONTHS_3 = "MONTHS_3",
12
+ MONTHS_1 = "MONTHS_1",
13
+ WEEKS_2 = "WEEKS_2",
14
+ WEEKS_1 = "WEEKS_1"
15
+ }
9
16
  export declare enum OrganizationNotificationEnum {
10
17
  CATEGORY_CREATED = "CATEGORY_CREATED"
11
18
  }
@@ -7,6 +7,14 @@ export var CategoryNotificationEnum;
7
7
  CategoryNotificationEnum["FACILITY_ISSUE_REMINDER"] = "FACILITY_ISSUE_REMINDER";
8
8
  CategoryNotificationEnum["REVISION_DOCUMENT_UPLOADED"] = "REVISION_DOCUMENT_UPLOADED";
9
9
  })(CategoryNotificationEnum || (CategoryNotificationEnum = {}));
10
+ export var NotificationTermEnum;
11
+ (function (NotificationTermEnum) {
12
+ NotificationTermEnum["MONTHS_6"] = "MONTHS_6";
13
+ NotificationTermEnum["MONTHS_3"] = "MONTHS_3";
14
+ NotificationTermEnum["MONTHS_1"] = "MONTHS_1";
15
+ NotificationTermEnum["WEEKS_2"] = "WEEKS_2";
16
+ NotificationTermEnum["WEEKS_1"] = "WEEKS_1";
17
+ })(NotificationTermEnum || (NotificationTermEnum = {}));
10
18
  export var OrganizationNotificationEnum;
11
19
  (function (OrganizationNotificationEnum) {
12
20
  OrganizationNotificationEnum["CATEGORY_CREATED"] = "CATEGORY_CREATED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reviza/api-client",
3
- "version": "1.0.0-SNAPSHOT-073f1dba",
3
+ "version": "1.0.0-SNAPSHOT-3eaf8d8e",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",