swoop-common 2.0.39 → 2.0.41

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.
@@ -7,8 +7,8 @@ export type DTOComponentCreate = {
7
7
  componentFields: Array<Field>;
8
8
  partners: Array<string>;
9
9
  details: ComponentDetails;
10
- bundle?: Bundle;
11
- startDate?: string | null;
10
+ bundle: Bundle;
11
+ startDate: string | null;
12
12
  endDate?: string | null;
13
13
  duration?: number | null;
14
14
  state: string;
@@ -13,7 +13,7 @@ export type DTOComponentRead = {
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
15
  details: ComponentDetails;
16
- bundle?: Bundle;
16
+ bundle: Bundle;
17
17
  startDate?: string | null;
18
18
  endDate?: string | null;
19
19
  duration?: number | null;
@@ -2,13 +2,13 @@ import type { Bundle } from './Bundle';
2
2
  import type { ComponentDetails } from './ComponentDetails';
3
3
  import type { Field } from './Field';
4
4
  export type DTOComponentUpdate = {
5
- name?: string;
6
- componentFields?: Array<Field>;
7
- partners?: Array<string>;
8
- details?: ComponentDetails;
9
- bundle?: Bundle;
5
+ name: string;
6
+ componentFields: Array<Field>;
7
+ partners: Array<string>;
8
+ details: ComponentDetails;
9
+ bundle: Bundle;
10
10
  startDate?: string | null;
11
11
  endDate?: string | null;
12
12
  duration?: number | null;
13
- state?: string;
13
+ state: string;
14
14
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryCreate = {
4
- enquiryId: string;
4
+ enquirerId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryEntity = {
5
5
  id: string;
6
- enquiryId: string;
6
+ enquirerId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryRead = {
5
5
  id: string;
6
- enquiryId: string;
6
+ enquirerId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryUpdate = {
4
- enquiryId: string;
4
+ enquirerId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -1,6 +1,5 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
- orgId: string;
4
3
  name: string;
5
4
  masterSchema: string;
6
5
  validationSchemas: ValidationSchemas;
@@ -7,8 +7,8 @@ export type DTOComponentCreate = {
7
7
  componentFields: Array<Field>;
8
8
  partners: Array<string>;
9
9
  details: ComponentDetails;
10
- bundle?: Bundle;
11
- startDate?: string | null;
10
+ bundle: Bundle;
11
+ startDate: string | null;
12
12
  endDate?: string | null;
13
13
  duration?: number | null;
14
14
  state: string;
@@ -13,7 +13,7 @@ export type DTOComponentRead = {
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
15
  details: ComponentDetails;
16
- bundle?: Bundle;
16
+ bundle: Bundle;
17
17
  startDate?: string | null;
18
18
  endDate?: string | null;
19
19
  duration?: number | null;
@@ -2,13 +2,13 @@ import type { Bundle } from './Bundle';
2
2
  import type { ComponentDetails } from './ComponentDetails';
3
3
  import type { Field } from './Field';
4
4
  export type DTOComponentUpdate = {
5
- name?: string;
6
- componentFields?: Array<Field>;
7
- partners?: Array<string>;
8
- details?: ComponentDetails;
9
- bundle?: Bundle;
5
+ name: string;
6
+ componentFields: Array<Field>;
7
+ partners: Array<string>;
8
+ details: ComponentDetails;
9
+ bundle: Bundle;
10
10
  startDate?: string | null;
11
11
  endDate?: string | null;
12
12
  duration?: number | null;
13
- state?: string;
13
+ state: string;
14
14
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryCreate = {
4
- enquiryId: string;
4
+ enquirerId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryEntity = {
5
5
  id: string;
6
- enquiryId: string;
6
+ enquirerId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryRead = {
5
5
  id: string;
6
- enquiryId: string;
6
+ enquirerId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryUpdate = {
4
- enquiryId: string;
4
+ enquirerId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -1,6 +1,5 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
- orgId: string;
4
3
  name: string;
5
4
  masterSchema: string;
6
5
  validationSchemas: ValidationSchemas;
@@ -12,7 +12,7 @@ export declare const fetchComponents: () => Promise<{
12
12
  componentFields: Array<import("../../api/generated/core").Field>;
13
13
  partners: Array<string>;
14
14
  details: import("../../api/generated/core").ComponentDetails;
15
- bundle?: import("../../api/generated/core").Bundle;
15
+ bundle: import("../../api/generated/core").Bundle;
16
16
  startDate?: string | null;
17
17
  endDate?: string | null;
18
18
  duration?: number | null;
@@ -56,7 +56,7 @@ export declare const FORM_BUILDER_JSON_SCHEMA: {
56
56
  editableIn: {
57
57
  type: string;
58
58
  uniqueItems: boolean;
59
- minItmes: number;
59
+ minItems: number;
60
60
  items: {
61
61
  type: string;
62
62
  oneOf: {
@@ -42,7 +42,7 @@ export const FORM_BUILDER_JSON_SCHEMA = {
42
42
  }, editableIn: {
43
43
  type: "array",
44
44
  uniqueItems: true,
45
- minItmes: 1,
45
+ minItems: 1,
46
46
  items: {
47
47
  type: "string",
48
48
  oneOf: Object.keys(Stage).filter((k) => isNaN(+k)).map(s => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {