@demind-inc/core 1.4.65 → 1.4.67

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.
@@ -0,0 +1,43 @@
1
+ export interface CalendlyEventTypeProfile {
2
+ type: "User" | "Team";
3
+ name: string;
4
+ owner: string;
5
+ }
6
+ export interface CalendlyEventTypeCustomQuestion {
7
+ name: string;
8
+ type: "string" | "text" | "phone_number" | "single_select" | "multi_select";
9
+ position: number;
10
+ enabled: boolean;
11
+ required: boolean;
12
+ answer_choices: string[];
13
+ include_other: boolean;
14
+ }
15
+ export interface CalendlyEventTypeLocation {
16
+ position: number;
17
+ locale: "en" | "fr" | "es" | "de" | "nl" | "pt" | "it" | "uk";
18
+ }
19
+ export interface CalendlyEventType {
20
+ uri: string;
21
+ name: string | null;
22
+ active: boolean;
23
+ slug: string | null;
24
+ scheduling_url: string;
25
+ duration: number;
26
+ duration_options: number[] | null;
27
+ kind: "solo" | "group";
28
+ pooling_type: "round_robin" | "collective" | "multi_pool" | null;
29
+ type: "StandardEventType" | "AdhocEventType";
30
+ color: string;
31
+ created_at: string;
32
+ updated_at: string;
33
+ internal_note: string | null;
34
+ description_plain: string | null;
35
+ description_html: string | null;
36
+ profile: CalendlyEventTypeProfile | null;
37
+ secret: boolean;
38
+ booking_method: "instant" | "poll";
39
+ custom_questions: CalendlyEventTypeCustomQuestion[];
40
+ deleted_at: string | null;
41
+ admin_managed: boolean;
42
+ locations: CalendlyEventTypeLocation[] | null;
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./calendly.types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./calendly.types"), exports);
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./models";
2
2
  export * from "./constants";
3
3
  export * from "./types";
4
4
  export * from "./helpers";
5
+ export * from "./external";
package/dist/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./models"), exports);
18
18
  __exportStar(require("./constants"), exports);
19
19
  __exportStar(require("./types"), exports);
20
20
  __exportStar(require("./helpers"), exports);
21
+ __exportStar(require("./external"), exports);
@@ -5,7 +5,6 @@ export interface CalendlyIntegration {
5
5
  metricId: string;
6
6
  tokenId: DocumentReference;
7
7
  calendlyUserId: string;
8
- originalAvailabilities: CalendlyAvailability[];
9
8
  owner: string;
10
9
  organization: string;
11
10
  calendarIds: string[];
@@ -14,23 +13,9 @@ export interface CalendlyIntegration {
14
13
  export interface CalendlyPreference {
15
14
  noBackToBackMeetings?: boolean;
16
15
  showAvailabilityZoneOf?: CalendlyAvailabilityZone;
16
+ baseEventType?: {
17
+ url: string;
18
+ rawJson: string;
19
+ };
17
20
  }
18
21
  export type CalendlyAvailabilityZone = "high_energy" | "low_energy";
19
- export interface CalendlyAvailability {
20
- uri: string;
21
- default: boolean;
22
- name: string;
23
- user: string;
24
- timezone: string;
25
- rules: CalendlyAvailabilityRule[];
26
- }
27
- export interface CalendlyAvailabilityInterval {
28
- start_time: string;
29
- end_time: string;
30
- }
31
- export interface CalendlyAvailabilityRule {
32
- type: "wday" | "date";
33
- intervals: CalendlyAvailabilityInterval[];
34
- wday?: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
35
- date?: string;
36
- }
@@ -0,0 +1,46 @@
1
+ export interface CalendlyEventTypeProfile {
2
+ type: "User" | "Team";
3
+ name: string;
4
+ owner: string;
5
+ }
6
+
7
+ export interface CalendlyEventTypeCustomQuestion {
8
+ name: string;
9
+ type: "string" | "text" | "phone_number" | "single_select" | "multi_select";
10
+ position: number;
11
+ enabled: boolean;
12
+ required: boolean;
13
+ answer_choices: string[];
14
+ include_other: boolean;
15
+ }
16
+
17
+ export interface CalendlyEventTypeLocation {
18
+ position: number;
19
+ locale: "en" | "fr" | "es" | "de" | "nl" | "pt" | "it" | "uk";
20
+ }
21
+
22
+ export interface CalendlyEventType {
23
+ uri: string;
24
+ name: string | null;
25
+ active: boolean;
26
+ slug: string | null;
27
+ scheduling_url: string;
28
+ duration: number;
29
+ duration_options: number[] | null;
30
+ kind: "solo" | "group";
31
+ pooling_type: "round_robin" | "collective" | "multi_pool" | null;
32
+ type: "StandardEventType" | "AdhocEventType";
33
+ color: string;
34
+ created_at: string;
35
+ updated_at: string;
36
+ internal_note: string | null;
37
+ description_plain: string | null;
38
+ description_html: string | null;
39
+ profile: CalendlyEventTypeProfile | null;
40
+ secret: boolean;
41
+ booking_method: "instant" | "poll";
42
+ custom_questions: CalendlyEventTypeCustomQuestion[];
43
+ deleted_at: string | null;
44
+ admin_managed: boolean;
45
+ locations: CalendlyEventTypeLocation[] | null;
46
+ }
@@ -0,0 +1 @@
1
+ export * from "./calendly.types";
package/lib/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./models";
2
2
  export * from "./constants";
3
3
  export * from "./types";
4
4
  export * from "./helpers";
5
+ export * from "./external";
@@ -6,7 +6,6 @@ export interface CalendlyIntegration {
6
6
  metricId: string;
7
7
  tokenId: DocumentReference;
8
8
  calendlyUserId: string;
9
- originalAvailabilities: CalendlyAvailability[];
10
9
  owner: string;
11
10
  organization: string;
12
11
  calendarIds: string[];
@@ -16,34 +15,10 @@ export interface CalendlyIntegration {
16
15
  export interface CalendlyPreference {
17
16
  noBackToBackMeetings?: boolean;
18
17
  showAvailabilityZoneOf?: CalendlyAvailabilityZone;
18
+ baseEventType?: {
19
+ url: string;
20
+ rawJson: string;
21
+ };
19
22
  }
20
23
 
21
24
  export type CalendlyAvailabilityZone = "high_energy" | "low_energy";
22
-
23
- export interface CalendlyAvailability {
24
- uri: string;
25
- default: boolean;
26
- name: string;
27
- user: string;
28
- timezone: string;
29
- rules: CalendlyAvailabilityRule[];
30
- }
31
-
32
- export interface CalendlyAvailabilityInterval {
33
- start_time: string;
34
- end_time: string;
35
- }
36
-
37
- export interface CalendlyAvailabilityRule {
38
- type: "wday" | "date";
39
- intervals: CalendlyAvailabilityInterval[];
40
- wday?:
41
- | "sunday"
42
- | "monday"
43
- | "tuesday"
44
- | "wednesday"
45
- | "thursday"
46
- | "friday"
47
- | "saturday";
48
- date?: string;
49
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.65",
3
+ "version": "1.4.67",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {