@sprucelabs/calendar-utils 43.0.124 → 43.1.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.
@@ -318,6 +318,31 @@ declare const _default: {
318
318
  valueType: string;
319
319
  };
320
320
  };
321
+ venue: {
322
+ type: "schema";
323
+ options: {
324
+ schema: {
325
+ id: string;
326
+ name: string;
327
+ fields: {
328
+ provider: {
329
+ type: "text";
330
+ isRequired: true;
331
+ };
332
+ label: {
333
+ type: "text";
334
+ isRequired: true;
335
+ };
336
+ joinUrl: {
337
+ type: "text";
338
+ };
339
+ details: {
340
+ type: "text";
341
+ };
342
+ };
343
+ };
344
+ };
345
+ };
321
346
  };
322
347
  };
323
348
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { buildSchema } from '@sprucelabs/schema';
2
2
  import { eventSourceSchema, eventTargetSchema, } from '@sprucelabs/spruce-event-utils';
3
3
  import { daysOfWeek, eventStyleChoices, lineIconChoices, repeats, } from '../../constants.js';
4
+ import venueBuilder from './venue.builder.js';
4
5
  export const eventExclusionDateSchema = buildSchema({
5
6
  id: 'eventExclusionDate',
6
7
  fields: {
@@ -185,6 +186,12 @@ export default buildSchema({
185
186
  valueType: 'Record<string, any>',
186
187
  },
187
188
  },
189
+ venue: {
190
+ type: 'schema',
191
+ options: {
192
+ schema: venueBuilder,
193
+ },
194
+ },
188
195
  },
189
196
  });
190
197
  function buildDaysOfWeekChoices() {
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ fields: {
5
+ provider: {
6
+ type: "text";
7
+ isRequired: true;
8
+ };
9
+ label: {
10
+ type: "text";
11
+ isRequired: true;
12
+ };
13
+ joinUrl: {
14
+ type: "text";
15
+ };
16
+ details: {
17
+ type: "text";
18
+ };
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { buildSchema } from '@sprucelabs/schema';
2
+ export default buildSchema({
3
+ id: 'venue',
4
+ name: 'Venue',
5
+ fields: {
6
+ provider: {
7
+ type: 'text',
8
+ isRequired: true,
9
+ },
10
+ label: {
11
+ type: 'text',
12
+ isRequired: true,
13
+ },
14
+ joinUrl: {
15
+ type: 'text',
16
+ },
17
+ details: {
18
+ type: 'text',
19
+ },
20
+ },
21
+ });
@@ -318,6 +318,31 @@ declare const _default: {
318
318
  valueType: string;
319
319
  };
320
320
  };
321
+ venue: {
322
+ type: "schema";
323
+ options: {
324
+ schema: {
325
+ id: string;
326
+ name: string;
327
+ fields: {
328
+ provider: {
329
+ type: "text";
330
+ isRequired: true;
331
+ };
332
+ label: {
333
+ type: "text";
334
+ isRequired: true;
335
+ };
336
+ joinUrl: {
337
+ type: "text";
338
+ };
339
+ details: {
340
+ type: "text";
341
+ };
342
+ };
343
+ };
344
+ };
345
+ };
321
346
  };
322
347
  };
323
348
  export default _default;
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.eventTimeBlocksSchema = exports.eventExclusionDateSchema = void 0;
4
7
  const schema_1 = require("@sprucelabs/schema");
5
8
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
6
9
  const constants_1 = require("../../constants");
10
+ const venue_builder_1 = __importDefault(require("./venue.builder"));
7
11
  exports.eventExclusionDateSchema = (0, schema_1.buildSchema)({
8
12
  id: 'eventExclusionDate',
9
13
  fields: {
@@ -188,6 +192,12 @@ exports.default = (0, schema_1.buildSchema)({
188
192
  valueType: 'Record<string, any>',
189
193
  },
190
194
  },
195
+ venue: {
196
+ type: 'schema',
197
+ options: {
198
+ schema: venue_builder_1.default,
199
+ },
200
+ },
191
201
  },
192
202
  });
193
203
  function buildDaysOfWeekChoices() {
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ fields: {
5
+ provider: {
6
+ type: "text";
7
+ isRequired: true;
8
+ };
9
+ label: {
10
+ type: "text";
11
+ isRequired: true;
12
+ };
13
+ joinUrl: {
14
+ type: "text";
15
+ };
16
+ details: {
17
+ type: "text";
18
+ };
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ exports.default = (0, schema_1.buildSchema)({
5
+ id: 'venue',
6
+ name: 'Venue',
7
+ fields: {
8
+ provider: {
9
+ type: 'text',
10
+ isRequired: true,
11
+ },
12
+ label: {
13
+ type: 'text',
14
+ isRequired: true,
15
+ },
16
+ joinUrl: {
17
+ type: 'text',
18
+ },
19
+ details: {
20
+ type: 'text',
21
+ },
22
+ },
23
+ });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "43.0.124",
6
+ "version": "43.1.0",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -23,7 +23,8 @@
23
23
  ],
24
24
  "commandOverrides": {
25
25
  "sync.schemas": "--shouldFetchCoreSchemas false --moduleToImportFromWhenRemote @sprucelabs/calendar-utils"
26
- }
26
+ },
27
+ "version": "v2021_05_19"
27
28
  },
28
29
  "keywords": [
29
30
  "node",
@@ -62,7 +63,7 @@
62
63
  },
63
64
  "dependencies": {
64
65
  "@sprucelabs/error": "^7.1.14",
65
- "@sprucelabs/mercury-event-emitter": "^43.0.121",
66
+ "@sprucelabs/mercury-event-emitter": "^43.0.122",
66
67
  "@sprucelabs/mercury-types": "^48.0.87",
67
68
  "@sprucelabs/schema": "^32.1.38",
68
69
  "@sprucelabs/spruce-core-schemas": "^41.1.2",