@dev-crew-berlin/enter-js-utils 0.30.6 → 0.31.1

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.
@@ -67,7 +67,7 @@ export default class APIBase {
67
67
  'Content-Type': 'application/json'
68
68
  };
69
69
  const res = await APIBase.fetchResult(`${this.credentials.url}${endpoint}`, {
70
- method,
70
+ method: method.toUpperCase(),
71
71
  headers,
72
72
  body
73
73
  });
@@ -126,7 +126,7 @@ export declare type components = {
126
126
  attendeeId: string;
127
127
  /** Rsvp */
128
128
  rsvp: {
129
- [key: string]: number;
129
+ [key: string]: number | null;
130
130
  };
131
131
  /** Isedit */
132
132
  isEdit: boolean;
@@ -476,6 +476,60 @@ export declare type components = {
476
476
  /** Mainguestid */
477
477
  mainGuestId: string;
478
478
  };
479
+ /** DateField */
480
+ DateField: {
481
+ /**
482
+ * Type
483
+ * @default date
484
+ * @enum {string}
485
+ */
486
+ type: "date";
487
+ /**
488
+ * Name
489
+ * @default new_field
490
+ */
491
+ name: string;
492
+ /** Title */
493
+ title?: string | {
494
+ [key: string]: string;
495
+ };
496
+ /** Info */
497
+ info?: string | {
498
+ [key: string]: string;
499
+ };
500
+ /**
501
+ * Class
502
+ * @default
503
+ */
504
+ class: string;
505
+ /**
506
+ * Ismetafield
507
+ * @default false
508
+ */
509
+ isMetaField: boolean;
510
+ /**
511
+ * Required
512
+ * @default false
513
+ */
514
+ required: boolean;
515
+ /**
516
+ * Hidden
517
+ * @default false
518
+ */
519
+ hidden: boolean;
520
+ /**
521
+ * Attendeesonly
522
+ * @default false
523
+ */
524
+ attendeesOnly: boolean;
525
+ /**
526
+ * Value
527
+ * Format: date-time
528
+ */
529
+ value?: string;
530
+ /** If */
531
+ if?: string;
532
+ };
479
533
  /** DropdownField */
480
534
  DropdownField: {
481
535
  /**
@@ -592,7 +646,7 @@ export declare type components = {
592
646
  /** FieldGroup */
593
647
  FieldGroup: {
594
648
  /** Questions */
595
- questions: (components["schemas"]["TextField"] | components["schemas"]["StaticField"] | components["schemas"]["ImageUploadField"] | components["schemas"]["FileUploadField"] | components["schemas"]["LongtextField"] | components["schemas"]["RadioButtonField"] | components["schemas"]["RadioButtonGroupField"] | components["schemas"]["DropdownField"] | components["schemas"]["EmailField"] | components["schemas"]["AuthField"] | components["schemas"]["NumberField"] | components["schemas"]["CheckboxField"] | components["schemas"]["CheckboxGroupField"])[];
649
+ questions: (components["schemas"]["TextField"] | components["schemas"]["StaticField"] | components["schemas"]["ImageUploadField"] | components["schemas"]["FileUploadField"] | components["schemas"]["LongtextField"] | components["schemas"]["RadioButtonField"] | components["schemas"]["RadioButtonGroupField"] | components["schemas"]["DropdownField"] | components["schemas"]["DateField"] | components["schemas"]["EmailField"] | components["schemas"]["AuthField"] | components["schemas"]["NumberField"] | components["schemas"]["CheckboxField"] | components["schemas"]["CheckboxGroupField"])[];
596
650
  /** Info */
597
651
  info?: string | {
598
652
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.30.6",
3
+ "version": "0.31.1",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",
@@ -44,14 +44,14 @@
44
44
  "@babel/preset-react": "^7.17.12",
45
45
  "@babel/preset-typescript": "^7.17.12",
46
46
  "@liangskyli/openapi-typescript": "^5.4.1",
47
- "@storybook/addon-actions": "^6.5.13",
48
- "@storybook/addon-essentials": "^6.5.13",
49
- "@storybook/addon-interactions": "^6.5.13",
50
- "@storybook/addon-links": "^6.5.13",
51
- "@storybook/builder-webpack4": "^6.5.8",
52
- "@storybook/manager-webpack4": "^6.5.8",
53
- "@storybook/react": "^6.5.13",
54
- "@storybook/testing-library": "^0.0.11",
47
+ "@storybook/addon-actions": "^6.5.15",
48
+ "@storybook/addon-essentials": "^6.5.15",
49
+ "@storybook/addon-interactions": "^6.5.15",
50
+ "@storybook/addon-links": "^6.5.15",
51
+ "@storybook/builder-webpack4": "^6.5.15",
52
+ "@storybook/manager-webpack4": "^6.5.15",
53
+ "@storybook/react": "^6.5.15",
54
+ "@storybook/testing-library": "^0.0.13",
55
55
  "@types/node": "^17.0.38",
56
56
  "@types/react": "^18.0.10",
57
57
  "@types/react-dom": "^18.0.5",