swoop-common 2.0.54 → 2.0.55

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.
@@ -5,9 +5,9 @@ import type { ComponentFAQ } from './ComponentFAQ';
5
5
  import type { ComponentNotes } from './ComponentNotes';
6
6
  import type { Field } from './Field';
7
7
  export type DTOComponentCreate = {
8
- orgId: string;
8
+ orgId?: string;
9
9
  name: string;
10
- destination: string;
10
+ destination?: string;
11
11
  description: ComponentDescription;
12
12
  notes?: ComponentNotes;
13
13
  faq?: ComponentFAQ;
@@ -19,5 +19,5 @@ export type DTOComponentCreate = {
19
19
  endDate?: string | null;
20
20
  duration?: number | null;
21
21
  state: string;
22
- templateId?: string;
22
+ templateId: string;
23
23
  };
@@ -13,7 +13,7 @@ export type DTOComponentEntity = {
13
13
  revision: number;
14
14
  metadata: Metadata;
15
15
  partners: Array<string>;
16
- destination: string;
16
+ destination?: string;
17
17
  name: string;
18
18
  description: ComponentDescription;
19
19
  notes: ComponentNotes;
@@ -13,12 +13,12 @@ export type DTOComponentRead = {
13
13
  revision: number;
14
14
  metadata: Metadata;
15
15
  partners: Array<string>;
16
- destination: string;
16
+ destination?: string;
17
17
  name: string;
18
18
  description: ComponentDescription;
19
19
  notes: ComponentNotes;
20
- faq: ComponentFAQ;
21
- details: ComponentDetails;
20
+ faq?: ComponentFAQ;
21
+ details?: ComponentDetails;
22
22
  componentFields: Array<Field>;
23
23
  bundle: Bundle;
24
24
  startDate?: string | null;
@@ -5,17 +5,16 @@ import type { ComponentFAQ } from './ComponentFAQ';
5
5
  import type { ComponentNotes } from './ComponentNotes';
6
6
  import type { Field } from './Field';
7
7
  export type DTOComponentUpdate = {
8
- destination: string;
9
- name: string;
10
- description: ComponentDescription;
11
- notes: ComponentNotes;
8
+ destination?: string;
9
+ description?: ComponentDescription;
10
+ notes?: ComponentNotes;
12
11
  faq?: ComponentFAQ;
13
- componentFields: Array<Field>;
14
- partners: Array<string>;
15
- details: ComponentDetails;
12
+ componentFields?: Array<Field>;
13
+ partners?: Array<string>;
14
+ details?: ComponentDetails;
16
15
  bundle?: Bundle;
17
16
  startDate?: string | null;
18
17
  endDate?: string | null;
19
18
  duration?: number | null;
20
- state: string;
19
+ state?: string;
21
20
  };
@@ -1,6 +1,6 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
- orgId: string;
3
+ orgId?: string;
4
4
  name: string;
5
5
  masterSchema: string;
6
6
  validationSchemas: ValidationSchemas;
@@ -5,9 +5,9 @@ import type { ComponentFAQ } from './ComponentFAQ';
5
5
  import type { ComponentNotes } from './ComponentNotes';
6
6
  import type { Field } from './Field';
7
7
  export type DTOComponentCreate = {
8
- orgId: string;
8
+ orgId?: string;
9
9
  name: string;
10
- destination: string;
10
+ destination?: string;
11
11
  description: ComponentDescription;
12
12
  notes?: ComponentNotes;
13
13
  faq?: ComponentFAQ;
@@ -19,5 +19,5 @@ export type DTOComponentCreate = {
19
19
  endDate?: string | null;
20
20
  duration?: number | null;
21
21
  state: string;
22
- templateId?: string;
22
+ templateId: string;
23
23
  };
@@ -13,7 +13,7 @@ export type DTOComponentEntity = {
13
13
  revision: number;
14
14
  metadata: Metadata;
15
15
  partners: Array<string>;
16
- destination: string;
16
+ destination?: string;
17
17
  name: string;
18
18
  description: ComponentDescription;
19
19
  notes: ComponentNotes;
@@ -13,12 +13,12 @@ export type DTOComponentRead = {
13
13
  revision: number;
14
14
  metadata: Metadata;
15
15
  partners: Array<string>;
16
- destination: string;
16
+ destination?: string;
17
17
  name: string;
18
18
  description: ComponentDescription;
19
19
  notes: ComponentNotes;
20
- faq: ComponentFAQ;
21
- details: ComponentDetails;
20
+ faq?: ComponentFAQ;
21
+ details?: ComponentDetails;
22
22
  componentFields: Array<Field>;
23
23
  bundle: Bundle;
24
24
  startDate?: string | null;
@@ -5,17 +5,16 @@ import type { ComponentFAQ } from './ComponentFAQ';
5
5
  import type { ComponentNotes } from './ComponentNotes';
6
6
  import type { Field } from './Field';
7
7
  export type DTOComponentUpdate = {
8
- destination: string;
9
- name: string;
10
- description: ComponentDescription;
11
- notes: ComponentNotes;
8
+ destination?: string;
9
+ description?: ComponentDescription;
10
+ notes?: ComponentNotes;
12
11
  faq?: ComponentFAQ;
13
- componentFields: Array<Field>;
14
- partners: Array<string>;
15
- details: ComponentDetails;
12
+ componentFields?: Array<Field>;
13
+ partners?: Array<string>;
14
+ details?: ComponentDetails;
16
15
  bundle?: Bundle;
17
16
  startDate?: string | null;
18
17
  endDate?: string | null;
19
18
  duration?: number | null;
20
- state: string;
19
+ state?: string;
21
20
  };
@@ -1,6 +1,6 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
- orgId: string;
3
+ orgId?: string;
4
4
  name: string;
5
5
  masterSchema: string;
6
6
  validationSchemas: ValidationSchemas;
@@ -9,12 +9,12 @@ export declare const fetchComponents: () => Promise<{
9
9
  revision: number;
10
10
  metadata: import("../../api/generated/core").Metadata;
11
11
  partners: Array<string>;
12
- destination: string;
12
+ destination?: string;
13
13
  name: string;
14
14
  description: import("../../api/generated/core").ComponentDescription;
15
15
  notes: import("../../api/generated/core").ComponentNotes;
16
- faq: import("../../api/generated/core").ComponentFAQ;
17
- details: import("../../api/generated/core").ComponentDetails;
16
+ faq?: import("../../api/generated/core").ComponentFAQ;
17
+ details?: import("../../api/generated/core").ComponentDetails;
18
18
  componentFields: Array<import("../../api/generated/core").Field>;
19
19
  bundle: import("../../api/generated/core").Bundle;
20
20
  startDate?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.54",
3
+ "version": "2.0.55",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {